/*! For license information please see main.fd27458e.js.LICENSE.txt */
!function(){var e={5832:function(e,t,n){"use strict";n.d(t,{r:function(){return c}});var r,o=n(30303),i=["title","titleId"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e,t){var n=e.title,l=e.titleId,c=s(e,i);return o.createElement("svg",a({width:18,height:18,viewBox:"0 0 18 18",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":l},c),n?o.createElement("title",{id:l},n):null,r||(r=o.createElement("path",{d:"M8.99913 0.678436C4.39678 0.678436 0.665771 4.40928 0.665771 9.01179C0.665771 13.6143 4.39678 17.3451 8.99913 17.3451C13.6015 17.3451 17.3325 13.6143 17.3325 9.01179C17.3325 4.40928 13.6015 0.678436 8.99913 0.678436ZM8.99913 4.84511C9.45938 4.84511 9.83246 5.21845 9.83246 5.67845C9.83246 6.13845 9.45938 6.51178 8.99913 6.51178C8.53888 6.51178 8.16579 6.13845 8.16579 5.67845C8.16579 5.21845 8.53888 4.84511 8.99913 4.84511ZM8.99913 7.34512C9.45938 7.34512 9.83246 7.71845 9.83246 8.17845V12.3451C9.83246 12.8051 9.45938 13.1785 8.99913 13.1785C8.53888 13.1785 8.16579 12.8051 8.16579 12.3451V8.17845C8.16579 7.71845 8.53888 7.34512 8.99913 7.34512Z",fill:"current"})))}var c=o.forwardRef(l);n.p},23571:function(e,t,n){"use strict";n.d(t,{e:function(){return o}});var r=n(45133),o=n.n(r)().create({baseURL:"/api/",withCredentials:!0,headers:{accept:"*/*","Content-Type":"application/json"}});t.Z=o,function(){var e=localStorage.getItem("AccessToken");e?o.defaults.headers.common.Authorization="Bearer ".concat(e):delete o.defaults.headers.common.Authorization}()},97189:function(e,t,n){"use strict";n.d(t,{E4:function(){return r},IV:function(){return o},aK:function(){return i},Us:function(){return a},NP:function(){return s},so:function(){return l},dx:function(){return c},oq:function(){return u},FL:function(){return d}});var r={50:"#F4F1FE",100:"#E3DBFC",200:"#C7B9FA",300:"#AA96F8",400:"#927BF7",500:"#6D51F6",600:"#513BD3",700:"#3A29B0",800:"#261B8D",900:"#181175"},o={100:"#F8F9FC",150:"#F4F6FB",200:"#F6F6F6",250:"#E3E7F0",300:"#BFC6D7",400:"#9EA8C2",500:"#79829B",600:"#4F576E",700:"#424755",800:"#262F46",900:"#10141F"},i={100:"#FCFCFC",200:"#F6F6F6",300:"#DEDEDE",400:"#ABABAB",500:"#7C7C7C",600:"#4C4C4C",700:"#383838",800:"#232323",900:"#000000"},a={100:"#FFF2F4",200:"#FFACAC",500:"#FF6174",700:"#DF5364"},s={50:"#FEF8F1",101:"#FBECD7",201:"#F7D6B0",301:"#F3BA88",401:"#EE9F6C",501:"#EA7440",601:"#C75530",701:"#A63C24",801:"#852719",901:"#6E1911"},l={100:"#F5FED4",200:"#E8FCAB",301:"#D6F884",401:"#C4F26A",500:"#ABEB4D",601:"#8CC940",700:"#34A854",701:"#70A834",801:"#568728",901:"#43701F"},c={50:"#F6F7FF",100:"#E5E8FF",101:"#D6FDFE",200:"#BEC6FF",201:"#AEF4FD",301:"#8AE5FC",401:"#70D2FA",500:"#8F9AFE",501:"#51B4F9",601:"#3D8CD5",700:"#4051EC",701:"#2C68B1",801:"#1C4A8E",901:"#123576"},u={100:"#FEF9D8",200:"#FDF3B2",301:"#FBEB8E",401:"#FAE375",500:"#F8D653",601:"#D4B343",700:"#E3A900",701:"#B19134",801:"#8E7127",901:"#755A1E"},d={1:"linear-gradient(225deg, ".concat(c[100]," 0%, #FFEAE1 68.75%, #FFFBEA 100%)"),2:"linear-gradient(180deg, #030012 17.71%, #6D51F6 100%)",3:"linear-gradient(180deg, ".concat(s[501]," 17.71%, ").concat(r[500]," 100%)"),4:"linear-gradient(180deg, #fff 17.71%, ".concat(r[500]," 100%)"),5:"linear-gradient(180deg, ".concat(u[500]," 28.13%, ").concat(r[500]," 100%)"),6:"linear-gradient(180deg, ".concat(c[501]," 17.71%, ").concat(r[500]," 100%)"),7:"linear-gradient(180deg, ".concat(l[500]," 17.71%, ").concat(r[500]," 100%)"),8:"linear-gradient(180deg, ".concat(u[100]," 28.13%, ").concat(u[500]," 100%)"),9:"linear-gradient(180deg, ".concat(c[50]," 17.71%, ").concat(c[500]," 100%)"),10:"linear-gradient(180deg, ".concat(l[100]," 17.71%, ").concat(l[500]," 100%)"),11:"linear-gradient(180deg, ".concat(a[100]," 17.71%, ").concat(a[500]," 100%)"),12:"linear-gradient(180deg, ".concat(c[101]," 17.71%, ").concat(c[500]," 100%, ").concat(c[500],")")}},67865:function(e,t,n){"use strict";n.r(t),n.d(t,{NotificationCardRemaining:function(){return m}});var r=n(36774),o=n(37646),i=n(53802),a=n(38697),s=n(41098),l=n(19049),c=n(563),u=n(65540),d=n(36823),p=n(97189),f=n(5832),h=n(27241);t.default=function(e){var t=e.data,n=e.Icon,f=((0,s.s0)(),(0,u.J)()),m=(0,d.Z)({resource:"notifications"}).mutate;(0,c.Z)(t);return(0,h.jsx)(h.Fragment,{children:(0,h.jsxs)(r.Z,{sx:{p:2,borderBottom:"1px solid #E6E8FF",backgroundColor:t.seen?"transparent":"secondaryBlue.50",display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer","&:hover":{background:"#FFFBFF"}},onClick:function(){m({id:t.id,suffix:"seen"},{onSuccess:function(){f()}})},children:[(0,h.jsxs)(o.Z,{direction:"row",spacing:1,children:[(0,h.jsx)(i.Z,{sx:{borderRadius:"4px",bgcolor:"secondaryBlue.100",width:"40px",height:"40px",display:"flex",justifyContent:"center",alignItems:"center","&:hover":{bgcolor:"secondaryBlue.100"}},children:(0,h.jsx)(n,{fill:p.dx[700]})}),(0,h.jsxs)(o.Z,{direction:"column",children:[(0,h.jsx)(a.Z,{flexWrap:"wrap",color:"primaryDark.600",variant:"body2",children:t.short}),(0,h.jsxs)(a.Z,{variant:"body3",color:"primaryDark.400",fontWeight:"600",children:[(0,l.VG)(t.created)," ago"]})]})]}),!t.seen&&(0,h.jsx)(r.Z,{sx:{backgroundColor:"primaryLight.500",borderRadius:"50%",minWidth:"12px",minHeight:"12px",width:"12px",height:"12px",border:"2px solid",borderColor:"primaryLight.100"}})]})})};var m=function(e){var t=e.unread,n=(0,s.s0)();return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)(r.Z,{sx:{p:2,backgroundColor:"transparent",display:t?"flex":"none",justifyContent:"space-between",alignItems:"center",cursor:"pointer","&:hover":{background:"#FFFBFF"}},onClick:function(){n("../dashboard/notifications")},children:(0,h.jsxs)(o.Z,{direction:"row",spacing:1,alignItems:"center",children:[(0,h.jsx)(i.Z,{sx:{borderRadius:"4px",bgcolor:"secondaryYellow.100",width:"40px",height:"40px",display:"flex",justifyContent:"center",alignItems:"center","&:hover":{bgcolor:"secondaryYellow.100"}},children:(0,h.jsx)(f.r,{fill:p.oq[700]})}),(0,h.jsxs)(a.Z,{flexWrap:"wrap",color:"primaryDark.600",variant:"body2",children:[t," more unread notifications"]})]})})})}},563:function(e,t,n){"use strict";n.d(t,{b:function(){return s}});var r=n(53549).OH,o=new Map([[r.BannerProjectReady,function(e){return{customText:"click here",route:"./contract"}}],[r.BannerOtherReviewedContract,function(e){var t;return{customText:"Click here",route:"./contract/".concat(null===(t=e.ids)||void 0===t?void 0:t.contractId)}}],[r.BannerOtherSubmittedContract,function(e){var t;return{customText:"Click here",route:"./contract/".concat(null===(t=e.ids)||void 0===t?void 0:t.contractId)}}],[r.BannerOtherSubmittedAnnex,function(e){var t;return{customText:"Click here",route:"./contract/".concat(null===(t=e.ids)||void 0===t?void 0:t.contractId)}}],[r.BannerOtherReviewedAnnex,function(e){var t;return{customText:"Click here",route:"./contract/".concat(null===(t=e.ids)||void 0===t?void 0:t.contractId)}}],[r.BannerRecurringMilestone,function(e){return{customText:"Click here",route:!0}}],[r.BannerTimedProjectRejected,function(e){var t;return{customText:"Click here",route:"./".concat(null===(t=e.ids)||void 0===t?void 0:t.projectId,"/edit")}}],[r.BannerTimedProjectDraftSaved,function(e){var t;return{customText:"Click here",route:"../".concat(null===(t=e.ids)||void 0===t?void 0:t.projectId,"/edit")}}],[r.BannerTimedProjectEditRejected,function(e){var t;return{customText:"Click here",route:"../".concat(null===(t=e.ids)||void 0===t?void 0:t.projectId,"/edit")}}],[r.BannerPitchEditRejected,function(e){var t;return{customText:"Click here",route:"./".concat(null===(t=e.ids)||void 0===t?void 0:t.pitchId,"/edit")}}],[r.BannerPitchRejected,function(e){var t;return{customText:"Click here",route:"./".concat(null===(t=e.ids)||void 0===t?void 0:t.pitchId,"/edit")}}],[r.BannerPitchHired,function(e){return{customText:"Click here",route:"/dashboard/end-to-end"}}],[r.BannerCaseStudyApproved,function(e){return{customText:"Click here",route:!0}}],[r.BannerCaseStudyRejected,function(e){var t;return{customText:"Click here",route:"./edit/".concat(null===(t=e.ids)||void 0===t?void 0:t.caseStudyId)}}],[r.BannerCaseStudyEditRejected,function(e){var t;return{customText:"Click here",route:"./edit/".concat(null===(t=e.ids)||void 0===t?void 0:t.caseStudyId)}}],[r.BannerBuyerProfileApproved,function(e){return{route:"/faq",customText:"here"}}]]),i=[r.ApproveContract,r.SubmittedContract,r.SubmittedAnnex,r.ReviewContract,r.ReviewAnnex,r.ContractReady,r.AnnexReady,r.ApproveAnnex,r.CancelContract,r.TerminateContract,r.Unflag,r.PaidMilestone,r.PaymentDue,r.PaymentOverdue],a=[r.ApproveMilestone,r.CompleteMilestone,r.CreateTask,r.DeleteTask,r.Flag];t.Z=function(e){var t,n;return i.includes(e.subcategory)?"/dashboard/end-to-end/project/".concat(null===(t=e.data.ids)||void 0===t?void 0:t.projectId):a.includes(e.subcategory)?"/dashboard/end-to-end/milestone/".concat(null===(n=e.data.ids)||void 0===n?void 0:n.milestoneId):" "};var s=function(e){var t,n=o.get(e.subcategory),r=null===n||void 0===n?void 0:n(e.data),i=null===r||void 0===r?void 0:r.customText;if(i&&null!==e&&void 0!==e&&null!==(t=e.body)&&void 0!==t&&t.includes(i)){e.body=e.body.split(i)[0];var a=null===r||void 0===r?void 0:r.route;e.route=a,e.customText=i}return e}},84995:function(e,t,n){"use strict";n.d(t,{AF:function(){return c},G3:function(){return u},VA:function(){return d},oz:function(){return p},R2:function(){return f},N4:function(){return h},mi:function(){return m},ud:function(){return v},r9:function(){return g},SC:function(){return y},HX:function(){return b},dA:function(){return x},CY:function(){return w},qV:function(){return j},v7:function(){return S},TQ:function(){return k},gS:function(){return Z},sJ:function(){return O}});var r,o,i,a,s,l=n(53549),c=(new Map([["foo","Foo"],["bar","Bar"],["baz","Baz"]]),new Map([["foo","Foo"],["bar","Bar"],["baz","Baz"],["foobar","FooBar"],["foobaz","FooBaz"],["barbaz","BarBaz"],["foobarbaz","FooBarBaz"]]),new Map([["foo","Foo"],["bar","Bar"],["baz","Baz"]]),new Map([["foo","Foo"],["bar","Bar"],["baz","Baz"],["foobar","FooBar"],["foobaz","FooBaz"],["barbaz","BarBaz"],["foobarbaz","FooBarBaz"]]),new Map([["foo","Foo"],["bar","Bar"],["baz","Baz"]]),new Map([["foo","Foo"],["bar","Bar"],["baz","Baz"],["foobar","FooBar"],["foobaz","FooBaz"],["barbaz","BarBaz"],["foobarbaz","FooBarBaz"]]),new Map([["Two weeks","Two weeks"],["One month","One month"],["I am flexible","I am flexible"]]),new Map([["Recurring","Recurring"],["One time project","One time project"]]),new Map([["Analysis","Analysis"],["Blog","Blog"],["Ebook","E-book"],["Editorial","Editorial"],["Guide","Guide"],["Infographic","Infographic"],["Interview","Interview"],["News","News"],["Presentation","Presentation"],["Press_Release","Press Release"],["Research","Research"],["Showcase","Showcase"],["Tutorial","Tutorial"]])),u=(new Map([["Headquarters","Headquarters"],["Regional_Headquarters","Regional Headquarters"],["Branch_Office","Branch Office"],["Subsidiary","Subsidiary"]]),new Map([[l.DP.OneTime,"One time"],[l.DP.Retainer,"Retainer"]]),new Map([["Draft","Draft"],["Awaiting_approval","Awaiting approval"],["Rejected","Rejected"],["Private","Private"],["Public","Public"]]),new Map([[l.TE.Apl,"APL"],[l.TE.Assembly,"Assembly"],[l.TE.C,"C"],[l.TE.Csharp,"C#"],[l.TE.Cpp,"C++"],[l.TE.Clojure,"Clojure"],[l.TE.Cobol,"COBOL"],[l.TE.Crystal,"Crystal"],[l.TE.Dart,"Dart"],[l.TE.Delphi,"Delphi"],[l.TE.Elixir,"Elixir"],[l.TE.Erlang,"Erlang"],[l.TE.Fsharp,"F#"],[l.TE.Go,"Go"],[l.TE.Groovy,"Groovy"],[l.TE.Haskell,"Haskell"],[l.TE.HtmlAndCss,"HTML & CSS"],[l.TE.Java,"Java"],[l.TE.JavaScript,"JavaScript"],[l.TE.Julia,"Julia"],[l.TE.Kotlin,"Kotlin"],[l.TE.Lisp,"Lisp"],[l.TE.Matlab,"MATLAB"],[l.TE.ObjectiveC,"Objective-C"],[l.TE.Perl,"Perl"],[l.TE.Php,"PHP"],[l.TE.PowerShell,"PowerShell"],[l.TE.Python,"Python"],[l.TE.R,"R"],[l.TE.Ruby,"Ruby"],[l.TE.Rust,"Rust"],[l.TE.Scala,"Scala"],[l.TE.Sql,"SQL"],[l.TE.Swift,"Swift"],[l.TE.TypeScript,"TypeScript"],[l.TE.UnixShell,"Unix shell"],[l.TE.VisualBasic,"Visual Basic"]])),d=new Map([[l.bn.AmazonWebServices,"Amazon Web Services"],[l.bn.Android,"Android"],[l.bn.Azure,"Azure"],[l.bn.DigitalOcean,"DigitalOcean"],[l.bn.Docker,"Docker"],[l.bn.GoogleCloud,"Google Cloud"],[l.bn.Heroku,"Heroku"],[l.bn.IbmCloud,"IBM Cloud"],[l.bn.IOs,"iOS"],[l.bn.Kubernetes,"Kubernetes"],[l.bn.Linux,"Linux"],[l.bn.Lxc,"LXC"],[l.bn.MacOs,"MacOS"],[l.bn.OracleCloud,"Oracle Cloud"],[l.bn.SalesforcePlatform,"Salesforce Platform"],[l.bn.Windows,"Windows"]]),p=new Map([[l.a4.DotNet,".NET"],[l.a4.Angular,"Angular"],[l.a4.AngularJs,"AngularJS"],[l.a4.ApacheHBase,"Apache HBase"],[l.a4.ApacheSpark,"Apache Spark"],[l.a4.AsPdotNet,"ASP.NET"],[l.a4.BackboneJs,"Backbone.js"],[l.a4.Bootstrap,"Bootstrap"],[l.a4.CakePhp,"CakePHP"],[l.a4.Cassandra,"Cassandra"],[l.a4.Cordova,"Cordova"],[l.a4.Django,"Django"],[l.a4.Drupal,"Drupal"],[l.a4.Elasticsearch,"Elasticsearch"],[l.a4.Electron,"Electron"],[l.a4.EmberJs,"Ember.js"],[l.a4.Express,"Express"],[l.a4.FastApi,"FastAPI"],[l.a4.Firebase,"Firebase"],[l.a4.Flask,"Flask"],[l.a4.Flutter,"Flutter"],[l.a4.Gatsby,"Gatsby"],[l.a4.Hadoop,"Hadoop"],[l.a4.IbmDb2,"IBM Db2"],[l.a4.Joomla,"Joomla"],[l.a4.JQuery,"jQuery"],[l.a4.Laravel,"Laravel"],[l.a4.Meteor,"Meteor"],[l.a4.MicrosoftSqlServer,"Microsoft SQL Server"],[l.a4.MongoDb,"MongoDB"],[l.a4.MySqlOrMariaDb,"MySQL / MariaDB"],[l.a4.NextJs,"Next.js"],[l.a4.NodeJs,"Node.js"],[l.a4.NumPy,"NumPy"],[l.a4.OracleDatabase,"Oracle Database"],[l.a4.Pandas,"Pandas"],[l.a4.Play,"Play"],[l.a4.PostgreSql,"PostgreSQL"],[l.a4.PyTorch,"PyTorch"],[l.a4.Qt,"Qt"],[l.a4.Quasar,"Quasar"],[l.a4.React,"React"],[l.a4.ReactNative,"React Native"],[l.a4.Redis,"Redis"],[l.a4.RubyOnRails,"Ruby on Rails"],[l.a4.SailsJs,"Sails.js"],[l.a4.Spring,"Spring"],[l.a4.SqLite,"SQLite"],[l.a4.Struts,"Struts"],[l.a4.Svelte,"Svelte"],[l.a4.Symfony,"Symfony"],[l.a4.TensorFlow,"TensorFlow"],[l.a4.Unity,"Unity"],[l.a4.UnrealEngine,"Unreal_Engine"],[l.a4.VueJs,"Vue.js"],[l.a4.WordPress,"WordPress"]]),f=(new Map([["Unverified","Unverified"],["Verified","Verified"],["TDA_Verified","TDA Verified"]]),new Map([["Open","Open"],["Closed","Closed"]]),new Map([["Pitching","Pitching"],["Negotiation","Negotiation"],["Finished","Finished"],["Cancelled","Cancelled"]]),new Map([["Article","Article"],["Case_Study","Case Study"],["Tool","Tool"],["Predefined_Project","Predefined Project"],["Timed_Project","Timed Project"]]),new Map([["Project","Project"],["Round_1","Round 1"],["Round_2","Round 2"]]),new Map([["Approved_Private","Approved Private"],["Approved_Public","Approved Public"],["Buyer","Buyer"],["Seller_Product","Seller Product"],["Seller_Service","Seller Service"]]),new Map([[l.FP.InProgress,"In progress"],[l.FP.Completed,"Completed"],[l.FP.Pending,"Pending"],[l.FP.Canceled,"Canceled"]])),h=new Map([["Foo","Foo"],["Bar","Bar"],["Baz","Baz"]]),m=(new Map([["inProgress","In progress"],["complete","Complete"],["pending","Pending"],["Pending","Pending"],["Completed","Completed"],["Canceled","Canceled"]]),new Map([["Finished","Finished"],["In_progress","In progress"],["Paused","Paused"],["Pending","Pending"]]),new Map([["Draft","Draft"],["Active","Active"],["Paid","Paid"],["Finished","Finished"],["In_progress","In progress"],["Paused","Paused"],["Cancelled","Cancelled"],["Pending","Pending"],["Due","Due"]])),v=(new Map([["0:30","0:30"],["1:00","1:00"],["1:30","1:30"],["2:00","2:00"],["2:30","2:30"],["3:00","3:00"],["3:30","3:30"],["4:00","4:00"],["4:30","4:30"],["5:00","5:00"],["5:30","5:30"],["6:00","6:00"],["6:30","6:30"],["7:00","7:00"],["7:30","7:30"],["8:00","8:00"],["8:30","8:30"],["9:00","9:00"],["9:30","9:30"],["10:00","10:00"],["10:30","10:30"],["11:00","11:00"],["11:30","11:30"],["12:00","12:00"],["12:30","12:30"],["13:00","13:00"],["13:30","13:30"],["14:00","14:00"],["14:30","14:30"],["15:00","15:00"],["15:30","15:30"],["16:00","16:00"],["16:30","16:30"],["17:00","17:00"],["17:30","17:30"],["18:00","18:00"],["18:30","18:30"],["19:00","19:00"],["19:30","19:30"],["20:00","20:00"],["20:30","20:30"],["21:00","21:00"],["21:30","21:30"],["22:00","22:00"],["22:30","22:30"],["23:00","23:00"],["23:30","23:30"],["00:00","00:00"]]),new Map([[l.bG.InProgress,"In progress"],[l.bG.Late,"Late"],[l.bG.Paid,"Paid"]])),g=new Map([[l.Ru.Canceled,"Canceled"],[l.Ru.Accepted,"Accepted"],[l.Ru.Draft,"Draft"],[l.Ru.Active,"Active"],[l.Ru.Negotiation,"Negotiation"]]),y=new Map([[l.tg.Pending,"Pending"],[l.tg.InProgress,"In progress"],[l.tg.Completed,"Completed"],[l.tg.Approved,"Approved"],[l.tg.Negotiation,"Negotiation"],[l.tg.UnderReview,"Under review"]]),b=new Map([[l.Tl.Pending,"Pending"],[l.Tl.Draft,"Draft"],[l.Tl.Active,"Active"],[l.Tl.Closed,"Closed"]]),x=new Map([[l.U_.Pending,"Pending"],[l.U_.Draft,"Draft"],[l.U_.Archived,"Archived"],[l.U_.Published,"Published"],[l.U_.Verified,"Verified"]]),w=(new Map([["0:30","0:30"],["1:00","1:00"],["1:30","1:30"],["2:00","2:00"],["2:30","2:30"],["3:00","3:00"],["3:30","3:30"],["4:00","4:00"],["4:30","4:30"],["5:00","5:00"],["5:30","5:30"],["6:00","6:00"],["6:30","6:30"],["7:00","7:00"],["7:30","7:30"],["8:00","8:00"],["8:30","8:30"],["9:00","9:00"],["9:30","9:30"],["10:00","10:00"],["10:30","10:30"],["11:00","11:00"],["11:30","11:30"],["12:00","12:00"],["12:30","12:30"],["13:00","13:00"],["13:30","13:30"],["14:00","14:00"],["14:30","14:30"],["15:00","15:00"],["15:30","15:30"],["16:00","16:00"],["16:30","16:30"],["17:00","17:00"],["17:30","17:30"],["18:00","18:00"],["18:30","18:30"],["19:00","19:00"],["19:30","19:30"],["20:00","20:00"],["20:30","20:30"],["21:00","21:00"],["21:30","21:30"],["22:00","22:00"],["22:30","22:30"],["23:00","23:00"],["23:30","23:30"],["24:00","24:00"]]),new Map([[2,"2"],[3,"3"],[4,"4"],[5,"5"],[6,"6"],[7,"7"],[8,"8"],[9,"9"],[10,"10"],[11,"11"],[12,"12"]]));!function(e){e.ToolCard="Tool_Card",e.ServicePackageCard="Service_Package_Card",e.PriceCard="Price_Card",e.CompanyCard="Company_Card",e.CaseStudyCard="Case_Study_Card",e.TimedProjectCard="Timed_Project_Card",e.ArticleCard="Article_Card"}(r||(r={})),function(e){e.CASE_STUDY="Case_study",e.SERVICE_PACKAGE="Service_package"}(o||(o={})),function(e){e.Task="task",e.Subtask="subtask",e.Milestone="milestone,"}(i||(i={})),function(e){e.Paid="Paid",e.In_progress="In progress",e.Late="Late"}(a||(a={})),function(e){e.Delete="Delete",e.Cancel="Cancel",e.Confirm="Confirm"}(s||(s={}));var C,j=new Map([["pending","Pending"],["in_progress","In progress"],["completed","Completed"],["canceled","Canceled"]]),S=(new Map([["Pending","Pending"],["In_progress","In progress"],["Completed","Completed"],["Canceled","Canceled"],["Unapproved","Unapproved"]]),new Map([[l.hv.Draft,"Draft"],[l.hv.Pending,"Pending"],[l.hv.FirstRound,"Round 1"],[l.hv.SecondRound,"Round 2"],[l.hv.FirstRoundRejected,"Rejected"],[l.hv.SecondRoundRejected,"Rejected"],[l.hv.FirstRoundWithdrawn,"Withdrawn"],[l.hv.SecondRoundWithdrawn,"Withdrawn"],[l.hv.Chosen,"Chosen"],[l.hv.Hired,"Hired"],[l.hv.Archived,"Archived"]])),k=new Map([[l.rd.Global,"Global"],[l.rd.Local,"Local"],[l.rd.Undefined,"Don't mind"]]);!function(e){e.AL="AL",e.AK="AK",e.AS="AS",e.AZ="AZ",e.AR="AR",e.CA="CA",e.CO="CO",e.CT="CT",e.DE="DE",e.DC="DC",e.FM="FM",e.FL="FL",e.GA="GA",e.GU="GU",e.HI="HI",e.ID="ID",e.IL="IL",e.IN="IN",e.IA="IA",e.KS="KS",e.KY="KY",e.LA="LA",e.ME="ME",e.MH="MH",e.MD="MD",e.MA="MA",e.MI="MI",e.MN="MN",e.MS="MS",e.MO="MO",e.MT="MT",e.NE="NE",e.NV="NV",e.NH="NH",e.NJ="NJ",e.NM="NM",e.NY="NY",e.NC="NC",e.ND="ND",e.MP="MP",e.OH="OH",e.OK="OK",e.OR="OR",e.PW="PW",e.PA="PA",e.PR="PR",e.RI="RI",e.SC="SC",e.SD="SD",e.TN="TN",e.TX="TX",e.UT="UT",e.VT="VT",e.VI="VI",e.VA="VA",e.WA="WA",e.WV="WV",e.WI="WI",e.WY="WY"}(C||(C={}));var Z=new Map([[C.AK,"Alaska"],[C.AL,"Alabama"],[C.AR,"Arkansas"],[C.AS,"American Samoa"],[C.AZ,"Arizona"],[C.CA,"California"],[C.CO,"Colorado"],[C.CT,"Connecticut"],[C.DC,"District Of Columbia"],[C.DE,"Delaware"],[C.FL,"Florida"],[C.GA,"Georgia"],[C.GU,"Guam"],[C.HI,"Hawaii"],[C.IA,"Iowa"],[C.ID,"Idaho"],[C.IL,"Illinois"],[C.IN,"Indiana"],[C.KS,"Kansas"],[C.KY,"Kentucky"],[C.LA,"Louisiana"],[C.MA,"Massachusetts"],[C.MD,"Maryland"],[C.ME,"Maine"],[C.MI,"Michigan"],[C.MN,"Minnesota"],[C.MO,"Missouri"],[C.MP,"Northern Mariana Islands"],[C.MS,"Mississippi"],[C.MT,"Montana"],[C.NC,"North Carolina"],[C.ND,"North Dakota"],[C.NE,"Nebraska"],[C.NH,"New Hampshire"],[C.NJ,"New Jersey"],[C.NM,"New Mexico"],[C.NV,"Nevada"],[C.NY,"New York"],[C.OH,"Ohio"],[C.OK,"Oklahoma"],[C.OR,"Oregon"],[C.PA,"Pennsylvania"],[C.PR,"Puerto Rico"],[C.RI,"Rhode Island"],[C.SC,"South Carolina"],[C.SD,"South Dakota"],[C.TN,"Tennessee"],[C.TX,"Texas"],[C.UT,"Utah"],[C.VA,"Virginia"],[C.VI,"Virgin Islands"],[C.VT,"Vermont"],[C.WA,"Washington"],[C.WI,"Wisconsin"],[C.WV,"West Virginia"],[C.WY,"Wyoming"]]),O=new Map([[l.JN.Event,"Meeting"],[l.JN.Milestone,"Milestone due"],[l.JN.Payment,"Payment due"],[l.JN.PitchDeadline,"Pitching closes "],[l.JN.Subtask,"Subtask due"],[l.JN.Task,"Task due"]])},22616:function(e,t,n){"use strict";var r;n.d(t,{W:function(){return r},y:function(){return o}}),function(e){e.AboutOffice="about_office",e.AbaoutUsHero="about-us-hero",e.AccessAtAnyTimeBuyer="access-at-any-time-buyer",e.AccessAtAnyTimeSeller="access-at-any-time-seller",e.AccessibleSupportBuyer="accessible-support-buyer",e.AccessibleSupportSeller="accessible-support-seller",e.ArchiveHero="archive-hero",e.AutomaticNotificationsBuyer="automatic-notifications-buyer",e.BuildYourProjectBig="build_your_project_big",e.BuildYourProjectSmall="build_your_project_small",e.BuildYourProjectTeam="build-your-project-team",e.CaseStudyArchiveHero="case-study-archive-hero",e.CaseStudyArchiveMacbook="case-study-archive-macbook",e.ClearCommunicationBuyer="clear-communication-buyer",e.ClearCommunicationSeller="clear-communication-seller",e.Communication="communication",e.CompleteMilestonesSeller="complete-milestones-seller",e.ConfirmAccountBuyer="confirm-account-buyer",e.ConfirmAccountBuyerxl="confirm-account-buyerxl",e.ConfirmAccountSeller="confirm-account-seller",e.ConfirmAccountSellerxl="confirm-account-sellerxl",e.ConsolidateYourProjectsBuyer="consolidate-your-projects-buyer",e.ConsolidateYourProjectsSeller="consolidate-your-projects-seller",e.CreateProfile="create-profile",e.CreateInRealTimeBuyer="create-in-real-time-buyer",e.CreateInRealTimeSeller="create-in-real-time-seller",e.DoItYourself="do-it-yourself",e.DigitalContract="digital-contract",e.Dublin="dublin",e.DublinMobile="dublin-mobile",e.EasyResourcePlanningSeller="easy-resource-planning-seller",e.EliminateLegalFeesBuyer="eliminate-legal-fees-buyer",e.EliminateLegalFeesSeller="eliminate-legal-fees-seller",e.GetInsightsBuyer="get-insights-buyer",e.GetInsightsSeller="get-insights-seller",e.GetFullControlBuyer="get-full-control-buyer",e.GridForSellers="grid-for-sellers",e.GridProjectBenefits="grid-project-benefits",e.HireSeller="hire-seller",e.HomeContracts="home-contracts",e.HomeFeatures="home-features",e.HomeE2E="home-e2e",e.HomeHealth="home-health",e.HomeMap="home-map",e.HomeMapSvg="home-map-svg",e.HomeMilestones="home-milestones",e.HomePayments="home-payments",e.HomeSimplify="home-simplify",e.HowToHireHero="how-to-hire-hero",e.HowToFindWorkHero="how-to-find-work-hero",e.Hungary="hungary",e.HungaryMobile="hungary-mobile",e.KeepInTouchBuyer="keep_in_touch_buyer",e.KeepInTouchSeller="keep_in_touch_seller",e.Laptop="laptop",e.Laptop2="laptop2",e.LetSponaHandleIt="let-spona-handle-it",e.LetSponaHandleItHero="let-spona-handle-it-hero",e.LetSponaHandleItSmall="let-spona-handle-it-small",e.ListYourRequirements="list-your-requirements",e.MacbookSellerArchive="macbook-seller-archive",e.MakeDataDrivenDecisionsBuyer="make-data-driven-decisions-buyer",e.MakeDataDrivenDecisionsSeller="make-data-driven-decisions-seller",e.ManageMilestonesAndTasksBuyer="manage_milestones_and_tasks_buyer",e.ManageMilestonesAndTasksSeller="manage_milestones_and_tasks_seller",e.MilestonesAndTasksHero="milestones-and-tasks-hero",e.MonitorYourKPIs="monitor-your-kpis",e.NewPasswordChangeSection="new-password-change-section",e.Office="office",e.Office2="office2",e.Office3="office3",e.Office4="office4",e.Office5="office5",e.OnePlatformBuyer="one-platform-buyer",e.OnePlatformSeller="one-platform-seller",e.OurJourneyCarousel="our-journey-carousel",e.OurJourneyCarousel2="our-journey-carousel2",e.OurJourneyCarousel3="our-journey-carousel3",e.OurJourneyCarousel4="our-journey-carousel4",e.OurJourneyCarousel5="our-journey-carousel5",e.OurJourneyCarousel6="our-journey-carousel6",e.OurJourneyCarousel7="our-journey-carousel7",e.OurJourneyCarousel8="our-journey-carousel8",e.OurJourneyCarouselMobile="our-journey-carousel-mobile",e.OurJourneyCarouselMobile2="our-journey-carousel-mobile2",e.OurJourneyCarouselMobile3="our-journey-carousel-mobile3",e.OurJourneyCarouselMobile4="our-journey-carousel-mobile4",e.OurJourneyCarouselMobile5="our-journey-carousel-mobile5",e.OurJourneyCarouselMobile6="our-journey-carousel-mobile6",e.OurJourneyCarouselMobile7="our-journey-carousel-mobile7",e.OurJourneyCarouselMobile8="our-journey-carousel-mobile8",e.PaymentSuccessful="payment-successful",e.People1="people1",e.People2="people2",e.People3="people3",e.ProgressYourProjectBuyer="progress-your-project-buyer",e.ProjectReportsBuyer="project_reports_buyer",e.ProjectReportsSeller="project_reports_seller",e.PublishCaseStudy="publish-case-study",e.QuickUpdatesBuyer="quick-updates-buyer",e.QuickUpdatesSeller="quick-updates-seller",e.RecordYourActivitiesBuyer="record-your-activities-buyer",e.RecordYourActivitiesSeller="record-your-activities-seller",e.ReduceDataMicromanagementBuyer="reduce-data-micromanagement-buyer",e.ReduceDataMicromanagementSeller="reduce-data-micromanagement-seller",e.ResolveIssuesBuyer="resolve-issues-buyer",e.ResolveIssuesSeller="resolve-issues-seller",e.ReviewYourCandidates="review-your-candidates",e.ReviewPitches="review-pitches",e.SaveYourTimeAndMoney="save-your-time-and-money",e.SecureProcessingBuyer="secure-processing-buyer",e.SecureProcessingSeller="secure-processing-seller",e.ShareYourProgressSeller="share-your-progress-seller",e.SignContractsBuyer="sign_contracts_buyer",e.SignContractsSeller="sign_contracts_seller",e.SignDigitallyBuyer="sign-digitally-buyer",e.SignDigitallySeller="sign-digitally-seller",e.SmartBudgetAllocationBuyer="smart-budget-allocation-buyer",e.SponaDashboard="spona-dashboard",e.SponaGives="spona-gives",e.SponaInNumbers="spona-in-numbers",e.SponaMakes="spona-makes",e.SponaMakesSubpage="spona-makes-subpage",e.SponaMakesTimedProjects="spona-makes-timed-projects",e.SponaMediaHero="spona-media-hero",e.StayInSyncSeller="stay-in-sync-seller",e.StandardizeYourProcessesBuyer="standardize-your-processes-buyer",e.StandardizeYourProcessesSeller="standardize-your-processes-seller",e.SubmitYourPitch="submit-your-pitch",e.SubmitYourProject="submit-your-project",e.TimedProjectSubageHero="timed-project-subpage-hero",e.TrackAndProcessPaymentsBuyer="track_and_process_payments_buyer",e.TrackAndProcessPaymentsSeller="track_and_process_payments_seller",e.TrackProjectHealthBuyer="track-project-health-buyer",e.TrackProjectHealthSeller="track-project-health-seller",e.TrackYourMetricsBuyer="track-your-metrics-buyer",e.TransparentEditingBuyer="transparent-editing-buyer",e.TransparentEditingSeller="transparent-editing-seller",e.TransparentPaymentsSeller="transparent-payments-seller",e.TransparentTransactionsBuyer="transparent-transactions-buyer",e.TransparentTransactionsSeller="transparent-transactions-seller",e.UK="uk",e.UKMobile="uk-mobile",e.USA="usa",e.USAMobile="usa-mobile",e.Zagreb="zagreb",e.ZagrebMobile="zagreb-mobile"}(r||(r={}));var o=new Map([[r.AboutOffice,"about-office.png"],[r.AbaoutUsHero,"about-us-hero.png"],[r.AccessibleSupportBuyer,"accessible-support-buyer.svg"],[r.AccessibleSupportSeller,"accessible-support-seller.svg"],[r.AccessAtAnyTimeBuyer,"access-at-any-time-buyer.svg"],[r.AccessAtAnyTimeSeller,"access-at-any-time-seller.svg"],[r.ArchiveHero,"archive-hero.jpg"],[r.AutomaticNotificationsBuyer,"automatic-notifications-buyer.svg"],[r.BuildYourProjectBig,"build-your-projects-big.png"],[r.BuildYourProjectSmall,"build-your-projects-small.png"],[r.BuildYourProjectTeam,"build-your-project-team.png"],[r.CaseStudyArchiveHero,"case-study-archive-hero.jpg"],[r.CaseStudyArchiveMacbook,"case_study_archive_macbook.png"],[r.ClearCommunicationBuyer,"clear-communication-buyer.svg"],[r.ClearCommunicationSeller,"clear-communication-seller.svg"],[r.Communication,"communication.png"],[r.CompleteMilestonesSeller,"complete-milestones-seller.svg"],[r.ConfirmAccountBuyer,"confirm-account-buyer.png"],[r.ConfirmAccountBuyerxl,"confirm-account-buyerxl.png"],[r.ConfirmAccountSeller,"confirm-account-seller.png"],[r.ConfirmAccountSellerxl,"confirm-account-sellerxl.png"],[r.ConsolidateYourProjectsBuyer,"consolidate-your-projects-buyer.svg"],[r.ConsolidateYourProjectsSeller,"consolidate-your-projects-seller.svg"],[r.CreateProfile,"create-profile.svg"],[r.CreateInRealTimeBuyer,"create-in-real-time-buyer.svg"],[r.CreateInRealTimeSeller,"create-in-real-time-seller.svg"],[r.DoItYourself,"do-it-yourself.svg"],[r.DigitalContract,"digital-contract.png"],[r.Dublin,"dublin.jpg"],[r.DublinMobile,"dublin-mobile.jpg"],[r.EasyResourcePlanningSeller,"easy-resource-planning-seller.svg"],[r.EliminateLegalFeesBuyer,"eliminate-legal-fees-buyer.svg"],[r.EliminateLegalFeesSeller,"eliminate-legal-fees-seller.svg"],[r.GetFullControlBuyer,"get-full-control-buyer.svg"],[r.GetInsightsBuyer,"get-insights-buyer.svg"],[r.GetInsightsSeller,"get-insights-seller.svg"],[r.GridForSellers,"grid-for-sellers.png"],[r.GridProjectBenefits,"grid-project-benefits.png"],[r.HireSeller,"hire-a-seller.svg"],[r.HomeContracts,"home-contracts.png"],[r.HomeFeatures,"home-features.png"],[r.HomeE2E,"home-e2e.png"],[r.HomeHealth,"home-health.png"],[r.HomeMap,"home-map.png"],[r.HomeMapSvg,"home-map.svg"],[r.HomeMilestones,"home-milestones.png"],[r.HomePayments,"home-payment.png"],[r.HomeSimplify,"home-simplify.png"],[r.HowToHireHero,"how-to-hire-hero.png"],[r.HowToFindWorkHero,"how-to-find-work-hero.png"],[r.Hungary,"hungary.jpg"],[r.HungaryMobile,"hungary-mobile.jpg"],[r.KeepInTouchBuyer,"keep-in-touch-buyer.svg"],[r.KeepInTouchSeller,"keep-in-touch-seller.svg"],[r.Laptop,"laptop.png"],[r.Laptop2,"laptop2.png"],[r.LetSponaHandleIt,"let-spona-handle-it.svg"],[r.LetSponaHandleItHero,"let-spona-handle-it-hero.png"],[r.LetSponaHandleItSmall,"let-spona-handle-it-small.png"],[r.ListYourRequirements,"list-your-requirements.svg"],[r.MacbookSellerArchive,"macbook-seller-archive.png"],[r.MakeDataDrivenDecisionsBuyer,"make-data-driven-decisions-buyer.svg"],[r.MakeDataDrivenDecisionsSeller,"make-data-driven-decisions-seller.svg"],[r.ManageMilestonesAndTasksBuyer,"manage-milestones-and-tasks-buyer.svg"],[r.ManageMilestonesAndTasksSeller,"manage-milestones-and-tasks-seller.svg"],[r.MilestonesAndTasksHero,"milestones-and-tasks-hero.png"],[r.MonitorYourKPIs,"monitor-your-kpis.png"],[r.NewPasswordChangeSection,"new-password-side-image.jpg"],[r.Office,"office.png"],[r.Office2,"office2.png"],[r.Office3,"office3.png"],[r.Office4,"office4.png"],[r.Office5,"office5.png"],[r.OnePlatformBuyer,"one-platform-buyer.svg"],[r.OnePlatformSeller,"one-platform-seller.svg"],[r.OurJourneyCarousel,"our-journey-carousel.png"],[r.OurJourneyCarousel2,"our-journey-carousel2.png"],[r.OurJourneyCarousel3,"our-journey-carousel3.png"],[r.OurJourneyCarousel4,"our-journey-carousel4.png"],[r.OurJourneyCarousel5,"our-journey-carousel5.png"],[r.OurJourneyCarousel6,"our-journey-carousel6.png"],[r.OurJourneyCarousel7,"our-journey-carousel7.png"],[r.OurJourneyCarousel8,"our-journey-carousel8.png"],[r.OurJourneyCarouselMobile,"our-journey-carousel-mobile.png"],[r.OurJourneyCarouselMobile2,"our-journey-carousel-mobile2.png"],[r.OurJourneyCarouselMobile3,"our-journey-carousel-mobile3.png"],[r.OurJourneyCarouselMobile4,"our-journey-carousel-mobile4.png"],[r.OurJourneyCarouselMobile5,"our-journey-carousel-mobile5.png"],[r.OurJourneyCarouselMobile6,"our-journey-carousel-mobile6.png"],[r.OurJourneyCarouselMobile7,"our-journey-carousel-mobile7.png"],[r.OurJourneyCarouselMobile8,"our-journey-carousel-mobile8.png"],[r.PaymentSuccessful,"payment-successful.png"],[r.People1,"people1.png"],[r.People2,"people2.png"],[r.People3,"people3.png"],[r.ProgressYourProjectBuyer,"progress-your-project-buyer.svg"],[r.ProjectReportsBuyer,"project-reports-buyer.svg"],[r.ProjectReportsSeller,"project-reports-seller.svg"],[r.PublishCaseStudy,"publish-case-study.svg"],[r.QuickUpdatesBuyer,"quick-updates-buyer.svg"],[r.QuickUpdatesSeller,"quick-updates-seller.svg"],[r.RecordYourActivitiesBuyer,"record-your-activities-buyer.svg"],[r.RecordYourActivitiesSeller,"record-your-activities-seller.svg"],[r.ReduceDataMicromanagementBuyer,"reduce-data-micromanagement-buyer.svg"],[r.ReduceDataMicromanagementSeller,"reduce-data-micromanagement-seller.svg"],[r.ResolveIssuesBuyer,"resolve-issues-buyer.svg"],[r.ResolveIssuesSeller,"resolve-issues-seller.svg"],[r.ReviewPitches,"review-pitches.svg"],[r.ReviewYourCandidates,"review-your-candidates.svg"],[r.SaveYourTimeAndMoney,"save-your-time-and-money.svg"],[r.SecureProcessingBuyer,"secure-processing-buyer.svg"],[r.SecureProcessingSeller,"secure-processing-seller.svg"],[r.ShareYourProgressSeller,"share-your-progress-seller.svg"],[r.SignContractsBuyer,"sign-contracts-buyer.svg"],[r.SignContractsSeller,"sign-contracts-seller.svg"],[r.SignDigitallyBuyer,"sign-digitally-buyer.svg"],[r.SignDigitallySeller,"sign-digitally-seller.svg"],[r.SmartBudgetAllocationBuyer,"smart-budget-allocation-buyer.svg"],[r.SponaDashboard,"login-carousel-img1.png"],[r.SponaGives,"spona-gives.png"],[r.SponaInNumbers,"spona-in-numbers.svg"],[r.SponaMakes,"spona-makes.png"],[r.SponaMakesTimedProjects,"spona-makes-timed-projects.png"],[r.SponaMakesSubpage,"spona-makes-subpage.png"],[r.SponaMediaHero,"spona-media-hero.png"],[r.StandardizeYourProcessesBuyer,"standardize-your-processes-buyer.svg"],[r.StandardizeYourProcessesSeller,"standardize-your-processes-seller.svg"],[r.StayInSyncSeller,"stay-in-sync-seller.svg"],[r.SubmitYourPitch,"submit-your-pitch.svg"],[r.SubmitYourProject,"submit-your-project.svg"],[r.TimedProjectSubageHero,"timed-project-subpage-hero.png"],[r.TrackAndProcessPaymentsBuyer,"track-and-process-payments-buyer.svg"],[r.TrackAndProcessPaymentsSeller,"track-and-process-payments-seller.svg"],[r.TrackProjectHealthBuyer,"track-project-health-buyer.svg"],[r.TrackProjectHealthSeller,"track-project-health-seller.svg"],[r.TrackYourMetricsBuyer,"track-your-metrics-buyer.svg"],[r.TransparentEditingBuyer,"transparent-editing-buyer.svg"],[r.TransparentEditingSeller,"transparent-editing-seller.svg"],[r.TransparentPaymentsSeller,"transparent-payments-seller.svg"],[r.TransparentTransactionsBuyer,"transparent-transactions-buyer.svg"],[r.TransparentTransactionsSeller,"transparent-transactions-seller.svg"],[r.UK,"uk.jpg"],[r.UKMobile,"uk-mobile.jpg"],[r.USA,"usa.jpg"],[r.USAMobile,"usa-mobile.jpg"],[r.Zagreb,"zagreb.jpg"],[r.ZagrebMobile,"zagreb-mobile.jpg"]])},19049:function(e,t,n){"use strict";n.d(t,{U4:function(){return N},pf:function(){return Y},RK:function(){return C},Z:function(){return L},ZW:function(){return S},FG:function(){return H},hR:function(){return B},pu:function(){return Z},p$:function(){return j},wc:function(){return U},XG:function(){return q},cM:function(){return G},dN:function(){return _},td:function(){return z},xG:function(){return M},qJ:function(){return O},y3:function(){return T},EE:function(){return V},_2:function(){return A},Ek:function(){return E},mB:function(){return te},$W:function(){return D},wQ:function(){return W},vZ:function(){return J},_M:function(){return R},DI:function(){return K},HO:function(){return P},Yu:function(){return k},Bp:function(){return X},oN:function(){return Q},VG:function(){return I},$G:function(){return F},My:function(){return $},C4:function(){return ee}});var r=n(50189),o=n(649),i=(n(45133),n(31853),n(99227)),a=n(53549);n(30303);var s=n.p+"static/media/jpg.6f38a4842ff093da157eb040374c42e3.svg";var l=n.p+"static/media/link.ce09bae83004ea7a13390270fe4dae9b.svg";var c=n.p+"static/media/mov.87da332e5173ffa64458de5494ce236f.svg";var u=n.p+"static/media/mp3.538ab181fa77f5b86907759ffbf1ac3b.svg";var d=n.p+"static/media/pdf.d477ecb5ae2edf121b9f408b53aea6f1.svg";var p=n.p+"static/media/ppt.abe3af066960d1a6337961740311bc84.svg";var f=n.p+"static/media/txt.8e87e6bd496c41de3c0a9af6d84cc0bd.svg";var h=n.p+"static/media/unknown.0f1d6ca6f0912aee2856670d37815793.svg";var m=n.p+"static/media/word.0acc08a8e2145eb7a5d48129a855ab72.svg";var v=n.p+"static/media/xlsx.3d23c1062917d0ca28d19a75af8d8c4f.svg";var g=n.p+"static/media/zip.4225bcdf43352841599ff08e2b0dff5d.svg",y=n(84995),b=n(4076),x=n(22616),w=n(15006),C=function(e){return e?e.charAt(0).toUpperCase()+e.slice(1):e};function j(e){return JSON.parse(JSON.stringify(e))}var S=function(e){if(e){var t=new Date(e),n=t.getMonth()+1,r=t.getDate(),o=n<10?"0".concat(n):n,i=r<10?"0".concat(r):r;return"".concat(o,".").concat(i)}return"-"},k=function(e){if(e){var t=new Date(e),n=t.getFullYear(),r=t.getMonth()+1,o=t.getDate();return"".concat(r,".").concat(o,".").concat(n,".")}return"-"},Z=function(e){return"".concat(e.getFullYear().toString().padStart(4,"0"),"-").concat((e.getMonth()+1).toString().padStart(2,"0"),"-").concat(e.getDate().toString().padStart(2,"0"))},O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"MMM dd, yyyy";if(!e)return t;var r=new Date(e);return(0,w.Z)(r,n)},E=function(){return"MMM dd, yyyy"};function D(e){var t=e.trim().split(/\s+/).length;return Math.ceil(t/225)}function P(e,t){return"#".concat(e.replace(/^#/,"").replace(/../g,(function(e){return"0".concat(Math.min(255,Math.max(0,parseInt(e,16)+t)).toString(16)).substr(-2)})))}var A=function(e){var t=(0,i.Z)(),n=e.split(".");return t.palette[n[0]][n[1]]};var M=function(e,t){switch(t){case a.CF.Eth:case a.CF.Btc:return"".concat(e," ").concat(t);default:return new Intl.NumberFormat("en-US",{style:"currency",currency:t||"usd"}).format(e)}},T=function(e){return new Promise((function(t,n){var r=new FileReader;r.onload=function(){return t(r.result)},r.onerror=function(e){return n(e)},r.readAsDataURL(e)}))},I=function(e){var t=Math.floor(((new Date).getTime()-new Date(e).getTime())/1e3),n=t/31536e3;return n>1?"".concat(Math.floor(n),n>2?" years":" year"):(n=t/2592e3)>1?"".concat(Math.floor(n),n>2?" months":" month"):(n=t/86400)>1?"".concat(Math.floor(n),n>2?" days":" day"):(n=t/3600)>1?"".concat(Math.floor(n),n>2?" hours":" hour"):(n=t/60,"".concat(Math.floor(n),n>2?" minutes":" minute"))};function R(e){return e?parseFloat(e.replaceAll(",","")):0}function F(e,t,n){if(e.length<=t)return e;var r=e.slice(0,t-1);return(n?r.slice(0,r.lastIndexOf(" ")):r)+"\u2026"}var B=function(){return new Map((0,o.Z)(Array.from(a.NF.entries()).sort((function(e,t){return e[1].localeCompare(t[1])}))))},L=new Map([].concat((0,o.Z)(Array.from(y.SC.entries())),(0,o.Z)(Array.from(y.r9.entries())),(0,o.Z)(Array.from(y.R2.entries())),(0,o.Z)(Array.from(y.ud.entries())),(0,o.Z)(Array.from(y.mi.entries())),(0,o.Z)(Array.from(y.HX.entries())),(0,o.Z)(Array.from(y.v7.entries())),(0,o.Z)(Array.from(y.dA.entries())),(0,o.Z)(Array.from(a.Th.entries())),(0,o.Z)(Array.from(a.LC.entries())),(0,o.Z)(Array.from(a.z_.entries())))),N=(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},a.Ru),a.tg),a.FP),a.bG),a.Tl),a.hv),a.U_),a.cM),a.D9),a.xS),_=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.replaceAll(",","");if(""===n)return"";var r=/^\d*\.?(?:\d*)?$/,o=/^\d*\.?(?:\d{0,2})?$/,i=t?o:r;if(i.test(n)){var a=n.split(".");a[0]=a[0].replace(/\B(?=(\d{3})+(?!\d))/g,",");var s=a.join(".");return s.length>1&&"0"===s[0]&&"."!==s[1]?s.substring(1):s}return null},z=function(e){if(!+e)return"0 Bytes";var t=Math.floor(Math.log(e)/Math.log(1024));return"".concat(parseFloat((e/Math.pow(1024,t)).toFixed(0))).concat(["bytes","kb","mb"][t])},H=function(e){var t=e?new Date(e):new Date;return null===t||void 0===t?void 0:t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})},W=function(e){switch(e.split(".").pop()){case"link":return l;case"txt":return f;case"mp3":return u;case"mov":return c;case"zip":return g;case"pdf":return d;case"doc":case"docx":return m;case"xls":case"xlsx":return v;case"ppt":case"pptx":case"keynote":return p;case"jpg":case"jpeg":case"png":case"gif":case"svg":return s;default:return h}},V=function(e){var t,n=e.split(".").pop();return{pdf:"application/pdf",doc:"application/msword",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",xls:"application/vnd.ms-excel",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",ppt:"application/vnd.ms-powerpoint",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation",mp3:"audio/mpeg",mp4:"video/mp4",zip:"application/zip",jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",gif:"image/gif",svg:"image/svg+xml",keynote:"application/x-iwork-keynote-sffkey"}[null!==(t=null===n||void 0===n?void 0:n.toLowerCase())&&void 0!==t?t:""]||""},U=function(e,t){return t in e?t:Object.keys(e).find((function(n){return e[n].find((function(e){return e.id===t}))}))},q=function(e,t){for(var n in e){var r=e[n].find((function(e){return e.id===t}));if(r)return r}},G=function(e,t){var n=Object.keys(t.groups),r=n.reduce((function(e,t){return e[t]=[],e}),{});if(!e)return r;for(var o=0;o<e.length;o+=1)if(e[o][t.groupBy])for(var i=0;i<n.length;i+=1)if(t.groups[n[i]].includes(e[o][t.groupBy])){r[n[i]].push(e[o]);break}return r},Y=function(e,t,n,r,o,i){return e+t===0?0:(n+o+.8*i)/(e-r+t)*100},K=function(e,t){return""===t[e-1]?null:t[e-1]};function J(e){return"true"===e||"false"!==e&&(null===e?null:e)}var X=function(e){var t=e.trim().split(" ");return{firstWord:t.shift(),restOfWords:t.join(" ")}},Q=function(e){return(new DOMParser).parseFromString(e,"text/html").body.textContent||""},$=function(e){window["ga-disable-".concat("G-S8ER4J03EX")]=!e,e&&(b.ZP.initialize("G-S8ER4J03EX"),b.ZP.send("pageview"))},ee=function(e,t){return new URLSearchParams(e.map((function(e){return[t,e]}))).toString()},te=function(e){return"https://tdc-production.ams3.cdn.digitaloceanspaces.com/_public/pages/".concat(x.y.get(e))}},65540:function(e,t,n){"use strict";n.d(t,{J:function(){return i}});var r=n(30303),o=n(58929),i=function(){var e=(0,o.useQueryClient)();return(0,r.useCallback)((function(){e.invalidateQueries()}),[e])}},36823:function(e,t,n){"use strict";var r=n(58929),o=n(23571);t.Z=function(e){var t=e.resource;return(0,r.useMutation)((function(e){return n=e.id,r=null===e||void 0===e?void 0:e.data,(i=null===e||void 0===e?void 0:e.suffix)?r?o.Z.patch("".concat(t,"/").concat(n,"/").concat(i),r):o.Z.patch("".concat(t,"/").concat(n,"/").concat(i)):r?o.Z.patch("".concat(t,"/").concat(n),r):o.Z.patch("".concat(t,"/").concat(n));var n,r,i}))}},42716:function(e,t,n){"use strict";n.d(t,{Z:function(){return oe}});var r=n(10527),o=Math.abs,i=String.fromCharCode,a=Object.assign;function s(e){return e.trim()}function l(e,t,n){return e.replace(t,n)}function c(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function p(e){return e.length}function f(e){return e.length}function h(e,t){return t.push(e),e}var m=1,v=1,g=0,y=0,b=0,x="";function w(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:m,column:v,length:a,return:""}}function C(e,t){return a(w("",null,null,"",null,null,0),e,{length:-e.length},t)}function j(){return b=y>0?u(x,--y):0,v--,10===b&&(v=1,m--),b}function S(){return b=y<g?u(x,y++):0,v++,10===b&&(v=1,m++),b}function k(){return u(x,y)}function Z(){return y}function O(e,t){return d(x,e,t)}function E(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function D(e){return m=v=1,g=p(x=e),y=0,[]}function P(e){return x="",e}function A(e){return s(O(y-1,I(91===e?e+2:40===e?e+1:e)))}function M(e){for(;(b=k())&&b<33;)S();return E(e)>2||E(b)>3?"":" "}function T(e,t){for(;--t&&S()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return O(e,Z()+(t<6&&32==k()&&32==S()))}function I(e){for(;S();)switch(b){case e:return y;case 34:case 39:34!==e&&39!==e&&I(b);break;case 40:41===e&&I(e);break;case 92:S()}return y}function R(e,t){for(;S()&&e+b!==57&&(e+b!==84||47!==k()););return"/*"+O(t,y-1)+"*"+i(47===e?e:S())}function F(e){for(;!E(k());)S();return O(e,y)}var B="-ms-",L="-moz-",N="-webkit-",_="comm",z="rule",H="decl",W="@keyframes";function V(e,t){for(var n="",r=f(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function U(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case H:return e.return=e.return||e.value;case _:return"";case W:return e.return=e.value+"{"+V(e.children,r)+"}";case z:e.value=e.props.join(",")}return p(n=V(e.children,r))?e.return=e.value+"{"+n+"}":""}function q(e){return P(G("",null,null,null,[""],e=D(e),0,[0],e))}function G(e,t,n,r,o,a,s,d,f){for(var m=0,v=0,g=s,y=0,b=0,x=0,w=1,C=1,O=1,E=0,D="",P=o,I=a,B=r,L=D;C;)switch(x=E,E=S()){case 40:if(108!=x&&58==u(L,g-1)){-1!=c(L+=l(A(E),"&","&\f"),"&\f")&&(O=-1);break}case 34:case 39:case 91:L+=A(E);break;case 9:case 10:case 13:case 32:L+=M(x);break;case 92:L+=T(Z()-1,7);continue;case 47:switch(k()){case 42:case 47:h(K(R(S(),Z()),t,n),f);break;default:L+="/"}break;case 123*w:d[m++]=p(L)*O;case 125*w:case 59:case 0:switch(E){case 0:case 125:C=0;case 59+v:-1==O&&(L=l(L,/\f/g,"")),b>0&&p(L)-g&&h(b>32?J(L+";",r,n,g-1):J(l(L," ","")+";",r,n,g-2),f);break;case 59:L+=";";default:if(h(B=Y(L,t,n,m,v,o,d,D,P=[],I=[],g),a),123===E)if(0===v)G(L,t,B,B,P,a,g,d,I);else switch(99===y&&110===u(L,3)?100:y){case 100:case 108:case 109:case 115:G(e,B,B,r&&h(Y(e,B,B,0,0,o,d,D,o,P=[],g),I),o,I,g,d,r?P:I);break;default:G(L,B,B,B,[""],I,0,d,I)}}m=v=b=0,w=O=1,D=L="",g=s;break;case 58:g=1+p(L),b=x;default:if(w<1)if(123==E)--w;else if(125==E&&0==w++&&125==j())continue;switch(L+=i(E),E*w){case 38:O=v>0?1:(L+="\f",-1);break;case 44:d[m++]=(p(L)-1)*O,O=1;break;case 64:45===k()&&(L+=A(S())),y=k(),v=g=p(D=L+=F(Z())),E++;break;case 45:45===x&&2==p(L)&&(w=0)}}return a}function Y(e,t,n,r,i,a,c,u,p,h,m){for(var v=i-1,g=0===i?a:[""],y=f(g),b=0,x=0,C=0;b<r;++b)for(var j=0,S=d(e,v+1,v=o(x=c[b])),k=e;j<y;++j)(k=s(x>0?g[j]+" "+S:l(S,/&\f/g,g[j])))&&(p[C++]=k);return w(e,t,n,0===i?z:u,p,h,m)}function K(e,t,n){return w(e,t,n,_,i(b),d(e,2,-2),0)}function J(e,t,n,r){return w(e,t,n,H,d(e,0,r),d(e,r+1,-1),r)}var X=function(e,t,n){for(var r=0,o=0;r=o,o=k(),38===r&&12===o&&(t[n]=1),!E(o);)S();return O(e,y)},Q=function(e,t){return P(function(e,t){var n=-1,r=44;do{switch(E(r)){case 0:38===r&&12===k()&&(t[n]=1),e[n]+=X(y-1,t,n);break;case 2:e[n]+=A(r);break;case 4:if(44===r){e[++n]=58===k()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=i(r)}}while(r=S());return e}(D(e),t))},$=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||$.get(n))&&!r){$.set(e,!0);for(var o=[],i=Q(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ne(e,t){switch(function(e,t){return 45^u(e,0)?(((t<<2^u(e,0))<<2^u(e,1))<<2^u(e,2))<<2^u(e,3):0}(e,t)){case 5103:return"-webkit-print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return N+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return N+e+L+e+B+e+e;case 6828:case 4268:return N+e+B+e+e;case 6165:return N+e+B+"flex-"+e+e;case 5187:return N+e+l(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return N+e+B+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return N+e+B+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return N+e+B+l(e,"shrink","negative")+e;case 5292:return N+e+B+l(e,"basis","preferred-size")+e;case 6060:return"-webkit-box-"+l(e,"-grow","")+N+e+B+l(e,"grow","positive")+e;case 4554:return N+l(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,"-webkit-$1"),/(image-set)/,"-webkit-$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,"-webkit-$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+N+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,"-webkit-$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(p(e)-1-t>6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?ne(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,p(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":-webkit-")+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1-webkit-"+(45===u(e,14)?"inline-":"")+"box$3$1"+"-webkit-$2$3$1"+"-ms-$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return N+e+B+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return N+e+B+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return N+e+B+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return N+e+B+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case H:e.return=ne(e.value,e.length);break;case W:return V([C(e,{value:l(e.value,"@","@-webkit-")})],r);case z:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return V([C(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return V([C(e,{props:[l(t,/:(plac\w+)/,":-webkit-input-$1")]}),C(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),C(e,{props:[l(t,/:(plac\w+)/,"-ms-input-$1")]})],r)}return""}))}}],oe=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o=e.stylisPlugins||re;var i,a,s={},l=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;l.push(e)}));var c,u,d=[U,(u=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],p=function(e){var t=f(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([ee,te].concat(o,d));a=function(e,t,n,r){c=n,V(q(e?e+"{"+t.styles+"}":t.styles),p),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new r.m({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:a};return h.sheet.hydrate(l),h}},10527:function(e,t,n){"use strict";n.d(t,{m:function(){return r}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}()},65473:function(e,t,n){"use strict";n.d(t,{fp:function(){return r},My:function(){return i},hC:function(){return o}});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var o=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},i=function(e,t,n){o(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}},555:function(e,t,n){"use strict";var r=n(30303),o=n(86193),i=n(22270),a=n(98403),s=n(27241);function l(e){return e.substring(2).toLowerCase()}t.Z=function(e){var t=e.children,n=e.disableReactTree,c=void 0!==n&&n,u=e.mouseEvent,d=void 0===u?"onClick":u,p=e.onClickAway,f=e.touchEvent,h=void 0===f?"onTouchEnd":f,m=r.useRef(!1),v=r.useRef(null),g=r.useRef(!1),y=r.useRef(!1);r.useEffect((function(){return setTimeout((function(){g.current=!0}),0),function(){g.current=!1}}),[]);var b=(0,o.Z)(t.ref,v),x=(0,i.Z)((function(e){var t=y.current;y.current=!1;var n=(0,a.Z)(v.current);!g.current||!v.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,n)||(m.current?m.current=!1:(e.composedPath?e.composedPath().indexOf(v.current)>-1:!n.documentElement.contains(e.target)||v.current.contains(e.target))||!c&&t||p(e))})),w=function(e){return function(n){y.current=!0;var r=t.props[e];r&&r(n)}},C={ref:b};return!1!==h&&(C[h]=w(h)),r.useEffect((function(){if(!1!==h){var e=l(h),t=(0,a.Z)(v.current),n=function(){m.current=!0};return t.addEventListener(e,x),t.addEventListener("touchmove",n),function(){t.removeEventListener(e,x),t.removeEventListener("touchmove",n)}}}),[x,h]),!1!==d&&(C[d]=w(d)),r.useEffect((function(){if(!1!==d){var e=l(d),t=(0,a.Z)(v.current);return t.addEventListener(e,x),function(){t.removeEventListener(e,x)}}}),[x,d]),(0,s.jsx)(r.Fragment,{children:r.cloneElement(t,C)})}},44884:function(e,t,n){"use strict";var r=n(30303),o=n(86193),i=n(98403),a=n(27241),s=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function l(e){var t=[],n=[];return Array.from(e.querySelectorAll(s)).forEach((function(e,r){var o=function(e){var t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;var t=function(t){return e.ownerDocument.querySelector('input[type="radio"]'.concat(t))},n=t('[name="'.concat(e.name,'"]:checked'));return n||(n=t('[name="'.concat(e.name,'"]'))),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort((function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex})).map((function(e){return e.node})).concat(t)}function c(){return!0}t.Z=function(e){var t=e.children,n=e.disableAutoFocus,s=void 0!==n&&n,u=e.disableEnforceFocus,d=void 0!==u&&u,p=e.disableRestoreFocus,f=void 0!==p&&p,h=e.getTabbable,m=void 0===h?l:h,v=e.isEnabled,g=void 0===v?c:v,y=e.open,b=r.useRef(!1),x=r.useRef(null),w=r.useRef(null),C=r.useRef(null),j=r.useRef(null),S=r.useRef(!1),k=r.useRef(null),Z=(0,o.Z)(t.ref,k),O=r.useRef(null);r.useEffect((function(){y&&k.current&&(S.current=!s)}),[s,y]),r.useEffect((function(){if(y&&k.current){var e=(0,i.Z)(k.current);return k.current.contains(e.activeElement)||(k.current.hasAttribute("tabIndex")||k.current.setAttribute("tabIndex","-1"),S.current&&k.current.focus()),function(){f||(C.current&&C.current.focus&&(b.current=!0,C.current.focus()),C.current=null)}}}),[y]),r.useEffect((function(){if(y&&k.current){var e=(0,i.Z)(k.current),t=function(t){var n=k.current;if(null!==n)if(e.hasFocus()&&!d&&g()&&!b.current){if(!n.contains(e.activeElement)){if(t&&j.current!==t.target||e.activeElement!==j.current)j.current=null;else if(null!==j.current)return;if(!S.current)return;var r=[];if(e.activeElement!==x.current&&e.activeElement!==w.current||(r=m(k.current)),r.length>0){var o,i,a=Boolean((null==(o=O.current)?void 0:o.shiftKey)&&"Tab"===(null==(i=O.current)?void 0:i.key)),s=r[0],l=r[r.length-1];"string"!==typeof s&&"string"!==typeof l&&(a?l.focus():s.focus())}else n.focus()}}else b.current=!1},n=function(t){O.current=t,!d&&g()&&"Tab"===t.key&&e.activeElement===k.current&&t.shiftKey&&(b.current=!0,w.current&&w.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);var r=setInterval((function(){e.activeElement&&"BODY"===e.activeElement.tagName&&t(null)}),50);return function(){clearInterval(r),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}}),[s,d,f,g,y,m]);var E=function(e){null===C.current&&(C.current=e.relatedTarget),S.current=!0};return(0,a.jsxs)(r.Fragment,{children:[(0,a.jsx)("div",{tabIndex:y?0:-1,onFocus:E,ref:x,"data-testid":"sentinelStart"}),r.cloneElement(t,{ref:Z,onFocus:function(e){null===C.current&&(C.current=e.relatedTarget),S.current=!0,j.current=e.target;var n=t.props.onFocus;n&&n(e)}}),(0,a.jsx)("div",{tabIndex:y?0:-1,onFocus:E,ref:w,"data-testid":"sentinelEnd"})]})}},25077:function(e,t,n){"use strict";var r=n(11026),o=n(30303),i=n(93715),a=n(86193),s=n(66430),l=n(377),c=n(27241);var u=o.forwardRef((function(e,t){var n=e.children,u=e.container,d=e.disablePortal,p=void 0!==d&&d,f=o.useState(null),h=(0,r.Z)(f,2),m=h[0],v=h[1],g=(0,a.Z)(o.isValidElement(n)?n.ref:null,t);if((0,s.Z)((function(){p||v(function(e){return"function"===typeof e?e():e}(u)||document.body)}),[u,p]),(0,s.Z)((function(){if(m&&!p)return(0,l.Z)(t,m),function(){(0,l.Z)(t,null)}}),[t,m,p]),p){if(o.isValidElement(n)){var y={ref:g};return o.cloneElement(n,y)}return(0,c.jsx)(o.Fragment,{children:n})}return(0,c.jsx)(o.Fragment,{children:m?i.createPortal(n,m):m})}));t.Z=u},77906:function(e,t,n){"use strict";n.d(t,{D:function(){return p},Z:function(){return v}});var r=n(11026),o=n(25773),i=n(30303),a=n(29372),s=n(23487),l=n(21536),c=n(22270),u=n(377);function d(e){return"undefined"!==typeof e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ignoreAccents,n=void 0===t||t,r=e.ignoreCase,o=void 0===r||r,i=e.limit,a=e.matchFrom,s=void 0===a?"any":a,l=e.stringify,c=e.trim,u=void 0!==c&&c;return function(e,t){var r=t.inputValue,a=t.getOptionLabel,c=u?r.trim():r;o&&(c=c.toLowerCase()),n&&(c=d(c));var p=c?e.filter((function(e){var t=(l||a)(e);return o&&(t=t.toLowerCase()),n&&(t=d(t)),"start"===s?0===t.indexOf(c):t.indexOf(c)>-1})):e;return"number"===typeof i?p.slice(0,i):p}}function f(e,t){for(var n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}var h=p(),m=function(e){var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function v(e){var t,n=e.unstable_isActiveElementInListbox,d=void 0===n?m:n,p=e.unstable_classNamePrefix,v=void 0===p?"Mui":p,g=e.autoComplete,y=void 0!==g&&g,b=e.autoHighlight,x=void 0!==b&&b,w=e.autoSelect,C=void 0!==w&&w,j=e.blurOnSelect,S=void 0!==j&&j,k=e.clearOnBlur,Z=void 0===k?!e.freeSolo:k,O=e.clearOnEscape,E=void 0!==O&&O,D=e.componentName,P=void 0===D?"useAutocomplete":D,A=e.defaultValue,M=void 0===A?e.multiple?[]:null:A,T=e.disableClearable,I=void 0!==T&&T,R=e.disableCloseOnSelect,F=void 0!==R&&R,B=e.disabled,L=e.disabledItemsFocusable,N=void 0!==L&&L,_=e.disableListWrap,z=void 0!==_&&_,H=e.filterOptions,W=void 0===H?h:H,V=e.filterSelectedOptions,U=void 0!==V&&V,q=e.freeSolo,G=void 0!==q&&q,Y=e.getOptionDisabled,K=e.getOptionLabel,J=void 0===K?function(e){var t;return null!=(t=e.label)?t:e}:K,X=e.groupBy,Q=e.handleHomeEndKeys,$=void 0===Q?!e.freeSolo:Q,ee=e.id,te=e.includeInputInList,ne=void 0!==te&&te,re=e.inputValue,oe=e.isOptionEqualToValue,ie=void 0===oe?function(e,t){return e===t}:oe,ae=e.multiple,se=void 0!==ae&&ae,le=e.onChange,ce=e.onClose,ue=e.onHighlightChange,de=e.onInputChange,pe=e.onOpen,fe=e.open,he=e.openOnFocus,me=void 0!==he&&he,ve=e.options,ge=e.readOnly,ye=void 0!==ge&&ge,be=e.selectOnFocus,xe=void 0===be?!e.freeSolo:be,we=e.value,Ce=(0,a.Z)(ee);t=function(e){var t=J(e);return"string"!==typeof t?String(t):t};var je=i.useRef(!1),Se=i.useRef(!0),ke=i.useRef(null),Ze=i.useRef(null),Oe=i.useState(null),Ee=(0,r.Z)(Oe,2),De=Ee[0],Pe=Ee[1],Ae=i.useState(-1),Me=(0,r.Z)(Ae,2),Te=Me[0],Ie=Me[1],Re=x?0:-1,Fe=i.useRef(Re),Be=(0,s.Z)({controlled:we,default:M,name:P}),Le=(0,r.Z)(Be,2),Ne=Le[0],_e=Le[1],ze=(0,s.Z)({controlled:re,default:"",name:P,state:"inputValue"}),He=(0,r.Z)(ze,2),We=He[0],Ve=He[1],Ue=i.useState(!1),qe=(0,r.Z)(Ue,2),Ge=qe[0],Ye=qe[1],Ke=i.useCallback((function(e,n){if((se?Ne.length<n.length:null!==n)||Z){var r;if(se)r="";else if(null==n)r="";else{var o=t(n);r="string"===typeof o?o:""}We!==r&&(Ve(r),de&&de(e,r,"reset"))}}),[t,We,se,de,Ve,Z,Ne]),Je=(0,s.Z)({controlled:fe,default:!1,name:P,state:"open"}),Xe=(0,r.Z)(Je,2),Qe=Xe[0],$e=Xe[1],et=i.useState(!0),tt=(0,r.Z)(et,2),nt=tt[0],rt=tt[1],ot=!se&&null!=Ne&&We===t(Ne),it=Qe&&!ye,at=it?W(ve.filter((function(e){return!U||!(se?Ne:[Ne]).some((function(t){return null!==t&&ie(e,t)}))})),{inputValue:ot&&nt?"":We,getOptionLabel:t}):[],st=(0,l.Z)({filteredOptions:at,value:Ne});i.useEffect((function(){var e=Ne!==st.value;Ge&&!e||G&&!e||Ke(null,Ne)}),[Ne,Ke,Ge,st.value,G]);var lt=Qe&&at.length>0&&!ye,ct=(0,c.Z)((function(e){-1===e?ke.current.focus():De.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));i.useEffect((function(){se&&Te>Ne.length-1&&(Ie(-1),ct(-1))}),[Ne,se,Te,ct]);var ut=(0,c.Z)((function(e){var t=e.event,n=e.index,r=e.reason,o=void 0===r?"auto":r;if(Fe.current=n,-1===n?ke.current.removeAttribute("aria-activedescendant"):ke.current.setAttribute("aria-activedescendant","".concat(Ce,"-option-").concat(n)),ue&&ue(t,-1===n?null:at[n],o),Ze.current){var i=Ze.current.querySelector('[role="option"].'.concat(v,"-focused"));i&&(i.classList.remove("".concat(v,"-focused")),i.classList.remove("".concat(v,"-focusVisible")));var a=Ze.current;if("listbox"!==Ze.current.getAttribute("role")&&(a=Ze.current.parentElement.querySelector('[role="listbox"]')),a)if(-1!==n){var s=Ze.current.querySelector('[data-option-index="'.concat(n,'"]'));if(s&&(s.classList.add("".concat(v,"-focused")),"keyboard"===o&&s.classList.add("".concat(v,"-focusVisible")),a.scrollHeight>a.clientHeight&&"mouse"!==o)){var l=s,c=a.clientHeight+a.scrollTop,u=l.offsetTop+l.offsetHeight;u>c?a.scrollTop=u-a.clientHeight:l.offsetTop-l.offsetHeight*(X?1.3:0)<a.scrollTop&&(a.scrollTop=l.offsetTop-l.offsetHeight*(X?1.3:0))}}else a.scrollTop=0}})),dt=(0,c.Z)((function(e){var n=e.event,r=e.diff,o=e.direction,i=void 0===o?"next":o,a=e.reason,s=void 0===a?"auto":a;if(it){var l=function(e,t){if(!Ze.current||-1===e)return-1;for(var n=e;;){if("next"===t&&n===at.length||"previous"===t&&-1===n)return-1;var r=Ze.current.querySelector('[data-option-index="'.concat(n,'"]')),o=!N&&(!r||r.disabled||"true"===r.getAttribute("aria-disabled"));if(!(r&&!r.hasAttribute("tabindex")||o))return n;n+="next"===t?1:-1}}(function(){var e=at.length-1;if("reset"===r)return Re;if("start"===r)return 0;if("end"===r)return e;var t=Fe.current+r;return t<0?-1===t&&ne?-1:z&&-1!==Fe.current||Math.abs(r)>1?0:e:t>e?t===e+1&&ne?-1:z||Math.abs(r)>1?e:0:t}(),i);if(ut({index:l,reason:s,event:n}),y&&"reset"!==r)if(-1===l)ke.current.value=We;else{var c=t(at[l]);ke.current.value=c,0===c.toLowerCase().indexOf(We.toLowerCase())&&We.length>0&&ke.current.setSelectionRange(We.length,c.length)}}})),pt=i.useCallback((function(){if(it&&!function(){var e,n;if(-1!==Fe.current&&st.filteredOptions&&st.filteredOptions.length!==at.length&&(se?Ne.length===st.value.length&&st.value.every((function(e,n){return t(Ne[n])===t(e)})):(e=st.value,n=Ne,(e?t(e):"")===(n?t(n):"")))){var r=st.filteredOptions[Fe.current];if(r&&at.some((function(e){return t(e)===t(r)})))return!0}return!1}()){var e=se?Ne[0]:Ne;if(0!==at.length&&null!=e){if(Ze.current)if(null==e)Fe.current>=at.length-1?ut({index:at.length-1}):ut({index:Fe.current});else{var n=at[Fe.current];if(se&&n&&-1!==f(Ne,(function(e){return ie(n,e)})))return;var r=f(at,(function(t){return ie(t,e)}));-1===r?dt({diff:"reset"}):ut({index:r})}}else dt({diff:"reset"})}}),[at.length,!se&&Ne,U,dt,ut,it,We,se]),ft=(0,c.Z)((function(e){(0,u.Z)(Ze,e),e&&pt()}));i.useEffect((function(){pt()}),[pt]);var ht=function(e){Qe||($e(!0),rt(!0),pe&&pe(e))},mt=function(e,t){Qe&&($e(!1),ce&&ce(e,t))},vt=function(e,t,n,r){if(se){if(Ne.length===t.length&&Ne.every((function(e,n){return e===t[n]})))return}else if(Ne===t)return;le&&le(e,t,n,r),_e(t)},gt=i.useRef(!1),yt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"selectOption",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",o=n,i=t;if(se){var a=f(i=Array.isArray(Ne)?Ne.slice():[],(function(e){return ie(t,e)}));-1===a?i.push(t):"freeSolo"!==r&&(i.splice(a,1),o="removeOption")}Ke(e,i),vt(e,i,o,{option:t}),F||e&&(e.ctrlKey||e.metaKey)||mt(e,o),(!0===S||"touch"===S&&gt.current||"mouse"===S&&!gt.current)&&ke.current.blur()};var bt=function(e,t){if(se){""===We&&mt(e,"toggleInput");var n=Te;-1===Te?""===We&&"previous"===t&&(n=Ne.length-1):((n+="next"===t?1:-1)<0&&(n=0),n===Ne.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;for(var n=e;;){if("next"===t&&n===Ne.length||"previous"===t&&-1===n)return-1;var r=De.querySelector('[data-tag-index="'.concat(n,'"]'));if(r&&r.hasAttribute("tabindex")&&!r.disabled&&"true"!==r.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),Ie(n),ct(n)}},xt=function(e){je.current=!0,Ve(""),de&&de(e,"","clear"),vt(e,se?[]:null,"clear")},wt=function(e){return function(t){if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==Te&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(Ie(-1),ct(-1)),229!==t.which))switch(t.key){case"Home":it&&$&&(t.preventDefault(),dt({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":it&&$&&(t.preventDefault(),dt({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),dt({diff:-5,direction:"previous",reason:"keyboard",event:t}),ht(t);break;case"PageDown":t.preventDefault(),dt({diff:5,direction:"next",reason:"keyboard",event:t}),ht(t);break;case"ArrowDown":t.preventDefault(),dt({diff:1,direction:"next",reason:"keyboard",event:t}),ht(t);break;case"ArrowUp":t.preventDefault(),dt({diff:-1,direction:"previous",reason:"keyboard",event:t}),ht(t);break;case"ArrowLeft":bt(t,"previous");break;case"ArrowRight":bt(t,"next");break;case"Enter":if(-1!==Fe.current&&it){var n=at[Fe.current],r=!!Y&&Y(n);if(t.preventDefault(),r)return;yt(t,n,"selectOption"),y&&ke.current.setSelectionRange(ke.current.value.length,ke.current.value.length)}else G&&""!==We&&!1===ot&&(se&&t.preventDefault(),yt(t,We,"createOption","freeSolo"));break;case"Escape":it?(t.preventDefault(),t.stopPropagation(),mt(t,"escape")):E&&(""!==We||se&&Ne.length>0)&&(t.preventDefault(),t.stopPropagation(),xt(t));break;case"Backspace":if(se&&!ye&&""===We&&Ne.length>0){var o=-1===Te?Ne.length-1:Te,i=Ne.slice();i.splice(o,1),vt(t,i,"removeOption",{option:Ne[o]})}break;case"Delete":if(se&&!ye&&""===We&&Ne.length>0&&-1!==Te){var a=Te,s=Ne.slice();s.splice(a,1),vt(t,s,"removeOption",{option:Ne[a]})}}}},Ct=function(e){Ye(!0),me&&!je.current&&ht(e)},jt=function(e){d(Ze)?ke.current.focus():(Ye(!1),Se.current=!0,je.current=!1,C&&-1!==Fe.current&&it?yt(e,at[Fe.current],"blur"):C&&G&&""!==We?yt(e,We,"blur","freeSolo"):Z&&Ke(e,Ne),mt(e,"blur"))},St=function(e){var t=e.target.value;We!==t&&(Ve(t),rt(!1),de&&de(e,t,"input")),""===t?I||se||vt(e,null,"clear"):ht(e)},kt=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));Fe.current!==t&&ut({event:e,index:t,reason:"mouse"})},Zt=function(e){ut({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),gt.current=!0},Ot=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));yt(e,at[t],"selectOption"),gt.current=!1},Et=function(e){return function(t){var n=Ne.slice();n.splice(e,1),vt(t,n,"removeOption",{option:Ne[e]})}},Dt=function(e){Qe?mt(e,"toggleInput"):ht(e)},Pt=function(e){e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==Ce&&e.preventDefault()},At=function(e){e.currentTarget.contains(e.target)&&(ke.current.focus(),xe&&Se.current&&ke.current.selectionEnd-ke.current.selectionStart===0&&ke.current.select(),Se.current=!1)},Mt=function(e){""!==We&&Qe||Dt(e)},Tt=G&&We.length>0;Tt=Tt||(se?Ne.length>0:null!==Ne);var It=at;if(X){new Map;It=at.reduce((function(e,t,n){var r=X(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])}return B&&Ge&&jt(),{getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.Z)({"aria-owns":lt?"".concat(Ce,"-listbox"):null},e,{onKeyDown:wt(e),onMouseDown:Pt,onClick:At})},getInputLabelProps:function(){return{id:"".concat(Ce,"-label"),htmlFor:Ce}},getInputProps:function(){return{id:Ce,value:We,onBlur:jt,onFocus:Ct,onChange:St,onMouseDown:Mt,"aria-activedescendant":it?"":null,"aria-autocomplete":y?"both":"list","aria-controls":lt?"".concat(Ce,"-listbox"):void 0,"aria-expanded":lt,autoComplete:"off",ref:ke,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:B}},getClearProps:function(){return{tabIndex:-1,onClick:xt}},getPopupIndicatorProps:function(){return{tabIndex:-1,onClick:Dt}},getTagProps:function(e){var t=e.index;return(0,o.Z)({key:t,"data-tag-index":t,tabIndex:-1},!ye&&{onDelete:Et(t)})},getListboxProps:function(){return{role:"listbox",id:"".concat(Ce,"-listbox"),"aria-labelledby":"".concat(Ce,"-label"),ref:ft,onMouseDown:function(e){e.preventDefault()}}},getOptionProps:function(e){var n=e.index,r=e.option,o=(se?Ne:[Ne]).some((function(e){return null!=e&&ie(r,e)})),i=!!Y&&Y(r);return{key:t(r),tabIndex:-1,role:"option",id:"".concat(Ce,"-option-").concat(n),onMouseMove:kt,onClick:Ot,onTouchStart:Zt,"data-option-index":n,"aria-disabled":i,"aria-selected":o}},id:Ce,inputValue:We,value:Ne,dirty:Tt,expanded:it&&De,popupOpen:it,focused:Ge||-1!==Te,anchorEl:De,setAnchorEl:Pe,focusedTag:Te,groupedOptions:It}}},29589:function(e,t,n){"use strict";n.d(t,{T:function(){return a}});var r=n(30303),o=(n(27241),{disableDefaultClasses:!1}),i=r.createContext(o);function a(e){var t=r.useContext(i).disableDefaultClasses;return function(n){return t?"":e(n)}}},74805:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(25773),o=n(82284);function i(e,t,n){return void 0===e||(0,o.Z)(e)?t:(0,r.Z)({},t,{ownerState:(0,r.Z)({},t.ownerState,n)})}},78319:function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};var n={};return Object.keys(e).filter((function(n){return n.match(/^on[A-Z]/)&&"function"===typeof e[n]&&!t.includes(n)})).forEach((function(t){n[t]=e[t]})),n}n.d(t,{Z:function(){return r}})},82284:function(e,t,n){"use strict";function r(e){return"string"===typeof e}n.d(t,{Z:function(){return r}})},47329:function(e,t,n){"use strict";function r(e,t){return"function"===typeof e?e(t):e}n.d(t,{Z:function(){return r}})},76121:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(25773),o=n(30808),i=n(86193),a=n(74805),s=n(21792),l=n(78319);function c(e){if(void 0===e)return{};var t={};return Object.keys(e).filter((function(t){return!(t.match(/^on[A-Z]/)&&"function"===typeof e[t])})).forEach((function(n){t[n]=e[n]})),t}var u=n(47329),d=["elementType","externalSlotProps","ownerState"];function p(e){var t,n=e.elementType,p=e.externalSlotProps,f=e.ownerState,h=(0,o.Z)(e,d),m=(0,u.Z)(p,f),v=function(e){var t=e.getSlotProps,n=e.additionalProps,o=e.externalSlotProps,i=e.externalForwardedProps,a=e.className;if(!t){var u=(0,s.default)(null==i?void 0:i.className,null==o?void 0:o.className,a,null==n?void 0:n.className),d=(0,r.Z)({},null==n?void 0:n.style,null==i?void 0:i.style,null==o?void 0:o.style),p=(0,r.Z)({},n,i,o);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:void 0}}var f=(0,l.Z)((0,r.Z)({},i,o)),h=c(o),m=c(i),v=t(f),g=(0,s.default)(null==v?void 0:v.className,null==n?void 0:n.className,a,null==i?void 0:i.className,null==o?void 0:o.className),y=(0,r.Z)({},null==v?void 0:v.style,null==n?void 0:n.style,null==i?void 0:i.style,null==o?void 0:o.style),b=(0,r.Z)({},v,n,m,h);return g.length>0&&(b.className=g),Object.keys(y).length>0&&(b.style=y),{props:b,internalRef:v.ref}}((0,r.Z)({},h,{externalSlotProps:m})),g=v.props,y=v.internalRef,b=(0,i.Z)(y,null==m?void 0:m.ref,null==(t=e.additionalProps)?void 0:t.ref);return(0,a.Z)(n,(0,r.Z)({},g,{ref:b}),f)}},63612:function(e,t,n){"use strict";n.d(t,{Z:function(){return q}});var r=n(64649),o=n(30808),i=n(25773),a=n(30303),s=n(21792),l=n(96148),c=n(77906),u=n(92939),d=n(47148),p=n(26798),f=n(54386),h=n(53802),m=n(48227),v=n(77939),g=n(68902),y=n(27230),b=n(98287),x=n(95801),w=n(6897),C=n(72188),j=n(52492),S=n(13839),k=n(22997);function Z(e){return(0,k.Z)("MuiAutocomplete",e)}var O,E,D=(0,S.Z)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),P=n(85961),A=n(26605),M=n(27241),T=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],I=["ref"],R=(0,j.ZP)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState,o=n.fullWidth,i=n.hasClearIcon,a=n.hasPopupIcon,s=n.inputFocused,l=n.size;return[(0,r.Z)({},"& .".concat(D.tag),t.tag),(0,r.Z)({},"& .".concat(D.tag),t["tagSize".concat((0,P.Z)(l))]),(0,r.Z)({},"& .".concat(D.inputRoot),t.inputRoot),(0,r.Z)({},"& .".concat(D.input),t.input),(0,r.Z)({},"& .".concat(D.input),s&&t.inputFocused),t.root,o&&t.fullWidth,a&&t.hasPopupIcon,i&&t.hasClearIcon]}})((function(e){var t,n,o,a,s,l=e.ownerState;return(0,i.Z)((t={},(0,r.Z)(t,"&.".concat(D.focused," .").concat(D.clearIndicator),{visibility:"visible"}),(0,r.Z)(t,"@media (pointer: fine)",(0,r.Z)({},"&:hover .".concat(D.clearIndicator),{visibility:"visible"})),t),l.fullWidth&&{width:"100%"},(s={},(0,r.Z)(s,"& .".concat(D.tag),(0,i.Z)({margin:3,maxWidth:"calc(100% - 6px)"},"small"===l.size&&{margin:2,maxWidth:"calc(100% - 4px)"})),(0,r.Z)(s,"& .".concat(D.inputRoot),(n={flexWrap:"wrap"},(0,r.Z)(n,".".concat(D.hasPopupIcon,"&, .").concat(D.hasClearIcon,"&"),{paddingRight:30}),(0,r.Z)(n,".".concat(D.hasPopupIcon,".").concat(D.hasClearIcon,"&"),{paddingRight:56}),(0,r.Z)(n,"& .".concat(D.input),{width:0,minWidth:30}),n)),(0,r.Z)(s,"& .".concat(v.Z.root),{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}}),(0,r.Z)(s,"& .".concat(v.Z.root,".").concat(g.Z.sizeSmall),(0,r.Z)({},"& .".concat(v.Z.input),{padding:"2px 4px 3px 0"})),(0,r.Z)(s,"& .".concat(y.Z.root),(o={padding:9},(0,r.Z)(o,".".concat(D.hasPopupIcon,"&, .").concat(D.hasClearIcon,"&"),{paddingRight:39}),(0,r.Z)(o,".".concat(D.hasPopupIcon,".").concat(D.hasClearIcon,"&"),{paddingRight:65}),(0,r.Z)(o,"& .".concat(D.input),{padding:"7.5px 4px 7.5px 5px"}),(0,r.Z)(o,"& .".concat(D.endAdornment),{right:9}),o)),(0,r.Z)(s,"& .".concat(y.Z.root,".").concat(g.Z.sizeSmall),(0,r.Z)({paddingTop:6,paddingBottom:6,paddingLeft:6},"& .".concat(D.input),{padding:"2.5px 4px 2.5px 8px"})),(0,r.Z)(s,"& .".concat(b.Z.root),(a={paddingTop:19,paddingLeft:8},(0,r.Z)(a,".".concat(D.hasPopupIcon,"&, .").concat(D.hasClearIcon,"&"),{paddingRight:39}),(0,r.Z)(a,".".concat(D.hasPopupIcon,".").concat(D.hasClearIcon,"&"),{paddingRight:65}),(0,r.Z)(a,"& .".concat(b.Z.input),{padding:"7px 4px"}),(0,r.Z)(a,"& .".concat(D.endAdornment),{right:9}),a)),(0,r.Z)(s,"& .".concat(b.Z.root,".").concat(g.Z.sizeSmall),(0,r.Z)({paddingBottom:1},"& .".concat(b.Z.input),{padding:"2.5px 4px"})),(0,r.Z)(s,"& .".concat(g.Z.hiddenLabel),{paddingTop:8}),(0,r.Z)(s,"& .".concat(b.Z.root,".").concat(g.Z.hiddenLabel),(0,r.Z)({paddingTop:0,paddingBottom:0},"& .".concat(D.input),{paddingTop:16,paddingBottom:17})),(0,r.Z)(s,"& .".concat(b.Z.root,".").concat(g.Z.hiddenLabel,".").concat(g.Z.sizeSmall),(0,r.Z)({},"& .".concat(D.input),{paddingTop:8,paddingBottom:9})),(0,r.Z)(s,"& .".concat(D.input),(0,i.Z)({flexGrow:1,textOverflow:"ellipsis",opacity:0},l.inputFocused&&{opacity:1})),s))})),F=(0,j.ZP)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:function(e,t){return t.endAdornment}})({position:"absolute",right:0,top:"calc(50% - 14px)"}),B=(0,j.ZP)(h.Z,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:function(e,t){return t.clearIndicator}})({marginRight:-2,padding:4,visibility:"hidden"}),L=(0,j.ZP)(h.Z,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:function(e,t){var n=e.ownerState;return(0,i.Z)({},t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen)}})((function(e){var t=e.ownerState;return(0,i.Z)({padding:2,marginRight:-2},t.popupOpen&&{transform:"rotate(180deg)"})})),N=(0,j.ZP)(d.Z,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:function(e,t){var n=e.ownerState;return[(0,r.Z)({},"& .".concat(D.option),t.option),t.popper,n.disablePortal&&t.popperDisablePortal]}})((function(e){var t=e.theme,n=e.ownerState;return(0,i.Z)({zIndex:(t.vars||t).zIndex.modal},n.disablePortal&&{position:"absolute"})})),_=(0,j.ZP)(f.Z,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:function(e,t){return t.paper}})((function(e){var t=e.theme;return(0,i.Z)({},t.typography.body1,{overflow:"auto"})})),z=(0,j.ZP)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:function(e,t){return t.loading}})((function(e){var t=e.theme;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),H=(0,j.ZP)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:function(e,t){return t.noOptions}})((function(e){var t=e.theme;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),W=(0,j.ZP)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:function(e,t){return t.listbox}})((function(e){var t,n,o=e.theme;return(0,r.Z)({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative"},"& .".concat(D.option),(n={minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16},(0,r.Z)(n,o.breakpoints.up("sm"),{minHeight:"auto"}),(0,r.Z)(n,"&.".concat(D.focused),{backgroundColor:(o.vars||o).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}),(0,r.Z)(n,'&[aria-disabled="true"]',{opacity:(o.vars||o).palette.action.disabledOpacity,pointerEvents:"none"}),(0,r.Z)(n,"&.".concat(D.focusVisible),{backgroundColor:(o.vars||o).palette.action.focus}),(0,r.Z)(n,'&[aria-selected="true"]',(t={backgroundColor:o.vars?"rgba(".concat(o.vars.palette.primary.mainChannel," / ").concat(o.vars.palette.action.selectedOpacity,")"):(0,u.Fq)(o.palette.primary.main,o.palette.action.selectedOpacity)},(0,r.Z)(t,"&.".concat(D.focused),{backgroundColor:o.vars?"rgba(".concat(o.vars.palette.primary.mainChannel," / calc(").concat(o.vars.palette.action.selectedOpacity," + ").concat(o.vars.palette.action.hoverOpacity,"))"):(0,u.Fq)(o.palette.primary.main,o.palette.action.selectedOpacity+o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(o.vars||o).palette.action.selected}}),(0,r.Z)(t,"&.".concat(D.focusVisible),{backgroundColor:o.vars?"rgba(".concat(o.vars.palette.primary.mainChannel," / calc(").concat(o.vars.palette.action.selectedOpacity," + ").concat(o.vars.palette.action.focusOpacity,"))"):(0,u.Fq)(o.palette.primary.main,o.palette.action.selectedOpacity+o.palette.action.focusOpacity)}),t)),n))})),V=(0,j.ZP)(p.Z,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:function(e,t){return t.groupLabel}})((function(e){var t=e.theme;return{backgroundColor:(t.vars||t).palette.background.paper,top:-8}})),U=(0,j.ZP)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:function(e,t){return t.groupUl}})((0,r.Z)({padding:0},"& .".concat(D.option),{paddingLeft:24})),q=a.forwardRef((function(e,t){var n,r,u,p,h,v=(0,C.Z)({props:e,name:"MuiAutocomplete"}),g=(v.autoComplete,v.autoHighlight,v.autoSelect,v.blurOnSelect,v.ChipProps),y=v.className,b=v.clearIcon,j=void 0===b?O||(O=(0,M.jsx)(x.Z,{fontSize:"small"})):b,S=v.clearOnBlur,k=(void 0===S&&v.freeSolo,v.clearOnEscape,v.clearText),D=void 0===k?"Clear":k,q=v.closeText,G=void 0===q?"Close":q,Y=v.componentsProps,K=void 0===Y?{}:Y,J=v.defaultValue,X=(void 0===J&&v.multiple,v.disableClearable),Q=void 0!==X&&X,$=(v.disableCloseOnSelect,v.disabled),ee=void 0!==$&&$,te=(v.disabledItemsFocusable,v.disableListWrap,v.disablePortal),ne=void 0!==te&&te,re=(v.filterSelectedOptions,v.forcePopupIcon),oe=void 0===re?"auto":re,ie=v.freeSolo,ae=void 0!==ie&&ie,se=v.fullWidth,le=void 0!==se&&se,ce=v.getLimitTagsText,ue=void 0===ce?function(e){return"+".concat(e)}:ce,de=v.getOptionLabel,pe=void 0===de?function(e){var t;return null!=(t=e.label)?t:e}:de,fe=v.groupBy,he=v.handleHomeEndKeys,me=(void 0===he&&v.freeSolo,v.includeInputInList,v.limitTags),ve=void 0===me?-1:me,ge=v.ListboxComponent,ye=void 0===ge?"ul":ge,be=v.ListboxProps,xe=v.loading,we=void 0!==xe&&xe,Ce=v.loadingText,je=void 0===Ce?"Loading\u2026":Ce,Se=v.multiple,ke=void 0!==Se&&Se,Ze=v.noOptionsText,Oe=void 0===Ze?"No options":Ze,Ee=(v.openOnFocus,v.openText),De=void 0===Ee?"Open":Ee,Pe=v.PaperComponent,Ae=void 0===Pe?f.Z:Pe,Me=v.PopperComponent,Te=void 0===Me?d.Z:Me,Ie=v.popupIcon,Re=void 0===Ie?E||(E=(0,M.jsx)(w.Z,{})):Ie,Fe=v.readOnly,Be=void 0!==Fe&&Fe,Le=v.renderGroup,Ne=v.renderInput,_e=v.renderOption,ze=v.renderTags,He=v.selectOnFocus,We=(void 0===He&&v.freeSolo,v.size),Ve=void 0===We?"medium":We,Ue=v.slotProps,qe=void 0===Ue?{}:Ue,Ge=(0,o.Z)(v,T),Ye=(0,c.Z)((0,i.Z)({},v,{componentName:"Autocomplete"})),Ke=Ye.getRootProps,Je=Ye.getInputProps,Xe=Ye.getInputLabelProps,Qe=Ye.getPopupIndicatorProps,$e=Ye.getClearProps,et=Ye.getTagProps,tt=Ye.getListboxProps,nt=Ye.getOptionProps,rt=Ye.value,ot=Ye.dirty,it=Ye.expanded,at=Ye.id,st=Ye.popupOpen,lt=Ye.focused,ct=Ye.focusedTag,ut=Ye.anchorEl,dt=Ye.setAnchorEl,pt=Ye.inputValue,ft=Ye.groupedOptions,ht=!Q&&!ee&&ot&&!Be,mt=(!ae||!0===oe)&&!1!==oe,vt=Je().onMouseDown,gt=(null!=be?be:{}).ref,yt=tt(),bt=yt.ref,xt=(0,o.Z)(yt,I),wt=(0,A.Z)(bt,gt),Ct=(0,i.Z)({},v,{disablePortal:ne,expanded:it,focused:lt,fullWidth:le,hasClearIcon:ht,hasPopupIcon:mt,inputFocused:-1===ct,popupOpen:st,size:Ve}),jt=function(e){var t=e.classes,n=e.disablePortal,r=e.expanded,o=e.focused,i=e.fullWidth,a=e.hasClearIcon,s=e.hasPopupIcon,c=e.inputFocused,u=e.popupOpen,d=e.size,p={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag","tagSize".concat((0,P.Z)(d))],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,l.Z)(p,Z,t)}(Ct);if(ke&&rt.length>0){var St=function(e){return(0,i.Z)({className:jt.tag,disabled:ee},et(e))};h=ze?ze(rt,St,Ct):rt.map((function(e,t){return(0,M.jsx)(m.Z,(0,i.Z)({label:pe(e),size:Ve},St({index:t}),g))}))}if(ve>-1&&Array.isArray(h)){var kt=h.length-ve;!lt&&kt>0&&(h=h.splice(0,ve)).push((0,M.jsx)("span",{className:jt.tag,children:ue(kt)},h.length))}var Zt=Le||function(e){return(0,M.jsxs)("li",{children:[(0,M.jsx)(V,{className:jt.groupLabel,ownerState:Ct,component:"div",children:e.group}),(0,M.jsx)(U,{className:jt.groupUl,ownerState:Ct,children:e.children})]},e.key)},Ot=_e||function(e,t){return(0,M.jsx)("li",(0,i.Z)({},e,{children:pe(t)}))},Et=function(e,t){var n=nt({option:e,index:t});return Ot((0,i.Z)({},n,{className:jt.option}),e,{selected:n["aria-selected"],index:t,inputValue:pt})},Dt=null!=(n=qe.clearIndicator)?n:K.clearIndicator,Pt=null!=(r=qe.paper)?r:K.paper,At=null!=(u=qe.popper)?u:K.popper,Mt=null!=(p=qe.popupIndicator)?p:K.popupIndicator;return(0,M.jsxs)(a.Fragment,{children:[(0,M.jsx)(R,(0,i.Z)({ref:t,className:(0,s.default)(jt.root,y),ownerState:Ct},Ke(Ge),{children:Ne({id:at,disabled:ee,fullWidth:!0,size:"small"===Ve?"small":void 0,InputLabelProps:Xe(),InputProps:(0,i.Z)({ref:dt,className:jt.inputRoot,startAdornment:h,onClick:function(e){e.target===e.currentTarget&&vt(e)}},(ht||mt)&&{endAdornment:(0,M.jsxs)(F,{className:jt.endAdornment,ownerState:Ct,children:[ht?(0,M.jsx)(B,(0,i.Z)({},$e(),{"aria-label":D,title:D,ownerState:Ct},Dt,{className:(0,s.default)(jt.clearIndicator,null==Dt?void 0:Dt.className),children:j})):null,mt?(0,M.jsx)(L,(0,i.Z)({},Qe(),{disabled:ee,"aria-label":st?G:De,title:st?G:De,ownerState:Ct},Mt,{className:(0,s.default)(jt.popupIndicator,null==Mt?void 0:Mt.className),children:Re})):null]})}),inputProps:(0,i.Z)({className:jt.input,disabled:ee,readOnly:Be},Je())})})),ut?(0,M.jsx)(N,(0,i.Z)({as:Te,disablePortal:ne,style:{width:ut?ut.clientWidth:null},ownerState:Ct,role:"presentation",anchorEl:ut,open:st},At,{className:(0,s.default)(jt.popper,null==At?void 0:At.className),children:(0,M.jsxs)(_,(0,i.Z)({ownerState:Ct,as:Ae},Pt,{className:(0,s.default)(jt.paper,null==Pt?void 0:Pt.className),children:[we&&0===ft.length?(0,M.jsx)(z,{className:jt.loading,ownerState:Ct,children:je}):null,0!==ft.length||ae||we?null:(0,M.jsx)(H,{className:jt.noOptions,ownerState:Ct,role:"presentation",onMouseDown:function(e){e.preventDefault()},children:Oe}),ft.length>0?(0,M.jsx)(W,(0,i.Z)({as:ye,className:jt.listbox,ownerState:Ct},xt,be,{ref:wt,children:ft.map((function(e,t){return fe?Zt({key:e.key,group:e.group,children:e.options.map((function(t,n){return Et(t,e.index+n)}))}):Et(e,t)}))})):null]}))})):null]})}))},16317:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(30808),o=n(25773),i=n(30303),a=n(21792),s=n(96148),l=n(52492),c=n(72188),u=n(23187),d=n(13839),p=n(22997);function f(e){return(0,p.Z)("MuiBackdrop",e)}(0,d.Z)("MuiBackdrop",["root","invisible"]);var h=n(27241),m=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],v=(0,l.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.invisible&&t.invisible]}})((function(e){var t=e.ownerState;return(0,o.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})})),g=i.forwardRef((function(e,t){var n,i,l,d=(0,c.Z)({props:e,name:"MuiBackdrop"}),p=d.children,g=d.className,y=d.component,b=void 0===y?"div":y,x=d.components,w=void 0===x?{}:x,C=d.componentsProps,j=void 0===C?{}:C,S=d.invisible,k=void 0!==S&&S,Z=d.open,O=d.slotProps,E=void 0===O?{}:O,D=d.slots,P=void 0===D?{}:D,A=d.TransitionComponent,M=void 0===A?u.Z:A,T=d.transitionDuration,I=(0,r.Z)(d,m),R=(0,o.Z)({},d,{component:b,invisible:k}),F=function(e){var t=e.classes,n={root:["root",e.invisible&&"invisible"]};return(0,s.Z)(n,f,t)}(R),B=null!=(n=E.root)?n:j.root;return(0,h.jsx)(M,(0,o.Z)({in:Z,timeout:T},I,{children:(0,h.jsx)(v,(0,o.Z)({"aria-hidden":!0},B,{as:null!=(i=null!=(l=P.root)?l:w.Root)?i:b,className:(0,a.default)(F.root,g,null==B?void 0:B.className),ownerState:(0,o.Z)({},R,null==B?void 0:B.ownerState),classes:F,ref:t,children:p}))}))}))},76276:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var r=n(64649),o=n(30808),i=n(25773),a=n(30303),s=n(21792),l=n(21536),c=n(96148);var u=n(76121),d=n(52492),p=n(72188),f=n(85961),h=n(13839),m=n(22997);function v(e){return(0,m.Z)("MuiBadge",e)}var g=(0,h.Z)("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),y=n(27241),b=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],x=(0,d.ZP)("span",{name:"MuiBadge",slot:"Root",overridesResolver:function(e,t){return t.root}})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),w=(0,d.ZP)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:function(e,t){var n=e.ownerState;return[t.badge,t[n.variant],t["anchorOrigin".concat((0,f.Z)(n.anchorOrigin.vertical)).concat((0,f.Z)(n.anchorOrigin.horizontal)).concat((0,f.Z)(n.overlap))],"default"!==n.color&&t["color".concat((0,f.Z)(n.color))],n.invisible&&t.invisible]}})((function(e){var t=e.theme,n=e.ownerState;return(0,i.Z)({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.enteringScreen})},"default"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].main,color:(t.vars||t).palette[n.color].contrastText},"dot"===n.variant&&{borderRadius:4,height:8,minWidth:8,padding:0},"top"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap&&(0,r.Z)({top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%"},"&.".concat(g.invisible),{transform:"scale(0) translate(50%, -50%)"}),"bottom"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap&&(0,r.Z)({bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%"},"&.".concat(g.invisible),{transform:"scale(0) translate(50%, 50%)"}),"top"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap&&(0,r.Z)({top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%"},"&.".concat(g.invisible),{transform:"scale(0) translate(-50%, -50%)"}),"bottom"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap&&(0,r.Z)({bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%"},"&.".concat(g.invisible),{transform:"scale(0) translate(-50%, 50%)"}),"top"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"circular"===n.overlap&&(0,r.Z)({top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%"},"&.".concat(g.invisible),{transform:"scale(0) translate(50%, -50%)"}),"bottom"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"circular"===n.overlap&&(0,r.Z)({bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%"},"&.".concat(g.invisible),{transform:"scale(0) translate(50%, 50%)"}),"top"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"circular"===n.overlap&&(0,r.Z)({top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%"},"&.".concat(g.invisible),{transform:"scale(0) translate(-50%, -50%)"}),"bottom"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"circular"===n.overlap&&(0,r.Z)({bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%"},"&.".concat(g.invisible),{transform:"scale(0) translate(-50%, 50%)"}),n.invisible&&{transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.leavingScreen})})})),C=a.forwardRef((function(e,t){var n,r,a,d,h,m,g=(0,p.Z)({props:e,name:"MuiBadge"}),C=g.anchorOrigin,j=void 0===C?{vertical:"top",horizontal:"right"}:C,S=g.className,k=g.component,Z=g.components,O=void 0===Z?{}:Z,E=g.componentsProps,D=void 0===E?{}:E,P=g.children,A=g.overlap,M=void 0===A?"rectangular":A,T=g.color,I=void 0===T?"default":T,R=g.invisible,F=void 0!==R&&R,B=g.max,L=void 0===B?99:B,N=g.badgeContent,_=g.slots,z=g.slotProps,H=g.showZero,W=void 0!==H&&H,V=g.variant,U=void 0===V?"standard":V,q=(0,o.Z)(g,b),G=function(e){var t=e.badgeContent,n=e.invisible,r=void 0!==n&&n,o=e.max,i=void 0===o?99:o,a=e.showZero,s=void 0!==a&&a,c=(0,l.Z)({badgeContent:t,max:i}),u=r;!1!==r||0!==t||s||(u=!0);var d=u?c:e,p=d.badgeContent,f=d.max,h=void 0===f?i:f;return{badgeContent:p,invisible:u,max:h,displayValue:p&&Number(p)>h?"".concat(h,"+"):p}}({max:L,invisible:F,badgeContent:N,showZero:W}),Y=G.badgeContent,K=G.invisible,J=G.max,X=G.displayValue,Q=(0,l.Z)({anchorOrigin:j,color:I,overlap:M,variant:U,badgeContent:N}),$=K||null==Y&&"dot"!==U,ee=$?Q:g,te=ee.color,ne=void 0===te?I:te,re=ee.overlap,oe=void 0===re?M:re,ie=ee.anchorOrigin,ae=void 0===ie?j:ie,se=ee.variant,le=void 0===se?U:se,ce="dot"!==le?X:void 0,ue=(0,i.Z)({},g,{badgeContent:Y,invisible:$,max:J,displayValue:ce,showZero:W,anchorOrigin:ae,color:ne,overlap:oe,variant:le}),de=function(e){var t=e.color,n=e.anchorOrigin,r=e.invisible,o=e.overlap,i=e.variant,a=e.classes,s=void 0===a?{}:a,l={root:["root"],badge:["badge",i,r&&"invisible","anchorOrigin".concat((0,f.Z)(n.vertical)).concat((0,f.Z)(n.horizontal)),"anchorOrigin".concat((0,f.Z)(n.vertical)).concat((0,f.Z)(n.horizontal)).concat((0,f.Z)(o)),"overlap".concat((0,f.Z)(o)),"default"!==t&&"color".concat((0,f.Z)(t))]};return(0,c.Z)(l,v,s)}(ue),pe=null!=(n=null!=(r=null==_?void 0:_.root)?r:O.Root)?n:x,fe=null!=(a=null!=(d=null==_?void 0:_.badge)?d:O.Badge)?a:w,he=null!=(h=null==z?void 0:z.root)?h:D.root,me=null!=(m=null==z?void 0:z.badge)?m:D.badge,ve=(0,u.Z)({elementType:pe,externalSlotProps:he,externalForwardedProps:q,additionalProps:{ref:t,as:k},ownerState:ue,className:(0,s.default)(null==he?void 0:he.className,de.root,S)}),ge=(0,u.Z)({elementType:fe,externalSlotProps:me,ownerState:ue,className:(0,s.default)(de.badge,null==me?void 0:me.className)});return(0,y.jsxs)(pe,(0,i.Z)({},ve,{children:[P,(0,y.jsx)(fe,(0,i.Z)({},ge,{children:ce}))]}))}))},11240:function(e,t,n){"use strict";n.d(t,{Z:function(){return Z}});var r=n(64649),o=n(30808),i=n(25773),a=n(30303),s=n(21792),l=n(19899),c=n(96148),u=n(92939),d=n(52492),p=n(72188),f=n(99287),h=n(85961),m=n(13839),v=n(22997);function g(e){return(0,v.Z)("MuiButton",e)}var y=(0,m.Z)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var b=a.createContext({}),x=n(27241),w=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],C=function(e){return(0,i.Z)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}})},j=(0,d.ZP)(f.Z,{shouldForwardProp:function(e){return(0,d.FO)(e)||"classes"===e},name:"MuiButton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],t["".concat(n.variant).concat((0,h.Z)(n.color))],t["size".concat((0,h.Z)(n.size))],t["".concat(n.variant,"Size").concat((0,h.Z)(n.size))],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((function(e){var t,n,o,a=e.theme,s=e.ownerState,l="light"===a.palette.mode?a.palette.grey[300]:a.palette.grey[800],c="light"===a.palette.mode?a.palette.grey.A100:a.palette.grey[700];return(0,i.Z)({},a.typography.button,(t={minWidth:64,padding:"6px 16px",borderRadius:(a.vars||a).shape.borderRadius,transition:a.transitions.create(["background-color","box-shadow","border-color","color"],{duration:a.transitions.duration.short}),"&:hover":(0,i.Z)({textDecoration:"none",backgroundColor:a.vars?"rgba(".concat(a.vars.palette.text.primaryChannel," / ").concat(a.vars.palette.action.hoverOpacity,")"):(0,u.Fq)(a.palette.text.primary,a.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===s.variant&&"inherit"!==s.color&&{backgroundColor:a.vars?"rgba(".concat(a.vars.palette[s.color].mainChannel," / ").concat(a.vars.palette.action.hoverOpacity,")"):(0,u.Fq)(a.palette[s.color].main,a.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===s.variant&&"inherit"!==s.color&&{border:"1px solid ".concat((a.vars||a).palette[s.color].main),backgroundColor:a.vars?"rgba(".concat(a.vars.palette[s.color].mainChannel," / ").concat(a.vars.palette.action.hoverOpacity,")"):(0,u.Fq)(a.palette[s.color].main,a.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===s.variant&&{backgroundColor:a.vars?a.vars.palette.Button.inheritContainedHoverBg:c,boxShadow:(a.vars||a).shadows[4],"@media (hover: none)":{boxShadow:(a.vars||a).shadows[2],backgroundColor:(a.vars||a).palette.grey[300]}},"contained"===s.variant&&"inherit"!==s.color&&{backgroundColor:(a.vars||a).palette[s.color].dark,"@media (hover: none)":{backgroundColor:(a.vars||a).palette[s.color].main}}),"&:active":(0,i.Z)({},"contained"===s.variant&&{boxShadow:(a.vars||a).shadows[8]})},(0,r.Z)(t,"&.".concat(y.focusVisible),(0,i.Z)({},"contained"===s.variant&&{boxShadow:(a.vars||a).shadows[6]})),(0,r.Z)(t,"&.".concat(y.disabled),(0,i.Z)({color:(a.vars||a).palette.action.disabled},"outlined"===s.variant&&{border:"1px solid ".concat((a.vars||a).palette.action.disabledBackground)},"contained"===s.variant&&{color:(a.vars||a).palette.action.disabled,boxShadow:(a.vars||a).shadows[0],backgroundColor:(a.vars||a).palette.action.disabledBackground})),t),"text"===s.variant&&{padding:"6px 8px"},"text"===s.variant&&"inherit"!==s.color&&{color:(a.vars||a).palette[s.color].main},"outlined"===s.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===s.variant&&"inherit"!==s.color&&{color:(a.vars||a).palette[s.color].main,border:a.vars?"1px solid rgba(".concat(a.vars.palette[s.color].mainChannel," / 0.5)"):"1px solid ".concat((0,u.Fq)(a.palette[s.color].main,.5))},"contained"===s.variant&&{color:a.vars?a.vars.palette.text.primary:null==(n=(o=a.palette).getContrastText)?void 0:n.call(o,a.palette.grey[300]),backgroundColor:a.vars?a.vars.palette.Button.inheritContainedBg:l,boxShadow:(a.vars||a).shadows[2]},"contained"===s.variant&&"inherit"!==s.color&&{color:(a.vars||a).palette[s.color].contrastText,backgroundColor:(a.vars||a).palette[s.color].main},"inherit"===s.color&&{color:"inherit",borderColor:"currentColor"},"small"===s.size&&"text"===s.variant&&{padding:"4px 5px",fontSize:a.typography.pxToRem(13)},"large"===s.size&&"text"===s.variant&&{padding:"8px 11px",fontSize:a.typography.pxToRem(15)},"small"===s.size&&"outlined"===s.variant&&{padding:"3px 9px",fontSize:a.typography.pxToRem(13)},"large"===s.size&&"outlined"===s.variant&&{padding:"7px 21px",fontSize:a.typography.pxToRem(15)},"small"===s.size&&"contained"===s.variant&&{padding:"4px 10px",fontSize:a.typography.pxToRem(13)},"large"===s.size&&"contained"===s.variant&&{padding:"8px 22px",fontSize:a.typography.pxToRem(15)},s.fullWidth&&{width:"100%"})}),(function(e){var t;return e.ownerState.disableElevation&&(t={boxShadow:"none","&:hover":{boxShadow:"none"}},(0,r.Z)(t,"&.".concat(y.focusVisible),{boxShadow:"none"}),(0,r.Z)(t,"&:active",{boxShadow:"none"}),(0,r.Z)(t,"&.".concat(y.disabled),{boxShadow:"none"}),t)})),S=(0,d.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:function(e,t){var n=e.ownerState;return[t.startIcon,t["iconSize".concat((0,h.Z)(n.size))]]}})((function(e){var t=e.ownerState;return(0,i.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},C(t))})),k=(0,d.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:function(e,t){var n=e.ownerState;return[t.endIcon,t["iconSize".concat((0,h.Z)(n.size))]]}})((function(e){var t=e.ownerState;return(0,i.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},C(t))})),Z=a.forwardRef((function(e,t){var n=a.useContext(b),r=(0,l.Z)(n,e),u=(0,p.Z)({props:r,name:"MuiButton"}),d=u.children,f=u.color,m=void 0===f?"primary":f,v=u.component,y=void 0===v?"button":v,C=u.className,Z=u.disabled,O=void 0!==Z&&Z,E=u.disableElevation,D=void 0!==E&&E,P=u.disableFocusRipple,A=void 0!==P&&P,M=u.endIcon,T=u.focusVisibleClassName,I=u.fullWidth,R=void 0!==I&&I,F=u.size,B=void 0===F?"medium":F,L=u.startIcon,N=u.type,_=u.variant,z=void 0===_?"text":_,H=(0,o.Z)(u,w),W=(0,i.Z)({},u,{color:m,component:y,disabled:O,disableElevation:D,disableFocusRipple:A,fullWidth:R,size:B,type:N,variant:z}),V=function(e){var t=e.color,n=e.disableElevation,r=e.fullWidth,o=e.size,a=e.variant,s=e.classes,l={root:["root",a,"".concat(a).concat((0,h.Z)(t)),"size".concat((0,h.Z)(o)),"".concat(a,"Size").concat((0,h.Z)(o)),"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon","iconSize".concat((0,h.Z)(o))],endIcon:["endIcon","iconSize".concat((0,h.Z)(o))]},u=(0,c.Z)(l,g,s);return(0,i.Z)({},s,u)}(W),U=L&&(0,x.jsx)(S,{className:V.startIcon,ownerState:W,children:L}),q=M&&(0,x.jsx)(k,{className:V.endIcon,ownerState:W,children:M});return(0,x.jsxs)(j,(0,i.Z)({ownerState:W,className:(0,s.default)(n.className,V.root,C),component:y,disabled:O,focusRipple:!A,focusVisibleClassName:(0,s.default)(V.focusVisible,T),ref:t,type:N},H,{classes:V,children:[U,d,q]}))}))},99287:function(e,t,n){"use strict";n.d(t,{Z:function(){return q}});var r=n(11026),o=n(64649),i=n(25773),a=n(30808),s=n(30303),l=n(21792),c=n(96148),u=n(52492),d=n(72188),p=n(26605),f=n(51748),h=n(4027),m=n(649),v=n(50669),g=n(17238),y=n(19471),b=n(27241);var x=function(e){var t=e.className,n=e.classes,o=e.pulsate,i=void 0!==o&&o,a=e.rippleX,c=e.rippleY,u=e.rippleSize,d=e.in,p=e.onExited,f=e.timeout,h=s.useState(!1),m=(0,r.Z)(h,2),v=m[0],g=m[1],y=(0,l.default)(t,n.ripple,n.rippleVisible,i&&n.ripplePulsate),x={width:u,height:u,top:-u/2+c,left:-u/2+a},w=(0,l.default)(n.child,v&&n.childLeaving,i&&n.childPulsate);return d||v||g(!0),s.useEffect((function(){if(!d&&null!=p){var e=setTimeout(p,f);return function(){clearTimeout(e)}}}),[p,d,f]),(0,b.jsx)("span",{className:y,style:x,children:(0,b.jsx)("span",{className:w})})},w=n(13839);var C,j,S,k,Z,O,E,D,P=(0,w.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),A=["center","classes","className"],M=(0,y.F4)(Z||(Z=C||(C=(0,v.Z)(["\n  0% {\n    transform: scale(0);\n    opacity: 0.1;\n  }\n\n  100% {\n    transform: scale(1);\n    opacity: 0.3;\n  }\n"])))),T=(0,y.F4)(O||(O=j||(j=(0,v.Z)(["\n  0% {\n    opacity: 1;\n  }\n\n  100% {\n    opacity: 0;\n  }\n"])))),I=(0,y.F4)(E||(E=S||(S=(0,v.Z)(["\n  0% {\n    transform: scale(1);\n  }\n\n  50% {\n    transform: scale(0.92);\n  }\n\n  100% {\n    transform: scale(1);\n  }\n"])))),R=(0,u.ZP)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),F=(0,u.ZP)(x,{name:"MuiTouchRipple",slot:"Ripple"})(D||(D=k||(k=(0,v.Z)(["\n  opacity: 0;\n  position: absolute;\n\n  &."," {\n    opacity: 0.3;\n    transform: scale(1);\n    animation-name: ",";\n    animation-duration: ","ms;\n    animation-timing-function: ",";\n  }\n\n  &."," {\n    animation-duration: ","ms;\n  }\n\n  & ."," {\n    opacity: 1;\n    display: block;\n    width: 100%;\n    height: 100%;\n    border-radius: 50%;\n    background-color: currentColor;\n  }\n\n  & ."," {\n    opacity: 0;\n    animation-name: ",";\n    animation-duration: ","ms;\n    animation-timing-function: ",";\n  }\n\n  & ."," {\n    position: absolute;\n    /* @noflip */\n    left: 0px;\n    top: 0;\n    animation-name: ",";\n    animation-duration: 2500ms;\n    animation-timing-function: ",";\n    animation-iteration-count: infinite;\n    animation-delay: 200ms;\n  }\n"]))),P.rippleVisible,M,550,(function(e){return e.theme.transitions.easing.easeInOut}),P.ripplePulsate,(function(e){return e.theme.transitions.duration.shorter}),P.child,P.childLeaving,T,550,(function(e){return e.theme.transitions.easing.easeInOut}),P.childPulsate,I,(function(e){return e.theme.transitions.easing.easeInOut})),B=s.forwardRef((function(e,t){var n=(0,d.Z)({props:e,name:"MuiTouchRipple"}),o=n.center,c=void 0!==o&&o,u=n.classes,p=void 0===u?{}:u,f=n.className,h=(0,a.Z)(n,A),v=s.useState([]),y=(0,r.Z)(v,2),x=y[0],w=y[1],C=s.useRef(0),j=s.useRef(null);s.useEffect((function(){j.current&&(j.current(),j.current=null)}),[x]);var S=s.useRef(!1),k=s.useRef(null),Z=s.useRef(null),O=s.useRef(null);s.useEffect((function(){return function(){clearTimeout(k.current)}}),[]);var E=s.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,i=e.cb;w((function(e){return[].concat((0,m.Z)(e),[(0,b.jsx)(F,{classes:{ripple:(0,l.default)(p.ripple,P.ripple),rippleVisible:(0,l.default)(p.rippleVisible,P.rippleVisible),ripplePulsate:(0,l.default)(p.ripplePulsate,P.ripplePulsate),child:(0,l.default)(p.child,P.child),childLeaving:(0,l.default)(p.childLeaving,P.childLeaving),childPulsate:(0,l.default)(p.childPulsate,P.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},C.current)])})),C.current+=1,j.current=i}),[p]),D=s.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=t.pulsate,o=void 0!==r&&r,i=t.center,a=void 0===i?c||t.pulsate:i,s=t.fakeElement,l=void 0!==s&&s;if("mousedown"===(null==e?void 0:e.type)&&S.current)S.current=!1;else{"touchstart"===(null==e?void 0:e.type)&&(S.current=!0);var u,d,p,f=l?null:O.current,h=f?f.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(h.width/2),d=Math.round(h.height/2);else{var m=e.touches&&e.touches.length>0?e.touches[0]:e,v=m.clientX,g=m.clientY;u=Math.round(v-h.left),d=Math.round(g-h.top)}if(a)(p=Math.sqrt((2*Math.pow(h.width,2)+Math.pow(h.height,2))/3))%2===0&&(p+=1);else{var y=2*Math.max(Math.abs((f?f.clientWidth:0)-u),u)+2,b=2*Math.max(Math.abs((f?f.clientHeight:0)-d),d)+2;p=Math.sqrt(Math.pow(y,2)+Math.pow(b,2))}null!=e&&e.touches?null===Z.current&&(Z.current=function(){E({pulsate:o,rippleX:u,rippleY:d,rippleSize:p,cb:n})},k.current=setTimeout((function(){Z.current&&(Z.current(),Z.current=null)}),80)):E({pulsate:o,rippleX:u,rippleY:d,rippleSize:p,cb:n})}}),[c,E]),M=s.useCallback((function(){D({},{pulsate:!0})}),[D]),T=s.useCallback((function(e,t){if(clearTimeout(k.current),"touchend"===(null==e?void 0:e.type)&&Z.current)return Z.current(),Z.current=null,void(k.current=setTimeout((function(){T(e,t)})));Z.current=null,w((function(e){return e.length>0?e.slice(1):e})),j.current=t}),[]);return s.useImperativeHandle(t,(function(){return{pulsate:M,start:D,stop:T}}),[M,D,T]),(0,b.jsx)(R,(0,i.Z)({className:(0,l.default)(P.root,p.root,f),ref:O},h,{children:(0,b.jsx)(g.Z,{component:null,exit:!0,children:x})}))})),L=B,N=n(22997);function _(e){return(0,N.Z)("MuiButtonBase",e)}var z,H=(0,w.Z)("MuiButtonBase",["root","disabled","focusVisible"]),W=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],V=(0,u.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:function(e,t){return t.root}})((z={display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"}},(0,o.Z)(z,"&.".concat(H.disabled),{pointerEvents:"none",cursor:"default"}),(0,o.Z)(z,"@media print",{colorAdjust:"exact"}),z)),U=s.forwardRef((function(e,t){var n=(0,d.Z)({props:e,name:"MuiButtonBase"}),o=n.action,u=n.centerRipple,m=void 0!==u&&u,v=n.children,g=n.className,y=n.component,x=void 0===y?"button":y,w=n.disabled,C=void 0!==w&&w,j=n.disableRipple,S=void 0!==j&&j,k=n.disableTouchRipple,Z=void 0!==k&&k,O=n.focusRipple,E=void 0!==O&&O,D=n.LinkComponent,P=void 0===D?"a":D,A=n.onBlur,M=n.onClick,T=n.onContextMenu,I=n.onDragLeave,R=n.onFocus,F=n.onFocusVisible,B=n.onKeyDown,N=n.onKeyUp,z=n.onMouseDown,H=n.onMouseLeave,U=n.onMouseUp,q=n.onTouchEnd,G=n.onTouchMove,Y=n.onTouchStart,K=n.tabIndex,J=void 0===K?0:K,X=n.TouchRippleProps,Q=n.touchRippleRef,$=n.type,ee=(0,a.Z)(n,W),te=s.useRef(null),ne=s.useRef(null),re=(0,p.Z)(ne,Q),oe=(0,h.Z)(),ie=oe.isFocusVisibleRef,ae=oe.onFocus,se=oe.onBlur,le=oe.ref,ce=s.useState(!1),ue=(0,r.Z)(ce,2),de=ue[0],pe=ue[1];C&&de&&pe(!1),s.useImperativeHandle(o,(function(){return{focusVisible:function(){pe(!0),te.current.focus()}}}),[]);var fe=s.useState(!1),he=(0,r.Z)(fe,2),me=he[0],ve=he[1];s.useEffect((function(){ve(!0)}),[]);var ge=me&&!S&&!C;function ye(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Z;return(0,f.Z)((function(r){return t&&t(r),!n&&ne.current&&ne.current[e](r),!0}))}s.useEffect((function(){de&&E&&!S&&me&&ne.current.pulsate()}),[S,E,de,me]);var be=ye("start",z),xe=ye("stop",T),we=ye("stop",I),Ce=ye("stop",U),je=ye("stop",(function(e){de&&e.preventDefault(),H&&H(e)})),Se=ye("start",Y),ke=ye("stop",q),Ze=ye("stop",G),Oe=ye("stop",(function(e){se(e),!1===ie.current&&pe(!1),A&&A(e)}),!1),Ee=(0,f.Z)((function(e){te.current||(te.current=e.currentTarget),ae(e),!0===ie.current&&(pe(!0),F&&F(e)),R&&R(e)})),De=function(){var e=te.current;return x&&"button"!==x&&!("A"===e.tagName&&e.href)},Pe=s.useRef(!1),Ae=(0,f.Z)((function(e){E&&!Pe.current&&de&&ne.current&&" "===e.key&&(Pe.current=!0,ne.current.stop(e,(function(){ne.current.start(e)}))),e.target===e.currentTarget&&De()&&" "===e.key&&e.preventDefault(),B&&B(e),e.target===e.currentTarget&&De()&&"Enter"===e.key&&!C&&(e.preventDefault(),M&&M(e))})),Me=(0,f.Z)((function(e){E&&" "===e.key&&ne.current&&de&&!e.defaultPrevented&&(Pe.current=!1,ne.current.stop(e,(function(){ne.current.pulsate(e)}))),N&&N(e),M&&e.target===e.currentTarget&&De()&&" "===e.key&&!e.defaultPrevented&&M(e)})),Te=x;"button"===Te&&(ee.href||ee.to)&&(Te=P);var Ie={};"button"===Te?(Ie.type=void 0===$?"button":$,Ie.disabled=C):(ee.href||ee.to||(Ie.role="button"),C&&(Ie["aria-disabled"]=C));var Re=(0,p.Z)(t,le,te);var Fe=(0,i.Z)({},n,{centerRipple:m,component:x,disabled:C,disableRipple:S,disableTouchRipple:Z,focusRipple:E,tabIndex:J,focusVisible:de}),Be=function(e){var t=e.disabled,n=e.focusVisible,r=e.focusVisibleClassName,o=e.classes,i={root:["root",t&&"disabled",n&&"focusVisible"]},a=(0,c.Z)(i,_,o);return n&&r&&(a.root+=" ".concat(r)),a}(Fe);return(0,b.jsxs)(V,(0,i.Z)({as:Te,className:(0,l.default)(Be.root,g),ownerState:Fe,onBlur:Oe,onClick:M,onContextMenu:xe,onFocus:Ee,onKeyDown:Ae,onKeyUp:Me,onMouseDown:be,onMouseLeave:je,onMouseUp:Ce,onDragLeave:we,onTouchEnd:ke,onTouchMove:Ze,onTouchStart:Se,ref:Re,tabIndex:C?-1:J,type:$},Ie,ee,{children:[v,ge?(0,b.jsx)(L,(0,i.Z)({ref:re,center:m},X)):null]}))})),q=U},90736:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var r=n(64649),o=n(30808),i=n(25773),a=n(30303),s=n(21792),l=n(96148),c=n(92939),u=n(13769),d=n(86162),p=n(27241),f=(0,d.Z)((0,p.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),h=(0,d.Z)((0,p.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),m=(0,d.Z)((0,p.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),v=n(85961),g=n(72188),y=n(52492),b=n(13839),x=n(22997);function w(e){return(0,x.Z)("MuiCheckbox",e)}var C=(0,b.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),j=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],S=(0,y.ZP)(u.Z,{shouldForwardProp:function(e){return(0,y.FO)(e)||"classes"===e},name:"MuiCheckbox",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t["color".concat((0,v.Z)(n.color))]]}})((function(e){var t,n=e.theme,o=e.ownerState;return(0,i.Z)({color:(n.vars||n).palette.text.secondary},!o.disableRipple&&{"&:hover":{backgroundColor:n.vars?"rgba(".concat("default"===o.color?n.vars.palette.action.activeChannel:n.vars.palette.primary.mainChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,c.Fq)("default"===o.color?n.palette.action.active:n.palette[o.color].main,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==o.color&&(t={},(0,r.Z)(t,"&.".concat(C.checked,", &.").concat(C.indeterminate),{color:(n.vars||n).palette[o.color].main}),(0,r.Z)(t,"&.".concat(C.disabled),{color:(n.vars||n).palette.action.disabled}),t))})),k=(0,p.jsx)(h,{}),Z=(0,p.jsx)(f,{}),O=(0,p.jsx)(m,{}),E=a.forwardRef((function(e,t){var n,r,c=(0,g.Z)({props:e,name:"MuiCheckbox"}),u=c.checkedIcon,d=void 0===u?k:u,f=c.color,h=void 0===f?"primary":f,m=c.icon,y=void 0===m?Z:m,b=c.indeterminate,x=void 0!==b&&b,C=c.indeterminateIcon,E=void 0===C?O:C,D=c.inputProps,P=c.size,A=void 0===P?"medium":P,M=c.className,T=(0,o.Z)(c,j),I=x?E:y,R=x?E:d,F=(0,i.Z)({},c,{color:h,indeterminate:x,size:A}),B=function(e){var t=e.classes,n=e.indeterminate,r=e.color,o={root:["root",n&&"indeterminate","color".concat((0,v.Z)(r))]},a=(0,l.Z)(o,w,t);return(0,i.Z)({},t,a)}(F);return(0,p.jsx)(S,(0,i.Z)({type:"checkbox",inputProps:(0,i.Z)({"data-indeterminate":x},D),icon:a.cloneElement(I,{fontSize:null!=(n=I.props.fontSize)?n:A}),checkedIcon:a.cloneElement(R,{fontSize:null!=(r=R.props.fontSize)?r:A}),ownerState:F,ref:t,className:(0,s.default)(B.root,M)},T,{classes:B}))}))},48227:function(e,t,n){"use strict";n.d(t,{Z:function(){return Z}});var r=n(64649),o=n(30808),i=n(25773),a=n(30303),s=n(21792),l=n(96148),c=n(92939),u=n(86162),d=n(27241),p=(0,u.Z)((0,d.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel"),f=n(26605),h=n(85961),m=n(99287),v=n(72188),g=n(52492),y=n(13839),b=n(22997);function x(e){return(0,b.Z)("MuiChip",e)}var w=(0,y.Z)("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),C=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],j=(0,g.ZP)("div",{name:"MuiChip",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState,o=n.color,i=n.iconColor,a=n.clickable,s=n.onDelete,l=n.size,c=n.variant;return[(0,r.Z)({},"& .".concat(w.avatar),t.avatar),(0,r.Z)({},"& .".concat(w.avatar),t["avatar".concat((0,h.Z)(l))]),(0,r.Z)({},"& .".concat(w.avatar),t["avatarColor".concat((0,h.Z)(o))]),(0,r.Z)({},"& .".concat(w.icon),t.icon),(0,r.Z)({},"& .".concat(w.icon),t["icon".concat((0,h.Z)(l))]),(0,r.Z)({},"& .".concat(w.icon),t["iconColor".concat((0,h.Z)(i))]),(0,r.Z)({},"& .".concat(w.deleteIcon),t.deleteIcon),(0,r.Z)({},"& .".concat(w.deleteIcon),t["deleteIcon".concat((0,h.Z)(l))]),(0,r.Z)({},"& .".concat(w.deleteIcon),t["deleteIconColor".concat((0,h.Z)(o))]),(0,r.Z)({},"& .".concat(w.deleteIcon),t["deleteIcon".concat((0,h.Z)(c),"Color").concat((0,h.Z)(o))]),t.root,t["size".concat((0,h.Z)(l))],t["color".concat((0,h.Z)(o))],a&&t.clickable,a&&"default"!==o&&t["clickableColor".concat((0,h.Z)(o),")")],s&&t.deletable,s&&"default"!==o&&t["deletableColor".concat((0,h.Z)(o))],t[c],t["".concat(c).concat((0,h.Z)(o))]]}})((function(e){var t,n=e.theme,o=e.ownerState,a="light"===n.palette.mode?n.palette.grey[700]:n.palette.grey[300];return(0,i.Z)((t={maxWidth:"100%",fontFamily:n.typography.fontFamily,fontSize:n.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(n.vars||n).palette.text.primary,backgroundColor:(n.vars||n).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:n.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box"},(0,r.Z)(t,"&.".concat(w.disabled),{opacity:(n.vars||n).palette.action.disabledOpacity,pointerEvents:"none"}),(0,r.Z)(t,"& .".concat(w.avatar),{marginLeft:5,marginRight:-6,width:24,height:24,color:n.vars?n.vars.palette.Chip.defaultAvatarColor:a,fontSize:n.typography.pxToRem(12)}),(0,r.Z)(t,"& .".concat(w.avatarColorPrimary),{color:(n.vars||n).palette.primary.contrastText,backgroundColor:(n.vars||n).palette.primary.dark}),(0,r.Z)(t,"& .".concat(w.avatarColorSecondary),{color:(n.vars||n).palette.secondary.contrastText,backgroundColor:(n.vars||n).palette.secondary.dark}),(0,r.Z)(t,"& .".concat(w.avatarSmall),{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:n.typography.pxToRem(10)}),(0,r.Z)(t,"& .".concat(w.icon),(0,i.Z)({marginLeft:5,marginRight:-6},"small"===o.size&&{fontSize:18,marginLeft:4,marginRight:-4},o.iconColor===o.color&&(0,i.Z)({color:n.vars?n.vars.palette.Chip.defaultIconColor:a},"default"!==o.color&&{color:"inherit"}))),(0,r.Z)(t,"& .".concat(w.deleteIcon),(0,i.Z)({WebkitTapHighlightColor:"transparent",color:n.vars?"rgba(".concat(n.vars.palette.text.primaryChannel," / 0.26)"):(0,c.Fq)(n.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:n.vars?"rgba(".concat(n.vars.palette.text.primaryChannel," / 0.4)"):(0,c.Fq)(n.palette.text.primary,.4)}},"small"===o.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==o.color&&{color:n.vars?"rgba(".concat(n.vars.palette[o.color].contrastTextChannel," / 0.7)"):(0,c.Fq)(n.palette[o.color].contrastText,.7),"&:hover, &:active":{color:(n.vars||n).palette[o.color].contrastText}})),t),"small"===o.size&&{height:24},"default"!==o.color&&{backgroundColor:(n.vars||n).palette[o.color].main,color:(n.vars||n).palette[o.color].contrastText},o.onDelete&&(0,r.Z)({},"&.".concat(w.focusVisible),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.action.selectedChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.focusOpacity,"))"):(0,c.Fq)(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)}),o.onDelete&&"default"!==o.color&&(0,r.Z)({},"&.".concat(w.focusVisible),{backgroundColor:(n.vars||n).palette[o.color].dark}))}),(function(e){var t,n=e.theme,o=e.ownerState;return(0,i.Z)({},o.clickable&&(t={userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.action.selectedChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.hoverOpacity,"))"):(0,c.Fq)(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity)}},(0,r.Z)(t,"&.".concat(w.focusVisible),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.action.selectedChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.focusOpacity,"))"):(0,c.Fq)(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)}),(0,r.Z)(t,"&:active",{boxShadow:(n.vars||n).shadows[1]}),t),o.clickable&&"default"!==o.color&&(0,r.Z)({},"&:hover, &.".concat(w.focusVisible),{backgroundColor:(n.vars||n).palette[o.color].dark}))}),(function(e){var t,n,o=e.theme,a=e.ownerState;return(0,i.Z)({},"outlined"===a.variant&&(t={backgroundColor:"transparent",border:o.vars?"1px solid ".concat(o.vars.palette.Chip.defaultBorder):"1px solid ".concat("light"===o.palette.mode?o.palette.grey[400]:o.palette.grey[700])},(0,r.Z)(t,"&.".concat(w.clickable,":hover"),{backgroundColor:(o.vars||o).palette.action.hover}),(0,r.Z)(t,"&.".concat(w.focusVisible),{backgroundColor:(o.vars||o).palette.action.focus}),(0,r.Z)(t,"& .".concat(w.avatar),{marginLeft:4}),(0,r.Z)(t,"& .".concat(w.avatarSmall),{marginLeft:2}),(0,r.Z)(t,"& .".concat(w.icon),{marginLeft:4}),(0,r.Z)(t,"& .".concat(w.iconSmall),{marginLeft:2}),(0,r.Z)(t,"& .".concat(w.deleteIcon),{marginRight:5}),(0,r.Z)(t,"& .".concat(w.deleteIconSmall),{marginRight:3}),t),"outlined"===a.variant&&"default"!==a.color&&(n={color:(o.vars||o).palette[a.color].main,border:"1px solid ".concat(o.vars?"rgba(".concat(o.vars.palette[a.color].mainChannel," / 0.7)"):(0,c.Fq)(o.palette[a.color].main,.7))},(0,r.Z)(n,"&.".concat(w.clickable,":hover"),{backgroundColor:o.vars?"rgba(".concat(o.vars.palette[a.color].mainChannel," / ").concat(o.vars.palette.action.hoverOpacity,")"):(0,c.Fq)(o.palette[a.color].main,o.palette.action.hoverOpacity)}),(0,r.Z)(n,"&.".concat(w.focusVisible),{backgroundColor:o.vars?"rgba(".concat(o.vars.palette[a.color].mainChannel," / ").concat(o.vars.palette.action.focusOpacity,")"):(0,c.Fq)(o.palette[a.color].main,o.palette.action.focusOpacity)}),(0,r.Z)(n,"& .".concat(w.deleteIcon),{color:o.vars?"rgba(".concat(o.vars.palette[a.color].mainChannel," / 0.7)"):(0,c.Fq)(o.palette[a.color].main,.7),"&:hover, &:active":{color:(o.vars||o).palette[a.color].main}}),n))})),S=(0,g.ZP)("span",{name:"MuiChip",slot:"Label",overridesResolver:function(e,t){var n=e.ownerState.size;return[t.label,t["label".concat((0,h.Z)(n))]]}})((function(e){var t=e.ownerState;return(0,i.Z)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"small"===t.size&&{paddingLeft:8,paddingRight:8})}));function k(e){return"Backspace"===e.key||"Delete"===e.key}var Z=a.forwardRef((function(e,t){var n=(0,v.Z)({props:e,name:"MuiChip"}),r=n.avatar,c=n.className,u=n.clickable,g=n.color,y=void 0===g?"default":g,b=n.component,w=n.deleteIcon,Z=n.disabled,O=void 0!==Z&&Z,E=n.icon,D=n.label,P=n.onClick,A=n.onDelete,M=n.onKeyDown,T=n.onKeyUp,I=n.size,R=void 0===I?"medium":I,F=n.variant,B=void 0===F?"filled":F,L=n.tabIndex,N=n.skipFocusWhenDisabled,_=void 0!==N&&N,z=(0,o.Z)(n,C),H=a.useRef(null),W=(0,f.Z)(H,t),V=function(e){e.stopPropagation(),A&&A(e)},U=!(!1===u||!P)||u,q=U||A?m.Z:b||"div",G=(0,i.Z)({},n,{component:q,disabled:O,size:R,color:y,iconColor:a.isValidElement(E)&&E.props.color||y,onDelete:!!A,clickable:U,variant:B}),Y=function(e){var t=e.classes,n=e.disabled,r=e.size,o=e.color,i=e.iconColor,a=e.onDelete,s=e.clickable,c=e.variant,u={root:["root",c,n&&"disabled","size".concat((0,h.Z)(r)),"color".concat((0,h.Z)(o)),s&&"clickable",s&&"clickableColor".concat((0,h.Z)(o)),a&&"deletable",a&&"deletableColor".concat((0,h.Z)(o)),"".concat(c).concat((0,h.Z)(o))],label:["label","label".concat((0,h.Z)(r))],avatar:["avatar","avatar".concat((0,h.Z)(r)),"avatarColor".concat((0,h.Z)(o))],icon:["icon","icon".concat((0,h.Z)(r)),"iconColor".concat((0,h.Z)(i))],deleteIcon:["deleteIcon","deleteIcon".concat((0,h.Z)(r)),"deleteIconColor".concat((0,h.Z)(o)),"deleteIcon".concat((0,h.Z)(c),"Color").concat((0,h.Z)(o))]};return(0,l.Z)(u,x,t)}(G),K=q===m.Z?(0,i.Z)({component:b||"div",focusVisibleClassName:Y.focusVisible},A&&{disableRipple:!0}):{},J=null;A&&(J=w&&a.isValidElement(w)?a.cloneElement(w,{className:(0,s.default)(w.props.className,Y.deleteIcon),onClick:V}):(0,d.jsx)(p,{className:(0,s.default)(Y.deleteIcon),onClick:V}));var X=null;r&&a.isValidElement(r)&&(X=a.cloneElement(r,{className:(0,s.default)(Y.avatar,r.props.className)}));var Q=null;return E&&a.isValidElement(E)&&(Q=a.cloneElement(E,{className:(0,s.default)(Y.icon,E.props.className)})),(0,d.jsxs)(j,(0,i.Z)({as:q,className:(0,s.default)(Y.root,c),disabled:!(!U||!O)||void 0,onClick:P,onKeyDown:function(e){e.currentTarget===e.target&&k(e)&&e.preventDefault(),M&&M(e)},onKeyUp:function(e){e.currentTarget===e.target&&(A&&k(e)?A(e):"Escape"===e.key&&H.current&&H.current.blur()),T&&T(e)},ref:W,tabIndex:_&&O?-1:L,ownerState:G},K,z,{children:[X||Q,(0,d.jsx)(S,{className:(0,s.default)(Y.label),ownerState:G,children:D}),J]}))}))},3391:function(e,t,n){"use strict";var r,o,i,a,s,l,c,u,d=n(50669),p=n(30808),f=n(25773),h=n(30303),m=n(21792),v=n(96148),g=n(19471),y=n(85961),b=n(72188),x=n(52492),w=n(76810),C=n(27241),j=["className","color","disableShrink","size","style","thickness","value","variant"],S=44,k=(0,g.F4)(s||(s=r||(r=(0,d.Z)(["\n  0% {\n    transform: rotate(0deg);\n  }\n\n  100% {\n    transform: rotate(360deg);\n  }\n"])))),Z=(0,g.F4)(l||(l=o||(o=(0,d.Z)(["\n  0% {\n    stroke-dasharray: 1px, 200px;\n    stroke-dashoffset: 0;\n  }\n\n  50% {\n    stroke-dasharray: 100px, 200px;\n    stroke-dashoffset: -15px;\n  }\n\n  100% {\n    stroke-dasharray: 100px, 200px;\n    stroke-dashoffset: -125px;\n  }\n"])))),O=(0,x.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],t["color".concat((0,y.Z)(n.color))]]}})((function(e){var t=e.ownerState,n=e.theme;return(0,f.Z)({display:"inline-block"},"determinate"===t.variant&&{transition:n.transitions.create("transform")},"inherit"!==t.color&&{color:(n.vars||n).palette[t.color].main})}),(function(e){return"indeterminate"===e.ownerState.variant&&(0,g.iv)(c||(c=i||(i=(0,d.Z)(["\n      animation: "," 1.4s linear infinite;\n    "]))),k)})),E=(0,x.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:function(e,t){return t.svg}})({display:"block"}),D=(0,x.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:function(e,t){var n=e.ownerState;return[t.circle,t["circle".concat((0,y.Z)(n.variant))],n.disableShrink&&t.circleDisableShrink]}})((function(e){var t=e.ownerState,n=e.theme;return(0,f.Z)({stroke:"currentColor"},"determinate"===t.variant&&{transition:n.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(function(e){var t=e.ownerState;return"indeterminate"===t.variant&&!t.disableShrink&&(0,g.iv)(u||(u=a||(a=(0,d.Z)(["\n      animation: "," 1.4s ease-in-out infinite;\n    "]))),Z)})),P=h.forwardRef((function(e,t){var n=(0,b.Z)({props:e,name:"MuiCircularProgress"}),r=n.className,o=n.color,i=void 0===o?"primary":o,a=n.disableShrink,s=void 0!==a&&a,l=n.size,c=void 0===l?40:l,u=n.style,d=n.thickness,h=void 0===d?3.6:d,g=n.value,x=void 0===g?0:g,k=n.variant,Z=void 0===k?"indeterminate":k,P=(0,p.Z)(n,j),A=(0,f.Z)({},n,{color:i,disableShrink:s,size:c,thickness:h,value:x,variant:Z}),M=function(e){var t=e.classes,n=e.variant,r=e.color,o=e.disableShrink,i={root:["root",n,"color".concat((0,y.Z)(r))],svg:["svg"],circle:["circle","circle".concat((0,y.Z)(n)),o&&"circleDisableShrink"]};return(0,v.Z)(i,w.C,t)}(A),T={},I={},R={};if("determinate"===Z){var F=2*Math.PI*((S-h)/2);T.strokeDasharray=F.toFixed(3),R["aria-valuenow"]=Math.round(x),T.strokeDashoffset="".concat(((100-x)/100*F).toFixed(3),"px"),I.transform="rotate(-90deg)"}return(0,C.jsx)(O,(0,f.Z)({className:(0,m.default)(M.root,r),style:(0,f.Z)({width:c,height:c},I,u),ownerState:A,ref:t,role:"progressbar"},R,P,{children:(0,C.jsx)(E,{className:M.svg,ownerState:A,viewBox:"".concat(22," ").concat(22," ").concat(S," ").concat(S),children:(0,C.jsx)(D,{className:M.circle,style:T,ownerState:A,cx:S,cy:S,r:(S-h)/2,fill:"none",strokeWidth:h})})}))}));t.Z=P},76810:function(e,t,n){"use strict";n.d(t,{C:function(){return i}});var r=n(13839),o=n(22997);function i(e){return(0,o.Z)("MuiCircularProgress",e)}var a=(0,r.Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);t.Z=a},36777:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var r=n(13839),o=n(22997);function i(e){return(0,o.Z)("MuiDivider",e)}var a=(0,r.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);t.Z=a},23187:function(e,t,n){"use strict";var r=n(25773),o=n(30808),i=n(30303),a=n(95895),s=n(99227),l=n(14813),c=n(26605),u=n(27241),d=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],p={entering:{opacity:1},entered:{opacity:1}},f=i.forwardRef((function(e,t){var n=(0,s.Z)(),f={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},h=e.addEndListener,m=e.appear,v=void 0===m||m,g=e.children,y=e.easing,b=e.in,x=e.onEnter,w=e.onEntered,C=e.onEntering,j=e.onExit,S=e.onExited,k=e.onExiting,Z=e.style,O=e.timeout,E=void 0===O?f:O,D=e.TransitionComponent,P=void 0===D?a.ZP:D,A=(0,o.Z)(e,d),M=i.useRef(null),T=(0,c.Z)(M,g.ref,t),I=function(e){return function(t){if(e){var n=M.current;void 0===t?e(n):e(n,t)}}},R=I(C),F=I((function(e,t){(0,l.n)(e);var r=(0,l.C)({style:Z,timeout:E,easing:y},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),x&&x(e,t)})),B=I(w),L=I(k),N=I((function(e){var t=(0,l.C)({style:Z,timeout:E,easing:y},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),j&&j(e)})),_=I(S);return(0,u.jsx)(P,(0,r.Z)({appear:v,in:b,nodeRef:M,onEnter:F,onEntered:B,onEntering:R,onExit:N,onExited:_,onExiting:L,addEndListener:function(e){h&&h(M.current,e)},timeout:E},A,{children:function(e,t){return i.cloneElement(g,(0,r.Z)({style:(0,r.Z)({opacity:0,visibility:"exited"!==e||b?void 0:"hidden"},p[e],Z,g.props.style),ref:T},t))}}))}));t.Z=f},85680:function(e,t,n){"use strict";var r=n(64649),o=n(649),i=n(30808),a=n(25773),s=n(30303),l=n(8190),c=n(96148),u=n(86239),d=n(52492),p=n(72188),f=n(98287),h=n(27241),m=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],v=(0,d.ZP)(u.Ej,{shouldForwardProp:function(e){return(0,d.FO)(e)||"classes"===e},name:"MuiFilledInput",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[].concat((0,o.Z)((0,u.Gx)(e,t)),[!n.disableUnderline&&t.underline])}})((function(e){var t,n,o,i=e.theme,s=e.ownerState,l="light"===i.palette.mode,c=l?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",u=l?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",d=l?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",p=l?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,a.Z)((t={position:"relative",backgroundColor:i.vars?i.vars.palette.FilledInput.bg:u,borderTopLeftRadius:(i.vars||i).shape.borderRadius,borderTopRightRadius:(i.vars||i).shape.borderRadius,transition:i.transitions.create("background-color",{duration:i.transitions.duration.shorter,easing:i.transitions.easing.easeOut}),"&:hover":{backgroundColor:i.vars?i.vars.palette.FilledInput.hoverBg:d,"@media (hover: none)":{backgroundColor:i.vars?i.vars.palette.FilledInput.bg:u}}},(0,r.Z)(t,"&.".concat(f.Z.focused),{backgroundColor:i.vars?i.vars.palette.FilledInput.bg:u}),(0,r.Z)(t,"&.".concat(f.Z.disabled),{backgroundColor:i.vars?i.vars.palette.FilledInput.disabledBg:p}),t),!s.disableUnderline&&(n={"&:after":{borderBottom:"2px solid ".concat(null==(o=(i.vars||i).palette[s.color||"primary"])?void 0:o.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:i.transitions.create("transform",{duration:i.transitions.duration.shorter,easing:i.transitions.easing.easeOut}),pointerEvents:"none"}},(0,r.Z)(n,"&.".concat(f.Z.focused,":after"),{transform:"scaleX(1) translateX(0)"}),(0,r.Z)(n,"&.".concat(f.Z.error),{"&:before, &:after":{borderBottomColor:(i.vars||i).palette.error.main}}),(0,r.Z)(n,"&:before",{borderBottom:"1px solid ".concat(i.vars?"rgba(".concat(i.vars.palette.common.onBackgroundChannel," / ").concat(i.vars.opacity.inputUnderline,")"):c),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:i.transitions.create("border-bottom-color",{duration:i.transitions.duration.shorter}),pointerEvents:"none"}),(0,r.Z)(n,"&:hover:not(.".concat(f.Z.disabled,", .").concat(f.Z.error,"):before"),{borderBottom:"1px solid ".concat((i.vars||i).palette.text.primary)}),(0,r.Z)(n,"&.".concat(f.Z.disabled,":before"),{borderBottomStyle:"dotted"}),n),s.startAdornment&&{paddingLeft:12},s.endAdornment&&{paddingRight:12},s.multiline&&(0,a.Z)({padding:"25px 12px 8px"},"small"===s.size&&{paddingTop:21,paddingBottom:4},s.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),g=(0,d.ZP)(u.rA,{name:"MuiFilledInput",slot:"Input",overridesResolver:u._o})((function(e){var t=e.theme,n=e.ownerState;return(0,a.Z)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&(0,r.Z)({"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.getColorSchemeSelector("dark"),{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}),"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17},n.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0},n.hiddenLabel&&"small"===n.size&&{paddingTop:8,paddingBottom:9})})),y=s.forwardRef((function(e,t){var n,r,o,s,d=(0,p.Z)({props:e,name:"MuiFilledInput"}),y=d.components,b=void 0===y?{}:y,x=d.componentsProps,w=d.fullWidth,C=void 0!==w&&w,j=d.inputComponent,S=void 0===j?"input":j,k=d.multiline,Z=void 0!==k&&k,O=d.slotProps,E=d.slots,D=void 0===E?{}:E,P=d.type,A=void 0===P?"text":P,M=(0,i.Z)(d,m),T=(0,a.Z)({},d,{fullWidth:C,inputComponent:S,multiline:Z,type:A}),I=function(e){var t=e.classes,n={root:["root",!e.disableUnderline&&"underline"],input:["input"]},r=(0,c.Z)(n,f._,t);return(0,a.Z)({},t,r)}(d),R={root:{ownerState:T},input:{ownerState:T}},F=(null!=O?O:x)?(0,l.Z)(null!=O?O:x,R):R,B=null!=(n=null!=(r=D.root)?r:b.Root)?n:v,L=null!=(o=null!=(s=D.input)?s:b.Input)?o:g;return(0,h.jsx)(u.ZP,(0,a.Z)({slots:{root:B,input:L},componentsProps:F,fullWidth:C,inputComponent:S,multiline:Z,ref:t,type:A},M,{classes:I}))}));y.muiName="Input",t.Z=y},98287:function(e,t,n){"use strict";n.d(t,{_:function(){return s}});var r=n(25773),o=n(13839),i=n(22997),a=n(68902);function s(e){return(0,i.Z)("MuiFilledInput",e)}var l=(0,r.Z)({},a.Z,(0,o.Z)("MuiFilledInput",["root","underline","input"]));t.Z=l},47966:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(11026),o=n(30808),i=n(25773),a=n(30303),s=n(21792),l=n(96148),c=n(72188),u=n(52492),d=n(18792),p=n(85961),f=n(29728),h=n(60533),m=n(13839),v=n(22997);function g(e){return(0,v.Z)("MuiFormControl",e)}(0,m.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var y=n(27241),b=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],x=(0,u.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return(0,i.Z)({},t.root,t["margin".concat((0,p.Z)(n.margin))],n.fullWidth&&t.fullWidth)}})((function(e){var t=e.ownerState;return(0,i.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===t.margin&&{marginTop:16,marginBottom:8},"dense"===t.margin&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})})),w=a.forwardRef((function(e,t){var n=(0,c.Z)({props:e,name:"MuiFormControl"}),u=n.children,m=n.className,v=n.color,w=void 0===v?"primary":v,C=n.component,j=void 0===C?"div":C,S=n.disabled,k=void 0!==S&&S,Z=n.error,O=void 0!==Z&&Z,E=n.focused,D=n.fullWidth,P=void 0!==D&&D,A=n.hiddenLabel,M=void 0!==A&&A,T=n.margin,I=void 0===T?"none":T,R=n.required,F=void 0!==R&&R,B=n.size,L=void 0===B?"medium":B,N=n.variant,_=void 0===N?"outlined":N,z=(0,o.Z)(n,b),H=(0,i.Z)({},n,{color:w,component:j,disabled:k,error:O,fullWidth:P,hiddenLabel:M,margin:I,required:F,size:L,variant:_}),W=function(e){var t=e.classes,n=e.margin,r=e.fullWidth,o={root:["root","none"!==n&&"margin".concat((0,p.Z)(n)),r&&"fullWidth"]};return(0,l.Z)(o,g,t)}(H),V=a.useState((function(){var e=!1;return u&&a.Children.forEach(u,(function(t){if((0,f.Z)(t,["Input","Select"])){var n=(0,f.Z)(t,["Select"])?t.props.input:t;n&&(0,d.B7)(n.props)&&(e=!0)}})),e})),U=(0,r.Z)(V,2),q=U[0],G=U[1],Y=a.useState((function(){var e=!1;return u&&a.Children.forEach(u,(function(t){(0,f.Z)(t,["Input","Select"])&&((0,d.vd)(t.props,!0)||(0,d.vd)(t.props.inputProps,!0))&&(e=!0)})),e})),K=(0,r.Z)(Y,2),J=K[0],X=K[1],Q=a.useState(!1),$=(0,r.Z)(Q,2),ee=$[0],te=$[1];k&&ee&&te(!1);var ne,re=void 0===E||k?ee:E,oe=a.useMemo((function(){return{adornedStart:q,setAdornedStart:G,color:w,disabled:k,error:O,filled:J,focused:re,fullWidth:P,hiddenLabel:M,size:L,onBlur:function(){te(!1)},onEmpty:function(){X(!1)},onFilled:function(){X(!0)},onFocus:function(){te(!0)},registerEffect:ne,required:F,variant:_}}),[q,w,k,O,J,re,P,M,ne,F,L,_]);return(0,y.jsx)(h.Z.Provider,{value:oe,children:(0,y.jsx)(x,(0,i.Z)({as:j,ownerState:H,className:(0,s.default)(W.root,m),ref:t},z,{children:u}))})}))},60533:function(e,t,n){"use strict";var r=n(30303).createContext(void 0);t.Z=r},84908:function(e,t,n){"use strict";function r(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e}),{})}n.d(t,{Z:function(){return r}})},64784:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(30303),o=n(60533);function i(){return r.useContext(o.Z)}},66554:function(e,t,n){"use strict";n.d(t,{Z:function(){return j}});var r=n(64649),o=n(30808),i=n(25773),a=n(30303),s=n(21792),l=n(96148),c=n(64784),u=n(38697),d=n(85961),p=n(52492),f=n(72188),h=n(13839),m=n(22997);function v(e){return(0,m.Z)("MuiFormControlLabel",e)}var g=(0,h.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),y=n(84908),b=n(27241),x=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],w=(0,p.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[(0,r.Z)({},"& .".concat(g.label),t.label),t.root,t["labelPlacement".concat((0,d.Z)(n.labelPlacement))]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,i.Z)((0,r.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16},"&.".concat(g.disabled),{cursor:"default"}),"start"===n.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===n.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===n.labelPlacement&&{flexDirection:"column",marginLeft:16},(0,r.Z)({},"& .".concat(g.label),(0,r.Z)({},"&.".concat(g.disabled),{color:(t.vars||t).palette.text.disabled})))})),C=(0,p.ZP)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:function(e,t){return t.asterisk}})((function(e){var t=e.theme;return(0,r.Z)({},"&.".concat(g.error),{color:(t.vars||t).palette.error.main})})),j=a.forwardRef((function(e,t){var n,r,p=(0,f.Z)({props:e,name:"MuiFormControlLabel"}),h=p.className,m=p.componentsProps,g=void 0===m?{}:m,j=p.control,S=p.disabled,k=p.disableTypography,Z=p.label,O=p.labelPlacement,E=void 0===O?"end":O,D=p.required,P=p.slotProps,A=void 0===P?{}:P,M=(0,o.Z)(p,x),T=(0,c.Z)(),I=null!=(n=null!=S?S:j.props.disabled)?n:null==T?void 0:T.disabled,R=null!=D?D:j.props.required,F={disabled:I,required:R};["checked","name","onChange","value","inputRef"].forEach((function(e){"undefined"===typeof j.props[e]&&"undefined"!==typeof p[e]&&(F[e]=p[e])}));var B=(0,y.Z)({props:p,muiFormControl:T,states:["error"]}),L=(0,i.Z)({},p,{disabled:I,labelPlacement:E,required:R,error:B.error}),N=function(e){var t=e.classes,n=e.disabled,r=e.labelPlacement,o=e.error,i=e.required,a={root:["root",n&&"disabled","labelPlacement".concat((0,d.Z)(r)),o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return(0,l.Z)(a,v,t)}(L),_=null!=(r=A.typography)?r:g.typography,z=Z;return null==z||z.type===u.Z||k||(z=(0,b.jsx)(u.Z,(0,i.Z)({component:"span"},_,{className:(0,s.default)(N.label,null==_?void 0:_.className),children:z}))),(0,b.jsxs)(w,(0,i.Z)({className:(0,s.default)(N.root,h),ownerState:L,ref:t},M,{children:[a.cloneElement(j,F),z,R&&(0,b.jsxs)(C,{ownerState:L,"aria-hidden":!0,className:N.asterisk,children:["\u2009","*"]})]}))}))},67364:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var r=n(64649),o=n(30808),i=n(25773),a=n(30303),s=n(21792),l=n(96148),c=n(84908),u=n(64784),d=n(52492),p=n(85961),f=n(13839),h=n(22997);function m(e){return(0,h.Z)("MuiFormHelperText",e)}var v,g=(0,f.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),y=n(72188),b=n(27241),x=["children","className","component","disabled","error","filled","focused","margin","required","variant"],w=(0,d.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.size&&t["size".concat((0,p.Z)(n.size))],n.contained&&t.contained,n.filled&&t.filled]}})((function(e){var t,n=e.theme,o=e.ownerState;return(0,i.Z)({color:(n.vars||n).palette.text.secondary},n.typography.caption,(t={textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0},(0,r.Z)(t,"&.".concat(g.disabled),{color:(n.vars||n).palette.text.disabled}),(0,r.Z)(t,"&.".concat(g.error),{color:(n.vars||n).palette.error.main}),t),"small"===o.size&&{marginTop:4},o.contained&&{marginLeft:14,marginRight:14})})),C=a.forwardRef((function(e,t){var n=(0,y.Z)({props:e,name:"MuiFormHelperText"}),r=n.children,a=n.className,d=n.component,f=void 0===d?"p":d,h=(0,o.Z)(n,x),g=(0,u.Z)(),C=(0,c.Z)({props:n,muiFormControl:g,states:["variant","size","disabled","error","filled","focused","required"]}),j=(0,i.Z)({},n,{component:f,contained:"filled"===C.variant||"outlined"===C.variant,variant:C.variant,size:C.size,disabled:C.disabled,error:C.error,filled:C.filled,focused:C.focused,required:C.required}),S=function(e){var t=e.classes,n=e.contained,r=e.size,o=e.disabled,i=e.error,a=e.filled,s=e.focused,c=e.required,u={root:["root",o&&"disabled",i&&"error",r&&"size".concat((0,p.Z)(r)),n&&"contained",s&&"focused",a&&"filled",c&&"required"]};return(0,l.Z)(u,m,t)}(j);return(0,b.jsx)(w,(0,i.Z)({as:f,ownerState:j,className:(0,s.default)(S.root,a),ref:t},h,{children:" "===r?v||(v=(0,b.jsx)("span",{className:"notranslate",children:"\u200b"})):r}))}))},8023:function(e,t,n){"use strict";var r=n(25773),o=n(30808),i=n(30303),a=n(95895),s=n(99227),l=n(14813),c=n(26605),u=n(27241),d=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function p(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var f={entering:{opacity:1,transform:p(1)},entered:{opacity:1,transform:"none"}},h="undefined"!==typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),m=i.forwardRef((function(e,t){var n=e.addEndListener,m=e.appear,v=void 0===m||m,g=e.children,y=e.easing,b=e.in,x=e.onEnter,w=e.onEntered,C=e.onEntering,j=e.onExit,S=e.onExited,k=e.onExiting,Z=e.style,O=e.timeout,E=void 0===O?"auto":O,D=e.TransitionComponent,P=void 0===D?a.ZP:D,A=(0,o.Z)(e,d),M=i.useRef(),T=i.useRef(),I=(0,s.Z)(),R=i.useRef(null),F=(0,c.Z)(R,g.ref,t),B=function(e){return function(t){if(e){var n=R.current;void 0===t?e(n):e(n,t)}}},L=B(C),N=B((function(e,t){(0,l.n)(e);var n,r=(0,l.C)({style:Z,timeout:E,easing:y},{mode:"enter"}),o=r.duration,i=r.delay,a=r.easing;"auto"===E?(n=I.transitions.getAutoHeightDuration(e.clientHeight),T.current=n):n=o,e.style.transition=[I.transitions.create("opacity",{duration:n,delay:i}),I.transitions.create("transform",{duration:h?n:.666*n,delay:i,easing:a})].join(","),x&&x(e,t)})),_=B(w),z=B(k),H=B((function(e){var t,n=(0,l.C)({style:Z,timeout:E,easing:y},{mode:"exit"}),r=n.duration,o=n.delay,i=n.easing;"auto"===E?(t=I.transitions.getAutoHeightDuration(e.clientHeight),T.current=t):t=r,e.style.transition=[I.transitions.create("opacity",{duration:t,delay:o}),I.transitions.create("transform",{duration:h?t:.666*t,delay:h?o:o||.333*t,easing:i})].join(","),e.style.opacity=0,e.style.transform=p(.75),j&&j(e)})),W=B(S);return i.useEffect((function(){return function(){clearTimeout(M.current)}}),[]),(0,u.jsx)(P,(0,r.Z)({appear:v,in:b,nodeRef:R,onEnter:N,onEntered:_,onEntering:L,onExit:H,onExited:W,onExiting:z,addEndListener:function(e){"auto"===E&&(M.current=setTimeout(e,T.current||0)),n&&n(R.current,e)},timeout:"auto"===E?null:E},A,{children:function(e,t){return i.cloneElement(g,(0,r.Z)({style:(0,r.Z)({opacity:0,transform:p(.75),visibility:"exited"!==e||b?void 0:"hidden"},f[e],Z,g.props.style),ref:F},t))}}))}));m.muiSupportAuto=!0,t.Z=m},53802:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(64649),o=n(30808),i=n(25773),a=n(30303),s=n(21792),l=n(96148),c=n(92939),u=n(52492),d=n(72188),p=n(99287),f=n(85961),h=n(13839),m=n(22997);function v(e){return(0,m.Z)("MuiIconButton",e)}var g=(0,h.Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),y=n(27241),b=["edge","children","className","color","disabled","disableFocusRipple","size"],x=(0,u.ZP)(p.Z,{name:"MuiIconButton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"default"!==n.color&&t["color".concat((0,f.Z)(n.color))],n.edge&&t["edge".concat((0,f.Z)(n.edge))],t["size".concat((0,f.Z)(n.size))]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,i.Z)({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,c.Fq)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===n.edge&&{marginLeft:"small"===n.size?-3:-12},"end"===n.edge&&{marginRight:"small"===n.size?-3:-12})}),(function(e){var t,n=e.theme,o=e.ownerState,a=null==(t=(n.vars||n).palette)?void 0:t[o.color];return(0,i.Z)({},"inherit"===o.color&&{color:"inherit"},"inherit"!==o.color&&"default"!==o.color&&(0,i.Z)({color:null==a?void 0:a.main},!o.disableRipple&&{"&:hover":(0,i.Z)({},a&&{backgroundColor:n.vars?"rgba(".concat(a.mainChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,c.Fq)(a.main,n.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===o.size&&{padding:5,fontSize:n.typography.pxToRem(18)},"large"===o.size&&{padding:12,fontSize:n.typography.pxToRem(28)},(0,r.Z)({},"&.".concat(g.disabled),{backgroundColor:"transparent",color:(n.vars||n).palette.action.disabled}))})),w=a.forwardRef((function(e,t){var n=(0,d.Z)({props:e,name:"MuiIconButton"}),r=n.edge,a=void 0!==r&&r,c=n.children,u=n.className,p=n.color,h=void 0===p?"default":p,m=n.disabled,g=void 0!==m&&m,w=n.disableFocusRipple,C=void 0!==w&&w,j=n.size,S=void 0===j?"medium":j,k=(0,o.Z)(n,b),Z=(0,i.Z)({},n,{edge:a,color:h,disabled:g,disableFocusRipple:C,size:S}),O=function(e){var t=e.classes,n=e.disabled,r=e.color,o=e.edge,i=e.size,a={root:["root",n&&"disabled","default"!==r&&"color".concat((0,f.Z)(r)),o&&"edge".concat((0,f.Z)(o)),"size".concat((0,f.Z)(i))]};return(0,l.Z)(a,v,t)}(Z);return(0,y.jsx)(x,(0,i.Z)({className:(0,s.default)(O.root,u),centerRipple:!0,focusRipple:!C,disabled:g,ref:t,ownerState:Z},k,{children:c}))}))},93729:function(e,t,n){"use strict";var r=n(64649),o=n(649),i=n(30808),a=n(25773),s=n(30303),l=n(96148),c=n(8190),u=n(86239),d=n(52492),p=n(72188),f=n(77939),h=n(27241),m=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],v=(0,d.ZP)(u.Ej,{shouldForwardProp:function(e){return(0,d.FO)(e)||"classes"===e},name:"MuiInput",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[].concat((0,o.Z)((0,u.Gx)(e,t)),[!n.disableUnderline&&t.underline])}})((function(e){var t,n=e.theme,o=e.ownerState,i="light"===n.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return n.vars&&(i="rgba(".concat(n.vars.palette.common.onBackgroundChannel," / ").concat(n.vars.opacity.inputUnderline,")")),(0,a.Z)({position:"relative"},o.formControl&&{"label + &":{marginTop:16}},!o.disableUnderline&&(t={"&:after":{borderBottom:"2px solid ".concat((n.vars||n).palette[o.color].main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:n.transitions.create("transform",{duration:n.transitions.duration.shorter,easing:n.transitions.easing.easeOut}),pointerEvents:"none"}},(0,r.Z)(t,"&.".concat(f.Z.focused,":after"),{transform:"scaleX(1) translateX(0)"}),(0,r.Z)(t,"&.".concat(f.Z.error),{"&:before, &:after":{borderBottomColor:(n.vars||n).palette.error.main}}),(0,r.Z)(t,"&:before",{borderBottom:"1px solid ".concat(i),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:n.transitions.create("border-bottom-color",{duration:n.transitions.duration.shorter}),pointerEvents:"none"}),(0,r.Z)(t,"&:hover:not(.".concat(f.Z.disabled,", .").concat(f.Z.error,"):before"),{borderBottom:"2px solid ".concat((n.vars||n).palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(i)}}),(0,r.Z)(t,"&.".concat(f.Z.disabled,":before"),{borderBottomStyle:"dotted"}),t))})),g=(0,d.ZP)(u.rA,{name:"MuiInput",slot:"Input",overridesResolver:u._o})({}),y=s.forwardRef((function(e,t){var n,r,o,s,d=(0,p.Z)({props:e,name:"MuiInput"}),y=d.disableUnderline,b=d.components,x=void 0===b?{}:b,w=d.componentsProps,C=d.fullWidth,j=void 0!==C&&C,S=d.inputComponent,k=void 0===S?"input":S,Z=d.multiline,O=void 0!==Z&&Z,E=d.slotProps,D=d.slots,P=void 0===D?{}:D,A=d.type,M=void 0===A?"text":A,T=(0,i.Z)(d,m),I=function(e){var t=e.classes,n={root:["root",!e.disableUnderline&&"underline"],input:["input"]},r=(0,l.Z)(n,f.l,t);return(0,a.Z)({},t,r)}(d),R={root:{ownerState:{disableUnderline:y}}},F=(null!=E?E:w)?(0,c.Z)(null!=E?E:w,R):R,B=null!=(n=null!=(r=P.root)?r:x.Root)?n:v,L=null!=(o=null!=(s=P.input)?s:x.Input)?o:g;return(0,h.jsx)(u.ZP,(0,a.Z)({slots:{root:B,input:L},slotProps:F,fullWidth:j,inputComponent:k,multiline:O,ref:t,type:M},T,{classes:I}))}));y.muiName="Input",t.Z=y},77939:function(e,t,n){"use strict";n.d(t,{l:function(){return s}});var r=n(25773),o=n(13839),i=n(22997),a=n(68902);function s(e){return(0,i.Z)("MuiInput",e)}var l=(0,r.Z)({},a.Z,(0,o.Z)("MuiInput",["root","underline","input"]));t.Z=l},86239:function(e,t,n){"use strict";n.d(t,{rA:function(){return W},Ej:function(){return H},ZP:function(){return q},_o:function(){return z},Gx:function(){return _}});var r=n(11026),o=n(64649),i=n(30808),a=n(25773),s=n(1286),l=n(30303),c=n(21792),u=n(93715),d=n(86193),p=n(55714),f=n(63338),h=n(66430),m=n(27241),v=["onChange","maxRows","minRows","style","value"];function g(e){return parseInt(e,10)||0}var y={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function b(e){return void 0===e||null===e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}var x=l.forwardRef((function(e,t){var n=e.onChange,o=e.maxRows,s=e.minRows,c=void 0===s?1:s,x=e.style,w=e.value,C=(0,i.Z)(e,v),j=l.useRef(null!=w).current,S=l.useRef(null),k=(0,d.Z)(t,S),Z=l.useRef(null),O=l.useRef(0),E=l.useState({outerHeightStyle:0}),D=(0,r.Z)(E,2),P=D[0],A=D[1],M=l.useCallback((function(){var t=S.current,n=(0,p.Z)(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};var r=Z.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var i=n.boxSizing,a=g(n.paddingBottom)+g(n.paddingTop),s=g(n.borderBottomWidth)+g(n.borderTopWidth),l=r.scrollHeight;r.value="x";var u=r.scrollHeight,d=l;return c&&(d=Math.max(Number(c)*u,d)),o&&(d=Math.min(Number(o)*u,d)),{outerHeightStyle:(d=Math.max(d,u))+("border-box"===i?a+s:0),overflow:Math.abs(d-l)<=1}}),[o,c,e.placeholder]),T=function(e,t){var n=t.outerHeightStyle,r=t.overflow;return O.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(O.current+=1,{overflow:r,outerHeightStyle:n}):e},I=l.useCallback((function(){var e=M();b(e)||A((function(t){return T(t,e)}))}),[M]);l.useEffect((function(){var e,t=(0,f.Z)((function(){O.current=0,S.current&&function(){var e=M();b(e)||u.flushSync((function(){A((function(t){return T(t,e)}))}))}()})),n=S.current,r=(0,p.Z)(n);return r.addEventListener("resize",t),"undefined"!==typeof ResizeObserver&&(e=new ResizeObserver(t)).observe(n),function(){t.clear(),r.removeEventListener("resize",t),e&&e.disconnect()}})),(0,h.Z)((function(){I()})),l.useEffect((function(){O.current=0}),[w]);return(0,m.jsxs)(l.Fragment,{children:[(0,m.jsx)("textarea",(0,a.Z)({value:w,onChange:function(e){O.current=0,j||I(),n&&n(e)},ref:k,rows:c,style:(0,a.Z)({height:P.outerHeightStyle,overflow:P.overflow?"hidden":void 0},x)},C)),(0,m.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:Z,tabIndex:-1,style:(0,a.Z)({},y,x,{padding:0})})]})})),w=n(96148),C=n(82284),j=n(84908),S=n(60533),k=n(64784),Z=n(52492),O=n(72188),E=n(85961),D=n(26605),P=n(33850),A=n(97736),M=n(48);var T=function(e){var t=e.styles,n=e.themeId,r=e.defaultTheme,o=void 0===r?{}:r,i=(0,M.Z)(o),a="function"===typeof t?t(n&&i[n]||i):t;return(0,m.jsx)(A.Z,{styles:a})},I=n(8932),R=n(45503);var F=function(e){return(0,m.jsx)(T,(0,a.Z)({},e,{defaultTheme:I.Z,themeId:R.Z}))},B=n(18792),L=n(68902),N=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],_=function(e,t){var n=e.ownerState;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t["color".concat((0,E.Z)(n.color))],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},z=function(e,t){var n=e.ownerState;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},H=(0,Z.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:_})((function(e){var t=e.theme,n=e.ownerState;return(0,a.Z)({},t.typography.body1,(0,o.Z)({color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center"},"&.".concat(L.Z.disabled),{color:(t.vars||t).palette.text.disabled,cursor:"default"}),n.multiline&&(0,a.Z)({padding:"4px 0 5px"},"small"===n.size&&{paddingTop:1}),n.fullWidth&&{width:"100%"})})),W=(0,Z.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:z})((function(e){var t,n=e.theme,r=e.ownerState,i="light"===n.palette.mode,s=(0,a.Z)({color:"currentColor"},n.vars?{opacity:n.vars.opacity.inputPlaceholder}:{opacity:i?.42:.5},{transition:n.transitions.create("opacity",{duration:n.transitions.duration.shorter})}),l={opacity:"0 !important"},c=n.vars?{opacity:n.vars.opacity.inputPlaceholder}:{opacity:i?.42:.5};return(0,a.Z)((t={font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":s,"&::-moz-placeholder":s,"&:-ms-input-placeholder":s,"&::-ms-input-placeholder":s,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"}},(0,o.Z)(t,"label[data-shrink=false] + .".concat(L.Z.formControl," &"),{"&::-webkit-input-placeholder":l,"&::-moz-placeholder":l,"&:-ms-input-placeholder":l,"&::-ms-input-placeholder":l,"&:focus::-webkit-input-placeholder":c,"&:focus::-moz-placeholder":c,"&:focus:-ms-input-placeholder":c,"&:focus::-ms-input-placeholder":c}),(0,o.Z)(t,"&.".concat(L.Z.disabled),{opacity:1,WebkitTextFillColor:(n.vars||n).palette.text.disabled}),(0,o.Z)(t,"&:-webkit-autofill",{animationDuration:"5000s",animationName:"mui-auto-fill"}),t),"small"===r.size&&{paddingTop:1},r.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===r.type&&{MozAppearance:"textfield"})})),V=(0,m.jsx)(F,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),U=l.forwardRef((function(e,t){var n,o=(0,O.Z)({props:e,name:"MuiInputBase"}),u=o["aria-describedby"],d=o.autoComplete,p=o.autoFocus,f=o.className,h=o.components,v=void 0===h?{}:h,g=o.componentsProps,y=void 0===g?{}:g,b=o.defaultValue,Z=o.disabled,A=o.disableInjectingGlobalStyles,M=o.endAdornment,T=o.fullWidth,I=void 0!==T&&T,R=o.id,F=o.inputComponent,_=void 0===F?"input":F,z=o.inputProps,U=void 0===z?{}:z,q=o.inputRef,G=o.maxRows,Y=o.minRows,K=o.multiline,J=void 0!==K&&K,X=o.name,Q=o.onBlur,$=o.onChange,ee=o.onClick,te=o.onFocus,ne=o.onKeyDown,re=o.onKeyUp,oe=o.placeholder,ie=o.readOnly,ae=o.renderSuffix,se=o.rows,le=o.slotProps,ce=void 0===le?{}:le,ue=o.slots,de=void 0===ue?{}:ue,pe=o.startAdornment,fe=o.type,he=void 0===fe?"text":fe,me=o.value,ve=(0,i.Z)(o,N),ge=null!=U.value?U.value:me,ye=l.useRef(null!=ge).current,be=l.useRef(),xe=l.useCallback((function(e){0}),[]),we=(0,D.Z)(be,q,U.ref,xe),Ce=l.useState(!1),je=(0,r.Z)(Ce,2),Se=je[0],ke=je[1],Ze=(0,k.Z)();var Oe=(0,j.Z)({props:o,muiFormControl:Ze,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Oe.focused=Ze?Ze.focused:Se,l.useEffect((function(){!Ze&&Z&&Se&&(ke(!1),Q&&Q())}),[Ze,Z,Se,Q]);var Ee=Ze&&Ze.onFilled,De=Ze&&Ze.onEmpty,Pe=l.useCallback((function(e){(0,B.vd)(e)?Ee&&Ee():De&&De()}),[Ee,De]);(0,P.Z)((function(){ye&&Pe({value:ge})}),[ge,Pe,ye]);l.useEffect((function(){Pe(be.current)}),[]);var Ae=_,Me=U;J&&"input"===Ae&&(Me=se?(0,a.Z)({type:void 0,minRows:se,maxRows:se},Me):(0,a.Z)({type:void 0,maxRows:G,minRows:Y},Me),Ae=x);l.useEffect((function(){Ze&&Ze.setAdornedStart(Boolean(pe))}),[Ze,pe]);var Te=(0,a.Z)({},o,{color:Oe.color||"primary",disabled:Oe.disabled,endAdornment:M,error:Oe.error,focused:Oe.focused,formControl:Ze,fullWidth:I,hiddenLabel:Oe.hiddenLabel,multiline:J,size:Oe.size,startAdornment:pe,type:he}),Ie=function(e){var t=e.classes,n=e.color,r=e.disabled,o=e.error,i=e.endAdornment,a=e.focused,s=e.formControl,l=e.fullWidth,c=e.hiddenLabel,u=e.multiline,d=e.readOnly,p=e.size,f=e.startAdornment,h=e.type,m={root:["root","color".concat((0,E.Z)(n)),r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl","small"===p&&"sizeSmall",u&&"multiline",f&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return(0,w.Z)(m,L.u,t)}(Te),Re=de.root||v.Root||H,Fe=ce.root||y.root||{},Be=de.input||v.Input||W;return Me=(0,a.Z)({},Me,null!=(n=ce.input)?n:y.input),(0,m.jsxs)(l.Fragment,{children:[!A&&V,(0,m.jsxs)(Re,(0,a.Z)({},Fe,!(0,C.Z)(Re)&&{ownerState:(0,a.Z)({},Te,Fe.ownerState)},{ref:t,onClick:function(e){be.current&&e.currentTarget===e.target&&be.current.focus(),ee&&!Oe.disabled&&ee(e)}},ve,{className:(0,c.default)(Ie.root,Fe.className,f,ie&&"MuiInputBase-readOnly"),children:[pe,(0,m.jsx)(S.Z.Provider,{value:null,children:(0,m.jsx)(Be,(0,a.Z)({ownerState:Te,"aria-invalid":Oe.error,"aria-describedby":u,autoComplete:d,autoFocus:p,defaultValue:b,disabled:Oe.disabled,id:R,onAnimationStart:function(e){Pe("mui-auto-fill-cancel"===e.animationName?be.current:{value:"x"})},name:X,placeholder:oe,readOnly:ie,required:Oe.required,rows:se,value:ge,onKeyDown:ne,onKeyUp:re,type:he},Me,!(0,C.Z)(Be)&&{as:Ae,ownerState:(0,a.Z)({},Te,Me.ownerState)},{ref:we,className:(0,c.default)(Ie.input,Me.className,ie&&"MuiInputBase-readOnly"),onBlur:function(e){Q&&Q(e),U.onBlur&&U.onBlur(e),Ze&&Ze.onBlur?Ze.onBlur(e):ke(!1)},onChange:function(e){if(!ye){var t=e.target||be.current;if(null==t)throw new Error((0,s.Z)(1));Pe({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];U.onChange&&U.onChange.apply(U,[e].concat(r)),$&&$.apply(void 0,[e].concat(r))},onFocus:function(e){Oe.disabled?e.stopPropagation():(te&&te(e),U.onFocus&&U.onFocus(e),Ze&&Ze.onFocus?Ze.onFocus(e):ke(!0))}}))}),M,ae?ae((0,a.Z)({},Oe,{startAdornment:pe})):null]}))]})})),q=U},68902:function(e,t,n){"use strict";n.d(t,{u:function(){return i}});var r=n(13839),o=n(22997);function i(e){return(0,o.Z)("MuiInputBase",e)}var a=(0,r.Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);t.Z=a},18792:function(e,t,n){"use strict";function r(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function o(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function i(e){return e.startAdornment}n.d(t,{vd:function(){return o},B7:function(){return i}})},52693:function(e,t,n){"use strict";n.d(t,{Z:function(){return Z}});var r=n(64649),o=n(30808),i=n(25773),a=n(30303),s=n(96148),l=n(21792),c=n(84908),u=n(64784),d=n(85961),p=n(72188),f=n(52492),h=n(13839),m=n(22997);function v(e){return(0,m.Z)("MuiFormLabel",e)}var g=(0,h.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),y=n(27241),b=["children","className","color","component","disabled","error","filled","focused","required"],x=(0,f.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return(0,i.Z)({},t.root,"secondary"===n.color&&t.colorSecondary,n.filled&&t.filled)}})((function(e){var t,n=e.theme,o=e.ownerState;return(0,i.Z)({color:(n.vars||n).palette.text.secondary},n.typography.body1,(t={lineHeight:"1.4375em",padding:0,position:"relative"},(0,r.Z)(t,"&.".concat(g.focused),{color:(n.vars||n).palette[o.color].main}),(0,r.Z)(t,"&.".concat(g.disabled),{color:(n.vars||n).palette.text.disabled}),(0,r.Z)(t,"&.".concat(g.error),{color:(n.vars||n).palette.error.main}),t))})),w=(0,f.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:function(e,t){return t.asterisk}})((function(e){var t=e.theme;return(0,r.Z)({},"&.".concat(g.error),{color:(t.vars||t).palette.error.main})})),C=a.forwardRef((function(e,t){var n=(0,p.Z)({props:e,name:"MuiFormLabel"}),r=n.children,a=n.className,f=n.component,h=void 0===f?"label":f,m=(0,o.Z)(n,b),g=(0,u.Z)(),C=(0,c.Z)({props:n,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),j=(0,i.Z)({},n,{color:C.color||"primary",component:h,disabled:C.disabled,error:C.error,filled:C.filled,focused:C.focused,required:C.required}),S=function(e){var t=e.classes,n=e.color,r=e.focused,o=e.disabled,i=e.error,a=e.filled,l=e.required,c={root:["root","color".concat((0,d.Z)(n)),o&&"disabled",i&&"error",a&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return(0,s.Z)(c,v,t)}(j);return(0,y.jsxs)(x,(0,i.Z)({as:h,ownerState:j,className:(0,l.default)(S.root,a),ref:t},m,{children:[r,C.required&&(0,y.jsxs)(w,{ownerState:j,"aria-hidden":!0,className:S.asterisk,children:["\u2009","*"]})]}))}));function j(e){return(0,m.Z)("MuiInputLabel",e)}(0,h.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);var S=["disableAnimation","margin","shrink","variant","className"],k=(0,f.ZP)(C,{shouldForwardProp:function(e){return(0,f.FO)(e)||"classes"===e},name:"MuiInputLabel",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[(0,r.Z)({},"& .".concat(g.asterisk),t.asterisk),t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,i.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},n.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===n.size&&{transform:"translate(0, 17px) scale(1)"},n.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!n.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===n.variant&&(0,i.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(12px, 13px) scale(1)"},n.shrink&&(0,i.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===n.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===n.variant&&(0,i.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(14px, 9px) scale(1)"},n.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))})),Z=a.forwardRef((function(e,t){var n=(0,p.Z)({name:"MuiInputLabel",props:e}),r=n.disableAnimation,a=void 0!==r&&r,d=n.shrink,f=n.className,h=(0,o.Z)(n,S),m=(0,u.Z)(),v=d;"undefined"===typeof v&&m&&(v=m.filled||m.focused||m.adornedStart);var g=(0,c.Z)({props:n,muiFormControl:m,states:["size","variant","required"]}),b=(0,i.Z)({},n,{disableAnimation:a,formControl:m,shrink:v,size:g.size,variant:g.variant,required:g.required}),x=function(e){var t=e.classes,n=e.formControl,r=e.size,o=e.shrink,a={root:["root",n&&"formControl",!e.disableAnimation&&"animated",o&&"shrink","small"===r&&"sizeSmall",e.variant],asterisk:[e.required&&"asterisk"]},l=(0,s.Z)(a,j,t);return(0,i.Z)({},t,l)}(b);return(0,y.jsx)(k,(0,i.Z)({"data-shrink":v,ownerState:b,ref:t,className:(0,l.default)(x.root,f)},h,{classes:x}))}))},3679:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(30808),o=n(25773),i=n(30303),a=n(21792),s=n(96148),l=n(52492),c=n(72188),u=n(1124),d=n(13839),p=n(22997);function f(e){return(0,p.Z)("MuiList",e)}(0,d.Z)("MuiList",["root","padding","dense","subheader"]);var h=n(27241),m=["children","className","component","dense","disablePadding","subheader"],v=(0,l.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((function(e){var t=e.ownerState;return(0,o.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})})),g=i.forwardRef((function(e,t){var n=(0,c.Z)({props:e,name:"MuiList"}),l=n.children,d=n.className,p=n.component,g=void 0===p?"ul":p,y=n.dense,b=void 0!==y&&y,x=n.disablePadding,w=void 0!==x&&x,C=n.subheader,j=(0,r.Z)(n,m),S=i.useMemo((function(){return{dense:b}}),[b]),k=(0,o.Z)({},n,{component:g,dense:b,disablePadding:w}),Z=function(e){var t=e.classes,n={root:["root",!e.disablePadding&&"padding",e.dense&&"dense",e.subheader&&"subheader"]};return(0,s.Z)(n,f,t)}(k);return(0,h.jsx)(u.Z.Provider,{value:S,children:(0,h.jsxs)(v,(0,o.Z)({as:g,className:(0,a.default)(Z.root,d),ref:t,ownerState:k},j,{children:[C,l]}))})}))},1124:function(e,t,n){"use strict";var r=n(30303).createContext({});t.Z=r},77143:function(e,t,n){"use strict";var r=n(30808),o=n(25773),i=n(30303),a=n(21792),s=n(96148),l=n(52492),c=n(72188),u=n(61195),d=n(1124),p=n(27241),f=["className"],h=(0,l.ZP)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((function(e){var t=e.theme,n=e.ownerState;return(0,o.Z)({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===n.alignItems&&{marginTop:8})})),m=i.forwardRef((function(e,t){var n=(0,c.Z)({props:e,name:"MuiListItemIcon"}),l=n.className,m=(0,r.Z)(n,f),v=i.useContext(d.Z),g=(0,o.Z)({},n,{alignItems:v.alignItems}),y=function(e){var t=e.alignItems,n=e.classes,r={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,s.Z)(r,u.f,n)}(g);return(0,p.jsx)(h,(0,o.Z)({className:(0,a.default)(y.root,l),ownerState:g,ref:t},m))}));t.Z=m},61195:function(e,t,n){"use strict";n.d(t,{f:function(){return i}});var r=n(13839),o=n(22997);function i(e){return(0,o.Z)("MuiListItemIcon",e)}var a=(0,r.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);t.Z=a},6937:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(13839),o=n(22997);function i(e){return(0,o.Z)("MuiListItemText",e)}var a=(0,r.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);t.Z=a},26798:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(30808),o=n(25773),i=n(30303),a=n(21792),s=n(96148),l=n(52492),c=n(72188),u=n(85961),d=n(13839),p=n(22997);function f(e){return(0,p.Z)("MuiListSubheader",e)}(0,d.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var h=n(27241),m=["className","color","component","disableGutters","disableSticky","inset"],v=(0,l.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"default"!==n.color&&t["color".concat((0,u.Z)(n.color))],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((function(e){var t=e.theme,n=e.ownerState;return(0,o.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14)},"primary"===n.color&&{color:(t.vars||t).palette.primary.main},"inherit"===n.color&&{color:"inherit"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.inset&&{paddingLeft:72},!n.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper})})),g=i.forwardRef((function(e,t){var n=(0,c.Z)({props:e,name:"MuiListSubheader"}),i=n.className,l=n.color,d=void 0===l?"default":l,p=n.component,g=void 0===p?"li":p,y=n.disableGutters,b=void 0!==y&&y,x=n.disableSticky,w=void 0!==x&&x,C=n.inset,j=void 0!==C&&C,S=(0,r.Z)(n,m),k=(0,o.Z)({},n,{color:d,component:g,disableGutters:b,disableSticky:w,inset:j}),Z=function(e){var t=e.classes,n=e.color,r=e.disableGutters,o=e.inset,i=e.disableSticky,a={root:["root","default"!==n&&"color".concat((0,u.Z)(n)),!r&&"gutters",o&&"inset",!i&&"sticky"]};return(0,s.Z)(a,f,t)}(k);return(0,h.jsx)(v,(0,o.Z)({as:g,className:(0,a.default)(Z.root,i),ref:t,ownerState:k},S))}));g.muiSkipListHighlight=!0;var y=g},74723:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var r=n(25773),o=n(30808),i=n(30303),a=(n(34982),n(21792)),s=n(96148),l=n(98087),c=n(54386),u=n(35285),d=n(52492),p=n(99227),f=n(72188),h=n(13839),m=n(22997);function v(e){return(0,m.Z)("MuiMenu",e)}(0,h.Z)("MuiMenu",["root","paper","list"]);var g=n(27241),y=["onEntering"],b=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],x={vertical:"top",horizontal:"right"},w={vertical:"top",horizontal:"left"},C=(0,d.ZP)(u.ZP,{shouldForwardProp:function(e){return(0,d.FO)(e)||"classes"===e},name:"MuiMenu",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),j=(0,d.ZP)(c.Z,{name:"MuiMenu",slot:"Paper",overridesResolver:function(e,t){return t.paper}})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),S=(0,d.ZP)(l.Z,{name:"MuiMenu",slot:"List",overridesResolver:function(e,t){return t.list}})({outline:0}),k=i.forwardRef((function(e,t){var n=(0,f.Z)({props:e,name:"MuiMenu"}),l=n.autoFocus,c=void 0===l||l,u=n.children,d=n.disableAutoFocusItem,h=void 0!==d&&d,m=n.MenuListProps,k=void 0===m?{}:m,Z=n.onClose,O=n.open,E=n.PaperProps,D=void 0===E?{}:E,P=n.PopoverClasses,A=n.transitionDuration,M=void 0===A?"auto":A,T=n.TransitionProps,I=(T=void 0===T?{}:T).onEntering,R=n.variant,F=void 0===R?"selectedMenu":R,B=(0,o.Z)(n.TransitionProps,y),L=(0,o.Z)(n,b),N=(0,p.Z)(),_="rtl"===N.direction,z=(0,r.Z)({},n,{autoFocus:c,disableAutoFocusItem:h,MenuListProps:k,onEntering:I,PaperProps:D,transitionDuration:M,TransitionProps:B,variant:F}),H=function(e){var t=e.classes;return(0,s.Z)({root:["root"],paper:["paper"],list:["list"]},v,t)}(z),W=c&&!h&&O,V=i.useRef(null),U=-1;return i.Children.map(u,(function(e,t){i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===F&&e.props.selected||-1===U)&&(U=t))})),(0,g.jsx)(C,(0,r.Z)({onClose:Z,anchorOrigin:{vertical:"bottom",horizontal:_?"right":"left"},transformOrigin:_?x:w,PaperProps:(0,r.Z)({as:j},D,{classes:(0,r.Z)({},D.classes,{root:H.paper})}),className:H.root,open:O,ref:t,transitionDuration:M,TransitionProps:(0,r.Z)({onEntering:function(e,t){V.current&&V.current.adjustStyleForScrollbar(e,N),I&&I(e,t)}},B),ownerState:z},L,{classes:P,children:(0,g.jsx)(S,(0,r.Z)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),Z&&Z(e,"tabKeyDown"))},actions:V,autoFocus:c&&(-1===U||h),autoFocusItem:W,variant:F},k,{className:(0,a.default)(H.list,k.className),children:u}))}))}))},55488:function(e,t,n){"use strict";n.d(t,{Z:function(){return Z}});var r=n(64649),o=n(30808),i=n(25773),a=n(30303),s=n(21792),l=n(96148),c=n(92939),u=n(52492),d=n(72188),p=n(1124),f=n(99287),h=n(33850),m=n(26605),v=n(36777),g=n(61195),y=n(6937),b=n(13839),x=n(22997);function w(e){return(0,x.Z)("MuiMenuItem",e)}var C=(0,b.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),j=n(27241),S=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],k=(0,u.ZP)(f.Z,{shouldForwardProp:function(e){return(0,u.FO)(e)||"classes"===e},name:"MuiMenuItem",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((function(e){var t,n=e.theme,o=e.ownerState;return(0,i.Z)({},n.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!o.disableGutters&&{paddingLeft:16,paddingRight:16},o.divider&&{borderBottom:"1px solid ".concat((n.vars||n).palette.divider),backgroundClip:"padding-box"},(t={"&:hover":{textDecoration:"none",backgroundColor:(n.vars||n).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},(0,r.Z)(t,"&.".concat(C.selected),(0,r.Z)({backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / ").concat(n.vars.palette.action.selectedOpacity,")"):(0,c.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity)},"&.".concat(C.focusVisible),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.focusOpacity,"))"):(0,c.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)})),(0,r.Z)(t,"&.".concat(C.selected,":hover"),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.hoverOpacity,"))"):(0,c.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / ").concat(n.vars.palette.action.selectedOpacity,")"):(0,c.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity)}}),(0,r.Z)(t,"&.".concat(C.focusVisible),{backgroundColor:(n.vars||n).palette.action.focus}),(0,r.Z)(t,"&.".concat(C.disabled),{opacity:(n.vars||n).palette.action.disabledOpacity}),(0,r.Z)(t,"& + .".concat(v.Z.root),{marginTop:n.spacing(1),marginBottom:n.spacing(1)}),(0,r.Z)(t,"& + .".concat(v.Z.inset),{marginLeft:52}),(0,r.Z)(t,"& .".concat(y.Z.root),{marginTop:0,marginBottom:0}),(0,r.Z)(t,"& .".concat(y.Z.inset),{paddingLeft:36}),(0,r.Z)(t,"& .".concat(g.Z.root),{minWidth:36}),t),!o.dense&&(0,r.Z)({},n.breakpoints.up("sm"),{minHeight:"auto"}),o.dense&&(0,i.Z)({minHeight:32,paddingTop:4,paddingBottom:4},n.typography.body2,(0,r.Z)({},"& .".concat(g.Z.root," svg"),{fontSize:"1.25rem"})))})),Z=a.forwardRef((function(e,t){var n=(0,d.Z)({props:e,name:"MuiMenuItem"}),r=n.autoFocus,c=void 0!==r&&r,u=n.component,f=void 0===u?"li":u,v=n.dense,g=void 0!==v&&v,y=n.divider,b=void 0!==y&&y,x=n.disableGutters,C=void 0!==x&&x,Z=n.focusVisibleClassName,O=n.role,E=void 0===O?"menuitem":O,D=n.tabIndex,P=n.className,A=(0,o.Z)(n,S),M=a.useContext(p.Z),T=a.useMemo((function(){return{dense:g||M.dense||!1,disableGutters:C}}),[M.dense,g,C]),I=a.useRef(null);(0,h.Z)((function(){c&&I.current&&I.current.focus()}),[c]);var R,F=(0,i.Z)({},n,{dense:T.dense,divider:b,disableGutters:C}),B=function(e){var t=e.disabled,n=e.dense,r=e.divider,o=e.disableGutters,a=e.selected,s=e.classes,c={root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},u=(0,l.Z)(c,w,s);return(0,i.Z)({},s,u)}(n),L=(0,m.Z)(I,t);return n.disabled||(R=void 0!==D?D:-1),(0,j.jsx)(p.Z.Provider,{value:T,children:(0,j.jsx)(k,(0,i.Z)({ref:L,role:E,tabIndex:R,component:f,focusVisibleClassName:(0,s.default)(B.focusVisible,Z),className:(0,s.default)(B.root,P)},A,{ownerState:F,classes:B}))})}))},98087:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(25773),o=n(30808),i=n(30303),a=(n(34982),n(21088)),s=n(3679),l=n(76063).Z,c=n(26605),u=n(33850),d=n(27241),p=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function f(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function h(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function m(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function v(e,t,n,r,o,i){for(var a=!1,s=o(e,t,!!t&&n);s;){if(s===e.firstChild){if(a)return!1;a=!0}var l=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&m(s,i)&&!l)return s.focus(),!0;s=o(e,s,n)}return!1}var g=i.forwardRef((function(e,t){var n=e.actions,g=e.autoFocus,y=void 0!==g&&g,b=e.autoFocusItem,x=void 0!==b&&b,w=e.children,C=e.className,j=e.disabledItemsFocusable,S=void 0!==j&&j,k=e.disableListWrap,Z=void 0!==k&&k,O=e.onKeyDown,E=e.variant,D=void 0===E?"selectedMenu":E,P=(0,o.Z)(e,p),A=i.useRef(null),M=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,u.Z)((function(){y&&A.current.focus()}),[y]),i.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!A.current.style.width;if(e.clientHeight<A.current.clientHeight&&n){var r="".concat(l((0,a.Z)(e)),"px");A.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,A.current.style.width="calc(100% + ".concat(r,")")}return A.current}}}),[]);var T=(0,c.Z)(A,t),I=-1;i.Children.forEach(w,(function(e,t){i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===D&&e.props.selected||-1===I)&&(I=t),I===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(I+=1)>=w.length&&(I=-1))}));var R=i.Children.map(w,(function(e,t){if(t===I){var n={};return x&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===D&&(n.tabIndex=0),i.cloneElement(e,n)}return e}));return(0,d.jsx)(s.Z,(0,r.Z)({role:"menu",ref:T,className:C,onKeyDown:function(e){var t=A.current,n=e.key,r=(0,a.Z)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),v(t,r,Z,S,f);else if("ArrowUp"===n)e.preventDefault(),v(t,r,Z,S,h);else if("Home"===n)e.preventDefault(),v(t,null,Z,S,f);else if("End"===n)e.preventDefault(),v(t,null,Z,S,h);else if(1===n.length){var o=M.current,i=n.toLowerCase(),s=performance.now();o.keys.length>0&&(s-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=s,o.keys.push(i);var l=r&&!o.repeating&&m(r,o);o.previousKeyMatched&&(l||v(t,r,!1,S,f,o))?e.preventDefault():o.previousKeyMatched=!1}O&&O(e)},tabIndex:y?0:-1},P,{children:R}))}))},77442:function(e,t,n){"use strict";n.d(t,{Z:function(){return W}});var r=n(11026),o=n(30808),i=n(25773),a=n(30303),s=n(21792),l=n(86193),c=n(98403),u=n(22270),d=n(68754),p=n(96148),f=n(25077),h=n(22951),m=n(91976),v=n(649),g=n(55714),y=n(76063);function b(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function x(e){return parseInt((0,g.Z)(e).getComputedStyle(e).paddingRight,10)||0}function w(e,t,n,r,o){var i=[t,n].concat((0,v.Z)(r));[].forEach.call(e.children,(function(e){var t=-1===i.indexOf(e),n=!function(e){var t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&b(e,o)}))}function C(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function j(e,t){var n=[],r=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,c.Z)(e);return t.body===e?(0,g.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){var o=(0,y.Z)((0,c.Z)(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight="".concat(x(r)+o,"px");var i=(0,c.Z)(r).querySelectorAll(".mui-fixed");[].forEach.call(i,(function(e){n.push({value:e.style.paddingRight,property:"padding-right",el:e}),e.style.paddingRight="".concat(x(e)+o,"px")}))}var a;if(r.parentNode instanceof DocumentFragment)a=(0,c.Z)(r).body;else{var s=r.parentElement,l=(0,g.Z)(r);a="HTML"===(null==s?void 0:s.nodeName)&&"scroll"===l.getComputedStyle(s).overflowY?s:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return function(){n.forEach((function(e){var t=e.value,n=e.el,r=e.property;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var S=function(){function e(){(0,h.Z)(this,e),this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}return(0,m.Z)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&b(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);w(t,e.mount,e.modalRef,r,!0);var o=C(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}},{key:"mount",value:function(e,t){var n=C(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=j(r,t))}},{key:"remove",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.modals.indexOf(e);if(-1===n)return n;var r=C(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&b(e.modalRef,t),w(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{var i=o.modals[o.modals.length-1];i.modalRef&&b(i.modalRef,!1)}return n}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}(),k=n(44884),Z=n(13839),O=n(22997);function E(e){return(0,O.Z)("MuiModal",e)}(0,Z.Z)("MuiModal",["root","hidden","backdrop"]);var D=n(76121),P=n(29589),A=n(27241),M=["children","closeAfterTransition","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"];var T=new S,I=a.forwardRef((function(e,t){var n,s,h=e.children,m=e.closeAfterTransition,v=void 0!==m&&m,g=e.container,y=e.disableAutoFocus,x=void 0!==y&&y,w=e.disableEnforceFocus,C=void 0!==w&&w,j=e.disableEscapeKeyDown,S=void 0!==j&&j,Z=e.disablePortal,O=void 0!==Z&&Z,I=e.disableRestoreFocus,R=void 0!==I&&I,F=e.disableScrollLock,B=void 0!==F&&F,L=e.hideBackdrop,N=void 0!==L&&L,_=e.keepMounted,z=void 0!==_&&_,H=e.manager,W=void 0===H?T:H,V=e.onBackdropClick,U=e.onClose,q=e.onKeyDown,G=e.open,Y=e.onTransitionEnter,K=e.onTransitionExited,J=e.slotProps,X=void 0===J?{}:J,Q=e.slots,$=void 0===Q?{}:Q,ee=(0,o.Z)(e,M),te=W,ne=a.useState(!G),re=(0,r.Z)(ne,2),oe=re[0],ie=re[1],ae=a.useRef({}),se=a.useRef(null),le=a.useRef(null),ce=(0,l.Z)(le,t),ue=function(e){return!!e&&e.props.hasOwnProperty("in")}(h),de=null==(n=e["aria-hidden"])||n,pe=function(){return ae.current.modalRef=le.current,ae.current.mountNode=se.current,ae.current},fe=function(){te.mount(pe(),{disableScrollLock:B}),le.current&&(le.current.scrollTop=0)},he=(0,u.Z)((function(){var e=function(e){return"function"===typeof e?e():e}(g)||(0,c.Z)(se.current).body;te.add(pe(),e),le.current&&fe()})),me=a.useCallback((function(){return te.isTopModal(pe())}),[te]),ve=(0,u.Z)((function(e){se.current=e,e&&le.current&&(G&&me()?fe():b(le.current,de))})),ge=a.useCallback((function(){te.remove(pe(),de)}),[te,de]);a.useEffect((function(){return function(){ge()}}),[ge]),a.useEffect((function(){G?he():ue&&v||ge()}),[G,ge,ue,v,he]);var ye=(0,i.Z)({},e,{closeAfterTransition:v,disableAutoFocus:x,disableEnforceFocus:C,disableEscapeKeyDown:S,disablePortal:O,disableRestoreFocus:R,disableScrollLock:B,exited:oe,hideBackdrop:N,keepMounted:z}),be=function(e){var t=e.open,n=e.exited,r={root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]};return(0,p.Z)(r,(0,P.T)(E))}(ye),xe={};void 0===h.props.tabIndex&&(xe.tabIndex="-1"),ue&&(xe.onEnter=(0,d.Z)((function(){ie(!1),Y&&Y()}),h.props.onEnter),xe.onExited=(0,d.Z)((function(){ie(!0),K&&K(),v&&ge()}),h.props.onExited));var we=null!=(s=$.root)?s:"div",Ce=(0,D.Z)({elementType:we,externalSlotProps:X.root,externalForwardedProps:ee,additionalProps:{ref:ce,role:"presentation",onKeyDown:function(e){q&&q(e),"Escape"===e.key&&me()&&(S||(e.stopPropagation(),U&&U(e,"escapeKeyDown")))}},className:be.root,ownerState:ye}),je=$.backdrop,Se=(0,D.Z)({elementType:je,externalSlotProps:X.backdrop,additionalProps:{"aria-hidden":!0,onClick:function(e){e.target===e.currentTarget&&(V&&V(e),U&&U(e,"backdropClick"))},open:G},className:be.backdrop,ownerState:ye});return z||G||ue&&!oe?(0,A.jsx)(f.Z,{ref:ve,container:g,disablePortal:O,children:(0,A.jsxs)(we,(0,i.Z)({},Ce,{children:[!N&&je?(0,A.jsx)(je,(0,i.Z)({},Se)):null,(0,A.jsx)(k.Z,{disableEnforceFocus:C,disableAutoFocus:x,disableRestoreFocus:R,isEnabled:me,open:G,children:a.cloneElement(h,xe)})]}))}):null})),R=n(47329),F=n(82284),B=n(52492),L=n(72188),N=n(16317),_=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","open","slotProps","slots","theme"],z=(0,B.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,!n.open&&n.exited&&t.hidden]}})((function(e){var t=e.theme,n=e.ownerState;return(0,i.Z)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!n.open&&n.exited&&{visibility:"hidden"})})),H=(0,B.ZP)(N.Z,{name:"MuiModal",slot:"Backdrop",overridesResolver:function(e,t){return t.backdrop}})({zIndex:-1}),W=a.forwardRef((function(e,t){var n,l,c,u,d,p,f=(0,L.Z)({name:"MuiModal",props:e}),h=f.BackdropComponent,m=void 0===h?H:h,v=f.BackdropProps,g=f.classes,y=f.className,b=f.closeAfterTransition,x=void 0!==b&&b,w=f.children,C=f.container,j=f.component,S=f.components,k=void 0===S?{}:S,Z=f.componentsProps,O=void 0===Z?{}:Z,E=f.disableAutoFocus,D=void 0!==E&&E,P=f.disableEnforceFocus,M=void 0!==P&&P,T=f.disableEscapeKeyDown,B=void 0!==T&&T,N=f.disablePortal,W=void 0!==N&&N,V=f.disableRestoreFocus,U=void 0!==V&&V,q=f.disableScrollLock,G=void 0!==q&&q,Y=f.hideBackdrop,K=void 0!==Y&&Y,J=f.keepMounted,X=void 0!==J&&J,Q=f.onBackdropClick,$=f.onClose,ee=f.open,te=f.slotProps,ne=f.slots,re=f.theme,oe=(0,o.Z)(f,_),ie=a.useState(!0),ae=(0,r.Z)(ie,2),se=ae[0],le=ae[1],ce={container:C,closeAfterTransition:x,disableAutoFocus:D,disableEnforceFocus:M,disableEscapeKeyDown:B,disablePortal:W,disableRestoreFocus:U,disableScrollLock:G,hideBackdrop:K,keepMounted:X,onBackdropClick:Q,onClose:$,open:ee},ue=(0,i.Z)({},f,ce,{exited:se}),de=null!=(n=null!=(l=null==ne?void 0:ne.root)?l:k.Root)?n:z,pe=null!=(c=null!=(u=null==ne?void 0:ne.backdrop)?u:k.Backdrop)?c:m,fe=null!=(d=null==te?void 0:te.root)?d:O.root,he=null!=(p=null==te?void 0:te.backdrop)?p:O.backdrop;return(0,A.jsx)(I,(0,i.Z)({slots:{root:de,backdrop:pe},slotProps:{root:function(){return(0,i.Z)({},(0,R.Z)(fe,ue),!(0,F.Z)(de)&&{as:j,theme:re},{className:(0,s.default)(y,null==fe?void 0:fe.className,null==g?void 0:g.root,!ue.open&&ue.exited&&(null==g?void 0:g.hidden))})},backdrop:function(){return(0,i.Z)({},v,(0,R.Z)(he,ue),{className:(0,s.default)(null==he?void 0:he.className,null==v?void 0:v.className,null==g?void 0:g.backdrop)})}},onTransitionEnter:function(){return le(!1)},onTransitionExited:function(){return le(!0)},ref:t},oe,ce,{children:w}))}))},97308:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r,o=n(64649),i=n(30808),a=n(25773),s=n(30303),l=n(96148),c=n(52492),u=n(27241),d=["children","classes","className","label","notched"],p=(0,c.ZP)("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),f=(0,c.ZP)("legend")((function(e){var t=e.ownerState,n=e.theme;return(0,a.Z)({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:n.transitions.create("width",{duration:150,easing:n.transitions.easing.easeOut})},t.withLabel&&(0,a.Z)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:n.transitions.create("max-width",{duration:50,easing:n.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:n.transitions.create("max-width",{duration:100,easing:n.transitions.easing.easeOut,delay:50})}))}));var h=n(64784),m=n(84908),v=n(27230),g=n(86239),y=n(72188),b=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],x=(0,c.ZP)(g.Ej,{shouldForwardProp:function(e){return(0,c.FO)(e)||"classes"===e},name:"MuiOutlinedInput",slot:"Root",overridesResolver:g.Gx})((function(e){var t,n=e.theme,r=e.ownerState,i="light"===n.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,a.Z)((t={position:"relative",borderRadius:(n.vars||n).shape.borderRadius},(0,o.Z)(t,"&:hover .".concat(v.Z.notchedOutline),{borderColor:(n.vars||n).palette.text.primary}),(0,o.Z)(t,"@media (hover: none)",(0,o.Z)({},"&:hover .".concat(v.Z.notchedOutline),{borderColor:n.vars?"rgba(".concat(n.vars.palette.common.onBackgroundChannel," / 0.23)"):i})),(0,o.Z)(t,"&.".concat(v.Z.focused," .").concat(v.Z.notchedOutline),{borderColor:(n.vars||n).palette[r.color].main,borderWidth:2}),(0,o.Z)(t,"&.".concat(v.Z.error," .").concat(v.Z.notchedOutline),{borderColor:(n.vars||n).palette.error.main}),(0,o.Z)(t,"&.".concat(v.Z.disabled," .").concat(v.Z.notchedOutline),{borderColor:(n.vars||n).palette.action.disabled}),t),r.startAdornment&&{paddingLeft:14},r.endAdornment&&{paddingRight:14},r.multiline&&(0,a.Z)({padding:"16.5px 14px"},"small"===r.size&&{padding:"8.5px 14px"}))})),w=(0,c.ZP)((function(e){var t=e.className,n=e.label,o=e.notched,s=(0,i.Z)(e,d),l=null!=n&&""!==n,c=(0,a.Z)({},e,{notched:o,withLabel:l});return(0,u.jsx)(p,(0,a.Z)({"aria-hidden":!0,className:t,ownerState:c},s,{children:(0,u.jsx)(f,{ownerState:c,children:l?(0,u.jsx)("span",{children:n}):r||(r=(0,u.jsx)("span",{className:"notranslate",children:"\u200b"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:function(e,t){return t.notchedOutline}})((function(e){var t=e.theme,n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):n}})),C=(0,c.ZP)(g.rA,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:g._o})((function(e){var t=e.theme,n=e.ownerState;return(0,a.Z)({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&(0,o.Z)({"&:-webkit-autofill":{borderRadius:"inherit"}},t.getColorSchemeSelector("dark"),{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}),"small"===n.size&&{padding:"8.5px 14px"},n.multiline&&{padding:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0})})),j=s.forwardRef((function(e,t){var n,r,o,c,d,p=(0,y.Z)({props:e,name:"MuiOutlinedInput"}),f=p.components,j=void 0===f?{}:f,S=p.fullWidth,k=void 0!==S&&S,Z=p.inputComponent,O=void 0===Z?"input":Z,E=p.label,D=p.multiline,P=void 0!==D&&D,A=p.notched,M=p.slots,T=void 0===M?{}:M,I=p.type,R=void 0===I?"text":I,F=(0,i.Z)(p,b),B=function(e){var t=e.classes,n=(0,l.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},v.e,t);return(0,a.Z)({},t,n)}(p),L=(0,h.Z)(),N=(0,m.Z)({props:p,muiFormControl:L,states:["required"]}),_=(0,a.Z)({},p,{color:N.color||"primary",disabled:N.disabled,error:N.error,focused:N.focused,formControl:L,fullWidth:k,hiddenLabel:N.hiddenLabel,multiline:P,size:N.size,type:R}),z=null!=(n=null!=(r=T.root)?r:j.Root)?n:x,H=null!=(o=null!=(c=T.input)?c:j.Input)?o:C;return(0,u.jsx)(g.ZP,(0,a.Z)({slots:{root:z,input:H},renderSuffix:function(e){return(0,u.jsx)(w,{ownerState:_,className:B.notchedOutline,label:null!=E&&""!==E&&N.required?d||(d=(0,u.jsxs)(s.Fragment,{children:[E,"\u2009","*"]})):E,notched:"undefined"!==typeof A?A:Boolean(e.startAdornment||e.filled||e.focused)})},fullWidth:k,inputComponent:O,multiline:P,ref:t,type:R},F,{classes:(0,a.Z)({},B,{notchedOutline:null})}))}));j.muiName="Input";var S=j},27230:function(e,t,n){"use strict";n.d(t,{e:function(){return s}});var r=n(25773),o=n(13839),i=n(22997),a=n(68902);function s(e){return(0,i.Z)("MuiOutlinedInput",e)}var l=(0,r.Z)({},a.Z,(0,o.Z)("MuiOutlinedInput",["root","notchedOutline","input"]));t.Z=l},54386:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(30808),o=n(25773),i=n(30303),a=n(21792),s=n(96148),l=n(92939),c=n(52492),u=function(e){return((e<1?5.11916*Math.pow(e,2):4.5*Math.log(e+1)+2)/100).toFixed(2)},d=n(72188),p=n(13839),f=n(22997);function h(e){return(0,f.Z)("MuiPaper",e)}(0,p.Z)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var m=n(27241),v=["className","component","elevation","square","variant"],g=(0,c.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t["elevation".concat(n.elevation)]]}})((function(e){var t,n=e.theme,r=e.ownerState;return(0,o.Z)({backgroundColor:(n.vars||n).palette.background.paper,color:(n.vars||n).palette.text.primary,transition:n.transitions.create("box-shadow")},!r.square&&{borderRadius:n.shape.borderRadius},"outlined"===r.variant&&{border:"1px solid ".concat((n.vars||n).palette.divider)},"elevation"===r.variant&&(0,o.Z)({boxShadow:(n.vars||n).shadows[r.elevation]},!n.vars&&"dark"===n.palette.mode&&{backgroundImage:"linear-gradient(".concat((0,l.Fq)("#fff",u(r.elevation)),", ").concat((0,l.Fq)("#fff",u(r.elevation)),")")},n.vars&&{backgroundImage:null==(t=n.vars.overlays)?void 0:t[r.elevation]}))})),y=i.forwardRef((function(e,t){var n=(0,d.Z)({props:e,name:"MuiPaper"}),i=n.className,l=n.component,c=void 0===l?"div":l,u=n.elevation,p=void 0===u?1:u,f=n.square,y=void 0!==f&&f,b=n.variant,x=void 0===b?"elevation":b,w=(0,r.Z)(n,v),C=(0,o.Z)({},n,{component:c,elevation:p,square:y,variant:x}),j=function(e){var t=e.square,n=e.elevation,r=e.variant,o=e.classes,i={root:["root",r,!t&&"rounded","elevation"===r&&"elevation".concat(n)]};return(0,s.Z)(i,h,o)}(C);return(0,m.jsx)(g,(0,o.Z)({as:c,ownerState:C,className:(0,a.default)(j.root,i),ref:t},w))}))},35285:function(e,t,n){"use strict";n.d(t,{ZP:function(){return P}});var r=n(11026),o=n(25773),i=n(30808),a=n(30303),s=n(21792),l=n(96148),c=n(52492),u=n(72188),d=n(38542),p=n(21088),f=n(71539),h=n(26605),m=n(8023),v=n(77442),g=n(54386),y=n(13839),b=n(22997);function x(e){return(0,b.Z)("MuiPopover",e)}(0,y.Z)("MuiPopover",["root","paper"]);var w=n(27241),C=["onEntering"],j=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function S(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function k(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Z(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function O(e){return"function"===typeof e?e():e}var E=(0,c.ZP)(v.Z,{name:"MuiPopover",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),D=(0,c.ZP)(g.Z,{name:"MuiPopover",slot:"Paper",overridesResolver:function(e,t){return t.paper}})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),P=a.forwardRef((function(e,t){var n=(0,u.Z)({props:e,name:"MuiPopover"}),c=n.action,v=n.anchorEl,g=n.anchorOrigin,y=void 0===g?{vertical:"top",horizontal:"left"}:g,b=n.anchorPosition,P=n.anchorReference,A=void 0===P?"anchorEl":P,M=n.children,T=n.className,I=n.container,R=n.elevation,F=void 0===R?8:R,B=n.marginThreshold,L=void 0===B?16:B,N=n.open,_=n.PaperProps,z=void 0===_?{}:_,H=n.transformOrigin,W=void 0===H?{vertical:"top",horizontal:"left"}:H,V=n.TransitionComponent,U=void 0===V?m.Z:V,q=n.transitionDuration,G=void 0===q?"auto":q,Y=n.TransitionProps,K=(Y=void 0===Y?{}:Y).onEntering,J=(0,i.Z)(n.TransitionProps,C),X=(0,i.Z)(n,j),Q=a.useRef(),$=(0,h.Z)(Q,z.ref),ee=(0,o.Z)({},n,{anchorOrigin:y,anchorReference:A,elevation:F,marginThreshold:L,PaperProps:z,transformOrigin:W,TransitionComponent:U,transitionDuration:G,TransitionProps:J}),te=function(e){var t=e.classes;return(0,l.Z)({root:["root"],paper:["paper"]},x,t)}(ee),ne=a.useCallback((function(){if("anchorPosition"===A)return b;var e=O(v),t=(e&&1===e.nodeType?e:(0,p.Z)(Q.current).body).getBoundingClientRect();return{top:t.top+S(t,y.vertical),left:t.left+k(t,y.horizontal)}}),[v,y.horizontal,y.vertical,b,A]),re=a.useCallback((function(e){return{vertical:S(e,W.vertical),horizontal:k(e,W.horizontal)}}),[W.horizontal,W.vertical]),oe=a.useCallback((function(e){var t={width:e.offsetWidth,height:e.offsetHeight},n=re(t);if("none"===A)return{top:null,left:null,transformOrigin:Z(n)};var r=ne(),o=r.top-n.vertical,i=r.left-n.horizontal,a=o+t.height,s=i+t.width,l=(0,f.Z)(O(v)),c=l.innerHeight-L,u=l.innerWidth-L;if(o<L){var d=o-L;o-=d,n.vertical+=d}else if(a>c){var p=a-c;o-=p,n.vertical+=p}if(i<L){var h=i-L;i-=h,n.horizontal+=h}else if(s>u){var m=s-u;i-=m,n.horizontal+=m}return{top:"".concat(Math.round(o),"px"),left:"".concat(Math.round(i),"px"),transformOrigin:Z(n)}}),[v,A,ne,re,L]),ie=a.useState(N),ae=(0,r.Z)(ie,2),se=ae[0],le=ae[1],ce=a.useCallback((function(){var e=Q.current;if(e){var t=oe(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,le(!0)}}),[oe]);a.useEffect((function(){N&&ce()})),a.useImperativeHandle(c,(function(){return N?{updatePosition:function(){ce()}}:null}),[N,ce]),a.useEffect((function(){if(N){var e=(0,d.Z)((function(){ce()})),t=(0,f.Z)(v);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}}),[v,N,ce]);var ue=G;"auto"!==G||U.muiSupportAuto||(ue=void 0);var de=I||(v?(0,p.Z)(O(v)).body:void 0);return(0,w.jsx)(E,(0,o.Z)({BackdropProps:{invisible:!0},className:(0,s.default)(te.root,T),container:de,open:N,ref:t,ownerState:ee},X,{children:(0,w.jsx)(U,(0,o.Z)({appear:!0,in:N,onEntering:function(e,t){K&&K(e,t),ce()},onExited:function(){le(!1)},timeout:ue},J,{children:(0,w.jsx)(D,(0,o.Z)({elevation:F},z,{ref:$,className:(0,s.default)(te.paper,z.className)},se?void 0:{style:(0,o.Z)({},z.style,{opacity:0})},{ownerState:ee,children:M}))}))}))}))},47148:function(e,t,n){"use strict";n.d(t,{Z:function(){return P}});var r=n(25773),o=n(30808),i=n(11026),a=n(30303),s=n(86193),l=n(66430),c=n(98403),u=n(99715),d=n(96148),p=n(25077),f=n(22997);function h(e){return(0,f.Z)("MuiPopper",e)}(0,n(13839).Z)("MuiPopper",["root"]);var m=n(76121),v=n(29589),g=n(27241),y=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],b=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function x(e){return"function"===typeof e?e():e}function w(e){return void 0!==e.nodeType}var C={},j=a.forwardRef((function(e,t){var n,c=e.anchorEl,p=e.children,f=e.direction,b=e.disablePortal,w=e.modifiers,C=e.open,j=e.placement,S=e.popperOptions,k=e.popperRef,Z=e.slotProps,O=void 0===Z?{}:Z,E=e.slots,D=void 0===E?{}:E,P=e.TransitionProps,A=(0,o.Z)(e,y),M=a.useRef(null),T=(0,s.Z)(M,t),I=a.useRef(null),R=(0,s.Z)(I,k),F=a.useRef(R);(0,l.Z)((function(){F.current=R}),[R]),a.useImperativeHandle(k,(function(){return I.current}),[]);var B=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(j,f),L=a.useState(B),N=(0,i.Z)(L,2),_=N[0],z=N[1],H=a.useState(x(c)),W=(0,i.Z)(H,2),V=W[0],U=W[1];a.useEffect((function(){I.current&&I.current.forceUpdate()})),a.useEffect((function(){c&&U(x(c))}),[c]),(0,l.Z)((function(){if(V&&C){var e=[{name:"preventOverflow",options:{altBoundary:b}},{name:"flip",options:{altBoundary:b}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:function(e){var t=e.state;z(t.placement)}}];null!=w&&(e=e.concat(w)),S&&null!=S.modifiers&&(e=e.concat(S.modifiers));var t=(0,u.fi)(V,M.current,(0,r.Z)({placement:B},S,{modifiers:e}));return F.current(t),function(){t.destroy(),F.current(null)}}}),[V,b,w,C,S,B]);var q={placement:_};null!==P&&(q.TransitionProps=P);var G=(0,d.Z)({root:["root"]},(0,v.T)(h)),Y=null!=(n=D.root)?n:"div",K=(0,m.Z)({elementType:Y,externalSlotProps:O.root,externalForwardedProps:A,additionalProps:{role:"tooltip",ref:T},ownerState:e,className:G.root});return(0,g.jsx)(Y,(0,r.Z)({},K,{children:"function"===typeof p?p(q):p}))})),S=a.forwardRef((function(e,t){var n,s=e.anchorEl,l=e.children,u=e.container,d=e.direction,f=void 0===d?"ltr":d,h=e.disablePortal,m=void 0!==h&&h,v=e.keepMounted,y=void 0!==v&&v,S=e.modifiers,k=e.open,Z=e.placement,O=void 0===Z?"bottom":Z,E=e.popperOptions,D=void 0===E?C:E,P=e.popperRef,A=e.style,M=e.transition,T=void 0!==M&&M,I=e.slotProps,R=void 0===I?{}:I,F=e.slots,B=void 0===F?{}:F,L=(0,o.Z)(e,b),N=a.useState(!0),_=(0,i.Z)(N,2),z=_[0],H=_[1];if(!y&&!k&&(!T||z))return null;if(u)n=u;else if(s){var W=x(s);n=W&&w(W)?(0,c.Z)(W).body:(0,c.Z)(null).body}var V=k||!y||T&&!z?void 0:"none",U=T?{in:k,onEnter:function(){H(!1)},onExited:function(){H(!0)}}:void 0;return(0,g.jsx)(p.Z,{disablePortal:m,container:n,children:(0,g.jsx)(j,(0,r.Z)({anchorEl:s,direction:f,disablePortal:m,modifiers:S,ref:t,open:T?!z:k,placement:O,popperOptions:D,popperRef:P,slotProps:R,slots:B},L,{style:(0,r.Z)({position:"fixed",top:0,left:0,display:V},A),TransitionProps:U,children:l}))})})),k=n(2964),Z=n(52492),O=n(72188),E=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],D=(0,Z.ZP)(S,{name:"MuiPopper",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),P=a.forwardRef((function(e,t){var n,i=(0,k.Z)(),a=(0,O.Z)({props:e,name:"MuiPopper"}),s=a.anchorEl,l=a.component,c=a.components,u=a.componentsProps,d=a.container,p=a.disablePortal,f=a.keepMounted,h=a.modifiers,m=a.open,v=a.placement,y=a.popperOptions,b=a.popperRef,x=a.transition,w=a.slots,C=a.slotProps,j=(0,o.Z)(a,E),S=null!=(n=null==w?void 0:w.root)?n:null==c?void 0:c.Root,Z=(0,r.Z)({anchorEl:s,container:d,disablePortal:p,keepMounted:f,modifiers:h,open:m,placement:v,popperOptions:y,popperRef:b,transition:x},j);return(0,g.jsx)(D,(0,r.Z)({as:l,direction:null==i?void 0:i.direction,slots:{root:S},slotProps:null!=C?C:u},Z,{ref:t}))}))},23492:function(e,t,n){"use strict";n.d(t,{Z:function(){return $}});var r=n(25773),o=n(30808),i=n(30303),a=n(21792),s=n(8190),l=n(11026),c=n(64649),u=n(1286),d=(n(34982),n(96148)),p=n(21088),f=n(85961),h=n(74723),m=n(13839),v=n(22997);function g(e){return(0,v.Z)("MuiNativeSelect",e)}var y=(0,m.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),b=n(52492),x=n(27241),w=["className","disabled","error","IconComponent","inputRef","variant"],C=function(e){var t,n=e.ownerState,o=e.theme;return(0,r.Z)((t={MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,r.Z)({},o.vars?{backgroundColor:"rgba(".concat(o.vars.palette.common.onBackgroundChannel," / 0.05)")}:{backgroundColor:"light"===o.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"}},(0,c.Z)(t,"&.".concat(y.disabled),{cursor:"default"}),(0,c.Z)(t,"&[multiple]",{height:"auto"}),(0,c.Z)(t,"&:not([multiple]) option, &:not([multiple]) optgroup",{backgroundColor:(o.vars||o).palette.background.paper}),(0,c.Z)(t,"&&&",{paddingRight:24,minWidth:16}),t),"filled"===n.variant&&{"&&&":{paddingRight:32}},"outlined"===n.variant&&{borderRadius:(o.vars||o).shape.borderRadius,"&:focus":{borderRadius:(o.vars||o).shape.borderRadius},"&&&":{paddingRight:32}})},j=(0,b.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:b.FO,overridesResolver:function(e,t){var n=e.ownerState;return[t.select,t[n.variant],n.error&&t.error,(0,c.Z)({},"&.".concat(y.multiple),t.multiple)]}})(C),S=function(e){var t=e.ownerState,n=e.theme;return(0,r.Z)((0,c.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(n.vars||n).palette.action.active},"&.".concat(y.disabled),{color:(n.vars||n).palette.action.disabled}),t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},k=(0,b.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:function(e,t){var n=e.ownerState;return[t.icon,n.variant&&t["icon".concat((0,f.Z)(n.variant))],n.open&&t.iconOpen]}})(S),Z=i.forwardRef((function(e,t){var n=e.className,s=e.disabled,l=e.error,c=e.IconComponent,u=e.inputRef,p=e.variant,h=void 0===p?"standard":p,m=(0,o.Z)(e,w),v=(0,r.Z)({},e,{disabled:s,variant:h,error:l}),y=function(e){var t=e.classes,n=e.variant,r=e.disabled,o=e.multiple,i=e.open,a={select:["select",n,r&&"disabled",o&&"multiple",e.error&&"error"],icon:["icon","icon".concat((0,f.Z)(n)),i&&"iconOpen",r&&"disabled"]};return(0,d.Z)(a,g,t)}(v);return(0,x.jsxs)(i.Fragment,{children:[(0,x.jsx)(j,(0,r.Z)({ownerState:v,className:(0,a.default)(y.select,n),disabled:s,ref:u||t},m)),e.multiple?null:(0,x.jsx)(k,{as:c,ownerState:v,className:y.icon})]})})),O=n(18792),E=n(26605),D=n(93192);function P(e){return(0,v.Z)("MuiSelect",e)}var A,M=(0,m.Z)("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),T=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],I=(0,b.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:function(e,t){var n=e.ownerState;return[(0,c.Z)({},"&.".concat(M.select),t.select),(0,c.Z)({},"&.".concat(M.select),t[n.variant]),(0,c.Z)({},"&.".concat(M.error),t.error),(0,c.Z)({},"&.".concat(M.multiple),t.multiple)]}})(C,(0,c.Z)({},"&.".concat(M.select),{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"})),R=(0,b.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:function(e,t){var n=e.ownerState;return[t.icon,n.variant&&t["icon".concat((0,f.Z)(n.variant))],n.open&&t.iconOpen]}})(S),F=(0,b.ZP)("input",{shouldForwardProp:function(e){return(0,b.Dz)(e)&&"classes"!==e},name:"MuiSelect",slot:"NativeInput",overridesResolver:function(e,t){return t.nativeInput}})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function B(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function L(e){return null==e||"string"===typeof e&&!e.trim()}var N=i.forwardRef((function(e,t){var n=e["aria-describedby"],s=e["aria-label"],c=e.autoFocus,m=e.autoWidth,v=e.children,g=e.className,y=e.defaultOpen,b=e.defaultValue,w=e.disabled,C=e.displayEmpty,j=e.error,S=void 0!==j&&j,k=e.IconComponent,Z=e.inputRef,M=e.labelId,N=e.MenuProps,_=void 0===N?{}:N,z=e.multiple,H=e.name,W=e.onBlur,V=e.onChange,U=e.onClose,q=e.onFocus,G=e.onOpen,Y=e.open,K=e.readOnly,J=e.renderValue,X=e.SelectDisplayProps,Q=void 0===X?{}:X,$=e.tabIndex,ee=e.value,te=e.variant,ne=void 0===te?"standard":te,re=(0,o.Z)(e,T),oe=(0,D.Z)({controlled:ee,default:b,name:"Select"}),ie=(0,l.Z)(oe,2),ae=ie[0],se=ie[1],le=(0,D.Z)({controlled:Y,default:y,name:"Select"}),ce=(0,l.Z)(le,2),ue=ce[0],de=ce[1],pe=i.useRef(null),fe=i.useRef(null),he=i.useState(null),me=(0,l.Z)(he,2),ve=me[0],ge=me[1],ye=i.useRef(null!=Y).current,be=i.useState(),xe=(0,l.Z)(be,2),we=xe[0],Ce=xe[1],je=(0,E.Z)(t,Z),Se=i.useCallback((function(e){fe.current=e,e&&ge(e)}),[]),ke=null==ve?void 0:ve.parentNode;i.useImperativeHandle(je,(function(){return{focus:function(){fe.current.focus()},node:pe.current,value:ae}}),[ae]),i.useEffect((function(){y&&ue&&ve&&!ye&&(Ce(m?null:ke.clientWidth),fe.current.focus())}),[ve,m]),i.useEffect((function(){c&&fe.current.focus()}),[c]),i.useEffect((function(){if(M){var e=(0,p.Z)(fe.current).getElementById(M);if(e){var t=function(){getSelection().isCollapsed&&fe.current.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[M]);var Ze,Oe,Ee=function(e,t){e?G&&G(t):U&&U(t),ye||(Ce(m?null:ke.clientWidth),de(e))},De=i.Children.toArray(v),Pe=function(e){return function(t){var n;if(t.currentTarget.hasAttribute("tabindex")){if(z){n=Array.isArray(ae)?ae.slice():[];var r=ae.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),ae!==n&&(se(n),V)){var o=t.nativeEvent||t,i=new o.constructor(o.type,o);Object.defineProperty(i,"target",{writable:!0,value:{value:n,name:H}}),V(i,e)}z||Ee(!1,t)}}},Ae=null!==ve&&ue;delete re["aria-invalid"];var Me=[],Te=!1;((0,O.vd)({value:ae})||C)&&(J?Ze=J(ae):Te=!0);var Ie=De.map((function(e){if(!i.isValidElement(e))return null;var t;if(z){if(!Array.isArray(ae))throw new Error((0,u.Z)(2));(t=ae.some((function(t){return B(t,e.props.value)})))&&Te&&Me.push(e.props.children)}else(t=B(ae,e.props.value))&&Te&&(Oe=e.props.children);return t&&!0,i.cloneElement(e,{"aria-selected":t?"true":"false",onClick:Pe(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));Te&&(Ze=z?0===Me.length?null:Me.reduce((function(e,t,n){return e.push(t),n<Me.length-1&&e.push(", "),e}),[]):Oe);var Re,Fe=we;!m&&ye&&ve&&(Fe=ke.clientWidth),Re="undefined"!==typeof $?$:w?null:0;var Be=Q.id||(H?"mui-component-select-".concat(H):void 0),Le=(0,r.Z)({},e,{variant:ne,value:ae,open:Ae,error:S}),Ne=function(e){var t=e.classes,n=e.variant,r=e.disabled,o=e.multiple,i=e.open,a={select:["select",n,r&&"disabled",o&&"multiple",e.error&&"error"],icon:["icon","icon".concat((0,f.Z)(n)),i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return(0,d.Z)(a,P,t)}(Le);return(0,x.jsxs)(i.Fragment,{children:[(0,x.jsx)(I,(0,r.Z)({ref:Se,tabIndex:Re,role:"button","aria-disabled":w?"true":void 0,"aria-expanded":Ae?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[M,Be].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:function(e){if(!K){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Ee(!0,e))}},onMouseDown:w||K?null:function(e){0===e.button&&(e.preventDefault(),fe.current.focus(),Ee(!0,e))},onBlur:function(e){!Ae&&W&&(Object.defineProperty(e,"target",{writable:!0,value:{value:ae,name:H}}),W(e))},onFocus:q},Q,{ownerState:Le,className:(0,a.default)(Q.className,Ne.select,g),id:Be,children:L(Ze)?A||(A=(0,x.jsx)("span",{className:"notranslate",children:"\u200b"})):Ze})),(0,x.jsx)(F,(0,r.Z)({"aria-invalid":S,value:Array.isArray(ae)?ae.join(","):ae,name:H,ref:pe,"aria-hidden":!0,onChange:function(e){var t=De.find((function(t){return t.props.value===e.target.value}));void 0!==t&&(se(t.props.value),V&&V(e,t))},tabIndex:-1,disabled:w,className:Ne.nativeInput,autoFocus:c,ownerState:Le},re)),(0,x.jsx)(R,{as:k,className:Ne.icon,ownerState:Le}),(0,x.jsx)(h.Z,(0,r.Z)({id:"menu-".concat(H||""),anchorEl:ke,open:Ae,onClose:function(e){Ee(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},_,{MenuListProps:(0,r.Z)({"aria-labelledby":M,role:"listbox",disableListWrap:!0},_.MenuListProps),PaperProps:(0,r.Z)({},_.PaperProps,{style:(0,r.Z)({minWidth:Fe},null!=_.PaperProps?_.PaperProps.style:null)}),children:Ie}))]})})),_=n(84908),z=n(64784),H=n(6897),W=n(93729),V=n(85680),U=n(97308),q=n(72188),G=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Y={name:"MuiSelect",overridesResolver:function(e,t){return t.root},shouldForwardProp:function(e){return(0,b.FO)(e)&&"variant"!==e},slot:"Root"},K=(0,b.ZP)(W.Z,Y)(""),J=(0,b.ZP)(U.Z,Y)(""),X=(0,b.ZP)(V.Z,Y)(""),Q=i.forwardRef((function(e,t){var n=(0,q.Z)({name:"MuiSelect",props:e}),l=n.autoWidth,c=void 0!==l&&l,u=n.children,d=n.classes,p=void 0===d?{}:d,f=n.className,h=n.defaultOpen,m=void 0!==h&&h,v=n.displayEmpty,g=void 0!==v&&v,y=n.IconComponent,b=void 0===y?H.Z:y,w=n.id,C=n.input,j=n.inputProps,S=n.label,k=n.labelId,O=n.MenuProps,D=n.multiple,P=void 0!==D&&D,A=n.native,M=void 0!==A&&A,T=n.onClose,I=n.onOpen,R=n.open,F=n.renderValue,B=n.SelectDisplayProps,L=n.variant,W=void 0===L?"outlined":L,V=(0,o.Z)(n,G),U=M?Z:N,Y=(0,z.Z)(),Q=(0,_.Z)({props:n,muiFormControl:Y,states:["variant","error"]}),$=Q.variant||W,ee=(0,r.Z)({},n,{variant:$,classes:p}),te=function(e){return e.classes}(ee),ne=C||{standard:(0,x.jsx)(K,{ownerState:ee}),outlined:(0,x.jsx)(J,{label:S,ownerState:ee}),filled:(0,x.jsx)(X,{ownerState:ee})}[$],re=(0,E.Z)(t,ne.ref);return(0,x.jsx)(i.Fragment,{children:i.cloneElement(ne,(0,r.Z)({inputComponent:U,inputProps:(0,r.Z)({children:u,error:Q.error,IconComponent:b,variant:$,type:void 0,multiple:P},M?{id:w}:{autoWidth:c,defaultOpen:m,displayEmpty:g,labelId:k,MenuProps:O,onClose:T,onOpen:I,open:R,renderValue:F,SelectDisplayProps:(0,r.Z)({id:w},B)},j,{classes:j?(0,s.Z)(te,j.classes):te},C?C.props.inputProps:{})},P&&M&&"outlined"===$?{notched:!0}:{},{ref:re,className:(0,a.default)(ne.props.className,f)},!C&&{variant:$},V))})}));Q.muiName="Select";var $=Q},37646:function(e,t,n){"use strict";var r=n(71613),o=n(52492),i=n(72188),a=(0,r.Z)({createStyledComponent:(0,o.ZP)("div",{name:"MuiStack",slot:"Root",overridesResolver:function(e,t){return t.root}}),useThemeProps:function(e){return(0,i.Z)({props:e,name:"MuiStack"})}});t.Z=a},59129:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(25773),o=n(30808),i=n(30303),a=n(21792),s=n(96148),l=n(85961),c=n(72188),u=n(52492),d=n(13839),p=n(22997);function f(e){return(0,p.Z)("MuiSvgIcon",e)}(0,d.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var h=n(27241),m=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],v=(0,u.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"inherit"!==n.color&&t["color".concat((0,l.Z)(n.color))],t["fontSize".concat((0,l.Z)(n.fontSize))]]}})((function(e){var t,n,r,o,i,a,s,l,c,u,d,p,f,h,m,v,g,y=e.theme,b=e.ownerState;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(t=y.transitions)||null==(n=t.create)?void 0:n.call(t,"fill",{duration:null==(r=y.transitions)||null==(o=r.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=y.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=y.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=y.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[b.fontSize],color:null!=(d=null==(p=(y.vars||y).palette)||null==(f=p[b.color])?void 0:f.main)?d:{action:null==(h=(y.vars||y).palette)||null==(m=h.action)?void 0:m.active,disabled:null==(v=(y.vars||y).palette)||null==(g=v.action)?void 0:g.disabled,inherit:void 0}[b.color]}})),g=i.forwardRef((function(e,t){var n=(0,c.Z)({props:e,name:"MuiSvgIcon"}),i=n.children,u=n.className,d=n.color,p=void 0===d?"inherit":d,g=n.component,y=void 0===g?"svg":g,b=n.fontSize,x=void 0===b?"medium":b,w=n.htmlColor,C=n.inheritViewBox,j=void 0!==C&&C,S=n.titleAccess,k=n.viewBox,Z=void 0===k?"0 0 24 24":k,O=(0,o.Z)(n,m),E=(0,r.Z)({},n,{color:p,component:y,fontSize:x,instanceFontSize:e.fontSize,inheritViewBox:j,viewBox:Z}),D={};j||(D.viewBox=Z);var P=function(e){var t=e.color,n=e.fontSize,r=e.classes,o={root:["root","inherit"!==t&&"color".concat((0,l.Z)(t)),"fontSize".concat((0,l.Z)(n))]};return(0,s.Z)(o,f,r)}(E);return(0,h.jsxs)(v,(0,r.Z)({as:y,className:(0,a.default)(P.root,u),focusable:"false",color:w,"aria-hidden":!S||void 0,role:S?"img":void 0,ref:t},D,O,{ownerState:E,children:[i,S?(0,h.jsx)("title",{children:S}):null]}))}));g.muiName="SvgIcon";var y=g},15977:function(e,t,n){"use strict";var r=n(64649),o=n(30808),i=n(25773),a=n(30303),s=n(21792),l=n(96148),c=n(92939),u=n(85961),d=n(13769),p=n(72188),f=n(52492),h=n(40727),m=n(27241),v=["className","color","edge","size","sx"],g=(0,f.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.edge&&t["edge".concat((0,u.Z)(n.edge))],t["size".concat((0,u.Z)(n.size))]]}})((function(e){var t,n=e.ownerState;return(0,i.Z)({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===n.edge&&{marginLeft:-8},"end"===n.edge&&{marginRight:-8},"small"===n.size&&(t={width:40,height:24,padding:7},(0,r.Z)(t,"& .".concat(h.Z.thumb),{width:16,height:16}),(0,r.Z)(t,"& .".concat(h.Z.switchBase),(0,r.Z)({padding:4},"&.".concat(h.Z.checked),{transform:"translateX(16px)"})),t))})),y=(0,f.ZP)(d.Z,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:function(e,t){var n=e.ownerState;return[t.switchBase,(0,r.Z)({},"& .".concat(h.Z.input),t.input),"default"!==n.color&&t["color".concat((0,u.Z)(n.color))]]}})((function(e){var t,n=e.theme;return t={position:"absolute",top:0,left:0,zIndex:1,color:n.vars?n.vars.palette.Switch.defaultColor:"".concat("light"===n.palette.mode?n.palette.common.white:n.palette.grey[300]),transition:n.transitions.create(["left","transform"],{duration:n.transitions.duration.shortest})},(0,r.Z)(t,"&.".concat(h.Z.checked),{transform:"translateX(20px)"}),(0,r.Z)(t,"&.".concat(h.Z.disabled),{color:n.vars?n.vars.palette.Switch.defaultDisabledColor:"".concat("light"===n.palette.mode?n.palette.grey[100]:n.palette.grey[600])}),(0,r.Z)(t,"&.".concat(h.Z.checked," + .").concat(h.Z.track),{opacity:.5}),(0,r.Z)(t,"&.".concat(h.Z.disabled," + .").concat(h.Z.track),{opacity:n.vars?n.vars.opacity.switchTrackDisabled:"".concat("light"===n.palette.mode?.12:.2)}),(0,r.Z)(t,"& .".concat(h.Z.input),{left:"-100%",width:"300%"}),t}),(function(e){var t,n=e.theme,o=e.ownerState;return(0,i.Z)({"&:hover":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.action.activeChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,c.Fq)(n.palette.action.active,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==o.color&&(t={},(0,r.Z)(t,"&.".concat(h.Z.checked),(0,r.Z)({color:(n.vars||n).palette[o.color].main,"&:hover":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette[o.color].mainChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,c.Fq)(n.palette[o.color].main,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&.".concat(h.Z.disabled),{color:n.vars?n.vars.palette.Switch["".concat(o.color,"DisabledColor")]:"".concat("light"===n.palette.mode?(0,c.$n)(n.palette[o.color].main,.62):(0,c._j)(n.palette[o.color].main,.55))})),(0,r.Z)(t,"&.".concat(h.Z.checked," + .").concat(h.Z.track),{backgroundColor:(n.vars||n).palette[o.color].main}),t))})),b=(0,f.ZP)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:function(e,t){return t.track}})((function(e){var t=e.theme;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:"".concat("light"===t.palette.mode?t.palette.common.black:t.palette.common.white),opacity:t.vars?t.vars.opacity.switchTrack:"".concat("light"===t.palette.mode?.38:.3)}})),x=(0,f.ZP)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:function(e,t){return t.thumb}})((function(e){var t=e.theme;return{boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}})),w=a.forwardRef((function(e,t){var n=(0,p.Z)({props:e,name:"MuiSwitch"}),r=n.className,a=n.color,c=void 0===a?"primary":a,d=n.edge,f=void 0!==d&&d,w=n.size,C=void 0===w?"medium":w,j=n.sx,S=(0,o.Z)(n,v),k=(0,i.Z)({},n,{color:c,edge:f,size:C}),Z=function(e){var t=e.classes,n=e.edge,r=e.size,o=e.color,a=e.checked,s=e.disabled,c={root:["root",n&&"edge".concat((0,u.Z)(n)),"size".concat((0,u.Z)(r))],switchBase:["switchBase","color".concat((0,u.Z)(o)),a&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},d=(0,l.Z)(c,h.H,t);return(0,i.Z)({},t,d)}(k),O=(0,m.jsx)(x,{className:Z.thumb,ownerState:k});return(0,m.jsxs)(g,{className:(0,s.default)(Z.root,r),sx:j,ownerState:k,children:[(0,m.jsx)(y,(0,i.Z)({type:"checkbox",icon:O,checkedIcon:O,ref:t,ownerState:k},S,{classes:(0,i.Z)({},Z,{root:Z.switchBase})})),(0,m.jsx)(b,{className:Z.track,ownerState:k})]})}));t.Z=w},40727:function(e,t,n){"use strict";n.d(t,{H:function(){return i}});var r=n(13839),o=n(22997);function i(e){return(0,o.Z)("MuiSwitch",e)}var a=(0,r.Z)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);t.Z=a},33267:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var r=n(25773),o=n(30808),i=n(30303),a=n(21792),s=n(96148),l=n(29372),c=n(52492),u=n(72188),d=n(93729),p=n(85680),f=n(97308),h=n(52693),m=n(47966),v=n(67364),g=n(23492),y=n(13839),b=n(22997);function x(e){return(0,b.Z)("MuiTextField",e)}(0,y.Z)("MuiTextField",["root"]);var w=n(27241),C=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],j={standard:d.Z,filled:p.Z,outlined:f.Z},S=(0,c.ZP)(m.Z,{name:"MuiTextField",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),k=i.forwardRef((function(e,t){var n=(0,u.Z)({props:e,name:"MuiTextField"}),i=n.autoComplete,c=n.autoFocus,d=void 0!==c&&c,p=n.children,f=n.className,m=n.color,y=void 0===m?"primary":m,b=n.defaultValue,k=n.disabled,Z=void 0!==k&&k,O=n.error,E=void 0!==O&&O,D=n.FormHelperTextProps,P=n.fullWidth,A=void 0!==P&&P,M=n.helperText,T=n.id,I=n.InputLabelProps,R=n.inputProps,F=n.InputProps,B=n.inputRef,L=n.label,N=n.maxRows,_=n.minRows,z=n.multiline,H=void 0!==z&&z,W=n.name,V=n.onBlur,U=n.onChange,q=n.onClick,G=n.onFocus,Y=n.placeholder,K=n.required,J=void 0!==K&&K,X=n.rows,Q=n.select,$=void 0!==Q&&Q,ee=n.SelectProps,te=n.type,ne=n.value,re=n.variant,oe=void 0===re?"outlined":re,ie=(0,o.Z)(n,C),ae=(0,r.Z)({},n,{autoFocus:d,color:y,disabled:Z,error:E,fullWidth:A,multiline:H,required:J,select:$,variant:oe}),se=function(e){var t=e.classes;return(0,s.Z)({root:["root"]},x,t)}(ae);var le={};"outlined"===oe&&(I&&"undefined"!==typeof I.shrink&&(le.notched=I.shrink),le.label=L),$&&(ee&&ee.native||(le.id=void 0),le["aria-describedby"]=void 0);var ce=(0,l.Z)(T),ue=M&&ce?"".concat(ce,"-helper-text"):void 0,de=L&&ce?"".concat(ce,"-label"):void 0,pe=j[oe],fe=(0,w.jsx)(pe,(0,r.Z)({"aria-describedby":ue,autoComplete:i,autoFocus:d,defaultValue:b,fullWidth:A,multiline:H,name:W,rows:X,maxRows:N,minRows:_,type:te,value:ne,id:ce,inputRef:B,onBlur:V,onChange:U,onFocus:G,onClick:q,placeholder:Y,inputProps:R},le,F));return(0,w.jsxs)(S,(0,r.Z)({className:(0,a.default)(se.root,f),disabled:Z,error:E,fullWidth:A,ref:t,required:J,color:y,variant:oe,ownerState:ae},ie,{children:[null!=L&&""!==L&&(0,w.jsx)(h.Z,(0,r.Z)({htmlFor:ce,id:de},I,{children:L})),$?(0,w.jsx)(g.Z,(0,r.Z)({"aria-describedby":ue,id:ce,labelId:de,value:ne,input:fe},ee,{children:p})):fe,M&&(0,w.jsx)(v.Z,(0,r.Z)({id:ue},D,{children:M}))]}))}))},9433:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(64649),o=n(30808),i=n(25773),a=n(30303),s=n(21792),l=n(96148),c=n(72188),u=n(52492),d=n(13839),p=n(22997);function f(e){return(0,p.Z)("MuiToolbar",e)}(0,d.Z)("MuiToolbar",["root","gutters","regular","dense"]);var h=n(27241),m=["className","component","disableGutters","variant"],v=(0,u.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,i.Z)({position:"relative",display:"flex",alignItems:"center"},!n.disableGutters&&(0,r.Z)({paddingLeft:t.spacing(2),paddingRight:t.spacing(2)},t.breakpoints.up("sm"),{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}),"dense"===n.variant&&{minHeight:48})}),(function(e){var t=e.theme;return"regular"===e.ownerState.variant&&t.mixins.toolbar})),g=a.forwardRef((function(e,t){var n=(0,c.Z)({props:e,name:"MuiToolbar"}),r=n.className,a=n.component,u=void 0===a?"div":a,d=n.disableGutters,p=void 0!==d&&d,g=n.variant,y=void 0===g?"regular":g,b=(0,o.Z)(n,m),x=(0,i.Z)({},n,{component:u,disableGutters:p,variant:y}),w=function(e){var t=e.classes,n={root:["root",!e.disableGutters&&"gutters",e.variant]};return(0,l.Z)(n,f,t)}(x);return(0,h.jsx)(v,(0,i.Z)({as:u,className:(0,s.default)(w.root,r),ref:t,ownerState:x},b))}))},31792:function(e,t,n){"use strict";var r=n(11026),o=n(64649),i=n(30808),a=n(25773),s=n(30303),l=n(21792),c=n(96148),u=n(74805),d=n(92939),p=n(52492),f=n(99227),h=n(72188),m=n(85961),v=n(8023),g=n(47148),y=n(51748),b=n(26605),x=n(78411),w=n(4027),C=n(93192),j=n(15558),S=n(27241),k=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];var Z=(0,p.ZP)(g.Z,{name:"MuiTooltip",slot:"Popper",overridesResolver:function(e,t){var n=e.ownerState;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((function(e){var t,n=e.theme,r=e.ownerState,i=e.open;return(0,a.Z)({zIndex:(n.vars||n).zIndex.tooltip,pointerEvents:"none"},!r.disableInteractive&&{pointerEvents:"auto"},!i&&{pointerEvents:"none"},r.arrow&&(t={},(0,o.Z)(t,'&[data-popper-placement*="bottom"] .'.concat(j.Z.arrow),{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}}),(0,o.Z)(t,'&[data-popper-placement*="top"] .'.concat(j.Z.arrow),{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}}),(0,o.Z)(t,'&[data-popper-placement*="right"] .'.concat(j.Z.arrow),(0,a.Z)({},r.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}})),(0,o.Z)(t,'&[data-popper-placement*="left"] .'.concat(j.Z.arrow),(0,a.Z)({},r.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})),t))})),O=(0,p.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:function(e,t){var n=e.ownerState;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t["tooltipPlacement".concat((0,m.Z)(n.placement.split("-")[0]))]]}})((function(e){var t,n,r=e.theme,i=e.ownerState;return(0,a.Z)({backgroundColor:r.vars?r.vars.palette.Tooltip.bg:(0,d.Fq)(r.palette.grey[700],.92),borderRadius:(r.vars||r).shape.borderRadius,color:(r.vars||r).palette.common.white,fontFamily:r.typography.fontFamily,padding:"4px 8px",fontSize:r.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:r.typography.fontWeightMedium},i.arrow&&{position:"relative",margin:0},i.touch&&{padding:"8px 16px",fontSize:r.typography.pxToRem(14),lineHeight:"".concat((n=16/14,Math.round(1e5*n)/1e5),"em"),fontWeight:r.typography.fontWeightRegular},(t={},(0,o.Z)(t,".".concat(j.Z.popper,'[data-popper-placement*="left"] &'),(0,a.Z)({transformOrigin:"right center"},i.isRtl?(0,a.Z)({marginLeft:"14px"},i.touch&&{marginLeft:"24px"}):(0,a.Z)({marginRight:"14px"},i.touch&&{marginRight:"24px"}))),(0,o.Z)(t,".".concat(j.Z.popper,'[data-popper-placement*="right"] &'),(0,a.Z)({transformOrigin:"left center"},i.isRtl?(0,a.Z)({marginRight:"14px"},i.touch&&{marginRight:"24px"}):(0,a.Z)({marginLeft:"14px"},i.touch&&{marginLeft:"24px"}))),(0,o.Z)(t,".".concat(j.Z.popper,'[data-popper-placement*="top"] &'),(0,a.Z)({transformOrigin:"center bottom",marginBottom:"14px"},i.touch&&{marginBottom:"24px"})),(0,o.Z)(t,".".concat(j.Z.popper,'[data-popper-placement*="bottom"] &'),(0,a.Z)({transformOrigin:"center top",marginTop:"14px"},i.touch&&{marginTop:"24px"})),t))})),E=(0,p.ZP)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:function(e,t){return t.arrow}})((function(e){var t=e.theme;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:(0,d.Fq)(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}})),D=!1,P=null,A={x:0,y:0};function M(e,t){return function(n){t&&t(n),e(n)}}var T=s.forwardRef((function(e,t){var n,o,d,p,T,I,R,F,B,L,N,_,z,H,W,V,U,q,G,Y=(0,h.Z)({props:e,name:"MuiTooltip"}),K=Y.arrow,J=void 0!==K&&K,X=Y.children,Q=Y.components,$=void 0===Q?{}:Q,ee=Y.componentsProps,te=void 0===ee?{}:ee,ne=Y.describeChild,re=void 0!==ne&&ne,oe=Y.disableFocusListener,ie=void 0!==oe&&oe,ae=Y.disableHoverListener,se=void 0!==ae&&ae,le=Y.disableInteractive,ce=void 0!==le&&le,ue=Y.disableTouchListener,de=void 0!==ue&&ue,pe=Y.enterDelay,fe=void 0===pe?100:pe,he=Y.enterNextDelay,me=void 0===he?0:he,ve=Y.enterTouchDelay,ge=void 0===ve?700:ve,ye=Y.followCursor,be=void 0!==ye&&ye,xe=Y.id,we=Y.leaveDelay,Ce=void 0===we?0:we,je=Y.leaveTouchDelay,Se=void 0===je?1500:je,ke=Y.onClose,Ze=Y.onOpen,Oe=Y.open,Ee=Y.placement,De=void 0===Ee?"bottom":Ee,Pe=Y.PopperComponent,Ae=Y.PopperProps,Me=void 0===Ae?{}:Ae,Te=Y.slotProps,Ie=void 0===Te?{}:Te,Re=Y.slots,Fe=void 0===Re?{}:Re,Be=Y.title,Le=Y.TransitionComponent,Ne=void 0===Le?v.Z:Le,_e=Y.TransitionProps,ze=(0,i.Z)(Y,k),He=(0,f.Z)(),We="rtl"===He.direction,Ve=s.useState(),Ue=(0,r.Z)(Ve,2),qe=Ue[0],Ge=Ue[1],Ye=s.useState(null),Ke=(0,r.Z)(Ye,2),Je=Ke[0],Xe=Ke[1],Qe=s.useRef(!1),$e=ce||be,et=s.useRef(),tt=s.useRef(),nt=s.useRef(),rt=s.useRef(),ot=(0,C.Z)({controlled:Oe,default:!1,name:"Tooltip",state:"open"}),it=(0,r.Z)(ot,2),at=it[0],st=it[1],lt=at,ct=(0,x.Z)(xe),ut=s.useRef(),dt=s.useCallback((function(){void 0!==ut.current&&(document.body.style.WebkitUserSelect=ut.current,ut.current=void 0),clearTimeout(rt.current)}),[]);s.useEffect((function(){return function(){clearTimeout(et.current),clearTimeout(tt.current),clearTimeout(nt.current),dt()}}),[dt]);var pt=function(e){clearTimeout(P),D=!0,st(!0),Ze&&!lt&&Ze(e)},ft=(0,y.Z)((function(e){clearTimeout(P),P=setTimeout((function(){D=!1}),800+Ce),st(!1),ke&&lt&&ke(e),clearTimeout(et.current),et.current=setTimeout((function(){Qe.current=!1}),He.transitions.duration.shortest)})),ht=function(e){Qe.current&&"touchstart"!==e.type||(qe&&qe.removeAttribute("title"),clearTimeout(tt.current),clearTimeout(nt.current),fe||D&&me?tt.current=setTimeout((function(){pt(e)}),D?me:fe):pt(e))},mt=function(e){clearTimeout(tt.current),clearTimeout(nt.current),nt.current=setTimeout((function(){ft(e)}),Ce)},vt=(0,w.Z)(),gt=vt.isFocusVisibleRef,yt=vt.onBlur,bt=vt.onFocus,xt=vt.ref,wt=s.useState(!1),Ct=(0,r.Z)(wt,2)[1],jt=function(e){yt(e),!1===gt.current&&(Ct(!1),mt(e))},St=function(e){qe||Ge(e.currentTarget),bt(e),!0===gt.current&&(Ct(!0),ht(e))},kt=function(e){Qe.current=!0;var t=X.props;t.onTouchStart&&t.onTouchStart(e)},Zt=ht,Ot=mt;s.useEffect((function(){if(lt)return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ft(e)}}),[ft,lt]);var Et=(0,b.Z)(X.ref,xt,Ge,t);Be||0===Be||(lt=!1);var Dt=s.useRef(),Pt={},At="string"===typeof Be;re?(Pt.title=lt||!At||se?null:Be,Pt["aria-describedby"]=lt?ct:null):(Pt["aria-label"]=At?Be:null,Pt["aria-labelledby"]=lt&&!At?ct:null);var Mt=(0,a.Z)({},Pt,ze,X.props,{className:(0,l.default)(ze.className,X.props.className),onTouchStart:kt,ref:Et},be?{onMouseMove:function(e){var t=X.props;t.onMouseMove&&t.onMouseMove(e),A={x:e.clientX,y:e.clientY},Dt.current&&Dt.current.update()}}:{});var Tt={};de||(Mt.onTouchStart=function(e){kt(e),clearTimeout(nt.current),clearTimeout(et.current),dt(),ut.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",rt.current=setTimeout((function(){document.body.style.WebkitUserSelect=ut.current,ht(e)}),ge)},Mt.onTouchEnd=function(e){X.props.onTouchEnd&&X.props.onTouchEnd(e),dt(),clearTimeout(nt.current),nt.current=setTimeout((function(){ft(e)}),Se)}),se||(Mt.onMouseOver=M(Zt,Mt.onMouseOver),Mt.onMouseLeave=M(Ot,Mt.onMouseLeave),$e||(Tt.onMouseOver=Zt,Tt.onMouseLeave=Ot)),ie||(Mt.onFocus=M(St,Mt.onFocus),Mt.onBlur=M(jt,Mt.onBlur),$e||(Tt.onFocus=St,Tt.onBlur=jt));var It=s.useMemo((function(){var e,t=[{name:"arrow",enabled:Boolean(Je),options:{element:Je,padding:4}}];return null!=(e=Me.popperOptions)&&e.modifiers&&(t=t.concat(Me.popperOptions.modifiers)),(0,a.Z)({},Me.popperOptions,{modifiers:t})}),[Je,Me]),Rt=(0,a.Z)({},Y,{isRtl:We,arrow:J,disableInteractive:$e,placement:De,PopperComponentProp:Pe,touch:Qe.current}),Ft=function(e){var t=e.classes,n=e.disableInteractive,r=e.arrow,o=e.touch,i=e.placement,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch","tooltipPlacement".concat((0,m.Z)(i.split("-")[0]))],arrow:["arrow"]};return(0,c.Z)(a,j.Q,t)}(Rt),Bt=null!=(n=null!=(o=Fe.popper)?o:$.Popper)?n:Z,Lt=null!=(d=null!=(p=null!=(T=Fe.transition)?T:$.Transition)?p:Ne)?d:v.Z,Nt=null!=(I=null!=(R=Fe.tooltip)?R:$.Tooltip)?I:O,_t=null!=(F=null!=(B=Fe.arrow)?B:$.Arrow)?F:E,zt=(0,u.Z)(Bt,(0,a.Z)({},Me,null!=(L=Ie.popper)?L:te.popper,{className:(0,l.default)(Ft.popper,null==Me?void 0:Me.className,null==(N=null!=(_=Ie.popper)?_:te.popper)?void 0:N.className)}),Rt),Ht=(0,u.Z)(Lt,(0,a.Z)({},_e,null!=(z=Ie.transition)?z:te.transition),Rt),Wt=(0,u.Z)(Nt,(0,a.Z)({},null!=(H=Ie.tooltip)?H:te.tooltip,{className:(0,l.default)(Ft.tooltip,null==(W=null!=(V=Ie.tooltip)?V:te.tooltip)?void 0:W.className)}),Rt),Vt=(0,u.Z)(_t,(0,a.Z)({},null!=(U=Ie.arrow)?U:te.arrow,{className:(0,l.default)(Ft.arrow,null==(q=null!=(G=Ie.arrow)?G:te.arrow)?void 0:q.className)}),Rt);return(0,S.jsxs)(s.Fragment,{children:[s.cloneElement(X,Mt),(0,S.jsx)(Bt,(0,a.Z)({as:null!=Pe?Pe:g.Z,placement:De,anchorEl:be?{getBoundingClientRect:function(){return{top:A.y,left:A.x,right:A.x,bottom:A.y,width:0,height:0}}}:qe,popperRef:Dt,open:!!qe&&lt,id:ct,transition:!0},Tt,zt,{popperOptions:It,children:function(e){var t=e.TransitionProps;return(0,S.jsx)(Lt,(0,a.Z)({timeout:He.transitions.duration.shorter},t,Ht,{children:(0,S.jsxs)(Nt,(0,a.Z)({},Wt,{children:[Be,J?(0,S.jsx)(_t,(0,a.Z)({},Vt,{ref:Xe})):null]}))}))}}))]})}));t.Z=T},15558:function(e,t,n){"use strict";n.d(t,{Q:function(){return i}});var r=n(13839),o=n(22997);function i(e){return(0,o.Z)("MuiTooltip",e)}var a=(0,r.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);t.Z=a},38697:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(30808),o=n(25773),i=n(30303),a=n(21792),s=n(41461),l=n(96148),c=n(52492),u=n(72188),d=n(85961),p=n(13839),f=n(22997);function h(e){return(0,f.Z)("MuiTypography",e)}(0,p.Z)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var m=n(27241),v=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],g=(0,c.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t["align".concat((0,d.Z)(n.align))],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((function(e){var t=e.theme,n=e.ownerState;return(0,o.Z)({margin:0},n.variant&&t.typography[n.variant],"inherit"!==n.align&&{textAlign:n.align},n.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n.gutterBottom&&{marginBottom:"0.35em"},n.paragraph&&{marginBottom:16})})),y={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},b={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},x=i.forwardRef((function(e,t){var n=(0,u.Z)({props:e,name:"MuiTypography"}),i=function(e){return b[e]||e}(n.color),c=(0,s.Z)((0,o.Z)({},n,{color:i})),p=c.align,f=void 0===p?"inherit":p,x=c.className,w=c.component,C=c.gutterBottom,j=void 0!==C&&C,S=c.noWrap,k=void 0!==S&&S,Z=c.paragraph,O=void 0!==Z&&Z,E=c.variant,D=void 0===E?"body1":E,P=c.variantMapping,A=void 0===P?y:P,M=(0,r.Z)(c,v),T=(0,o.Z)({},c,{align:f,color:i,className:x,component:w,gutterBottom:j,noWrap:k,paragraph:O,variant:D,variantMapping:A}),I=w||(O?"p":A[D]||y[D])||"span",R=function(e){var t=e.align,n=e.gutterBottom,r=e.noWrap,o=e.paragraph,i=e.variant,a=e.classes,s={root:["root",i,"inherit"!==e.align&&"align".concat((0,d.Z)(t)),n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return(0,l.Z)(s,h,a)}(T);return(0,m.jsx)(g,(0,o.Z)({as:I,ref:t,ownerState:T,className:(0,a.default)(R.root,x)},M))}))},27858:function(e,t){"use strict";t.Z={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"}},13769:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(11026),o=n(30808),i=n(25773),a=n(30303),s=n(21792),l=n(96148),c=n(85961),u=n(52492),d=n(93192),p=n(64784),f=n(99287),h=n(13839),m=n(22997);function v(e){return(0,m.Z)("PrivateSwitchBase",e)}(0,h.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var g=n(27241),y=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],b=(0,u.ZP)(f.Z)((function(e){var t=e.ownerState;return(0,i.Z)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),x=(0,u.ZP)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),w=a.forwardRef((function(e,t){var n=e.autoFocus,a=e.checked,u=e.checkedIcon,f=e.className,h=e.defaultChecked,m=e.disabled,w=e.disableFocusRipple,C=void 0!==w&&w,j=e.edge,S=void 0!==j&&j,k=e.icon,Z=e.id,O=e.inputProps,E=e.inputRef,D=e.name,P=e.onBlur,A=e.onChange,M=e.onFocus,T=e.readOnly,I=e.required,R=void 0!==I&&I,F=e.tabIndex,B=e.type,L=e.value,N=(0,o.Z)(e,y),_=(0,d.Z)({controlled:a,default:Boolean(h),name:"SwitchBase",state:"checked"}),z=(0,r.Z)(_,2),H=z[0],W=z[1],V=(0,p.Z)(),U=m;V&&"undefined"===typeof U&&(U=V.disabled);var q="checkbox"===B||"radio"===B,G=(0,i.Z)({},e,{checked:H,disabled:U,disableFocusRipple:C,edge:S}),Y=function(e){var t=e.classes,n=e.checked,r=e.disabled,o=e.edge,i={root:["root",n&&"checked",r&&"disabled",o&&"edge".concat((0,c.Z)(o))],input:["input"]};return(0,l.Z)(i,v,t)}(G);return(0,g.jsxs)(b,(0,i.Z)({component:"span",className:(0,s.default)(Y.root,f),centerRipple:!0,focusRipple:!C,disabled:U,tabIndex:null,role:void 0,onFocus:function(e){M&&M(e),V&&V.onFocus&&V.onFocus(e)},onBlur:function(e){P&&P(e),V&&V.onBlur&&V.onBlur(e)},ownerState:G,ref:t},N,{children:[(0,g.jsx)(x,(0,i.Z)({autoFocus:n,checked:a,defaultChecked:h,className:Y.input,disabled:U,id:q?Z:void 0,name:D,onChange:function(e){if(!e.nativeEvent.defaultPrevented){var t=e.target.checked;W(t),A&&A(e,t)}},readOnly:T,ref:E,required:R,ownerState:G,tabIndex:F,type:B},"checkbox"===B&&void 0===L?{}:{value:L},O)),H?u:k]}))}))},6897:function(e,t,n){"use strict";n(30303);var r=n(86162),o=n(27241);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown")},95801:function(e,t,n){"use strict";n(30303);var r=n(86162),o=n(27241);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},54098:function(e,t,n){"use strict";n(30303);var r=n(86162),o=n(27241);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage")},86814:function(e,t,n){"use strict";n(30303);var r=n(86162),o=n(27241);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft")},13692:function(e,t,n){"use strict";n(30303);var r=n(86162),o=n(27241);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight")},20604:function(e,t,n){"use strict";n(30303);var r=n(86162),o=n(27241);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage")},58893:function(e,t){"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen");function g(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case s:case a:case p:case f:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case m:case h:case l:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference")},34982:function(e,t,n){"use strict";n(58893)},82322:function(e,t,n){"use strict";n.d(t,{Z:function(){return F}});var r=n(25773),o=n(30808),i=n(1286),a=n(8190),s=n(68368),l=n(92693),c=n(15744),u=n(64649);function d(e,t){var n;return(0,r.Z)({toolbar:(n={minHeight:56},(0,u.Z)(n,e.up("xs"),{"@media (orientation: landscape)":{minHeight:48}}),(0,u.Z)(n,e.up("sm"),{minHeight:64}),n)},t)}var p=n(92939),f={black:"#000",white:"#fff"},h={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},m={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},v=n(27858),g={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},y={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},b={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},x={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},w=["mode","contrastThreshold","tonalOffset"],C={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:f.white,default:f.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},j={text:{primary:f.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:f.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function S(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,p.$n)(e.main,o):"dark"===t&&(e.dark=(0,p._j)(e.main,i)))}function k(e){var t=e.mode,n=void 0===t?"light":t,s=e.contrastThreshold,l=void 0===s?3:s,c=e.tonalOffset,u=void 0===c?.2:c,d=(0,o.Z)(e,w),k=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:y[200],light:y[50],dark:y[400]}:{main:y[700],light:y[400],dark:y[800]}}(n),Z=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[200],light:m[50],dark:m[400]}:{main:m[500],light:m[300],dark:m[700]}}(n),O=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v.Z[500],light:v.Z[300],dark:v.Z[700]}:{main:v.Z[700],light:v.Z[400],dark:v.Z[800]}}(n),E=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:b[400],light:b[300],dark:b[700]}:{main:b[700],light:b[500],dark:b[900]}}(n),D=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:x[400],light:x[300],dark:x[700]}:{main:x[800],light:x[500],dark:x[900]}}(n),P=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[400],light:g[300],dark:g[700]}:{main:"#ed6c02",light:g[500],dark:g[900]}}(n);function A(e){return(0,p.mi)(e,j.text.primary)>=l?j.text.primary:C.text.primary}var M=function(e){var t=e.color,n=e.name,o=e.mainShade,a=void 0===o?500:o,s=e.lightShade,l=void 0===s?300:s,c=e.darkShade,d=void 0===c?700:c;if(!(t=(0,r.Z)({},t)).main&&t[a]&&(t.main=t[a]),!t.hasOwnProperty("main"))throw new Error((0,i.Z)(11,n?" (".concat(n,")"):"",a));if("string"!==typeof t.main)throw new Error((0,i.Z)(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return S(t,"light",l,u),S(t,"dark",d,u),t.contrastText||(t.contrastText=A(t.main)),t},T={dark:j,light:C};return(0,a.Z)((0,r.Z)({common:(0,r.Z)({},f),mode:n,primary:M({color:k,name:"primary"}),secondary:M({color:Z,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:M({color:O,name:"error"}),warning:M({color:P,name:"warning"}),info:M({color:E,name:"info"}),success:M({color:D,name:"success"}),grey:h,contrastThreshold:l,getContrastText:A,augmentColor:M,tonalOffset:u},T[n]),d)}var Z=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];var O={textTransform:"uppercase"},E='"Roboto", "Helvetica", "Arial", sans-serif';function D(e,t){var n="function"===typeof t?t(e):t,i=n.fontFamily,s=void 0===i?E:i,l=n.fontSize,c=void 0===l?14:l,u=n.fontWeightLight,d=void 0===u?300:u,p=n.fontWeightRegular,f=void 0===p?400:p,h=n.fontWeightMedium,m=void 0===h?500:h,v=n.fontWeightBold,g=void 0===v?700:v,y=n.htmlFontSize,b=void 0===y?16:y,x=n.allVariants,w=n.pxToRem,C=(0,o.Z)(n,Z);var j=c/14,S=w||function(e){return"".concat(e/b*j,"rem")},k=function(e,t,n,o,i){return(0,r.Z)({fontFamily:s,fontWeight:e,fontSize:S(t),lineHeight:n},s===E?{letterSpacing:"".concat((a=o/t,Math.round(1e5*a)/1e5),"em")}:{},i,x);var a},D={h1:k(d,96,1.167,-1.5),h2:k(d,60,1.2,-.5),h3:k(f,48,1.167,0),h4:k(f,34,1.235,.25),h5:k(f,24,1.334,0),h6:k(m,20,1.6,.15),subtitle1:k(f,16,1.75,.15),subtitle2:k(m,14,1.57,.1),body1:k(f,16,1.5,.15),body2:k(f,14,1.43,.15),button:k(m,14,1.75,.4,O),caption:k(f,12,1.66,.4),overline:k(f,12,2.66,1,O),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,a.Z)((0,r.Z)({htmlFontSize:b,pxToRem:S,fontFamily:s,fontSize:c,fontWeightLight:d,fontWeightRegular:f,fontWeightMedium:m,fontWeightBold:g},D),C,{clone:!1})}function P(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var A=["none",P(0,2,1,-1,0,1,1,0,0,1,3,0),P(0,3,1,-2,0,2,2,0,0,1,5,0),P(0,3,3,-2,0,3,4,0,0,1,8,0),P(0,2,4,-1,0,4,5,0,0,1,10,0),P(0,3,5,-1,0,5,8,0,0,1,14,0),P(0,3,5,-1,0,6,10,0,0,1,18,0),P(0,4,5,-2,0,7,10,1,0,2,16,1),P(0,5,5,-3,0,8,10,1,0,3,14,2),P(0,5,6,-3,0,9,12,1,0,3,16,2),P(0,6,6,-3,0,10,14,1,0,4,18,3),P(0,6,7,-4,0,11,15,1,0,4,20,3),P(0,7,8,-4,0,12,17,2,0,5,22,4),P(0,7,8,-4,0,13,19,2,0,5,24,4),P(0,7,9,-4,0,14,21,2,0,5,26,4),P(0,8,9,-5,0,15,22,2,0,6,28,5),P(0,8,10,-5,0,16,24,2,0,6,30,5),P(0,8,11,-5,0,17,26,2,0,6,32,5),P(0,9,11,-5,0,18,28,2,0,7,34,6),P(0,9,12,-6,0,19,29,2,0,7,36,6),P(0,10,13,-6,0,20,31,3,0,8,38,7),P(0,10,13,-6,0,21,33,3,0,8,40,7),P(0,10,14,-6,0,22,35,3,0,8,42,7),P(0,11,14,-7,0,23,36,3,0,9,44,8),P(0,11,15,-7,0,24,38,3,0,9,46,8)],M=n(82231),T={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},I=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function R(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mixins,n=void 0===t?{}:t,u=e.palette,p=void 0===u?{}:u,f=e.transitions,h=void 0===f?{}:f,m=e.typography,v=void 0===m?{}:m,g=(0,o.Z)(e,I);if(e.vars)throw new Error((0,i.Z)(18));var y=k(p),b=(0,s.Z)(e),x=(0,a.Z)(b,{mixins:d(b.breakpoints,n),palette:y,shadows:A.slice(),typography:D(y,v),transitions:(0,M.ZP)(h),zIndex:(0,r.Z)({},T)});x=(0,a.Z)(x,g);for(var w=arguments.length,C=new Array(w>1?w-1:0),j=1;j<w;j++)C[j-1]=arguments[j];return(x=C.reduce((function(e,t){return(0,a.Z)(e,t)}),x)).unstable_sxConfig=(0,r.Z)({},l.Z,null==g?void 0:g.unstable_sxConfig),x.unstable_sx=function(e){return(0,c.Z)({sx:e,theme:this})},x}var F=R},82231:function(e,t,n){"use strict";n.d(t,{x9:function(){return s},ZP:function(){return u}});var r=n(30808),o=n(25773),i=["duration","easing","delay"],a={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},s={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function l(e){return"".concat(Math.round(e),"ms")}function c(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}function u(e){var t=(0,o.Z)({},a,e.easing),n=(0,o.Z)({},s,e.duration);return(0,o.Z)({getAutoHeightDuration:c,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=o.duration,s=void 0===a?n.standard:a,c=o.easing,u=void 0===c?t.easeInOut:c,d=o.delay,p=void 0===d?0:d;(0,r.Z)(o,i);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof s?s:l(s)," ").concat(u," ").concat("string"===typeof p?p:l(p))})).join(",")}},e,{easing:t,duration:n})}},8932:function(e,t,n){"use strict";var r=(0,n(82322).Z)();t.Z=r},45503:function(e,t){"use strict";t.Z="$$material"},52492:function(e,t,n){"use strict";n.d(t,{FO:function(){return a},Dz:function(){return s}});var r=n(88065),o=n(8932),i=n(45503),a=function(e){return(0,r.x9)(e)&&"classes"!==e},s=r.x9,l=(0,r.ZP)({themeId:i.Z,defaultTheme:o.Z,rootShouldForwardProp:a});t.ZP=l},99227:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(30303);var r=n(48),o=n(8932),i=n(45503);function a(){var e=(0,r.Z)(o.Z);return e[i.Z]||e}},72188:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(57974),o=n(8932),i=n(45503);function a(e){var t=e.props,n=e.name;return(0,r.Z)({props:t,name:n,defaultTheme:o.Z,themeId:i.Z})}},14813:function(e,t,n){"use strict";n.d(t,{n:function(){return r},C:function(){return o}});var r=function(e){return e.scrollTop};function o(e,t){var n,r,o=e.timeout,i=e.easing,a=e.style,s=void 0===a?{}:a;return{duration:null!=(n=s.transitionDuration)?n:"number"===typeof o?o:o[t.mode]||0,easing:null!=(r=s.transitionTimingFunction)?r:"object"===typeof i?i[t.mode]:i,delay:s.transitionDelay}}},85961:function(e,t,n){"use strict";var r=n(52141);t.Z=r.Z},33472:function(e,t,n){"use strict";var r=n(68754);t.Z=r.Z},86162:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(25773),o=n(30303),i=n(59129),a=n(27241);function s(e,t){function n(n,o){return(0,a.jsx)(i.Z,(0,r.Z)({"data-testid":"".concat(t,"Icon"),ref:o},n,{children:e}))}return n.muiName=i.Z.muiName,o.memo(o.forwardRef(n))}},38542:function(e,t,n){"use strict";var r=n(63338);t.Z=r.Z},47402:function(e,t,n){"use strict";n.r(t),n.d(t,{capitalize:function(){return o.Z},createChainedFunction:function(){return i.Z},createSvgIcon:function(){return a.Z},debounce:function(){return s.Z},deprecatedPropType:function(){return l},isMuiElement:function(){return c.Z},ownerDocument:function(){return u.Z},ownerWindow:function(){return d.Z},requirePropFactory:function(){return p},setRef:function(){return f},unstable_ClassNameGenerator:function(){return w},unstable_useEnhancedEffect:function(){return h.Z},unstable_useId:function(){return m.Z},unsupportedProp:function(){return v},useControlled:function(){return g.Z},useEventCallback:function(){return y.Z},useForkRef:function(){return b.Z},useIsFocusVisible:function(){return x.Z}});var r=n(21590),o=n(85961),i=n(33472),a=n(86162),s=n(38542),l=n(70156).Z,c=n(29728),u=n(21088),d=n(71539),p=n(24207).Z,f=n(377).Z,h=n(33850),m=n(78411),v=n(70838).Z,g=n(93192),y=n(51748),b=n(26605),x=n(4027),w={configure:function(e){r.Z.configure(e)}}},29728:function(e,t,n){"use strict";var r=n(33767);t.Z=r.Z},21088:function(e,t,n){"use strict";var r=n(98403);t.Z=r.Z},71539:function(e,t,n){"use strict";var r=n(55714);t.Z=r.Z},93192:function(e,t,n){"use strict";var r=n(23487);t.Z=r.Z},33850:function(e,t,n){"use strict";var r=n(66430);t.Z=r.Z},51748:function(e,t,n){"use strict";var r=n(22270);t.Z=r.Z},26605:function(e,t,n){"use strict";var r=n(86193);t.Z=r.Z},78411:function(e,t,n){"use strict";var r=n(29372);t.Z=r.Z},4027:function(e,t,n){"use strict";var r=n(32911);t.Z=r.Z},97736:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});n(30303);var r=n(19471),o=n(27241);function i(e){var t=e.styles,n=e.defaultTheme,i=void 0===n?{}:n,a="function"===typeof t?function(e){return t(void 0===(n=e)||null===n||0===Object.keys(n).length?i:e);var n}:t;return(0,o.jsx)(r.xB,{styles:a})}},47398:function(e,t,n){"use strict";n.r(t),n.d(t,{GlobalStyles:function(){return Z.Z},StyledEngineProvider:function(){return k},ThemeContext:function(){return c.T},css:function(){return C.iv},default:function(){return O},internal_processStyles:function(){return E},keyframes:function(){return C.F4}});var r=n(30303),o=n.t(r,2),i=n(25773);function a(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var s=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,l=a((function(e){return s.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),c=n(3665),u=n(65473),d=n(23029),p=l,f=function(e){return"theme"!==e},h=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?p:f},m=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},v=o.useInsertionEffect?o.useInsertionEffect:function(e){e()};var g=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;(0,u.hC)(t,n,r);!function(e){v(e)}((function(){return(0,u.My)(t,n,r)}));return null},y=function e(t,n){var o,a,s=t.__emotion_real===t,l=s&&t.__emotion_base||t;void 0!==n&&(o=n.label,a=n.target);var p=m(t,n,s),f=p||h(l),v=!f("as");return function(){var y=arguments,b=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&b.push("label:"+o+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{0,b.push(y[0][0]);for(var x=y.length,w=1;w<x;w++)b.push(y[w],y[0][w])}var C=(0,c.w)((function(e,t,n){var o=v&&e.as||l,i="",s=[],m=e;if(null==e.theme){for(var y in m={},e)m[y]=e[y];m.theme=(0,r.useContext)(c.T)}"string"===typeof e.className?i=(0,u.fp)(t.registered,s,e.className):null!=e.className&&(i=e.className+" ");var x=(0,d.O)(b.concat(s),t.registered,m);i+=t.key+"-"+x.name,void 0!==a&&(i+=" "+a);var w=v&&void 0===p?h(o):f,C={};for(var j in e)v&&"as"===j||w(j)&&(C[j]=e[j]);return C.className=i,C.ref=n,(0,r.createElement)(r.Fragment,null,(0,r.createElement)(g,{cache:t,serialized:x,isStringTag:"string"===typeof o}),(0,r.createElement)(o,C))}));return C.displayName=void 0!==o?o:"Styled("+("string"===typeof l?l:l.displayName||l.name||"Component")+")",C.defaultProps=t.defaultProps,C.__emotion_real=C,C.__emotion_base=l,C.__emotion_styles=b,C.__emotion_forwardProp=p,Object.defineProperty(C,"toString",{value:function(){return"."+a}}),C.withComponent=function(t,r){return e(t,(0,i.Z)({},n,r,{shouldForwardProp:m(C,r,!0)})).apply(void 0,b)},C}},b=y.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){b[e]=b(e)}));var x,w=b,C=n(19471),j=n(42716),S=n(27241);function k(e){var t=e.injectFirst,n=e.children;return t&&x?(0,S.jsx)(c.C,{value:x,children:n}):n}"object"===typeof document&&(x=(0,j.Z)({key:"css",prepend:!0}));var Z=n(97736);function O(e,t){return w(e,t)}var E=function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},32898:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;r(n(25262));var o=(0,r(n(78543)).default)();t.Z=o},78543:function(e,t,n){"use strict";var r=n(93231).default,o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.createStyledComponent,n=void 0===t?x:t,r=e.useThemeProps,o=void 0===r?w:r,u=e.componentName,d=void 0===u?"MuiStack":u,f=function(){return(0,c.unstable_composeClasses)({root:["root"]},(function(e){return(0,c.unstable_generateUtilityClass)(d,e)}),{})},h=n(j),m=s.forwardRef((function(e,t){var n=o(e),r=(0,p.extendSxProp)(n),s=r.component,c=void 0===s?"div":s,u=r.direction,d=void 0===u?"column":u,m=r.spacing,y=void 0===m?0:m,b=r.divider,x=r.children,w=r.className,j=r.useFlexGap,S=void 0!==j&&j,k=(0,i.default)(r,g),Z={direction:d,spacing:y,useFlexGap:S},O=f();return(0,v.jsx)(h,(0,a.default)({as:c,ownerState:Z,ref:t,className:(0,l.default)(O.root,w)},k,{children:b?C(x,b):x}))}));return m},t.style=void 0;var i=o(n(22412)),a=o(n(73119)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=y(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(n(30303)),l=(o(n(25262)),o(n(21792))),c=n(70571),u=o(n(83282)),d=o(n(95390)),p=n(21915),f=o(n(21040)),h=n(4735),m=n(81810),v=n(27241),g=["component","direction","spacing","divider","children","className","useFlexGap"];function y(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(y=function(e){return e?n:t})(e)}var b=(0,f.default)(),x=(0,u.default)("div",{name:"MuiStack",slot:"Root",overridesResolver:function(e,t){return t.root}});function w(e){return(0,d.default)({props:e,name:"MuiStack",defaultTheme:b})}function C(e,t){var n=s.Children.toArray(e).filter(Boolean);return n.reduce((function(e,r,o){return e.push(r),o<n.length-1&&e.push(s.cloneElement(t,{key:"separator-".concat(o)})),e}),[])}var j=function(e){var t=e.ownerState,n=e.theme,o=(0,a.default)({display:"flex",flexDirection:"column"},(0,h.handleBreakpoints)({theme:n},(0,h.resolveBreakpointValues)({values:t.direction,breakpoints:n.breakpoints.values}),(function(e){return{flexDirection:e}})));if(t.spacing){var i=(0,m.createUnarySpacing)(n),s=Object.keys(n.breakpoints.values).reduce((function(e,n){return("object"===typeof t.spacing&&null!=t.spacing[n]||"object"===typeof t.direction&&null!=t.direction[n])&&(e[n]=!0),e}),{}),l=(0,h.resolveBreakpointValues)({values:t.direction,base:s}),u=(0,h.resolveBreakpointValues)({values:t.spacing,base:s});"object"===typeof l&&Object.keys(l).forEach((function(e,t,n){if(!l[e]){var r=t>0?l[n[t-1]]:"column";l[e]=r}}));o=(0,c.deepmerge)(o,(0,h.handleBreakpoints)({theme:n},u,(function(e,n){return t.useFlexGap?{gap:(0,m.getValue)(i,e)}:{"& > :not(style) + :not(style)":r({margin:0},"margin".concat((o=n?l[n]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o])),(0,m.getValue)(i,e))};var o})))}return o=(0,h.mergeBreakpointsInOrder)(n.breakpoints,o)};t.style=j},4735:function(e,t,n){"use strict";var r=n(9833).default,o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.computeBreakpointsBase=p,t.createEmptyBreakpointObject=u,t.default=void 0,t.handleBreakpoints=function(e,t,n){var r=e.theme||{};if(Array.isArray(t)){var o=r.breakpoints||c;return t.reduce((function(e,r,i){return e[o.up(o.keys[i])]=n(t[i]),e}),{})}if("object"===typeof t){var i=r.breakpoints||c;return Object.keys(t).reduce((function(e,r){if(-1!==Object.keys(i.values||l).indexOf(r)){e[i.up(r)]=n(t[r],r)}else{var o=r;e[o]=t[o]}return e}),{})}return n(t)},t.mergeBreakpointsInOrder=function(e){for(var t=u(e),n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=[t].concat(r).reduce((function(e,t){return(0,a.deepmerge)(e,t)}),{});return d(Object.keys(t),i)},t.removeUnusedBreakpoints=d,t.resolveBreakpointValues=function(e){var t,n=e.values,r=e.breakpoints,o=e.base||p(n,r),i=Object.keys(o);if(0===i.length)return n;return i.reduce((function(e,r,o){return Array.isArray(n)?(e[r]=null!=n[o]?n[o]:n[t],t=o):"object"===typeof n?(e[r]=null!=n[r]?n[r]:n[t],t=r):e[r]=n,e}),{})},t.values=void 0;var i=o(n(73119)),a=(o(n(25262)),n(70571)),s=o(n(72219)),l={xs:0,sm:600,md:900,lg:1200,xl:1536};t.values=l;var c={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(l[e],"px)")}};function u(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=null==(e=t.keys)?void 0:e.reduce((function(e,n){return e[t.up(n)]={},e}),{});return n||{}}function d(e,t){return e.reduce((function(e,t){var n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function p(e,t){if("object"!==typeof e)return{};var n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((function(t,r){r<e.length&&(n[t]=!0)})):r.forEach((function(t){null!=e[t]&&(n[t]=!0)})),n}var f=function(e){var t=function(t){var n=t.theme||{},r=e(t),o=n.breakpoints||c,a=o.keys.reduce((function(r,a){return t[a]&&((r=r||{})[o.up(a)]=e((0,i.default)({theme:n},t[a]))),r}),null);return(0,s.default)(r,a)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(r(e.filterProps)),t};t.default=f},38235:function(e,t,n){"use strict";var r=n(9833).default,o=n(40131).default,i=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.themeId,n=e.defaultTheme,i=void 0===n?b:n,c=e.rootShouldForwardProp,u=void 0===c?y:c,f=e.slotShouldForwardProp,w=void 0===f?y:f,C=function(e){return(0,d.default)((0,s.default)({},e,{theme:x((0,s.default)({},e,{defaultTheme:i,themeId:t}))}))};return C.__mui_systemSx=!0,function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,l.internal_processStyles)(e,(function(e){return e.filter((function(e){return!(null!=e&&e.__mui_systemSx)}))}));var c,d=n.name,f=n.slot,b=n.skipVariantsResolver,j=n.skipSx,S=n.overridesResolver,k=(0,a.default)(n,p),Z=void 0!==b?b:f&&"Root"!==f||!1,O=j||!1;var E=y;"Root"===f?E=u:f?E=w:h(e)&&(E=void 0);var D=(0,l.default)(e,(0,s.default)({shouldForwardProp:E,label:c},k)),P=function(n){for(var a=arguments.length,l=new Array(a>1?a-1:0),c=1;c<a;c++)l[c-1]=arguments[c];var u=l?l.map((function(e){return"function"===typeof e&&e.__emotion_real!==e?function(n){return e((0,s.default)({},n,{theme:x((0,s.default)({},n,{defaultTheme:i,themeId:t}))}))}:e})):[],p=n;d&&S&&u.push((function(e){var n=x((0,s.default)({},e,{defaultTheme:i,themeId:t})),r=m(d,n);if(r){var a={};return Object.entries(r).forEach((function(t){var r=o(t,2),i=r[0],l=r[1];a[i]="function"===typeof l?l((0,s.default)({},e,{theme:n})):l})),S(e,a)}return null})),d&&!Z&&u.push((function(e){var n=x((0,s.default)({},e,{defaultTheme:i,themeId:t}));return g(e,v(d,n),n,d)})),O||u.push(C);var f=u.length-l.length;if(Array.isArray(n)&&f>0){var h=new Array(f).fill("");(p=[].concat(r(n),r(h))).raw=[].concat(r(n.raw),r(h))}else"function"===typeof n&&n.__emotion_real!==n&&(p=function(e){return n((0,s.default)({},e,{theme:x((0,s.default)({},e,{defaultTheme:i,themeId:t}))}))});var y=D.apply(void 0,[p].concat(r(u)));return e.muiName&&(y.muiName=e.muiName),y};return D.withConfig&&(P.withConfig=D.withConfig),P}},t.shouldForwardProp=y,t.systemDefaultTheme=void 0;var a=i(n(22412)),s=i(n(73119)),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(n(47398)),c=(n(70571),i(n(21040))),u=i(n(53241)),d=i(n(21915)),p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function f(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function h(e){return"string"===typeof e&&e.charCodeAt(0)>96}var m=function(e,t){return t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null},v=function(e,t){var n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);var r={};return n.forEach((function(e){var t=(0,u.default)(e.props);r[t]=e.style})),r},g=function(e,t,n,r){var o,i,a=e.ownerState,s=void 0===a?{}:a,l=[],c=null==n||null==(o=n.components)||null==(i=o[r])?void 0:i.variants;return c&&c.forEach((function(n){var r=!0;Object.keys(n.props).forEach((function(t){s[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&l.push(t[(0,u.default)(n.props)])})),l};function y(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}var b=(0,c.default)();t.systemDefaultTheme=b;function x(e){var t,n=e.defaultTheme,r=e.theme,o=e.themeId;return t=r,0===Object.keys(t).length?n:r[o]||r}},36774:function(e,t,n){"use strict";var r=(0,n(4513).Z)();t.Z=r},71613:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(64649),o=n(30808),i=n(25773),a=n(30303),s=n(21792),l=n(8190),c=n(96148),u=n(22997),d=n(97421),p=n(57974),f=n(41461),h=n(68368),m=n(75497),v=n(30929),g=n(27241),y=["component","direction","spacing","divider","children","className","useFlexGap"],b=(0,h.Z)(),x=(0,d.Z)("div",{name:"MuiStack",slot:"Root",overridesResolver:function(e,t){return t.root}});function w(e){return(0,p.Z)({props:e,name:"MuiStack",defaultTheme:b})}function C(e,t){var n=a.Children.toArray(e).filter(Boolean);return n.reduce((function(e,r,o){return e.push(r),o<n.length-1&&e.push(a.cloneElement(t,{key:"separator-".concat(o)})),e}),[])}var j=function(e){var t=e.ownerState,n=e.theme,o=(0,i.Z)({display:"flex",flexDirection:"column"},(0,m.k9)({theme:n},(0,m.P$)({values:t.direction,breakpoints:n.breakpoints.values}),(function(e){return{flexDirection:e}})));if(t.spacing){var a=(0,v.hB)(n),s=Object.keys(n.breakpoints.values).reduce((function(e,n){return("object"===typeof t.spacing&&null!=t.spacing[n]||"object"===typeof t.direction&&null!=t.direction[n])&&(e[n]=!0),e}),{}),c=(0,m.P$)({values:t.direction,base:s}),u=(0,m.P$)({values:t.spacing,base:s});"object"===typeof c&&Object.keys(c).forEach((function(e,t,n){if(!c[e]){var r=t>0?c[n[t-1]]:"column";c[e]=r}}));o=(0,l.Z)(o,(0,m.k9)({theme:n},u,(function(e,n){return t.useFlexGap?{gap:(0,v.NA)(a,e)}:{"& > :not(style) + :not(style)":(0,r.Z)({margin:0},"margin".concat((o=n?c[n]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o])),(0,v.NA)(a,e))};var o})))}return o=(0,m.dt)(n.breakpoints,o)};function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.createStyledComponent,n=void 0===t?x:t,r=e.useThemeProps,l=void 0===r?w:r,d=e.componentName,p=void 0===d?"MuiStack":d,h=function(){return(0,c.Z)({root:["root"]},(function(e){return(0,u.Z)(p,e)}),{})},m=n(j),v=a.forwardRef((function(e,t){var n=l(e),r=(0,f.Z)(n),a=r.component,c=void 0===a?"div":a,u=r.direction,d=void 0===u?"column":u,p=r.spacing,v=void 0===p?0:p,b=r.divider,x=r.children,w=r.className,j=r.useFlexGap,S=void 0!==j&&j,k=(0,o.Z)(r,y),Z={direction:d,spacing:v,useFlexGap:S},O=h();return(0,g.jsx)(m,(0,i.Z)({as:c,ownerState:Z,ref:t,className:(0,s.default)(O.root,w)},k,{children:b?C(x,b):x}))}));return v}},75497:function(e,t,n){"use strict";n.d(t,{VO:function(){return o},k9:function(){return a},W8:function(){return s},L7:function(){return l},dt:function(){return c},P$:function(){return u}});var r=n(8190),o={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(o[e],"px)")}};function a(e,t,n){var r=e.theme||{};if(Array.isArray(t)){var a=r.breakpoints||i;return t.reduce((function(e,r,o){return e[a.up(a.keys[o])]=n(t[o]),e}),{})}if("object"===typeof t){var s=r.breakpoints||i;return Object.keys(t).reduce((function(e,r){if(-1!==Object.keys(s.values||o).indexOf(r)){e[s.up(r)]=n(t[r],r)}else{var i=r;e[i]=t[i]}return e}),{})}return n(t)}function s(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=null==(e=t.keys)?void 0:e.reduce((function(e,n){return e[t.up(n)]={},e}),{});return n||{}}function l(e,t){return e.reduce((function(e,t){var n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function c(e){for(var t=s(e),n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];var a=[t].concat(o).reduce((function(e,t){return(0,r.Z)(e,t)}),{});return l(Object.keys(t),a)}function u(e){var t,n=e.values,r=e.breakpoints,o=e.base||function(e,t){if("object"!==typeof e)return{};var n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((function(t,r){r<e.length&&(n[t]=!0)})):r.forEach((function(t){null!=e[t]&&(n[t]=!0)})),n}(n,r),i=Object.keys(o);return 0===i.length?n:i.reduce((function(e,r,o){return Array.isArray(n)?(e[r]=null!=n[o]?n[o]:n[t],t=o):"object"===typeof n?(e[r]=null!=n[r]?n[r]:n[t],t=r):e[r]=n,e}),{})}},92939:function(e,t,n){"use strict";n.d(t,{mi:function(){return l},Fq:function(){return c},_j:function(){return u},$n:function(){return d},_4:function(){return p}});var r=n(1286);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.slice(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,r.Z)(9,e));var o,a=e.substring(t+1,e.length-1);if("color"===n){if(o=(a=a.split(" ")).shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o))throw new Error((0,r.Z)(10,o))}else a=a.split(",");return{type:n,values:a=a.map((function(e){return parseFloat(e)})),colorSpace:o}}function a(e){var t=e.type,n=e.colorSpace,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),r=-1!==t.indexOf("color")?"".concat(n," ").concat(r.join(" ")):"".concat(r.join(", ")),"".concat(t,"(").concat(r,")")}function s(e){var t="hsl"===(e=i(e)).type||"hsla"===e.type?i(function(e){var t=(e=i(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-s*Math.max(Math.min(t-3,9-t,1),-1)},c="rgb",u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),a({type:c,values:u})}(e)).values:e.values;return t=t.map((function(t){return"color"!==e.type&&(t/=255),t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function l(e,t){var n=s(e),r=s(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function c(e,t){return e=i(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,a(e)}function u(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function d(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(var r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return a(e)}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return s(e)>.5?u(e,t):d(e,t)}},4513:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(25773),o=n(30808),i=n(30303),a=n(21792),s=n(47398),l=n(15744),c=n(41461),u=n(48),d=n(27241),p=["className","component"];function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.themeId,n=e.defaultTheme,f=e.defaultClassName,h=void 0===f?"MuiBox-root":f,m=e.generateClassName,v=(0,s.default)("div",{shouldForwardProp:function(e){return"theme"!==e&&"sx"!==e&&"as"!==e}})(l.Z),g=i.forwardRef((function(e,i){var s=(0,u.Z)(n),l=(0,c.Z)(e),f=l.className,g=l.component,y=void 0===g?"div":g,b=(0,o.Z)(l,p);return(0,d.jsx)(v,(0,r.Z)({as:y,ref:i,className:(0,a.default)(f,m?m(h):h),theme:t&&s[t]||s},b))}));return g}},88065:function(e,t,n){"use strict";n.d(t,{ZP:function(){return C},x9:function(){return b}});var r=n(649),o=n(11026),i=n(30808),a=n(25773),s=n(47398),l=n(68368),c=n(52141),u=["variant"];function d(e){return 0===e.length}function p(e){var t=e.variant,n=(0,i.Z)(e,u),r=t||"";return Object.keys(n).sort().forEach((function(t){r+="color"===t?d(r)?e[t]:(0,c.Z)(e[t]):"".concat(d(r)?t:(0,c.Z)(t)).concat((0,c.Z)(e[t].toString()))})),r}var f=n(15744),h=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function m(e){return"string"===typeof e&&e.charCodeAt(0)>96}var v=function(e,t){return t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null},g=function(e,t){var n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);var r={};return n.forEach((function(e){var t=p(e.props);r[t]=e.style})),r},y=function(e,t,n,r){var o,i,a=e.ownerState,s=void 0===a?{}:a,l=[],c=null==n||null==(o=n.components)||null==(i=o[r])?void 0:i.variants;return c&&c.forEach((function(n){var r=!0;Object.keys(n.props).forEach((function(t){s[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&l.push(t[p(n.props)])})),l};function b(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}var x=(0,l.Z)();function w(e){var t,n=e.defaultTheme,r=e.theme,o=e.themeId;return t=r,0===Object.keys(t).length?n:r[o]||r}function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.themeId,n=e.defaultTheme,l=void 0===n?x:n,c=e.rootShouldForwardProp,u=void 0===c?b:c,d=e.slotShouldForwardProp,p=void 0===d?b:d,C=function(e){return(0,f.Z)((0,a.Z)({},e,{theme:w((0,a.Z)({},e,{defaultTheme:l,themeId:t}))}))};return C.__mui_systemSx=!0,function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,s.internal_processStyles)(e,(function(e){return e.filter((function(e){return!(null!=e&&e.__mui_systemSx)}))}));var c,d=n.name,f=n.slot,x=n.skipVariantsResolver,j=n.skipSx,S=n.overridesResolver,k=(0,i.Z)(n,h),Z=void 0!==x?x:f&&"Root"!==f||!1,O=j||!1;var E=b;"Root"===f?E=u:f?E=p:m(e)&&(E=void 0);var D=(0,s.default)(e,(0,a.Z)({shouldForwardProp:E,label:c},k)),P=function(n){for(var i=arguments.length,s=new Array(i>1?i-1:0),c=1;c<i;c++)s[c-1]=arguments[c];var u=s?s.map((function(e){return"function"===typeof e&&e.__emotion_real!==e?function(n){return e((0,a.Z)({},n,{theme:w((0,a.Z)({},n,{defaultTheme:l,themeId:t}))}))}:e})):[],p=n;d&&S&&u.push((function(e){var n=w((0,a.Z)({},e,{defaultTheme:l,themeId:t})),r=v(d,n);if(r){var i={};return Object.entries(r).forEach((function(t){var r=(0,o.Z)(t,2),s=r[0],l=r[1];i[s]="function"===typeof l?l((0,a.Z)({},e,{theme:n})):l})),S(e,i)}return null})),d&&!Z&&u.push((function(e){var n=w((0,a.Z)({},e,{defaultTheme:l,themeId:t}));return y(e,g(d,n),n,d)})),O||u.push(C);var f=u.length-s.length;if(Array.isArray(n)&&f>0){var h=new Array(f).fill("");(p=[].concat((0,r.Z)(n),(0,r.Z)(h))).raw=[].concat((0,r.Z)(n.raw),(0,r.Z)(h))}else"function"===typeof n&&n.__emotion_real!==n&&(p=function(e){return n((0,a.Z)({},e,{theme:w((0,a.Z)({},e,{defaultTheme:l,themeId:t}))}))});var m=D.apply(void 0,[p].concat((0,r.Z)(u)));return e.muiName&&(m.muiName=e.muiName),m};return D.withConfig&&(P.withConfig=D.withConfig),P}}},18105:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(64649),o=n(30808),i=n(25773),a=["values","unit","step"];function s(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:900,lg:1200,xl:1536}:t,s=e.unit,l=void 0===s?"px":s,c=e.step,u=void 0===c?5:c,d=(0,o.Z)(e,a),p=function(e){var t=Object.keys(e).map((function(t){return{key:t,val:e[t]}}))||[];return t.sort((function(e,t){return e.val-t.val})),t.reduce((function(e,t){return(0,i.Z)({},e,(0,r.Z)({},t.key,t.val))}),{})}(n),f=Object.keys(p);function h(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(l,")")}function m(e){var t="number"===typeof n[e]?n[e]:e;return"@media (max-width:".concat(t-u/100).concat(l,")")}function v(e,t){var r=f.indexOf(t);return"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(l,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[f[r]]?n[f[r]]:t)-u/100).concat(l,")")}return(0,i.Z)({keys:f,values:p,up:h,down:m,between:v,only:function(e){return f.indexOf(e)+1<f.length?v(e,f[f.indexOf(e)+1]):h(e)},not:function(e){var t=f.indexOf(e);return 0===t?h(f[1]):t===f.length-1?m(f[t]):v(e,f[f.indexOf(e)+1]).replace("@media","@media not all and")},unit:l},d)}},68368:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(25773),o=n(30808),i=n(8190),a=n(18105),s={borderRadius:4},l=n(30929);function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,l.hB)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=0===n.length?[1]:n;return o.map((function(e){var n=t(e);return"number"===typeof n?"".concat(n,"px"):n})).join(" ")};return n.mui=!0,n}var u=n(15744),d=n(92693),p=["breakpoints","palette","spacing","shape"];var f=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,l=e.palette,f=void 0===l?{}:l,h=e.spacing,m=e.shape,v=void 0===m?{}:m,g=(0,o.Z)(e,p),y=(0,a.Z)(n),b=c(h),x=(0,i.Z)({breakpoints:y,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},f),spacing:b,shape:(0,r.Z)({},s,v)},g),w=arguments.length,C=new Array(w>1?w-1:0),j=1;j<w;j++)C[j-1]=arguments[j];return(x=C.reduce((function(e,t){return(0,i.Z)(e,t)}),x)).unstable_sxConfig=(0,r.Z)({},d.Z,null==g?void 0:g.unstable_sxConfig),x.unstable_sx=function(e){return(0,u.Z)({sx:e,theme:this})},x}},21040:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r.Z}});var r=n(68368)},67191:function(e,t,n){"use strict";var r=n(8190);t.Z=function(e,t){return t?(0,r.Z)(e,t,{clone:!1}):e}},30929:function(e,t,n){"use strict";n.d(t,{hB:function(){return m},eI:function(){return h},NA:function(){return v},e6:function(){return b},o3:function(){return x}});var r=n(11026),o=n(75497),i=n(94259),a=n(67191);var s={m:"margin",p:"padding"},l={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},c={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},u=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!c[e])return[e];e=c[e]}var t=e.split(""),n=(0,r.Z)(t,2),o=n[0],i=n[1],a=s[o],u=l[i]||"";return Array.isArray(u)?u.map((function(e){return a+e})):[a+u]})),d=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],p=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],f=[].concat(d,p);function h(e,t,n,r){var o,a=null!=(o=(0,i.DW)(e,t,!1))?o:n;return"number"===typeof a?function(e){return"string"===typeof e?e:a*e}:Array.isArray(a)?function(e){return"string"===typeof e?e:a[e]}:"function"===typeof a?a:function(){}}function m(e){return h(e,"spacing",8)}function v(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}function g(e,t,n,r){if(-1===t.indexOf(n))return null;var i=function(e,t){return function(n){return e.reduce((function(e,r){return e[r]=v(t,n),e}),{})}}(u(n),r),a=e[n];return(0,o.k9)(e,a,i)}function y(e,t){var n=m(e.theme);return Object.keys(e).map((function(r){return g(e,t,r,n)})).reduce(a.Z,{})}function b(e){return y(e,d)}function x(e){return y(e,p)}function w(e){return y(e,f)}b.propTypes={},b.filterProps=d,x.propTypes={},x.filterProps=p,w.propTypes={},w.filterProps=f},94259:function(e,t,n){"use strict";n.d(t,{DW:function(){return a},Jq:function(){return s}});var r=n(64649),o=n(52141),i=n(75497);function a(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){var r="vars.".concat(t).split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e);if(null!=r)return r}return t.split(".").reduce((function(e,t){return e&&null!=e[t]?e[t]:null}),e)}function s(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||o:a(e,n)||o,t&&(r=t(r,o,e)),r}t.ZP=function(e){var t=e.prop,n=e.cssProperty,l=void 0===n?e.prop:n,c=e.themeKey,u=e.transform,d=function(e){if(null==e[t])return null;var n=e[t],d=a(e.theme,c)||{};return(0,i.k9)(e,n,(function(e){var n=s(d,u,e);return e===n&&"string"===typeof e&&(n=s(d,u,"".concat(t).concat("default"===e?"":(0,o.Z)(e)),e)),!1===l?n:(0,r.Z)({},l,n)}))};return d.propTypes={},d.filterProps=[t],d}},92693:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var r=n(30929),o=n(94259),i=n(67191);var a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.reduce((function(e,t){return t.filterProps.forEach((function(n){e[n]=t})),e}),{}),o=function(e){return Object.keys(e).reduce((function(t,n){return r[n]?(0,i.Z)(t,r[n](e)):t}),{})};return o.propTypes={},o.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),o},s=n(75497);function l(e){return"number"!==typeof e?e:"".concat(e,"px solid")}var c=(0,o.ZP)({prop:"border",themeKey:"borders",transform:l}),u=(0,o.ZP)({prop:"borderTop",themeKey:"borders",transform:l}),d=(0,o.ZP)({prop:"borderRight",themeKey:"borders",transform:l}),p=(0,o.ZP)({prop:"borderBottom",themeKey:"borders",transform:l}),f=(0,o.ZP)({prop:"borderLeft",themeKey:"borders",transform:l}),h=(0,o.ZP)({prop:"borderColor",themeKey:"palette"}),m=(0,o.ZP)({prop:"borderTopColor",themeKey:"palette"}),v=(0,o.ZP)({prop:"borderRightColor",themeKey:"palette"}),g=(0,o.ZP)({prop:"borderBottomColor",themeKey:"palette"}),y=(0,o.ZP)({prop:"borderLeftColor",themeKey:"palette"}),b=function(e){if(void 0!==e.borderRadius&&null!==e.borderRadius){var t=(0,r.eI)(e.theme,"shape.borderRadius",4,"borderRadius");return(0,s.k9)(e,e.borderRadius,(function(e){return{borderRadius:(0,r.NA)(t,e)}}))}return null};b.propTypes={},b.filterProps=["borderRadius"];a(c,u,d,p,f,h,m,v,g,y,b);var x=function(e){if(void 0!==e.gap&&null!==e.gap){var t=(0,r.eI)(e.theme,"spacing",8,"gap");return(0,s.k9)(e,e.gap,(function(e){return{gap:(0,r.NA)(t,e)}}))}return null};x.propTypes={},x.filterProps=["gap"];var w=function(e){if(void 0!==e.columnGap&&null!==e.columnGap){var t=(0,r.eI)(e.theme,"spacing",8,"columnGap");return(0,s.k9)(e,e.columnGap,(function(e){return{columnGap:(0,r.NA)(t,e)}}))}return null};w.propTypes={},w.filterProps=["columnGap"];var C=function(e){if(void 0!==e.rowGap&&null!==e.rowGap){var t=(0,r.eI)(e.theme,"spacing",8,"rowGap");return(0,s.k9)(e,e.rowGap,(function(e){return{rowGap:(0,r.NA)(t,e)}}))}return null};C.propTypes={},C.filterProps=["rowGap"];a(x,w,C,(0,o.ZP)({prop:"gridColumn"}),(0,o.ZP)({prop:"gridRow"}),(0,o.ZP)({prop:"gridAutoFlow"}),(0,o.ZP)({prop:"gridAutoColumns"}),(0,o.ZP)({prop:"gridAutoRows"}),(0,o.ZP)({prop:"gridTemplateColumns"}),(0,o.ZP)({prop:"gridTemplateRows"}),(0,o.ZP)({prop:"gridTemplateAreas"}),(0,o.ZP)({prop:"gridArea"}));function j(e,t){return"grey"===t?t:e}a((0,o.ZP)({prop:"color",themeKey:"palette",transform:j}),(0,o.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:j}),(0,o.ZP)({prop:"backgroundColor",themeKey:"palette",transform:j}));function S(e){return e<=1&&0!==e?"".concat(100*e,"%"):e}var k=(0,o.ZP)({prop:"width",transform:S}),Z=function(e){if(void 0!==e.maxWidth&&null!==e.maxWidth){return(0,s.k9)(e,e.maxWidth,(function(t){var n,r,o;return{maxWidth:(null==(n=e.theme)||null==(r=n.breakpoints)||null==(o=r.values)?void 0:o[t])||s.VO[t]||S(t)}}))}return null};Z.filterProps=["maxWidth"];var O=(0,o.ZP)({prop:"minWidth",transform:S}),E=(0,o.ZP)({prop:"height",transform:S}),D=(0,o.ZP)({prop:"maxHeight",transform:S}),P=(0,o.ZP)({prop:"minHeight",transform:S}),A=((0,o.ZP)({prop:"size",cssProperty:"width",transform:S}),(0,o.ZP)({prop:"size",cssProperty:"height",transform:S}),a(k,Z,O,E,D,P,(0,o.ZP)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:b},color:{themeKey:"palette",transform:j},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:j},backgroundColor:{themeKey:"palette",transform:j},p:{style:r.o3},pt:{style:r.o3},pr:{style:r.o3},pb:{style:r.o3},pl:{style:r.o3},px:{style:r.o3},py:{style:r.o3},padding:{style:r.o3},paddingTop:{style:r.o3},paddingRight:{style:r.o3},paddingBottom:{style:r.o3},paddingLeft:{style:r.o3},paddingX:{style:r.o3},paddingY:{style:r.o3},paddingInline:{style:r.o3},paddingInlineStart:{style:r.o3},paddingInlineEnd:{style:r.o3},paddingBlock:{style:r.o3},paddingBlockStart:{style:r.o3},paddingBlockEnd:{style:r.o3},m:{style:r.e6},mt:{style:r.e6},mr:{style:r.e6},mb:{style:r.e6},ml:{style:r.e6},mx:{style:r.e6},my:{style:r.e6},margin:{style:r.e6},marginTop:{style:r.e6},marginRight:{style:r.e6},marginBottom:{style:r.e6},marginLeft:{style:r.e6},marginX:{style:r.e6},marginY:{style:r.e6},marginInline:{style:r.e6},marginInlineStart:{style:r.e6},marginInlineEnd:{style:r.e6},marginBlock:{style:r.e6},marginBlockStart:{style:r.e6},marginBlockEnd:{style:r.e6},displayPrint:{cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:x},rowGap:{style:C},columnGap:{style:w},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:S},maxWidth:{style:Z},minWidth:{transform:S},height:{transform:S},maxHeight:{transform:S},minHeight:{transform:S},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},41461:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(649),o=n(25773),i=n(30808),a=n(8190),s=n(92693),l=["sx"];function c(e){var t,n=e.sx,c=function(e){var t,n,r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:s.Z;return Object.keys(e).forEach((function(t){o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r}((0,i.Z)(e,l)),u=c.systemProps,d=c.otherProps;return t=Array.isArray(n)?[u].concat((0,r.Z)(n)):"function"===typeof n?function(){var e=n.apply(void 0,arguments);return(0,a.P)(e)?(0,o.Z)({},u,e):u}:(0,o.Z)({},u,n),(0,o.Z)({},d,{sx:t})}},21915:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r.Z},unstable_createStyleFunctionSx:function(){return r.n},extendSxProp:function(){return o.Z},unstable_defaultSxConfig:function(){return i.Z}});var r=n(15744),o=n(41461),i=n(92693)},15744:function(e,t,n){"use strict";n.d(t,{n:function(){return c}});var r=n(64649),o=n(52141),i=n(67191),a=n(94259),s=n(75497),l=n(92693);function c(){function e(e,t,n,i){var l,c=(l={},(0,r.Z)(l,e,t),(0,r.Z)(l,"theme",n),l),u=i[e];if(!u)return(0,r.Z)({},e,t);var d=u.cssProperty,p=void 0===d?e:d,f=u.themeKey,h=u.transform,m=u.style;if(null==t)return null;if("typography"===f&&"inherit"===t)return(0,r.Z)({},e,t);var v=(0,a.DW)(n,f)||{};if(m)return m(c);return(0,s.k9)(c,t,(function(t){var n=(0,a.Jq)(v,h,t);return t===n&&"string"===typeof t&&(n=(0,a.Jq)(v,h,"".concat(e).concat("default"===t?"":(0,o.Z)(t)),t)),!1===p?n:(0,r.Z)({},p,n)}))}return function t(n){var o,a=n||{},c=a.sx,u=a.theme,d=void 0===u?{}:u;if(!c)return null;var p=null!=(o=d.unstable_sxConfig)?o:l.Z;function f(n){var o=n;if("function"===typeof n)o=n(d);else if("object"!==typeof n)return n;if(!o)return null;var a=(0,s.W8)(d.breakpoints),l=Object.keys(a),c=a;return Object.keys(o).forEach((function(n){var a,l,u=(a=o[n],l=d,"function"===typeof a?a(l):a);if(null!==u&&void 0!==u)if("object"===typeof u)if(p[n])c=(0,i.Z)(c,e(n,u,d,p));else{var f=(0,s.k9)({theme:d},u,(function(e){return(0,r.Z)({},n,e)}));!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.reduce((function(e,t){return e.concat(Object.keys(t))}),[]),o=new Set(r);return t.every((function(e){return o.size===Object.keys(e).length}))}(f,u)?c=(0,i.Z)(c,f):c[n]=t({sx:u,theme:d})}else c=(0,i.Z)(c,e(n,u,d,p))})),(0,s.L7)(l,c)}return Array.isArray(c)?c.map(f):f(c)}}var u=c();u.filterProps=["sx"],t.Z=u},97421:function(e,t,n){"use strict";var r=(0,n(88065).ZP)();t.Z=r},48:function(e,t,n){"use strict";var r=n(68368),o=n(2964),i=(0,r.Z)();t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;return(0,o.Z)(e)}},24002:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(19899);function o(e){var t=e.theme,n=e.name,o=e.props;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.Z)(t.components[n].defaultProps,o):o}},95390:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r.Z},getThemeProps:function(){return o.Z}});var r=n(57974),o=n(24002)},57974:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(24002),o=n(48);function i(e){var t=e.props,n=e.name,i=e.defaultTheme,a=e.themeId,s=(0,o.Z)(i);return a&&(s=s[a]||s),(0,r.Z)({theme:s,name:n,props:t})}},2964:function(e,t,n){"use strict";var r=n(30303),o=n(3665);function i(e){return 0===Object.keys(e).length}t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=r.useContext(o.T);return!t||i(t)?e:t}},36067:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},72219:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(70571);var o=function(e,t){return t?(0,r.deepmerge)(e,t,{clone:!1}):e};t.default=o},53241:function(e,t,n){"use strict";var r=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.variant,n=(0,o.default)(e,a),r=t||"";return Object.keys(n).sort().forEach((function(t){r+="color"===t?s(r)?e[t]:(0,i.unstable_capitalize)(e[t]):"".concat(s(r)?t:(0,i.unstable_capitalize)(t)).concat((0,i.unstable_capitalize)(e[t].toString()))})),r};var o=r(n(22412)),i=n(70571),a=["variant"];function s(e){return 0===e.length}},99826:function(e,t,n){"use strict";var r=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;r(n(25262));var o={};t.default=o},81810:function(e,t,n){"use strict";var r=n(40131).default,o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.createUnarySpacing=g,t.createUnaryUnit=v,t.default=void 0,t.getStyleFromPropValue=b,t.getValue=y,t.margin=w,t.marginKeys=void 0,t.padding=C,t.paddingKeys=void 0;o(n(99826));var i=n(4735),a=n(95162),s=o(n(72219)),l=o(n(36067)),c={m:"margin",p:"padding"},u={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},d={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},p=(0,l.default)((function(e){if(e.length>2){if(!d[e])return[e];e=d[e]}var t=e.split(""),n=r(t,2),o=n[0],i=n[1],a=c[o],s=u[i]||"";return Array.isArray(s)?s.map((function(e){return a+e})):[a+s]})),f=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"];t.marginKeys=f;var h=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];t.paddingKeys=h;var m=[].concat(f,h);function v(e,t,n,r){var o,i=null!=(o=(0,a.getPath)(e,t,!1))?o:n;return"number"===typeof i?function(e){return"string"===typeof e?e:i*e}:Array.isArray(i)?function(e){return"string"===typeof e?e:i[e]}:"function"===typeof i?i:function(){}}function g(e){return v(e,"spacing",8)}function y(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}function b(e,t){return function(n){return e.reduce((function(e,r){return e[r]=y(t,n),e}),{})}}function x(e,t){var n=g(e.theme);return Object.keys(e).map((function(r){return function(e,t,n,r){if(-1===t.indexOf(n))return null;var o=b(p(n),r),a=e[n];return(0,i.handleBreakpoints)(e,a,o)}(e,t,r,n)})).reduce(s.default,{})}function w(e){return x(e,f)}function C(e){return x(e,h)}function j(e){return x(e,m)}w.propTypes={},w.filterProps=f,C.propTypes={},C.filterProps=h,j.propTypes={},j.filterProps=m;var S=j;t.default=S},95162:function(e,t,n){"use strict";var r=n(93231).default,o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getPath=s,t.getStyleValue=l;var i=n(70571),a=(o(n(99826)),n(4735));function s(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){var r="vars.".concat(t).split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e);if(null!=r)return r}return t.split(".").reduce((function(e,t){return e&&null!=e[t]?e[t]:null}),e)}function l(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||o:s(e,n)||o,t&&(r=t(r,o,e)),r}var c=function(e){var t=e.prop,n=e.cssProperty,o=void 0===n?e.prop:n,c=e.themeKey,u=e.transform,d=function(e){if(null==e[t])return null;var n=e[t],d=s(e.theme,c)||{};return(0,a.handleBreakpoints)(e,n,(function(e){var n=l(d,u,e);return e===n&&"string"===typeof e&&(n=l(d,u,"".concat(t).concat("default"===e?"":(0,i.unstable_capitalize)(e)),e)),!1===o?n:r({},o,n)}))};return d.propTypes={},d.filterProps=[t],d};t.default=c},83282:function(e,t,n){"use strict";var r=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(0,r(n(38235)).default)();t.default=o},21590:function(e,t){"use strict";var n=function(e){return e},r=function(){var e=n;return{configure:function(t){e=t},generate:function(t){return e(t)},reset:function(){e=n}}}();t.Z=r},52141:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(1286);function o(e){if("string"!==typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},4228:function(e,t,n){"use strict";function r(e,t){return function(){return null}}n.d(t,{Z:function(){return r}})},96148:function(e,t,n){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r={};return Object.keys(e).forEach((function(o){r[o]=e[o].reduce((function(e,r){if(r){var o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}n.d(t,{Z:function(){return r}})},68754:function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))}n.d(t,{Z:function(){return r}})},63338:function(e,t,n){"use strict";function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var s=function(){e.apply(r,i)};clearTimeout(t),t=setTimeout(s,n)}return r.clear=function(){clearTimeout(t)},r}n.d(t,{Z:function(){return r}})},8190:function(e,t,n){"use strict";n.d(t,{P:function(){return o},Z:function(){return a}});var r=n(50189);function o(e){return null!==e&&"object"===typeof e&&e.constructor===Object}function i(e){if(!o(e))return e;var t={};return Object.keys(e).forEach((function(n){t[n]=i(e[n])})),t}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},s=n.clone?(0,r.Z)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(o(t[r])&&r in e&&o(e[r])?s[r]=a(e[r],t[r],n):n.clone?s[r]=o(t[r])?i(t[r]):t[r]:s[r]=t[r])})),s}},70156:function(e,t,n){"use strict";function r(e,t){return function(){return null}}n.d(t,{Z:function(){return r}})},1286:function(e,t,n){"use strict";function r(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{Z:function(){return r}})},22997:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(21590),o={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",i=o[t];return i?"".concat(n,"-").concat(i):"".concat(r.Z.generate(e),"-").concat(t)}},13839:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(22997);function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",o={};return t.forEach((function(t){o[t]=(0,r.Z)(e,t,n)})),o}},76063:function(e,t,n){"use strict";function r(e){var t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}n.d(t,{Z:function(){return r}})},70571:function(e,t,n){"use strict";n.r(t),n.d(t,{HTMLElementType:function(){return b},chainPropTypes:function(){return r.Z},deepmerge:function(){return o.Z},elementAcceptingRef:function(){return c},elementTypeAcceptingRef:function(){return u},exactProp:function(){return d},formatMuiErrorMessage:function(){return p.Z},getDisplayName:function(){return y},integerPropType:function(){return W},internal_resolveProps:function(){return V.Z},isPlainObject:function(){return o.P},ponyfillGlobal:function(){return x},refType:function(){return w},unstable_ClassNameGenerator:function(){return Y.Z},unstable_capitalize:function(){return C.Z},unstable_composeClasses:function(){return U.Z},unstable_createChainedFunction:function(){return j.Z},unstable_debounce:function(){return S.Z},unstable_deprecatedPropType:function(){return k.Z},unstable_detectScrollType:function(){return N.E},unstable_generateUtilityClass:function(){return q.Z},unstable_generateUtilityClasses:function(){return G.Z},unstable_getNormalizedScrollLeft:function(){return N.T},unstable_getScrollbarSize:function(){return L.Z},unstable_isMuiElement:function(){return Z.Z},unstable_ownerDocument:function(){return O.Z},unstable_ownerWindow:function(){return E.Z},unstable_requirePropFactory:function(){return D.Z},unstable_setRef:function(){return P.Z},unstable_unsupportedProp:function(){return T.Z},unstable_useControlled:function(){return I.Z},unstable_useEnhancedEffect:function(){return A.Z},unstable_useEventCallback:function(){return R.Z},unstable_useForkRef:function(){return F.Z},unstable_useId:function(){return M.Z},unstable_useIsFocusVisible:function(){return B.Z},usePreviousProps:function(){return _.Z},visuallyHidden:function(){return z.Z}});var r=n(4228),o=n(8190),i=n(25262),a=n.n(i);function s(e,t,n,r,o){var i,a=e[t],s=o||t;if(null==a||"undefined"===typeof window)return null;var l=a.type;return"function"!==typeof l||function(e){var t=e.prototype;return Boolean((void 0===t?{}:t).isReactComponent)}(l)||(i="Did you accidentally use a plain function component for an element instead?"),void 0!==i?new Error("Invalid ".concat(r," `").concat(s,"` supplied to `").concat(n,"`. ")+"Expected an element that can hold a ref. ".concat(i," ")+"For more information see https://mui.com/r/caveat-with-refs-guide"):null}var l=(0,r.Z)(a().element,s);l.isRequired=(0,r.Z)(a().element.isRequired,s);var c=l;var u=(0,r.Z)(a().elementType,(function(e,t,n,r,o){var i,a=e[t],s=o||t;return null==a||"undefined"===typeof window?null:("function"!==typeof a||function(e){var t=e.prototype;return Boolean((void 0===t?{}:t).isReactComponent)}(a)||(i="Did you accidentally provide a plain function component instead?"),void 0!==i?new Error("Invalid ".concat(r," `").concat(s,"` supplied to `").concat(n,"`. ")+"Expected an element type that can hold a ref. ".concat(i," ")+"For more information see https://mui.com/r/caveat-with-refs-guide"):null)}));n(64649),n(50189);function d(e){return e}var p=n(1286),f=n(76680),h=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function m(e){var t="".concat(e).match(h);return t&&t[1]||""}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||m(e)||t}function g(e,t,n){var r=v(t);return e.displayName||(""!==r?"".concat(n,"(").concat(r,")"):n)}function y(e){if(null!=e){if("string"===typeof e)return e;if("function"===typeof e)return v(e,"Component");if("object"===typeof e)switch(e.$$typeof){case f.ForwardRef:return g(e,e.render,"ForwardRef");case f.Memo:return g(e,e.type,"memo");default:return}}}function b(e,t,n,r,o){return null}var x="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),w=a().oneOfType([a().func,a().object]),C=n(52141),j=n(68754),S=n(63338),k=n(70156),Z=n(33767),O=n(98403),E=n(55714),D=n(24207),P=n(377),A=n(66430),M=n(29372),T=n(70838),I=n(23487),R=n(22270),F=n(86193),B=n(32911),L=n(76063),N=n(42240),_=n(21536),z=n(7969);Number.isInteger;function H(){return null}H.isRequired=H;var W=H,V=n(19899),U=n(96148),q=n(22997),G=n(13839),Y=n(21590)},33767:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(30303);function o(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},98403:function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:function(){return r}})},55714:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(98403);function o(e){return(0,r.Z)(e).defaultView||window}},24207:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});n(50189);function r(e,t){return function(){return null}}},19899:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(50189);function o(e,t){var n=(0,r.Z)({},t);return Object.keys(e).forEach((function(i){if(i.toString().match(/^(components|slots)$/))n[i]=(0,r.Z)((0,r.Z)({},e[i]),n[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){var a=e[i]||{},s=t[i];n[i]={},s&&Object.keys(s)?a&&Object.keys(a)?(n[i]=(0,r.Z)({},s),Object.keys(a).forEach((function(e){n[i][e]=o(a[e],s[e])}))):n[i]=s:n[i]=a}else void 0===n[i]&&(n[i]=e[i])})),n}},42240:function(e,t,n){"use strict";var r;function o(){if(r)return r;var e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),r="reverse",e.scrollLeft>0?r="default":(e.scrollLeft=1,0===e.scrollLeft&&(r="negative")),document.body.removeChild(e),r}function i(e,t){var n=e.scrollLeft;if("rtl"!==t)return n;switch(o()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}n.d(t,{E:function(){return o},T:function(){return i}})},377:function(e,t,n){"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:function(){return r}})},70838:function(e,t,n){"use strict";function r(e,t,n,r,o){return null}n.d(t,{Z:function(){return r}})},23487:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(11026),o=n(30303);function i(e){var t=e.controlled,n=e.default,i=(e.name,e.state,o.useRef(void 0!==t).current),a=o.useState(n),s=(0,r.Z)(a,2),l=s[0],c=s[1];return[i?t:l,o.useCallback((function(e){i||c(e)}),[])]}},66430:function(e,t,n){"use strict";var r=n(30303),o="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;t.Z=o},22270:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(30303),o=n(66430);function i(e){var t=r.useRef(e);return(0,o.Z)((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},86193:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(30303),o=n(377);function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useMemo((function(){return t.every((function(e){return null==e}))?null:function(e){t.forEach((function(t){(0,o.Z)(t,e)}))}}),t)}},29372:function(e,t,n){"use strict";var r;n.d(t,{Z:function(){return l}});var o=n(11026),i=n(30303),a=0;var s=(r||(r=n.t(i,2)))["useId".toString()];function l(e){if(void 0!==s){var t=s();return null!=e?e:t}return function(e){var t=i.useState(e),n=(0,o.Z)(t,2),r=n[0],s=n[1],l=e||r;return i.useEffect((function(){null==r&&s("mui-".concat(a+=1))}),[r]),l}(e)}},32911:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r,o=n(30303),i=!0,a=!1,s={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function l(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function c(){i=!1}function u(){"hidden"===this.visibilityState&&a&&(i=!0)}function d(e){var t=e.target;try{return t.matches(":focus-visible")}catch(n){}return i||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!s[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function p(){var e=o.useCallback((function(e){var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",l,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",u,!0))}),[]),t=o.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!d(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,window.clearTimeout(r),r=window.setTimeout((function(){a=!1}),100),t.current=!1,!0)},ref:e}}},21536:function(e,t,n){"use strict";var r=n(30303);t.Z=function(e){var t=r.useRef({});return r.useEffect((function(){t.current=e})),t.current}},7969:function(e,t){"use strict";t.Z={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"}},11587:function(e,t){"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen");function g(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case s:case a:case p:case f:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case m:case h:case l:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=d,t.Memo=h},76680:function(e,t,n){"use strict";e.exports=n(11587)},41104:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){"function"===typeof e?e(t):e&&(e.current=t)}},48467:function(e,t,n){"use strict";var r=n(40131).default;t.Z=function(e){var t=e.controlled,n=e.default,i=(e.name,e.state,o.useRef(void 0!==t).current),a=o.useState(n),s=r(a,2),l=s[0],c=s[1],u=i?t:l;0;var d=o.useCallback((function(e){i||c(e)}),[]);return[u,d]};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30303));function i(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}},99300:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30303));function o(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}var i="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;t.default=i},35915:function(e,t,n){"use strict";var r=n(73203);t.Z=function(e){var t=o.useRef(e);return(0,i.default)((function(){t.current=e})),o.useCallback((function(){return t.current.apply(void 0,arguments)}),[])};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(n(30303)),i=r(n(99300));function a(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}},76666:function(e,t,n){"use strict";var r=n(73203);t.Z=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.useMemo((function(){return t.every((function(e){return null==e}))?null:function(e){t.forEach((function(t){(0,i.default)(t,e)}))}}),t)};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(n(30303)),i=r(n(41104));function a(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}},31972:function(e,t,n){"use strict";var r=n(40131).default;t.Z=function(e){if(void 0!==s){var t=s();return null!=e?e:t}return function(e){var t=o.useState(e),n=r(t,2),i=n[0],s=n[1],l=e||i;return o.useEffect((function(){null==i&&s("mui-".concat(a+=1))}),[i]),l}(e)};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30303));function i(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}var a=0;var s=o["useId".toString()]},86171:function(e,t,n){"use strict";n.d(t,{kZ:function(){return w}});var r=n(23080),o=n(81075),i=n(3040),a=n(2452);var s=n(89204),l=n(65133),c=n(12013),u=n(23322),d=n(17462);function p(e,t,n){void 0===n&&(n=!1);var p=(0,a.Re)(t),f=(0,a.Re)(t)&&function(e){var t=e.getBoundingClientRect(),n=(0,d.NM)(t.width)/e.offsetWidth||1,r=(0,d.NM)(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),h=(0,c.Z)(t),m=(0,r.Z)(e,f,n),v={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(p||!p&&!n)&&(("body"!==(0,s.Z)(t)||(0,u.Z)(h))&&(v=function(e){return e!==(0,i.Z)(e)&&(0,a.Re)(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:(0,o.Z)(e);var t}(t)),(0,a.Re)(t)?((g=(0,r.Z)(t,!0)).x+=t.clientLeft,g.y+=t.clientTop):h&&(g.x=(0,l.Z)(h))),{x:m.left+v.scrollLeft-g.x,y:m.top+v.scrollTop-g.y,width:m.width,height:m.height}}var f=n(25180),h=n(92223),m=n(96788),v=n(41586);function g(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function y(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var b={placement:"bottom",modifiers:[],strategy:"absolute"};function x(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function w(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?b:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},b,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],l=!1,c={state:o,setOptions:function(n){var l="function"===typeof n?n(o.options):n;u(),o.options=Object.assign({},i,o.options,l),o.scrollParents={reference:(0,a.kK)(e)?(0,h.Z)(e):e.contextElement?(0,h.Z)(e.contextElement):[],popper:(0,h.Z)(t)};var d=function(e){var t=g(e);return v.xs.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,o.options.modifiers)));return o.orderedModifiers=d.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"===typeof i){var a=i({state:o,name:t,instance:c,options:r}),l=function(){};s.push(a||l)}})),c.update()},forceUpdate:function(){if(!l){var e=o.elements,t=e.reference,n=e.popper;if(x(t,n)){o.rects={reference:p(t,(0,m.Z)(n),"fixed"===o.options.strategy),popper:(0,f.Z)(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,s=i.options,u=void 0===s?{}:s,d=i.name;"function"===typeof a&&(o=a({state:o,options:u,name:d,instance:c})||o)}else o.reset=!1,r=-1}}},update:y((function(){return new Promise((function(e){c.forceUpdate(),e(o)}))})),destroy:function(){u(),l=!0}};if(!x(e,t))return c;function u(){s.forEach((function(e){return e()})),s=[]}return c.setOptions(n).then((function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}},46187:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(2452);function o(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&(0,r.Zq)(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}},23080:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(2452),o=n(17462),i=n(3040),a=n(61731);function s(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var s=e.getBoundingClientRect(),l=1,c=1;t&&(0,r.Re)(e)&&(l=e.offsetWidth>0&&(0,o.NM)(s.width)/e.offsetWidth||1,c=e.offsetHeight>0&&(0,o.NM)(s.height)/e.offsetHeight||1);var u=((0,r.kK)(e)?(0,i.Z)(e):window).visualViewport,d=!(0,a.Z)()&&n,p=(s.left+(d&&u?u.offsetLeft:0))/l,f=(s.top+(d&&u?u.offsetTop:0))/c,h=s.width/l,m=s.height/c;return{width:h,height:m,top:f,right:p+h,bottom:f+m,left:p,x:p,y:f}}},31407:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(3040);function o(e){return(0,r.Z)(e).getComputedStyle(e)}},12013:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(2452);function o(e){return(((0,r.kK)(e)?e.ownerDocument:e.document)||window.document).documentElement}},25180:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(23080);function o(e){var t=(0,r.Z)(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}},89204:function(e,t,n){"use strict";function r(e){return e?(e.nodeName||"").toLowerCase():null}n.d(t,{Z:function(){return r}})},96788:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(3040),o=n(89204),i=n(31407),a=n(2452);function s(e){return["table","td","th"].indexOf((0,o.Z)(e))>=0}var l=n(14793),c=n(87745);function u(e){return(0,a.Re)(e)&&"fixed"!==(0,i.Z)(e).position?e.offsetParent:null}function d(e){for(var t=(0,r.Z)(e),n=u(e);n&&s(n)&&"static"===(0,i.Z)(n).position;)n=u(n);return n&&("html"===(0,o.Z)(n)||"body"===(0,o.Z)(n)&&"static"===(0,i.Z)(n).position)?t:n||function(e){var t=/firefox/i.test((0,c.Z)());if(/Trident/i.test((0,c.Z)())&&(0,a.Re)(e)&&"fixed"===(0,i.Z)(e).position)return null;var n=(0,l.Z)(e);for((0,a.Zq)(n)&&(n=n.host);(0,a.Re)(n)&&["html","body"].indexOf((0,o.Z)(n))<0;){var r=(0,i.Z)(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}},14793:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(89204),o=n(12013),i=n(2452);function a(e){return"html"===(0,r.Z)(e)?e:e.assignedSlot||e.parentNode||((0,i.Zq)(e)?e.host:null)||(0,o.Z)(e)}},3040:function(e,t,n){"use strict";function r(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}n.d(t,{Z:function(){return r}})},81075:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(3040);function o(e){var t=(0,r.Z)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}},65133:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(23080),o=n(12013),i=n(81075);function a(e){return(0,r.Z)((0,o.Z)(e)).left+(0,i.Z)(e).scrollLeft}},2452:function(e,t,n){"use strict";n.d(t,{kK:function(){return o},Re:function(){return i},Zq:function(){return a}});var r=n(3040);function o(e){return e instanceof(0,r.Z)(e).Element||e instanceof Element}function i(e){return e instanceof(0,r.Z)(e).HTMLElement||e instanceof HTMLElement}function a(e){return"undefined"!==typeof ShadowRoot&&(e instanceof(0,r.Z)(e).ShadowRoot||e instanceof ShadowRoot)}},61731:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(87745);function o(){return!/^((?!chrome|android).)*safari/i.test((0,r.Z)())}},23322:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(31407);function o(e){var t=(0,r.Z)(e),n=t.overflow,o=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+o)}},92223:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(14793),o=n(23322),i=n(89204),a=n(2452);function s(e){return["html","body","#document"].indexOf((0,i.Z)(e))>=0?e.ownerDocument.body:(0,a.Re)(e)&&(0,o.Z)(e)?e:s((0,r.Z)(e))}var l=n(3040);function c(e,t){var n;void 0===t&&(t=[]);var i=s(e),a=i===(null==(n=e.ownerDocument)?void 0:n.body),u=(0,l.Z)(i),d=a?[u].concat(u.visualViewport||[],(0,o.Z)(i)?i:[]):i,p=t.concat(d);return a?p:p.concat(c((0,r.Z)(d)))}},41586:function(e,t,n){"use strict";n.d(t,{we:function(){return r},I:function(){return o},F2:function(){return i},t$:function(){return a},d7:function(){return s},mv:function(){return l},BL:function(){return c},ut:function(){return u},zV:function(){return d},Pj:function(){return p},k5:function(){return f},YP:function(){return h},bw:function(){return m},Ct:function(){return v},xs:function(){return g}});var r="top",o="bottom",i="right",a="left",s="auto",l=[r,o,i,a],c="start",u="end",d="clippingParents",p="viewport",f="popper",h="reference",m=l.reduce((function(e,t){return e.concat([t+"-"+c,t+"-"+u])}),[]),v=[].concat(l,[s]).reduce((function(e,t){return e.concat([t,t+"-"+c,t+"-"+u])}),[]),g=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"]},75444:function(e,t,n){"use strict";var r=n(89204),o=n(2452);t.Z={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},a=t.elements[e];(0,o.Re)(a)&&(0,r.Z)(a)&&(Object.assign(a.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?a.removeAttribute(e):a.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],a=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});(0,o.Re)(i)&&(0,r.Z)(i)&&(Object.assign(i.style,s),Object.keys(a).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]}},93414:function(e,t,n){"use strict";var r=n(69771),o=n(25180),i=n(46187),a=n(96788),s=n(85530),l=n(30951),c=n(76258),u=n(79923),d=n(41586);t.Z={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,p=e.options,f=n.elements.arrow,h=n.modifiersData.popperOffsets,m=(0,r.Z)(n.placement),v=(0,s.Z)(m),g=[d.t$,d.F2].indexOf(m)>=0?"height":"width";if(f&&h){var y=function(e,t){return e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,(0,c.Z)("number"!==typeof e?e:(0,u.Z)(e,d.mv))}(p.padding,n),b=(0,o.Z)(f),x="y"===v?d.we:d.t$,w="y"===v?d.I:d.F2,C=n.rects.reference[g]+n.rects.reference[v]-h[v]-n.rects.popper[g],j=h[v]-n.rects.reference[v],S=(0,a.Z)(f),k=S?"y"===v?S.clientHeight||0:S.clientWidth||0:0,Z=C/2-j/2,O=y[x],E=k-b[g]-y[w],D=k/2-b[g]/2+Z,P=(0,l.u)(O,D,E),A=v;n.modifiersData[i]=((t={})[A]=P,t.centerOffset=P-D,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&(0,i.Z)(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},88328:function(e,t,n){"use strict";var r=n(41586),o=n(96788),i=n(3040),a=n(12013),s=n(31407),l=n(69771),c=n(87751),u=n(17462),d={top:"auto",right:"auto",bottom:"auto",left:"auto"};function p(e){var t,n=e.popper,l=e.popperRect,c=e.placement,p=e.variation,f=e.offsets,h=e.position,m=e.gpuAcceleration,v=e.adaptive,g=e.roundOffsets,y=e.isFixed,b=f.x,x=void 0===b?0:b,w=f.y,C=void 0===w?0:w,j="function"===typeof g?g({x:x,y:C}):{x:x,y:C};x=j.x,C=j.y;var S=f.hasOwnProperty("x"),k=f.hasOwnProperty("y"),Z=r.t$,O=r.we,E=window;if(v){var D=(0,o.Z)(n),P="clientHeight",A="clientWidth";if(D===(0,i.Z)(n)&&(D=(0,a.Z)(n),"static"!==(0,s.Z)(D).position&&"absolute"===h&&(P="scrollHeight",A="scrollWidth")),D=D,c===r.we||(c===r.t$||c===r.F2)&&p===r.ut)O=r.I,C-=(y&&D===E&&E.visualViewport?E.visualViewport.height:D[P])-l.height,C*=m?1:-1;if(c===r.t$||(c===r.we||c===r.I)&&p===r.ut)Z=r.F2,x-=(y&&D===E&&E.visualViewport?E.visualViewport.width:D[A])-l.width,x*=m?1:-1}var M,T=Object.assign({position:h},v&&d),I=!0===g?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:(0,u.NM)(n*o)/o||0,y:(0,u.NM)(r*o)/o||0}}({x:x,y:C},(0,i.Z)(n)):{x:x,y:C};return x=I.x,C=I.y,m?Object.assign({},T,((M={})[O]=k?"0":"",M[Z]=S?"0":"",M.transform=(E.devicePixelRatio||1)<=1?"translate("+x+"px, "+C+"px)":"translate3d("+x+"px, "+C+"px, 0)",M)):Object.assign({},T,((t={})[O]=k?C+"px":"",t[Z]=S?x+"px":"",t.transform="",t))}t.Z={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,u=void 0===s||s,d={placement:(0,l.Z)(t.placement),variation:(0,c.Z)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,p(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,p(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}}},84858:function(e,t,n){"use strict";var r=n(3040),o={passive:!0};t.Z={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,a=i.scroll,s=void 0===a||a,l=i.resize,c=void 0===l||l,u=(0,r.Z)(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&d.forEach((function(e){e.addEventListener("scroll",n.update,o)})),c&&u.addEventListener("resize",n.update,o),function(){s&&d.forEach((function(e){e.removeEventListener("scroll",n.update,o)})),c&&u.removeEventListener("resize",n.update,o)}},data:{}}},54717:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r={left:"right",right:"left",bottom:"top",top:"bottom"};function o(e){return e.replace(/left|right|bottom|top/g,(function(e){return r[e]}))}var i=n(69771),a={start:"end",end:"start"};function s(e){return e.replace(/start|end/g,(function(e){return a[e]}))}var l=n(99778),c=n(87751),u=n(41586);var d={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,d=void 0===a||a,p=n.altAxis,f=void 0===p||p,h=n.fallbackPlacements,m=n.padding,v=n.boundary,g=n.rootBoundary,y=n.altBoundary,b=n.flipVariations,x=void 0===b||b,w=n.allowedAutoPlacements,C=t.options.placement,j=(0,i.Z)(C),S=h||(j===C||!x?[o(C)]:function(e){if((0,i.Z)(e)===u.d7)return[];var t=o(e);return[s(e),t,s(t)]}(C)),k=[C].concat(S).reduce((function(e,n){return e.concat((0,i.Z)(n)===u.d7?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,d=n.flipVariations,p=n.allowedAutoPlacements,f=void 0===p?u.Ct:p,h=(0,c.Z)(r),m=h?d?u.bw:u.bw.filter((function(e){return(0,c.Z)(e)===h})):u.mv,v=m.filter((function(e){return f.indexOf(e)>=0}));0===v.length&&(v=m);var g=v.reduce((function(t,n){return t[n]=(0,l.Z)(e,{placement:n,boundary:o,rootBoundary:a,padding:s})[(0,i.Z)(n)],t}),{});return Object.keys(g).sort((function(e,t){return g[e]-g[t]}))}(t,{placement:n,boundary:v,rootBoundary:g,padding:m,flipVariations:x,allowedAutoPlacements:w}):n)}),[]),Z=t.rects.reference,O=t.rects.popper,E=new Map,D=!0,P=k[0],A=0;A<k.length;A++){var M=k[A],T=(0,i.Z)(M),I=(0,c.Z)(M)===u.BL,R=[u.we,u.I].indexOf(T)>=0,F=R?"width":"height",B=(0,l.Z)(t,{placement:M,boundary:v,rootBoundary:g,altBoundary:y,padding:m}),L=R?I?u.F2:u.t$:I?u.I:u.we;Z[F]>O[F]&&(L=o(L));var N=o(L),_=[];if(d&&_.push(B[T]<=0),f&&_.push(B[L]<=0,B[N]<=0),_.every((function(e){return e}))){P=M,D=!1;break}E.set(M,_)}if(D)for(var z=function(e){var t=k.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return P=t,"break"},H=x?3:1;H>0;H--){if("break"===z(H))break}t.placement!==P&&(t.modifiersData[r]._skip=!0,t.placement=P,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}}},56795:function(e,t,n){"use strict";var r=n(41586),o=n(99778);function i(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function a(e){return[r.we,r.F2,r.I,r.t$].some((function(t){return e[t]>=0}))}t.Z={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,s=t.rects.popper,l=t.modifiersData.preventOverflow,c=(0,o.Z)(t,{elementContext:"reference"}),u=(0,o.Z)(t,{altBoundary:!0}),d=i(c,r),p=i(u,s,l),f=a(d),h=a(p);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:f,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}}},8064:function(e,t,n){"use strict";var r=n(69771),o=n(41586);t.Z={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,a=n.offset,s=void 0===a?[0,0]:a,l=o.Ct.reduce((function(e,n){return e[n]=function(e,t,n){var i=(0,r.Z)(e),a=[o.t$,o.we].indexOf(i)>=0?-1:1,s="function"===typeof n?n(Object.assign({},t,{placement:e})):n,l=s[0],c=s[1];return l=l||0,c=(c||0)*a,[o.t$,o.F2].indexOf(i)>=0?{x:c,y:l}:{x:l,y:c}}(n,t.rects,s),e}),{}),c=l[t.placement],u=c.x,d=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[i]=l}}},26095:function(e,t,n){"use strict";var r=n(86100);t.Z={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=(0,r.Z)({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}}},67015:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(41586),o=n(69771),i=n(85530);var a=n(30951),s=n(25180),l=n(96788),c=n(99778),u=n(87751),d=n(7193),p=n(17462);var f={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,f=e.name,h=n.mainAxis,m=void 0===h||h,v=n.altAxis,g=void 0!==v&&v,y=n.boundary,b=n.rootBoundary,x=n.altBoundary,w=n.padding,C=n.tether,j=void 0===C||C,S=n.tetherOffset,k=void 0===S?0:S,Z=(0,c.Z)(t,{boundary:y,rootBoundary:b,padding:w,altBoundary:x}),O=(0,o.Z)(t.placement),E=(0,u.Z)(t.placement),D=!E,P=(0,i.Z)(O),A="x"===P?"y":"x",M=t.modifiersData.popperOffsets,T=t.rects.reference,I=t.rects.popper,R="function"===typeof k?k(Object.assign({},t.rects,{placement:t.placement})):k,F="number"===typeof R?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(M){if(m){var N,_="y"===P?r.we:r.t$,z="y"===P?r.I:r.F2,H="y"===P?"height":"width",W=M[P],V=W+Z[_],U=W-Z[z],q=j?-I[H]/2:0,G=E===r.BL?T[H]:I[H],Y=E===r.BL?-I[H]:-T[H],K=t.elements.arrow,J=j&&K?(0,s.Z)(K):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,d.Z)(),Q=X[_],$=X[z],ee=(0,a.u)(0,T[H],J[H]),te=D?T[H]/2-q-ee-Q-F.mainAxis:G-ee-Q-F.mainAxis,ne=D?-T[H]/2+q+ee+$+F.mainAxis:Y+ee+$+F.mainAxis,re=t.elements.arrow&&(0,l.Z)(t.elements.arrow),oe=re?"y"===P?re.clientTop||0:re.clientLeft||0:0,ie=null!=(N=null==B?void 0:B[P])?N:0,ae=W+te-ie-oe,se=W+ne-ie,le=(0,a.u)(j?(0,p.VV)(V,ae):V,W,j?(0,p.Fp)(U,se):U);M[P]=le,L[P]=le-W}if(g){var ce,ue="x"===P?r.we:r.t$,de="x"===P?r.I:r.F2,pe=M[A],fe="y"===A?"height":"width",he=pe+Z[ue],me=pe-Z[de],ve=-1!==[r.we,r.t$].indexOf(O),ge=null!=(ce=null==B?void 0:B[A])?ce:0,ye=ve?he:pe-T[fe]-I[fe]-ge+F.altAxis,be=ve?pe+T[fe]+I[fe]-ge-F.altAxis:me,xe=j&&ve?(0,a.q)(ye,pe,be):(0,a.u)(j?ye:he,pe,j?be:me);M[A]=xe,L[A]=xe-pe}t.modifiersData[f]=L}},requiresIfExists:["offset"]}},99715:function(e,t,n){"use strict";n.d(t,{fi:function(){return h}});var r=n(86171),o=n(84858),i=n(26095),a=n(88328),s=n(75444),l=n(8064),c=n(54717),u=n(67015),d=n(93414),p=n(56795),f=[o.Z,i.Z,a.Z,s.Z,l.Z,c.Z,u.Z,d.Z,p.Z],h=(0,r.kZ)({defaultModifiers:f})},86100:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(69771),o=n(87751),i=n(85530),a=n(41586);function s(e){var t,n=e.reference,s=e.element,l=e.placement,c=l?(0,r.Z)(l):null,u=l?(0,o.Z)(l):null,d=n.x+n.width/2-s.width/2,p=n.y+n.height/2-s.height/2;switch(c){case a.we:t={x:d,y:n.y-s.height};break;case a.I:t={x:d,y:n.y+n.height};break;case a.F2:t={x:n.x+n.width,y:p};break;case a.t$:t={x:n.x-s.width,y:p};break;default:t={x:n.x,y:n.y}}var f=c?(0,i.Z)(c):null;if(null!=f){var h="y"===f?"height":"width";switch(u){case a.BL:t[f]=t[f]-(n[h]/2-s[h]/2);break;case a.ut:t[f]=t[f]+(n[h]/2-s[h]/2)}}return t}},99778:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(41586),o=n(3040),i=n(12013),a=n(65133),s=n(61731);var l=n(31407),c=n(81075),u=n(17462);var d=n(92223),p=n(96788),f=n(2452),h=n(23080),m=n(14793),v=n(46187),g=n(89204);function y(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function b(e,t,n){return t===r.Pj?y(function(e,t){var n=(0,o.Z)(e),r=(0,i.Z)(e),l=n.visualViewport,c=r.clientWidth,u=r.clientHeight,d=0,p=0;if(l){c=l.width,u=l.height;var f=(0,s.Z)();(f||!f&&"fixed"===t)&&(d=l.offsetLeft,p=l.offsetTop)}return{width:c,height:u,x:d+(0,a.Z)(e),y:p}}(e,n)):(0,f.kK)(t)?function(e,t){var n=(0,h.Z)(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):y(function(e){var t,n=(0,i.Z)(e),r=(0,c.Z)(e),o=null==(t=e.ownerDocument)?void 0:t.body,s=(0,u.Fp)(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),d=(0,u.Fp)(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),p=-r.scrollLeft+(0,a.Z)(e),f=-r.scrollTop;return"rtl"===(0,l.Z)(o||n).direction&&(p+=(0,u.Fp)(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:d,x:p,y:f}}((0,i.Z)(e)))}function x(e,t,n,r){var o="clippingParents"===t?function(e){var t=(0,d.Z)((0,m.Z)(e)),n=["absolute","fixed"].indexOf((0,l.Z)(e).position)>=0&&(0,f.Re)(e)?(0,p.Z)(e):e;return(0,f.kK)(n)?t.filter((function(e){return(0,f.kK)(e)&&(0,v.Z)(e,n)&&"body"!==(0,g.Z)(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=b(e,n,r);return t.top=(0,u.Fp)(o.top,t.top),t.right=(0,u.VV)(o.right,t.right),t.bottom=(0,u.VV)(o.bottom,t.bottom),t.left=(0,u.Fp)(o.left,t.left),t}),b(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}var w=n(86100),C=n(76258),j=n(79923);function S(e,t){void 0===t&&(t={});var n=t,o=n.placement,a=void 0===o?e.placement:o,s=n.strategy,l=void 0===s?e.strategy:s,c=n.boundary,u=void 0===c?r.zV:c,d=n.rootBoundary,p=void 0===d?r.Pj:d,m=n.elementContext,v=void 0===m?r.k5:m,g=n.altBoundary,b=void 0!==g&&g,S=n.padding,k=void 0===S?0:S,Z=(0,C.Z)("number"!==typeof k?k:(0,j.Z)(k,r.mv)),O=v===r.k5?r.YP:r.k5,E=e.rects.popper,D=e.elements[b?O:v],P=x((0,f.kK)(D)?D:D.contextElement||(0,i.Z)(e.elements.popper),u,p,l),A=(0,h.Z)(e.elements.reference),M=(0,w.Z)({reference:A,element:E,strategy:"absolute",placement:a}),T=y(Object.assign({},E,M)),I=v===r.k5?T:A,R={top:P.top-I.top+Z.top,bottom:I.bottom-P.bottom+Z.bottom,left:P.left-I.left+Z.left,right:I.right-P.right+Z.right},F=e.modifiersData.offset;if(v===r.k5&&F){var B=F[a];Object.keys(R).forEach((function(e){var t=[r.F2,r.I].indexOf(e)>=0?1:-1,n=[r.we,r.I].indexOf(e)>=0?"y":"x";R[e]+=B[n]*t}))}return R}},79923:function(e,t,n){"use strict";function r(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}n.d(t,{Z:function(){return r}})},69771:function(e,t,n){"use strict";function r(e){return e.split("-")[0]}n.d(t,{Z:function(){return r}})},7193:function(e,t,n){"use strict";function r(){return{top:0,right:0,bottom:0,left:0}}n.d(t,{Z:function(){return r}})},85530:function(e,t,n){"use strict";function r(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}n.d(t,{Z:function(){return r}})},87751:function(e,t,n){"use strict";function r(e){return e.split("-")[1]}n.d(t,{Z:function(){return r}})},17462:function(e,t,n){"use strict";n.d(t,{Fp:function(){return r},VV:function(){return o},NM:function(){return i}});var r=Math.max,o=Math.min,i=Math.round},76258:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7193);function o(e){return Object.assign({},(0,r.Z)(),e)}},87745:function(e,t,n){"use strict";function r(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}n.d(t,{Z:function(){return r}})},30951:function(e,t,n){"use strict";n.d(t,{u:function(){return o},q:function(){return i}});var r=n(17462);function o(e,t,n){return(0,r.Fp)(e,(0,r.VV)(t,n))}function i(e,t,n){var r=o(e,t,n);return r>n?n:r}},86950:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},21792:function(e,t,n){"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function o(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}n.r(t),n.d(t,{clsx:function(){return o}}),t.default=o},35339:function(e){var t={px:{px:1,cm:96/2.54,mm:96/25.4,in:96,pt:96/72,pc:16},cm:{px:2.54/96,cm:1,mm:.1,in:2.54,pt:2.54/72,pc:2.54/6},mm:{px:25.4/96,cm:10,mm:1,in:25.4,pt:25.4/72,pc:25.4/6},in:{px:1/96,cm:1/2.54,mm:1/25.4,in:1,pt:1/72,pc:1/6},pt:{px:.75,cm:72/2.54,mm:72/25.4,in:72,pt:1,pc:12},pc:{px:6/96,cm:6/2.54,mm:6/25.4,in:6,pt:6/72,pc:1},deg:{deg:1,grad:.9,rad:180/Math.PI,turn:360},grad:{deg:400/360,grad:1,rad:200/Math.PI,turn:400},rad:{deg:Math.PI/180,grad:Math.PI/200,rad:1,turn:2*Math.PI},turn:{deg:1/360,grad:1/400,rad:.5/Math.PI,turn:1},s:{s:1,ms:.001},ms:{s:1e3,ms:1},Hz:{Hz:1,kHz:1e3},kHz:{Hz:.001,kHz:1},dpi:{dpi:1,dpcm:1/2.54,dppx:1/96},dpcm:{dpi:2.54,dpcm:1,dppx:2.54/96},dppx:{dpi:96,dpcm:96/2.54,dppx:1}};e.exports=function(e,n,r,o){if(!t.hasOwnProperty(r))throw new Error("Cannot convert to "+r);if(!t[r].hasOwnProperty(n))throw new Error("Cannot convert from "+n+" to "+r);var i=t[r][n]*e;return!1!==o?(o=Math.pow(10,parseInt(o)||5),Math.round(i*o)/o):i}},14469:function(e,t,n){var r;!function(o){"use strict";var i,a=1e9,s={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},l=!0,c="[DecimalError] ",u=c+"Invalid argument: ",d=c+"Exponent out of range: ",p=Math.floor,f=Math.pow,h=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,m=1e7,v=9007199254740991,g=p(1286742750677284.5),y={};function b(e,t){var n,r,o,i,a,s,c,u,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),l?D(t,p):t;if(c=e.d,u=t.d,a=e.e,o=t.e,c=c.slice(),i=a-o){for(i<0?(r=c,i=-i,s=u.length):(r=u,o=a,s=c.length),i>(s=(a=Math.ceil(p/7))>s?a+1:s+1)&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((s=c.length)-(i=u.length)<0&&(i=s,r=u,u=c,c=r),n=0;i;)n=(c[--i]=c[i]+u[i]+n)/m|0,c[i]%=m;for(n&&(c.unshift(n),++o),s=c.length;0==c[--s];)c.pop();return t.d=c,t.e=o,l?D(t,p):t}function x(e,t,n){if(e!==~~e||e<t||e>n)throw Error(u+e)}function w(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)(n=7-(r=e[t]+"").length)&&(i+=Z(n)),i+=r;(n=7-(r=(a=e[t])+"").length)&&(i+=Z(n))}else if(0===a)return"0";for(;a%10===0;)a/=10;return i+a}y.absoluteValue=y.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},y.comparedTo=y.cmp=function(e){var t,n,r,o,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(t=0,n=(r=i.d.length)<(o=e.d.length)?r:o;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1},y.decimalPlaces=y.dp=function(){var e=this,t=e.d.length-1,n=7*(t-e.e);if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},y.dividedBy=y.div=function(e){return C(this,new this.constructor(e))},y.dividedToIntegerBy=y.idiv=function(e){var t=this.constructor;return D(C(this,new t(e),0,1),t.precision)},y.equals=y.eq=function(e){return!this.cmp(e)},y.exponent=function(){return S(this)},y.greaterThan=y.gt=function(e){return this.cmp(e)>0},y.greaterThanOrEqualTo=y.gte=function(e){return this.cmp(e)>=0},y.isInteger=y.isint=function(){return this.e>this.d.length-2},y.isNegative=y.isneg=function(){return this.s<0},y.isPositive=y.ispos=function(){return this.s>0},y.isZero=function(){return 0===this.s},y.lessThan=y.lt=function(e){return this.cmp(e)<0},y.lessThanOrEqualTo=y.lte=function(e){return this.cmp(e)<1},y.logarithm=y.log=function(e){var t,n=this,r=n.constructor,o=r.precision,a=o+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(i))throw Error(c+"NaN");if(n.s<1)throw Error(c+(n.s?"NaN":"-Infinity"));return n.eq(i)?new r(0):(l=!1,t=C(O(n,a),O(e,a),a),l=!0,D(t,o))},y.minus=y.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?P(t,e):b(t,(e.s=-e.s,e))},y.modulo=y.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(!(e=new r(e)).s)throw Error(c+"NaN");return n.s?(l=!1,t=C(n,e,0,1).times(e),l=!0,n.minus(t)):D(new r(n),o)},y.naturalExponential=y.exp=function(){return j(this)},y.naturalLogarithm=y.ln=function(){return O(this)},y.negated=y.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},y.plus=y.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?b(t,e):P(t,(e.s=-e.s,e))},y.precision=y.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(u+e);if(t=S(o)+1,n=7*(r=o.d.length-1)+1,r=o.d[r]){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},y.squareRoot=y.sqrt=function(){var e,t,n,r,o,i,a,s=this,u=s.constructor;if(s.s<1){if(!s.s)return new u(0);throw Error(c+"NaN")}for(e=S(s),l=!1,0==(o=Math.sqrt(+s))||o==1/0?(((t=w(s.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=p((e+1)/2)-(e<0||e%2),r=new u(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new u(o.toString()),o=a=(n=u.precision)+3;;)if(r=(i=r).plus(C(s,i,a+2)).times(.5),w(i.d).slice(0,a)===(t=w(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(D(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if("9999"!=t)break;a+=4}return l=!0,D(r,n)},y.times=y.mul=function(e){var t,n,r,o,i,a,s,c,u,d=this,p=d.constructor,f=d.d,h=(e=new p(e)).d;if(!d.s||!e.s)return new p(0);for(e.s*=d.s,n=d.e+e.e,(c=f.length)<(u=h.length)&&(i=f,f=h,h=i,a=c,c=u,u=a),i=[],r=a=c+u;r--;)i.push(0);for(r=u;--r>=0;){for(t=0,o=c+r;o>r;)s=i[o]+h[r]*f[o-r-1]+t,i[o--]=s%m|0,t=s/m|0;i[o]=(i[o]+t)%m|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,l?D(e,p.precision):e},y.toDecimalPlaces=y.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(x(e,0,a),void 0===t?t=r.rounding:x(t,0,8),D(n,e+S(n)+1,t))},y.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=A(r,!0):(x(e,0,a),void 0===t?t=o.rounding:x(t,0,8),n=A(r=D(new o(r),e+1,t),!0,e+1)),n},y.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?A(o):(x(e,0,a),void 0===t?t=i.rounding:x(t,0,8),n=A((r=D(new i(o),e+S(o)+1,t)).abs(),!1,e+S(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},y.toInteger=y.toint=function(){var e=this,t=e.constructor;return D(new t(e),S(e)+1,t.rounding)},y.toNumber=function(){return+this},y.toPower=y.pow=function(e){var t,n,r,o,a,s,u=this,d=u.constructor,f=+(e=new d(e));if(!e.s)return new d(i);if(!(u=new d(u)).s){if(e.s<1)throw Error(c+"Infinity");return u}if(u.eq(i))return u;if(r=d.precision,e.eq(i))return D(u,r);if(s=(t=e.e)>=(n=e.d.length-1),a=u.s,s){if((n=f<0?-f:f)<=v){for(o=new d(i),t=Math.ceil(r/7+4),l=!1;n%2&&M((o=o.times(u)).d,t),0!==(n=p(n/2));)M((u=u.times(u)).d,t);return l=!0,e.s<0?new d(i).div(o):D(o,r)}}else if(a<0)throw Error(c+"NaN");return a=a<0&&1&e.d[Math.max(t,n)]?-1:1,u.s=1,l=!1,o=e.times(O(u,r+12)),l=!0,(o=j(o)).s=a,o},y.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?r=A(o,(n=S(o))<=i.toExpNeg||n>=i.toExpPos):(x(e,1,a),void 0===t?t=i.rounding:x(t,0,8),r=A(o=D(new i(o),e,t),e<=(n=S(o))||n<=i.toExpNeg,e)),r},y.toSignificantDigits=y.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(x(e,1,a),void 0===t?t=n.rounding:x(t,0,8)),D(new n(this),e,t)},y.toString=y.valueOf=y.val=y.toJSON=function(){var e=this,t=S(e),n=e.constructor;return A(e,t<=n.toExpNeg||t>=n.toExpPos)};var C=function(){function e(e,t){var n,r=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+r,e[o]=n%m|0,r=n/m|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;o<n;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*m+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,o,i,a){var s,l,u,d,p,f,h,v,g,y,b,x,w,C,j,k,Z,O,E=r.constructor,P=r.s==o.s?1:-1,A=r.d,M=o.d;if(!r.s)return new E(r);if(!o.s)throw Error(c+"Division by zero");for(l=r.e-o.e,Z=M.length,j=A.length,v=(h=new E(P)).d=[],u=0;M[u]==(A[u]||0);)++u;if(M[u]>(A[u]||0)&&--l,(x=null==i?i=E.precision:a?i+(S(r)-S(o))+1:i)<0)return new E(0);if(x=x/7+2|0,u=0,1==Z)for(d=0,M=M[0],x++;(u<j||d)&&x--;u++)w=d*m+(A[u]||0),v[u]=w/M|0,d=w%M|0;else{for((d=m/(M[0]+1)|0)>1&&(M=e(M,d),A=e(A,d),Z=M.length,j=A.length),C=Z,y=(g=A.slice(0,Z)).length;y<Z;)g[y++]=0;(O=M.slice()).unshift(0),k=M[0],M[1]>=m/2&&++k;do{d=0,(s=t(M,g,Z,y))<0?(b=g[0],Z!=y&&(b=b*m+(g[1]||0)),(d=b/k|0)>1?(d>=m&&(d=m-1),1==(s=t(p=e(M,d),g,f=p.length,y=g.length))&&(d--,n(p,Z<f?O:M,f))):(0==d&&(s=d=1),p=M.slice()),(f=p.length)<y&&p.unshift(0),n(g,p,y),-1==s&&(s=t(M,g,Z,y=g.length))<1&&(d++,n(g,Z<y?O:M,y)),y=g.length):0===s&&(d++,g=[0]),v[u++]=d,s&&g[0]?g[y++]=A[C]||0:(g=[A[C]],y=1)}while((C++<j||void 0!==g[0])&&x--)}return v[0]||v.shift(),h.e=l,D(h,a?i+S(h)+1:i)}}();function j(e,t){var n,r,o,a,s,c=0,u=0,p=e.constructor,h=p.precision;if(S(e)>16)throw Error(d+S(e));if(!e.s)return new p(i);for(null==t?(l=!1,s=h):s=t,a=new p(.03125);e.abs().gte(.1);)e=e.times(a),u+=5;for(s+=Math.log(f(2,u))/Math.LN10*2+5|0,n=r=o=new p(i),p.precision=s;;){if(r=D(r.times(e),s),n=n.times(++c),w((a=o.plus(C(r,n,s))).d).slice(0,s)===w(o.d).slice(0,s)){for(;u--;)o=D(o.times(o),s);return p.precision=h,null==t?(l=!0,D(o,h)):o}o=a}}function S(e){for(var t=7*e.e,n=e.d[0];n>=10;n/=10)t++;return t}function k(e,t,n){if(t>e.LN10.sd())throw l=!0,n&&(e.precision=n),Error(c+"LN10 precision limit exceeded");return D(new e(e.LN10),t)}function Z(e){for(var t="";e--;)t+="0";return t}function O(e,t){var n,r,o,a,s,u,d,p,f,h=1,m=e,v=m.d,g=m.constructor,y=g.precision;if(m.s<1)throw Error(c+(m.s?"NaN":"-Infinity"));if(m.eq(i))return new g(0);if(null==t?(l=!1,p=y):p=t,m.eq(10))return null==t&&(l=!0),k(g,p);if(p+=10,g.precision=p,r=(n=w(v)).charAt(0),a=S(m),!(Math.abs(a)<15e14))return d=k(g,p+2,y).times(a+""),m=O(new g(r+"."+n.slice(1)),p-10).plus(d),g.precision=y,null==t?(l=!0,D(m,y)):m;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=w((m=m.times(e)).d)).charAt(0),h++;for(a=S(m),r>1?(m=new g("0."+n),a++):m=new g(r+"."+n.slice(1)),u=s=m=C(m.minus(i),m.plus(i),p),f=D(m.times(m),p),o=3;;){if(s=D(s.times(f),p),w((d=u.plus(C(s,new g(o),p))).d).slice(0,p)===w(u.d).slice(0,p))return u=u.times(2),0!==a&&(u=u.plus(k(g,p+2,y).times(a+""))),u=C(u,new g(h),p),g.precision=y,null==t?(l=!0,D(u,y)):u;u=d,o+=2}}function E(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,n=n-r-1,e.e=p(n/7),e.d=[],r=(n+1)%7,n<0&&(r+=7),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=7;r<o;)e.d.push(+t.slice(r,r+=7));r=7-(t=t.slice(r)).length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),l&&(e.e>g||e.e<-g))throw Error(d+n)}else e.s=0,e.e=0,e.d=[0];return e}function D(e,t,n){var r,o,i,a,s,c,u,h,v=e.d;for(a=1,i=v[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=7,o=t,u=v[h=0];else{if((h=Math.ceil((r+1)/7))>=(i=v.length))return e;for(u=i=v[h],a=1;i>=10;i/=10)a++;o=(r%=7)-7+a}if(void 0!==n&&(s=u/(i=f(10,a-o-1))%10|0,c=t<0||void 0!==v[h+1]||u%i,c=n<4?(s||c)&&(0==n||n==(e.s<0?3:2)):s>5||5==s&&(4==n||c||6==n&&(r>0?o>0?u/f(10,a-o):0:v[h-1])%10&1||n==(e.s<0?8:7))),t<1||!v[0])return c?(i=S(e),v.length=1,t=t-i-1,v[0]=f(10,(7-t%7)%7),e.e=p(-t/7)||0):(v.length=1,v[0]=e.e=e.s=0),e;if(0==r?(v.length=h,i=1,h--):(v.length=h+1,i=f(10,7-r),v[h]=o>0?(u/f(10,a-o)%f(10,o)|0)*i:0),c)for(;;){if(0==h){(v[0]+=i)==m&&(v[0]=1,++e.e);break}if(v[h]+=i,v[h]!=m)break;v[h--]=0,i=1}for(r=v.length;0===v[--r];)v.pop();if(l&&(e.e>g||e.e<-g))throw Error(d+S(e));return e}function P(e,t){var n,r,o,i,a,s,c,u,d,p,f=e.constructor,h=f.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new f(e),l?D(t,h):t;if(c=e.d,p=t.d,r=t.e,u=e.e,c=c.slice(),a=u-r){for((d=a<0)?(n=c,a=-a,s=p.length):(n=p,r=u,s=c.length),a>(o=Math.max(Math.ceil(h/7),s)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((d=(o=c.length)<(s=p.length))&&(s=o),o=0;o<s;o++)if(c[o]!=p[o]){d=c[o]<p[o];break}a=0}for(d&&(n=c,c=p,p=n,t.s=-t.s),s=c.length,o=p.length-s;o>0;--o)c[s++]=0;for(o=p.length;o>a;){if(c[--o]<p[o]){for(i=o;i&&0===c[--i];)c[i]=m-1;--c[i],c[o]+=m}c[o]-=p[o]}for(;0===c[--s];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(t.d=c,t.e=r,l?D(t,h):t):new f(0)}function A(e,t,n){var r,o=S(e),i=w(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+Z(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+Z(-o-1)+i,n&&(r=n-a)>0&&(i+=Z(r))):o>=a?(i+=Z(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+Z(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=Z(r))),e.s<0?"-"+i:i}function M(e,t){if(e.length>t)return e.length=t,!0}function T(e){if(!e||"object"!==typeof e)throw Error(c+"Object expected");var t,n,r,o=["precision",1,a,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if(void 0!==(r=e[n=o[t]])){if(!(p(r)===r&&r>=o[t+1]&&r<=o[t+2]))throw Error(u+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(u+n+": "+r);this[n]=new this(r)}return this}s=function e(t){var n,r,o;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"===typeof e){if(0*e!==0)throw Error(u+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):E(t,e.toString())}if("string"!==typeof e)throw Error(u+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!h.test(e))throw Error(u+e);E(t,e)}if(i.prototype=y,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=T,void 0===t&&(t={}),t)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<o.length;)t.hasOwnProperty(r=o[n++])||(t[r]=this[r]);return i.config(t),i}(s),s.default=s.Decimal=s,i=new s(1),void 0===(r=function(){return s}.call(t,n,t,e))||(e.exports=r)}()},60239:function(e){"use strict";var t=function(e){return function(e){return!!e&&"object"===typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(n){return!1}}function s(e,t,n){var o={};return n.isMergeableObject(e)&&i(e).forEach((function(t){o[t]=r(e[t],n)})),i(t).forEach((function(i){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(a(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"===typeof n?n:l}(i,n)(e[i],t[i],n):o[i]=r(t[i],n))})),o}function l(e,n,i){(i=i||{}).arrayMerge=i.arrayMerge||o,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=r;var a=Array.isArray(n);return a===Array.isArray(e)?a?i.arrayMerge(e,n,i):s(e,n,i):r(n,i)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var c=l;e.exports=c},19832:function(e,t,n){var r=n(68409),o=n(69763).each;function i(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var n=this;this.listener=function(e){n.mql=e.currentTarget||e,n.assess()},this.mql.addListener(this.listener)}i.prototype={constuctor:i,addHandler:function(e){var t=new r(e);this.handlers.push(t),this.matches()&&t.on()},removeHandler:function(e){var t=this.handlers;o(t,(function(n,r){if(n.equals(e))return n.destroy(),!t.splice(r,1)}))},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){o(this.handlers,(function(e){e.destroy()})),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";o(this.handlers,(function(t){t[e]()}))}},e.exports=i},54219:function(e,t,n){var r=n(19832),o=n(69763),i=o.each,a=o.isFunction,s=o.isArray;function l(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}l.prototype={constructor:l,register:function(e,t,n){var o=this.queries,l=n&&this.browserIsIncapable;return o[e]||(o[e]=new r(e,l)),a(t)&&(t={match:t}),s(t)||(t=[t]),i(t,(function(t){a(t)&&(t={match:t}),o[e].addHandler(t)})),this},unregister:function(e,t){var n=this.queries[e];return n&&(t?n.removeHandler(t):(n.clear(),delete this.queries[e])),this}},e.exports=l},68409:function(e){function t(e){this.options=e,!e.deferSetup&&this.setup()}t.prototype={constructor:t,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},e.exports=t},69763:function(e){e.exports={isFunction:function(e){return"function"===typeof e},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},each:function(e,t){for(var n=0,r=e.length;n<r&&!1!==t(e[n],n);n++);}}},57479:function(e,t,n){var r=n(54219);e.exports=new r},90176:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!==typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||e,a),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function a(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,i,a){var s=n?n+e:e;if(!this._events[s])return!1;var l,c,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,o),!0;case 5:return u.fn.call(u.context,t,r,o,i),!0;case 6:return u.fn.call(u.context,t,r,o,i,a),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var p,f=u.length;for(c=0;c<f;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,r);break;case 4:u[c].fn.call(u[c].context,t,r,o);break;default:if(!l)for(p=1,l=new Array(d-1);p<d;p++)l[p-1]=arguments[p];u[c].fn.apply(u[c].context,l)}}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==t||o&&!s[l].once||r&&s[l].context!==r)&&c.push(s[l]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s},7035:function(e,t,n){var r;!function(){"use strict";var o=!("undefined"===typeof window||!window.document||!window.document.createElement),i={canUseDOM:o,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen};void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}()},41384:function(e,t){!function(e){"use strict";function t(e){return function(t,n,r,o,i,a,s){return e(t,n,s)}}function n(e){return function(t,n,r,o){if(!t||!n||"object"!==typeof t||"object"!==typeof n)return e(t,n,r,o);var i=o.get(t),a=o.get(n);if(i&&a)return i===n&&a===t;o.set(t,n),o.set(n,t);var s=e(t,n,r,o);return o.delete(t),o.delete(n),s}}function r(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n}function o(e){return e.constructor===Object||null==e.constructor}function i(e){return"function"===typeof e.then}function a(e,t){return e===t||e!==e&&t!==t}var s="[object Arguments]",l="[object Boolean]",c="[object Date]",u="[object RegExp]",d="[object Map]",p="[object Number]",f="[object Object]",h="[object Set]",m="[object String]",v=Object.prototype.toString;function g(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,g=e.areObjectsEqual,y=e.areRegExpsEqual,b=e.areSetsEqual,x=(0,e.createIsNestedEqual)(w);function w(e,w,C){if(e===w)return!0;if(!e||!w||"object"!==typeof e||"object"!==typeof w)return e!==e&&w!==w;if(o(e)&&o(w))return g(e,w,x,C);var j=Array.isArray(e),S=Array.isArray(w);if(j||S)return j===S&&t(e,w,x,C);var k=v.call(e);return k===v.call(w)&&(k===c?n(e,w,x,C):k===u?y(e,w,x,C):k===d?r(e,w,x,C):k===h?b(e,w,x,C):k===f||k===s?!i(e)&&!i(w)&&g(e,w,x,C):(k===l||k===p||k===m)&&a(e.valueOf(),w.valueOf()))}return w}function y(e,t,n,r){var o=e.length;if(t.length!==o)return!1;for(;o-- >0;)if(!n(e[o],t[o],o,o,e,t,r))return!1;return!0}var b=n(y);function x(e,t){return a(e.valueOf(),t.valueOf())}function w(e,t,n,r){var o=e.size===t.size;if(!o)return!1;if(!e.size)return!0;var i={},a=0;return e.forEach((function(s,l){if(o){var c=!1,u=0;t.forEach((function(o,d){c||i[u]||!(c=n(l,d,a,u,e,t,r)&&n(s,o,l,d,e,t,r))||(i[u]=!0),u++})),a++,o=c}})),o}var C=n(w),j="_owner",S=Object.prototype.hasOwnProperty;function k(e,t,n,r){var o,i=Object.keys(e),a=i.length;if(Object.keys(t).length!==a)return!1;for(;a-- >0;){if((o=i[a])===j){var s=!!e.$$typeof,l=!!t.$$typeof;if((s||l)&&s!==l)return!1}if(!S.call(t,o)||!n(e[o],t[o],o,o,e,t,r))return!1}return!0}var Z=n(k);function O(e,t){return e.source===t.source&&e.flags===t.flags}function E(e,t,n,r){var o=e.size===t.size;if(!o)return!1;if(!e.size)return!0;var i={};return e.forEach((function(a,s){if(o){var l=!1,c=0;t.forEach((function(o,u){l||i[c]||!(l=n(a,o,s,u,e,t,r))||(i[c]=!0),c++})),o=l}})),o}var D=n(E),P=Object.freeze({areArraysEqual:y,areDatesEqual:x,areMapsEqual:w,areObjectsEqual:k,areRegExpsEqual:O,areSetsEqual:E,createIsNestedEqual:t}),A=Object.freeze({areArraysEqual:b,areDatesEqual:x,areMapsEqual:C,areObjectsEqual:Z,areRegExpsEqual:O,areSetsEqual:D,createIsNestedEqual:t}),M=g(P);function T(e,t){return M(e,t,void 0)}var I=g(r(P,{createIsNestedEqual:function(){return a}}));function R(e,t){return I(e,t,void 0)}var F=g(A);function B(e,t){return F(e,t,new WeakMap)}var L=g(r(A,{createIsNestedEqual:function(){return a}}));function N(e,t){return L(e,t,new WeakMap)}function _(e){return g(r(P,e(P)))}function z(e){var t=g(r(A,e(A)));return function(e,n,r){return void 0===r&&(r=new WeakMap),t(e,n,r)}}e.circularDeepEqual=B,e.circularShallowEqual=N,e.createCustomCircularEqual=z,e.createCustomEqual=_,e.deepEqual=T,e.sameValueZeroEqual=a,e.shallowEqual=R,Object.defineProperty(e,"__esModule",{value:!0})}(t)},20703:function(e,t,n){"use strict";var r=n(61983),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var o=f(n);o&&o!==h&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),v=0;v<a.length;++v){var g=a[v];if(!i[g]&&(!r||!r[g])&&(!m||!m[g])&&(!s||!s[g])){var y=p(n,g);try{c(t,g,y)}catch(b){}}}}return t}},3095:function(e){"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},17519:function(e,t,n){var r=n(34877),o=function(e){var t="",n=Object.keys(e);return n.forEach((function(o,i){var a=e[o];(function(e){return/[height|width]$/.test(e)})(o=r(o))&&"number"===typeof a&&(a+="px"),t+=!0===a?o:!1===a?"not "+o:"("+o+": "+a+")",i<n.length-1&&(t+=" and ")})),t};e.exports=function(e){var t="";return"string"===typeof e?e:e instanceof Array?(e.forEach((function(n,r){t+=o(n),r<e.length-1&&(t+=", ")})),t):o(e)}},61572:function(e,t,n){var r=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt,l="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),d=Object.prototype.toString,p=Math.max,f=Math.min,h=function(){return u.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=i.test(e);return n||a.test(e)?s(e.slice(2),n?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,i,a,s,l,c=0,u=!1,d=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function b(e){return c=e,s=setTimeout(w,t),u?y(e):a}function x(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=i}function w(){var e=h();if(x(e))return C(e);s=setTimeout(w,function(e){var n=t-(e-l);return d?f(n,i-(e-c)):n}(e))}function C(e){return s=void 0,g&&r?y(e):(r=o=void 0,a)}function j(){var e=h(),n=x(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return b(l);if(d)return s=setTimeout(w,t),y(l)}return void 0===s&&(s=setTimeout(w,t)),a}return t=v(t)||0,m(n)&&(u=!!n.leading,i=(d="maxWait"in n)?p(v(n.maxWait)||0,t):i,g="trailing"in n?!!n.trailing:g),j.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},j.flush=function(){return void 0===s?a:C(h())},j}},75434:function(e,t,n){var r=n(74358)(n(5897),"DataView");e.exports=r},14336:function(e,t,n){var r=n(55484),o=n(38833),i=n(27713),a=n(37528),s=n(79241);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},70492:function(e,t,n){var r=n(65305),o=n(81204),i=n(54586),a=n(20725),s=n(54002);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},49234:function(e,t,n){var r=n(74358)(n(5897),"Map");e.exports=r},25591:function(e,t,n){var r=n(62643),o=n(46332),i=n(5952),a=n(89003),s=n(46461);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},49407:function(e,t,n){var r=n(74358)(n(5897),"Promise");e.exports=r},58935:function(e,t,n){var r=n(74358)(n(5897),"Set");e.exports=r},44754:function(e,t,n){var r=n(25591),o=n(73061),i=n(61515);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},78248:function(e,t,n){var r=n(70492),o=n(98718),i=n(55104),a=n(75104),s=n(28864),l=n(74665);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},30145:function(e,t,n){var r=n(5897).Symbol;e.exports=r},93618:function(e,t,n){var r=n(5897).Uint8Array;e.exports=r},45031:function(e,t,n){var r=n(74358)(n(5897),"WeakMap");e.exports=r},90293:function(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},56237:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}},81350:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},66292:function(e,t,n){var r=n(57006);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},11207:function(e){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},19726:function(e,t,n){var r=n(61758),o=n(85616),i=n(24460),a=n(74069),s=n(43452),l=n(89509),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&o(e),d=!n&&!u&&a(e),p=!n&&!u&&!d&&l(e),f=n||u||d||p,h=f?r(e.length,String):[],m=h.length;for(var v in e)!t&&!c.call(e,v)||f&&("length"==v||d&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,m))||h.push(v);return h}},55736:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},71223:function(e){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},40391:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},84594:function(e){e.exports=function(e){return e.split("")}},74111:function(e,t,n){var r=n(13239);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},3730:function(e,t,n){var r=n(96160);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},68027:function(e,t,n){var r=n(67030),o=n(56811)(r);e.exports=o},32205:function(e,t,n){var r=n(68027);e.exports=function(e,t){var n=!0;return r(e,(function(e,r,o){return n=!!t(e,r,o)})),n}},42437:function(e,t,n){var r=n(61784);e.exports=function(e,t,n){for(var o=-1,i=e.length;++o<i;){var a=e[o],s=t(a);if(null!=s&&(void 0===l?s===s&&!r(s):n(s,l)))var l=s,c=a}return c}},14312:function(e){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},25248:function(e,t,n){var r=n(71223),o=n(75478);e.exports=function e(t,n,i,a,s){var l=-1,c=t.length;for(i||(i=o),s||(s=[]);++l<c;){var u=t[l];n>0&&i(u)?n>1?e(u,n-1,i,a,s):r(s,u):a||(s[s.length]=u)}return s}},64172:function(e,t,n){var r=n(9937)();e.exports=r},67030:function(e,t,n){var r=n(64172),o=n(1164);e.exports=function(e,t){return e&&r(e,t,o)}},13365:function(e,t,n){var r=n(35465),o=n(64290);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},44805:function(e,t,n){var r=n(71223),o=n(24460);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},79860:function(e,t,n){var r=n(30145),o=n(4566),i=n(51273),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},87200:function(e){e.exports=function(e,t){return e>t}},26930:function(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},57006:function(e,t,n){var r=n(14312),o=n(61566),i=n(8850);e.exports=function(e,t,n){return t===t?i(e,t,n):r(e,o,n)}},88674:function(e,t,n){var r=n(79860),o=n(23105);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},97300:function(e,t,n){var r=n(87172),o=n(23105);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!==t&&n!==n:r(t,n,i,a,e,s))}},87172:function(e,t,n){var r=n(78248),o=n(72031),i=n(15250),a=n(66760),s=n(62626),l=n(24460),c=n(74069),u=n(89509),d="[object Arguments]",p="[object Array]",f="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,v,g){var y=l(e),b=l(t),x=y?p:s(e),w=b?p:s(t),C=(x=x==d?f:x)==f,j=(w=w==d?f:w)==f,S=x==w;if(S&&c(e)){if(!c(t))return!1;y=!0,C=!1}if(S&&!C)return g||(g=new r),y||u(e)?o(e,t,n,m,v,g):i(e,t,x,n,m,v,g);if(!(1&n)){var k=C&&h.call(e,"__wrapped__"),Z=j&&h.call(t,"__wrapped__");if(k||Z){var O=k?e.value():e,E=Z?t.value():t;return g||(g=new r),v(O,E,n,m,g)}}return!!S&&(g||(g=new r),a(e,t,n,m,v,g))}},84347:function(e,t,n){var r=n(78248),o=n(97300);e.exports=function(e,t,n,i){var a=n.length,s=a,l=!i;if(null==e)return!s;for(e=Object(e);a--;){var c=n[a];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var u=(c=n[a])[0],d=e[u],p=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var f=new r;if(i)var h=i(d,p,u,e,t,f);if(!(void 0===h?o(p,d,3,i,f):h))return!1}}return!0}},61566:function(e){e.exports=function(e){return e!==e}},15389:function(e,t,n){var r=n(78523),o=n(86891),i=n(83838),a=n(61289),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?p:s).test(a(e))}},83771:function(e,t,n){var r=n(79860),o=n(475),i=n(23105),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},29948:function(e,t,n){var r=n(5230),o=n(25037),i=n(86507),a=n(24460),s=n(89540);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):s(e)}},37431:function(e,t,n){var r=n(80359),o=n(30005),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},12504:function(e){e.exports=function(e,t){return e<t}},77136:function(e,t,n){var r=n(68027),o=n(90065);e.exports=function(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}},5230:function(e,t,n){var r=n(84347),o=n(38887),i=n(29370);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},25037:function(e,t,n){var r=n(97300),o=n(76865),i=n(35681),a=n(75290),s=n(23789),l=n(29370),c=n(64290);e.exports=function(e,t){return a(e)&&s(t)?l(c(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},81216:function(e,t,n){var r=n(55736),o=n(13365),i=n(29948),a=n(77136),s=n(71263),l=n(94396),c=n(66433),u=n(86507),d=n(24460);e.exports=function(e,t,n){t=t.length?r(t,(function(e){return d(e)?function(t){return o(t,1===e.length?e[0]:e)}:e})):[u];var p=-1;t=r(t,l(i));var f=a(e,(function(e,n,o){return{criteria:r(t,(function(t){return t(e)})),index:++p,value:e}}));return s(f,(function(e,t){return c(e,t,n)}))}},14239:function(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},2199:function(e,t,n){var r=n(13365);e.exports=function(e){return function(t){return r(t,e)}}},18358:function(e){var t=Math.ceil,n=Math.max;e.exports=function(e,r,o,i){for(var a=-1,s=n(t((r-e)/(o||1)),0),l=Array(s);s--;)l[i?s:++a]=e,e+=o;return l}},17788:function(e,t,n){var r=n(86507),o=n(17179),i=n(36784);e.exports=function(e,t){return i(o(e,t,r),e+"")}},85130:function(e,t,n){var r=n(82103),o=n(96160),i=n(86507),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},16292:function(e){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},48471:function(e,t,n){var r=n(68027);e.exports=function(e,t){var n;return r(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}},71263:function(e){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},61758:function(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},23035:function(e,t,n){var r=n(30145),o=n(55736),i=n(24460),a=n(61784),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}},96218:function(e,t,n){var r=n(21007),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},94396:function(e){e.exports=function(e){return function(t){return e(t)}}},44027:function(e,t,n){var r=n(44754),o=n(66292),i=n(11207),a=n(17696),s=n(75335),l=n(15379);e.exports=function(e,t,n){var c=-1,u=o,d=e.length,p=!0,f=[],h=f;if(n)p=!1,u=i;else if(d>=200){var m=t?null:s(e);if(m)return l(m);p=!1,u=a,h=new r}else h=t?[]:f;e:for(;++c<d;){var v=e[c],g=t?t(v):v;if(v=n||0!==v?v:0,p&&g===g){for(var y=h.length;y--;)if(h[y]===g)continue e;t&&h.push(g),f.push(v)}else u(h,g,n)||(h!==f&&h.push(g),f.push(v))}return f}},17696:function(e){e.exports=function(e,t){return e.has(t)}},35465:function(e,t,n){var r=n(24460),o=n(75290),i=n(56124),a=n(47886);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},22104:function(e,t,n){var r=n(16292);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},23186:function(e,t,n){var r=n(61784);e.exports=function(e,t){if(e!==t){var n=void 0!==e,o=null===e,i=e===e,a=r(e),s=void 0!==t,l=null===t,c=t===t,u=r(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||o&&s&&c||!n&&c||!i)return 1;if(!o&&!a&&!u&&e<t||u&&n&&i&&!o&&!a||l&&n&&i||!s&&i||!c)return-1}return 0}},66433:function(e,t,n){var r=n(23186);e.exports=function(e,t,n){for(var o=-1,i=e.criteria,a=t.criteria,s=i.length,l=n.length;++o<s;){var c=r(i[o],a[o]);if(c)return o>=l?c:c*("desc"==n[o]?-1:1)}return e.index-t.index}},24391:function(e,t,n){var r=n(5897)["__core-js_shared__"];e.exports=r},56811:function(e,t,n){var r=n(90065);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&!1!==o(s[a],a,s););return n}}},9937:function(e){e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}},87820:function(e,t,n){var r=n(22104),o=n(33007),i=n(28708),a=n(47886);e.exports=function(e){return function(t){t=a(t);var n=o(t)?i(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}},43610:function(e,t,n){var r=n(29948),o=n(90065),i=n(1164);e.exports=function(e){return function(t,n,a){var s=Object(t);if(!o(t)){var l=r(n,3);t=i(t),n=function(e){return l(s[e],e,s)}}var c=e(t,n,a);return c>-1?s[l?t[c]:c]:void 0}}},49614:function(e,t,n){var r=n(18358),o=n(16794),i=n(97259);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&o(t,n,a)&&(n=a=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),a=void 0===a?t<n?1:-1:i(a),r(t,n,a,e)}}},75335:function(e,t,n){var r=n(58935),o=n(79984),i=n(15379),a=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=a},96160:function(e,t,n){var r=n(74358),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},72031:function(e,t,n){var r=n(44754),o=n(40391),i=n(17696);e.exports=function(e,t,n,a,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var p=l.get(e),f=l.get(t);if(p&&f)return p==t&&f==e;var h=-1,m=!0,v=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++h<u;){var g=e[h],y=t[h];if(a)var b=c?a(y,g,h,t,e,l):a(g,y,h,e,t,l);if(void 0!==b){if(b)continue;m=!1;break}if(v){if(!o(t,(function(e,t){if(!i(v,t)&&(g===e||s(g,e,n,a,l)))return v.push(t)}))){m=!1;break}}else if(g!==y&&!s(g,y,n,a,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},15250:function(e,t,n){var r=n(30145),o=n(93618),i=n(13239),a=n(72031),s=n(26259),l=n(15379),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=s;case"[object Set]":var h=1&r;if(f||(f=l),e.size!=t.size&&!h)return!1;var m=p.get(e);if(m)return m==t;r|=2,p.set(e,t);var v=a(f(e),f(t),r,c,d,p);return p.delete(e),v;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},66760:function(e,t,n){var r=n(17889),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var p=c[d];if(!(l?p in t:o.call(t,p)))return!1}var f=s.get(e),h=s.get(t);if(f&&h)return f==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var v=l;++d<u;){var g=e[p=c[d]],y=t[p];if(i)var b=l?i(y,g,p,t,e,s):i(g,y,p,e,t,s);if(!(void 0===b?g===y||a(g,y,n,i,s):b)){m=!1;break}v||(v="constructor"==p)}if(m&&!v){var x=e.constructor,w=t.constructor;x==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(m=!1)}return s.delete(e),s.delete(t),m}},97552:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},17889:function(e,t,n){var r=n(44805),o=n(60146),i=n(1164);e.exports=function(e){return r(e,i,o)}},24423:function(e,t,n){var r=n(70447);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},38887:function(e,t,n){var r=n(23789),o=n(1164);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},74358:function(e,t,n){var r=n(15389),o=n(76600);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},4566:function(e,t,n){var r=n(30145),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},60146:function(e,t,n){var r=n(81350),o=n(13263),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},62626:function(e,t,n){var r=n(75434),o=n(49234),i=n(49407),a=n(58935),s=n(45031),l=n(79860),c=n(61289),u="[object Map]",d="[object Promise]",p="[object Set]",f="[object WeakMap]",h="[object DataView]",m=c(r),v=c(o),g=c(i),y=c(a),b=c(s),x=l;(r&&x(new r(new ArrayBuffer(1)))!=h||o&&x(new o)!=u||i&&x(i.resolve())!=d||a&&x(new a)!=p||s&&x(new s)!=f)&&(x=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case m:return h;case v:return u;case g:return d;case y:return p;case b:return f}return t}),e.exports=x},76600:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},21020:function(e,t,n){var r=n(35465),o=n(85616),i=n(24460),a=n(43452),s=n(475),l=n(64290);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var p=l(t[c]);if(!(d=null!=e&&n(e,p)))break;e=e[p]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(p,u)&&(i(e)||o(e))}},33007:function(e){var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},55484:function(e,t,n){var r=n(19433);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},38833:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},27713:function(e,t,n){var r=n(19433),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},37528:function(e,t,n){var r=n(19433),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},79241:function(e,t,n){var r=n(19433);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},75478:function(e,t,n){var r=n(30145),o=n(85616),i=n(24460),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},43452:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},16794:function(e,t,n){var r=n(13239),o=n(90065),i=n(43452),a=n(83838);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},75290:function(e,t,n){var r=n(24460),o=n(61784),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},70447:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},86891:function(e,t,n){var r=n(24391),o=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},80359:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},23789:function(e,t,n){var r=n(83838);e.exports=function(e){return e===e&&!r(e)}},65305:function(e){e.exports=function(){this.__data__=[],this.size=0}},81204:function(e,t,n){var r=n(74111),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},54586:function(e,t,n){var r=n(74111);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},20725:function(e,t,n){var r=n(74111);e.exports=function(e){return r(this.__data__,e)>-1}},54002:function(e,t,n){var r=n(74111);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}},62643:function(e,t,n){var r=n(14336),o=n(70492),i=n(49234);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},46332:function(e,t,n){var r=n(24423);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},5952:function(e,t,n){var r=n(24423);e.exports=function(e){return r(this,e).get(e)}},89003:function(e,t,n){var r=n(24423);e.exports=function(e){return r(this,e).has(e)}},46461:function(e,t,n){var r=n(24423);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}},26259:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},29370:function(e){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},65097:function(e,t,n){var r=n(97009);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},19433:function(e,t,n){var r=n(74358)(Object,"create");e.exports=r},30005:function(e,t,n){var r=n(6062)(Object.keys,Object);e.exports=r},30779:function(e,t,n){e=n.nmd(e);var r=n(97552),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s},51273:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},6062:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},17179:function(e,t,n){var r=n(90293),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);++a<s;)l[a]=i[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=i[a];return c[t]=n(l),r(e,this,c)}}},5897:function(e,t,n){var r=n(97552),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},73061:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},61515:function(e){e.exports=function(e){return this.__data__.has(e)}},15379:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},36784:function(e,t,n){var r=n(85130),o=n(74728)(r);e.exports=o},74728:function(e){var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var o=t(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},98718:function(e,t,n){var r=n(70492);e.exports=function(){this.__data__=new r,this.size=0}},55104:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},75104:function(e){e.exports=function(e){return this.__data__.get(e)}},28864:function(e){e.exports=function(e){return this.__data__.has(e)}},74665:function(e,t,n){var r=n(70492),o=n(49234),i=n(25591);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}},8850:function(e){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},28708:function(e,t,n){var r=n(84594),o=n(33007),i=n(57600);e.exports=function(e){return o(e)?i(e):r(e)}},56124:function(e,t,n){var r=n(65097),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},64290:function(e,t,n){var r=n(61784);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},61289: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""}},21007:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},57600:function(e){var t="[\\ud800-\\udfff]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",o="[^\\ud800-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+n+"|"+r+")"+"?",l="[\\ufe0e\\ufe0f]?",c=l+s+("(?:\\u200d(?:"+[o,i,a].join("|")+")"+l+s+")*"),u="(?:"+[o+n+"?",n,i,a,t].join("|")+")",d=RegExp(r+"(?="+r+")|"+u+c,"g");e.exports=function(e){return e.match(d)||[]}},82103:function(e){e.exports=function(e){return function(){return e}}},90131:function(e,t,n){var r=n(83838),o=n(98171),i=n(98565),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,d,p,f,h=0,m=!1,v=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=c;return l=c=void 0,h=t,d=e.apply(r,n)}function b(e){return h=e,p=setTimeout(w,t),m?y(e):d}function x(e){var n=e-f;return void 0===f||n>=t||n<0||v&&e-h>=u}function w(){var e=o();if(x(e))return C(e);p=setTimeout(w,function(e){var n=t-(e-f);return v?s(n,u-(e-h)):n}(e))}function C(e){return p=void 0,g&&l?y(e):(l=c=void 0,d)}function j(){var e=o(),n=x(e);if(l=arguments,c=this,f=e,n){if(void 0===p)return b(f);if(v)return clearTimeout(p),p=setTimeout(w,t),y(f)}return void 0===p&&(p=setTimeout(w,t)),d}return t=i(t)||0,r(n)&&(m=!!n.leading,u=(v="maxWait"in n)?a(i(n.maxWait)||0,t):u,g="trailing"in n?!!n.trailing:g),j.cancel=function(){void 0!==p&&clearTimeout(p),h=0,l=f=c=p=void 0},j.flush=function(){return void 0===p?d:C(o())},j}},13239:function(e){e.exports=function(e,t){return e===t||e!==e&&t!==t}},33294:function(e,t,n){var r=n(56237),o=n(32205),i=n(29948),a=n(24460),s=n(16794);e.exports=function(e,t,n){var l=a(e)?r:o;return n&&s(e,t,n)&&(t=void 0),l(e,i(t,3))}},82386:function(e,t,n){var r=n(43610)(n(41147));e.exports=r},41147:function(e,t,n){var r=n(14312),o=n(29948),i=n(61926),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var l=null==n?0:i(n);return l<0&&(l=a(s+l,0)),r(e,o(t,3),l)}},25093:function(e,t,n){var r=n(25248),o=n(85695);e.exports=function(e,t){return r(o(e,t),1)}},76865:function(e,t,n){var r=n(13365);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},35681:function(e,t,n){var r=n(26930),o=n(21020);e.exports=function(e,t){return null!=e&&o(e,t,r)}},86507:function(e){e.exports=function(e){return e}},85616:function(e,t,n){var r=n(88674),o=n(23105),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},24460:function(e){var t=Array.isArray;e.exports=t},90065:function(e,t,n){var r=n(78523),o=n(475);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},83760:function(e,t,n){var r=n(79860),o=n(23105);e.exports=function(e){return!0===e||!1===e||o(e)&&"[object Boolean]"==r(e)}},74069:function(e,t,n){e=n.nmd(e);var r=n(5897),o=n(53349),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},79122:function(e,t,n){var r=n(97300);e.exports=function(e,t){return r(e,t)}},78523:function(e,t,n){var r=n(79860),o=n(83838);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}},475:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},75821:function(e,t,n){var r=n(85078);e.exports=function(e){return r(e)&&e!=+e}},83587:function(e){e.exports=function(e){return null==e}},85078:function(e,t,n){var r=n(79860),o=n(23105);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==r(e)}},83838:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},23105:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},59588:function(e,t,n){var r=n(79860),o=n(24460),i=n(23105);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},61784:function(e,t,n){var r=n(79860),o=n(23105);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},89509:function(e,t,n){var r=n(83771),o=n(94396),i=n(30779),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},1164:function(e,t,n){var r=n(19726),o=n(37431),i=n(90065);e.exports=function(e){return i(e)?r(e):o(e)}},86217:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},31853:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",l=16,c=32,u=64,d=128,p=256,f=1/0,h=9007199254740991,m=NaN,v=4294967295,g=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",c],["partialRight",u],["rearg",p]],y="[object Arguments]",b="[object Array]",x="[object Boolean]",w="[object Date]",C="[object Error]",j="[object Function]",S="[object GeneratorFunction]",k="[object Map]",Z="[object Number]",O="[object Object]",E="[object Promise]",D="[object RegExp]",P="[object Set]",A="[object String]",M="[object Symbol]",T="[object WeakMap]",I="[object ArrayBuffer]",R="[object DataView]",F="[object Float32Array]",B="[object Float64Array]",L="[object Int8Array]",N="[object Int16Array]",_="[object Int32Array]",z="[object Uint8Array]",H="[object Uint8ClampedArray]",W="[object Uint16Array]",V="[object Uint32Array]",U=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Y=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,J=RegExp(Y.source),X=RegExp(K.source),Q=/<%-([\s\S]+?)%>/g,$=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(oe.source),ae=/^\s+/,se=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pe=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ve=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,xe=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ce=/($^)/,je=/['\n\r\u2028\u2029\\]/g,Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ke="\\u2700-\\u27bf",Ze="a-z\\xdf-\\xf6\\xf8-\\xff",Oe="A-Z\\xc0-\\xd6\\xd8-\\xde",Ee="\\ufe0e\\ufe0f",De="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Pe="['\u2019]",Ae="[\\ud800-\\udfff]",Me="["+De+"]",Te="["+Se+"]",Ie="\\d+",Re="[\\u2700-\\u27bf]",Fe="["+Ze+"]",Be="[^\\ud800-\\udfff"+De+Ie+ke+Ze+Oe+"]",Le="\\ud83c[\\udffb-\\udfff]",Ne="[^\\ud800-\\udfff]",_e="(?:\\ud83c[\\udde6-\\uddff]){2}",ze="[\\ud800-\\udbff][\\udc00-\\udfff]",He="["+Oe+"]",We="(?:"+Fe+"|"+Be+")",Ve="(?:"+He+"|"+Be+")",Ue="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",qe="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ge="(?:"+Te+"|"+Le+")"+"?",Ye="[\\ufe0e\\ufe0f]?",Ke=Ye+Ge+("(?:\\u200d(?:"+[Ne,_e,ze].join("|")+")"+Ye+Ge+")*"),Je="(?:"+[Re,_e,ze].join("|")+")"+Ke,Xe="(?:"+[Ne+Te+"?",Te,_e,ze,Ae].join("|")+")",Qe=RegExp(Pe,"g"),$e=RegExp(Te,"g"),et=RegExp(Le+"(?="+Le+")|"+Xe+Ke,"g"),tt=RegExp([He+"?"+Fe+"+"+Ue+"(?="+[Me,He,"$"].join("|")+")",Ve+"+"+qe+"(?="+[Me,He+We,"$"].join("|")+")",He+"?"+We+"+"+Ue,He+"+"+qe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ie,Je].join("|"),"g"),nt=RegExp("[\\u200d\\ud800-\\udfff"+Se+Ee+"]"),rt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ot=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],it=-1,at={};at[F]=at[B]=at[L]=at[N]=at[_]=at[z]=at[H]=at[W]=at[V]=!0,at[y]=at[b]=at[I]=at[x]=at[R]=at[w]=at[C]=at[j]=at[k]=at[Z]=at[O]=at[D]=at[P]=at[A]=at[T]=!1;var st={};st[y]=st[b]=st[I]=st[R]=st[x]=st[w]=st[F]=st[B]=st[L]=st[N]=st[_]=st[k]=st[Z]=st[O]=st[D]=st[P]=st[A]=st[M]=st[z]=st[H]=st[W]=st[V]=!0,st[C]=st[j]=st[T]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ct=parseFloat,ut=parseInt,dt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,pt="object"==typeof self&&self&&self.Object===Object&&self,ft=dt||pt||Function("return this")(),ht=t&&!t.nodeType&&t,mt=ht&&e&&!e.nodeType&&e,vt=mt&&mt.exports===ht,gt=vt&&dt.process,yt=function(){try{var e=mt&&mt.require&&mt.require("util").types;return e||gt&&gt.binding&&gt.binding("util")}catch(t){}}(),bt=yt&&yt.isArrayBuffer,xt=yt&&yt.isDate,wt=yt&&yt.isMap,Ct=yt&&yt.isRegExp,jt=yt&&yt.isSet,St=yt&&yt.isTypedArray;function kt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Zt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function Ot(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Et(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Dt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Pt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function At(e,t){return!!(null==e?0:e.length)&&zt(e,t,0)>-1}function Mt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Tt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function It(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Rt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Ft(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Bt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Lt=Ut("length");function Nt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function _t(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function zt(e,t,n){return t===t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):_t(e,Wt,n)}function Ht(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Wt(e){return e!==e}function Vt(e,t){var n=null==e?0:e.length;return n?Yt(e,t)/n:m}function Ut(e){return function(t){return null==t?o:t[e]}}function qt(e){return function(t){return null==e?o:e[t]}}function Gt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Yt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Kt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Jt(e){return e?e.slice(0,mn(e)+1).replace(ae,""):e}function Xt(e){return function(t){return e(t)}}function Qt(e,t){return Tt(t,(function(t){return e[t]}))}function $t(e,t){return e.has(t)}function en(e,t){for(var n=-1,r=e.length;++n<r&&zt(t,e[n],0)>-1;);return n}function tn(e,t){for(var n=e.length;n--&&zt(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var rn=qt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),on=qt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function an(e){return"\\"+lt[e]}function sn(e){return nt.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cn(e,t){return function(n){return e(t(n))}}function un(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,i[o++]=n)}return i}function dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function fn(e){return sn(e)?function(e){var t=et.lastIndex=0;for(;et.test(e);)++t;return t}(e):Lt(e)}function hn(e){return sn(e)?function(e){return e.match(et)||[]}(e):function(e){return e.split("")}(e)}function mn(e){for(var t=e.length;t--&&se.test(e.charAt(t)););return t}var vn=qt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var gn=function e(t){var n=(t=null==t?ft:gn.defaults(ft.Object(),t,gn.pick(ft,ot))).Array,r=t.Date,se=t.Error,Se=t.Function,ke=t.Math,Ze=t.Object,Oe=t.RegExp,Ee=t.String,De=t.TypeError,Pe=n.prototype,Ae=Se.prototype,Me=Ze.prototype,Te=t["__core-js_shared__"],Ie=Ae.toString,Re=Me.hasOwnProperty,Fe=0,Be=function(){var e=/[^.]+$/.exec(Te&&Te.keys&&Te.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Le=Me.toString,Ne=Ie.call(Ze),_e=ft._,ze=Oe("^"+Ie.call(Re).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=vt?t.Buffer:o,We=t.Symbol,Ve=t.Uint8Array,Ue=He?He.allocUnsafe:o,qe=cn(Ze.getPrototypeOf,Ze),Ge=Ze.create,Ye=Me.propertyIsEnumerable,Ke=Pe.splice,Je=We?We.isConcatSpreadable:o,Xe=We?We.iterator:o,et=We?We.toStringTag:o,nt=function(){try{var e=fi(Ze,"defineProperty");return e({},"",{}),e}catch(t){}}(),lt=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,dt=r&&r.now!==ft.Date.now&&r.now,pt=t.setTimeout!==ft.setTimeout&&t.setTimeout,ht=ke.ceil,mt=ke.floor,gt=Ze.getOwnPropertySymbols,yt=He?He.isBuffer:o,Lt=t.isFinite,qt=Pe.join,yn=cn(Ze.keys,Ze),bn=ke.max,xn=ke.min,wn=r.now,Cn=t.parseInt,jn=ke.random,Sn=Pe.reverse,kn=fi(t,"DataView"),Zn=fi(t,"Map"),On=fi(t,"Promise"),En=fi(t,"Set"),Dn=fi(t,"WeakMap"),Pn=fi(Ze,"create"),An=Dn&&new Dn,Mn={},Tn=_i(kn),In=_i(Zn),Rn=_i(On),Fn=_i(En),Bn=_i(Dn),Ln=We?We.prototype:o,Nn=Ln?Ln.valueOf:o,_n=Ln?Ln.toString:o;function zn(e){if(rs(e)&&!qa(e)&&!(e instanceof Un)){if(e instanceof Vn)return e;if(Re.call(e,"__wrapped__"))return zi(e)}return new Vn(e)}var Hn=function(){function e(){}return function(t){if(!ns(t))return{};if(Ge)return Ge(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Wn(){}function Vn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Un(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=v,this.__views__=[]}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Yn;++t<n;)this.add(e[t])}function Jn(e){var t=this.__data__=new Gn(e);this.size=t.size}function Xn(e,t){var n=qa(e),r=!n&&Ua(e),o=!n&&!r&&Ja(e),i=!n&&!r&&!o&&ds(e),a=n||r||o||i,s=a?Kt(e.length,Ee):[],l=s.length;for(var c in e)!t&&!Re.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||xi(c,l))||s.push(c);return s}function Qn(e){var t=e.length;return t?e[Kr(0,t-1)]:o}function $n(e,t){return Bi(Ao(e),lr(t,0,e.length))}function er(e){return Bi(Ao(e))}function tr(e,t,n){(n!==o&&!Ha(e[t],n)||n===o&&!(t in e))&&ar(e,t,n)}function nr(e,t,n){var r=e[t];Re.call(e,t)&&Ha(r,n)&&(n!==o||t in e)||ar(e,t,n)}function rr(e,t){for(var n=e.length;n--;)if(Ha(e[n][0],t))return n;return-1}function or(e,t,n,r){return fr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function ir(e,t){return e&&Mo(t,Ts(t),e)}function ar(e,t,n){"__proto__"==t&&nt?nt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function sr(e,t){for(var r=-1,i=t.length,a=n(i),s=null==e;++r<i;)a[r]=s?o:Es(e,t[r]);return a}function lr(e,t,n){return e===e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function cr(e,t,n,r,i,a){var s,l=1&t,c=2&t,u=4&t;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!ns(e))return e;var d=qa(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Re.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Ao(e,s)}else{var p=vi(e),f=p==j||p==S;if(Ja(e))return ko(e,l);if(p==O||p==y||f&&!i){if(s=c||f?{}:yi(e),!l)return c?function(e,t){return Mo(e,mi(e),t)}(e,function(e,t){return e&&Mo(t,Is(t),e)}(s,e)):function(e,t){return Mo(e,hi(e),t)}(e,ir(s,e))}else{if(!st[p])return i?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case I:return Zo(e);case x:case w:return new r(+e);case R:return function(e,t){var n=t?Zo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case F:case B:case L:case N:case _:case z:case H:case W:case V:return Oo(e,n);case k:return new r;case Z:case A:return new r(e);case D:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case P:return new r;case M:return o=e,Nn?Ze(Nn.call(o)):{}}var o}(e,p,l)}}a||(a=new Jn);var h=a.get(e);if(h)return h;a.set(e,s),ls(e)?e.forEach((function(r){s.add(cr(r,t,n,r,e,a))})):os(e)&&e.forEach((function(r,o){s.set(o,cr(r,t,n,o,e,a))}));var m=d?o:(u?c?ai:ii:c?Is:Ts)(e);return Ot(m||e,(function(r,o){m&&(r=e[o=r]),nr(s,o,cr(r,t,n,o,e,a))})),s}function ur(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ze(e);r--;){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function dr(e,t,n){if("function"!=typeof e)throw new De(i);return Ti((function(){e.apply(o,n)}),t)}function pr(e,t,n,r){var o=-1,i=At,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Tt(t,Xt(n))),r?(i=Mt,a=!1):t.length>=200&&(i=$t,a=!1,t=new Kn(t));e:for(;++o<s;){var u=e[o],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d===d){for(var p=c;p--;)if(t[p]===d)continue e;l.push(u)}else i(t,d,r)||l.push(u)}return l}zn.templateSettings={escape:Q,evaluate:$,interpolate:ee,variable:"",imports:{_:zn}},zn.prototype=Wn.prototype,zn.prototype.constructor=zn,Vn.prototype=Hn(Wn.prototype),Vn.prototype.constructor=Vn,Un.prototype=Hn(Wn.prototype),Un.prototype.constructor=Un,qn.prototype.clear=function(){this.__data__=Pn?Pn(null):{},this.size=0},qn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},qn.prototype.get=function(e){var t=this.__data__;if(Pn){var n=t[e];return n===a?o:n}return Re.call(t,e)?t[e]:o},qn.prototype.has=function(e){var t=this.__data__;return Pn?t[e]!==o:Re.call(t,e)},qn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Pn&&t===o?a:t,this},Gn.prototype.clear=function(){this.__data__=[],this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=rr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ke.call(t,n,1),--this.size,!0)},Gn.prototype.get=function(e){var t=this.__data__,n=rr(t,e);return n<0?o:t[n][1]},Gn.prototype.has=function(e){return rr(this.__data__,e)>-1},Gn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Yn.prototype.clear=function(){this.size=0,this.__data__={hash:new qn,map:new(Zn||Gn),string:new qn}},Yn.prototype.delete=function(e){var t=di(this,e).delete(e);return this.size-=t?1:0,t},Yn.prototype.get=function(e){return di(this,e).get(e)},Yn.prototype.has=function(e){return di(this,e).has(e)},Yn.prototype.set=function(e,t){var n=di(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Kn.prototype.add=Kn.prototype.push=function(e){return this.__data__.set(e,a),this},Kn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Jn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Jn.prototype.get=function(e){return this.__data__.get(e)},Jn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!Zn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Yn(r)}return n.set(e,t),this.size=n.size,this};var fr=Ro(wr),hr=Ro(Cr,!0);function mr(e,t){var n=!0;return fr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function vr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],s=t(a);if(null!=s&&(l===o?s===s&&!us(s):n(s,l)))var l=s,c=a}return c}function gr(e,t){var n=[];return fr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function yr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=bi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?yr(s,t-1,n,r,o):It(o,s):r||(o[o.length]=s)}return o}var br=Fo(),xr=Fo(!0);function wr(e,t){return e&&br(e,t,Ts)}function Cr(e,t){return e&&xr(e,t,Ts)}function jr(e,t){return Pt(t,(function(t){return $a(e[t])}))}function Sr(e,t){for(var n=0,r=(t=wo(t,e)).length;null!=e&&n<r;)e=e[Ni(t[n++])];return n&&n==r?e:o}function kr(e,t,n){var r=t(e);return qa(e)?r:It(r,n(e))}function Zr(e){return null==e?e===o?"[object Undefined]":"[object Null]":et&&et in Ze(e)?function(e){var t=Re.call(e,et),n=e[et];try{e[et]=o;var r=!0}catch(a){}var i=Le.call(e);r&&(t?e[et]=n:delete e[et]);return i}(e):function(e){return Le.call(e)}(e)}function Or(e,t){return e>t}function Er(e,t){return null!=e&&Re.call(e,t)}function Dr(e,t){return null!=e&&t in Ze(e)}function Pr(e,t,r){for(var i=r?Mt:At,a=e[0].length,s=e.length,l=s,c=n(s),u=1/0,d=[];l--;){var p=e[l];l&&t&&(p=Tt(p,Xt(t))),u=xn(p.length,u),c[l]=!r&&(t||a>=120&&p.length>=120)?new Kn(l&&p):o}p=e[0];var f=-1,h=c[0];e:for(;++f<a&&d.length<u;){var m=p[f],v=t?t(m):m;if(m=r||0!==m?m:0,!(h?$t(h,v):i(d,v,r))){for(l=s;--l;){var g=c[l];if(!(g?$t(g,v):i(e[l],v,r)))continue e}h&&h.push(v),d.push(m)}}return d}function Ar(e,t,n){var r=null==(e=Di(e,t=wo(t,e)))?e:e[Ni(Qi(t))];return null==r?o:kt(r,e,n)}function Mr(e){return rs(e)&&Zr(e)==y}function Tr(e,t,n,r,i){return e===t||(null==e||null==t||!rs(e)&&!rs(t)?e!==e&&t!==t:function(e,t,n,r,i,a){var s=qa(e),l=qa(t),c=s?b:vi(e),u=l?b:vi(t),d=(c=c==y?O:c)==O,p=(u=u==y?O:u)==O,f=c==u;if(f&&Ja(e)){if(!Ja(t))return!1;s=!0,d=!1}if(f&&!d)return a||(a=new Jn),s||ds(e)?ri(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case R:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case I:return!(e.byteLength!=t.byteLength||!i(new Ve(e),new Ve(t)));case x:case w:case Z:return Ha(+e,+t);case C:return e.name==t.name&&e.message==t.message;case D:case A:return e==t+"";case k:var s=ln;case P:var l=1&r;if(s||(s=dn),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=ri(s(e),s(t),r,o,i,a);return a.delete(e),u;case M:if(Nn)return Nn.call(e)==Nn.call(t)}return!1}(e,t,c,n,r,i,a);if(!(1&n)){var h=d&&Re.call(e,"__wrapped__"),m=p&&Re.call(t,"__wrapped__");if(h||m){var v=h?e.value():e,g=m?t.value():t;return a||(a=new Jn),i(v,g,n,r,a)}}if(!f)return!1;return a||(a=new Jn),function(e,t,n,r,i,a){var s=1&n,l=ii(e),c=l.length,u=ii(t).length;if(c!=u&&!s)return!1;var d=c;for(;d--;){var p=l[d];if(!(s?p in t:Re.call(t,p)))return!1}var f=a.get(e),h=a.get(t);if(f&&h)return f==t&&h==e;var m=!0;a.set(e,t),a.set(t,e);var v=s;for(;++d<c;){var g=e[p=l[d]],y=t[p];if(r)var b=s?r(y,g,p,t,e,a):r(g,y,p,e,t,a);if(!(b===o?g===y||i(g,y,n,r,a):b)){m=!1;break}v||(v="constructor"==p)}if(m&&!v){var x=e.constructor,w=t.constructor;x==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(m=!1)}return a.delete(e),a.delete(t),m}(e,t,n,r,i,a)}(e,t,n,r,Tr,i))}function Ir(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;for(e=Ze(e);i--;){var l=n[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){var c=(l=n[i])[0],u=e[c],d=l[1];if(s&&l[2]){if(u===o&&!(c in e))return!1}else{var p=new Jn;if(r)var f=r(u,d,c,e,t,p);if(!(f===o?Tr(d,u,3,r,p):f))return!1}}return!0}function Rr(e){return!(!ns(e)||(t=e,Be&&Be in t))&&($a(e)?ze:ye).test(_i(e));var t}function Fr(e){return"function"==typeof e?e:null==e?il:"object"==typeof e?qa(e)?Hr(e[0],e[1]):zr(e):hl(e)}function Br(e){if(!ki(e))return yn(e);var t=[];for(var n in Ze(e))Re.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Lr(e){if(!ns(e))return function(e){var t=[];if(null!=e)for(var n in Ze(e))t.push(n);return t}(e);var t=ki(e),n=[];for(var r in e)("constructor"!=r||!t&&Re.call(e,r))&&n.push(r);return n}function Nr(e,t){return e<t}function _r(e,t){var r=-1,o=Ya(e)?n(e.length):[];return fr(e,(function(e,n,i){o[++r]=t(e,n,i)})),o}function zr(e){var t=pi(e);return 1==t.length&&t[0][2]?Oi(t[0][0],t[0][1]):function(n){return n===e||Ir(n,e,t)}}function Hr(e,t){return Ci(e)&&Zi(t)?Oi(Ni(e),t):function(n){var r=Es(n,e);return r===o&&r===t?Ds(n,e):Tr(t,r,3)}}function Wr(e,t,n,r,i){e!==t&&br(t,(function(a,s){if(i||(i=new Jn),ns(a))!function(e,t,n,r,i,a,s){var l=Ai(e,n),c=Ai(t,n),u=s.get(c);if(u)return void tr(e,n,u);var d=a?a(l,c,n+"",e,t,s):o,p=d===o;if(p){var f=qa(c),h=!f&&Ja(c),m=!f&&!h&&ds(c);d=c,f||h||m?qa(l)?d=l:Ka(l)?d=Ao(l):h?(p=!1,d=ko(c,!0)):m?(p=!1,d=Oo(c,!0)):d=[]:as(c)||Ua(c)?(d=l,Ua(l)?d=bs(l):ns(l)&&!$a(l)||(d=yi(c))):p=!1}p&&(s.set(c,d),i(d,c,r,a,s),s.delete(c));tr(e,n,d)}(e,t,s,n,Wr,r,i);else{var l=r?r(Ai(e,s),a,s+"",e,t,i):o;l===o&&(l=a),tr(e,s,l)}}),Is)}function Vr(e,t){var n=e.length;if(n)return xi(t+=t<0?n:0,n)?e[t]:o}function Ur(e,t,n){t=t.length?Tt(t,(function(e){return qa(e)?function(t){return Sr(t,1===e.length?e[0]:e)}:e})):[il];var r=-1;t=Tt(t,Xt(ui()));var o=_r(e,(function(e,n,o){var i=Tt(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,(function(e,t){return function(e,t,n){var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;for(;++r<a;){var l=Eo(o[r],i[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function qr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=Sr(e,a);n(s,a)&&eo(i,wo(a,e),s)}return i}function Gr(e,t,n,r){var o=r?Ht:zt,i=-1,a=t.length,s=e;for(e===t&&(t=Ao(t)),n&&(s=Tt(e,Xt(n)));++i<a;)for(var l=0,c=t[i],u=n?n(c):c;(l=o(s,u,l,r))>-1;)s!==e&&Ke.call(s,l,1),Ke.call(e,l,1);return e}function Yr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;xi(o)?Ke.call(e,o,1):fo(e,o)}}return e}function Kr(e,t){return e+mt(jn()*(t-e+1))}function Jr(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=mt(t/2))&&(e+=e)}while(t);return n}function Xr(e,t){return Ii(Ei(e,t,il),e+"")}function Qr(e){return Qn(Hs(e))}function $r(e,t){var n=Hs(e);return Bi(n,lr(t,0,n.length))}function eo(e,t,n,r){if(!ns(e))return e;for(var i=-1,a=(t=wo(t,e)).length,s=a-1,l=e;null!=l&&++i<a;){var c=Ni(t[i]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=s){var d=l[c];(u=r?r(d,c,l):o)===o&&(u=ns(d)?d:xi(t[i+1])?[]:{})}nr(l,c,u),l=l[c]}return e}var to=An?function(e,t){return An.set(e,t),e}:il,no=nt?function(e,t){return nt(e,"toString",{configurable:!0,enumerable:!1,value:nl(t),writable:!0})}:il;function ro(e){return Bi(Hs(e))}function oo(e,t,r){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=n(i);++o<i;)a[o]=e[o+t];return a}function io(e,t){var n;return fr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function ao(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t===t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!us(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return so(e,t,il,n)}function so(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!==t,l=null===t,c=us(t),u=t===o;i<a;){var d=mt((i+a)/2),p=n(e[d]),f=p!==o,h=null===p,m=p===p,v=us(p);if(s)var g=r||m;else g=u?m&&(r||f):l?m&&f&&(r||!h):c?m&&f&&!h&&(r||!v):!h&&!v&&(r?p<=t:p<t);g?i=d+1:a=d}return xn(a,4294967294)}function lo(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Ha(s,l)){var l=s;i[o++]=0===a?0:a}}return i}function co(e){return"number"==typeof e?e:us(e)?m:+e}function uo(e){if("string"==typeof e)return e;if(qa(e))return Tt(e,uo)+"";if(us(e))return _n?_n.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function po(e,t,n){var r=-1,o=At,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=Mt;else if(i>=200){var c=t?null:Xo(e);if(c)return dn(c);a=!1,o=$t,l=new Kn}else l=t?[]:s;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d===d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(u)}else o(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function fo(e,t){return null==(e=Di(e,t=wo(t,e)))||delete e[Ni(Qi(t))]}function ho(e,t,n,r){return eo(e,t,n(Sr(e,t)),r)}function mo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?oo(e,r?0:i,r?i+1:o):oo(e,r?i+1:0,r?o:i)}function vo(e,t){var n=e;return n instanceof Un&&(n=n.value()),Rt(t,(function(e,t){return t.func.apply(t.thisArg,It([e],t.args))}),n)}function go(e,t,r){var o=e.length;if(o<2)return o?po(e[0]):[];for(var i=-1,a=n(o);++i<o;)for(var s=e[i],l=-1;++l<o;)l!=i&&(a[i]=pr(a[i]||s,e[l],t,r));return po(yr(a,1),t,r)}function yo(e,t,n){for(var r=-1,i=e.length,a=t.length,s={};++r<i;){var l=r<a?t[r]:o;n(s,e[r],l)}return s}function bo(e){return Ka(e)?e:[]}function xo(e){return"function"==typeof e?e:il}function wo(e,t){return qa(e)?e:Ci(e,t)?[e]:Li(xs(e))}var Co=Xr;function jo(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:oo(e,t,n)}var So=lt||function(e){return ft.clearTimeout(e)};function ko(e,t){if(t)return e.slice();var n=e.length,r=Ue?Ue(n):new e.constructor(n);return e.copy(r),r}function Zo(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function Oo(e,t){var n=t?Zo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Eo(e,t){if(e!==t){var n=e!==o,r=null===e,i=e===e,a=us(e),s=t!==o,l=null===t,c=t===t,u=us(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!i)return 1;if(!r&&!a&&!u&&e<t||u&&n&&i&&!r&&!a||l&&n&&i||!s&&i||!c)return-1}return 0}function Do(e,t,r,o){for(var i=-1,a=e.length,s=r.length,l=-1,c=t.length,u=bn(a-s,0),d=n(c+u),p=!o;++l<c;)d[l]=t[l];for(;++i<s;)(p||i<a)&&(d[r[i]]=e[i]);for(;u--;)d[l++]=e[i++];return d}function Po(e,t,r,o){for(var i=-1,a=e.length,s=-1,l=r.length,c=-1,u=t.length,d=bn(a-l,0),p=n(d+u),f=!o;++i<d;)p[i]=e[i];for(var h=i;++c<u;)p[h+c]=t[c];for(;++s<l;)(f||i<a)&&(p[h+r[s]]=e[i++]);return p}function Ao(e,t){var r=-1,o=e.length;for(t||(t=n(o));++r<o;)t[r]=e[r];return t}function Mo(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],c=r?r(n[l],e[l],l,n,e):o;c===o&&(c=e[l]),i?ar(n,l,c):nr(n,l,c)}return n}function To(e,t){return function(n,r){var o=qa(n)?Zt:or,i=t?t():{};return o(n,e,ui(r,2),i)}}function Io(e){return Xr((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&wi(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=Ze(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t}))}function Ro(e,t){return function(n,r){if(null==n)return n;if(!Ya(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Ze(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Fo(e){return function(t,n,r){for(var o=-1,i=Ze(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}function Bo(e){return function(t){var n=sn(t=xs(t))?hn(t):o,r=n?n[0]:t.charAt(0),i=n?jo(n,1).join(""):t.slice(1);return r[e]()+i}}function Lo(e){return function(t){return Rt($s(Us(t).replace(Qe,"")),e,"")}}function No(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Hn(e.prototype),r=e.apply(n,t);return ns(r)?r:n}}function _o(e){return function(t,n,r){var i=Ze(t);if(!Ya(t)){var a=ui(n,3);t=Ts(t),n=function(e){return a(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:o}}function zo(e){return oi((function(t){var n=t.length,r=n,a=Vn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new De(i);if(a&&!l&&"wrapper"==li(s))var l=new Vn([],!0)}for(r=l?r:n;++r<n;){var c=li(s=t[r]),u="wrapper"==c?si(s):o;l=u&&ji(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[li(u[0])].apply(l,u[3]):1==s.length&&ji(s)?l[c]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&qa(r))return l.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function Ho(e,t,r,i,a,s,l,c,u,p){var f=t&d,h=1&t,m=2&t,v=24&t,g=512&t,y=m?o:No(e);return function o(){for(var d=arguments.length,b=n(d),x=d;x--;)b[x]=arguments[x];if(v)var w=ci(o),C=nn(b,w);if(i&&(b=Do(b,i,a,v)),s&&(b=Po(b,s,l,v)),d-=C,v&&d<p){var j=un(b,w);return Ko(e,t,Ho,o.placeholder,r,b,j,c,u,p-d)}var S=h?r:this,k=m?S[e]:e;return d=b.length,c?b=Pi(b,c):g&&d>1&&b.reverse(),f&&u<d&&(b.length=u),this&&this!==ft&&this instanceof o&&(k=y||No(k)),k.apply(S,b)}}function Wo(e,t){return function(n,r){return function(e,t,n,r){return wr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Vo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=uo(n),r=uo(r)):(n=co(n),r=co(r)),i=e(n,r)}return i}}function Uo(e){return oi((function(t){return t=Tt(t,Xt(ui())),Xr((function(n){var r=this;return e(t,(function(e){return kt(e,r,n)}))}))}))}function qo(e,t){var n=(t=t===o?" ":uo(t)).length;if(n<2)return n?Jr(t,e):t;var r=Jr(t,ht(e/fn(t)));return sn(t)?jo(hn(r),0,e).join(""):r.slice(0,e)}function Go(e){return function(t,r,i){return i&&"number"!=typeof i&&wi(t,r,i)&&(r=i=o),t=ms(t),r===o?(r=t,t=0):r=ms(r),function(e,t,r,o){for(var i=-1,a=bn(ht((t-e)/(r||1)),0),s=n(a);a--;)s[o?a:++i]=e,e+=r;return s}(t,r,i=i===o?t<r?1:-1:ms(i),e)}}function Yo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ys(t),n=ys(n)),e(t,n)}}function Ko(e,t,n,r,i,a,s,l,d,p){var f=8&t;t|=f?c:u,4&(t&=~(f?u:c))||(t&=-4);var h=[e,t,i,f?a:o,f?s:o,f?o:a,f?o:s,l,d,p],m=n.apply(o,h);return ji(e)&&Mi(m,h),m.placeholder=r,Ri(m,e,t)}function Jo(e){var t=ke[e];return function(e,n){if(e=ys(e),(n=null==n?0:xn(vs(n),292))&&Lt(e)){var r=(xs(e)+"e").split("e");return+((r=(xs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Xo=En&&1/dn(new En([,-0]))[1]==f?function(e){return new En(e)}:ul;function Qo(e){return function(t){var n=vi(t);return n==k?ln(t):n==P?pn(t):function(e,t){return Tt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function $o(e,t,r,a,f,h,m,v){var g=2&t;if(!g&&"function"!=typeof e)throw new De(i);var y=a?a.length:0;if(y||(t&=-97,a=f=o),m=m===o?m:bn(vs(m),0),v=v===o?v:vs(v),y-=f?f.length:0,t&u){var b=a,x=f;a=f=o}var w=g?o:si(e),C=[e,t,r,a,f,b,x,h,m,v];if(w&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==d&&8==n||r==d&&n==p&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?Do(c,l,t[4]):l,e[4]=c?un(e[3],s):t[4]}(l=t[5])&&(c=e[5],e[5]=c?Po(c,l,t[6]):l,e[6]=c?un(e[5],s):t[6]);(l=t[7])&&(e[7]=l);r&d&&(e[8]=null==e[8]?t[8]:xn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(C,w),e=C[0],t=C[1],r=C[2],a=C[3],f=C[4],!(v=C[9]=C[9]===o?g?0:e.length:bn(C[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)j=8==t||t==l?function(e,t,r){var i=No(e);return function a(){for(var s=arguments.length,l=n(s),c=s,u=ci(a);c--;)l[c]=arguments[c];var d=s<3&&l[0]!==u&&l[s-1]!==u?[]:un(l,u);return(s-=d.length)<r?Ko(e,t,Ho,a.placeholder,o,l,d,o,o,r-s):kt(this&&this!==ft&&this instanceof a?i:e,this,l)}}(e,t,v):t!=c&&33!=t||f.length?Ho.apply(o,C):function(e,t,r,o){var i=1&t,a=No(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=o.length,d=n(u+l),p=this&&this!==ft&&this instanceof t?a:e;++c<u;)d[c]=o[c];for(;l--;)d[c++]=arguments[++s];return kt(p,i?r:this,d)}}(e,t,r,a);else var j=function(e,t,n){var r=1&t,o=No(e);return function t(){return(this&&this!==ft&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,r);return Ri((w?to:Mi)(j,C),e,t)}function ei(e,t,n,r){return e===o||Ha(e,Me[n])&&!Re.call(r,n)?t:e}function ti(e,t,n,r,i,a){return ns(e)&&ns(t)&&(a.set(t,e),Wr(e,t,o,ti,a),a.delete(t)),e}function ni(e){return as(e)?o:e}function ri(e,t,n,r,i,a){var s=1&n,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var p=-1,f=!0,h=2&n?new Kn:o;for(a.set(e,t),a.set(t,e);++p<l;){var m=e[p],v=t[p];if(r)var g=s?r(v,m,p,t,e,a):r(m,v,p,e,t,a);if(g!==o){if(g)continue;f=!1;break}if(h){if(!Bt(t,(function(e,t){if(!$t(h,t)&&(m===e||i(m,e,n,r,a)))return h.push(t)}))){f=!1;break}}else if(m!==v&&!i(m,v,n,r,a)){f=!1;break}}return a.delete(e),a.delete(t),f}function oi(e){return Ii(Ei(e,o,Gi),e+"")}function ii(e){return kr(e,Ts,hi)}function ai(e){return kr(e,Is,mi)}var si=An?function(e){return An.get(e)}:ul;function li(e){for(var t=e.name+"",n=Mn[t],r=Re.call(Mn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ci(e){return(Re.call(zn,"placeholder")?zn:e).placeholder}function ui(){var e=zn.iteratee||al;return e=e===al?Fr:e,arguments.length?e(arguments[0],arguments[1]):e}function di(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function pi(e){for(var t=Ts(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Zi(o)]}return t}function fi(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Rr(n)?n:o}var hi=gt?function(e){return null==e?[]:(e=Ze(e),Pt(gt(e),(function(t){return Ye.call(e,t)})))}:gl,mi=gt?function(e){for(var t=[];e;)It(t,hi(e)),e=qe(e);return t}:gl,vi=Zr;function gi(e,t,n){for(var r=-1,o=(t=wo(t,e)).length,i=!1;++r<o;){var a=Ni(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&ts(o)&&xi(a,o)&&(qa(e)||Ua(e))}function yi(e){return"function"!=typeof e.constructor||ki(e)?{}:Hn(qe(e))}function bi(e){return qa(e)||Ua(e)||!!(Je&&e&&e[Je])}function xi(e,t){var n=typeof e;return!!(t=null==t?h:t)&&("number"==n||"symbol"!=n&&xe.test(e))&&e>-1&&e%1==0&&e<t}function wi(e,t,n){if(!ns(n))return!1;var r=typeof t;return!!("number"==r?Ya(n)&&xi(t,n.length):"string"==r&&t in n)&&Ha(n[t],e)}function Ci(e,t){if(qa(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!us(e))||(ne.test(e)||!te.test(e)||null!=t&&e in Ze(t))}function ji(e){var t=li(e),n=zn[t];if("function"!=typeof n||!(t in Un.prototype))return!1;if(e===n)return!0;var r=si(n);return!!r&&e===r[0]}(kn&&vi(new kn(new ArrayBuffer(1)))!=R||Zn&&vi(new Zn)!=k||On&&vi(On.resolve())!=E||En&&vi(new En)!=P||Dn&&vi(new Dn)!=T)&&(vi=function(e){var t=Zr(e),n=t==O?e.constructor:o,r=n?_i(n):"";if(r)switch(r){case Tn:return R;case In:return k;case Rn:return E;case Fn:return P;case Bn:return T}return t});var Si=Te?$a:yl;function ki(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Me)}function Zi(e){return e===e&&!ns(e)}function Oi(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==o||e in Ze(n)))}}function Ei(e,t,r){return t=bn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=bn(o.length-t,0),s=n(a);++i<a;)s[i]=o[t+i];i=-1;for(var l=n(t+1);++i<t;)l[i]=o[i];return l[t]=r(s),kt(e,this,l)}}function Di(e,t){return t.length<2?e:Sr(e,oo(t,0,-1))}function Pi(e,t){for(var n=e.length,r=xn(t.length,n),i=Ao(e);r--;){var a=t[r];e[r]=xi(a,n)?i[a]:o}return e}function Ai(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Mi=Fi(to),Ti=pt||function(e,t){return ft.setTimeout(e,t)},Ii=Fi(no);function Ri(e,t,n){var r=t+"";return Ii(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ot(g,(function(n){var r="_."+n[0];t&n[1]&&!At(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(ue):[]}(r),n)))}function Fi(e){var t=0,n=0;return function(){var r=wn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Bi(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Kr(n,i),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Li=function(e){var t=Fa(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,n,r,o){t.push(r?o.replace(fe,"$1"):n||e)})),t}));function Ni(e){if("string"==typeof e||us(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function _i(e){if(null!=e){try{return Ie.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function zi(e){if(e instanceof Un)return e.clone();var t=new Vn(e.__wrapped__,e.__chain__);return t.__actions__=Ao(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Hi=Xr((function(e,t){return Ka(e)?pr(e,yr(t,1,Ka,!0)):[]})),Wi=Xr((function(e,t){var n=Qi(t);return Ka(n)&&(n=o),Ka(e)?pr(e,yr(t,1,Ka,!0),ui(n,2)):[]})),Vi=Xr((function(e,t){var n=Qi(t);return Ka(n)&&(n=o),Ka(e)?pr(e,yr(t,1,Ka,!0),o,n):[]}));function Ui(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:vs(n);return o<0&&(o=bn(r+o,0)),_t(e,ui(t,3),o)}function qi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=vs(n),i=n<0?bn(r+i,0):xn(i,r-1)),_t(e,ui(t,3),i,!0)}function Gi(e){return(null==e?0:e.length)?yr(e,1):[]}function Yi(e){return e&&e.length?e[0]:o}var Ki=Xr((function(e){var t=Tt(e,bo);return t.length&&t[0]===e[0]?Pr(t):[]})),Ji=Xr((function(e){var t=Qi(e),n=Tt(e,bo);return t===Qi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Pr(n,ui(t,2)):[]})),Xi=Xr((function(e){var t=Qi(e),n=Tt(e,bo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Pr(n,o,t):[]}));function Qi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var $i=Xr(ea);function ea(e,t){return e&&e.length&&t&&t.length?Gr(e,t):e}var ta=oi((function(e,t){var n=null==e?0:e.length,r=sr(e,t);return Yr(e,Tt(t,(function(e){return xi(e,n)?+e:e})).sort(Eo)),r}));function na(e){return null==e?e:Sn.call(e)}var ra=Xr((function(e){return po(yr(e,1,Ka,!0))})),oa=Xr((function(e){var t=Qi(e);return Ka(t)&&(t=o),po(yr(e,1,Ka,!0),ui(t,2))})),ia=Xr((function(e){var t=Qi(e);return t="function"==typeof t?t:o,po(yr(e,1,Ka,!0),o,t)}));function aa(e){if(!e||!e.length)return[];var t=0;return e=Pt(e,(function(e){if(Ka(e))return t=bn(e.length,t),!0})),Kt(t,(function(t){return Tt(e,Ut(t))}))}function sa(e,t){if(!e||!e.length)return[];var n=aa(e);return null==t?n:Tt(n,(function(e){return kt(t,o,e)}))}var la=Xr((function(e,t){return Ka(e)?pr(e,t):[]})),ca=Xr((function(e){return go(Pt(e,Ka))})),ua=Xr((function(e){var t=Qi(e);return Ka(t)&&(t=o),go(Pt(e,Ka),ui(t,2))})),da=Xr((function(e){var t=Qi(e);return t="function"==typeof t?t:o,go(Pt(e,Ka),o,t)})),pa=Xr(aa);var fa=Xr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,sa(e,n)}));function ha(e){var t=zn(e);return t.__chain__=!0,t}function ma(e,t){return t(e)}var va=oi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return sr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Un&&xi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ma,args:[i],thisArg:o}),new Vn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)}));var ga=To((function(e,t,n){Re.call(e,n)?++e[n]:ar(e,n,1)}));var ya=_o(Ui),ba=_o(qi);function xa(e,t){return(qa(e)?Ot:fr)(e,ui(t,3))}function wa(e,t){return(qa(e)?Et:hr)(e,ui(t,3))}var Ca=To((function(e,t,n){Re.call(e,n)?e[n].push(t):ar(e,n,[t])}));var ja=Xr((function(e,t,r){var o=-1,i="function"==typeof t,a=Ya(e)?n(e.length):[];return fr(e,(function(e){a[++o]=i?kt(t,e,r):Ar(e,t,r)})),a})),Sa=To((function(e,t,n){ar(e,n,t)}));function ka(e,t){return(qa(e)?Tt:_r)(e,ui(t,3))}var Za=To((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Oa=Xr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&wi(e,t[0],t[1])?t=[]:n>2&&wi(t[0],t[1],t[2])&&(t=[t[0]]),Ur(e,yr(t,1),[])})),Ea=dt||function(){return ft.Date.now()};function Da(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,$o(e,d,o,o,o,o,t)}function Pa(e,t){var n;if("function"!=typeof t)throw new De(i);return e=vs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Aa=Xr((function(e,t,n){var r=1;if(n.length){var o=un(n,ci(Aa));r|=c}return $o(e,r,t,n,o)})),Ma=Xr((function(e,t,n){var r=3;if(n.length){var o=un(n,ci(Ma));r|=c}return $o(t,r,e,n,o)}));function Ta(e,t,n){var r,a,s,l,c,u,d=0,p=!1,f=!1,h=!0;if("function"!=typeof e)throw new De(i);function m(t){var n=r,i=a;return r=a=o,d=t,l=e.apply(i,n)}function v(e){return d=e,c=Ti(y,t),p?m(e):l}function g(e){var n=e-u;return u===o||n>=t||n<0||f&&e-d>=s}function y(){var e=Ea();if(g(e))return b(e);c=Ti(y,function(e){var n=t-(e-u);return f?xn(n,s-(e-d)):n}(e))}function b(e){return c=o,h&&r?m(e):(r=a=o,l)}function x(){var e=Ea(),n=g(e);if(r=arguments,a=this,u=e,n){if(c===o)return v(u);if(f)return So(c),c=Ti(y,t),m(u)}return c===o&&(c=Ti(y,t)),l}return t=ys(t)||0,ns(n)&&(p=!!n.leading,s=(f="maxWait"in n)?bn(ys(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),x.cancel=function(){c!==o&&So(c),d=0,r=u=a=c=o},x.flush=function(){return c===o?l:b(Ea())},x}var Ia=Xr((function(e,t){return dr(e,1,t)})),Ra=Xr((function(e,t,n){return dr(e,ys(t)||0,n)}));function Fa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new De(i);var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Fa.Cache||Yn),n}function Ba(e){if("function"!=typeof e)throw new De(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Fa.Cache=Yn;var La=Co((function(e,t){var n=(t=1==t.length&&qa(t[0])?Tt(t[0],Xt(ui())):Tt(yr(t,1),Xt(ui()))).length;return Xr((function(r){for(var o=-1,i=xn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return kt(e,this,r)}))})),Na=Xr((function(e,t){var n=un(t,ci(Na));return $o(e,c,o,t,n)})),_a=Xr((function(e,t){var n=un(t,ci(_a));return $o(e,u,o,t,n)})),za=oi((function(e,t){return $o(e,p,o,o,o,t)}));function Ha(e,t){return e===t||e!==e&&t!==t}var Wa=Yo(Or),Va=Yo((function(e,t){return e>=t})),Ua=Mr(function(){return arguments}())?Mr:function(e){return rs(e)&&Re.call(e,"callee")&&!Ye.call(e,"callee")},qa=n.isArray,Ga=bt?Xt(bt):function(e){return rs(e)&&Zr(e)==I};function Ya(e){return null!=e&&ts(e.length)&&!$a(e)}function Ka(e){return rs(e)&&Ya(e)}var Ja=yt||yl,Xa=xt?Xt(xt):function(e){return rs(e)&&Zr(e)==w};function Qa(e){if(!rs(e))return!1;var t=Zr(e);return t==C||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!as(e)}function $a(e){if(!ns(e))return!1;var t=Zr(e);return t==j||t==S||"[object AsyncFunction]"==t||"[object Proxy]"==t}function es(e){return"number"==typeof e&&e==vs(e)}function ts(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function ns(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function rs(e){return null!=e&&"object"==typeof e}var os=wt?Xt(wt):function(e){return rs(e)&&vi(e)==k};function is(e){return"number"==typeof e||rs(e)&&Zr(e)==Z}function as(e){if(!rs(e)||Zr(e)!=O)return!1;var t=qe(e);if(null===t)return!0;var n=Re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ie.call(n)==Ne}var ss=Ct?Xt(Ct):function(e){return rs(e)&&Zr(e)==D};var ls=jt?Xt(jt):function(e){return rs(e)&&vi(e)==P};function cs(e){return"string"==typeof e||!qa(e)&&rs(e)&&Zr(e)==A}function us(e){return"symbol"==typeof e||rs(e)&&Zr(e)==M}var ds=St?Xt(St):function(e){return rs(e)&&ts(e.length)&&!!at[Zr(e)]};var ps=Yo(Nr),fs=Yo((function(e,t){return e<=t}));function hs(e){if(!e)return[];if(Ya(e))return cs(e)?hn(e):Ao(e);if(Xe&&e[Xe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=vi(e);return(t==k?ln:t==P?dn:Hs)(e)}function ms(e){return e?(e=ys(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function vs(e){var t=ms(e),n=t%1;return t===t?n?t-n:t:0}function gs(e){return e?lr(vs(e),0,v):0}function ys(e){if("number"==typeof e)return e;if(us(e))return m;if(ns(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ns(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var n=ge.test(e);return n||be.test(e)?ut(e.slice(2),n?2:8):ve.test(e)?m:+e}function bs(e){return Mo(e,Is(e))}function xs(e){return null==e?"":uo(e)}var ws=Io((function(e,t){if(ki(t)||Ya(t))Mo(t,Ts(t),e);else for(var n in t)Re.call(t,n)&&nr(e,n,t[n])})),Cs=Io((function(e,t){Mo(t,Is(t),e)})),js=Io((function(e,t,n,r){Mo(t,Is(t),e,r)})),Ss=Io((function(e,t,n,r){Mo(t,Ts(t),e,r)})),ks=oi(sr);var Zs=Xr((function(e,t){e=Ze(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&wi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],s=Is(a),l=-1,c=s.length;++l<c;){var u=s[l],d=e[u];(d===o||Ha(d,Me[u])&&!Re.call(e,u))&&(e[u]=a[u])}return e})),Os=Xr((function(e){return e.push(o,ti),kt(Fs,o,e)}));function Es(e,t,n){var r=null==e?o:Sr(e,t);return r===o?n:r}function Ds(e,t){return null!=e&&gi(e,t,Dr)}var Ps=Wo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),e[t]=n}),nl(il)),As=Wo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),Re.call(e,t)?e[t].push(n):e[t]=[n]}),ui),Ms=Xr(Ar);function Ts(e){return Ya(e)?Xn(e):Br(e)}function Is(e){return Ya(e)?Xn(e,!0):Lr(e)}var Rs=Io((function(e,t,n){Wr(e,t,n)})),Fs=Io((function(e,t,n,r){Wr(e,t,n,r)})),Bs=oi((function(e,t){var n={};if(null==e)return n;var r=!1;t=Tt(t,(function(t){return t=wo(t,e),r||(r=t.length>1),t})),Mo(e,ai(e),n),r&&(n=cr(n,7,ni));for(var o=t.length;o--;)fo(n,t[o]);return n}));var Ls=oi((function(e,t){return null==e?{}:function(e,t){return qr(e,t,(function(t,n){return Ds(e,n)}))}(e,t)}));function Ns(e,t){if(null==e)return{};var n=Tt(ai(e),(function(e){return[e]}));return t=ui(t),qr(e,n,(function(e,n){return t(e,n[0])}))}var _s=Qo(Ts),zs=Qo(Is);function Hs(e){return null==e?[]:Qt(e,Ts(e))}var Ws=Lo((function(e,t,n){return t=t.toLowerCase(),e+(n?Vs(t):t)}));function Vs(e){return Qs(xs(e).toLowerCase())}function Us(e){return(e=xs(e))&&e.replace(we,rn).replace($e,"")}var qs=Lo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Gs=Lo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ys=Bo("toLowerCase");var Ks=Lo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Js=Lo((function(e,t,n){return e+(n?" ":"")+Qs(t)}));var Xs=Lo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Qs=Bo("toUpperCase");function $s(e,t,n){return e=xs(e),(t=n?o:t)===o?function(e){return rt.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var el=Xr((function(e,t){try{return kt(e,o,t)}catch(n){return Qa(n)?n:new se(n)}})),tl=oi((function(e,t){return Ot(t,(function(t){t=Ni(t),ar(e,t,Aa(e[t],e))})),e}));function nl(e){return function(){return e}}var rl=zo(),ol=zo(!0);function il(e){return e}function al(e){return Fr("function"==typeof e?e:cr(e,1))}var sl=Xr((function(e,t){return function(n){return Ar(n,e,t)}})),ll=Xr((function(e,t){return function(n){return Ar(e,n,t)}}));function cl(e,t,n){var r=Ts(t),o=jr(t,r);null!=n||ns(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=jr(t,Ts(t)));var i=!(ns(n)&&"chain"in n)||!!n.chain,a=$a(e);return Ot(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=Ao(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,It([this.value()],arguments))})})),e}function ul(){}var dl=Uo(Tt),pl=Uo(Dt),fl=Uo(Bt);function hl(e){return Ci(e)?Ut(Ni(e)):function(e){return function(t){return Sr(t,e)}}(e)}var ml=Go(),vl=Go(!0);function gl(){return[]}function yl(){return!1}var bl=Vo((function(e,t){return e+t}),0),xl=Jo("ceil"),wl=Vo((function(e,t){return e/t}),1),Cl=Jo("floor");var jl=Vo((function(e,t){return e*t}),1),Sl=Jo("round"),kl=Vo((function(e,t){return e-t}),0);return zn.after=function(e,t){if("function"!=typeof t)throw new De(i);return e=vs(e),function(){if(--e<1)return t.apply(this,arguments)}},zn.ary=Da,zn.assign=ws,zn.assignIn=Cs,zn.assignInWith=js,zn.assignWith=Ss,zn.at=ks,zn.before=Pa,zn.bind=Aa,zn.bindAll=tl,zn.bindKey=Ma,zn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qa(e)?e:[e]},zn.chain=ha,zn.chunk=function(e,t,r){t=(r?wi(e,t,r):t===o)?1:bn(vs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,l=n(ht(i/t));a<i;)l[s++]=oo(e,a,a+=t);return l},zn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},zn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],o=e;o--;)t[o-1]=arguments[o];return It(qa(r)?Ao(r):[r],yr(t,1))},zn.cond=function(e){var t=null==e?0:e.length,n=ui();return e=t?Tt(e,(function(e){if("function"!=typeof e[1])throw new De(i);return[n(e[0]),e[1]]})):[],Xr((function(n){for(var r=-1;++r<t;){var o=e[r];if(kt(o[0],this,n))return kt(o[1],this,n)}}))},zn.conforms=function(e){return function(e){var t=Ts(e);return function(n){return ur(n,e,t)}}(cr(e,1))},zn.constant=nl,zn.countBy=ga,zn.create=function(e,t){var n=Hn(e);return null==t?n:ir(n,t)},zn.curry=function e(t,n,r){var i=$o(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},zn.curryRight=function e(t,n,r){var i=$o(t,l,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},zn.debounce=Ta,zn.defaults=Zs,zn.defaultsDeep=Os,zn.defer=Ia,zn.delay=Ra,zn.difference=Hi,zn.differenceBy=Wi,zn.differenceWith=Vi,zn.drop=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,(t=n||t===o?1:vs(t))<0?0:t,r):[]},zn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,0,(t=r-(t=n||t===o?1:vs(t)))<0?0:t):[]},zn.dropRightWhile=function(e,t){return e&&e.length?mo(e,ui(t,3),!0,!0):[]},zn.dropWhile=function(e,t){return e&&e.length?mo(e,ui(t,3),!0):[]},zn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&wi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=vs(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:vs(r))<0&&(r+=i),r=n>r?0:gs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},zn.filter=function(e,t){return(qa(e)?Pt:gr)(e,ui(t,3))},zn.flatMap=function(e,t){return yr(ka(e,t),1)},zn.flatMapDeep=function(e,t){return yr(ka(e,t),f)},zn.flatMapDepth=function(e,t,n){return n=n===o?1:vs(n),yr(ka(e,t),n)},zn.flatten=Gi,zn.flattenDeep=function(e){return(null==e?0:e.length)?yr(e,f):[]},zn.flattenDepth=function(e,t){return(null==e?0:e.length)?yr(e,t=t===o?1:vs(t)):[]},zn.flip=function(e){return $o(e,512)},zn.flow=rl,zn.flowRight=ol,zn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},zn.functions=function(e){return null==e?[]:jr(e,Ts(e))},zn.functionsIn=function(e){return null==e?[]:jr(e,Is(e))},zn.groupBy=Ca,zn.initial=function(e){return(null==e?0:e.length)?oo(e,0,-1):[]},zn.intersection=Ki,zn.intersectionBy=Ji,zn.intersectionWith=Xi,zn.invert=Ps,zn.invertBy=As,zn.invokeMap=ja,zn.iteratee=al,zn.keyBy=Sa,zn.keys=Ts,zn.keysIn=Is,zn.map=ka,zn.mapKeys=function(e,t){var n={};return t=ui(t,3),wr(e,(function(e,r,o){ar(n,t(e,r,o),e)})),n},zn.mapValues=function(e,t){var n={};return t=ui(t,3),wr(e,(function(e,r,o){ar(n,r,t(e,r,o))})),n},zn.matches=function(e){return zr(cr(e,1))},zn.matchesProperty=function(e,t){return Hr(e,cr(t,1))},zn.memoize=Fa,zn.merge=Rs,zn.mergeWith=Fs,zn.method=sl,zn.methodOf=ll,zn.mixin=cl,zn.negate=Ba,zn.nthArg=function(e){return e=vs(e),Xr((function(t){return Vr(t,e)}))},zn.omit=Bs,zn.omitBy=function(e,t){return Ns(e,Ba(ui(t)))},zn.once=function(e){return Pa(2,e)},zn.orderBy=function(e,t,n,r){return null==e?[]:(qa(t)||(t=null==t?[]:[t]),qa(n=r?o:n)||(n=null==n?[]:[n]),Ur(e,t,n))},zn.over=dl,zn.overArgs=La,zn.overEvery=pl,zn.overSome=fl,zn.partial=Na,zn.partialRight=_a,zn.partition=Za,zn.pick=Ls,zn.pickBy=Ns,zn.property=hl,zn.propertyOf=function(e){return function(t){return null==e?o:Sr(e,t)}},zn.pull=$i,zn.pullAll=ea,zn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,ui(n,2)):e},zn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,o,n):e},zn.pullAt=ta,zn.range=ml,zn.rangeRight=vl,zn.rearg=za,zn.reject=function(e,t){return(qa(e)?Pt:gr)(e,Ba(ui(t,3)))},zn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ui(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Yr(e,o),n},zn.rest=function(e,t){if("function"!=typeof e)throw new De(i);return Xr(e,t=t===o?t:vs(t))},zn.reverse=na,zn.sampleSize=function(e,t,n){return t=(n?wi(e,t,n):t===o)?1:vs(t),(qa(e)?$n:$r)(e,t)},zn.set=function(e,t,n){return null==e?e:eo(e,t,n)},zn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:eo(e,t,n,r)},zn.shuffle=function(e){return(qa(e)?er:ro)(e)},zn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&wi(e,t,n)?(t=0,n=r):(t=null==t?0:vs(t),n=n===o?r:vs(n)),oo(e,t,n)):[]},zn.sortBy=Oa,zn.sortedUniq=function(e){return e&&e.length?lo(e):[]},zn.sortedUniqBy=function(e,t){return e&&e.length?lo(e,ui(t,2)):[]},zn.split=function(e,t,n){return n&&"number"!=typeof n&&wi(e,t,n)&&(t=n=o),(n=n===o?v:n>>>0)?(e=xs(e))&&("string"==typeof t||null!=t&&!ss(t))&&!(t=uo(t))&&sn(e)?jo(hn(e),0,n):e.split(t,n):[]},zn.spread=function(e,t){if("function"!=typeof e)throw new De(i);return t=null==t?0:bn(vs(t),0),Xr((function(n){var r=n[t],o=jo(n,0,t);return r&&It(o,r),kt(e,this,o)}))},zn.tail=function(e){var t=null==e?0:e.length;return t?oo(e,1,t):[]},zn.take=function(e,t,n){return e&&e.length?oo(e,0,(t=n||t===o?1:vs(t))<0?0:t):[]},zn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,(t=r-(t=n||t===o?1:vs(t)))<0?0:t,r):[]},zn.takeRightWhile=function(e,t){return e&&e.length?mo(e,ui(t,3),!1,!0):[]},zn.takeWhile=function(e,t){return e&&e.length?mo(e,ui(t,3)):[]},zn.tap=function(e,t){return t(e),e},zn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new De(i);return ns(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ta(e,t,{leading:r,maxWait:t,trailing:o})},zn.thru=ma,zn.toArray=hs,zn.toPairs=_s,zn.toPairsIn=zs,zn.toPath=function(e){return qa(e)?Tt(e,Ni):us(e)?[e]:Ao(Li(xs(e)))},zn.toPlainObject=bs,zn.transform=function(e,t,n){var r=qa(e),o=r||Ja(e)||ds(e);if(t=ui(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:ns(e)&&$a(i)?Hn(qe(e)):{}}return(o?Ot:wr)(e,(function(e,r,o){return t(n,e,r,o)})),n},zn.unary=function(e){return Da(e,1)},zn.union=ra,zn.unionBy=oa,zn.unionWith=ia,zn.uniq=function(e){return e&&e.length?po(e):[]},zn.uniqBy=function(e,t){return e&&e.length?po(e,ui(t,2)):[]},zn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?po(e,o,t):[]},zn.unset=function(e,t){return null==e||fo(e,t)},zn.unzip=aa,zn.unzipWith=sa,zn.update=function(e,t,n){return null==e?e:ho(e,t,xo(n))},zn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:ho(e,t,xo(n),r)},zn.values=Hs,zn.valuesIn=function(e){return null==e?[]:Qt(e,Is(e))},zn.without=la,zn.words=$s,zn.wrap=function(e,t){return Na(xo(t),e)},zn.xor=ca,zn.xorBy=ua,zn.xorWith=da,zn.zip=pa,zn.zipObject=function(e,t){return yo(e||[],t||[],nr)},zn.zipObjectDeep=function(e,t){return yo(e||[],t||[],eo)},zn.zipWith=fa,zn.entries=_s,zn.entriesIn=zs,zn.extend=Cs,zn.extendWith=js,cl(zn,zn),zn.add=bl,zn.attempt=el,zn.camelCase=Ws,zn.capitalize=Vs,zn.ceil=xl,zn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=ys(n))===n?n:0),t!==o&&(t=(t=ys(t))===t?t:0),lr(ys(e),t,n)},zn.clone=function(e){return cr(e,4)},zn.cloneDeep=function(e){return cr(e,5)},zn.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:o)},zn.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:o)},zn.conformsTo=function(e,t){return null==t||ur(e,t,Ts(t))},zn.deburr=Us,zn.defaultTo=function(e,t){return null==e||e!==e?t:e},zn.divide=wl,zn.endsWith=function(e,t,n){e=xs(e),t=uo(t);var r=e.length,i=n=n===o?r:lr(vs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},zn.eq=Ha,zn.escape=function(e){return(e=xs(e))&&X.test(e)?e.replace(K,on):e},zn.escapeRegExp=function(e){return(e=xs(e))&&ie.test(e)?e.replace(oe,"\\$&"):e},zn.every=function(e,t,n){var r=qa(e)?Dt:mr;return n&&wi(e,t,n)&&(t=o),r(e,ui(t,3))},zn.find=ya,zn.findIndex=Ui,zn.findKey=function(e,t){return Nt(e,ui(t,3),wr)},zn.findLast=ba,zn.findLastIndex=qi,zn.findLastKey=function(e,t){return Nt(e,ui(t,3),Cr)},zn.floor=Cl,zn.forEach=xa,zn.forEachRight=wa,zn.forIn=function(e,t){return null==e?e:br(e,ui(t,3),Is)},zn.forInRight=function(e,t){return null==e?e:xr(e,ui(t,3),Is)},zn.forOwn=function(e,t){return e&&wr(e,ui(t,3))},zn.forOwnRight=function(e,t){return e&&Cr(e,ui(t,3))},zn.get=Es,zn.gt=Wa,zn.gte=Va,zn.has=function(e,t){return null!=e&&gi(e,t,Er)},zn.hasIn=Ds,zn.head=Yi,zn.identity=il,zn.includes=function(e,t,n,r){e=Ya(e)?e:Hs(e),n=n&&!r?vs(n):0;var o=e.length;return n<0&&(n=bn(o+n,0)),cs(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&zt(e,t,n)>-1},zn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:vs(n);return o<0&&(o=bn(r+o,0)),zt(e,t,o)},zn.inRange=function(e,t,n){return t=ms(t),n===o?(n=t,t=0):n=ms(n),function(e,t,n){return e>=xn(t,n)&&e<bn(t,n)}(e=ys(e),t,n)},zn.invoke=Ms,zn.isArguments=Ua,zn.isArray=qa,zn.isArrayBuffer=Ga,zn.isArrayLike=Ya,zn.isArrayLikeObject=Ka,zn.isBoolean=function(e){return!0===e||!1===e||rs(e)&&Zr(e)==x},zn.isBuffer=Ja,zn.isDate=Xa,zn.isElement=function(e){return rs(e)&&1===e.nodeType&&!as(e)},zn.isEmpty=function(e){if(null==e)return!0;if(Ya(e)&&(qa(e)||"string"==typeof e||"function"==typeof e.splice||Ja(e)||ds(e)||Ua(e)))return!e.length;var t=vi(e);if(t==k||t==P)return!e.size;if(ki(e))return!Br(e).length;for(var n in e)if(Re.call(e,n))return!1;return!0},zn.isEqual=function(e,t){return Tr(e,t)},zn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Tr(e,t,o,n):!!r},zn.isError=Qa,zn.isFinite=function(e){return"number"==typeof e&&Lt(e)},zn.isFunction=$a,zn.isInteger=es,zn.isLength=ts,zn.isMap=os,zn.isMatch=function(e,t){return e===t||Ir(e,t,pi(t))},zn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Ir(e,t,pi(t),n)},zn.isNaN=function(e){return is(e)&&e!=+e},zn.isNative=function(e){if(Si(e))throw new se("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Rr(e)},zn.isNil=function(e){return null==e},zn.isNull=function(e){return null===e},zn.isNumber=is,zn.isObject=ns,zn.isObjectLike=rs,zn.isPlainObject=as,zn.isRegExp=ss,zn.isSafeInteger=function(e){return es(e)&&e>=-9007199254740991&&e<=h},zn.isSet=ls,zn.isString=cs,zn.isSymbol=us,zn.isTypedArray=ds,zn.isUndefined=function(e){return e===o},zn.isWeakMap=function(e){return rs(e)&&vi(e)==T},zn.isWeakSet=function(e){return rs(e)&&"[object WeakSet]"==Zr(e)},zn.join=function(e,t){return null==e?"":qt.call(e,t)},zn.kebabCase=qs,zn.last=Qi,zn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=vs(n))<0?bn(r+i,0):xn(i,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):_t(e,Wt,i,!0)},zn.lowerCase=Gs,zn.lowerFirst=Ys,zn.lt=ps,zn.lte=fs,zn.max=function(e){return e&&e.length?vr(e,il,Or):o},zn.maxBy=function(e,t){return e&&e.length?vr(e,ui(t,2),Or):o},zn.mean=function(e){return Vt(e,il)},zn.meanBy=function(e,t){return Vt(e,ui(t,2))},zn.min=function(e){return e&&e.length?vr(e,il,Nr):o},zn.minBy=function(e,t){return e&&e.length?vr(e,ui(t,2),Nr):o},zn.stubArray=gl,zn.stubFalse=yl,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=jl,zn.nth=function(e,t){return e&&e.length?Vr(e,vs(t)):o},zn.noConflict=function(){return ft._===this&&(ft._=_e),this},zn.noop=ul,zn.now=Ea,zn.pad=function(e,t,n){e=xs(e);var r=(t=vs(t))?fn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return qo(mt(o),n)+e+qo(ht(o),n)},zn.padEnd=function(e,t,n){e=xs(e);var r=(t=vs(t))?fn(e):0;return t&&r<t?e+qo(t-r,n):e},zn.padStart=function(e,t,n){e=xs(e);var r=(t=vs(t))?fn(e):0;return t&&r<t?qo(t-r,n)+e:e},zn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Cn(xs(e).replace(ae,""),t||0)},zn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&wi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=ms(e),t===o?(t=e,e=0):t=ms(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=jn();return xn(e+i*(t-e+ct("1e-"+((i+"").length-1))),t)}return Kr(e,t)},zn.reduce=function(e,t,n){var r=qa(e)?Rt:Gt,o=arguments.length<3;return r(e,ui(t,4),n,o,fr)},zn.reduceRight=function(e,t,n){var r=qa(e)?Ft:Gt,o=arguments.length<3;return r(e,ui(t,4),n,o,hr)},zn.repeat=function(e,t,n){return t=(n?wi(e,t,n):t===o)?1:vs(t),Jr(xs(e),t)},zn.replace=function(){var e=arguments,t=xs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zn.result=function(e,t,n){var r=-1,i=(t=wo(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[Ni(t[r])];a===o&&(r=i,a=n),e=$a(a)?a.call(e):a}return e},zn.round=Sl,zn.runInContext=e,zn.sample=function(e){return(qa(e)?Qn:Qr)(e)},zn.size=function(e){if(null==e)return 0;if(Ya(e))return cs(e)?fn(e):e.length;var t=vi(e);return t==k||t==P?e.size:Br(e).length},zn.snakeCase=Ks,zn.some=function(e,t,n){var r=qa(e)?Bt:io;return n&&wi(e,t,n)&&(t=o),r(e,ui(t,3))},zn.sortedIndex=function(e,t){return ao(e,t)},zn.sortedIndexBy=function(e,t,n){return so(e,t,ui(n,2))},zn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ao(e,t);if(r<n&&Ha(e[r],t))return r}return-1},zn.sortedLastIndex=function(e,t){return ao(e,t,!0)},zn.sortedLastIndexBy=function(e,t,n){return so(e,t,ui(n,2),!0)},zn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=ao(e,t,!0)-1;if(Ha(e[n],t))return n}return-1},zn.startCase=Js,zn.startsWith=function(e,t,n){return e=xs(e),n=null==n?0:lr(vs(n),0,e.length),t=uo(t),e.slice(n,n+t.length)==t},zn.subtract=kl,zn.sum=function(e){return e&&e.length?Yt(e,il):0},zn.sumBy=function(e,t){return e&&e.length?Yt(e,ui(t,2)):0},zn.template=function(e,t,n){var r=zn.templateSettings;n&&wi(e,t,n)&&(t=o),e=xs(e),t=js({},t,r,ei);var i,a,s=js({},t.imports,r.imports,ei),l=Ts(s),c=Qt(s,l),u=0,d=t.interpolate||Ce,p="__p += '",f=Oe((t.escape||Ce).source+"|"+d.source+"|"+(d===ee?he:Ce).source+"|"+(t.evaluate||Ce).source+"|$","g"),h="//# sourceURL="+(Re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++it+"]")+"\n";e.replace(f,(function(t,n,r,o,s,l){return r||(r=o),p+=e.slice(u,l).replace(je,an),n&&(i=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),p+="';\n";var m=Re.call(t,"variable")&&t.variable;if(m){if(pe.test(m))throw new se("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(U,""):p).replace(q,"$1").replace(G,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var v=el((function(){return Se(l,h+"return "+p).apply(o,c)}));if(v.source=p,Qa(v))throw v;return v},zn.times=function(e,t){if((e=vs(e))<1||e>h)return[];var n=v,r=xn(e,v);t=ui(t),e-=v;for(var o=Kt(r,t);++n<e;)t(n);return o},zn.toFinite=ms,zn.toInteger=vs,zn.toLength=gs,zn.toLower=function(e){return xs(e).toLowerCase()},zn.toNumber=ys,zn.toSafeInteger=function(e){return e?lr(vs(e),-9007199254740991,h):0===e?e:0},zn.toString=xs,zn.toUpper=function(e){return xs(e).toUpperCase()},zn.trim=function(e,t,n){if((e=xs(e))&&(n||t===o))return Jt(e);if(!e||!(t=uo(t)))return e;var r=hn(e),i=hn(t);return jo(r,en(r,i),tn(r,i)+1).join("")},zn.trimEnd=function(e,t,n){if((e=xs(e))&&(n||t===o))return e.slice(0,mn(e)+1);if(!e||!(t=uo(t)))return e;var r=hn(e);return jo(r,0,tn(r,hn(t))+1).join("")},zn.trimStart=function(e,t,n){if((e=xs(e))&&(n||t===o))return e.replace(ae,"");if(!e||!(t=uo(t)))return e;var r=hn(e);return jo(r,en(r,hn(t))).join("")},zn.truncate=function(e,t){var n=30,r="...";if(ns(t)){var i="separator"in t?t.separator:i;n="length"in t?vs(t.length):n,r="omission"in t?uo(t.omission):r}var a=(e=xs(e)).length;if(sn(e)){var s=hn(e);a=s.length}if(n>=a)return e;var l=n-fn(r);if(l<1)return r;var c=s?jo(s,0,l).join(""):e.slice(0,l);if(i===o)return c+r;if(s&&(l+=c.length-l),ss(i)){if(e.slice(l).search(i)){var u,d=c;for(i.global||(i=Oe(i.source,xs(me.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var p=u.index;c=c.slice(0,p===o?l:p)}}else if(e.indexOf(uo(i),l)!=l){var f=c.lastIndexOf(i);f>-1&&(c=c.slice(0,f))}return c+r},zn.unescape=function(e){return(e=xs(e))&&J.test(e)?e.replace(Y,vn):e},zn.uniqueId=function(e){var t=++Fe;return xs(e)+t},zn.upperCase=Xs,zn.upperFirst=Qs,zn.each=xa,zn.eachRight=wa,zn.first=Yi,cl(zn,function(){var e={};return wr(zn,(function(t,n){Re.call(zn.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),zn.VERSION="4.17.21",Ot(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zn[e].placeholder=zn})),Ot(["drop","take"],(function(e,t){Un.prototype[e]=function(n){n=n===o?1:bn(vs(n),0);var r=this.__filtered__&&!t?new Un(this):this.clone();return r.__filtered__?r.__takeCount__=xn(n,r.__takeCount__):r.__views__.push({size:xn(n,v),type:e+(r.__dir__<0?"Right":"")}),r},Un.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ot(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Un.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ui(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Ot(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Un.prototype[e]=function(){return this[n](1).value()[0]}})),Ot(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Un.prototype[e]=function(){return this.__filtered__?new Un(this):this[n](1)}})),Un.prototype.compact=function(){return this.filter(il)},Un.prototype.find=function(e){return this.filter(e).head()},Un.prototype.findLast=function(e){return this.reverse().find(e)},Un.prototype.invokeMap=Xr((function(e,t){return"function"==typeof e?new Un(this):this.map((function(n){return Ar(n,e,t)}))})),Un.prototype.reject=function(e){return this.filter(Ba(ui(e)))},Un.prototype.slice=function(e,t){e=vs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Un(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=vs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Un.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Un.prototype.toArray=function(){return this.take(v)},wr(Un.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=zn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(zn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Un,c=s[0],u=l||qa(t),d=function(e){var t=i.apply(zn,It([e],s));return r&&p?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var p=this.__chain__,f=!!this.__actions__.length,h=a&&!p,m=l&&!f;if(!a&&u){t=m?t:new Un(this);var v=e.apply(t,s);return v.__actions__.push({func:ma,args:[d],thisArg:o}),new Vn(v,p)}return h&&m?e.apply(this,s):(v=this.thru(d),h?r?v.value()[0]:v.value():v)})})),Ot(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Pe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);zn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(qa(o)?o:[],e)}return this[n]((function(n){return t.apply(qa(n)?n:[],e)}))}})),wr(Un.prototype,(function(e,t){var n=zn[t];if(n){var r=n.name+"";Re.call(Mn,r)||(Mn[r]=[]),Mn[r].push({name:t,func:n})}})),Mn[Ho(o,2).name]=[{name:"wrapper",func:o}],Un.prototype.clone=function(){var e=new Un(this.__wrapped__);return e.__actions__=Ao(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ao(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ao(this.__views__),e},Un.prototype.reverse=function(){if(this.__filtered__){var e=new Un(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Un.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=qa(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=xn(t,e+a);break;case"takeRight":e=bn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,l=s-a,c=r?s:a-1,u=this.__iteratees__,d=u.length,p=0,f=xn(l,this.__takeCount__);if(!n||!r&&o==l&&f==l)return vo(e,this.__actions__);var h=[];e:for(;l--&&p<f;){for(var m=-1,v=e[c+=t];++m<d;){var g=u[m],y=g.iteratee,b=g.type,x=y(v);if(2==b)v=x;else if(!x){if(1==b)continue e;break e}}h[p++]=v}return h},zn.prototype.at=va,zn.prototype.chain=function(){return ha(this)},zn.prototype.commit=function(){return new Vn(this.value(),this.__chain__)},zn.prototype.next=function(){this.__values__===o&&(this.__values__=hs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var t,n=this;n instanceof Wn;){var r=zi(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Un){var t=e;return this.__actions__.length&&(t=new Un(this)),(t=t.reverse()).__actions__.push({func:ma,args:[na],thisArg:o}),new Vn(t,this.__chain__)}return this.thru(na)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return vo(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,Xe&&(zn.prototype[Xe]=function(){return this}),zn}();ft._=gn,(r=function(){return gn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},85695:function(e,t,n){var r=n(55736),o=n(29948),i=n(77136),a=n(24460);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},17483:function(e,t,n){var r=n(3730),o=n(67030),i=n(29948);e.exports=function(e,t){var n={};return t=i(t,3),o(e,(function(e,o,i){r(n,o,t(e,o,i))})),n}},83424:function(e,t,n){var r=n(42437),o=n(87200),i=n(86507);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},97009:function(e,t,n){var r=n(25591);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},63454:function(e,t,n){var r=n(42437),o=n(12504),i=n(86507);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},79984:function(e){e.exports=function(){}},98171:function(e,t,n){var r=n(5897);e.exports=function(){return r.Date.now()}},89540:function(e,t,n){var r=n(14239),o=n(2199),i=n(75290),a=n(64290);e.exports=function(e){return i(e)?r(a(e)):o(e)}},25872:function(e,t,n){var r=n(49614)();e.exports=r},15701:function(e,t,n){var r=n(40391),o=n(29948),i=n(48471),a=n(24460),s=n(16794);e.exports=function(e,t,n){var l=a(e)?r:i;return n&&s(e,t,n)&&(t=void 0),l(e,o(t,3))}},28264:function(e,t,n){var r=n(25248),o=n(81216),i=n(17788),a=n(16794),s=i((function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])}));e.exports=s},13263:function(e){e.exports=function(){return[]}},53349:function(e){e.exports=function(){return!1}},55766:function(e,t,n){var r=n(90131),o=n(83838);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},97259:function(e,t,n){var r=n(98565),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},61926:function(e,t,n){var r=n(97259);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}},98565:function(e,t,n){var r=n(96218),o=n(83838),i=n(61784),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},47886:function(e,t,n){var r=n(23035);e.exports=function(e){return null==e?"":r(e)}},26501:function(e,t,n){var r=n(29948),o=n(44027);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},37081:function(e,t,n){var r=n(87820)("toUpperCase");e.exports=r},78424:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,i){for(var a,s,l=o(e),c=1;c<arguments.length;c++){for(var u in a=Object(arguments[c]))n.call(a,u)&&(l[u]=a[u]);if(t){s=t(a);for(var d=0;d<s.length;d++)r.call(a,s[d])&&(l[s[d]]=a[s[d]])}}return l}},85915:function(e,t,n){var r=n(41696),o=n(17272),i=n(84519);function a(e){return this instanceof a?(this.nodes=r(e),this):new a(e)}a.prototype.toString=function(){return Array.isArray(this.nodes)?i(this.nodes):""},a.prototype.walk=function(e,t){return o(this.nodes,e,t),this},a.unit=n(45578),a.walk=o,a.stringify=i,e.exports=a},41696:function(e){var t="(".charCodeAt(0),n=")".charCodeAt(0),r="'".charCodeAt(0),o='"'.charCodeAt(0),i="\\".charCodeAt(0),a="/".charCodeAt(0),s=",".charCodeAt(0),l=":".charCodeAt(0),c="*".charCodeAt(0);e.exports=function(e){for(var u,d,p,f,h,m,v,g,y=[],b=e,x=0,w=b.charCodeAt(x),C=b.length,j=[{nodes:y}],S=0,k="",Z="",O="";x<C;)if(w<=32){u=x;do{u+=1,w=b.charCodeAt(u)}while(w<=32);f=b.slice(x,u),p=y[y.length-1],w===n&&S?O=f:p&&"div"===p.type?p.after=f:w===s||w===l||w===a&&b.charCodeAt(u+1)!==c?Z=f:y.push({type:"space",sourceIndex:x,value:f}),x=u}else if(w===r||w===o){u=x,f={type:"string",sourceIndex:x,quote:d=w===r?"'":'"'};do{if(h=!1,~(u=b.indexOf(d,u+1)))for(m=u;b.charCodeAt(m-1)===i;)m-=1,h=!h;else u=(b+=d).length-1,f.unclosed=!0}while(h);f.value=b.slice(x+1,u),y.push(f),x=u+1,w=b.charCodeAt(x)}else if(w===a&&b.charCodeAt(x+1)===c)f={type:"comment",sourceIndex:x},-1===(u=b.indexOf("*/",x))&&(f.unclosed=!0,u=b.length),f.value=b.slice(x+2,u),y.push(f),x=u+2,w=b.charCodeAt(x);else if(w===a||w===s||w===l)f=b[x],y.push({type:"div",sourceIndex:x-Z.length,value:f,before:Z,after:""}),Z="",x+=1,w=b.charCodeAt(x);else if(t===w){u=x;do{u+=1,w=b.charCodeAt(u)}while(w<=32);if(f={type:"function",sourceIndex:x-k.length,value:k,before:b.slice(x+1,u)},x=u,"url"===k&&w!==r&&w!==o){u-=1;do{if(h=!1,~(u=b.indexOf(")",u+1)))for(m=u;b.charCodeAt(m-1)===i;)m-=1,h=!h;else u=(b+=")").length-1,f.unclosed=!0}while(h);v=u;do{v-=1,w=b.charCodeAt(v)}while(w<=32);f.nodes=x!==v+1?[{type:"word",sourceIndex:x,value:b.slice(x,v+1)}]:[],f.unclosed&&v+1!==u?(f.after="",f.nodes.push({type:"space",sourceIndex:v+1,value:b.slice(v+1,u)})):f.after=b.slice(v+1,u),x=u+1,w=b.charCodeAt(x),y.push(f)}else S+=1,f.after="",y.push(f),j.push(f),y=f.nodes=[],g=f;k=""}else if(n===w&&S)x+=1,w=b.charCodeAt(x),g.after=O,O="",S-=1,j.pop(),y=(g=j[S]).nodes;else{u=x;do{w===i&&(u+=1),u+=1,w=b.charCodeAt(u)}while(u<C&&!(w<=32||w===r||w===o||w===s||w===l||w===a||w===t||w===n&&S));f=b.slice(x,u),t===w?k=f:y.push({type:"word",sourceIndex:x,value:f}),x=u}for(x=j.length-1;x;x-=1)j[x].unclosed=!0;return j[0].nodes}},84519:function(e){function t(e,t){var r,o,i=e.type,a=e.value;return t&&void 0!==(o=t(e))?o:"word"===i||"space"===i?a:"string"===i?(r=e.quote||"")+a+(e.unclosed?"":r):"comment"===i?"/*"+a+(e.unclosed?"":"*/"):"div"===i?(e.before||"")+a+(e.after||""):Array.isArray(e.nodes)?(r=n(e.nodes),"function"!==i?r:a+"("+(e.before||"")+r+(e.after||"")+(e.unclosed?"":")")):a}function n(e,n){var r,o;if(Array.isArray(e)){for(r="",o=e.length-1;~o;o-=1)r=t(e[o],n)+r;return r}return t(e,n)}e.exports=n},45578:function(e){var t="-".charCodeAt(0),n="+".charCodeAt(0),r=".".charCodeAt(0),o="e".charCodeAt(0),i="E".charCodeAt(0);e.exports=function(e){for(var a,s=0,l=e.length,c=!1,u=-1,d=!1;s<l;){if((a=e.charCodeAt(s))>=48&&a<=57)d=!0;else if(a===o||a===i){if(u>-1)break;u=s}else if(a===r){if(c)break;c=!0}else{if(a!==n&&a!==t)break;if(0!==s)break}s+=1}return u+1===s&&s--,!!d&&{number:e.slice(0,s),unit:e.slice(s)}}},17272:function(e){e.exports=function e(t,n,r){var o,i,a,s;for(o=0,i=t.length;o<i;o+=1)a=t[o],r||(s=n(a,o,t)),!1!==s&&"function"===a.type&&Array.isArray(a.nodes)&&e(a.nodes,n,r),r&&n(a,o,t)}},21703:function(e,t,n){"use strict";var r=n(33148);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},25262:function(e,t,n){e.exports=n(21703)()},33148:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},40280:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultProps=void 0;var r=n(52258);t.defaultProps={activeIndex:0,animationDuration:400,animationEasingFunction:"ease",animationType:r.AnimationType.SLIDE,autoHeight:!1,autoWidth:!1,autoPlay:!1,autoPlayControls:!1,autoPlayDirection:r.AutoplayDirection.LTR,autoPlayInterval:400,autoPlayStrategy:r.AutoPlayStrategy.DEFAULT,children:void 0,controlsStrategy:r.ControlsStrategy.DEFAULT,disableButtonsControls:!1,disableDotsControls:!1,disableSlideInfo:!0,infinite:!1,innerWidth:void 0,items:void 0,keyboardNavigation:!1,mouseTracking:!1,name:"",paddingLeft:0,paddingRight:0,responsive:void 0,swipeDelta:20,swipeExtraPadding:200,ssrSilentMode:!0,touchTracking:!0,touchMoveDefaultEvents:!0,onInitialized:function(){},onResized:function(){},onResizeEvent:void 0,onSlideChange:function(){},onSlideChanged:function(){}}},92020:function(e,t,n){"use strict";var r=function(){var e=function(t,n){return(e=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i=Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&("get"in o?t.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){e[r=void 0===r?n:r]=t[n]},a=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return a(t,e),t},l=function(e,t,n,r){return new(n=n||Promise)((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},c=function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a={next:s(0),throw:s(1),return:s(2)};return"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){var l=[a,s];if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,(l=o?[2&l[0],o.value]:l)[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(o=0<(o=i.trys).length&&o[o.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3]))i.label=l[1];else if(6===l[0]&&i.label<o[1])i.label=o[1],o=l;else{if(!(o&&i.label<o[2])){o[2]&&i.ops.pop(),i.trys.pop();continue}i.label=o[2],i.ops.push(l)}}l=t.call(e,i)}catch(s){l=[6,s],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}},u=function(e){return e&&e.__esModule?e:{default:e}},d=(Object.defineProperty(t,"__esModule",{value:!0}),u(n(30303))),p=u(n(89549)),f=n(40280),h=s(n(2624)),m=s(n(78619)),v=n(52258),g=(function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)}(n(52258),t),function(e){function t(t){var n=e.call(this,t)||this;return n.swipeListener=null,n._handleKeyboardEvents=function(e){switch(e.code){case"Space":return n.props.autoPlay&&n._handlePlayPauseToggle();case"ArrowLeft":return n.slidePrev(e);case"ArrowRight":return n.slideNext(e)}},n._handleBeforeSlideEnd=function(e){return l(n,void 0,void 0,(function(){var t,n,r;return c(this,(function(o){switch(o.label){case 0:return n=this.state,r=n.activeIndex,t=n.itemsCount,n=n.fadeoutAnimationProcessing,m.shouldRecalculateSlideIndex(r,t)?(r=m.getUpdateSlidePositionIndex(r,t),[4,this._handleUpdateSlidePosition(r)]):[3,2];case 1:return o.sent(),[3,4];case 2:return n?[4,this.setState({fadeoutAnimationIndex:null,fadeoutAnimationPosition:null,fadeoutAnimationProcessing:!1})]:[3,4];case 3:o.sent(),o.label=4;case 4:return this._handleSlideChanged(e),[2]}}))}))},n._handleMouseEnter=function(){var e=n.props.autoPlayStrategy;m.shouldCancelAutoPlayOnHover(e)&&n.state.isAutoPlaying&&(n.isHovered=!0,n._handlePause())},n._handleMouseLeave=function(){n.state.isAutoPlaying&&(n.isHovered=!1,n._handlePlay())},n._handlePause=function(){n._clearAutoPlayTimeout()},n._handlePlayPauseToggle=function(){return l(n,void 0,void 0,(function(){var e;return c(this,(function(t){switch(t.label){case 0:return e=this.state.isAutoPlaying,this.hasUserAction=!0,[4,this.setState({isAutoPlaying:!e,isAutoPlayCanceledOnAction:!0})];case 1:return t.sent(),e?this._handlePause():this._handlePlay(),[2]}}))}))},n._setRootComponentRef=function(e){return n.rootElement=e},n._setStageComponentRef=function(e){return n.stageComponent=e},n._renderStageItem=function(e,t){var r=m.getRenderStageItemStyles(t,n.state),o=m.getRenderStageItemClasses(t,n.state);return d.default.createElement(h.StageItem,{styles:r,className:o,key:"stage-item-".concat(t),item:e})},n._renderSlideInfo=function(){var e=n.props.renderSlideInfo,t=(r=n.state).activeIndex,r=r.itemsCount;return d.default.createElement(h.SlideInfo,{itemsCount:r,activeIndex:t,renderSlideInfo:e})},n.state=m.calculateInitialState(t,null),n.isHovered=!1,n.isAnimationDisabled=!1,n.isTouchMoveProcessStarted=!1,n.cancelTouchAnimations=!1,n.hasUserAction=!1,n.rootElement=null,n.rootComponentDimensions={},n.stageComponent=null,n.startTouchmovePosition=void 0,n.slideTo=n.slideTo.bind(n),n.slidePrev=n.slidePrev.bind(n),n.slideNext=n.slideNext.bind(n),n._handleTouchmove=n._handleTouchmove.bind(n),n._handleTouchend=n._handleTouchend.bind(n),n._handleDotClick=n._handleDotClick.bind(n),n._handleResize=n._handleResize.bind(n),t=m.debounce(n._handleResize,100),n._handleResizeDebounced=t[0],n._cancelResizeDebounced=t[1],n}return r(t,e),t.prototype.componentDidMount=function(){return l(this,void 0,void 0,(function(){return c(this,(function(e){switch(e.label){case 0:return[4,this._setInitialState()];case 1:return e.sent(),this._addEventListeners(),this._setupSwipeHandlers(),this.props.autoPlay&&this._handlePlay(),[2]}}))}))},t.prototype.componentDidUpdate=function(e,t){var n=(g=this.props).activeIndex,r=g.animationDuration,i=g.autoWidth,a=g.children,s=g.infinite,l=g.items,c=g.paddingLeft,u=g.paddingRight,d=g.responsive,p=g.swipeExtraPadding,f=g.mouseTracking,h=g.swipeDelta,m=g.touchTracking,g=g.touchMoveDefaultEvents;a&&e.children!==a?(a=t.activeIndex,t=o(o({},this.props),{activeIndex:a}),this._updateComponent(t)):e.autoWidth!==i||e.infinite!==s||e.items!==l||e.paddingLeft!==c||e.paddingRight!==u||e.responsive!==d||e.swipeExtraPadding!==p?this._updateComponent():(e.animationDuration!==r&&this.setState({animationDuration:r}),e.activeIndex!==n&&this.slideTo(n,v.EventType.UPDATE)),e.swipeDelta===h&&e.mouseTracking===f&&e.touchTracking===m&&e.touchMoveDefaultEvents===g||this._updateSwipeProps(),this.props.keyboardNavigation!==e.keyboardNavigation&&this._updateEventListeners()},t.prototype.componentWillUnmount=function(){this._cancelResizeDebounced(),this._cancelTimeoutAnimations(),this._removeEventListeners()},Object.defineProperty(t.prototype,"eventObject",{get:function(){var e=(t=this.state).itemsInSlide,t=t.activeIndex,n=(r=m.getSlideItemInfo(this.state)).isNextSlideDisabled,r=r.isPrevSlideDisabled;return{item:t,slide:m.getActiveSlideIndex(n,this.state),itemsInSlide:e,isNextSlideDisabled:n,isPrevSlideDisabled:r,type:v.EventType.ACTION}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFadeoutAnimationAllowed",{get:function(){var e=this.state.itemsInSlide,t=(o=this.props).animationType,n=o.paddingLeft,r=o.paddingRight,o=o.autoWidth;return 1===e&&t===v.AnimationType.FADEOUT&&!(n||r||o)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"touchmovePosition",{get:function(){return void 0!==this.startTouchmovePosition?this.startTouchmovePosition:this.state.translate3d},enumerable:!1,configurable:!0}),t.prototype.slideTo=function(e,t){var n,r,o;void 0===e&&(e=0),this._handlePause(),this.isFadeoutAnimationAllowed?(n=m.getUpdateSlidePositionIndex(e,this.state.itemsCount),r=m.getFadeoutAnimationPosition(n,this.state),o=m.getFadeoutAnimationIndex(this.state),this._handleSlideTo({activeIndex:n,fadeoutAnimationIndex:o,fadeoutAnimationPosition:r,eventType:t})):this._handleSlideTo({activeIndex:e,eventType:t})},t.prototype.slidePrev=function(e){this._handlePause(),e&&e.isTrusted&&(this.hasUserAction=!0);var t,n;e=this.state.activeIndex-1;this.isFadeoutAnimationAllowed?(t=-this.state.stageWidth,n=m.getFadeoutAnimationIndex(this.state),this._handleSlideTo({activeIndex:e,fadeoutAnimationIndex:n,fadeoutAnimationPosition:t})):this._handleSlideTo({activeIndex:e})},t.prototype.slideNext=function(e){this._handlePause(),e&&e.isTrusted&&(this.hasUserAction=!0);var t,n;e=this.state.activeIndex+1;this.isFadeoutAnimationAllowed?(t=this.state.stageWidth,n=m.getFadeoutAnimationIndex(this.state),this._handleSlideTo({activeIndex:e,fadeoutAnimationIndex:n,fadeoutAnimationPosition:t})):this._handleSlideTo({activeIndex:e})},t.prototype._addEventListeners=function(){window.addEventListener("resize",this._handleResizeDebounced),this.props.keyboardNavigation&&window.addEventListener("keyup",this._handleKeyboardEvents)},t.prototype._removeEventListeners=function(){this.swipeListener&&this.swipeListener.destroy(),window.removeEventListener("resize",this._handleResizeDebounced),window.removeEventListener("keyup",this._handleKeyboardEvents)},t.prototype._updateEventListeners=function(){this.props.keyboardNavigation?window.addEventListener("keyup",this._handleKeyboardEvents):window.removeEventListener("keyup",this._handleKeyboardEvents)},t.prototype._handleResize=function(e){return l(this,void 0,void 0,(function(){var t,n,r;return c(this,(function(i){switch(i.label){case 0:return n=this.props.onResizeEvent,r=m.getElementDimensions(this.rootElement),(n||m.shouldHandleResizeEvent)(e,this.rootComponentDimensions,r)?(this._cancelTimeoutAnimations(),this.rootComponentDimensions=r,n=this.state,r=n.itemsCount,t=n.isAutoPlaying,n=m.getUpdateSlidePositionIndex(this.state.activeIndex,r),r=m.calculateInitialState(o(o({},this.props),{activeIndex:n}),this.stageComponent),n=m.getTranslate3dProperty(r.activeIndex,r),r=o(o({},r),{translate3d:n,isAutoPlaying:t}),m.animate(this.stageComponent,{position:-n}),[4,this.setState(r)]):[3,2];case 1:i.sent(),this._handleResized(),this.isAnimationDisabled=!1,t&&this._handlePlay(),i.label=2;case 2:return[2]}}))}))},t.prototype._handleTouchmove=function(e,t){var n=t.absY,r=t.absX,o=t.deltaX,i=(t=this.props.swipeDelta,(c=this.state).swipeShiftValue),a=c.swipeLimitMin,s=c.swipeLimitMax,l=c.infinite,c=c.fadeoutAnimationProcessing;if(this.hasUserAction=!0,!(c||!this.isTouchMoveProcessStarted&&m.isVerticalTouchmoveDetected(r,n,t))){this.isTouchMoveProcessStarted||(this._cancelTimeoutAnimations(),this._setTouchmovePosition(),this.isAnimationDisabled=!0,this.isTouchMoveProcessStarted=!0,this._handleSlideChange());var u=m.getTouchmoveTranslatePosition(o,this.touchmovePosition);if(!1===l)return a<u||u<-s?void 0:void m.animate(this.stageComponent,{position:u});if(m.shouldRecalculateSwipePosition(u,a,s))try{!function e(){m.getIsLeftDirection(o)?u+=i:u+=-i,m.shouldRecalculateSwipePosition(u,a,s)&&e()}()}catch(e){m.debug(e)}m.animate(this.stageComponent,{position:u})}},t.prototype._handleTouchend=function(e,t){var n,r,o;t=t.deltaX;this._clearTouchmovePosition(),this.isTouchMoveProcessStarted&&(this.isTouchMoveProcessStarted=!1,n=this.state.animationDuration,r=this.props.animationEasingFunction,o=m.getTranslateXProperty(this.stageComponent),t=m.getSwipeTouchendPosition(this.state,t,o),m.animate(this.stageComponent,{position:t,animationDuration:n,animationEasingFunction:r}),this._handleBeforeTouchEnd(t))},t.prototype._handleBeforeTouchEnd=function(e){var t=this,n=this.state.animationDuration;this.touchEndTimeoutId=window.setTimeout((function(){return l(t,void 0,void 0,(function(){var t,n,r,o=this;return c(this,(function(i){switch(i.label){case 0:return t=m.getSwipeTouchendIndex(e,this.state),n=m.getTranslate3dProperty(t,this.state),m.animate(this.stageComponent,{position:-n}),r=m.getTransitionProperty(),[4,this.setState({activeIndex:t,translate3d:n,transition:r})];case 1:return i.sent(),requestAnimationFrame((function(){return o._handleSlideChanged()})),[2]}}))}))}),n)},t.prototype._handleSlideTo=function(e){var t,n=void 0===(t=e.activeIndex)?0:t,r=void 0===(t=e.fadeoutAnimationIndex)?null:t,o=void 0===(t=e.fadeoutAnimationPosition)?null:t,i=e.eventType;return l(this,void 0,void 0,(function(){var e,t,a,s,l=this;return c(this,(function(c){switch(c.label){case 0:return t=this.props,a=t.infinite,t=t.animationEasingFunction,e=this.state,s=e.itemsCount,e=e.animationDuration,this.isAnimationDisabled||this.state.activeIndex===n||!a&&m.shouldCancelSlideAnimation(n,s)?[2]:(this.isAnimationDisabled=!0,this._cancelTimeoutAnimations(),this._handleSlideChange(i),a=!1,s=m.getTranslate3dProperty(n,this.state),t=null!==r&&null!==o?(a=!0,m.getTransitionProperty()):m.getTransitionProperty({animationDuration:e,animationEasingFunction:t}),[4,this.setState({activeIndex:n,transition:t,translate3d:s,animationDuration:e,fadeoutAnimationIndex:r,fadeoutAnimationPosition:o,fadeoutAnimationProcessing:a})]);case 1:return c.sent(),this.slideEndTimeoutId=window.setTimeout((function(){return l._handleBeforeSlideEnd(i)}),e),[2]}}))}))},t.prototype._handleUpdateSlidePosition=function(e){return l(this,void 0,void 0,(function(){var t,n,r;return c(this,(function(o){switch(o.label){case 0:return t=this.state.animationDuration,n=m.getTranslate3dProperty(e,this.state),r=m.getTransitionProperty({animationDuration:0}),[4,this.setState({activeIndex:e,translate3d:n,transition:r,animationDuration:t,fadeoutAnimationIndex:null,fadeoutAnimationPosition:null,fadeoutAnimationProcessing:!1})];case 1:return o.sent(),[2]}}))}))},t.prototype._handleResized=function(){this.props.onResized&&this.props.onResized(o(o({},this.eventObject),{type:v.EventType.RESIZE}))},t.prototype._handleSlideChange=function(e){this.props.onSlideChange&&(e=e?o(o({},this.eventObject),{type:e}):this.eventObject,this.props.onSlideChange(e))},t.prototype._handleSlideChanged=function(e){return l(this,void 0,void 0,(function(){var t,n,r,i;return c(this,(function(a){switch(a.label){case 0:return n=this.state,t=n.isAutoPlaying,n=n.isAutoPlayCanceledOnAction,r=this.props,i=r.autoPlayStrategy,r=r.onSlideChanged,m.shouldCancelAutoPlayOnAction(i)&&this.hasUserAction&&!n?[4,this.setState({isAutoPlayCanceledOnAction:!0,isAutoPlaying:!1})]:[3,2];case 1:return a.sent(),[3,3];case 2:t&&this._handlePlay(),a.label=3;case 3:return this.isAnimationDisabled=!1,r&&(i=e?o(o({},this.eventObject),{type:e}):this.eventObject,r(i)),[2]}}))}))},t.prototype._handleDotClick=function(e){this.hasUserAction=!0,this.slideTo(e)},t.prototype._handlePlay=function(){this._setAutoPlayInterval()},t.prototype._cancelTimeoutAnimations=function(){this._clearAutoPlayTimeout(),this._clearSlideEndTimeout(),this.clearTouchendTimeout()},t.prototype._clearAutoPlayTimeout=function(){window.clearTimeout(this.autoPlayTimeoutId),this.autoPlayTimeoutId=void 0},t.prototype._clearSlideEndTimeout=function(){clearTimeout(this.slideEndTimeoutId),this.slideEndTimeoutId=void 0},t.prototype.clearTouchendTimeout=function(){clearTimeout(this.touchEndTimeoutId),this.touchEndTimeoutId=void 0},t.prototype._clearTouchmovePosition=function(){this.startTouchmovePosition=void 0},t.prototype._setTouchmovePosition=function(){var e=m.getTranslateXProperty(this.stageComponent);this.startTouchmovePosition=-e},t.prototype._setInitialState=function(){return l(this,void 0,void 0,(function(){var e;return c(this,(function(t){switch(t.label){case 0:return e=m.calculateInitialState(this.props,this.stageComponent),this.rootComponentDimensions=m.getElementDimensions(this.rootElement),[4,this.setState(e)];case 1:return t.sent(),this.props.onInitialized&&this.props.onInitialized(o(o({},this.eventObject),{type:v.EventType.INIT})),[2]}}))}))},t.prototype._setAutoPlayInterval=function(){var e=this,t=(n=this.props).autoPlayDirection,n=n.autoPlayInterval;this.autoPlayTimeoutId=window.setTimeout((function(){e.isHovered||(t===v.AutoplayDirection.RTL?e.slidePrev():e.slideNext())}),n)},t.prototype._setupSwipeHandlers=function(){this.swipeListener=new p.default({element:this.rootElement,delta:this.props.swipeDelta,onSwiping:this._handleTouchmove,onSwiped:this._handleTouchend,rotationAngle:5,mouseTrackingEnabled:this.props.mouseTracking,touchTrackingEnabled:this.props.touchTracking,preventDefaultTouchmoveEvent:!this.props.touchMoveDefaultEvents,preventTrackingOnMouseleave:!0}),this.swipeListener.init()},t.prototype._updateComponent=function(e){var t=this;void 0===e&&(e=this.props),this._cancelTimeoutAnimations(),this.isAnimationDisabled=!1,this.state.isAutoPlaying&&this._handlePlay(),this.setState({clones:m.createClones(e)}),requestAnimationFrame((function(){t.setState(m.calculateInitialState(e,t.stageComponent))}))},t.prototype._updateSwipeProps=function(){this.swipeListener&&this.swipeListener.update({delta:this.props.swipeDelta,mouseTrackingEnabled:this.props.mouseTracking,touchTrackingEnabled:this.props.touchTracking,preventDefaultTouchmoveEvent:!this.props.touchMoveDefaultEvents})},t.prototype._renderDotsNavigation=function(){var e=(t=this.props).renderDotsItem,t=t.controlsStrategy;return d.default.createElement(h.DotsNavigation,{state:this.state,onClick:this._handleDotClick,renderDotsItem:e,controlsStrategy:t})},t.prototype._renderPrevButton=function(){var e=this.props.renderPrevButton,t=m.getSlideItemInfo(this.state).isPrevSlideDisabled;return d.default.createElement(h.PrevNextButton,{name:"prev",onClick:this.slidePrev,isDisabled:t,renderPrevButton:e})},t.prototype._renderNextButton=function(){var e=this.props.renderNextButton,t=m.getSlideItemInfo(this.state).isNextSlideDisabled;return d.default.createElement(h.PrevNextButton,{name:"next",onClick:this.slideNext,isDisabled:t,renderNextButton:e})},t.prototype._renderPlayPauseButton=function(){var e=this.props.renderPlayPauseButton,t=this.state.isAutoPlaying;return d.default.createElement(h.PlayPauseButton,{isPlaying:t,onClick:this._handlePlayPauseToggle,renderPlayPauseButton:e})},t.prototype.render=function(){var e=(r=this.state).translate3d,t=r.clones,n=r.transition,r=r.canUseDom,o=m.shouldDisableDots(this.props,this.state),i=m.shouldDisableButtons(this.props,this.state),a=m.getRenderWrapperStyles(this.props,this.state,this.stageComponent);e=m.getRenderStageStyles({translate3d:e},{transition:n}),n=this.props.ssrSilentMode||r?"":v.Modifiers.SSR,r=m.concatClassnames(v.Classnames.ROOT,n);return d.default.createElement("div",{className:r},d.default.createElement("div",{ref:this._setRootComponentRef},d.default.createElement("div",{style:a,className:v.Classnames.WRAPPER,onMouseEnter:this._handleMouseEnter,onMouseLeave:this._handleMouseLeave},d.default.createElement("ul",{style:e,className:v.Classnames.STAGE,ref:this._setStageComponentRef},t.map(this._renderStageItem)))),o?null:this._renderDotsNavigation(),i?null:this._renderPrevButton(),i?null:this._renderNextButton(),this.props.disableSlideInfo?null:this._renderSlideInfo(),this.props.autoPlayControls?this._renderPlayPauseButton():null)},t.defaultProps=f.defaultProps,t}(d.default.PureComponent));t.default=g},52258:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Modifiers=t.Classnames=t.AutoplayDirection=t.ControlsStrategy=t.AutoPlayStrategy=t.AnimationType=t.EventType=void 0,function(e){e.ACTION="action",e.INIT="init",e.RESIZE="resize",e.UPDATE="update"}(t.EventType||(t.EventType={})),function(e){e.FADEOUT="fadeout",e.SLIDE="slide"}(t.AnimationType||(t.AnimationType={})),function(e){e.DEFAULT="default",e.ALL="all",e.ACTION="action",e.NONE="none"}(t.AutoPlayStrategy||(t.AutoPlayStrategy={})),function(e){e.DEFAULT="default",e.ALTERNATE="alternate",e.RESPONSIVE="responsive"}(t.ControlsStrategy||(t.ControlsStrategy={})),function(e){e.RTL="rtl",e.LTR="ltr"}(t.AutoplayDirection||(t.AutoplayDirection={})),function(e){e.ANIMATED="animated animated-out fadeOut",e.ROOT="alice-carousel",e.WRAPPER="alice-carousel__wrapper",e.STAGE="alice-carousel__stage",e.STAGE_ITEM="alice-carousel__stage-item",e.DOTS="alice-carousel__dots",e.DOTS_ITEM="alice-carousel__dots-item",e.PLAY_BTN="alice-carousel__play-btn",e.PLAY_BTN_ITEM="alice-carousel__play-btn-item",e.PLAY_BTN_WRAPPER="alice-carousel__play-btn-wrapper",e.SLIDE_INFO="alice-carousel__slide-info",e.SLIDE_INFO_ITEM="alice-carousel__slide-info-item",e.BUTTON_PREV="alice-carousel__prev-btn",e.BUTTON_PREV_WRAPPER="alice-carousel__prev-btn-wrapper",e.BUTTON_PREV_ITEM="alice-carousel__prev-btn-item",e.BUTTON_NEXT="alice-carousel__next-btn",e.BUTTON_NEXT_WRAPPER="alice-carousel__next-btn-wrapper",e.BUTTON_NEXT_ITEM="alice-carousel__next-btn-item"}(t.Classnames||(t.Classnames={})),function(e){e.ACTIVE="__active",e.INACTIVE="__inactive",e.CLONED="__cloned",e.CUSTOM="__custom",e.PAUSE="__pause",e.SEPARATOR="__separator",e.SSR="__ssr",e.TARGET="__target"}(t.Modifiers||(t.Modifiers={}))},87999:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isClonedItem=t.isTargetItem=t.isActiveItem=t.getRenderStageItemClasses=void 0;var r=n(52258),o=n(82409),i=n(96140),a=(t.getRenderStageItemClasses=function(e,n){void 0===e&&(e=0);var i=n.fadeoutAnimationIndex,a=(0,t.isActiveItem)(e,n)?r.Modifiers.ACTIVE:"",s=(0,t.isClonedItem)(e,n)?r.Modifiers.CLONED:"";n=(0,t.isTargetItem)(e,n)?r.Modifiers.TARGET:"",e=e===i?r.Classnames.ANIMATED:"";return(0,o.concatClassnames)(r.Classnames.STAGE_ITEM,a,s,n,e)},function(e,t){void 0===e&&(e=0);var n=t.activeIndex,r=t.itemsInSlide,o=t.itemsOffset,a=t.infinite,s=(t=t.autoWidth,(0,i.getShiftIndex)(r,o));return t&&a?e-s===n+o:(t=n+s,a?t<=e&&e<t+r:n<=e&&e<t)}),s=(t.isActiveItem=a,function(e,t){void 0===e&&(e=0);var n=t.activeIndex,r=t.itemsInSlide,o=t.itemsOffset,a=t.infinite;t=t.autoWidth,r=(0,i.getShiftIndex)(r,o);return a?t&&a?e-r===n+o:e===n+r:e===n}),l=(t.isTargetItem=s,function(e,t){void 0===e&&(e=0);var n=t.itemsInSlide,r=t.itemsOffset,o=t.itemsCount,a=t.infinite;t=t.autoWidth;return!!a&&(t&&a?e<n||o-1+n<e:e<(t=(0,i.getShiftIndex)(n,r))||o-1+t<e)});t.isClonedItem=l},82409:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateInitialState=t.getIsStageContentPartial=t.concatClassnames=void 0;var r=n(47271),o=n(96140),i=(t.concatClassnames=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(Boolean).join(" ")},function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=0),!(e=void 0!==e&&e)&&n<=t}),a=(t.getIsStageContentPartial=i,function(e,t,n){void 0===n&&(n=(0,r.canUseDOM)());var i,a,s=void 0===(s=e.animationDuration)?0:s,l=void 0!==(l=e.infinite)&&l,c=void 0!==(c=e.autoPlay)&&c,u=void 0!==(u=e.autoWidth)&&u,d=(0,r.createClones)(e),p=(0,r.getTransitionProperty)(),f=(0,r.getItemsCount)(e),h=(0,r.getItemsOffset)(e),m=(0,r.getItemsInSlide)(f,e),v=(0,o.getStartIndex)(e.activeIndex,f),g=(v=(0,o.getActiveIndex)({startIndex:v,itemsCount:f,infinite:l}),(0,r.getElementDimensions)(t).width),y=(t=(u?(i=(t=(0,r.createAutowidthTransformationSet)(t,g,l)).coords,a=t.content,t):(i=(t=(0,r.createDefaultTransformationSet)(d,g,m,l)).coords,a=t.content,t)).partial,a=a,(0,o.getItemCoords)(-m,i=i).position),b=(0,o.getSwipeLimitMin)({itemsOffset:h,transformationSet:i},e),x=(e=(0,o.getSwipeLimitMax)({itemsCount:f,itemsOffset:h,itemsInSlide:m,transformationSet:i},e),(0,o.getSwipeShiftValue)(f,i));return{activeIndex:v,autoWidth:u,animationDuration:s,clones:d,infinite:l,itemsCount:f,itemsInSlide:m,itemsOffset:h,translate3d:(0,r.getTranslate3dProperty)(v,{itemsInSlide:m,itemsOffset:h,transformationSet:i,autoWidth:u,infinite:l}),stageWidth:g,stageContentWidth:a,initialStageHeight:0,isStageContentPartial:t,isAutoPlaying:c,isAutoPlayCanceledOnAction:!1,transformationSet:i,transition:p,fadeoutAnimationIndex:null,fadeoutAnimationPosition:null,fadeoutAnimationProcessing:!1,swipeLimitMin:b,swipeLimitMax:e,swipeAllowedPositionMax:y,swipeShiftValue:x,canUseDom:n}});t.calculateInitialState=a},10821:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shouldCancelAutoPlayOnHover=t.shouldCancelAutoPlayOnAction=t.getItemIndexForDotNavigation=t.checkIsTheLastDotIndex=t.getDotsNavigationLength=t.hasDotForEachSlide=t.isStrategy=t.shouldDisableButtons=t.shouldDisableDots=t.shouldDisableControls=void 0;var r=n(52258);function o(e,n){e=(e||{}).controlsStrategy;var o=(n=n||{}).itemsInSlide,i=n.itemsCount;n=n.autoWidth;if((0,t.isStrategy)(e,r.ControlsStrategy.RESPONSIVE))return!n&&o===i}t.shouldDisableControls=o,t.shouldDisableDots=function(e,t){return e.disableDotsControls||o(e,t)},t.shouldDisableButtons=function(e,t){return e.disableButtonsControls||!e.infinite&&o(e,t)};var i=(t.isStrategy=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=""),Boolean(e&&e.includes(t))},function(e,n){return e||(0,t.isStrategy)(n,r.ControlsStrategy.ALTERNATE)}),a=(t.hasDotForEachSlide=i,function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=1),(n=void 0!==n&&n)?e:0!==Number(t)&&Math.ceil(e/t)||0}),s=(t.getDotsNavigationLength=a,function(e,t,n){return!t&&e===n-1}),l=(t.checkIsTheLastDotIndex=s,function(e,t,n,r){return(t?n-r:e*r)||0}),c=(t.getItemIndexForDotNavigation=l,function(e){return(e=void 0===e?"":e)===r.AutoPlayStrategy.ACTION||e===r.AutoPlayStrategy.ALL}),u=(t.shouldCancelAutoPlayOnAction=c,function(e){return(e=void 0===e?"":e)===r.AutoPlayStrategy.DEFAULT||e===r.AutoPlayStrategy.ALL});t.shouldCancelAutoPlayOnHover=u},47571:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debug=void 0,t.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}},47271:function(e,t,n){"use strict";var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=(Object.defineProperty(t,"__esModule",{value:!0}),t.getItemsInSlide=t.canUseDOM=t.getTransformMatrix=t.getTranslateXProperty=t.getTouchmoveTranslatePosition=t.getTranslate3dProperty=t.getRenderStageItemStyles=t.getRenderStageStyles=t.getTransitionProperty=t.getRenderWrapperStyles=t.animate=t.shouldHandleResizeEvent=t.getElementFirstChild=t.getElementCursor=t.getAutoheightProperty=t.getElementDimensions=t.getItemWidth=t.createDefaultTransformationSet=t.createAutowidthTransformationSet=t.isElement=t.createClones=t.getItemsOffset=t.getItemsCount=t.getSlides=void 0,n(32623)),i=n(96140),a=(t.getSlides=function(e){var t=e.children;e=e.items;return t?t.length?t:[t]:void 0===e?[]:e},function(e){return(0,t.getSlides)(e).length}),s=(t.getItemsCount=a,function(e){var t=e.infinite,n=e.paddingRight;e=e.paddingLeft;return t&&(e||n)?1:0}),l=(t.getItemsOffset=s,function(e){var n,r,o,i,a=(0,t.getSlides)(e);return e.infinite?(n=(0,t.getItemsCount)(e),i=(0,t.getItemsOffset)(e),e=(0,t.getItemsInSlide)(n,e),o=Math.min(e,n)+i,r=a.slice(0,o),o=a.slice(-o),i&&e===n&&(i=a[0],e=a.slice(-1)[0],o.unshift(e),r.push(i)),o.concat(a,r)):a}),c=(t.createClones=l,function(e){try{return e instanceof Element||e instanceof HTMLDocument}catch(e){return!1}}),u=(t.isElement=c,function(e,n,r){void 0===n&&(n=0),void 0===r&&(r=!1);var i=0,a=!0,s=[];return(0,t.isElement)(e)&&(s=Array.from((null==e?void 0:e.children)||[]).reduce((function(e,t,r){var o=0,s=e[r=r-1];t=f(null==t?void 0:t.firstChild).width;return a=(i+=t=void 0===t?0:t)<=n,s&&(o=0==r?s.width:s.width+s.position),e.push({position:o,width:t}),e}),[]),r||(s=a?(0,o.mapPartialCoords)(s):(e=i-n,(0,o.mapPositionCoords)(s,e)))),{coords:s,content:i,partial:a}}),d=(t.createAutowidthTransformationSet=u,function(e,n,r,i){void 0===i&&(i=!1);var a=0,s=!0,l=[],c=(0,t.getItemWidth)(n,r);return l=e.reduce((function(e,t,r){var o=0;r=e[r-1];return s=(a+=c)<=n,r&&(o=c+r.position||0),e.push({width:c,position:o}),e}),[]),{coords:l=i?l:s?(0,o.mapPartialCoords)(l):(r=a-n,(0,o.mapPositionCoords)(l,r)),content:a,partial:s}}),p=(t.createDefaultTransformationSet=d,function(e,t){return 0<t?e/t:e});function f(e){return e&&e.getBoundingClientRect?{width:(e=e.getBoundingClientRect()).width,height:e.height}:{width:0,height:0}}t.getItemWidth=p,t.getElementDimensions=f;var h=(t.getAutoheightProperty=function(e,n,r){n=(0,t.getElementCursor)(n,r),r=(0,t.getElementFirstChild)(e,n);if((0,t.isElement)(r))return e=window.getComputedStyle(r),n=parseFloat(e.marginTop),e=parseFloat(e.marginBottom),Math.ceil(r.offsetHeight+n+e)},function(e,n){var r=n.activeIndex;n=n.itemsInSlide;return e.infinite?r+n+(0,t.getItemsOffset)(e):r}),m=(t.getElementCursor=h,function(e,t){return(e=e&&e.children||[])[t]&&e[t].firstChild||null});t.getElementFirstChild=m,t.shouldHandleResizeEvent=function(e,t,n){return(t=void 0===t?{}:t).width!==(n=void 0===n?{}:n).width},t.animate=function(e,n){var r=void 0===(r=(n=n||{}).position)?0:r,o=void 0===(o=n.animationDuration)?0:o;return n=void 0===(n=n.animationEasingFunction)?"ease":n,e&&(0,t.isElement)(e)&&(e.style.transition="transform ".concat(o,"ms ").concat(n," 0ms"),e.style.transform="translate3d(".concat(r,"px, 0, 0)")),e};var v=(t.getRenderWrapperStyles=function(e,n,r){var o=(s=e||{}).paddingLeft,i=s.paddingRight,a=s.autoHeight,s=s.animationDuration;return{height:a=a?(0,t.getAutoheightProperty)(r,e,n):void 0,transition:a?"height ".concat(s,"ms"):void 0,paddingLeft:"".concat(o,"px"),paddingRight:"".concat(i,"px")}},function(e){var t=(e=e||{}).animationDuration;e=void 0===(e=e.animationEasingFunction)?"ease":e;return"transform ".concat(void 0===t?0:t,"ms ").concat(e," 0ms")}),g=(t.getTransitionProperty=v,function(e,t){return e=(e||{}).translate3d,e="translate3d(".concat(-(void 0===e?0:e),"px, 0, 0)"),r(r({},t),{transform:e})}),y=(t.getRenderStageStyles=g,function(e,t){var n=t.transformationSet,r=t.fadeoutAnimationIndex,o=t.fadeoutAnimationPosition,i=t.fadeoutAnimationProcessing;t=t.animationDuration,n=(n[e]||{}).width;return i&&r===e?{transform:"translateX(".concat(o,"px)"),animationDuration:"".concat(t,"ms"),width:"".concat(n,"px")}:{width:n}}),b=(t.getRenderStageItemStyles=y,function(e,t){var n=e,r=t.infinite,o=t.itemsOffset,a=t.itemsInSlide;return((void 0===(t=t.transformationSet)?[]:t)[n=r?e+(0,i.getShiftIndex)(void 0===a?0:a,void 0===o?0:o):n]||{}).position||0}),x=(t.getTranslate3dProperty=b,function(e,t){return-(t-Math.floor(e))});function w(e){return e&&(0,t.isElement)(e)&&window.getComputedStyle(e).transform.match(/(-?[0-9.]+)/g)||[]}t.getTouchmoveTranslatePosition=x,t.getTranslateXProperty=function(e){return e=(e=w(e))&&e[4]||"",Number(e)},t.getTransformMatrix=w;var C=(t.canUseDOM=function(){var e;try{return Boolean(null==(e=null===window||void 0===window?void 0:window.document)?void 0:e.createElement)}catch(e){return!1}},function(e,n){var r,o=1,i=n.responsive,a=n.autoWidth,s=n.infinite;n=n.innerWidth;return void 0!==a&&a?void 0!==s&&s?e:o:(i&&(a=Object.keys(i)).length&&(n||(0,t.canUseDOM)())&&(r=void 0===n?window.innerWidth:n,a.forEach((function(t){var n;Number(t)<=r&&(n=(t=i[t]).items,t=t.itemsFit,o="contain"===(void 0===t?"fill":t)?n:Math.min(n,e))}))),o||1)});t.getItemsInSlide=C},78619:function(e,t,n){"use strict";var r=Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&("get"in o?t.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){e[r=void 0===r?n:r]=t[n]},o=function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(82409),t),o(n(47271),t),o(n(87999),t),o(n(56890),t),o(n(96140),t),o(n(47571),t),o(n(99582),t),o(n(10821),t),o(n(32623),t)},32623:function(e,t){"use strict";var n=function(){return(n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},r=(Object.defineProperty(t,"__esModule",{value:!0}),t.mapPositionCoords=t.mapPartialCoords=void 0,function(e){return e.map((function(e){return{width:e.width,position:0}}))}),o=(t.mapPartialCoords=r,function(e,t){return void 0===t&&(t=0),e.map((function(e){return e.position>t?n(n({},e),{position:t}):e}))});t.mapPositionCoords=o},96140:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isVerticalTouchmoveDetected=t.getFadeoutAnimationPosition=t.getFadeoutAnimationIndex=t.getSwipeTouchendIndex=t.getSwipeTouchendPosition=t.getSwipeTransformationCursor=t.getTransformationItemIndex=t.getSwipeShiftValue=t.getItemCoords=t.getIsLeftDirection=t.shouldRecalculateSwipePosition=t.getSwipeLimitMax=t.getSwipeLimitMin=t.shouldCancelSlideAnimation=t.shouldRecalculateSlideIndex=t.getUpdateSlidePositionIndex=t.getActiveIndex=t.getStartIndex=t.getShiftIndex=void 0;var n=(t.getShiftIndex=function(e,t){return(e=void 0===e?0:e)+(void 0===t?0:t)},function(e,t){if(void 0===e&&(e=0),t=void 0===t?0:t){if(t<=e)return t-1;if(0<e)return e}return 0}),r=(t.getStartIndex=n,function(e){var n=void 0===(n=e.startIndex)?0:n,r=e.itemsCount;return void 0!==(e=e.infinite)&&e?n:(0,t.getStartIndex)(n,void 0===r?0:r)}),o=(t.getActiveIndex=r,function(e,t){return e<0?t-1:t<=e?0:e}),i=(t.getUpdateSlidePositionIndex=o,function(e,t){return e<0||t<=e}),a=(t.shouldRecalculateSlideIndex=i,function(e,t){return e<0||t<=e}),s=(t.shouldCancelSlideAnimation=a,function(e,t){var n=e.itemsOffset,r=(e=void 0===(e=e.transformationSet)?[]:e,t.infinite);t=t.swipeExtraPadding;return r?(e[void 0===n?0:n]||{}).position:(r=(e[0]||{}).width,Math.min(void 0===t?0:t,void 0===r?0:r))}),l=(t.getSwipeLimitMin=s,function(e,n){var r=n.infinite,o=(n=void 0===(n=n.swipeExtraPadding)?0:n,e.itemsCount),i=e.itemsOffset,a=void 0===(a=e.itemsInSlide)?1:a;e=void 0===(e=e.transformationSet)?[]:e;return r?(e[(void 0===o?1:o)+(0,t.getShiftIndex)(a,void 0===i?0:i)]||{}).position||0:(0,t.getItemCoords)(-a,e).position+n}),c=(t.getSwipeLimitMax=l,function(e,t,n){return-t<=e||Math.abs(e)>=n}),u=(t.shouldRecalculateSwipePosition=c,function(e){return(e=void 0===e?0:e)<0}),d=(t.getIsLeftDirection=u,function(e,t){return(t=void 0===t?[]:t).slice(e=void 0===e?0:e)[0]||{position:0,width:0}}),p=(t.getItemCoords=d,function(e,n){return void 0===e&&(e=0),void 0===n&&(n=[]),(0,t.getItemCoords)(e,n).position}),f=(t.getSwipeShiftValue=p,function(e,t){return void 0===t&&(t=0),(e=void 0===e?[]:e).findIndex((function(e){return e.position>=Math.abs(t)}))}),h=(t.getTransformationItemIndex=f,function(e,n,r){return void 0===e&&(e=[]),void 0===n&&(n=0),void 0===r&&(r=0),e=(0,t.getTransformationItemIndex)(e,n),(0,t.getIsLeftDirection)(r)?e:e-1}),m=(t.getSwipeTransformationCursor=h,function(e,n,r){void 0===r&&(r=0);var o=e.infinite,i=e.autoWidth,a=e.isStageContentPartial,s=e.swipeAllowedPositionMax;e=e.transformationSet,r=(0,t.getSwipeTransformationCursor)(e,r,n),n=(0,t.getItemCoords)(r,e).position;if(!o){if(i&&a)return 0;if(s<n)return-s}return-n}),v=(t.getSwipeTouchendPosition=m,function(e,n){var r=n.transformationSet,o=n.itemsInSlide,i=n.itemsOffset,a=n.itemsCount,s=n.infinite,l=n.isStageContentPartial,c=n.activeIndex;n=n.translate3d;return s||!l&&n!==Math.abs(e)?(l=(0,t.getTransformationItemIndex)(r,e),s?l<(n=(0,t.getShiftIndex)(o,i))?a-o-i+l:n+a<=l?l-(n+a):l-n:l):c}),g=(t.getSwipeTouchendIndex=v,function(e){var t=e.infinite,n=e.activeIndex;e=e.itemsInSlide;return t?n+e:n}),y=(t.getFadeoutAnimationIndex=g,function(e,t){var n=t.activeIndex;t=t.stageWidth;return e<n?(n-e)*-t||0:(e-n)*t||0}),b=(t.getFadeoutAnimationPosition=y,function(e,t,n){return e<(n=void 0===n?0:n)||e<.1*t});t.isVerticalTouchmoveDetected=b},99582:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSlideItemInfo=t.getSlideInfo=t.getSlideIndexForMultipleItems=t.getSlideIndexForNonMultipleItems=t.getActiveSlideDotsLength=t.getActiveSlideIndex=void 0;var n=(t.getActiveSlideIndex=function(e,n){var r=(n=n||{}).activeIndex,o=n.itemsInSlide;n=n.itemsCount,r+=o;return 1===o?(0,t.getSlideIndexForNonMultipleItems)(r,o,n):(0,t.getSlideIndexForMultipleItems)(r,o,n,e)},function(e,t){var n;return void 0===t&&(t=1),(e=void 0===e?0:e)&&t?(n=Math.floor(e/t),e%t==0?n-1:n):0}),r=(t.getActiveSlideDotsLength=n,function(e,t,n){return e<t?n-t:n<e?0:e-1}),o=(t.getSlideIndexForNonMultipleItems=r,function(e,n,r,o){var i=(0,t.getActiveSlideDotsLength)(r,n);return e===r+n?0:o||e<n&&0!==e?i:0===e?r%n==0?i:i-1:0<n?Math.floor(e/n)-1:0}),i=(t.getSlideIndexForMultipleItems=o,function(e,t){return void 0===t&&(t=0),(e=(e=void 0===e?0:e)+1)<1?e=t:t<e&&(e=1),{item:e,itemsCount:t}}),a=(t.getSlideInfo=i,function(e){var t=(e=e||{}).itemsInSlide,n=e.activeIndex,r=e.infinite,o=e.itemsCount;return e.isStageContentPartial?{isPrevSlideDisabled:!0,isNextSlideDisabled:!0}:{isPrevSlideDisabled:!1===r&&0===n,isNextSlideDisabled:!1===r&&o-t<=n}});t.getSlideItemInfo=a},56890:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=void 0,t.debounce=function(e,t){function n(){r&&(clearTimeout(r),r=void 0)}void 0===t&&(t=0);var r=void 0;return[function(){for(var o=this,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];n(),r=window.setTimeout((function(){e.apply(o,i),r=void 0}),t)},n]}},62515:function(e,t,n){"use strict";var r=(Object.defineProperty(t,"__esModule",{value:!0}),t.DotsNavigation=void 0,function(e){return e&&e.__esModule?e:{default:e}}(n(30303))),o=n(52258),i=n(78619);t.DotsNavigation=function(e){var t=e.state,n=e.onClick,a=e.onMouseEnter,s=e.onMouseLeave,l=e.controlsStrategy,c=e.renderDotsItem,u=t.itemsCount,d=t.itemsInSlide,p=t.infinite,f=(e=t.autoWidth,t.activeIndex),h=(0,i.getSlideItemInfo)(t).isNextSlideDisabled,m=(0,i.hasDotForEachSlide)(e,l),v=(0,i.getDotsNavigationLength)(u,d,m);return r.default.createElement("ul",{className:o.Classnames.DOTS},Array.from({length:u}).map((function(e,l){var g,y,b;if(l<v)return y=(0,i.checkIsTheLastDotIndex)(l,Boolean(p),v),g=(0,i.getItemIndexForDotNavigation)(l,y,u,d),y=(0,i.getActiveSlideIndex)(h,t),m&&((y=f)<0?y=u-1:u<=f&&(y=0),g=l),y=y===l?o.Modifiers.ACTIVE:"",b=c?o.Modifiers.CUSTOM:"",b=(0,i.concatClassnames)(o.Classnames.DOTS_ITEM,y,b),r.default.createElement("li",{key:"dot-item-".concat(l),onMouseEnter:a,onMouseLeave:s,onClick:function(){return n(g)},className:b},c&&c({isActive:Boolean(y),activeIndex:l}))})))}},26842:function(e,t,n){"use strict";var r=(Object.defineProperty(t,"__esModule",{value:!0}),t.PlayPauseButton=void 0,function(e){return e&&e.__esModule?e:{default:e}}(n(30303))),o=n(52258),i=n(78619);t.PlayPauseButton=function(e){var t=e.isPlaying,n=e.onClick;return"function"==typeof(e=e.renderPlayPauseButton)?r.default.createElement("div",{className:o.Classnames.PLAY_BTN,onClick:n},e({isPlaying:t})):(e=t?o.Modifiers.PAUSE:"",t=(0,i.concatClassnames)(o.Classnames.PLAY_BTN_ITEM,e),r.default.createElement("div",{className:o.Classnames.PLAY_BTN},r.default.createElement("div",{className:o.Classnames.PLAY_BTN_WRAPPER},r.default.createElement("div",{onClick:n,className:t}))))}},25285:function(e,t,n){"use strict";var r=(Object.defineProperty(t,"__esModule",{value:!0}),t.PrevNextButton=void 0,function(e){return e&&e.__esModule?e:{default:e}}(n(30303))),o=n(52258),i=n(78619);t.PrevNextButton=function(e){var t,n=e.name,a=e.isDisabled,s=e.onClick,l=e.renderPrevButton;e=e.renderNextButton;return"function"==typeof l?r.default.createElement("div",{className:o.Classnames.BUTTON_PREV,onClick:s},l({isDisabled:a})):"function"==typeof e?r.default.createElement("div",{className:o.Classnames.BUTTON_NEXT,onClick:s},e({isDisabled:a})):(e=(l="prev"===n)?"<":">",n=l?o.Classnames.BUTTON_PREV:o.Classnames.BUTTON_NEXT,t=l?o.Classnames.BUTTON_PREV_WRAPPER:o.Classnames.BUTTON_NEXT_WRAPPER,l=l?o.Classnames.BUTTON_PREV_ITEM:o.Classnames.BUTTON_NEXT_ITEM,a=a?o.Modifiers.INACTIVE:"",l=(0,i.concatClassnames)(l,a),r.default.createElement("div",{className:n},r.default.createElement("div",{className:t},r.default.createElement("p",{className:l,onClick:function(e){return s(e)}},r.default.createElement("span",{"data-area":e})))))}},46286:function(e,t,n){"use strict";var r=(Object.defineProperty(t,"__esModule",{value:!0}),t.SlideInfo=void 0,function(e){return e&&e.__esModule?e:{default:e}}(n(30303))),o=n(52258),i=n(78619);t.SlideInfo=function(e){var t=e.activeIndex,n=e.itemsCount;e=e.renderSlideInfo,t=(0,i.getSlideInfo)(t,n).item;return"function"==typeof e?r.default.createElement("div",{className:o.Classnames.SLIDE_INFO},e({item:t,itemsCount:n})):(e=(0,i.concatClassnames)(o.Classnames.SLIDE_INFO_ITEM,o.Modifiers.SEPARATOR),r.default.createElement("div",{className:o.Classnames.SLIDE_INFO},r.default.createElement("span",{className:o.Classnames.SLIDE_INFO_ITEM},t),r.default.createElement("span",{className:e},"/"),r.default.createElement("span",{className:o.Classnames.SLIDE_INFO_ITEM},n)))}},82034:function(e,t,n){"use strict";var r=(Object.defineProperty(t,"__esModule",{value:!0}),t.StageItem=void 0,function(e){return e&&e.__esModule?e:{default:e}}(n(30303)));t.StageItem=function(e){var t=e.item,n=e.className;e=e.styles;return r.default.createElement("li",{style:e,className:n},t)}},2624:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PrevNextButton=t.PlayPauseButton=t.DotsNavigation=t.StageItem=t.SlideInfo=void 0;var r=n(46286),o=(Object.defineProperty(t,"SlideInfo",{enumerable:!0,get:function(){return r.SlideInfo}}),n(82034)),i=(Object.defineProperty(t,"StageItem",{enumerable:!0,get:function(){return o.StageItem}}),n(62515)),a=(Object.defineProperty(t,"DotsNavigation",{enumerable:!0,get:function(){return i.DotsNavigation}}),n(26842)),s=(Object.defineProperty(t,"PlayPauseButton",{enumerable:!0,get:function(){return a.PlayPauseButton}}),n(25285));Object.defineProperty(t,"PrevNextButton",{enumerable:!0,get:function(){return s.PrevNextButton}})},56999:function(e,t,n){e.exports=function(e,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=n(e),o=n(t);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e,t){if(null==e)return{};var n,r=function(e,t){if(null==e)return{};for(var n,r={},o=Object.keys(e),i=0;i<o.length;i++)n=o[i],0<=t.indexOf(n)||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols)for(var o=Object.getOwnPropertySymbols(e),i=0;i<o.length;i++)n=o[i],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);return r}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var e,r,o=u(t);return!(r=n?(e=u(this).constructor,Reflect.construct(o,arguments,e)):o.apply(this,arguments))||"object"!=typeof r&&"function"!=typeof r?f(this):r}}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||v(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){if(e){if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y(e,t){return new Promise((function(n,r){var o,i=new Image;i.onload=function(){return n(i)},i.onerror=r,0==(null!==(o=e)&&!!o.match(/^\s*data:([a-z]+\/[a-z]+(;[a-z-]+=[a-z-]+)?)?(;base64)?,[a-z0-9!$&',()*+;=\-._~:@/?%\s]*\s*$/i))&&t&&(i.crossOrigin=t),i.src=e}))}var b,x=!("undefined"==typeof window||"undefined"==typeof navigator||!("ontouchstart"in window||0<navigator.msMaxTouchPoints)),w="undefined"!=typeof File,C={touch:{react:{down:"onTouchStart",mouseDown:"onMouseDown",drag:"onTouchMove",move:"onTouchMove",mouseMove:"onMouseMove",up:"onTouchEnd",mouseUp:"onMouseUp"},native:{down:"touchstart",mouseDown:"mousedown",drag:"touchmove",move:"touchmove",mouseMove:"mousemove",up:"touchend",mouseUp:"mouseup"}},desktop:{react:{down:"onMouseDown",drag:"onDragOver",move:"onMouseMove",up:"onMouseUp"},native:{down:"mousedown",drag:"dragStart",move:"mousemove",up:"mouseup"}}},j=x?C.touch:C.desktop,S="undefined"!=typeof window&&window.devicePixelRatio?window.devicePixelRatio:1,k={x:.5,y:.5},Z=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(l,o.default.Component);var e,t,n,r=h(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),a(f(t=r.call(this,e)),"state",{drag:!1,my:null,mx:null,image:k}),a(f(t),"handleImageReady",(function(e){var n=t.getInitialSize(e.width,e.height);n.resource=e,n.x=.5,n.y=.5,n.backgroundColor=t.props.backgroundColor,t.setState({drag:!1,image:n},t.props.onImageReady),t.props.onLoadSuccess(n)})),a(f(t),"clearImage",(function(){t.canvas.getContext("2d").clearRect(0,0,t.canvas.width,t.canvas.height),t.setState({image:k})})),a(f(t),"handleMouseDown",(function(e){(e=e||window.event).preventDefault(),t.setState({drag:!0,mx:null,my:null})})),a(f(t),"handleMouseUp",(function(){t.state.drag&&(t.setState({drag:!1}),t.props.onMouseUp())})),a(f(t),"handleMouseMove",(function(e){var n,r,o,i,a,s,l,u,d,p,f,h,m,v,g,y;e=e||window.event,!1!==t.state.drag&&(e.preventDefault(),o={mx:n=e.targetTouches?e.targetTouches[0].pageX:e.clientX,my:r=e.targetTouches?e.targetTouches[0].pageY:e.clientY},y=t.props.rotate,y=(y%=360)<0?y+360:y,t.state.mx&&t.state.my&&(i=t.state.mx-n,a=t.state.my-r,s=t.state.image.width*t.props.scale,l=t.state.image.height*t.props.scale,d=(u=t.getCroppingRect()).x,p=u.y,d*=s,p*=l,f=function(e){return e*(Math.PI/180)},h=Math.cos(f(y)),v=p+-i*(m=Math.sin(f(y)))+a*h,g={x:(d+i*h+a*m)/s+1/t.props.scale*t.getXScale()/2,y:v/l+1/t.props.scale*t.getYScale()/2},t.props.onPositionChange(g),o.image=c(c({},t.state.image),g)),t.setState(o),t.props.onMouseMove(e))})),a(f(t),"setCanvas",(function(e){t.canvas=e})),t.canvas=null,t}return e=l,(t=[{key:"componentDidMount",value:function(){this.props.disableHiDPIScaling&&(S=1);var e,t,n=this.canvas.getContext("2d");this.props.image&&this.loadImage(this.props.image),this.paint(n),document&&(e=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){e=!1}return e}()&&{passive:!1},t=j.native,document.addEventListener(t.move,this.handleMouseMove,e),document.addEventListener(t.up,this.handleMouseUp,e),x&&(document.addEventListener(t.mouseMove,this.handleMouseMove,e),document.addEventListener(t.mouseUp,this.handleMouseUp,e)))}},{key:"componentDidUpdate",value:function(e,t){this.props.image&&this.props.image!==e.image||this.props.width!==e.width||this.props.height!==e.height||this.props.backgroundColor!==e.backgroundColor?this.loadImage(this.props.image):this.props.image||t.image===k||this.clearImage();var n=this.canvas.getContext("2d");n.clearRect(0,0,this.canvas.width,this.canvas.height),this.paint(n),this.paintImage(n,this.state.image,this.props.border),e.image===this.props.image&&e.width===this.props.width&&e.height===this.props.height&&e.position===this.props.position&&e.scale===this.props.scale&&e.rotate===this.props.rotate&&t.my===this.state.my&&t.mx===this.state.mx&&t.image.x===this.state.image.x&&t.image.y===this.state.image.y&&t.backgroundColor===this.state.backgroundColor||this.props.onImageChange()}},{key:"componentWillUnmount",value:function(){var e;document&&(e=j.native,document.removeEventListener(e.move,this.handleMouseMove,!1),document.removeEventListener(e.up,this.handleMouseUp,!1),x&&(document.removeEventListener(e.mouseMove,this.handleMouseMove,!1),document.removeEventListener(e.mouseUp,this.handleMouseUp,!1)))}},{key:"isVertical",value:function(){return!this.props.disableCanvasRotation&&this.props.rotate%180!=0}},{key:"getBorders",value:function(e){var t=0<arguments.length&&void 0!==e?e:this.props.border;return Array.isArray(t)?t:[t,t]}},{key:"getDimensions",value:function(){var e=this.props,t=e.width,n=e.height,r=e.rotate,o=e.border,i={},a=m(this.getBorders(o),2),s=a[0],l=a[1],c=t,u=n;return this.isVertical()?(i.width=u,i.height=c):(i.width=c,i.height=u),i.width+=2*s,i.height+=2*l,{canvas:i,rotate:r,width:t,height:n,border:o}}},{key:"getImage",value:function(){var e=this.getCroppingRect(),t=this.state.image;e.x*=t.resource.width,e.y*=t.resource.height,e.width*=t.resource.width,e.height*=t.resource.height;var n=document.createElement("canvas");this.isVertical()?(n.width=e.height,n.height=e.width):(n.width=e.width,n.height=e.height);var r=n.getContext("2d");return r.translate(n.width/2,n.height/2),r.rotate(this.props.rotate*Math.PI/180),r.translate(-n.width/2,-n.height/2),this.isVertical()&&r.translate((n.width-n.height)/2,(n.height-n.width)/2),t.backgroundColor&&(r.fillStyle=t.backgroundColor,r.fillRect(-e.x,-e.y,t.resource.width,t.resource.height)),r.drawImage(t.resource,-e.x,-e.y),n}},{key:"getImageScaledToCanvas",value:function(){var e=this.getDimensions(),t=e.width,n=e.height,r=document.createElement("canvas");return this.isVertical()?(r.width=n,r.height=t):(r.width=t,r.height=n),this.paintImage(r.getContext("2d"),this.state.image,0,1),r}},{key:"getXScale",value:function(){var e=this.props.width/this.props.height,t=this.state.image.width/this.state.image.height;return Math.min(1,e/t)}},{key:"getYScale",value:function(){var e=this.props.height/this.props.width,t=this.state.image.height/this.state.image.width;return Math.min(1,e/t)}},{key:"getCroppingRect",value:function(){var e=this.props.position||{x:this.state.image.x,y:this.state.image.y},t=1/this.props.scale*this.getXScale(),n=1/this.props.scale*this.getYScale(),r={x:e.x-t/2,y:e.y-n/2,width:t,height:n},o=0,i=1-r.width,a=0,s=1-r.height;return(this.props.disableBoundaryChecks||1<t||1<n)&&(o=-r.width,a=-r.height,s=i=1),c(c({},r),{},{x:Math.max(o,Math.min(r.x,i)),y:Math.max(a,Math.min(r.y,s))})}},{key:"loadImage",value:function(e){var t;w&&e instanceof File?this.loadingImage=(t=e,new Promise((function(e,n){var r=new FileReader;r.onload=function(t){try{var r=y(t.target.result);e(r)}catch(t){n(t)}},r.readAsDataURL(t)})).then(this.handleImageReady).catch(this.props.onLoadFailure)):"string"==typeof e&&(this.loadingImage=y(e,this.props.crossOrigin).then(this.handleImageReady).catch(this.props.onLoadFailure))}},{key:"getInitialSize",value:function(e,t){var n,r,o=this.getDimensions();return t/e<o.height/o.width?r=e*((n=this.getDimensions().height)/t):n=t*((r=this.getDimensions().width)/e),{height:n,width:r}}},{key:"paintImage",value:function(e,t,n,r){var o,i=3<arguments.length&&void 0!==r?r:S;t.resource&&(o=this.calculatePosition(t,n),e.save(),e.translate(e.canvas.width/2,e.canvas.height/2),e.rotate(this.props.rotate*Math.PI/180),e.translate(-e.canvas.width/2,-e.canvas.height/2),this.isVertical()&&e.translate((e.canvas.width-e.canvas.height)/2,(e.canvas.height-e.canvas.width)/2),e.scale(i,i),e.globalCompositeOperation="destination-over",e.drawImage(t.resource,o.x,o.y,o.width,o.height),t.backgroundColor&&(e.fillStyle=t.backgroundColor,e.fillRect(o.x,o.y,o.width,o.height)),e.restore())}},{key:"calculatePosition",value:function(e,t){e=e||this.state.image;var n=m(this.getBorders(t),2),r=n[0],o=n[1],i=this.getCroppingRect(),a=e.width*this.props.scale,s=e.height*this.props.scale,l=-i.x*a,c=-i.y*s;return this.isVertical()?(l+=o,c+=r):(l+=r,c+=o),{x:l,y:c,height:s,width:a}}},{key:"paint",value:function(e){e.save(),e.scale(S,S),e.translate(0,0),e.fillStyle="rgba("+this.props.color.slice(0,4).join(",")+")";var t,n,r,o,i,a,s,l,c=this.props.borderRadius,u=this.getDimensions(),d=m(this.getBorders(u.border),2),p=d[0],f=d[1],h=u.canvas.height,v=u.canvas.width;c=Math.max(c,0),c=Math.min(c,v/2-p,h/2-f),e.beginPath(),t=e,o=v-2*(n=p),i=h-2*(r=f),0===(a=c)?t.rect(n,r,o,i):(s=o-a,l=i-a,t.translate(n,r),t.arc(a,a,a,Math.PI,1.5*Math.PI),t.lineTo(s,0),t.arc(s,a,a,1.5*Math.PI,2*Math.PI),t.lineTo(o,l),t.arc(s,l,a,2*Math.PI,.5*Math.PI),t.lineTo(a,i),t.arc(a,l,a,.5*Math.PI,Math.PI),t.translate(-n,-r)),e.rect(v,0,-v,h),e.fill("evenodd"),e.restore()}},{key:"render",value:function(){var e=this.props,t=(e.scale,e.rotate,e.image,e.border,e.borderRadius,e.width,e.height,e.position,e.color,e.backgroundColor,e.style),n=(e.crossOrigin,e.onLoadFailure,e.onLoadSuccess,e.onImageReady,e.onImageChange,e.onMouseUp,e.onMouseMove,e.onPositionChange,e.disableBoundaryChecks,e.disableHiDPIScaling,e.disableCanvasRotation,p(e,["scale","rotate","image","border","borderRadius","width","height","position","color","backgroundColor","style","crossOrigin","onLoadFailure","onLoadSuccess","onImageReady","onImageChange","onMouseUp","onMouseMove","onPositionChange","disableBoundaryChecks","disableHiDPIScaling","disableCanvasRotation"])),r=this.getDimensions(),i={width:r.canvas.width,height:r.canvas.height,cursor:this.state.drag?"grabbing":"grab",touchAction:"none"},a={width:r.canvas.width*S,height:r.canvas.height*S,style:c(c({},i),t)};return a[j.react.down]=this.handleMouseDown,x&&(a[j.react.mouseDown]=this.handleMouseDown),o.default.createElement("canvas",s({ref:this.setCanvas},a,n))}}])&&i(e.prototype,t),n&&i(e,n),l}();return a(Z,"propTypes",{scale:r.default.number,rotate:r.default.number,image:r.default.oneOfType([r.default.string].concat(function(e){if(Array.isArray(e))return g(e)}(b=w?[r.default.instanceOf(File)]:[])||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(b)||v(b)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),border:r.default.oneOfType([r.default.number,r.default.arrayOf(r.default.number)]),borderRadius:r.default.number,width:r.default.number,height:r.default.number,position:r.default.shape({x:r.default.number,y:r.default.number}),color:r.default.arrayOf(r.default.number),backgroundColor:r.default.string,crossOrigin:r.default.oneOf(["","anonymous","use-credentials"]),onLoadFailure:r.default.func,onLoadSuccess:r.default.func,onImageReady:r.default.func,onImageChange:r.default.func,onMouseUp:r.default.func,onMouseMove:r.default.func,onPositionChange:r.default.func,disableBoundaryChecks:r.default.bool,disableHiDPIScaling:r.default.bool,disableCanvasRotation:r.default.bool}),a(Z,"defaultProps",{scale:1,rotate:0,border:25,borderRadius:0,width:200,height:200,color:[0,0,0,.5],onLoadFailure:function(){},onLoadSuccess:function(){},onImageReady:function(){},onImageChange:function(){},onMouseUp:function(){},onMouseMove:function(){},onPositionChange:function(){},disableBoundaryChecks:!1,disableHiDPIScaling:!1,disableCanvasRotation:!0}),Z}(n(25262),n(30303))},12375:function(e,t,n){"use strict";var r=n(30303),o=n(78424),i=n(71395);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var s=new Set,l={};function c(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(l[e]=t,e=0;e<t.length;e++)s.add(t[e])}var d=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f=Object.prototype.hasOwnProperty,h={},m={};function v(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function x(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!f.call(m,e)||!f.call(h,e)&&(p.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,C=60103,j=60106,S=60107,k=60108,Z=60114,O=60109,E=60110,D=60112,P=60113,A=60120,M=60115,T=60116,I=60121,R=60128,F=60129,B=60130,L=60131;if("function"===typeof Symbol&&Symbol.for){var N=Symbol.for;C=N("react.element"),j=N("react.portal"),S=N("react.fragment"),k=N("react.strict_mode"),Z=N("react.profiler"),O=N("react.provider"),E=N("react.context"),D=N("react.forward_ref"),P=N("react.suspense"),A=N("react.suspense_list"),M=N("react.memo"),T=N("react.lazy"),I=N("react.block"),N("react.scope"),R=N("react.opaque.id"),F=N("react.debug_trace_mode"),B=N("react.offscreen"),L=N("react.legacy_hidden")}var _,z="function"===typeof Symbol&&Symbol.iterator;function H(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=z&&e[z]||e["@@iterator"])?e:null}function W(e){if(void 0===_)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);_=t&&t[1]||""}return"\n"+_+e}var V=!1;function U(e,t){if(!e||V)return"";V=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&"string"===typeof l.stack){for(var o=l.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s])return"\n"+o[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{V=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?W(e):""}function q(e){switch(e.tag){case 5:return W(e.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return e=U(e.type,!1);case 11:return e=U(e.type.render,!1);case 22:return e=U(e.type._render,!1);case 1:return e=U(e.type,!0);default:return""}}function G(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case S:return"Fragment";case j:return"Portal";case Z:return"Profiler";case k:return"StrictMode";case P:return"Suspense";case A:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case E:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case D:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case M:return G(e.type);case I:return G(e._render);case T:t=e._payload,e=e._init;try{return G(e(t))}catch(n){}}return null}function Y(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function J(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Q(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function $(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Y(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&x(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=Y(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&oe(e,t.type,Y(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function oe(e,t,n){"number"===t&&Q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ie(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Y(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Y(n)}}function ce(e,t){var n=Y(t.value),r=Y(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ue(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de="http://www.w3.org/1999/xhtml",pe="http://www.w3.org/2000/svg";function fe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?fe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ve,ge=(ve=function(e,t){if(e.namespaceURI!==pe||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ve(e,t)}))}:ve);function ye(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var be={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xe=["Webkit","ms","Moz","O"];function we(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||be.hasOwnProperty(e)&&be[e]?(""+t).trim():t+"px"}function Ce(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=we(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(be).forEach((function(e){xe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),be[t]=be[e]}))}));var je=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Se(e,t){if(t){if(je[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function ke(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ze(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Oe=null,Ee=null,De=null;function Pe(e){if(e=ro(e)){if("function"!==typeof Oe)throw Error(a(280));var t=e.stateNode;t&&(t=io(t),Oe(e.stateNode,e.type,t))}}function Ae(e){Ee?De?De.push(e):De=[e]:Ee=e}function Me(){if(Ee){var e=Ee,t=De;if(De=Ee=null,Pe(e),t)for(e=0;e<t.length;e++)Pe(t[e])}}function Te(e,t){return e(t)}function Ie(e,t,n,r,o){return e(t,n,r,o)}function Re(){}var Fe=Te,Be=!1,Le=!1;function Ne(){null===Ee&&null===De||(Re(),Me())}function _e(e,t){var n=e.stateNode;if(null===n)return null;var r=io(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}var ze=!1;if(d)try{var He={};Object.defineProperty(He,"passive",{get:function(){ze=!0}}),window.addEventListener("test",He,He),window.removeEventListener("test",He,He)}catch(ve){ze=!1}function We(e,t,n,r,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Ve=!1,Ue=null,qe=!1,Ge=null,Ye={onError:function(e){Ve=!0,Ue=e}};function Ke(e,t,n,r,o,i,a,s,l){Ve=!1,Ue=null,We.apply(Ye,arguments)}function Je(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Xe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Qe(e){if(Je(e)!==e)throw Error(a(188))}function $e(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Je(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Qe(o),e;if(i===r)return Qe(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function et(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var tt,nt,rt,ot,it=!1,at=[],st=null,lt=null,ct=null,ut=new Map,dt=new Map,pt=[],ft="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ht(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:o,targetContainers:[r]}}function mt(e,t){switch(e){case"focusin":case"focusout":st=null;break;case"dragenter":case"dragleave":lt=null;break;case"mouseover":case"mouseout":ct=null;break;case"pointerover":case"pointerout":ut.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":dt.delete(t.pointerId)}}function vt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=ht(t,n,r,o,i),null!==t&&(null!==(t=ro(t))&&nt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function gt(e){var t=no(e.target);if(null!==t){var n=Je(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Xe(n)))return e.blockedOn=t,void ot(e.lanePriority,(function(){i.unstable_runWithPriority(e.priority,(function(){rt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function yt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=$t(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ro(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function bt(e,t,n){yt(e)&&n.delete(t)}function xt(){for(it=!1;0<at.length;){var e=at[0];if(null!==e.blockedOn){null!==(e=ro(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=$t(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&at.shift()}null!==st&&yt(st)&&(st=null),null!==lt&&yt(lt)&&(lt=null),null!==ct&&yt(ct)&&(ct=null),ut.forEach(bt),dt.forEach(bt)}function wt(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,xt)))}function Ct(e){function t(t){return wt(t,e)}if(0<at.length){wt(at[0],e);for(var n=1;n<at.length;n++){var r=at[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==st&&wt(st,e),null!==lt&&wt(lt,e),null!==ct&&wt(ct,e),ut.forEach(t),dt.forEach(t),n=0;n<pt.length;n++)(r=pt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<pt.length&&null===(n=pt[0]).blockedOn;)gt(n),null===n.blockedOn&&pt.shift()}function jt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var St={animationend:jt("Animation","AnimationEnd"),animationiteration:jt("Animation","AnimationIteration"),animationstart:jt("Animation","AnimationStart"),transitionend:jt("Transition","TransitionEnd")},kt={},Zt={};function Ot(e){if(kt[e])return kt[e];if(!St[e])return e;var t,n=St[e];for(t in n)if(n.hasOwnProperty(t)&&t in Zt)return kt[e]=n[t];return e}d&&(Zt=document.createElement("div").style,"AnimationEvent"in window||(delete St.animationend.animation,delete St.animationiteration.animation,delete St.animationstart.animation),"TransitionEvent"in window||delete St.transitionend.transition);var Et=Ot("animationend"),Dt=Ot("animationiteration"),Pt=Ot("animationstart"),At=Ot("transitionend"),Mt=new Map,Tt=new Map,It=["abort","abort",Et,"animationEnd",Dt,"animationIteration",Pt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",At,"transitionEnd","waiting","waiting"];function Rt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];o="on"+(o[0].toUpperCase()+o.slice(1)),Tt.set(r,t),Mt.set(r,o),c(o,[r])}}(0,i.unstable_now)();var Ft=8;function Bt(e){if(0!==(1&e))return Ft=15,1;if(0!==(2&e))return Ft=14,2;if(0!==(4&e))return Ft=13,4;var t=24&e;return 0!==t?(Ft=12,t):0!==(32&e)?(Ft=11,32):0!==(t=192&e)?(Ft=10,t):0!==(256&e)?(Ft=9,256):0!==(t=3584&e)?(Ft=8,t):0!==(4096&e)?(Ft=7,4096):0!==(t=4186112&e)?(Ft=6,t):0!==(t=62914560&e)?(Ft=5,t):67108864&e?(Ft=4,67108864):0!==(134217728&e)?(Ft=3,134217728):0!==(t=805306368&e)?(Ft=2,t):0!==(1073741824&e)?(Ft=1,1073741824):(Ft=8,e)}function Lt(e,t){var n=e.pendingLanes;if(0===n)return Ft=0;var r=0,o=0,i=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(0!==i)r=i,o=Ft=15;else if(0!==(i=134217727&n)){var l=i&~a;0!==l?(r=Bt(l),o=Ft):0!==(s&=i)&&(r=Bt(s),o=Ft)}else 0!==(i=n&~a)?(r=Bt(i),o=Ft):0!==s&&(r=Bt(s),o=Ft);if(0===r)return 0;if(r=n&((0>(r=31-Vt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0===(t&a)){if(Bt(t),o<=Ft)return t;Ft=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Vt(t)),r|=e[n],t&=~o;return r}function Nt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function _t(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=zt(24&~t))?_t(10,t):e;case 10:return 0===(e=zt(192&~t))?_t(8,t):e;case 8:return 0===(e=zt(3584&~t))&&(0===(e=zt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=zt(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function zt(e){return e&-e}function Ht(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Vt(t)]=n}var Vt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Ut(e)/qt|0)|0},Ut=Math.log,qt=Math.LN2;var Gt=i.unstable_UserBlockingPriority,Yt=i.unstable_runWithPriority,Kt=!0;function Jt(e,t,n,r){Be||Re();var o=Qt,i=Be;Be=!0;try{Ie(o,e,t,n,r)}finally{(Be=i)||Ne()}}function Xt(e,t,n,r){Yt(Gt,Qt.bind(null,e,t,n,r))}function Qt(e,t,n,r){var o;if(Kt)if((o=0===(4&t))&&0<at.length&&-1<ft.indexOf(e))e=ht(null,e,t,n,r),at.push(e);else{var i=$t(e,t,n,r);if(null===i)o&&mt(e,r);else{if(o){if(-1<ft.indexOf(e))return e=ht(i,e,t,n,r),void at.push(e);if(function(e,t,n,r,o){switch(t){case"focusin":return st=vt(st,e,t,n,r,o),!0;case"dragenter":return lt=vt(lt,e,t,n,r,o),!0;case"mouseover":return ct=vt(ct,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return ut.set(i,vt(ut.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,dt.set(i,vt(dt.get(i)||null,e,t,n,r,o)),!0}return!1}(i,e,t,n,r))return;mt(e,r)}Rr(e,t,r,null,n)}}}function $t(e,t,n,r){var o=Ze(r);if(null!==(o=no(o))){var i=Je(o);if(null===i)o=null;else{var a=i.tag;if(13===a){if(null!==(o=Xe(i)))return o;o=null}else if(3===a){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return Rr(e,t,r,o,n),null}var en=null,tn=null,nn=null;function rn(){if(nn)return nn;var e,t,n=tn,r=n.length,o="value"in en?en.value:en.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return nn=o.slice(e,1<t?1-t:void 0)}function on(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function an(){return!0}function sn(){return!1}function ln(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?an:sn,this.isPropagationStopped=sn,this}return o(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var cn,un,dn,pn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fn=ln(pn),hn=o({},pn,{view:0,detail:0}),mn=ln(hn),vn=o({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==dn&&(dn&&"mousemove"===e.type?(cn=e.screenX-dn.screenX,un=e.screenY-dn.screenY):un=cn=0,dn=e),cn)},movementY:function(e){return"movementY"in e?e.movementY:un}}),gn=ln(vn),yn=ln(o({},vn,{dataTransfer:0})),bn=ln(o({},hn,{relatedTarget:0})),xn=ln(o({},pn,{animationName:0,elapsedTime:0,pseudoElement:0})),wn=o({},pn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Cn=ln(wn),jn=ln(o({},pn,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Zn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function On(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Zn[e])&&!!t[e]}function En(){return On}var Dn=o({},hn,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=on(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?on(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?on(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pn=ln(Dn),An=ln(o({},vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Mn=ln(o({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),Tn=ln(o({},pn,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=o({},vn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Rn=ln(In),Fn=[9,13,27,32],Bn=d&&"CompositionEvent"in window,Ln=null;d&&"documentMode"in document&&(Ln=document.documentMode);var Nn=d&&"TextEvent"in window&&!Ln,_n=d&&(!Bn||Ln&&8<Ln&&11>=Ln),zn=String.fromCharCode(32),Hn=!1;function Wn(e,t){switch(e){case"keyup":return-1!==Fn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Un=!1;var qn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Gn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!qn[e.type]:"textarea"===t}function Yn(e,t,n,r){Ae(r),0<(t=Br(t,"onChange")).length&&(n=new fn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,Jn=null;function Xn(e){Dr(e,0)}function Qn(e){if(X(oo(e)))return e}function $n(e,t){if("change"===e)return t}var er=!1;if(d){var tr;if(d){var nr="oninput"in document;if(!nr){var rr=document.createElement("div");rr.setAttribute("oninput","return;"),nr="function"===typeof rr.oninput}tr=nr}else tr=!1;er=tr&&(!document.documentMode||9<document.documentMode)}function or(){Kn&&(Kn.detachEvent("onpropertychange",ir),Jn=Kn=null)}function ir(e){if("value"===e.propertyName&&Qn(Jn)){var t=[];if(Yn(t,Jn,e,Ze(e)),e=Xn,Be)e(t);else{Be=!0;try{Te(e,t)}finally{Be=!1,Ne()}}}}function ar(e,t,n){"focusin"===e?(or(),Jn=n,(Kn=t).attachEvent("onpropertychange",ir)):"focusout"===e&&or()}function sr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(Jn)}function lr(e,t){if("click"===e)return Qn(t)}function cr(e,t){if("input"===e||"change"===e)return Qn(t)}var ur="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},dr=Object.prototype.hasOwnProperty;function pr(e,t){if(ur(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!dr.call(t,n[r])||!ur(e[n[r]],t[n[r]]))return!1;return!0}function fr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hr(e,t){var n,r=fr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=fr(r)}}function mr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?mr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function vr(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Q((e=t.contentWindow).document)}return t}function gr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var yr=d&&"documentMode"in document&&11>=document.documentMode,br=null,xr=null,wr=null,Cr=!1;function jr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Cr||null==br||br!==Q(r)||("selectionStart"in(r=br)&&gr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},wr&&pr(wr,r)||(wr=r,0<(r=Br(xr,"onSelect")).length&&(t=new fn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=br)))}Rt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Rt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Rt(It,2);for(var Sr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),kr=0;kr<Sr.length;kr++)Tt.set(Sr[kr],0);u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Zr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Or=new Set("cancel close invalid load scroll toggle".split(" ").concat(Zr));function Er(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,s,l,c){if(Ke.apply(this,arguments),Ve){if(!Ve)throw Error(a(198));var u=Ue;Ve=!1,Ue=null,qe||(qe=!0,Ge=u)}}(r,t,void 0,e),e.currentTarget=null}function Dr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Er(o,s,c),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Er(o,s,c),i=l}}}if(qe)throw e=Ge,qe=!1,Ge=null,e}function Pr(e,t){var n=ao(t),r=e+"__bubble";n.has(r)||(Ir(t,e,2,!1),n.add(r))}var Ar="_reactListening"+Math.random().toString(36).slice(2);function Mr(e){e[Ar]||(e[Ar]=!0,s.forEach((function(t){Or.has(t)||Tr(t,!1,e,null),Tr(t,!0,e,null)})))}function Tr(e,t,n,r){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=n;if("selectionchange"===e&&9!==n.nodeType&&(i=n.ownerDocument),null!==r&&!t&&Or.has(e)){if("scroll"!==e)return;o|=2,i=r}var a=ao(i),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(o|=4),Ir(i,e,o,t),a.add(s))}function Ir(e,t,n,r){var o=Tt.get(t);switch(void 0===o?2:o){case 0:o=Jt;break;case 1:o=Xt;break;default:o=Qt}n=o.bind(null,t,n,e),o=void 0,!ze||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Rr(e,t,n,r,o){var i=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=no(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Le)return e(t,n);Le=!0;try{Fe(e,t,n)}finally{Le=!1,Ne()}}((function(){var r=i,o=Ze(n),a=[];e:{var s=Mt.get(e);if(void 0!==s){var l=fn,c=e;switch(e){case"keypress":if(0===on(n))break e;case"keydown":case"keyup":l=Pn;break;case"focusin":c="focus",l=bn;break;case"focusout":c="blur",l=bn;break;case"beforeblur":case"afterblur":l=bn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=gn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=yn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Mn;break;case Et:case Dt:case Pt:l=xn;break;case At:l=Tn;break;case"scroll":l=mn;break;case"wheel":l=Rn;break;case"copy":case"cut":case"paste":l=Cn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=An}var u=0!==(4&t),d=!u&&"scroll"===e,p=u?null!==s?s+"Capture":null:s;u=[];for(var f,h=r;null!==h;){var m=(f=h).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==p&&(null!=(m=_e(h,p))&&u.push(Fr(h,m,f)))),d)break;h=h.return}0<u.length&&(s=new l(s,c,null,n,o),a.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(c=n.relatedTarget||n.fromElement)||!no(c)&&!c[eo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?no(c):null)&&(c!==(d=Je(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=gn,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=An,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==l?s:oo(l),f=null==c?s:oo(c),(s=new u(m,h+"leave",l,n,o)).target=d,s.relatedTarget=f,m=null,no(o)===r&&((u=new u(p,h+"enter",c,n,o)).target=f,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(p=c,h=0,f=u=l;f;f=Lr(f))h++;for(f=0,m=p;m;m=Lr(m))f++;for(;0<h-f;)u=Lr(u),h--;for(;0<f-h;)p=Lr(p),f--;for(;h--;){if(u===p||null!==p&&u===p.alternate)break e;u=Lr(u),p=Lr(p)}u=null}else u=null;null!==l&&Nr(a,s,l,u,!1),null!==c&&null!==d&&Nr(a,d,c,u,!0)}if("select"===(l=(s=r?oo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var v=$n;else if(Gn(s))if(er)v=cr;else{v=sr;var g=ar}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=lr);switch(v&&(v=v(e,r))?Yn(a,v,n,o):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&oe(s,"number",s.value)),g=r?oo(r):window,e){case"focusin":(Gn(g)||"true"===g.contentEditable)&&(br=g,xr=r,wr=null);break;case"focusout":wr=xr=br=null;break;case"mousedown":Cr=!0;break;case"contextmenu":case"mouseup":case"dragend":Cr=!1,jr(a,n,o);break;case"selectionchange":if(yr)break;case"keydown":case"keyup":jr(a,n,o)}var y;if(Bn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Un?Wn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(_n&&"ko"!==n.locale&&(Un||"onCompositionStart"!==b?"onCompositionEnd"===b&&Un&&(y=rn()):(tn="value"in(en=o)?en.value:en.textContent,Un=!0)),0<(g=Br(r,b)).length&&(b=new jn(b,e,null,n,o),a.push({event:b,listeners:g}),y?b.data=y:null!==(y=Vn(n))&&(b.data=y))),(y=Nn?function(e,t){switch(e){case"compositionend":return Vn(t);case"keypress":return 32!==t.which?null:(Hn=!0,zn);case"textInput":return(e=t.data)===zn&&Hn?null:e;default:return null}}(e,n):function(e,t){if(Un)return"compositionend"===e||!Bn&&Wn(e,t)?(e=rn(),nn=tn=en=null,Un=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return _n&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Br(r,"onBeforeInput")).length&&(o=new jn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}Dr(a,t)}))}function Fr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Br(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=_e(e,n))&&r.unshift(Fr(e,i,o)),null!=(i=_e(e,t))&&r.push(Fr(e,i,o))),e=e.return}return r}function Lr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Nr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=_e(n,i))&&a.unshift(Fr(n,l,s)):o||null!=(l=_e(n,i))&&a.push(Fr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function _r(){}var zr=null,Hr=null;function Wr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Vr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Ur="function"===typeof setTimeout?setTimeout:void 0,qr="function"===typeof clearTimeout?clearTimeout:void 0;function Gr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Yr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Kr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Jr=0;var Xr=Math.random().toString(36).slice(2),Qr="__reactFiber$"+Xr,$r="__reactProps$"+Xr,eo="__reactContainer$"+Xr,to="__reactEvents$"+Xr;function no(e){var t=e[Qr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[eo]||n[Qr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Kr(e);null!==e;){if(n=e[Qr])return n;e=Kr(e)}return t}n=(e=n).parentNode}return null}function ro(e){return!(e=e[Qr]||e[eo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function oo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function io(e){return e[$r]||null}function ao(e){var t=e[to];return void 0===t&&(t=e[to]=new Set),t}var so=[],lo=-1;function co(e){return{current:e}}function uo(e){0>lo||(e.current=so[lo],so[lo]=null,lo--)}function po(e,t){lo++,so[lo]=e.current,e.current=t}var fo={},ho=co(fo),mo=co(!1),vo=fo;function go(e,t){var n=e.type.contextTypes;if(!n)return fo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function yo(e){return null!==(e=e.childContextTypes)&&void 0!==e}function bo(){uo(mo),uo(ho)}function xo(e,t,n){if(ho.current!==fo)throw Error(a(168));po(ho,t),po(mo,n)}function wo(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,G(t)||"Unknown",i));return o({},n,r)}function Co(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fo,vo=ho.current,po(ho,e),po(mo,mo.current),!0}function jo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=wo(e,t,vo),r.__reactInternalMemoizedMergedChildContext=e,uo(mo),uo(ho),po(ho,e)):uo(mo),po(mo,n)}var So=null,ko=null,Zo=i.unstable_runWithPriority,Oo=i.unstable_scheduleCallback,Eo=i.unstable_cancelCallback,Do=i.unstable_shouldYield,Po=i.unstable_requestPaint,Ao=i.unstable_now,Mo=i.unstable_getCurrentPriorityLevel,To=i.unstable_ImmediatePriority,Io=i.unstable_UserBlockingPriority,Ro=i.unstable_NormalPriority,Fo=i.unstable_LowPriority,Bo=i.unstable_IdlePriority,Lo={},No=void 0!==Po?Po:function(){},_o=null,zo=null,Ho=!1,Wo=Ao(),Vo=1e4>Wo?Ao:function(){return Ao()-Wo};function Uo(){switch(Mo()){case To:return 99;case Io:return 98;case Ro:return 97;case Fo:return 96;case Bo:return 95;default:throw Error(a(332))}}function qo(e){switch(e){case 99:return To;case 98:return Io;case 97:return Ro;case 96:return Fo;case 95:return Bo;default:throw Error(a(332))}}function Go(e,t){return e=qo(e),Zo(e,t)}function Yo(e,t,n){return e=qo(e),Oo(e,t,n)}function Ko(){if(null!==zo){var e=zo;zo=null,Eo(e)}Jo()}function Jo(){if(!Ho&&null!==_o){Ho=!0;var e=0;try{var t=_o;Go(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),_o=null}catch(n){throw null!==_o&&(_o=_o.slice(e+1)),Oo(To,Ko),n}finally{Ho=!1}}}var Xo=w.ReactCurrentBatchConfig;function Qo(e,t){if(e&&e.defaultProps){for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var $o=co(null),ei=null,ti=null,ni=null;function ri(){ni=ti=ei=null}function oi(e){var t=$o.current;uo($o),e.type._context._currentValue=t}function ii(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ai(e,t){ei=e,ni=ti=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Ba=!0),e.firstContext=null)}function si(e,t){if(ni!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(ni=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ti){if(null===ei)throw Error(a(308));ti=t,ei.dependencies={lanes:0,firstContext:t,responders:null}}else ti=ti.next=t;return e._currentValue}var li=!1;function ci(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ui(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function di(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function pi(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function fi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function hi(e,t,n,r){var i=e.updateQueue;li=!1;var a=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(null!==l){i.shared.pending=null;var c=l,u=c.next;c.next=null,null===s?a=u:s.next=u,s=c;var d=e.alternate;if(null!==d){var p=(d=d.updateQueue).lastBaseUpdate;p!==s&&(null===p?d.firstBaseUpdate=u:p.next=u,d.lastBaseUpdate=c)}}if(null!==a){for(p=i.baseState,s=0,d=u=c=null;;){l=a.lane;var f=a.eventTime;if((r&l)===l){null!==d&&(d=d.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,m=a;switch(l=t,f=n,m.tag){case 1:if("function"===typeof(h=m.payload)){p=h.call(f,p,l);break e}p=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null===(l="function"===typeof(h=m.payload)?h.call(f,p,l):h)||void 0===l)break e;p=o({},p,l);break e;case 2:li=!0}}null!==a.callback&&(e.flags|=32,null===(l=i.effects)?i.effects=[a]:l.push(a))}else f={eventTime:f,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===d?(u=d=f,c=p):d=d.next=f,s|=l;if(null===(a=a.next)){if(null===(l=i.shared.pending))break;a=l.next,l.next=null,i.lastBaseUpdate=l,i.shared.pending=null}}null===d&&(c=p),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=d,zs|=s,e.lanes=s,e.memoizedState=p}}function mi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!==typeof o)throw Error(a(191,o));o.call(r)}}}var vi=(new r.Component).refs;function gi(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:o({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var yi={isMounted:function(e){return!!(e=e._reactInternals)&&Je(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=pl(),o=fl(e),i=di(r,o);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),pi(e,i),hl(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=pl(),o=fl(e),i=di(r,o);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),pi(e,i),hl(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=pl(),r=fl(e),o=di(n,r);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),pi(e,o),hl(e,r,n)}};function bi(e,t,n,r,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!pr(n,r)||!pr(o,i))}function xi(e,t,n){var r=!1,o=fo,i=t.contextType;return"object"===typeof i&&null!==i?i=si(i):(o=yo(t)?vo:ho.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?go(e,o):fo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=yi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function wi(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&yi.enqueueReplaceState(t,t.state,null)}function Ci(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=vi,ci(e);var i=t.contextType;"object"===typeof i&&null!==i?o.context=si(i):(i=yo(t)?vo:ho.current,o.context=go(e,i)),hi(e,n,o,r),o.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(gi(e,t,i,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&yi.enqueueReplaceState(o,o.state,null),hi(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4)}var ji=Array.isArray;function Si(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=r.refs;t===vi&&(t=r.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function ki(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Zi(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=ql(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Jl(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=Si(e,t,n),r.return=e,r):((r=Gl(n.type,n.key,n.props,null,e.mode,r)).ref=Si(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Xl(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Yl(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Jl(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case C:return(n=Gl(t.type,t.key,t.props,null,e.mode,n)).ref=Si(e,null,t),n.return=e,n;case j:return(t=Xl(t,e.mode,n)).return=e,t}if(ji(t)||H(t))return(t=Yl(t,e.mode,n,null)).return=e,t;ki(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==o?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case C:return n.key===o?n.type===S?d(e,t,n.props.children,r,o):c(e,t,n,r):null;case j:return n.key===o?u(e,t,n,r):null}if(ji(n)||H(n))return null!==o?null:d(e,t,n,r,null);ki(e,n)}return null}function h(e,t,n,r,o){if("string"===typeof r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case C:return e=e.get(null===r.key?n:r.key)||null,r.type===S?d(t,e,r.props.children,o,r.key):c(t,e,r,o);case j:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(ji(r)||H(r))return d(t,e=e.get(n)||null,r,o,null);ki(t,r)}return null}function m(o,a,s,l){for(var c=null,u=null,d=a,m=a=0,v=null;null!==d&&m<s.length;m++){d.index>m?(v=d,d=null):v=d.sibling;var g=f(o,d,s[m],l);if(null===g){null===d&&(d=v);break}e&&d&&null===g.alternate&&t(o,d),a=i(g,a,m),null===u?c=g:u.sibling=g,u=g,d=v}if(m===s.length)return n(o,d),c;if(null===d){for(;m<s.length;m++)null!==(d=p(o,s[m],l))&&(a=i(d,a,m),null===u?c=d:u.sibling=d,u=d);return c}for(d=r(o,d);m<s.length;m++)null!==(v=h(d,o,m,s[m],l))&&(e&&null!==v.alternate&&d.delete(null===v.key?m:v.key),a=i(v,a,m),null===u?c=v:u.sibling=v,u=v);return e&&d.forEach((function(e){return t(o,e)})),c}function v(o,s,l,c){var u=H(l);if("function"!==typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(151));for(var d=u=null,m=s,v=s=0,g=null,y=l.next();null!==m&&!y.done;v++,y=l.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=f(o,m,y.value,c);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(o,m),s=i(b,s,v),null===d?u=b:d.sibling=b,d=b,m=g}if(y.done)return n(o,m),u;if(null===m){for(;!y.done;v++,y=l.next())null!==(y=p(o,y.value,c))&&(s=i(y,s,v),null===d?u=y:d.sibling=y,d=y);return u}for(m=r(o,m);!y.done;v++,y=l.next())null!==(y=h(m,o,v,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),s=i(y,s,v),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(o,e)})),u}return function(e,r,i,l){var c="object"===typeof i&&null!==i&&i.type===S&&null===i.key;c&&(i=i.props.children);var u="object"===typeof i&&null!==i;if(u)switch(i.$$typeof){case C:e:{for(u=i.key,c=r;null!==c;){if(c.key===u){if(7===c.tag){if(i.type===S){n(e,c.sibling),(r=o(c,i.props.children)).return=e,e=r;break e}}else if(c.elementType===i.type){n(e,c.sibling),(r=o(c,i.props)).ref=Si(e,c,i),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}i.type===S?((r=Yl(i.props.children,e.mode,l,i.key)).return=e,e=r):((l=Gl(i.type,i.key,i.props,null,e.mode,l)).ref=Si(e,r,i),l.return=e,e=l)}return s(e);case j:e:{for(c=i.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Xl(i,e.mode,l)).return=e,e=r}return s(e)}if("string"===typeof i||"number"===typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Jl(i,e.mode,l)).return=e,e=r),s(e);if(ji(i))return m(e,r,i,l);if(H(i))return v(e,r,i,l);if(u&&ki(e,i),"undefined"===typeof i&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,G(e.type)||"Component"))}return n(e,r)}}var Oi=Zi(!0),Ei=Zi(!1),Di={},Pi=co(Di),Ai=co(Di),Mi=co(Di);function Ti(e){if(e===Di)throw Error(a(174));return e}function Ii(e,t){switch(po(Mi,t),po(Ai,e),po(Pi,Di),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}uo(Pi),po(Pi,t)}function Ri(){uo(Pi),uo(Ai),uo(Mi)}function Fi(e){Ti(Mi.current);var t=Ti(Pi.current),n=he(t,e.type);t!==n&&(po(Ai,e),po(Pi,n))}function Bi(e){Ai.current===e&&(uo(Pi),uo(Ai))}var Li=co(0);function Ni(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var _i=null,zi=null,Hi=!1;function Wi(e,t){var n=Vl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Vi(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Ui(e){if(Hi){var t=zi;if(t){var n=t;if(!Vi(e,t)){if(!(t=Yr(n.nextSibling))||!Vi(e,t))return e.flags=-1025&e.flags|2,Hi=!1,void(_i=e);Wi(_i,n)}_i=e,zi=Yr(t.firstChild)}else e.flags=-1025&e.flags|2,Hi=!1,_i=e}}function qi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;_i=e}function Gi(e){if(e!==_i)return!1;if(!Hi)return qi(e),Hi=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Vr(t,e.memoizedProps))for(t=zi;t;)Wi(e,t),t=Yr(t.nextSibling);if(qi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){zi=Yr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}zi=null}}else zi=_i?Yr(e.stateNode.nextSibling):null;return!0}function Yi(){zi=_i=null,Hi=!1}var Ki=[];function Ji(){for(var e=0;e<Ki.length;e++)Ki[e]._workInProgressVersionPrimary=null;Ki.length=0}var Xi=w.ReactCurrentDispatcher,Qi=w.ReactCurrentBatchConfig,$i=0,ea=null,ta=null,na=null,ra=!1,oa=!1;function ia(){throw Error(a(321))}function aa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ur(e[n],t[n]))return!1;return!0}function sa(e,t,n,r,o,i){if($i=i,ea=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Xi.current=null===e||null===e.memoizedState?Ta:Ia,e=n(r,o),oa){i=0;do{if(oa=!1,!(25>i))throw Error(a(301));i+=1,na=ta=null,t.updateQueue=null,Xi.current=Ra,e=n(r,o)}while(oa)}if(Xi.current=Ma,t=null!==ta&&null!==ta.next,$i=0,na=ta=ea=null,ra=!1,t)throw Error(a(300));return e}function la(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===na?ea.memoizedState=na=e:na=na.next=e,na}function ca(){if(null===ta){var e=ea.alternate;e=null!==e?e.memoizedState:null}else e=ta.next;var t=null===na?ea.memoizedState:na.next;if(null!==t)na=t,ta=e;else{if(null===e)throw Error(a(310));e={memoizedState:(ta=e).memoizedState,baseState:ta.baseState,baseQueue:ta.baseQueue,queue:ta.queue,next:null},null===na?ea.memoizedState=na=e:na=na.next=e}return na}function ua(e,t){return"function"===typeof t?t(e):t}function da(e){var t=ca(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=ta,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var l=s=i=null,c=o;do{var u=c.lane;if(($i&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),r=c.eagerReducer===e?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(s=l=d,i=r):l=l.next=d,ea.lanes|=u,zs|=u}c=c.next}while(null!==c&&c!==o);null===l?i=r:l.next=s,ur(r,t.memoizedState)||(Ba=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function pa(e){var t=ca(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);ur(i,t.memoizedState)||(Ba=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function fa(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(null!==o?e=o===r:(e=e.mutableReadLanes,(e=($i&e)===e)&&(t._workInProgressVersionPrimary=r,Ki.push(t))),e)return n(t._source);throw Ki.push(t),Error(a(350))}function ha(e,t,n,r){var o=Ts;if(null===o)throw Error(a(349));var i=t._getVersion,s=i(t._source),l=Xi.current,c=l.useState((function(){return fa(o,t,n)})),u=c[1],d=c[0];c=na;var p=e.memoizedState,f=p.refs,h=f.getSnapshot,m=p.source;p=p.subscribe;var v=ea;return e.memoizedState={refs:f,source:t,subscribe:r},l.useEffect((function(){f.getSnapshot=n,f.setSnapshot=u;var e=i(t._source);if(!ur(s,e)){e=n(t._source),ur(d,e)||(u(e),e=fl(v),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,a=e;0<a;){var l=31-Vt(a),c=1<<l;r[l]|=e,a&=~c}}}),[n,t,r]),l.useEffect((function(){return r(t._source,(function(){var e=f.getSnapshot,n=f.setSnapshot;try{n(e(t._source));var r=fl(v);o.mutableReadLanes|=r&o.pendingLanes}catch(i){n((function(){throw i}))}}))}),[t,r]),ur(h,n)&&ur(m,t)&&ur(p,r)||((e={pending:null,dispatch:null,lastRenderedReducer:ua,lastRenderedState:d}).dispatch=u=Aa.bind(null,ea,e),c.queue=e,c.baseQueue=null,d=fa(o,t,n),c.memoizedState=c.baseState=d),d}function ma(e,t,n){return ha(ca(),e,t,n)}function va(e){var t=la();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ua,lastRenderedState:e}).dispatch=Aa.bind(null,ea,e),[t.memoizedState,e]}function ga(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ea.updateQueue)?(t={lastEffect:null},ea.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ya(e){return e={current:e},la().memoizedState=e}function ba(){return ca().memoizedState}function xa(e,t,n,r){var o=la();ea.flags|=e,o.memoizedState=ga(1|t,n,void 0,void 0===r?null:r)}function wa(e,t,n,r){var o=ca();r=void 0===r?null:r;var i=void 0;if(null!==ta){var a=ta.memoizedState;if(i=a.destroy,null!==r&&aa(r,a.deps))return void ga(t,n,i,r)}ea.flags|=e,o.memoizedState=ga(1|t,n,i,r)}function Ca(e,t){return xa(516,4,e,t)}function ja(e,t){return wa(516,4,e,t)}function Sa(e,t){return wa(4,2,e,t)}function ka(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Za(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,wa(4,2,ka.bind(null,t,e),n)}function Oa(){}function Ea(e,t){var n=ca();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&aa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Da(e,t){var n=ca();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&aa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Pa(e,t){var n=Uo();Go(98>n?98:n,(function(){e(!0)})),Go(97<n?97:n,(function(){var n=Qi.transition;Qi.transition=1;try{e(!1),t()}finally{Qi.transition=n}}))}function Aa(e,t,n){var r=pl(),o=fl(e),i={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?i.next=i:(i.next=a.next,a.next=i),t.pending=i,a=e.alternate,e===ea||null!==a&&a===ea)oa=ra=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=a(s,n);if(i.eagerReducer=a,i.eagerState=l,ur(l,s))return}catch(c){}hl(e,o,r)}}var Ma={readContext:si,useCallback:ia,useContext:ia,useEffect:ia,useImperativeHandle:ia,useLayoutEffect:ia,useMemo:ia,useReducer:ia,useRef:ia,useState:ia,useDebugValue:ia,useDeferredValue:ia,useTransition:ia,useMutableSource:ia,useOpaqueIdentifier:ia,unstable_isNewReconciler:!1},Ta={readContext:si,useCallback:function(e,t){return la().memoizedState=[e,void 0===t?null:t],e},useContext:si,useEffect:Ca,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,xa(4,2,ka.bind(null,t,e),n)},useLayoutEffect:function(e,t){return xa(4,2,e,t)},useMemo:function(e,t){var n=la();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=la();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Aa.bind(null,ea,e),[r.memoizedState,e]},useRef:ya,useState:va,useDebugValue:Oa,useDeferredValue:function(e){var t=va(e),n=t[0],r=t[1];return Ca((function(){var t=Qi.transition;Qi.transition=1;try{r(e)}finally{Qi.transition=t}}),[e]),n},useTransition:function(){var e=va(!1),t=e[0];return ya(e=Pa.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=la();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},ha(r,e,t,n)},useOpaqueIdentifier:function(){if(Hi){var e=!1,t=function(e){return{$$typeof:R,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Jr++).toString(36))),Error(a(355))})),n=va(t)[1];return 0===(2&ea.mode)&&(ea.flags|=516,ga(5,(function(){n("r:"+(Jr++).toString(36))}),void 0,null)),t}return va(t="r:"+(Jr++).toString(36)),t},unstable_isNewReconciler:!1},Ia={readContext:si,useCallback:Ea,useContext:si,useEffect:ja,useImperativeHandle:Za,useLayoutEffect:Sa,useMemo:Da,useReducer:da,useRef:ba,useState:function(){return da(ua)},useDebugValue:Oa,useDeferredValue:function(e){var t=da(ua),n=t[0],r=t[1];return ja((function(){var t=Qi.transition;Qi.transition=1;try{r(e)}finally{Qi.transition=t}}),[e]),n},useTransition:function(){var e=da(ua)[0];return[ba().current,e]},useMutableSource:ma,useOpaqueIdentifier:function(){return da(ua)[0]},unstable_isNewReconciler:!1},Ra={readContext:si,useCallback:Ea,useContext:si,useEffect:ja,useImperativeHandle:Za,useLayoutEffect:Sa,useMemo:Da,useReducer:pa,useRef:ba,useState:function(){return pa(ua)},useDebugValue:Oa,useDeferredValue:function(e){var t=pa(ua),n=t[0],r=t[1];return ja((function(){var t=Qi.transition;Qi.transition=1;try{r(e)}finally{Qi.transition=t}}),[e]),n},useTransition:function(){var e=pa(ua)[0];return[ba().current,e]},useMutableSource:ma,useOpaqueIdentifier:function(){return pa(ua)[0]},unstable_isNewReconciler:!1},Fa=w.ReactCurrentOwner,Ba=!1;function La(e,t,n,r){t.child=null===e?Ei(t,null,n,r):Oi(t,e.child,n,r)}function Na(e,t,n,r,o){n=n.render;var i=t.ref;return ai(t,o),r=sa(e,t,n,r,i,o),null===e||Ba?(t.flags|=1,La(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,is(e,t,o))}function _a(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!==typeof a||Ul(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Gl(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,za(e,t,a,r,o,i))}return a=e.child,0===(o&i)&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:pr)(o,r)&&e.ref===t.ref)?is(e,t,i):(t.flags|=1,(e=ql(a,r)).ref=t.ref,e.return=t,t.child=e)}function za(e,t,n,r,o,i){if(null!==e&&pr(e.memoizedProps,r)&&e.ref===t.ref){if(Ba=!1,0===(i&o))return t.lanes=e.lanes,is(e,t,i);0!==(16384&e.flags)&&(Ba=!0)}return Va(e,t,n,r,i)}function Ha(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0===(4&t.mode))t.memoizedState={baseLanes:0},Cl(t,n);else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Cl(t,e),null;t.memoizedState={baseLanes:0},Cl(t,null!==i?i.baseLanes:n)}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Cl(t,r);return La(e,t,o,n),t.child}function Wa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Va(e,t,n,r,o){var i=yo(n)?vo:ho.current;return i=go(t,i),ai(t,o),n=sa(e,t,n,r,i,o),null===e||Ba?(t.flags|=1,La(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,is(e,t,o))}function Ua(e,t,n,r,o){if(yo(n)){var i=!0;Co(t)}else i=!1;if(ai(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),xi(t,n,r),Ci(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=si(c):c=go(t,c=yo(n)?vo:ho.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==c)&&wi(t,a,r,c),li=!1;var p=t.memoizedState;a.state=p,hi(t,r,a,o),l=t.memoizedState,s!==r||p!==l||mo.current||li?("function"===typeof u&&(gi(t,n,u,r),l=t.memoizedState),(s=li||bi(t,n,s,r,p,l,c))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4)):("function"===typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,ui(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Qo(t.type,s),a.props=c,d=t.pendingProps,p=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=si(l):l=go(t,l=yo(n)?vo:ho.current);var f=n.getDerivedStateFromProps;(u="function"===typeof f||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||p!==l)&&wi(t,a,r,l),li=!1,p=t.memoizedState,a.state=p,hi(t,r,a,o);var h=t.memoizedState;s!==d||p!==h||mo.current||li?("function"===typeof f&&(gi(t,n,f,r),h=t.memoizedState),(c=li||bi(t,n,c,r,p,h,l))?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),r=!1)}return qa(e,t,n,r,i,o)}function qa(e,t,n,r,o,i){Wa(e,t);var a=0!==(64&t.flags);if(!r&&!a)return o&&jo(t,n,!1),is(e,t,i);r=t.stateNode,Fa.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Oi(t,e.child,null,i),t.child=Oi(t,null,s,i)):La(e,t,s,i),t.memoizedState=r.state,o&&jo(t,n,!0),t.child}function Ga(e){var t=e.stateNode;t.pendingContext?xo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&xo(0,t.context,!1),Ii(e,t.containerInfo)}var Ya,Ka,Ja,Xa={dehydrated:null,retryLane:0};function Qa(e,t,n){var r,o=t.pendingProps,i=Li.current,a=!1;return(r=0!==(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!==(2&i)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(i|=1),po(Li,1&i),null===e?(void 0!==o.fallback&&Ui(t),e=o.children,i=o.fallback,a?(e=$a(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Xa,e):"number"===typeof o.unstable_expectedLoadTime?(e=$a(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Xa,t.lanes=33554432,e):((n=Kl({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(o=ts(e,t,o.children,o.fallback,n),a=t.child,i=e.child.memoizedState,a.memoizedState=null===i?{baseLanes:n}:{baseLanes:i.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Xa,o):(n=es(e,t,o.children,n),t.memoizedState=null,n))}function $a(e,t,n,r){var o=e.mode,i=e.child;return t={mode:"hidden",children:t},0===(2&o)&&null!==i?(i.childLanes=0,i.pendingProps=t):i=Kl(t,o,0,null),n=Yl(n,o,r,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function es(e,t,n,r){var o=e.child;return e=o.sibling,n=ql(o,{mode:"visible",children:n}),0===(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function ts(e,t,n,r,o){var i=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return 0===(2&i)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=s,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=ql(a,s),null!==e?r=ql(e,r):(r=Yl(r,i,o,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function ns(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ii(e.return,t)}function rs(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.lastEffect=i)}function os(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(La(e,t,r.children,n),0!==(2&(r=Li.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ns(e,n);else if(19===e.tag)ns(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(po(Li,r),0===(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Ni(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),rs(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Ni(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}rs(t,!0,n,null,i,t.lastEffect);break;case"together":rs(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function is(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),zs|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=ql(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=ql(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function as(e,t){if(!Hi)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ss(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return yo(t.type)&&bo(),null;case 3:return Ri(),uo(mo),uo(ho),Ji(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Gi(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Bi(t);var i=Ti(Mi.current);if(n=t.type,null!==e&&null!=t.stateNode)Ka(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Ti(Pi.current),Gi(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Qr]=t,r[$r]=s,n){case"dialog":Pr("cancel",r),Pr("close",r);break;case"iframe":case"object":case"embed":Pr("load",r);break;case"video":case"audio":for(e=0;e<Zr.length;e++)Pr(Zr[e],r);break;case"source":Pr("error",r);break;case"img":case"image":case"link":Pr("error",r),Pr("load",r);break;case"details":Pr("toggle",r);break;case"input":ee(r,s),Pr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Pr("invalid",r);break;case"textarea":le(r,s),Pr("invalid",r)}for(var c in Se(n,s),e=null,s)s.hasOwnProperty(c)&&(i=s[c],"children"===c?"string"===typeof i?r.textContent!==i&&(e=["children",i]):"number"===typeof i&&r.textContent!==""+i&&(e=["children",""+i]):l.hasOwnProperty(c)&&null!=i&&"onScroll"===c&&Pr("scroll",r));switch(n){case"input":J(r),re(r,s,!0);break;case"textarea":J(r),ue(r);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(r.onclick=_r)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(c=9===i.nodeType?i:i.ownerDocument,e===de&&(e=fe(n)),e===de?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[Qr]=t,e[$r]=r,Ya(e,t),t.stateNode=e,c=ke(n,r),n){case"dialog":Pr("cancel",e),Pr("close",e),i=r;break;case"iframe":case"object":case"embed":Pr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Zr.length;i++)Pr(Zr[i],e);i=r;break;case"source":Pr("error",e),i=r;break;case"img":case"image":case"link":Pr("error",e),Pr("load",e),i=r;break;case"details":Pr("toggle",e),i=r;break;case"input":ee(e,r),i=$(e,r),Pr("invalid",e);break;case"option":i=ie(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=o({},r,{value:void 0}),Pr("invalid",e);break;case"textarea":le(e,r),i=se(e,r),Pr("invalid",e);break;default:i=r}Se(n,i);var u=i;for(s in u)if(u.hasOwnProperty(s)){var d=u[s];"style"===s?Ce(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&ge(e,d):"children"===s?"string"===typeof d?("textarea"!==n||""!==d)&&ye(e,d):"number"===typeof d&&ye(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(l.hasOwnProperty(s)?null!=d&&"onScroll"===s&&Pr("scroll",e):null!=d&&x(e,s,d,c))}switch(n){case"input":J(e),re(e,r,!1);break;case"textarea":J(e),ue(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Y(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ae(e,!!r.multiple,s,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=_r)}Wr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Ja(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));n=Ti(Mi.current),Ti(Pi.current),Gi(t)?(r=t.stateNode,n=t.memoizedProps,r[Qr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Qr]=t,t.stateNode=r)}return null;case 13:return uo(Li),r=t.memoizedState,0!==(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Gi(t):n=null!==e.memoizedState,r&&!n&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Li.current)?0===Ls&&(Ls=3):(0!==Ls&&3!==Ls||(Ls=4),null===Ts||0===(134217727&zs)&&0===(134217727&Hs)||yl(Ts,Rs))),(r||n)&&(t.flags|=4),null);case 4:return Ri(),null===e&&Mr(t.stateNode.containerInfo),null;case 10:return oi(t),null;case 19:if(uo(Li),null===(r=t.memoizedState))return null;if(s=0!==(64&t.flags),null===(c=r.rendering))if(s)as(r,!1);else{if(0!==Ls||null!==e&&0!==(64&e.flags))for(e=t.child;null!==e;){if(null!==(c=Ni(e))){for(t.flags|=64,as(r,!1),null!==(s=c.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(c=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return po(Li,1&Li.current|2),t.child}e=e.sibling}null!==r.tail&&Vo()>qs&&(t.flags|=64,s=!0,as(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=Ni(c))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),as(r,!0),null===r.tail&&"hidden"===r.tailMode&&!c.alternate&&!Hi)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Vo()-r.renderingStartTime>qs&&1073741824!==n&&(t.flags|=64,s=!0,as(r,!1),t.lanes=33554432);r.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=r.last)?n.sibling=c:t.child=c,r.last=c)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Vo(),n.sibling=null,t=Li.current,po(Li,s?1&t|2:1&t),n):null;case 23:case 24:return jl(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function ls(e){switch(e.tag){case 1:yo(e.type)&&bo();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Ri(),uo(mo),uo(ho),Ji(),0!==(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Bi(e),null;case 13:return uo(Li),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return uo(Li),null;case 4:return Ri(),null;case 10:return oi(e),null;case 23:case 24:return jl(),null;default:return null}}function cs(e,t){try{var n="",r=t;do{n+=q(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o}}function us(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}Ya=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ka=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ti(Pi.current);var a,s=null;switch(n){case"input":i=$(e,i),r=$(e,r),s=[];break;case"option":i=ie(e,i),r=ie(e,r),s=[];break;case"select":i=o({},i,{value:void 0}),r=o({},r,{value:void 0}),s=[];break;case"textarea":i=se(e,i),r=se(e,r),s=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=_r)}for(d in Se(n,r),n=null,i)if(!r.hasOwnProperty(d)&&i.hasOwnProperty(d)&&null!=i[d])if("style"===d){var c=i[d];for(a in c)c.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(l.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var u=r[d];if(c=null!=i?i[d]:void 0,r.hasOwnProperty(d)&&u!==c&&(null!=u||null!=c))if("style"===d)if(c){for(a in c)!c.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&c[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(s||(s=[]),s.push(d,n)),n=u;else"dangerouslySetInnerHTML"===d?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(s=s||[]).push(d,u)):"children"===d?"string"!==typeof u&&"number"!==typeof u||(s=s||[]).push(d,""+u):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(l.hasOwnProperty(d)?(null!=u&&"onScroll"===d&&Pr("scroll",e),s||c===u||(s=[])):"object"===typeof u&&null!==u&&u.$$typeof===R?u.toString():(s=s||[]).push(d,u))}n&&(s=s||[]).push("style",n);var d=s;(t.updateQueue=d)&&(t.flags|=4)}},Ja=function(e,t,n,r){n!==r&&(t.flags|=4)};var ds="function"===typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=di(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Js||(Js=!0,Xs=r),us(0,t)},n}function fs(e,t,n){(n=di(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return us(0,t),r(o)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Qs?Qs=new Set([this]):Qs.add(this),us(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var hs="function"===typeof WeakSet?WeakSet:Set;function ms(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){_l(e,n)}else t.current=null}function vs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Qo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Gr(t.stateNode.containerInfo))}throw Error(a(163))}function gs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var o=e;r=o.next,0!==(4&(o=o.tag))&&0!==(1&o)&&(Bl(n,e),Fl(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Qo(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&mi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}mi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Wr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Ct(n)))))}throw Error(a(163))}function ys(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=void 0!==o&&null!==o&&o.hasOwnProperty("display")?o.display:null,r.style.display=we("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function bs(e,t){if(ko&&"function"===typeof ko.onCommitFiberUnmount)try{ko.onCommitFiberUnmount(So,t)}catch(i){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,void 0!==o)if(0!==(4&r))Bl(t,n);else{r=t;try{o()}catch(i){_l(r,i)}}n=n.next}while(n!==e)}break;case 1:if(ms(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(i){_l(t,i)}break;case 5:ms(t);break;case 4:ks(e,t)}}function xs(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function ws(e){return 5===e.tag||3===e.tag||4===e.tag}function Cs(e){e:{for(var t=e.return;null!==t;){if(ws(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(ye(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ws(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?js(e,n,t):Ss(e,n,t)}function js(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=_r));else if(4!==r&&null!==(e=e.child))for(js(e,t,n),e=e.sibling;null!==e;)js(e,t,n),e=e.sibling}function Ss(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Ss(e,t,n),e=e.sibling;null!==e;)Ss(e,t,n),e=e.sibling}function ks(e,t){for(var n,r,o=t,i=!1;;){if(!i){i=o.return;e:for(;;){if(null===i)throw Error(a(160));switch(n=i.stateNode,i.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}i=i.return}i=!0}if(5===o.tag||6===o.tag){e:for(var s=e,l=o,c=l;;)if(bs(s,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===l)break e;for(;null===c.sibling;){if(null===c.return||c.return===l)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}r?(s=n,l=o.stateNode,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,r=!0,o.child.return=o,o=o.child;continue}}else if(bs(e,o),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(i=!1)}o.sibling.return=o.return,o=o.sibling}}function Zs(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[$r]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),ke(e,o),t=ke(e,r),o=0;o<i.length;o+=2){var s=i[o],l=i[o+1];"style"===s?Ce(n,l):"dangerouslySetInnerHTML"===s?ge(n,l):"children"===s?ye(n,l):x(n,s,l,t)}switch(e){case"input":ne(n,r);break;case"textarea":ce(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(i=r.value)?ae(n,!!r.multiple,i,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,Ct(n.containerInfo)));case 13:return null!==t.memoizedState&&(Us=Vo(),ys(t.child,!0)),void Os(t);case 19:return void Os(t);case 23:case 24:return void ys(t,null!==t.memoizedState)}throw Error(a(163))}function Os(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new hs),t.forEach((function(t){var r=Hl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Es(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Ds=Math.ceil,Ps=w.ReactCurrentDispatcher,As=w.ReactCurrentOwner,Ms=0,Ts=null,Is=null,Rs=0,Fs=0,Bs=co(0),Ls=0,Ns=null,_s=0,zs=0,Hs=0,Ws=0,Vs=null,Us=0,qs=1/0;function Gs(){qs=Vo()+500}var Ys,Ks=null,Js=!1,Xs=null,Qs=null,$s=!1,el=null,tl=90,nl=[],rl=[],ol=null,il=0,al=null,sl=-1,ll=0,cl=0,ul=null,dl=!1;function pl(){return 0!==(48&Ms)?Vo():-1!==sl?sl:sl=Vo()}function fl(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===Uo()?1:2;if(0===ll&&(ll=_s),0!==Xo.transition){0!==cl&&(cl=null!==Vs?Vs.pendingLanes:0),e=ll;var t=4186112&~cl;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Uo(),0!==(4&Ms)&&98===e?e=_t(12,ll):e=_t(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ll),e}function hl(e,t,n){if(50<il)throw il=0,al=null,Error(a(185));if(null===(e=ml(e,t)))return null;Wt(e,t,n),e===Ts&&(Hs|=t,4===Ls&&yl(e,Rs));var r=Uo();1===t?0!==(8&Ms)&&0===(48&Ms)?bl(e):(vl(e,n),0===Ms&&(Gs(),Ko())):(0===(4&Ms)||98!==r&&99!==r||(null===ol?ol=new Set([e]):ol.add(e)),vl(e,n)),Vs=e}function ml(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function vl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-Vt(s),c=1<<l,u=i[l];if(-1===u){if(0===(c&r)||0!==(c&o)){u=t,Bt(c);var d=Ft;i[l]=10<=d?u+250:6<=d?u+5e3:-1}}else u<=t&&(e.expiredLanes|=c);s&=~c}if(r=Lt(e,e===Ts?Rs:0),t=Ft,0===r)null!==n&&(n!==Lo&&Eo(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Lo&&Eo(n)}15===t?(n=bl.bind(null,e),null===_o?(_o=[n],zo=Oo(To,Jo)):_o.push(n),n=Lo):14===t?n=Yo(99,bl.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),n=Yo(n,gl.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function gl(e){if(sl=-1,cl=ll=0,0!==(48&Ms))throw Error(a(327));var t=e.callbackNode;if(Rl()&&e.callbackNode!==t)return null;var n=Lt(e,e===Ts?Rs:0);if(0===n)return null;var r=n,o=Ms;Ms|=16;var i=Zl();for(Ts===e&&Rs===r||(Gs(),Sl(e,r));;)try{Dl();break}catch(l){kl(e,l)}if(ri(),Ps.current=i,Ms=o,null!==Is?r=0:(Ts=null,Rs=0,r=Ls),0!==(_s&Hs))Sl(e,0);else if(0!==r){if(2===r&&(Ms|=64,e.hydrate&&(e.hydrate=!1,Gr(e.containerInfo)),0!==(n=Nt(e))&&(r=Ol(e,n))),1===r)throw t=Ns,Sl(e,0),yl(e,n),vl(e,Vo()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:case 5:Ml(e);break;case 3:if(yl(e,n),(62914560&n)===n&&10<(r=Us+500-Vo())){if(0!==Lt(e,0))break;if(((o=e.suspendedLanes)&n)!==n){pl(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Ur(Ml.bind(null,e),r);break}Ml(e);break;case 4:if(yl(e,n),(4186112&n)===n)break;for(r=e.eventTimes,o=-1;0<n;){var s=31-Vt(n);i=1<<s,(s=r[s])>o&&(o=s),n&=~i}if(n=o,10<(n=(120>(n=Vo()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ds(n/1960))-n)){e.timeoutHandle=Ur(Ml.bind(null,e),n);break}Ml(e);break;default:throw Error(a(329))}}return vl(e,Vo()),e.callbackNode===t?gl.bind(null,e):null}function yl(e,t){for(t&=~Ws,t&=~Hs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Vt(t),r=1<<n;e[n]=-1,t&=~r}}function bl(e){if(0!==(48&Ms))throw Error(a(327));if(Rl(),e===Ts&&0!==(e.expiredLanes&Rs)){var t=Rs,n=Ol(e,t);0!==(_s&Hs)&&(n=Ol(e,t=Lt(e,t)))}else n=Ol(e,t=Lt(e,0));if(0!==e.tag&&2===n&&(Ms|=64,e.hydrate&&(e.hydrate=!1,Gr(e.containerInfo)),0!==(t=Nt(e))&&(n=Ol(e,t))),1===n)throw n=Ns,Sl(e,0),yl(e,t),vl(e,Vo()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ml(e),vl(e,Vo()),null}function xl(e,t){var n=Ms;Ms|=1;try{return e(t)}finally{0===(Ms=n)&&(Gs(),Ko())}}function wl(e,t){var n=Ms;Ms&=-2,Ms|=8;try{return e(t)}finally{0===(Ms=n)&&(Gs(),Ko())}}function Cl(e,t){po(Bs,Fs),Fs|=t,_s|=t}function jl(){Fs=Bs.current,uo(Bs)}function Sl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,qr(n)),null!==Is)for(n=Is.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&bo();break;case 3:Ri(),uo(mo),uo(ho),Ji();break;case 5:Bi(r);break;case 4:Ri();break;case 13:case 19:uo(Li);break;case 10:oi(r);break;case 23:case 24:jl()}n=n.return}Ts=e,Is=ql(e.current,null),Rs=Fs=_s=t,Ls=0,Ns=null,Ws=Hs=zs=0}function kl(e,t){for(;;){var n=Is;try{if(ri(),Xi.current=Ma,ra){for(var r=ea.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ra=!1}if($i=0,na=ta=ea=null,oa=!1,As.current=null,null===n||null===n.return){Ls=1,Ns=t,Is=null;break}e:{var i=e,a=n.return,s=n,l=t;if(t=Rs,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"===typeof l&&"function"===typeof l.then){var c=l;if(0===(2&s.mode)){var u=s.alternate;u?(s.updateQueue=u.updateQueue,s.memoizedState=u.memoizedState,s.lanes=u.lanes):(s.updateQueue=null,s.memoizedState=null)}var d=0!==(1&Li.current),p=a;do{var f;if(f=13===p.tag){var h=p.memoizedState;if(null!==h)f=null!==h.dehydrated;else{var m=p.memoizedProps;f=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!d)}}if(f){var v=p.updateQueue;if(null===v){var g=new Set;g.add(c),p.updateQueue=g}else v.add(c);if(0===(2&p.mode)){if(p.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=di(-1,1);y.tag=2,pi(s,y)}s.lanes|=1;break e}l=void 0,s=t;var b=i.pingCache;if(null===b?(b=i.pingCache=new ds,l=new Set,b.set(c,l)):void 0===(l=b.get(c))&&(l=new Set,b.set(c,l)),!l.has(s)){l.add(s);var x=zl.bind(null,i,c,s);c.then(x,x)}p.flags|=4096,p.lanes=t;break e}p=p.return}while(null!==p);l=Error((G(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Ls&&(Ls=2),l=cs(l,s),p=a;do{switch(p.tag){case 3:i=l,p.flags|=4096,t&=-t,p.lanes|=t,fi(p,ps(0,i,t));break e;case 1:i=l;var w=p.type,C=p.stateNode;if(0===(64&p.flags)&&("function"===typeof w.getDerivedStateFromError||null!==C&&"function"===typeof C.componentDidCatch&&(null===Qs||!Qs.has(C)))){p.flags|=4096,t&=-t,p.lanes|=t,fi(p,fs(p,i,t));break e}}p=p.return}while(null!==p)}Al(n)}catch(j){t=j,Is===n&&null!==n&&(Is=n=n.return);continue}break}}function Zl(){var e=Ps.current;return Ps.current=Ma,null===e?Ma:e}function Ol(e,t){var n=Ms;Ms|=16;var r=Zl();for(Ts===e&&Rs===t||Sl(e,t);;)try{El();break}catch(o){kl(e,o)}if(ri(),Ms=n,Ps.current=r,null!==Is)throw Error(a(261));return Ts=null,Rs=0,Ls}function El(){for(;null!==Is;)Pl(Is)}function Dl(){for(;null!==Is&&!Do();)Pl(Is)}function Pl(e){var t=Ys(e.alternate,e,Fs);e.memoizedProps=e.pendingProps,null===t?Al(e):Is=t,As.current=null}function Al(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=ss(n,t,Fs)))return void(Is=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&Fs)||0===(4&n.mode)){for(var r=0,o=n.child;null!==o;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=ls(t)))return n.flags&=2047,void(Is=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Is=t);Is=t=e}while(null!==t);0===Ls&&(Ls=5)}function Ml(e){var t=Uo();return Go(99,Tl.bind(null,e,t)),null}function Tl(e,t){do{Rl()}while(null!==el);if(0!==(48&Ms))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,i=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var s=e.eventTimes,l=e.expirationTimes;0<i;){var c=31-Vt(i),u=1<<c;o[c]=0,s[c]=-1,l[c]=-1,i&=~u}if(null!==ol&&0===(24&r)&&ol.has(e)&&ol.delete(e),e===Ts&&(Is=Ts=null,Rs=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(o=Ms,Ms|=32,As.current=null,zr=Kt,gr(s=vr())){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(u=l.getSelection&&l.getSelection())&&0!==u.rangeCount){l=u.anchorNode,i=u.anchorOffset,c=u.focusNode,u=u.focusOffset;try{l.nodeType,c.nodeType}catch(Z){l=null;break e}var d=0,p=-1,f=-1,h=0,m=0,v=s,g=null;t:for(;;){for(var y;v!==l||0!==i&&3!==v.nodeType||(p=d+i),v!==c||0!==u&&3!==v.nodeType||(f=d+u),3===v.nodeType&&(d+=v.nodeValue.length),null!==(y=v.firstChild);)g=v,v=y;for(;;){if(v===s)break t;if(g===l&&++h===i&&(p=d),g===c&&++m===u&&(f=d),null!==(y=v.nextSibling))break;g=(v=g).parentNode}v=y}l=-1===p||-1===f?null:{start:p,end:f}}else l=null;l=l||{start:0,end:0}}else l=null;Hr={focusedElem:s,selectionRange:l},Kt=!1,ul=null,dl=!1,Ks=r;do{try{Il()}catch(Z){if(null===Ks)throw Error(a(330));_l(Ks,Z),Ks=Ks.nextEffect}}while(null!==Ks);ul=null,Ks=r;do{try{for(s=e;null!==Ks;){var b=Ks.flags;if(16&b&&ye(Ks.stateNode,""),128&b){var x=Ks.alternate;if(null!==x){var w=x.ref;null!==w&&("function"===typeof w?w(null):w.current=null)}}switch(1038&b){case 2:Cs(Ks),Ks.flags&=-3;break;case 6:Cs(Ks),Ks.flags&=-3,Zs(Ks.alternate,Ks);break;case 1024:Ks.flags&=-1025;break;case 1028:Ks.flags&=-1025,Zs(Ks.alternate,Ks);break;case 4:Zs(Ks.alternate,Ks);break;case 8:ks(s,l=Ks);var C=l.alternate;xs(l),null!==C&&xs(C)}Ks=Ks.nextEffect}}catch(Z){if(null===Ks)throw Error(a(330));_l(Ks,Z),Ks=Ks.nextEffect}}while(null!==Ks);if(w=Hr,x=vr(),b=w.focusedElem,s=w.selectionRange,x!==b&&b&&b.ownerDocument&&mr(b.ownerDocument.documentElement,b)){null!==s&&gr(b)&&(x=s.start,void 0===(w=s.end)&&(w=x),"selectionStart"in b?(b.selectionStart=x,b.selectionEnd=Math.min(w,b.value.length)):(w=(x=b.ownerDocument||document)&&x.defaultView||window).getSelection&&(w=w.getSelection(),l=b.textContent.length,C=Math.min(s.start,l),s=void 0===s.end?C:Math.min(s.end,l),!w.extend&&C>s&&(l=s,s=C,C=l),l=hr(b,C),i=hr(b,s),l&&i&&(1!==w.rangeCount||w.anchorNode!==l.node||w.anchorOffset!==l.offset||w.focusNode!==i.node||w.focusOffset!==i.offset)&&((x=x.createRange()).setStart(l.node,l.offset),w.removeAllRanges(),C>s?(w.addRange(x),w.extend(i.node,i.offset)):(x.setEnd(i.node,i.offset),w.addRange(x))))),x=[];for(w=b;w=w.parentNode;)1===w.nodeType&&x.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"===typeof b.focus&&b.focus(),b=0;b<x.length;b++)(w=x[b]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Kt=!!zr,Hr=zr=null,e.current=n,Ks=r;do{try{for(b=e;null!==Ks;){var j=Ks.flags;if(36&j&&gs(b,Ks.alternate,Ks),128&j){x=void 0;var S=Ks.ref;if(null!==S){var k=Ks.stateNode;Ks.tag,x=k,"function"===typeof S?S(x):S.current=x}}Ks=Ks.nextEffect}}catch(Z){if(null===Ks)throw Error(a(330));_l(Ks,Z),Ks=Ks.nextEffect}}while(null!==Ks);Ks=null,No(),Ms=o}else e.current=n;if($s)$s=!1,el=e,tl=t;else for(Ks=r;null!==Ks;)t=Ks.nextEffect,Ks.nextEffect=null,8&Ks.flags&&((j=Ks).sibling=null,j.stateNode=null),Ks=t;if(0===(r=e.pendingLanes)&&(Qs=null),1===r?e===al?il++:(il=0,al=e):il=0,n=n.stateNode,ko&&"function"===typeof ko.onCommitFiberRoot)try{ko.onCommitFiberRoot(So,n,void 0,64===(64&n.current.flags))}catch(Z){}if(vl(e,Vo()),Js)throw Js=!1,e=Xs,Xs=null,e;return 0!==(8&Ms)||Ko(),null}function Il(){for(;null!==Ks;){var e=Ks.alternate;dl||null===ul||(0!==(8&Ks.flags)?et(Ks,ul)&&(dl=!0):13===Ks.tag&&Es(e,Ks)&&et(Ks,ul)&&(dl=!0));var t=Ks.flags;0!==(256&t)&&vs(e,Ks),0===(512&t)||$s||($s=!0,Yo(97,(function(){return Rl(),null}))),Ks=Ks.nextEffect}}function Rl(){if(90!==tl){var e=97<tl?97:tl;return tl=90,Go(e,Ll)}return!1}function Fl(e,t){nl.push(t,e),$s||($s=!0,Yo(97,(function(){return Rl(),null})))}function Bl(e,t){rl.push(t,e),$s||($s=!0,Yo(97,(function(){return Rl(),null})))}function Ll(){if(null===el)return!1;var e=el;if(el=null,0!==(48&Ms))throw Error(a(331));var t=Ms;Ms|=32;var n=rl;rl=[];for(var r=0;r<n.length;r+=2){var o=n[r],i=n[r+1],s=o.destroy;if(o.destroy=void 0,"function"===typeof s)try{s()}catch(c){if(null===i)throw Error(a(330));_l(i,c)}}for(n=nl,nl=[],r=0;r<n.length;r+=2){o=n[r],i=n[r+1];try{var l=o.create;o.destroy=l()}catch(c){if(null===i)throw Error(a(330));_l(i,c)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Ms=t,Ko(),!0}function Nl(e,t,n){pi(e,t=ps(0,t=cs(n,t),1)),t=pl(),null!==(e=ml(e,1))&&(Wt(e,1,t),vl(e,t))}function _l(e,t){if(3===e.tag)Nl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Nl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Qs||!Qs.has(r))){var o=fs(n,e=cs(t,e),1);if(pi(n,o),o=pl(),null!==(n=ml(n,1)))Wt(n,1,o),vl(n,o);else if("function"===typeof r.componentDidCatch&&(null===Qs||!Qs.has(r)))try{r.componentDidCatch(t,e)}catch(i){}break}}n=n.return}}function zl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=pl(),e.pingedLanes|=e.suspendedLanes&n,Ts===e&&(Rs&n)===n&&(4===Ls||3===Ls&&(62914560&Rs)===Rs&&500>Vo()-Us?Sl(e,0):Ws|=n),vl(e,t)}function Hl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===Uo()?1:2:(0===ll&&(ll=_s),0===(t=zt(62914560&~ll))&&(t=4194304))),n=pl(),null!==(e=ml(e,t))&&(Wt(e,t,n),vl(e,n))}function Wl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Vl(e,t,n,r){return new Wl(e,t,n,r)}function Ul(e){return!(!(e=e.prototype)||!e.isReactComponent)}function ql(e,t){var n=e.alternate;return null===n?((n=Vl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Gl(e,t,n,r,o,i){var s=2;if(r=e,"function"===typeof e)Ul(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case S:return Yl(n.children,o,i,t);case F:s=8,o|=16;break;case k:s=8,o|=1;break;case Z:return(e=Vl(12,n,t,8|o)).elementType=Z,e.type=Z,e.lanes=i,e;case P:return(e=Vl(13,n,t,o)).type=P,e.elementType=P,e.lanes=i,e;case A:return(e=Vl(19,n,t,o)).elementType=A,e.lanes=i,e;case B:return Kl(n,o,i,t);case L:return(e=Vl(24,n,t,o)).elementType=L,e.lanes=i,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case O:s=10;break e;case E:s=9;break e;case D:s=11;break e;case M:s=14;break e;case T:s=16,r=null;break e;case I:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Vl(s,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Yl(e,t,n,r){return(e=Vl(7,e,r,t)).lanes=n,e}function Kl(e,t,n,r){return(e=Vl(23,e,r,t)).elementType=B,e.lanes=n,e}function Jl(e,t,n){return(e=Vl(6,e,null,t)).lanes=n,e}function Xl(e,t,n){return(t=Vl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ql(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ht(0),this.expirationTimes=Ht(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ht(0),this.mutableSourceEagerHydrationData=null}function $l(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:j,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function ec(e,t,n,r){var o=t.current,i=pl(),s=fl(o);e:if(n){t:{if(Je(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(yo(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var c=n.type;if(yo(c)){n=wo(n,c,l);break e}}n=l}else n=fo;return null===t.context?t.context=n:t.pendingContext=n,(t=di(i,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),pi(o,t),hl(o,s,i),s}function tc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function nc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function rc(e,t){nc(e,t),(e=e.alternate)&&nc(e,t)}function oc(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Ql(e,t,null!=n&&!0===n.hydrate),t=Vl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ci(t),e[eo]=n.current,Mr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var o=(t=r[e])._getVersion;o=o(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,o]:n.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=n}function ic(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ac(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"===typeof o){var s=o;o=function(){var e=tc(a);s.call(e)}}ec(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new oc(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"===typeof o){var l=o;o=function(){var e=tc(a);l.call(e)}}wl((function(){ec(t,a,e,o)}))}return tc(a)}function sc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ic(t))throw Error(a(200));return $l(e,t,null,n)}Ys=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||mo.current)Ba=!0;else{if(0===(n&r)){switch(Ba=!1,t.tag){case 3:Ga(t),Yi();break;case 5:Fi(t);break;case 1:yo(t.type)&&Co(t);break;case 4:Ii(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;po($o,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?Qa(e,t,n):(po(Li,1&Li.current),null!==(t=is(e,t,n))?t.sibling:null);po(Li,1&Li.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(64&e.flags)){if(r)return os(e,t,n);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),po(Li,Li.current),r)break;return null;case 23:case 24:return t.lanes=0,Ha(e,t,n)}return is(e,t,n)}Ba=0!==(16384&e.flags)}else Ba=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=go(t,ho.current),ai(t,n),o=sa(null,t,r,e,o,n),t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,yo(r)){var i=!0;Co(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ci(t);var s=r.getDerivedStateFromProps;"function"===typeof s&&gi(t,r,s,e),o.updater=yi,t.stateNode=o,o._reactInternals=t,Ci(t,r,e,n),t=qa(null,t,r,!0,i,n)}else t.tag=0,La(null,t,o,n),t=t.child;return t;case 16:o=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"===typeof e)return Ul(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===D)return 11;if(e===M)return 14}return 2}(o),e=Qo(o,e),i){case 0:t=Va(null,t,o,e,n);break e;case 1:t=Ua(null,t,o,e,n);break e;case 11:t=Na(null,t,o,e,n);break e;case 14:t=_a(null,t,o,Qo(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,Va(e,t,r,o=t.elementType===r?o:Qo(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ua(e,t,r,o=t.elementType===r?o:Qo(r,o),n);case 3:if(Ga(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,ui(e,t),hi(t,r,null,n),(r=t.memoizedState.element)===o)Yi(),t=is(e,t,n);else{if((i=(o=t.stateNode).hydrate)&&(zi=Yr(t.stateNode.containerInfo.firstChild),_i=t,i=Hi=!0),i){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o<e.length;o+=2)(i=e[o])._workInProgressVersionPrimary=e[o+1],Ki.push(i);for(n=Ei(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else La(e,t,r,n),Yi();t=t.child}return t;case 5:return Fi(t),null===e&&Ui(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,Vr(r,o)?s=null:null!==i&&Vr(r,i)&&(t.flags|=16),Wa(e,t),La(e,t,s,n),t.child;case 6:return null===e&&Ui(t),null;case 13:return Qa(e,t,n);case 4:return Ii(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Oi(t,null,r,n):La(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Na(e,t,r,o=t.elementType===r?o:Qo(r,o),n);case 7:return La(e,t,t.pendingProps,n),t.child;case 8:case 12:return La(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value;var l=t.type._context;if(po($o,l._currentValue),l._currentValue=i,null!==s)if(l=s.value,0===(i=ur(l,i)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(l,i):1073741823))){if(s.children===o.children&&!mo.current){t=is(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){s=l.child;for(var u=c.firstContext;null!==u;){if(u.context===r&&0!==(u.observedBits&i)){1===l.tag&&((u=di(-1,n&-n)).tag=2,pi(l,u)),l.lanes|=n,null!==(u=l.alternate)&&(u.lanes|=n),ii(l.return,n),c.lanes|=n;break}u=u.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}La(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ai(t,n),r=r(o=si(o,i.unstable_observedBits)),t.flags|=1,La(e,t,r,n),t.child;case 14:return i=Qo(o=t.type,t.pendingProps),_a(e,t,o,i=Qo(o.type,i),r,n);case 15:return za(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Qo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,yo(r)?(e=!0,Co(t)):e=!1,ai(t,n),xi(t,r,o),Ci(t,r,o,n),qa(null,t,r,!0,e,n);case 19:return os(e,t,n);case 23:case 24:return Ha(e,t,n)}throw Error(a(156,t.tag))},oc.prototype.render=function(e){ec(e,this._internalRoot,null,null)},oc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;ec(null,e,null,(function(){t[eo]=null}))},tt=function(e){13===e.tag&&(hl(e,4,pl()),rc(e,4))},nt=function(e){13===e.tag&&(hl(e,67108864,pl()),rc(e,67108864))},rt=function(e){if(13===e.tag){var t=pl(),n=fl(e);hl(e,n,t),rc(e,n)}},ot=function(e,t){return t()},Oe=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=io(r);if(!o)throw Error(a(90));X(r),ne(r,o)}}}break;case"textarea":ce(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Te=xl,Ie=function(e,t,n,r,o){var i=Ms;Ms|=4;try{return Go(98,e.bind(null,t,n,r,o))}finally{0===(Ms=i)&&(Gs(),Ko())}},Re=function(){0===(49&Ms)&&(function(){if(null!==ol){var e=ol;ol=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,vl(e,Vo())}))}Ko()}(),Rl())},Fe=function(e,t){var n=Ms;Ms|=2;try{return e(t)}finally{0===(Ms=n)&&(Gs(),Ko())}};var lc={Events:[ro,oo,io,Ae,Me,Rl,{current:!1}]},cc={findFiberByHostInstance:no,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},uc={bundleType:cc.bundleType,version:cc.version,rendererPackageName:cc.rendererPackageName,rendererConfig:cc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=$e(e))?null:e.stateNode},findFiberByHostInstance:cc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var dc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!dc.isDisabled&&dc.supportsFiber)try{So=dc.inject(uc),ko=dc}catch(ve){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=lc,t.createPortal=sc,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=$e(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Ms;if(0!==(48&n))return e(t);Ms|=1;try{if(e)return Go(99,e.bind(null,t))}finally{Ms=n,Ko()}},t.hydrate=function(e,t,n){if(!ic(t))throw Error(a(200));return ac(null,e,t,!0,n)},t.render=function(e,t,n){if(!ic(t))throw Error(a(200));return ac(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!ic(e))throw Error(a(40));return!!e._reactRootContainer&&(wl((function(){ac(null,null,e,!1,(function(){e._reactRootContainer=null,e[eo]=null}))})),!0)},t.unstable_batchedUpdates=xl,t.unstable_createPortal=function(e,t){return sc(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ic(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return ac(e,t,n,!1,r)},t.version="17.0.2"},93715:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(12375)},90551:function(e){var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,o="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(!i(e[l],a[l]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!i(l.value[1],a.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof a.toString)return e.toString()===a.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(a,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!i(e[c[l]],a[c[l]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return i(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},17415:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=e||"";t&&(i=r(e));n&&(i=o(i));return i};var n=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function r(e){return e.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,(function(e,t,r){return t>0&&t+e.length!==r.length&&e.search(n)>-1&&":"!==r.charAt(t-2)&&("-"!==r.charAt(t+e.length)||"-"===r.charAt(t-1))&&r.charAt(t-1).search(/[^\s-]/)<0?e.toLowerCase():e.substr(1).search(/[A-Z]|\../)>-1?e:e.charAt(0).toUpperCase()+e.substr(1)}))}function o(e){return"string"===typeof(t=e)&&-1!==t.indexOf("@")?(console.warn("This arg looks like an email address, redacting."),"REDACTED (Potential Email Address)"):e;var t}},86449:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.GA4=void 0;var r=l(n(88464)),o=l(n(17415)),i=["eventCategory","eventAction","eventLabel","eventValue","hitType"],a=["title","location"],s=["page","hitType"];function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||m(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(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 f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||m(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){if(e){if("string"===typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,b(r.key),r)}}function y(e,t,n){return(t=b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e){var t=function(e,t){if("object"!==u(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===u(t)?t:String(t)}var x=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),y(this,"reset",(function(){t.isInitialized=!1,t._testMode=!1,t._currentMeasurementId,t._hasLoadedGA=!1,t._isQueuing=!1,t._queueGtag=[]})),y(this,"_gtag",(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];t._testMode||t._isQueuing?t._queueGtag.push(n):r.default.apply(void 0,n)})),y(this,"_loadGA",(function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"https://www.googletagmanager.com/gtag/js";if("undefined"!==typeof window&&"undefined"!==typeof document&&!t._hasLoadedGA){var o=document.createElement("script");o.async=!0,o.src="".concat(r,"?id=").concat(e),n&&o.setAttribute("nonce",n),document.body.appendChild(o),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},t._hasLoadedGA=!0}})),y(this,"_toGtagOptions",(function(e){if(e){var t={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"};return Object.entries(e).reduce((function(e,n){var r=h(n,2),o=r[0],i=r[1];return t[o]?e[t[o]]=i:e[o]=i,e}),{})}})),y(this,"initialize",(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("Require GA_MEASUREMENT_ID");var r="string"===typeof e?[{trackingId:e}]:e;t._currentMeasurementId=r[0].trackingId;var o=n.gaOptions,i=n.gtagOptions,a=n.nonce,s=n.testMode,l=void 0!==s&&s,c=n.gtagUrl;if(t._testMode=l,l||t._loadGA(t._currentMeasurementId,a,c),t.isInitialized||(t._gtag("js",new Date),r.forEach((function(e){var n=f(f(f({},t._toGtagOptions(f(f({},o),e.gaOptions))),i),e.gtagOptions);Object.keys(n).length?t._gtag("config",e.trackingId,n):t._gtag("config",e.trackingId)}))),t.isInitialized=!0,!l){var u=d(t._queueGtag);for(t._queueGtag=[],t._isQueuing=!1;u.length;){var p=u.shift();t._gtag.apply(t,d(p)),"get"===p[0]&&(t._isQueuing=!0)}}})),y(this,"set",(function(e){e?"object"===u(e)?(0===Object.keys(e).length&&console.warn("empty `fieldsObject` given to .set()"),t._gaCommand("set",e)):console.warn("Expected `fieldsObject` arg to be an Object"):console.warn("`fieldsObject` is required in .set()")})),y(this,"_gaCommandSendEvent",(function(e,n,r,o,i){t._gtag("event",n,f(f({event_category:e,event_label:r,value:o},i&&{non_interaction:i.nonInteraction}),t._toGtagOptions(i)))})),y(this,"_gaCommandSendEventParameters",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if("string"===typeof n[0])t._gaCommandSendEvent.apply(t,d(n.slice(1)));else{var o=n[0],a=o.eventCategory,s=o.eventAction,l=o.eventLabel,u=o.eventValue,p=(o.hitType,c(o,i));t._gaCommandSendEvent(a,s,l,u,p)}})),y(this,"_gaCommandSendTiming",(function(e,n,r,o){t._gtag("event","timing_complete",{name:n,value:r,event_category:e,event_label:o})})),y(this,"_gaCommandSendPageview",(function(e,n){if(n&&Object.keys(n).length){var r=t._toGtagOptions(n),o=r.title,i=r.location,s=c(r,a);t._gtag("event","page_view",f(f(f(f({},e&&{page_path:e}),o&&{page_title:o}),i&&{page_location:i}),s))}else e?t._gtag("event","page_view",{page_path:e}):t._gtag("event","page_view")})),y(this,"_gaCommandSendPageviewParameters",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if("string"===typeof n[0])t._gaCommandSendPageview.apply(t,d(n.slice(1)));else{var o=n[0],i=o.page,a=(o.hitType,c(o,s));t._gaCommandSendPageview(i,a)}})),y(this,"_gaCommandSend",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o="string"===typeof n[0]?n[0]:n[0].hitType;switch(o){case"event":t._gaCommandSendEventParameters.apply(t,n);break;case"pageview":t._gaCommandSendPageviewParameters.apply(t,n);break;case"timing":t._gaCommandSendTiming.apply(t,d(n.slice(1)));break;case"screenview":case"transaction":case"item":case"social":case"exception":console.warn("Unsupported send command: ".concat(o));break;default:console.warn("Send command doesn't exist: ".concat(o))}})),y(this,"_gaCommandSet",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];"string"===typeof n[0]&&(n[0]=y({},n[0],n[1])),t._gtag("set",t._toGtagOptions(n[0]))})),y(this,"_gaCommand",(function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];switch(e){case"send":t._gaCommandSend.apply(t,r);break;case"set":t._gaCommandSet.apply(t,r);break;default:console.warn("Command doesn't exist: ".concat(e))}})),y(this,"ga",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if("string"===typeof n[0])t._gaCommand.apply(t,n);else{var o=n[0];t._gtag("get",t._currentMeasurementId,"client_id",(function(e){t._isQueuing=!1;var n=t._queueGtag;for(o({get:function(n){return"clientId"===n?e:"trackingId"===n?t._currentMeasurementId:"apiVersion"===n?"1":void 0}});n.length;){var r=n.shift();t._gtag.apply(t,d(r))}})),t._isQueuing=!0}return t.ga})),y(this,"event",(function(e,n){if("string"===typeof e)t._gtag("event",e,t._toGtagOptions(n));else{var r=e.action,i=e.category,a=e.label,s=e.value,l=e.nonInteraction,c=e.transport;if(!i||!r)return void console.warn("args.category AND args.action are required in event()");var u={hitType:"event",eventCategory:(0,o.default)(i),eventAction:(0,o.default)(r)};a&&(u.eventLabel=(0,o.default)(a)),"undefined"!==typeof s&&("number"!==typeof s?console.warn("Expected `args.value` arg to be a Number."):u.eventValue=s),"undefined"!==typeof l&&("boolean"!==typeof l?console.warn("`args.nonInteraction` must be a boolean."):u.nonInteraction=l),"undefined"!==typeof c&&("string"!==typeof c?console.warn("`args.transport` must be a string."):(-1===["beacon","xhr","image"].indexOf(c)&&console.warn("`args.transport` must be either one of these values: `beacon`, `xhr` or `image`"),u.transport=c)),t._gaCommand("send",u)}})),y(this,"send",(function(e){t._gaCommand("send",e)})),this.reset()}var t,n,l;return t=e,n=[{key:"gtag",value:function(){this._gtag.apply(this,arguments)}}],n&&g(t.prototype,n),l&&g(t,l),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.GA4=x;var w=new x;t.default=w},88464:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r;"undefined"!==typeof window&&("undefined"===typeof window.gtag&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)}),(r=window).gtag.apply(r,t))};t.default=n},4076:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.ZP=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(86449));function i(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}o.GA4;var a=o.default;t.ZP=a},4865:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case v:case m:case l:return e;default:return t}}case o:return t}}}function C(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=v,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return C(e)||w(e)===u},t.isConcurrentMode=C,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===d||e===s||e===a||e===f||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===g)},t.typeOf=w},61983:function(e,t,n){"use strict";e.exports=n(4865)},91634:function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}.bind(this))}function i(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!==typeof e.getDerivedStateFromProps&&"function"!==typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,s=null;if("function"===typeof t.componentWillMount?n="componentWillMount":"function"===typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"===typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"===typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"===typeof t.componentWillUpdate?s="componentWillUpdate":"function"===typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var l=e.displayName||e.name,c="function"===typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==a?"\n  "+a:"")+(null!==s?"\n  "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"===typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"===typeof t.getSnapshotBeforeUpdate){if("function"!==typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,r)}}return e}n.r(t),n.d(t,{polyfill:function(){return a}}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},74484:function(e,t){"use strict";var n=function(e,t,n,r){return"boolean"==typeof e?e:"function"==typeof e?e(t,n,r):!(!0!==!!e)&&!!e},r=function(e,t){return Object.hasOwnProperty.call(e,t)},o=function(e,t,n,r){return r?new Error(r):new Error("Required "+e[t]+" `"+t+"` was not specified in `"+n+"`.")};t.Z=function(e,t,i){return function(e,t){if("function"!=typeof e)throw new TypeError("The typeValidator argument must be a function with the signature function(props, propName, componentName).");if(t&&"string"!=typeof t)throw new TypeError("The error message is optional, but must be a string if provided.")}(e,i),function(a,s,l){for(var c=arguments.length,u=Array(3<c?c-3:0),d=3;d<c;d++)u[d-3]=arguments[d];return n(t,a,s,l)?r(a,s)?e.apply(void 0,[a,s,l].concat(u)):o(a,s,l,i):e.apply(void 0,[a,s,l].concat(u))}}},74892:function(e,t,n){"use strict";n.d(t,{j:function(){return a}});var r=n(93219),o=n(8872),i=n(8625),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!i.sk&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),function(){window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}},t}(0,r.Z)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"===typeof e?n.setFocused(e):n.onFocus()}))},n.setFocused=function(e){this.focused=e,e&&this.onFocus()},n.onFocus=function(){this.listeners.forEach((function(e){e()}))},n.isFocused=function(){return"boolean"===typeof this.focused?this.focused:"undefined"===typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},t}(o.l))},1938:function(e,t,n){"use strict";n.d(t,{QueryClient:function(){return r.S}});var r=n(35262),o=n(27995);n.o(o,"QueryClientProvider")&&n.d(t,{QueryClientProvider:function(){return o.QueryClientProvider}}),n.o(o,"useMutation")&&n.d(t,{useMutation:function(){return o.useMutation}}),n.o(o,"useQueries")&&n.d(t,{useQueries:function(){return o.useQueries}}),n.o(o,"useQuery")&&n.d(t,{useQuery:function(){return o.useQuery}}),n.o(o,"useQueryClient")&&n.d(t,{useQueryClient:function(){return o.useQueryClient}})},13417:function(e,t,n){"use strict";n.d(t,{j:function(){return o},E:function(){return i}});var r=console;function o(){return r}function i(e){r=e}},87222:function(e,t,n){"use strict";n.d(t,{m:function(){return l},R:function(){return c}});var r=n(25773),o=n(13417),i=n(25713),a=n(95057),s=n(8625),l=function(){function e(e){this.options=(0,r.Z)({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||c(),this.meta=e.meta}var t=e.prototype;return t.setState=function(e){this.dispatch({type:"setState",state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter((function(t){return t!==e}))},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(s.ZT).catch(s.ZT)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,n="loading"===this.state.status,r=Promise.resolve();return n||(this.dispatch({type:"loading",variables:this.options.variables}),r=r.then((function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)})).then((function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)})).then((function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})}))),r.then((function(){return t.executeMutation()})).then((function(n){e=n,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)})).then((function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)})).then((function(){return t.dispatch({type:"success",data:e}),e})).catch((function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),(0,o.j)().error(e),Promise.resolve().then((function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)})).then((function(){throw t.dispatch({type:"error",error:e}),e}))}))},t.executeMutation=function(){var e,t=this;return this.retryer=new a.m4({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case"failed":return(0,r.Z)({},e,{failureCount:e.failureCount+1});case"pause":return(0,r.Z)({},e,{isPaused:!0});case"continue":return(0,r.Z)({},e,{isPaused:!1});case"loading":return(0,r.Z)({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return(0,r.Z)({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return(0,r.Z)({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return(0,r.Z)({},e,t.state);default:return e}}(this.state,e),i.V.batch((function(){t.observers.forEach((function(t){t.onMutationUpdate(e)})),t.mutationCache.notify(t)}))},e}();function c(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}},25713:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var r=n(8625),o=function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):(0,r.A4)((function(){t.notifyFn(e)}))},t.batchCalls=function(e){var t=this;return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];t.schedule((function(){e.apply(void 0,r)}))}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&(0,r.A4)((function(){e.batchNotifyFn((function(){t.forEach((function(t){e.notifyFn(t)}))}))}))},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}(),i=new o},16908:function(e,t,n){"use strict";n.d(t,{N:function(){return a}});var r=n(93219),o=n(8872),i=n(8625),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!i.sk&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),function(){window.removeEventListener("online",n),window.removeEventListener("offline",n)}}},t}(0,r.Z)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"===typeof e?n.setOnline(e):n.onOnline()}))},n.setOnline=function(e){this.online=e,e&&this.onOnline()},n.onOnline=function(){this.listeners.forEach((function(e){e()}))},n.isOnline=function(){return"boolean"===typeof this.online?this.online:"undefined"===typeof navigator||"undefined"===typeof navigator.onLine||navigator.onLine},t}(o.l))},35262:function(e,t,n){"use strict";n.d(t,{S:function(){return y}});var r=n(25773),o=n(8625),i=n(93219),a=n(25713),s=n(13417),l=n(95057),c=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=(0,r.Z)({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),(0,o.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout((function(){e.optionalRemove()}),this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var n,r,i=this.state.data,a=(0,o.SE)(e,i);return(null==(n=(r=this.options).isDataEqual)?void 0:n.call(r,i,a))?a=i:!1!==this.options.structuralSharing&&(a=(0,o.Q$)(i,a)),this.dispatch({data:a,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),a},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(o.ZT).catch(o.ZT):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some((function(e){return!1!==e.options.enabled}))},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(e){return e.getCurrentResult().isStale}))},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,o.Kp)(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnWindowFocus()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnReconnect()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter((function(t){return t!==e})),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var n,r,i,a=this;if(this.state.isFetching)if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var c;return null==(c=this.retryer)||c.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var u=this.observers.find((function(e){return e.options.queryFn}));u&&this.setOptions(u.options)}var d=(0,o.mc)(this.queryKey),p=(0,o.G9)(),f={queryKey:d,pageParam:void 0,meta:this.meta};Object.defineProperty(f,"signal",{enumerable:!0,get:function(){if(p)return a.abortSignalConsumed=!0,p.signal}});var h,m,v={fetchOptions:t,options:this.options,queryKey:d,state:this.state,fetchFn:function(){return a.options.queryFn?(a.abortSignalConsumed=!1,a.options.queryFn(f)):Promise.reject("Missing queryFn")},meta:this.meta};(null==(n=this.options.behavior)?void 0:n.onFetch)&&(null==(h=this.options.behavior)||h.onFetch(v));(this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(r=v.fetchOptions)?void 0:r.meta))||this.dispatch({type:"fetch",meta:null==(m=v.fetchOptions)?void 0:m.meta});return this.retryer=new l.m4({fn:v.fetchFn,abort:null==p||null==(i=p.abort)?void 0:i.bind(p),onSuccess:function(e){a.setData(e),null==a.cache.config.onSuccess||a.cache.config.onSuccess(e,a),0===a.cacheTime&&a.optionalRemove()},onError:function(e){(0,l.DV)(e)&&e.silent||a.dispatch({type:"error",error:e}),(0,l.DV)(e)||(null==a.cache.config.onError||a.cache.config.onError(e,a),(0,s.j)().error(e)),0===a.cacheTime&&a.optionalRemove()},onFail:function(){a.dispatch({type:"failed"})},onPause:function(){a.dispatch({type:"pause"})},onContinue:function(){a.dispatch({type:"continue"})},retry:v.options.retry,retryDelay:v.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),a.V.batch((function(){t.observers.forEach((function(t){t.onQueryUpdate(e)})),t.cache.notify({query:t,type:"queryUpdated",action:e})}))},t.getDefaultState=function(e){var t="function"===typeof e.initialData?e.initialData():e.initialData,n="undefined"!==typeof e.initialData?"function"===typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,r="undefined"!==typeof t;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:r?"success":"idle"}},t.reducer=function(e,t){var n,o;switch(t.type){case"failed":return(0,r.Z)({},e,{fetchFailureCount:e.fetchFailureCount+1});case"pause":return(0,r.Z)({},e,{isPaused:!0});case"continue":return(0,r.Z)({},e,{isPaused:!1});case"fetch":return(0,r.Z)({},e,{fetchFailureCount:0,fetchMeta:null!=(n=t.meta)?n:null,isFetching:!0,isPaused:!1},!e.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,r.Z)({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(o=t.dataUpdatedAt)?o:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var i=t.error;return(0,l.DV)(i)&&i.revert&&this.revertState?(0,r.Z)({},this.revertState):(0,r.Z)({},e,{error:i,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return(0,r.Z)({},e,{isInvalidated:!0});case"setState":return(0,r.Z)({},e,t.state);default:return e}},e}(),u=n(8872),d=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.queries=[],n.queriesMap={},n}(0,i.Z)(t,e);var n=t.prototype;return n.build=function(e,t,n){var r,i=t.queryKey,a=null!=(r=t.queryHash)?r:(0,o.Rm)(i,t),s=this.get(a);return s||(s=new c({cache:this,queryKey:i,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i),meta:t.meta}),this.add(s)),s},n.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"queryAdded",query:e}))},n.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((function(t){return t!==e})),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"queryRemoved",query:e}))},n.clear=function(){var e=this;a.V.batch((function(){e.queries.forEach((function(t){e.remove(t)}))}))},n.get=function(e){return this.queriesMap[e]},n.getAll=function(){return this.queries},n.find=function(e,t){var n=(0,o.I6)(e,t)[0];return"undefined"===typeof n.exact&&(n.exact=!0),this.queries.find((function(e){return(0,o._x)(n,e)}))},n.findAll=function(e,t){var n=(0,o.I6)(e,t)[0];return Object.keys(n).length>0?this.queries.filter((function(e){return(0,o._x)(n,e)})):this.queries},n.notify=function(e){var t=this;a.V.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){var e=this;a.V.batch((function(){e.queries.forEach((function(e){e.onFocus()}))}))},n.onOnline=function(){var e=this;a.V.batch((function(){e.queries.forEach((function(e){e.onOnline()}))}))},t}(u.l),p=n(87222),f=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.mutations=[],n.mutationId=0,n}(0,i.Z)(t,e);var n=t.prototype;return n.build=function(e,t,n){var r=new p.m({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(r),r},n.add=function(e){this.mutations.push(e),this.notify(e)},n.remove=function(e){this.mutations=this.mutations.filter((function(t){return t!==e})),e.cancel(),this.notify(e)},n.clear=function(){var e=this;a.V.batch((function(){e.mutations.forEach((function(t){e.remove(t)}))}))},n.getAll=function(){return this.mutations},n.find=function(e){return"undefined"===typeof e.exact&&(e.exact=!0),this.mutations.find((function(t){return(0,o.X7)(e,t)}))},n.findAll=function(e){return this.mutations.filter((function(t){return(0,o.X7)(e,t)}))},n.notify=function(e){var t=this;a.V.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var e=this.mutations.filter((function(e){return e.state.isPaused}));return a.V.batch((function(){return e.reduce((function(e,t){return e.then((function(){return t.continue().catch(o.ZT)}))}),Promise.resolve())}))},t}(u.l),h=n(74892),m=n(16908);function v(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function g(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}var y=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new d,this.mutationCache=e.mutationCache||new f,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=h.j.subscribe((function(){h.j.isFocused()&&m.N.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())})),this.unsubscribeOnline=m.N.subscribe((function(){h.j.isFocused()&&m.N.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())}))},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var n=(0,o.I6)(e,t)[0];return n.fetching=!0,this.queryCache.findAll(n).length},t.isMutating=function(e){return this.mutationCache.findAll((0,r.Z)({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map((function(e){return[e.queryKey,e.state.data]}))},t.setQueryData=function(e,t,n){var r=(0,o._v)(e),i=this.defaultQueryOptions(r);return this.queryCache.build(this,i).setData(t,n)},t.setQueriesData=function(e,t,n){var r=this;return a.V.batch((function(){return r.getQueryCache().findAll(e).map((function(e){var o=e.queryKey;return[o,r.setQueryData(o,t,n)]}))}))},t.getQueryState=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state},t.removeQueries=function(e,t){var n=(0,o.I6)(e,t)[0],r=this.queryCache;a.V.batch((function(){r.findAll(n).forEach((function(e){r.remove(e)}))}))},t.resetQueries=function(e,t,n){var i=this,s=(0,o.I6)(e,t,n),l=s[0],c=s[1],u=this.queryCache,d=(0,r.Z)({},l,{active:!0});return a.V.batch((function(){return u.findAll(l).forEach((function(e){e.reset()})),i.refetchQueries(d,c)}))},t.cancelQueries=function(e,t,n){var r=this,i=(0,o.I6)(e,t,n),s=i[0],l=i[1],c=void 0===l?{}:l;"undefined"===typeof c.revert&&(c.revert=!0);var u=a.V.batch((function(){return r.queryCache.findAll(s).map((function(e){return e.cancel(c)}))}));return Promise.all(u).then(o.ZT).catch(o.ZT)},t.invalidateQueries=function(e,t,n){var i,s,l,c=this,u=(0,o.I6)(e,t,n),d=u[0],p=u[1],f=(0,r.Z)({},d,{active:null==(i=null!=(s=d.refetchActive)?s:d.active)||i,inactive:null!=(l=d.refetchInactive)&&l});return a.V.batch((function(){return c.queryCache.findAll(d).forEach((function(e){e.invalidate()})),c.refetchQueries(f,p)}))},t.refetchQueries=function(e,t,n){var i=this,s=(0,o.I6)(e,t,n),l=s[0],c=s[1],u=a.V.batch((function(){return i.queryCache.findAll(l).map((function(e){return e.fetch(void 0,(0,r.Z)({},c,{meta:{refetchPage:null==l?void 0:l.refetchPage}}))}))})),d=Promise.all(u).then(o.ZT);return(null==c?void 0:c.throwOnError)||(d=d.catch(o.ZT)),d},t.fetchQuery=function(e,t,n){var r=(0,o._v)(e,t,n),i=this.defaultQueryOptions(r);"undefined"===typeof i.retry&&(i.retry=!1);var a=this.queryCache.build(this,i);return a.isStaleByTime(i.staleTime)?a.fetch(i):Promise.resolve(a.state.data)},t.prefetchQuery=function(e,t,n){return this.fetchQuery(e,t,n).then(o.ZT).catch(o.ZT)},t.fetchInfiniteQuery=function(e,t,n){var r=(0,o._v)(e,t,n);return r.behavior={onFetch:function(e){e.fetchFn=function(){var t,n,r,i,a,s,c,u=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,d=null==(r=e.fetchOptions)||null==(i=r.meta)?void 0:i.fetchMore,p=null==d?void 0:d.pageParam,f="forward"===(null==d?void 0:d.direction),h="backward"===(null==d?void 0:d.direction),m=(null==(a=e.state.data)?void 0:a.pages)||[],y=(null==(s=e.state.data)?void 0:s.pageParams)||[],b=(0,o.G9)(),x=null==b?void 0:b.signal,w=y,C=!1,j=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},S=function(e,t,n,r){return w=r?[t].concat(w):[].concat(w,[t]),r?[n].concat(e):[].concat(e,[n])},k=function(t,n,r,o){if(C)return Promise.reject("Cancelled");if("undefined"===typeof r&&!n&&t.length)return Promise.resolve(t);var i={queryKey:e.queryKey,signal:x,pageParam:r,meta:e.meta},a=j(i),s=Promise.resolve(a).then((function(e){return S(t,r,e,o)}));return(0,l.LE)(a)&&(s.cancel=a.cancel),s};if(m.length)if(f){var Z="undefined"!==typeof p,O=Z?p:v(e.options,m);c=k(m,Z,O)}else if(h){var E="undefined"!==typeof p,D=E?p:g(e.options,m);c=k(m,E,D,!0)}else!function(){w=[];var t="undefined"===typeof e.options.getNextPageParam,n=!u||!m[0]||u(m[0],0,m);c=n?k([],t,y[0]):Promise.resolve(S([],y[0],m[0]));for(var r=function(n){c=c.then((function(r){if(!u||!m[n]||u(m[n],n,m)){var o=t?y[n]:v(e.options,r);return k(r,t,o)}return Promise.resolve(S(r,y[n],m[n]))}))},o=1;o<m.length;o++)r(o)}();else c=k([]);var P=c.then((function(e){return{pages:e,pageParams:w}}));return P.cancel=function(){C=!0,null==b||b.abort(),(0,l.LE)(c)&&c.cancel()},P}}},this.fetchQuery(r)},t.prefetchInfiniteQuery=function(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(o.ZT).catch(o.ZT)},t.cancelMutations=function(){var e=this,t=a.V.batch((function(){return e.mutationCache.getAll().map((function(e){return e.cancel()}))}));return Promise.all(t).then(o.ZT).catch(o.ZT)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var n=this.queryDefaults.find((function(t){return(0,o.yF)(e)===(0,o.yF)(t.queryKey)}));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find((function(t){return(0,o.to)(e,t.queryKey)})))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var n=this.mutationDefaults.find((function(t){return(0,o.yF)(e)===(0,o.yF)(t.mutationKey)}));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find((function(t){return(0,o.to)(e,t.mutationKey)})))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=(0,r.Z)({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=(0,o.Rm)(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:(0,r.Z)({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}()},95057:function(e,t,n){"use strict";n.d(t,{LE:function(){return s},DV:function(){return c},m4:function(){return u}});var r=n(74892),o=n(16908),i=n(8625);function a(e){return Math.min(1e3*Math.pow(2,e),3e4)}function s(e){return"function"===typeof(null==e?void 0:e.cancel)}var l=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function c(e){return e instanceof l}var u=function(e){var t,n,c,u,d=this,p=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){p=!0},this.continueRetry=function(){p=!1},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise((function(e,t){c=e,u=t}));var f=function(t){d.isResolved||(d.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==n||n(),c(t))},h=function(t){d.isResolved||(d.isResolved=!0,null==e.onError||e.onError(t),null==n||n(),u(t))};!function c(){if(!d.isResolved){var u;try{u=e.fn()}catch(m){u=Promise.reject(m)}t=function(e){if(!d.isResolved&&(h(new l(e)),null==d.abort||d.abort(),s(u)))try{u.cancel()}catch(t){}},d.isTransportCancelable=s(u),Promise.resolve(u).then(f).catch((function(t){var s,l;if(!d.isResolved){var u=null!=(s=e.retry)?s:3,f=null!=(l=e.retryDelay)?l:a,m="function"===typeof f?f(d.failureCount,t):f,v=!0===u||"number"===typeof u&&d.failureCount<u||"function"===typeof u&&u(d.failureCount,t);!p&&v?(d.failureCount++,null==e.onFail||e.onFail(d.failureCount,t),(0,i.Gh)(m).then((function(){if(!r.j.isFocused()||!o.N.isOnline())return new Promise((function(t){n=t,d.isPaused=!0,null==e.onPause||e.onPause()})).then((function(){n=void 0,d.isPaused=!1,null==e.onContinue||e.onContinue()}))})).then((function(){p?h(t):c()}))):h(t)}}))}}()}},8872:function(e,t,n){"use strict";n.d(t,{l:function(){return r}});var r=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,n=e||function(){};return this.listeners.push(n),this.onSubscribe(),function(){t.listeners=t.listeners.filter((function(e){return e!==n})),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}()},27995:function(){},8625:function(e,t,n){"use strict";n.d(t,{sk:function(){return o},ZT:function(){return i},SE:function(){return a},PN:function(){return s},mc:function(){return l},e5:function(){return c},Rc:function(){return u},Kp:function(){return d},_v:function(){return p},lV:function(){return f},I6:function(){return h},_x:function(){return m},X7:function(){return v},Rm:function(){return g},yF:function(){return y},to:function(){return b},Q$:function(){return w},VS:function(){return C},Gh:function(){return Z},A4:function(){return O},G9:function(){return E}});var r=n(25773),o="undefined"===typeof window;function i(){}function a(e,t){return"function"===typeof e?e(t):e}function s(e){return"number"===typeof e&&e>=0&&e!==1/0}function l(e){return Array.isArray(e)?e:[e]}function c(e,t){return e.filter((function(e){return-1===t.indexOf(e)}))}function u(e,t,n){var r=e.slice(0);return r[t]=n,r}function d(e,t){return Math.max(e+(t||0)-Date.now(),0)}function p(e,t,n){return k(e)?"function"===typeof t?(0,r.Z)({},n,{queryKey:e,queryFn:t}):(0,r.Z)({},t,{queryKey:e}):e}function f(e,t,n){return k(e)?"function"===typeof t?(0,r.Z)({},n,{mutationKey:e,mutationFn:t}):(0,r.Z)({},t,{mutationKey:e}):"function"===typeof e?(0,r.Z)({},t,{mutationFn:e}):(0,r.Z)({},e)}function h(e,t,n){return k(e)?[(0,r.Z)({},t,{queryKey:e}),n]:[e||{},t]}function m(e,t){var n=e.active,r=e.exact,o=e.fetching,i=e.inactive,a=e.predicate,s=e.queryKey,l=e.stale;if(k(s))if(r){if(t.queryHash!==g(s,t.options))return!1}else if(!b(t.queryKey,s))return!1;var c=function(e,t){return!0===e&&!0===t||null==e&&null==t?"all":!1===e&&!1===t?"none":(null!=e?e:!t)?"active":"inactive"}(n,i);if("none"===c)return!1;if("all"!==c){var u=t.isActive();if("active"===c&&!u)return!1;if("inactive"===c&&u)return!1}return("boolean"!==typeof l||t.isStale()===l)&&(("boolean"!==typeof o||t.isFetching()===o)&&!(a&&!a(t)))}function v(e,t){var n=e.exact,r=e.fetching,o=e.predicate,i=e.mutationKey;if(k(i)){if(!t.options.mutationKey)return!1;if(n){if(y(t.options.mutationKey)!==y(i))return!1}else if(!b(t.options.mutationKey,i))return!1}return("boolean"!==typeof r||"loading"===t.state.status===r)&&!(o&&!o(t))}function g(e,t){return((null==t?void 0:t.queryKeyHashFn)||y)(e)}function y(e){var t,n=l(e);return t=n,JSON.stringify(t,(function(e,t){return j(t)?Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{}):t}))}function b(e,t){return x(l(e),l(t))}function x(e,t){return e===t||typeof e===typeof t&&(!(!e||!t||"object"!==typeof e||"object"!==typeof t)&&!Object.keys(t).some((function(n){return!x(e[n],t[n])})))}function w(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||j(e)&&j(t)){for(var r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{},s=0,l=0;l<i;l++){var c=n?l:o[l];a[c]=w(e[c],t[c]),a[c]===e[c]&&s++}return r===i&&s===r?e:a}return t}function C(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}function j(e){if(!S(e))return!1;var t=e.constructor;if("undefined"===typeof t)return!0;var n=t.prototype;return!!S(n)&&!!n.hasOwnProperty("isPrototypeOf")}function S(e){return"[object Object]"===Object.prototype.toString.call(e)}function k(e){return"string"===typeof e||Array.isArray(e)}function Z(e){return new Promise((function(t){setTimeout(t,e)}))}function O(e){Promise.resolve().then(e).catch((function(e){return setTimeout((function(){throw e}))}))}function E(){if("function"===typeof AbortController)return new AbortController}},58929:function(e,t,n){"use strict";n.d(t,{QueryClient:function(){return r.QueryClient},QueryClientProvider:function(){return o.QueryClientProvider},useMutation:function(){return o.useMutation},useQueries:function(){return o.useQueries},useQuery:function(){return o.useQuery},useQueryClient:function(){return o.useQueryClient}});var r=n(1938);n.o(r,"QueryClientProvider")&&n.d(t,{QueryClientProvider:function(){return r.QueryClientProvider}}),n.o(r,"useMutation")&&n.d(t,{useMutation:function(){return r.useMutation}}),n.o(r,"useQueries")&&n.d(t,{useQueries:function(){return r.useQueries}}),n.o(r,"useQuery")&&n.d(t,{useQuery:function(){return r.useQuery}}),n.o(r,"useQueryClient")&&n.d(t,{useQueryClient:function(){return r.useQueryClient}});var o=n(17615)},17615:function(e,t,n){"use strict";n.d(t,{QueryClientProvider:function(){return p},useMutation:function(){return x},useQueries:function(){return T},useQuery:function(){return A},useQueryClient:function(){return d}});var r=n(25713),o=n(93715).unstable_batchedUpdates;r.V.setBatchNotifyFunction(o);var i=n(13417),a=console;(0,i.E)(a);var s=n(30303),l=s.createContext(void 0),c=s.createContext(!1);function u(e){return e&&"undefined"!==typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=l),window.ReactQueryClientContext):l}var d=function(){var e=s.useContext(u(s.useContext(c)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},p=function(e){var t=e.client,n=e.contextSharing,r=void 0!==n&&n,o=e.children;s.useEffect((function(){return t.mount(),function(){t.unmount()}}),[t]);var i=u(r);return s.createElement(c.Provider,{value:r},s.createElement(i.Provider,{value:t},o))},f=n(25773),h=n(8625),m=n(93219),v=n(87222),g=n(8872),y=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.setOptions(n),r.bindMethods(),r.updateResult(),r}(0,m.Z)(t,e);var n=t.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(e){this.options=this.client.defaultMutationOptions(e)},n.onUnsubscribe=function(){var e;this.listeners.length||(null==(e=this.currentMutation)||e.removeObserver(this))},n.onMutationUpdate=function(e){this.updateResult();var t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,(0,f.Z)({},this.options,{variables:"undefined"!==typeof e?e:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var e=this.currentMutation?this.currentMutation.state:(0,v.R)(),t=(0,f.Z)({},e,{isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset});this.currentResult=t},n.notify=function(e){var t=this;r.V.batch((function(){t.mutateOptions&&(e.onSuccess?(null==t.mutateOptions.onSuccess||t.mutateOptions.onSuccess(t.currentResult.data,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(t.currentResult.data,null,t.currentResult.variables,t.currentResult.context)):e.onError&&(null==t.mutateOptions.onError||t.mutateOptions.onError(t.currentResult.error,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(void 0,t.currentResult.error,t.currentResult.variables,t.currentResult.context))),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)}))}))},t}(g.l);function b(e,t,n){return"function"===typeof t?t.apply(void 0,n):"boolean"===typeof t?t:!!e}function x(e,t,n){var o=s.useRef(!1),i=s.useState(0)[1],a=(0,h.lV)(e,t,n),l=d(),c=s.useRef();c.current?c.current.setOptions(a):c.current=new y(l,a);var u=c.current.getCurrentResult();s.useEffect((function(){o.current=!0;var e=c.current.subscribe(r.V.batchCalls((function(){o.current&&i((function(e){return e+1}))})));return function(){o.current=!1,e()}}),[]);var p=s.useCallback((function(e,t){c.current.mutate(e,t).catch(h.ZT)}),[]);if(u.error&&b(void 0,c.current.options.useErrorBoundary,[u.error]))throw u.error;return(0,f.Z)({},u,{mutate:p,mutateAsync:u.mutate})}var w=n(74892),C=n(95057),j=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.options=n,r.trackedProps=[],r.selectError=null,r.bindMethods(),r.setOptions(n),r}(0,m.Z)(t,e);var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),S(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return k(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return k(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(e,t){var n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),"undefined"!==typeof this.options.enabled&&"boolean"!==typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();var o=this.hasListeners();o&&Z(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!o||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();var i=this.computeRefetchInterval();!o||this.currentQuery===r&&this.options.enabled===n.enabled&&i===this.currentRefetchInterval||this.updateRefetchInterval(i)},n.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,t);return this.createResult(n,t)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(e,t){var n=this,r={},o=function(e){n.trackedProps.includes(e)||n.trackedProps.push(e)};return Object.keys(e).forEach((function(t){Object.defineProperty(r,t,{configurable:!1,enumerable:!0,get:function(){return o(t),e[t]}})})),(t.useErrorBoundary||t.suspense)&&o("error"),r},n.getNextResult=function(e){var t=this;return new Promise((function(n,r){var o=t.subscribe((function(t){t.isFetching||(o(),t.isError&&(null==e?void 0:e.throwOnError)?r(t.error):n(t))}))}))},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(e){return this.fetch((0,f.Z)({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},n.fetchOptimistic=function(e){var t=this,n=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,n);return r.fetch().then((function(){return t.createResult(r,n)}))},n.fetch=function(e){var t=this;return this.executeFetch(e).then((function(){return t.updateResult(),t.currentResult}))},n.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(h.ZT)),t},n.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!h.sk&&!this.currentResult.isStale&&(0,h.PN)(this.options.staleTime)){var t=(0,h.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((function(){e.currentResult.isStale||e.updateResult()}),t)}},n.computeRefetchInterval=function(){var e;return"function"===typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},n.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!h.sk&&!1!==this.options.enabled&&(0,h.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((function(){(t.options.refetchIntervalInBackground||w.j.isFocused())&&t.executeFetch()}),this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(e,t){var n,r=this.currentQuery,o=this.options,a=this.currentResult,s=this.currentResultState,l=this.currentResultOptions,c=e!==r,u=c?e.state:this.currentQueryInitialState,d=c?this.currentResult:this.previousQueryResult,p=e.state,f=p.dataUpdatedAt,m=p.error,v=p.errorUpdatedAt,g=p.isFetching,y=p.status,b=!1,x=!1;if(t.optimisticResults){var w=this.hasListeners(),C=!w&&S(e,t),j=w&&Z(e,r,t,o);(C||j)&&(g=!0,f||(y="loading"))}if(t.keepPreviousData&&!p.dataUpdateCount&&(null==d?void 0:d.isSuccess)&&"error"!==y)n=d.data,f=d.dataUpdatedAt,y=d.status,b=!0;else if(t.select&&"undefined"!==typeof p.data)if(a&&p.data===(null==s?void 0:s.data)&&t.select===this.selectFn)n=this.selectResult;else try{this.selectFn=t.select,n=t.select(p.data),!1!==t.structuralSharing&&(n=(0,h.Q$)(null==a?void 0:a.data,n)),this.selectResult=n,this.selectError=null}catch(E){(0,i.j)().error(E),this.selectError=E}else n=p.data;if("undefined"!==typeof t.placeholderData&&"undefined"===typeof n&&("loading"===y||"idle"===y)){var k;if((null==a?void 0:a.isPlaceholderData)&&t.placeholderData===(null==l?void 0:l.placeholderData))k=a.data;else if(k="function"===typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&"undefined"!==typeof k)try{k=t.select(k),!1!==t.structuralSharing&&(k=(0,h.Q$)(null==a?void 0:a.data,k)),this.selectError=null}catch(E){(0,i.j)().error(E),this.selectError=E}"undefined"!==typeof k&&(y="success",n=k,x=!0)}return this.selectError&&(m=this.selectError,n=this.selectResult,v=Date.now(),y="error"),{status:y,isLoading:"loading"===y,isSuccess:"success"===y,isError:"error"===y,isIdle:"idle"===y,data:n,dataUpdatedAt:f,error:m,errorUpdatedAt:v,failureCount:p.fetchFailureCount,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>u.dataUpdateCount||p.errorUpdateCount>u.errorUpdateCount,isFetching:g,isRefetching:g&&"loading"!==y,isLoadingError:"error"===y&&0===p.dataUpdatedAt,isPlaceholderData:x,isPreviousData:b,isRefetchError:"error"===y&&0!==p.dataUpdatedAt,isStale:O(e,t),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(e,t){if(!t)return!0;var n=this.options,r=n.notifyOnChangeProps,o=n.notifyOnChangePropsExclusions;if(!r&&!o)return!0;if("tracked"===r&&!this.trackedProps.length)return!0;var i="tracked"===r?this.trackedProps:r;return Object.keys(e).some((function(n){var r=n,a=e[r]!==t[r],s=null==i?void 0:i.some((function(e){return e===n})),l=null==o?void 0:o.some((function(e){return e===n}));return a&&!l&&(!i||s)}))},n.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,h.VS)(this.currentResult,t)){var n={cache:!0};!1!==(null==e?void 0:e.listeners)&&this.shouldNotifyListeners(this.currentResult,t)&&(n.listeners=!0),this.notify((0,f.Z)({},n,e))}},n.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},n.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||(0,C.DV)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},n.notify=function(e){var t=this;r.V.batch((function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)})),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})}))},t}(g.l);function S(e,t){return function(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&k(e,t,t.refetchOnMount)}function k(e,t,n){if(!1!==t.enabled){var r="function"===typeof n?n(e):n;return"always"===r||!1!==r&&O(e,t)}return!1}function Z(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&O(e,n)}function O(e,t){return e.isStaleByTime(t.staleTime)}function E(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var D=s.createContext(E());function P(e,t){var n=s.useRef(!1),o=s.useState(0)[1],i=d(),a=s.useContext(D),l=i.defaultQueryObserverOptions(e);l.optimisticResults=!0,l.onError&&(l.onError=r.V.batchCalls(l.onError)),l.onSuccess&&(l.onSuccess=r.V.batchCalls(l.onSuccess)),l.onSettled&&(l.onSettled=r.V.batchCalls(l.onSettled)),l.suspense&&("number"!==typeof l.staleTime&&(l.staleTime=1e3),0===l.cacheTime&&(l.cacheTime=1)),(l.suspense||l.useErrorBoundary)&&(a.isReset()||(l.retryOnMount=!1));var c=s.useState((function(){return new t(i,l)}))[0],u=c.getOptimisticResult(l);if(s.useEffect((function(){n.current=!0,a.clearReset();var e=c.subscribe(r.V.batchCalls((function(){n.current&&o((function(e){return e+1}))})));return c.updateResult(),function(){n.current=!1,e()}}),[a,c]),s.useEffect((function(){c.setOptions(l,{listeners:!1})}),[l,c]),l.suspense&&u.isLoading)throw c.fetchOptimistic(l).then((function(e){var t=e.data;null==l.onSuccess||l.onSuccess(t),null==l.onSettled||l.onSettled(t,null)})).catch((function(e){a.clearReset(),null==l.onError||l.onError(e),null==l.onSettled||l.onSettled(void 0,e)}));if(u.isError&&!a.isReset()&&!u.isFetching&&b(l.suspense,l.useErrorBoundary,[u.error,c.getCurrentQuery()]))throw u.error;return"tracked"===l.notifyOnChangeProps&&(u=c.trackResult(u,l)),u}function A(e,t,n){return P((0,h._v)(e,t,n),j)}var M=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.queries=[],r.result=[],r.observers=[],r.observersMap={},n&&r.setQueries(n),r}(0,m.Z)(t,e);var n=t.prototype;return n.onSubscribe=function(){var e=this;1===this.listeners.length&&this.observers.forEach((function(t){t.subscribe((function(n){e.onUpdate(t,n)}))}))},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.destroy=function(){this.listeners=[],this.observers.forEach((function(e){e.destroy()}))},n.setQueries=function(e,t){this.queries=e,this.updateObservers(t)},n.getCurrentResult=function(){return this.result},n.getOptimisticResult=function(e){return this.findMatchingObservers(e).map((function(e){return e.observer.getOptimisticResult(e.defaultedQueryOptions)}))},n.findMatchingObservers=function(e){var t=this,n=this.observers,r=e.map((function(e){return t.client.defaultQueryObserverOptions(e)})),o=r.flatMap((function(e){var t=n.find((function(t){return t.options.queryHash===e.queryHash}));return null!=t?[{defaultedQueryOptions:e,observer:t}]:[]})),i=o.map((function(e){return e.defaultedQueryOptions.queryHash})),a=r.filter((function(e){return!i.includes(e.queryHash)})),s=n.filter((function(e){return!o.some((function(t){return t.observer===e}))})),l=a.map((function(e,n){if(e.keepPreviousData){var r=s[n];if(void 0!==r)return{defaultedQueryOptions:e,observer:r}}return{defaultedQueryOptions:e,observer:t.getObserver(e)}}));return o.concat(l).sort((function(e,t){return r.indexOf(e.defaultedQueryOptions)-r.indexOf(t.defaultedQueryOptions)}))},n.getObserver=function(e){var t=this.client.defaultQueryObserverOptions(e),n=this.observersMap[t.queryHash];return null!=n?n:new j(this.client,t)},n.updateObservers=function(e){var t=this;r.V.batch((function(){var n=t.observers,r=t.findMatchingObservers(t.queries);r.forEach((function(t){return t.observer.setOptions(t.defaultedQueryOptions,e)}));var o=r.map((function(e){return e.observer})),i=Object.fromEntries(o.map((function(e){return[e.options.queryHash,e]}))),a=o.map((function(e){return e.getCurrentResult()})),s=o.some((function(e,t){return e!==n[t]}));(n.length!==o.length||s)&&(t.observers=o,t.observersMap=i,t.result=a,t.hasListeners()&&((0,h.e5)(n,o).forEach((function(e){e.destroy()})),(0,h.e5)(o,n).forEach((function(e){e.subscribe((function(n){t.onUpdate(e,n)}))})),t.notify()))}))},n.onUpdate=function(e,t){var n=this.observers.indexOf(e);-1!==n&&(this.result=(0,h.Rc)(this.result,n,t),this.notify())},n.notify=function(){var e=this;r.V.batch((function(){e.listeners.forEach((function(t){t(e.result)}))}))},t}(g.l);function T(e){var t=s.useRef(!1),n=s.useState(0)[1],o=d(),i=(0,s.useMemo)((function(){return e.map((function(e){var t=o.defaultQueryObserverOptions(e);return t.optimisticResults=!0,t}))}),[e,o]),a=s.useState((function(){return new M(o,i)}))[0],l=a.getOptimisticResult(i);return s.useEffect((function(){t.current=!0;var e=a.subscribe(r.V.batchCalls((function(){t.current&&n((function(e){return e+1}))})));return function(){t.current=!1,e()}}),[a]),s.useEffect((function(){a.setQueries(i,{listeners:!1})}),[i,a]),l}},82713:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.PrevArrow=t.NextArrow=void 0;var o=s(n(30303)),i=s(n(86950)),a=n(66602);function s(e){return e&&e.__esModule?e:{default:e}}function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function c(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 u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function m(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function g(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var x=function(e){m(n,e);var t=g(n);function n(){return p(this,n),t.apply(this,arguments)}return h(n,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var n={key:"0","data-role":"none",className:(0,i.default)(e),style:{display:"block"},onClick:t},r={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?o.default.cloneElement(this.props.prevArrow,u(u({},n),r)):o.default.createElement("button",l({key:"0",type:"button"},n)," ","Previous")}}]),n}(o.default.PureComponent);t.PrevArrow=x;var w=function(e){m(n,e);var t=g(n);function n(){return p(this,n),t.apply(this,arguments)}return h(n,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});(0,a.canGoNext)(this.props)||(e["slick-disabled"]=!0,t=null);var n={key:"1","data-role":"none",className:(0,i.default)(e),style:{display:"block"},onClick:t},r={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?o.default.cloneElement(this.props.nextArrow,u(u({},n),r)):o.default.createElement("button",l({key:"1",type:"button"},n)," ","Next")}}]),n}(o.default.PureComponent);t.NextArrow=w},44578:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(30303))&&r.__esModule?r:{default:r};var i={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return o.default.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return o.default.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0};t.default=i},58871:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.Dots=void 0;var o=s(n(30303)),i=s(n(86950)),a=n(66602);function s(e){return e&&e.__esModule?e:{default:e}}function l(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 c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function f(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var v=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(h,e);var t,n,r,s=f(h);function h(){return u(this,h),s.apply(this,arguments)}return t=h,n=[{key:"clickHandler",value:function(e,t){t.preventDefault(),this.props.clickHandler(e)}},{key:"render",value:function(){for(var e,t=this.props,n=t.onMouseEnter,r=t.onMouseOver,s=t.onMouseLeave,u=t.infinite,d=t.slidesToScroll,p=t.slidesToShow,f=t.slideCount,h=t.currentSlide,m=(e={slideCount:f,slidesToScroll:d,slidesToShow:p,infinite:u}).infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,v={onMouseEnter:n,onMouseOver:r,onMouseLeave:s},g=[],y=0;y<m;y++){var b=(y+1)*d-1,x=u?b:(0,a.clamp)(b,0,f-1),w=x-(d-1),C=u?w:(0,a.clamp)(w,0,f-1),j=(0,i.default)({"slick-active":u?h>=C&&h<=x:h===C}),S={message:"dots",index:y,slidesToScroll:d,currentSlide:h},k=this.clickHandler.bind(this,S);g=g.concat(o.default.createElement("li",{key:y,className:j},o.default.cloneElement(this.props.customPaging(y),{onClick:k})))}return o.default.cloneElement(this.props.appendDots(g),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({className:this.props.dotsClass},v))}}],n&&d(t.prototype,n),r&&d(t,r),Object.defineProperty(t,"prototype",{writable:!1}),h}(o.default.PureComponent);t.Dots=v},26887:function(e,t,n){"use strict";var r;t.Z=void 0;var o=((r=n(36880))&&r.__esModule?r:{default:r}).default;t.Z=o},64115:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};t.default=n},70874:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InnerSlider=void 0;var r=p(n(30303)),o=p(n(64115)),i=p(n(61572)),a=p(n(86950)),s=n(66602),l=n(65069),c=n(58871),u=n(82713),d=p(n(45715));function p(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(this,arguments)}function m(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function v(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 g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function x(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j(e);if(t){var o=j(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w(this,n)}}function w(e,t){if(t&&("object"===f(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return C(e)}function C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(w,e);var t,n,p,v=x(w);function w(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,w),S(C(t=v.call(this,e)),"listRefHandler",(function(e){return t.list=e})),S(C(t),"trackRefHandler",(function(e){return t.track=e})),S(C(t),"adaptHeight",(function(){if(t.props.adaptiveHeight&&t.list){var e=t.list.querySelector('[data-index="'.concat(t.state.currentSlide,'"]'));t.list.style.height=(0,s.getHeight)(e)+"px"}})),S(C(t),"componentDidMount",(function(){if(t.props.onInit&&t.props.onInit(),t.props.lazyLoad){var e=(0,s.getOnDemandLazySlides)(g(g({},t.props),t.state));e.length>0&&(t.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),t.props.onLazyLoad&&t.props.onLazyLoad(e))}var n=g({listRef:t.list,trackRef:t.track},t.props);t.updateState(n,!0,(function(){t.adaptHeight(),t.props.autoplay&&t.autoPlay("update")})),"progressive"===t.props.lazyLoad&&(t.lazyLoadTimer=setInterval(t.progressiveLazyLoad,1e3)),t.ro=new d.default((function(){t.state.animating?(t.onWindowResized(!1),t.callbackTimers.push(setTimeout((function(){return t.onWindowResized()}),t.props.speed))):t.onWindowResized()})),t.ro.observe(t.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),(function(e){e.onfocus=t.props.pauseOnFocus?t.onSlideFocus:null,e.onblur=t.props.pauseOnFocus?t.onSlideBlur:null})),window.addEventListener?window.addEventListener("resize",t.onWindowResized):window.attachEvent("onresize",t.onWindowResized)})),S(C(t),"componentWillUnmount",(function(){t.animationEndCallback&&clearTimeout(t.animationEndCallback),t.lazyLoadTimer&&clearInterval(t.lazyLoadTimer),t.callbackTimers.length&&(t.callbackTimers.forEach((function(e){return clearTimeout(e)})),t.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",t.onWindowResized):window.detachEvent("onresize",t.onWindowResized),t.autoplayTimer&&clearInterval(t.autoplayTimer),t.ro.disconnect()})),S(C(t),"componentDidUpdate",(function(e){if(t.checkImagesLoad(),t.props.onReInit&&t.props.onReInit(),t.props.lazyLoad){var n=(0,s.getOnDemandLazySlides)(g(g({},t.props),t.state));n.length>0&&(t.setState((function(e){return{lazyLoadedList:e.lazyLoadedList.concat(n)}})),t.props.onLazyLoad&&t.props.onLazyLoad(n))}t.adaptHeight();var o=g(g({listRef:t.list,trackRef:t.track},t.props),t.state),i=t.didPropsChange(e);i&&t.updateState(o,i,(function(){t.state.currentSlide>=r.default.Children.count(t.props.children)&&t.changeSlide({message:"index",index:r.default.Children.count(t.props.children)-t.props.slidesToShow,currentSlide:t.state.currentSlide}),t.props.autoplay?t.autoPlay("update"):t.pause("paused")}))})),S(C(t),"onWindowResized",(function(e){t.debouncedResize&&t.debouncedResize.cancel(),t.debouncedResize=(0,i.default)((function(){return t.resizeWindow(e)}),50),t.debouncedResize()})),S(C(t),"resizeWindow",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=Boolean(t.track&&t.track.node);if(n){var r=g(g({listRef:t.list,trackRef:t.track},t.props),t.state);t.updateState(r,e,(function(){t.props.autoplay?t.autoPlay("update"):t.pause("paused")})),t.setState({animating:!1}),clearTimeout(t.animationEndCallback),delete t.animationEndCallback}})),S(C(t),"updateState",(function(e,n,o){var i=(0,s.initializedState)(e);e=g(g(g({},e),i),{},{slideIndex:i.currentSlide});var a=(0,s.getTrackLeft)(e);e=g(g({},e),{},{left:a});var l=(0,s.getTrackCSS)(e);(n||r.default.Children.count(t.props.children)!==r.default.Children.count(e.children))&&(i.trackStyle=l),t.setState(i,o)})),S(C(t),"ssrInit",(function(){if(t.props.variableWidth){var e=0,n=0,o=[],i=(0,s.getPreClones)(g(g(g({},t.props),t.state),{},{slideCount:t.props.children.length})),a=(0,s.getPostClones)(g(g(g({},t.props),t.state),{},{slideCount:t.props.children.length}));t.props.children.forEach((function(t){o.push(t.props.style.width),e+=t.props.style.width}));for(var l=0;l<i;l++)n+=o[o.length-1-l],e+=o[o.length-1-l];for(var c=0;c<a;c++)e+=o[c];for(var u=0;u<t.state.currentSlide;u++)n+=o[u];var d={width:e+"px",left:-n+"px"};if(t.props.centerMode){var p="".concat(o[t.state.currentSlide],"px");d.left="calc(".concat(d.left," + (100% - ").concat(p,") / 2 ) ")}return{trackStyle:d}}var f=r.default.Children.count(t.props.children),h=g(g(g({},t.props),t.state),{},{slideCount:f}),m=(0,s.getPreClones)(h)+(0,s.getPostClones)(h)+f,v=100/t.props.slidesToShow*m,y=100/m,b=-y*((0,s.getPreClones)(h)+t.state.currentSlide)*v/100;return t.props.centerMode&&(b+=(100-y*v/100)/2),{slideWidth:y+"%",trackStyle:{width:v+"%",left:b+"%"}}})),S(C(t),"checkImagesLoad",(function(){var e=t.list&&t.list.querySelectorAll&&t.list.querySelectorAll(".slick-slide img")||[],n=e.length,r=0;Array.prototype.forEach.call(e,(function(e){var o=function(){return++r&&r>=n&&t.onWindowResized()};if(e.onclick){var i=e.onclick;e.onclick=function(){i(),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(t.props.lazyLoad?e.onload=function(){t.adaptHeight(),t.callbackTimers.push(setTimeout(t.onWindowResized,t.props.speed))}:(e.onload=o,e.onerror=function(){o(),t.props.onLazyLoadError&&t.props.onLazyLoadError()}))}))})),S(C(t),"progressiveLazyLoad",(function(){for(var e=[],n=g(g({},t.props),t.state),r=t.state.currentSlide;r<t.state.slideCount+(0,s.getPostClones)(n);r++)if(t.state.lazyLoadedList.indexOf(r)<0){e.push(r);break}for(var o=t.state.currentSlide-1;o>=-(0,s.getPreClones)(n);o--)if(t.state.lazyLoadedList.indexOf(o)<0){e.push(o);break}e.length>0?(t.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),t.props.onLazyLoad&&t.props.onLazyLoad(e)):t.lazyLoadTimer&&(clearInterval(t.lazyLoadTimer),delete t.lazyLoadTimer)})),S(C(t),"slideHandler",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t.props,o=r.asNavFor,i=r.beforeChange,a=r.onLazyLoad,l=r.speed,c=r.afterChange,u=t.state.currentSlide,d=(0,s.slideHandler)(g(g(g({index:e},t.props),t.state),{},{trackRef:t.track,useCSS:t.props.useCSS&&!n})),p=d.state,f=d.nextState;if(p){i&&i(u,p.currentSlide);var h=p.lazyLoadedList.filter((function(e){return t.state.lazyLoadedList.indexOf(e)<0}));a&&h.length>0&&a(h),!t.props.waitForAnimate&&t.animationEndCallback&&(clearTimeout(t.animationEndCallback),c&&c(u),delete t.animationEndCallback),t.setState(p,(function(){o&&t.asNavForIndex!==e&&(t.asNavForIndex=e,o.innerSlider.slideHandler(e)),f&&(t.animationEndCallback=setTimeout((function(){var e=f.animating,n=m(f,["animating"]);t.setState(n,(function(){t.callbackTimers.push(setTimeout((function(){return t.setState({animating:e})}),10)),c&&c(p.currentSlide),delete t.animationEndCallback}))}),l))}))}})),S(C(t),"changeSlide",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=g(g({},t.props),t.state),o=(0,s.changeSlide)(r,e);if((0===o||o)&&(!0===n?t.slideHandler(o,n):t.slideHandler(o),t.props.autoplay&&t.autoPlay("update"),t.props.focusOnSelect)){var i=t.list.querySelectorAll(".slick-current");i[0]&&i[0].focus()}})),S(C(t),"clickHandler",(function(e){!1===t.clickable&&(e.stopPropagation(),e.preventDefault()),t.clickable=!0})),S(C(t),"keyHandler",(function(e){var n=(0,s.keyHandler)(e,t.props.accessibility,t.props.rtl);""!==n&&t.changeSlide({message:n})})),S(C(t),"selectHandler",(function(e){t.changeSlide(e)})),S(C(t),"disableBodyScroll",(function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}})),S(C(t),"enableBodyScroll",(function(){window.ontouchmove=null})),S(C(t),"swipeStart",(function(e){t.props.verticalSwiping&&t.disableBodyScroll();var n=(0,s.swipeStart)(e,t.props.swipe,t.props.draggable);""!==n&&t.setState(n)})),S(C(t),"swipeMove",(function(e){var n=(0,s.swipeMove)(e,g(g(g({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));n&&(n.swiping&&(t.clickable=!1),t.setState(n))})),S(C(t),"swipeEnd",(function(e){var n=(0,s.swipeEnd)(e,g(g(g({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));if(n){var r=n.triggerSlideHandler;delete n.triggerSlideHandler,t.setState(n),void 0!==r&&(t.slideHandler(r),t.props.verticalSwiping&&t.enableBodyScroll())}})),S(C(t),"touchEnd",(function(e){t.swipeEnd(e),t.clickable=!0})),S(C(t),"slickPrev",(function(){t.callbackTimers.push(setTimeout((function(){return t.changeSlide({message:"previous"})}),0))})),S(C(t),"slickNext",(function(){t.callbackTimers.push(setTimeout((function(){return t.changeSlide({message:"next"})}),0))})),S(C(t),"slickGoTo",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";t.callbackTimers.push(setTimeout((function(){return t.changeSlide({message:"index",index:e,currentSlide:t.state.currentSlide},n)}),0))})),S(C(t),"play",(function(){var e;if(t.props.rtl)e=t.state.currentSlide-t.props.slidesToScroll;else{if(!(0,s.canGoNext)(g(g({},t.props),t.state)))return!1;e=t.state.currentSlide+t.props.slidesToScroll}t.slideHandler(e)})),S(C(t),"autoPlay",(function(e){t.autoplayTimer&&clearInterval(t.autoplayTimer);var n=t.state.autoplaying;if("update"===e){if("hovered"===n||"focused"===n||"paused"===n)return}else if("leave"===e){if("paused"===n||"focused"===n)return}else if("blur"===e&&("paused"===n||"hovered"===n))return;t.autoplayTimer=setInterval(t.play,t.props.autoplaySpeed+50),t.setState({autoplaying:"playing"})})),S(C(t),"pause",(function(e){t.autoplayTimer&&(clearInterval(t.autoplayTimer),t.autoplayTimer=null);var n=t.state.autoplaying;"paused"===e?t.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==n&&"playing"!==n||t.setState({autoplaying:"focused"}):"playing"===n&&t.setState({autoplaying:"hovered"})})),S(C(t),"onDotsOver",(function(){return t.props.autoplay&&t.pause("hovered")})),S(C(t),"onDotsLeave",(function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")})),S(C(t),"onTrackOver",(function(){return t.props.autoplay&&t.pause("hovered")})),S(C(t),"onTrackLeave",(function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")})),S(C(t),"onSlideFocus",(function(){return t.props.autoplay&&t.pause("focused")})),S(C(t),"onSlideBlur",(function(){return t.props.autoplay&&"focused"===t.state.autoplaying&&t.autoPlay("blur")})),S(C(t),"render",(function(){var e,n,o,i=(0,a.default)("slick-slider",t.props.className,{"slick-vertical":t.props.vertical,"slick-initialized":!0}),d=g(g({},t.props),t.state),p=(0,s.extractObject)(d,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),f=t.props.pauseOnHover;if(p=g(g({},p),{},{onMouseEnter:f?t.onTrackOver:null,onMouseLeave:f?t.onTrackLeave:null,onMouseOver:f?t.onTrackOver:null,focusOnSelect:t.props.focusOnSelect&&t.clickable?t.selectHandler:null}),!0===t.props.dots&&t.state.slideCount>=t.props.slidesToShow){var m=(0,s.extractObject)(d,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),v=t.props.pauseOnDotsHover;m=g(g({},m),{},{clickHandler:t.changeSlide,onMouseEnter:v?t.onDotsLeave:null,onMouseOver:v?t.onDotsOver:null,onMouseLeave:v?t.onDotsLeave:null}),e=r.default.createElement(c.Dots,m)}var y=(0,s.extractObject)(d,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);y.clickHandler=t.changeSlide,t.props.arrows&&(n=r.default.createElement(u.PrevArrow,y),o=r.default.createElement(u.NextArrow,y));var b=null;t.props.vertical&&(b={height:t.state.listHeight});var x=null;!1===t.props.vertical?!0===t.props.centerMode&&(x={padding:"0px "+t.props.centerPadding}):!0===t.props.centerMode&&(x={padding:t.props.centerPadding+" 0px"});var w=g(g({},b),x),C=t.props.touchMove,j={className:"slick-list",style:w,onClick:t.clickHandler,onMouseDown:C?t.swipeStart:null,onMouseMove:t.state.dragging&&C?t.swipeMove:null,onMouseUp:C?t.swipeEnd:null,onMouseLeave:t.state.dragging&&C?t.swipeEnd:null,onTouchStart:C?t.swipeStart:null,onTouchMove:t.state.dragging&&C?t.swipeMove:null,onTouchEnd:C?t.touchEnd:null,onTouchCancel:t.state.dragging&&C?t.swipeEnd:null,onKeyDown:t.props.accessibility?t.keyHandler:null},S={className:i,dir:"ltr",style:t.props.style};return t.props.unslick&&(j={className:"slick-list"},S={className:i}),r.default.createElement("div",S,t.props.unslick?"":n,r.default.createElement("div",h({ref:t.listRefHandler},j),r.default.createElement(l.Track,h({ref:t.trackRefHandler},p),t.props.children)),t.props.unslick?"":o,t.props.unslick?"":e)})),t.list=null,t.track=null,t.state=g(g({},o.default),{},{currentSlide:t.props.initialSlide,slideCount:r.default.Children.count(t.props.children)}),t.callbackTimers=[],t.clickable=!0,t.debouncedResize=null;var n=t.ssrInit();return t.state=g(g({},t.state),n),t}return t=w,(n=[{key:"didPropsChange",value:function(e){for(var t=!1,n=0,o=Object.keys(this.props);n<o.length;n++){var i=o[n];if(!e.hasOwnProperty(i)){t=!0;break}if("object"!==f(e[i])&&"function"!==typeof e[i]&&e[i]!==this.props[i]){t=!0;break}}return t||r.default.Children.count(this.props.children)!==r.default.Children.count(e.children)}}])&&y(t.prototype,n),p&&y(t,p),Object.defineProperty(t,"prototype",{writable:!1}),w}(r.default.Component);t.InnerSlider=k},36880:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=c(n(30303)),i=n(70874),a=c(n(17519)),s=c(n(44578)),l=n(66602);function c(e){return e&&e.__esModule?e:{default:e}}function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function d(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<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function m(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=(0,l.canUseDOM)()&&n(57479),w=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(d,e);var t,n,r,c=m(d);function d(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),b(g(t=c.call(this,e)),"innerSliderRefHandler",(function(e){return t.innerSlider=e})),b(g(t),"slickPrev",(function(){return t.innerSlider.slickPrev()})),b(g(t),"slickNext",(function(){return t.innerSlider.slickNext()})),b(g(t),"slickGoTo",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t.innerSlider.slickGoTo(e,n)})),b(g(t),"slickPause",(function(){return t.innerSlider.pause("paused")})),b(g(t),"slickPlay",(function(){return t.innerSlider.autoPlay("play")})),t.state={breakpoint:null},t._responsiveMediaHandlers=[],t}return t=d,(n=[{key:"media",value:function(e,t){x.register(e,t),this._responsiveMediaHandlers.push({query:e,handler:t})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map((function(e){return e.breakpoint}));t.sort((function(e,t){return e-t})),t.forEach((function(n,r){var o;o=0===r?(0,a.default)({minWidth:0,maxWidth:n}):(0,a.default)({minWidth:t[r-1]+1,maxWidth:n}),(0,l.canUseDOM)()&&e.media(o,(function(){e.setState({breakpoint:n})}))}));var n=(0,a.default)({minWidth:t.slice(-1)[0]});(0,l.canUseDOM)()&&this.media(n,(function(){e.setState({breakpoint:null})}))}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach((function(e){x.unregister(e.query,e.handler)}))}},{key:"render",value:function(){var e,t,n=this;(e=this.state.breakpoint?"unslick"===(t=this.props.responsive.filter((function(e){return e.breakpoint===n.state.breakpoint})))[0].settings?"unslick":p(p(p({},s.default),this.props),t[0].settings):p(p({},s.default),this.props)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var r=o.default.Children.toArray(this.props.children);r=r.filter((function(e){return"string"===typeof e?!!e.trim():!!e})),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var a=[],l=null,c=0;c<r.length;c+=e.rows*e.slidesPerRow){for(var d=[],f=c;f<c+e.rows*e.slidesPerRow;f+=e.slidesPerRow){for(var h=[],m=f;m<f+e.slidesPerRow&&(e.variableWidth&&r[m].props.style&&(l=r[m].props.style.width),!(m>=r.length));m+=1)h.push(o.default.cloneElement(r[m],{key:100*c+10*f+m,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));d.push(o.default.createElement("div",{key:10*c+f},h))}e.variableWidth?a.push(o.default.createElement("div",{key:c,style:{width:l}},d)):a.push(o.default.createElement("div",{key:c},d))}if("unslick"===e){var v="regular slider "+(this.props.className||"");return o.default.createElement("div",{className:v},r)}return a.length<=e.slidesToShow&&(e.unslick=!0),o.default.createElement(i.InnerSlider,u({style:this.props.style,ref:this.innerSliderRefHandler},e),a)}}])&&f(t.prototype,n),r&&f(t,r),Object.defineProperty(t,"prototype",{writable:!1}),d}(o.default.Component);t.default=w},65069:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.Track=void 0;var o=s(n(30303)),i=s(n(86950)),a=n(66602);function s(e){return e&&e.__esModule?e:{default:e}}function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function v(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 g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=function(e){var t,n,r,o,i;return r=(i=e.rtl?e.slideCount-1-e.index:e.index)<0||i>=e.slideCount,e.centerMode?(o=Math.floor(e.slidesToShow/2),n=(i-e.currentSlide)%e.slideCount===0,i>e.currentSlide-o-1&&i<=e.currentSlide+o&&(t=!0)):t=e.currentSlide<=i&&i<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":r,"slick-current":i===(e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},x=function(e,t){return e.key||t},w=function(e){var t,n=[],r=[],s=[],l=o.default.Children.count(e.children),c=(0,a.lazyStartIndex)(e),u=(0,a.lazyEndIndex)(e);return o.default.Children.forEach(e.children,(function(d,p){var f,h={message:"children",index:p,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};f=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(p)>=0?d:o.default.createElement("div",null);var m=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}(g(g({},e),{},{index:p})),v=f.props.className||"",y=b(g(g({},e),{},{index:p}));if(n.push(o.default.cloneElement(f,{key:"original"+x(f,p),"data-index":p,className:(0,i.default)(y,v),tabIndex:"-1","aria-hidden":!y["slick-active"],style:g(g({outline:"none"},f.props.style||{}),m),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(h)}})),e.infinite&&!1===e.fade){var w=l-p;w<=(0,a.getPreClones)(e)&&l!==e.slidesToShow&&((t=-w)>=c&&(f=d),y=b(g(g({},e),{},{index:t})),r.push(o.default.cloneElement(f,{key:"precloned"+x(f,t),"data-index":t,tabIndex:"-1",className:(0,i.default)(y,v),"aria-hidden":!y["slick-active"],style:g(g({},f.props.style||{}),m),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(h)}}))),l!==e.slidesToShow&&((t=l+p)<u&&(f=d),y=b(g(g({},e),{},{index:t})),s.push(o.default.cloneElement(f,{key:"postcloned"+x(f,t),"data-index":t,tabIndex:"-1",className:(0,i.default)(y,v),"aria-hidden":!y["slick-active"],style:g(g({},f.props.style||{}),m),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(h)}})))}})),e.rtl?r.concat(n,s).reverse():r.concat(n,s)},C=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(a,e);var t,n,r,i=p(a);function a(){var e;c(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return y(h(e=i.call.apply(i,[this].concat(n))),"node",null),y(h(e),"handleRef",(function(t){e.node=t})),e}return t=a,(n=[{key:"render",value:function(){var e=w(this.props),t=this.props,n={onMouseEnter:t.onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave};return o.default.createElement("div",l({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},n),e)}}])&&u(t.prototype,n),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.default.PureComponent);t.Track=C},66602:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkSpecKeys=t.checkNavigable=t.changeSlide=t.canUseDOM=t.canGoNext=void 0,t.clamp=l,t.swipeStart=t.swipeMove=t.swipeEnd=t.slidesOnRight=t.slidesOnLeft=t.slideHandler=t.siblingDirection=t.safePreventDefault=t.lazyStartIndex=t.lazySlidesOnRight=t.lazySlidesOnLeft=t.lazyEndIndex=t.keyHandler=t.initializedState=t.getWidth=t.getTrackLeft=t.getTrackCSS=t.getTrackAnimateCSS=t.getTotalSlides=t.getSwipeDirection=t.getSlideCount=t.getRequiredLazySlides=t.getPreClones=t.getPostClones=t.getOnDemandLazySlides=t.getNavigableIndexes=t.getHeight=t.extractObject=void 0;var r,o=(r=n(30303))&&r.__esModule?r:{default:r};function i(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 a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t,n){return Math.max(t,Math.min(e,n))}var c=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()};t.safePreventDefault=c;var u=function(e){for(var t=[],n=d(e),r=p(e),o=n;o<r;o++)e.lazyLoadedList.indexOf(o)<0&&t.push(o);return t};t.getOnDemandLazySlides=u;t.getRequiredLazySlides=function(e){for(var t=[],n=d(e),r=p(e),o=n;o<r;o++)t.push(o);return t};var d=function(e){return e.currentSlide-f(e)};t.lazyStartIndex=d;var p=function(e){return e.currentSlide+h(e)};t.lazyEndIndex=p;var f=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0};t.lazySlidesOnLeft=f;var h=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow};t.lazySlidesOnRight=h;var m=function(e){return e&&e.offsetWidth||0};t.getWidth=m;var v=function(e){return e&&e.offsetHeight||0};t.getHeight=v;var g=function(e){var t,n,r,o,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,r=Math.atan2(n,t),(o=Math.round(180*r/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0||o<=360&&o>=315?"left":o>=135&&o<=225?"right":!0===i?o>=35&&o<=135?"up":"down":"vertical"};t.getSwipeDirection=g;var y=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t};t.canGoNext=y;t.extractObject=function(e,t){var n={};return t.forEach((function(t){return n[t]=e[t]})),n};t.initializedState=function(e){var t,n=o.default.Children.count(e.children),r=e.listRef,i=Math.ceil(m(r)),s=e.trackRef&&e.trackRef.node,l=Math.ceil(m(s));if(e.vertical)t=i;else{var c=e.centerMode&&2*parseInt(e.centerPadding);"string"===typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(c*=i/100),t=Math.ceil((i-c)/e.slidesToShow)}var d=r&&v(r.querySelector('[data-index="0"]')),p=d*e.slidesToShow,f=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(f=n-1-e.initialSlide);var h=e.lazyLoadedList||[],g=u(a(a({},e),{},{currentSlide:f,lazyLoadedList:h})),y={slideCount:n,slideWidth:t,listWidth:i,trackWidth:l,currentSlide:f,slideHeight:d,listHeight:p,lazyLoadedList:h=h.concat(g)};return null===e.autoplaying&&e.autoplay&&(y.autoplaying="playing"),y};t.slideHandler=function(e){var t=e.waitForAnimate,n=e.animating,r=e.fade,o=e.infinite,i=e.index,s=e.slideCount,c=e.lazyLoad,d=e.currentSlide,p=e.centerMode,f=e.slidesToScroll,h=e.slidesToShow,m=e.useCSS,v=e.lazyLoadedList;if(t&&n)return{};var g,b,x,w=i,C={},Z={},O=o?i:l(i,0,s-1);if(r){if(!o&&(i<0||i>=s))return{};i<0?w=i+s:i>=s&&(w=i-s),c&&v.indexOf(w)<0&&(v=v.concat(w)),C={animating:!0,currentSlide:w,lazyLoadedList:v,targetSlide:w},Z={animating:!1,targetSlide:w}}else g=w,w<0?(g=w+s,o?s%f!==0&&(g=s-s%f):g=0):!y(e)&&w>d?w=g=d:p&&w>=s?(w=o?s:s-1,g=o?0:s-1):w>=s&&(g=w-s,o?s%f!==0&&(g=0):g=s-h),!o&&w+h>=s&&(g=s-h),b=k(a(a({},e),{},{slideIndex:w})),x=k(a(a({},e),{},{slideIndex:g})),o||(b===x&&(w=g),b=x),c&&(v=v.concat(u(a(a({},e),{},{currentSlide:w})))),m?(C={animating:!0,currentSlide:g,trackStyle:S(a(a({},e),{},{left:b})),lazyLoadedList:v,targetSlide:O},Z={animating:!1,currentSlide:g,trackStyle:j(a(a({},e),{},{left:x})),swipeLeft:null,targetSlide:O}):C={currentSlide:g,trackStyle:j(a(a({},e),{},{left:x})),lazyLoadedList:v,targetSlide:O};return{state:C,nextState:Z}};t.changeSlide=function(e,t){var n,r,o,i,s=e.slidesToScroll,l=e.slidesToShow,c=e.slideCount,u=e.currentSlide,d=e.targetSlide,p=e.lazyLoad,f=e.infinite;if(n=c%s!==0?0:(c-u)%s,"previous"===t.message)i=u-(o=0===n?s:l-n),p&&!f&&(i=-1===(r=u-o)?c-1:r),f||(i=d-s);else if("next"===t.message)i=u+(o=0===n?s:n),p&&!f&&(i=(u+s)%c+n),f||(i=d+s);else if("dots"===t.message)i=t.index*t.slidesToScroll;else if("children"===t.message){if(i=t.index,f){var h=D(a(a({},e),{},{targetSlide:i}));i>t.currentSlide&&"left"===h?i-=c:i<t.currentSlide&&"right"===h&&(i+=c)}}else"index"===t.message&&(i=Number(t.index));return i};t.keyHandler=function(e,t,n){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":""};t.swipeStart=function(e,t,n){return"IMG"===e.target.tagName&&c(e),!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}};t.swipeMove=function(e,t){var n=t.scrolling,r=t.animating,o=t.vertical,i=t.swipeToSlide,s=t.verticalSwiping,l=t.rtl,u=t.currentSlide,d=t.edgeFriction,p=t.edgeDragged,f=t.onEdge,h=t.swiped,m=t.swiping,v=t.slideCount,b=t.slidesToScroll,x=t.infinite,w=t.touchObject,C=t.swipeEvent,S=t.listHeight,Z=t.listWidth;if(!n){if(r)return c(e);o&&i&&s&&c(e);var O,E={},D=k(t);w.curX=e.touches?e.touches[0].pageX:e.clientX,w.curY=e.touches?e.touches[0].pageY:e.clientY,w.swipeLength=Math.round(Math.sqrt(Math.pow(w.curX-w.startX,2)));var P=Math.round(Math.sqrt(Math.pow(w.curY-w.startY,2)));if(!s&&!m&&P>10)return{scrolling:!0};s&&(w.swipeLength=P);var A=(l?-1:1)*(w.curX>w.startX?1:-1);s&&(A=w.curY>w.startY?1:-1);var M=Math.ceil(v/b),T=g(t.touchObject,s),I=w.swipeLength;return x||(0===u&&("right"===T||"down"===T)||u+1>=M&&("left"===T||"up"===T)||!y(t)&&("left"===T||"up"===T))&&(I=w.swipeLength*d,!1===p&&f&&(f(T),E.edgeDragged=!0)),!h&&C&&(C(T),E.swiped=!0),O=o?D+I*(S/Z)*A:l?D-I*A:D+I*A,s&&(O=D+I*A),E=a(a({},E),{},{touchObject:w,swipeLeft:O,trackStyle:j(a(a({},t),{},{left:O}))}),Math.abs(w.curX-w.startX)<.8*Math.abs(w.curY-w.startY)?E:(w.swipeLength>10&&(E.swiping=!0,c(e)),E)}};t.swipeEnd=function(e,t){var n=t.dragging,r=t.swipe,o=t.touchObject,i=t.listWidth,s=t.touchThreshold,l=t.verticalSwiping,u=t.listHeight,d=t.swipeToSlide,p=t.scrolling,f=t.onSwipe,h=t.targetSlide,m=t.currentSlide,v=t.infinite;if(!n)return r&&c(e),{};var y=l?u/s:i/s,b=g(o,l),C={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(p)return C;if(!o.swipeLength)return C;if(o.swipeLength>y){var j,Z;c(e),f&&f(b);var O=v?m:h;switch(b){case"left":case"up":Z=O+w(t),j=d?x(t,Z):Z,C.currentDirection=0;break;case"right":case"down":Z=O-w(t),j=d?x(t,Z):Z,C.currentDirection=1;break;default:j=O}C.triggerSlideHandler=j}else{var E=k(t);C.trackStyle=S(a(a({},t),{},{left:E}))}return C};var b=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,r=e.infinite?-1*e.slidesToShow:0,o=[];n<t;)o.push(n),n=r+e.slidesToScroll,r+=Math.min(e.slidesToScroll,e.slidesToShow);return o};t.getNavigableIndexes=b;var x=function(e,t){var n=b(e),r=0;if(t>n[n.length-1])t=n[n.length-1];else for(var o in n){if(t<n[o]){t=r;break}r=n[o]}return t};t.checkNavigable=x;var w=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var n,r=e.listRef,o=r.querySelectorAll&&r.querySelectorAll(".slick-slide")||[];if(Array.from(o).every((function(r){if(e.vertical){if(r.offsetTop+v(r)/2>-1*e.swipeLeft)return n=r,!1}else if(r.offsetLeft-t+m(r)/2>-1*e.swipeLeft)return n=r,!1;return!0})),!n)return 0;var i=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-i)||1}return e.slidesToScroll};t.getSlideCount=w;var C=function(e,t){return t.reduce((function(t,n){return t&&e.hasOwnProperty(n)}),!0)?null:console.error("Keys Missing:",e)};t.checkSpecKeys=C;var j=function(e){var t,n;C(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var r=e.slideCount+2*e.slidesToShow;e.vertical?n=r*e.slideHeight:t=E(e)*e.slideWidth;var o={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var i=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",s=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",l=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";o=a(a({},o),{},{WebkitTransform:i,transform:s,msTransform:l})}else e.vertical?o.top=e.left:o.left=e.left;return e.fade&&(o={opacity:1}),t&&(o.width=t),n&&(o.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?o.marginTop=e.left+"px":o.marginLeft=e.left+"px"),o};t.getTrackCSS=j;var S=function(e){C(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=j(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t};t.getTrackAnimateCSS=S;var k=function(e){if(e.unslick)return 0;C(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,r=e.slideIndex,o=e.trackRef,i=e.infinite,a=e.centerMode,s=e.slideCount,l=e.slidesToShow,c=e.slidesToScroll,u=e.slideWidth,d=e.listWidth,p=e.variableWidth,f=e.slideHeight,h=e.fade,m=e.vertical;if(h||1===e.slideCount)return 0;var v=0;if(i?(v=-Z(e),s%c!==0&&r+c>s&&(v=-(r>s?l-(r-s):s%c)),a&&(v+=parseInt(l/2))):(s%c!==0&&r+c>s&&(v=l-s%c),a&&(v=parseInt(l/2))),t=m?r*f*-1+v*f:r*u*-1+v*u,!0===p){var g,y=o&&o.node;if(g=r+Z(e),t=(n=y&&y.childNodes[g])?-1*n.offsetLeft:0,!0===a){g=i?r+Z(e):r,n=y&&y.children[g],t=0;for(var b=0;b<g;b++)t-=y&&y.children[b]&&y.children[b].offsetWidth;t-=parseInt(e.centerPadding),t+=n&&(d-n.offsetWidth)/2}}return t};t.getTrackLeft=k;var Z=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)};t.getPreClones=Z;var O=function(e){return e.unslick||!e.infinite?0:e.slideCount};t.getPostClones=O;var E=function(e){return 1===e.slideCount?1:Z(e)+e.slideCount+O(e)};t.getTotalSlides=E;var D=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+P(e)?"left":"right":e.targetSlide<e.currentSlide-A(e)?"right":"left"};t.siblingDirection=D;var P=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,o=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(o)>0&&(i+=1),r&&t%2===0&&(i+=1),i}return r?0:t-1};t.slidesOnRight=P;var A=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,o=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(o)>0&&(i+=1),r||t%2!==0||(i+=1),i}return r?t-1:0};t.slidesOnLeft=A;t.canUseDOM=function(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}},95312:function(e,t,n){"use strict";var r=n(73203);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,o.default)(e,t)||("string"===typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var o=r(n(41254));e.exports=t.default},41254:function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},35698:function(e){"use strict";function t(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,n){e.classList?e.classList.remove(n):"string"===typeof e.className?e.className=t(e.className,n):e.setAttribute("class",t(e.className&&e.className.baseVal||"",n))}},17593:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;!function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}t.default=e}(n(25262));var r=s(n(95312)),o=s(n(35698)),i=s(n(30303)),a=s(n(31359));n(10378);function s(e){return e&&e.__esModule?e:{default:e}}function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}var c=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,r.default)(e,t)}))},u=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,o.default)(e,t)}))},d=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).onEnter=function(e,n){var r=t.getClassNames(n?"appear":"enter").className;t.removeClasses(e,"exit"),c(e,r),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.getClassNames(n?"appear":"enter").activeClassName;t.reflowAndAddClass(e,r),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.getClassNames("appear").doneClassName,o=t.getClassNames("enter").doneClassName,i=n?r+" "+o:o;t.removeClasses(e,n?"appear":"enter"),c(e,i),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.getClassNames("exit").className;t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),c(e,n),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.getClassNames("exit").activeClassName;t.reflowAndAddClass(e,n),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.getClassNames("exit").doneClassName;t.removeClasses(e,"exit"),c(e,n),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var n=t.props.classNames,r="string"===typeof n,o=r?(r&&n?n+"-":"")+e:n[e];return{className:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.removeClasses=function(e,t){var n=this.getClassNames(t),r=n.className,o=n.activeClassName,i=n.doneClassName;r&&u(e,r),o&&u(e,o),i&&u(e,i)},o.reflowAndAddClass=function(e,t){t&&(e&&e.scrollTop,c(e,t))},o.render=function(){var e=l({},this.props);return delete e.classNames,i.default.createElement(a.default,l({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(i.default.Component);d.defaultProps={classNames:""},d.propTypes={};var p=d;t.default=p,e.exports=t.default},13862:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;a(n(25262));var r=a(n(30303)),o=n(93715),i=a(n(67576));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t,n;function a(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=a.prototype;return s.handleLifecycle=function(e,t,n){var i,a=this.props.children,s=r.default.Children.toArray(a)[t];s.props[e]&&(i=s.props)[e].apply(i,n),this.props[e]&&this.props[e]((0,o.findDOMNode)(this))},s.render=function(){var e=this.props,t=e.children,n=e.in,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["children","in"]),a=r.default.Children.toArray(t),s=a[0],l=a[1];return delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,r.default.createElement(i.default,o,n?r.default.cloneElement(s,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(l,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},a}(r.default.Component);s.propTypes={};var l=s;t.default=l,e.exports=t.default},31359:function(e,t,n){"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(25262)),o=s(n(30303)),i=s(n(93715)),a=n(91634);n(10378);function s(e){return e&&e.__esModule?e:{default:e}}var l="unmounted";t.UNMOUNTED=l;var c="exited";t.EXITED=c;var u="entering";t.ENTERING=u;var d="entered";t.ENTERED=d;var p="exiting";t.EXITING=p;var f=function(e){var t,n;function r(t,n){var r;r=e.call(this,t,n)||this;var o,i=n.transitionGroup,a=i&&!i.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o=c,r.appearStatus=u):o=d:o=t.unmountOnExit||t.mountOnEnter?l:c,r.state={status:o},r.nextCallback=null,r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.getChildContext=function(){return{transitionGroup:null}},r.getDerivedStateFromProps=function(e,t){return e.in&&t.status===l?{status:c}:null},a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==u&&n!==d&&(t=u):n!==u&&n!==d||(t=p)}this.updateStatus(!1,t)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},a.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=i.default.findDOMNode(this);t===u?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===c&&this.setState({status:l})},a.performEnter=function(e,t){var n=this,r=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,i=this.getTimeouts(),a=o?i.appear:i.enter;t||r?(this.props.onEnter(e,o),this.safeSetState({status:u},(function(){n.props.onEntering(e,o),n.onTransitionEnd(e,a,(function(){n.safeSetState({status:d},(function(){n.props.onEntered(e,o)}))}))}))):this.safeSetState({status:d},(function(){n.props.onEntered(e)}))},a.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:p},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:c},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:c},(function(){t.props.onExited(e)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},a.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},a.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},a.render=function(){var e=this.state.status;if(e===l)return null;var t=this.props,n=t.children,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"===typeof n)return n(e,r);var i=o.default.Children.only(n);return o.default.cloneElement(i,r)},r}(o.default.Component);function h(){}f.contextTypes={transitionGroup:r.object},f.childContextTypes={transitionGroup:function(){}},f.propTypes={},f.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},f.UNMOUNTED=0,f.EXITED=1,f.ENTERING=2,f.ENTERED=3,f.EXITING=4;var m=(0,a.polyfill)(f);t.default=m},67576:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=s(n(25262)),o=s(n(30303)),i=n(91634),a=n(37259);function s(e){return e&&e.__esModule?e:{default:e}}function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},d=function(e){var t,n;function r(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(c(c(r)));return r.state={handleExited:o,firstRender:!0},r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},i.componentDidMount=function(){this.appeared=!0,this.mounted=!0},i.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?(0,a.getInitialChildMapping)(e,r):(0,a.getNextChildMapping)(e,n,r),firstRender:!1}},i.handleExited=function(e,t){var n=(0,a.getChildMapping)(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=l({},t.children);return delete n[e.key],{children:n}})))},i.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["component","childFactory"]),i=u(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i:o.default.createElement(t,r,i)},r}(o.default.Component);d.childContextTypes={transitionGroup:r.default.object.isRequired},d.propTypes={},d.defaultProps={component:"div",childFactory:function(e){return e}};var p=(0,i.polyfill)(d);t.default=p,e.exports=t.default},59499:function(e,t,n){"use strict";var r=s(n(17593)),o=s(n(13862)),i=s(n(67576)),a=s(n(31359));function s(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:a.default,TransitionGroup:i.default,ReplaceTransition:o.default,CSSTransition:r.default}},37259:function(e,t,n){"use strict";t.__esModule=!0,t.getChildMapping=o,t.mergeChildMappings=i,t.getInitialChildMapping=function(e,t){return o(e.children,(function(n){return(0,r.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:a(n,"appear",e),enter:a(n,"enter",e),exit:a(n,"exit",e)})}))},t.getNextChildMapping=function(e,t,n){var s=o(e.children),l=i(t,s);return Object.keys(l).forEach((function(o){var i=l[o];if((0,r.isValidElement)(i)){var c=o in t,u=o in s,d=t[o],p=(0,r.isValidElement)(d)&&!d.props.in;!u||c&&!p?u||!c||p?u&&c&&(0,r.isValidElement)(d)&&(l[o]=(0,r.cloneElement)(i,{onExited:n.bind(null,i),in:d.props.in,exit:a(i,"exit",e),enter:a(i,"enter",e)})):l[o]=(0,r.cloneElement)(i,{in:!1}):l[o]=(0,r.cloneElement)(i,{onExited:n.bind(null,i),in:!0,exit:a(i,"exit",e),enter:a(i,"enter",e)})}})),l};var r=n(30303);function o(e,t){var n=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)})),n}function i(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}function a(e,t,n){return null!=n[t]?n[t]:e.props[t]}},10378:function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var r;(r=n(25262))&&r.__esModule;t.timeoutsShape=null;t.classNamesShape=null},95895:function(e,t,n){"use strict";n.d(t,{ZP:function(){return g}});var r=n(30808),o=n(93219),i=n(30303),a=n(93715),s=!1,l=n(86308),c=n(55044),u="unmounted",d="exited",p="entering",f="entered",h="exiting",m=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=d,r.appearStatus=p):o=f:o=t.unmountOnExit||t.mountOnEnter?u:d,r.state={status:o},r.nextCallback=null,r}(0,o.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===u?{status:d}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==p&&n!==f&&(t=p):n!==p&&n!==f||(t=h)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===p){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this);n&&(0,c.Q)(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===d&&this.setState({status:u})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[a.findDOMNode(this),r],i=o[0],l=o[1],c=this.getTimeouts(),u=r?c.appear:c.enter;!e&&!n||s?this.safeSetState({status:f},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,l),this.safeSetState({status:p},(function(){t.props.onEntering(i,l),t.onTransitionEnd(u,(function(){t.safeSetState({status:f},(function(){t.props.onEntered(i,l)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:a.findDOMNode(this);t&&!s?(this.props.onExit(r),this.safeSetState({status:h},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:d},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:d},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],s=o[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===u)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i.createElement(l.Z.Provider,{value:null},"function"===typeof n?n(e,o):i.cloneElement(i.Children.only(n),o))},t}(i.Component);function v(){}m.contextType=l.Z,m.propTypes={},m.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:v,onEntering:v,onEntered:v,onExit:v,onExiting:v,onExited:v},m.UNMOUNTED=u,m.EXITED=d,m.ENTERING=p,m.ENTERED=f,m.EXITING=h;var g=m},17238:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(30808),o=n(25773),i=n(47169),a=n(93219),s=n(30303),l=n(86308);function c(e,t){var n=Object.create(null);return e&&s.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,s.isValidElement)(e)?t(e):e}(e)})),n}function u(e,t,n){return null!=n[t]?n[t]:e.props[t]}function d(e,t,n){var r=c(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if((0,s.isValidElement)(a)){var l=i in t,c=i in r,d=t[i],p=(0,s.isValidElement)(d)&&!d.props.in;!c||l&&!p?c||!l||p?c&&l&&(0,s.isValidElement)(d)&&(o[i]=(0,s.cloneElement)(a,{onExited:n.bind(null,a),in:d.props.in,exit:u(a,"exit",e),enter:u(a,"enter",e)})):o[i]=(0,s.cloneElement)(a,{in:!1}):o[i]=(0,s.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:u(a,"exit",e),enter:u(a,"enter",e)})}})),o}var p=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},f=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind((0,i.Z)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}(0,a.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,c(n.children,(function(e){return(0,s.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:u(e,"appear",n),enter:u(e,"enter",n),exit:u(e,"exit",n)})}))):d(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=c(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,o.Z)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=(0,r.Z)(e,["component","childFactory"]),i=this.state.contextValue,a=p(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?s.createElement(l.Z.Provider,{value:i},a):s.createElement(l.Z.Provider,{value:i},s.createElement(t,o,a))},t}(s.Component);f.propTypes={},f.defaultProps={component:"div",childFactory:function(e){return e}};var h=f},86308:function(e,t,n){"use strict";var r=n(30303);t.Z=r.createContext(null)},55044:function(e,t,n){"use strict";n.d(t,{Q:function(){return r}});var r=function(e){return e.scrollTop}},36985:function(e,t,n){"use strict";var r=n(43578);Object.defineProperty(t,"ZP",{enumerable:!0,get:function(){return r.useWebSocket}});var o=n(55772);var i=n(91188);var a=n(41027);var s=n(24189)},26631:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.attachListeners=void 0;var o=n(58382),i=n(91188),a=n(24189);t.attachListeners=function(e,t,n,s,l,c){var u,d,p,f=t.setLastMessage,h=t.setReadyState;return n.current.fromSocketIO&&(u=o.setUpSocketIOPing(c)),function(e,t,n){e.onmessage=function(e){t.current.onMessage&&t.current.onMessage(e),"function"===typeof t.current.filter&&!0!==t.current.filter(e)||n(e)}}(e,n,f),function(e,t,n,r){e.onopen=function(e){t.current.onOpen&&t.current.onOpen(e),r.current=0,n(i.ReadyState.OPEN)}}(e,n,h,l),d=function(e,t,n,r,o){return i.isEventSourceSupported&&e instanceof EventSource?function(){}:(a.assertIsWebSocket(e),e.onclose=function(e){var a,l;if(t.current.onClose&&t.current.onClose(e),n(i.ReadyState.CLOSED),t.current.shouldReconnect&&t.current.shouldReconnect(e)){var c=null!==(a=t.current.reconnectAttempts)&&void 0!==a?a:i.DEFAULT_RECONNECT_LIMIT;o.current<c?s=window.setTimeout((function(){o.current++,r()}),null!==(l=t.current.reconnectInterval)&&void 0!==l?l:i.DEFAULT_RECONNECT_INTERVAL_MS):(t.current.onReconnectStop&&t.current.onReconnectStop(c),console.warn("Max reconnect attempts of "+c+" exceeded"))}},function(){return s&&window.clearTimeout(s)});var s}(e,n,h,s,l),p=function(e,t,n,o,a){var s;return e.onerror=function(l){var c,u;t.current.onError&&t.current.onError(l),i.isEventSourceSupported&&e instanceof EventSource&&(t.current.onClose&&t.current.onClose(r(r({},l),{code:1006,reason:"An error occurred with the EventSource: "+l,wasClean:!1})),n(i.ReadyState.CLOSED),e.close()),t.current.retryOnError&&(a.current<(null!==(c=t.current.reconnectAttempts)&&void 0!==c?c:i.DEFAULT_RECONNECT_LIMIT)?s=window.setTimeout((function(){a.current++,o()}),null!==(u=t.current.reconnectInterval)&&void 0!==u?u:i.DEFAULT_RECONNECT_INTERVAL_MS):(t.current.onReconnectStop&&t.current.onReconnectStop(t.current.reconnectAttempts),console.warn("Max reconnect attempts of "+t.current.reconnectAttempts+" exceeded")))},function(){return s&&window.clearTimeout(s)}}(e,n,h,s,l),function(){h(i.ReadyState.CLOSING),d(),p(),e.close(),u&&clearInterval(u)}}},9935:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.attachSharedListeners=void 0;var o=n(43746),i=n(91188),a=n(70948),s=n(58382);t.attachSharedListeners=function(e,t,n,l){var c;return n.current.fromSocketIO&&(c=s.setUpSocketIOPing(l)),function(e,t){e.onmessage=function(e){a.getSubscribers(t).forEach((function(t){t.optionsRef.current.onMessage&&t.optionsRef.current.onMessage(e),"function"===typeof t.optionsRef.current.filter&&!0!==t.optionsRef.current.filter(e)||t.setLastMessage(e)}))}}(e,t),function(e,t){e instanceof WebSocket&&(e.onclose=function(e){a.getSubscribers(t).forEach((function(t){t.optionsRef.current.onClose&&t.optionsRef.current.onClose(e),t.setReadyState(i.ReadyState.CLOSED)})),delete o.sharedWebSockets[t],a.getSubscribers(t).forEach((function(t){var n,r;if(t.optionsRef.current.shouldReconnect&&t.optionsRef.current.shouldReconnect(e)){var o=null!==(n=t.optionsRef.current.reconnectAttempts)&&void 0!==n?n:i.DEFAULT_RECONNECT_LIMIT;t.reconnectCount.current<o?setTimeout((function(){t.reconnectCount.current++,t.reconnect.current()}),null!==(r=t.optionsRef.current.reconnectInterval)&&void 0!==r?r:i.DEFAULT_RECONNECT_INTERVAL_MS):(t.optionsRef.current.onReconnectStop&&t.optionsRef.current.onReconnectStop(t.optionsRef.current.reconnectAttempts),console.warn("Max reconnect attempts of "+o+" exceeded"))}}))})}(e,t),function(e,t){e.onopen=function(e){a.getSubscribers(t).forEach((function(t){t.reconnectCount.current=0,t.optionsRef.current.onOpen&&t.optionsRef.current.onOpen(e),t.setReadyState(i.ReadyState.OPEN)}))}}(e,t),function(e,t){e.onerror=function(n){a.getSubscribers(t).forEach((function(t){t.optionsRef.current.onError&&t.optionsRef.current.onError(n),i.isEventSourceSupported&&e instanceof EventSource&&(t.optionsRef.current.onClose&&t.optionsRef.current.onClose(r(r({},n),{code:1006,reason:"An error occurred with the EventSource: "+n,wasClean:!1})),t.setReadyState(i.ReadyState.CLOSED))})),i.isEventSourceSupported&&e instanceof EventSource&&e.close()}}(e,t),function(){c&&clearInterval(c)}}},91188:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEventSourceSupported=t.isReactNative=t.ReadyState=t.UNPARSABLE_JSON_OBJECT=t.DEFAULT_RECONNECT_INTERVAL_MS=t.DEFAULT_RECONNECT_LIMIT=t.SOCKET_IO_PING_CODE=t.SOCKET_IO_PATH=t.SOCKET_IO_PING_INTERVAL=t.DEFAULT_EVENT_SOURCE_OPTIONS=t.EMPTY_EVENT_HANDLERS=t.DEFAULT_OPTIONS=void 0;t.DEFAULT_OPTIONS={},t.EMPTY_EVENT_HANDLERS={},t.DEFAULT_EVENT_SOURCE_OPTIONS={withCredentials:!1,events:t.EMPTY_EVENT_HANDLERS},t.SOCKET_IO_PING_INTERVAL=25e3,t.SOCKET_IO_PATH="/socket.io/?EIO=3&transport=websocket",t.SOCKET_IO_PING_CODE="2",t.DEFAULT_RECONNECT_LIMIT=20,t.DEFAULT_RECONNECT_INTERVAL_MS=5e3,t.UNPARSABLE_JSON_OBJECT={},function(e){e[e.UNINSTANTIATED=-1]="UNINSTANTIATED",e[e.CONNECTING=0]="CONNECTING",e[e.OPEN=1]="OPEN",e[e.CLOSING=2]="CLOSING",e[e.CLOSED=3]="CLOSED"}(t.ReadyState||(t.ReadyState={}));t.isReactNative="undefined"!==typeof navigator&&"ReactNative"===navigator.product,t.isEventSourceSupported=!t.isReactNative&&function(){try{return"EventSource"in globalThis}catch(e){return!1}}()},33386:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createOrJoinSocket=void 0;var r=n(43746),o=n(91188),i=n(26631),a=n(9935),s=n(70948);t.createOrJoinSocket=function(e,t,n,l,c,u,d,p){if(!o.isEventSourceSupported&&l.current.eventSourceOptions)throw o.isReactNative?new Error("EventSource is not supported in ReactNative"):new Error("EventSource is not supported");if(l.current.share){var f=null;void 0===r.sharedWebSockets[t]?(r.sharedWebSockets[t]=l.current.eventSourceOptions?new EventSource(t,l.current.eventSourceOptions):new WebSocket(t,l.current.protocols),e.current=r.sharedWebSockets[t],n(o.ReadyState.CONNECTING),f=a.attachSharedListeners(r.sharedWebSockets[t],t,l,p)):(e.current=r.sharedWebSockets[t],n(r.sharedWebSockets[t].readyState));var h={setLastMessage:c,setReadyState:n,optionsRef:l,reconnectCount:d,reconnect:u};return s.addSubscriber(t,h),function(e,t,n,i,a){return function(){if(s.removeSubscriber(e,t),!s.hasSubscribers(e)){try{var l=r.sharedWebSockets[e];l instanceof WebSocket&&(l.onclose=function(e){n.current.onClose&&n.current.onClose(e),i(o.ReadyState.CLOSED)}),l.close()}catch(c){}a&&a(),delete r.sharedWebSockets[e]}}}(t,h,l,n,f)}if(e.current=l.current.eventSourceOptions?new EventSource(t,l.current.eventSourceOptions):new WebSocket(t,l.current.protocols),n(o.ReadyState.CONNECTING),!e.current)throw new Error("WebSocket failed to be created");return i.attachListeners(e.current,{setLastMessage:c,setReadyState:n},l,u.current,d,p)}},7387:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(s){i=[6,s],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.getUrl=void 0;var i=n(58382);t.getUrl=function(e,t){return r(void 0,void 0,void 0,(function(){var n,r;return o(this,(function(o){switch(o.label){case 0:return"function"!==typeof e?[3,2]:[4,e()];case 1:return n=o.sent(),[3,3];case 2:n=e,o.label=3;case 3:return r=t.current.fromSocketIO?i.parseSocketIOUrl(n):n,[2,t.current.queryParams?i.appendQueryParams(r,t.current.queryParams):r]}}))}))}},43746:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetWebSockets=t.sharedWebSockets=void 0,t.sharedWebSockets={},t.resetWebSockets=function(e){if(e&&t.sharedWebSockets.hasOwnProperty(e))delete t.sharedWebSockets[e];else for(var n in t.sharedWebSockets)t.sharedWebSockets.hasOwnProperty(n)&&delete t.sharedWebSockets[n]}},70948:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetSubscribers=t.removeSubscriber=t.addSubscriber=t.hasSubscribers=t.getSubscribers=void 0;var n={},r=[];t.getSubscribers=function(e){return t.hasSubscribers(e)?Array.from(n[e]):r},t.hasSubscribers=function(e){var t;return(null===(t=n[e])||void 0===t?void 0:t.size)>0},t.addSubscriber=function(e,t){n[e]=n[e]||new Set,n[e].add(t)},t.removeSubscriber=function(e,t){n[e].delete(t)},t.resetSubscribers=function(e){if(e&&n.hasOwnProperty(e))delete n[e];else for(var t in n)n.hasOwnProperty(t)&&delete n[t]}},77066:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.websocketWrapper=void 0,t.websocketWrapper=function(e,t){return new Proxy(e,{get:function(e,n){var r=e[n];return"reconnect"===n?t:"function"===typeof r?(console.error("Calling methods directly on the websocket is not supported at this moment. You must use the methods returned by useWebSocket."),function(){}):r},set:function(e,t,n){return/^on/.test(t)?(console.warn("The websocket's event handlers should be defined through the options object passed into useWebSocket."),!1):(e[t]=n,!0)}})},t.default=t.websocketWrapper},58382:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setUpSocketIOPing=t.appendQueryParams=t.parseSocketIOUrl=void 0;var r=n(91188);t.parseSocketIOUrl=function(e){if(e)return(t=/^https|wss/.test(e)?"wss":"ws")+"://"+e.replace(/^(https?|wss?)(:\/\/)?/,"").replace(/\/$/,"")+r.SOCKET_IO_PATH;if(""===e){var t=/^https/.test(window.location.protocol)?"wss":"ws",n=window.location.port?":"+window.location.port:"";return t+"://"+window.location.hostname+n+r.SOCKET_IO_PATH}return e},t.appendQueryParams=function(e,t){void 0===t&&(t={});return e+(/\?([\w]+=[\w]+)/.test(e)?"&":"?")+(""+Object.entries(t).reduce((function(e,t){return e+(t[0]+"=")+t[1]+"&"}),"").slice(0,-1))},t.setUpSocketIOPing=function(e,t){void 0===t&&(t=r.SOCKET_IO_PING_INTERVAL);return setInterval((function(){return e(r.SOCKET_IO_PING_CODE)}),t)}},41027:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__rest||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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.useEventSource=void 0;var i=n(30303),a=n(43578),s=n(91188);t.useEventSource=function(e,t,n){void 0===t&&(t=s.DEFAULT_EVENT_SOURCE_OPTIONS),void 0===n&&(n=!0);var l=t.withCredentials,c=t.events,u=o(t,["withCredentials","events"]),d=r(r({},u),{eventSourceOptions:{withCredentials:l}}),p=i.useRef(s.EMPTY_EVENT_HANDLERS);c&&(p.current=c);var f=a.useWebSocket(e,d,n),h=f.lastMessage,m=f.readyState,v=f.getWebSocket;return i.useEffect((function(){(null===h||void 0===h?void 0:h.type)&&Object.entries(p.current).forEach((function(e){var t=e[0],n=e[1];t===h.type&&n(h)}))}),[h]),{lastEvent:h,readyState:m,getEventSource:v}}},55772:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.useSocketIO=void 0;var o=n(30303),i=n(43578),a=n(91188),s={type:"empty",payload:null};t.useSocketIO=function(e,t,n){void 0===t&&(t=a.DEFAULT_OPTIONS),void 0===n&&(n=!0);var l=o.useMemo((function(){return r(r({},t),{fromSocketIO:!0})}),[]),c=i.useWebSocket(e,l,n),u=c.sendMessage,d=c.sendJsonMessage,p=c.lastMessage,f=c.readyState,h=c.getWebSocket,m=o.useMemo((function(){return function(e){if(!e||!e.data)return s;var t=e.data.match(/\[.*]/);if(!t)return s;var n=JSON.parse(t);return Array.isArray(n)&&n[1]?{type:n[0],payload:n[1]}:s}(p)}),[p]);return{sendMessage:u,sendJsonMessage:d,lastMessage:m,lastJsonMessage:m,readyState:f,getWebSocket:h}}},43578:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(s){i=[6,s],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useWebSocket=void 0;var s=n(30303),l=n(91188),c=n(33386),u=n(7387),d=a(n(77066)),p=n(24189);t.useWebSocket=function(e,t,n){void 0===t&&(t=l.DEFAULT_OPTIONS),void 0===n&&(n=!0);var a=s.useState(null),f=a[0],h=a[1],m=s.useState({}),v=m[0],g=m[1],y=s.useMemo((function(){if(f)try{return JSON.parse(f.data)}catch(e){return l.UNPARSABLE_JSON_OBJECT}return null}),[f]),b=s.useRef(null),x=s.useRef(null),w=s.useRef((function(){})),C=s.useRef(0),j=s.useRef([]),S=s.useRef(null),k=s.useRef(t);k.current=t;var Z=b.current&&void 0!==v[b.current]?v[b.current]:null!==e&&!0===n?l.ReadyState.CONNECTING:l.ReadyState.UNINSTANTIATED,O=t.queryParams?JSON.stringify(t.queryParams):null,E=s.useCallback((function(e,t){var n;void 0===t&&(t=!0),l.isEventSourceSupported&&x.current instanceof EventSource?console.warn("Unable to send a message from an eventSource"):(null===(n=x.current)||void 0===n?void 0:n.readyState)===l.ReadyState.OPEN?(p.assertIsWebSocket(x.current),x.current.send(e)):t&&j.current.push(e)}),[]),D=s.useCallback((function(e,t){void 0===t&&(t=!0),E(JSON.stringify(e),t)}),[E]),P=s.useCallback((function(){return!0!==k.current.share||l.isEventSourceSupported&&x.current instanceof EventSource?x.current:(null===S.current&&x.current&&(p.assertIsWebSocket(x.current),S.current=d.default(x.current,w)),S.current)}),[]);return s.useEffect((function(){if(null!==e&&!0===n){var t,a=!1,s=function(){return o(void 0,void 0,void 0,(function(){var n,o,s;return i(this,(function(i){switch(i.label){case 0:return n=b,[4,u.getUrl(e,k)];case 1:return n.current=i.sent(),o=function(e){a||h(e)},s=function(e){a||g((function(t){var n;return r(r({},t),b.current&&((n={})[b.current]=e,n))}))},t=c.createOrJoinSocket(x,b.current,s,k,o,w,C,E),[2]}}))}))};return w.current=function(){a||(S.current&&(S.current=null),null===t||void 0===t||t(),s())},s(),function(){a=!0,S.current&&(S.current=null),null===t||void 0===t||t(),h(null)}}null!==e&&!1!==n||(C.current=0,g((function(e){var t;return r(r({},e),b.current&&((t={})[b.current]=l.ReadyState.CLOSED,t))})))}),[e,n,O,E]),s.useEffect((function(){Z===l.ReadyState.OPEN&&j.current.splice(0).forEach((function(e){E(e)}))}),[Z]),{sendMessage:E,sendJsonMessage:D,lastMessage:f,lastJsonMessage:y,readyState:Z,getWebSocket:P}}},24189:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetGlobalState=t.assertIsWebSocket=void 0;var r=n(43746),o=n(70948);t.assertIsWebSocket=function(e){if(e instanceof WebSocket===!1)throw new Error("")},t.resetGlobalState=function(e){o.resetSubscribers(e),r.resetWebSockets(e)}},58065:function(e,t,n){"use strict";n(78424);var r=n(30303),o=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:a.current}}t.jsx=c,t.jsxs=c},37561:function(e,t,n){"use strict";var r=n(78424),o=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,s=60110,l=60112;t.Suspense=60113;var c=60115,u=60116;if("function"===typeof Symbol&&Symbol.for){var d=Symbol.for;o=d("react.element"),i=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),a=d("react.provider"),s=d("react.context"),l=d("react.forward_ref"),t.Suspense=d("react.suspense"),c=d("react.memo"),u=d("react.lazy")}var p="function"===typeof Symbol&&Symbol.iterator;function f(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function g(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(f(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=v.prototype;var b=y.prototype=new g;b.constructor=y,r(b,v.prototype),b.isPureReactComponent=!0;var x={current:null},w=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function j(e,t,n){var r,i={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,r)&&!C.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:x.current}}function S(e){return"object"===typeof e&&null!==e&&e.$$typeof===o}var k=/\/+/g;function Z(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function O(e,t,n,r,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case o:case i:l=!0}}if(l)return a=a(l=e),e=""===r?"."+Z(l,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(k,"$&/")+"/"),O(a,t,n,"",(function(e){return e}))):null!=a&&(S(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(k,"$&/")+"/")+e)),t.push(a)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var c=0;c<e.length;c++){var u=r+Z(s=e[c],c);l+=O(s,t,n,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=O(s=s.value,t,n,u=r+Z(s,c++),a);else if("object"===s)throw t=""+e,Error(f(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function E(e,t,n){if(null==e)return e;var r=[],o=0;return O(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function D(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var P={current:null};function A(){var e=P.current;if(null===e)throw Error(f(321));return e}var M={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:x,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:E,forEach:function(e,t,n){E(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return E(e,(function(){t++})),t},toArray:function(e){return E(e,(function(e){return e}))||[]},only:function(e){if(!S(e))throw Error(f(143));return e}},t.Component=v,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(f(267,e));var i=r({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=x.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)w.call(t,u)&&!C.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){c=Array(u);for(var d=0;d<u;d++)c[d]=arguments[d+2];i.children=c}return{$$typeof:o,type:e.type,key:a,ref:s,props:i,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=j,t.createFactory=function(e){var t=j.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:D}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return A().useCallback(e,t)},t.useContext=function(e,t){return A().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return A().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return A().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return A().useLayoutEffect(e,t)},t.useMemo=function(e,t){return A().useMemo(e,t)},t.useReducer=function(e,t,n){return A().useReducer(e,t,n)},t.useRef=function(e){return A().useRef(e)},t.useState=function(e){return A().useState(e)},t.version="17.0.2"},30303:function(e,t,n){"use strict";e.exports=n(37561)},27241:function(e,t,n){"use strict";e.exports=n(58065)},86455:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(85915)),o=n(49463),i=s(n(63403)),a=s(n(62843));function s(e){return e&&e.__esModule?e:{default:e}}var l=/((?:\-[a-z]+\-)?calc)/;t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;return(0,r.default)(e).walk((function(e){if("function"===e.type&&l.test(e.value)){var n=r.default.stringify(e.nodes);if(!(n.indexOf("constant")>=0||n.indexOf("env")>=0)){var s=o.parser.parse(n),c=(0,i.default)(s,t);e.type="word",e.value=(0,a.default)(e.value,c,t)}}}),!0).toString()},e.exports=t.default},13624:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(35339),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(e,t,n){switch(e.type){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":return function(e,t,n){t.type===e.type&&(t={type:e.type,value:(0,i.default)(t.value,t.unit,e.unit,n),unit:e.unit});return{left:e,right:t}}(e,t,n);default:return{left:e,right:t}}},e.exports=t.default},63403:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flip=c;var r,o=n(13624),i=(r=o)&&r.__esModule?r:{default:r};function a(e,t){return"MathExpression"===e.type?function(e,t){switch(e=function(e,t){var n=(0,i.default)(e.left,e.right,t),r=a(n.left,t),o=a(n.right,t);"MathExpression"===r.type&&"MathExpression"===o.type&&("/"===r.operator&&"*"===o.operator||"-"===r.operator&&"+"===o.operator||"*"===r.operator&&"/"===o.operator||"+"===r.operator&&"-"===o.operator)&&(s(r.right,o.right)?n=(0,i.default)(r.left,o.left,t):s(r.right,o.left)&&(n=(0,i.default)(r.left,o.right,t)),r=a(n.left,t),o=a(n.right,t));return e.left=r,e.right=o,e}(e,t),e.operator){case"+":case"-":return function(e,t){var n=e,r=n.left,o=n.right,i=n.operator;if("CssVariable"===r.type||"CssVariable"===o.type)return e;if(0===o.value)return r;if(0===r.value&&"+"===i)return o;if(0===r.value&&"-"===i)return u(o);r.type===o.type&&l(r.type)&&((e=Object.assign({},r)).value="+"===i?r.value+o.value:r.value-o.value);if(l(r.type)&&("+"===o.operator||"-"===o.operator)&&"MathExpression"===o.type){if(r.type===o.left.type)return(e=Object.assign({},e)).left=a({type:"MathExpression",operator:i,left:r,right:o.left},t),e.right=o.right,e.operator="-"===i?c(o.operator):o.operator,a(e,t);if(r.type===o.right.type)return(e=Object.assign({},e)).left=a({type:"MathExpression",operator:"-"===i?c(o.operator):o.operator,left:r,right:o.right},t),e.right=o.left,a(e,t)}if("MathExpression"===r.type&&("+"===r.operator||"-"===r.operator)&&l(o.type)){if(o.type===r.left.type)return(e=Object.assign({},r)).left=a({type:"MathExpression",operator:i,left:r.left,right:o},t),a(e,t);if(o.type===r.right.type)return e=Object.assign({},r),"-"===r.operator?(e.right=a({type:"MathExpression",operator:"-"===i?"+":"-",left:o,right:r.right},t),e.operator="-"===i?"-":"+"):e.right=a({type:"MathExpression",operator:i,left:r.right,right:o},t),e.right.value<0&&(e.right.value*=-1,e.operator="-"===e.operator?"+":"-"),a(e,t)}return e}(e,t);case"/":return function(e,t){if(!l(e.right.type))return e;if("Value"!==e.right.type)throw new Error('Cannot divide by "'+e.right.unit+'", number expected');if(0===e.right.value)throw new Error("Cannot divide by zero");if("MathExpression"===e.left.type)return l(e.left.left.type)&&l(e.left.right.type)?(e.left.left.value/=e.right.value,e.left.right.value/=e.right.value,a(e.left,t)):e;if(l(e.left.type))return e.left.value/=e.right.value,e.left;return e}(e,t);case"*":return function(e){if("MathExpression"===e.left.type&&"Value"===e.right.type){if(l(e.left.left.type)&&l(e.left.right.type))return e.left.left.value*=e.right.value,e.left.right.value*=e.right.value,e.left}else{if(l(e.left.type)&&"Value"===e.right.type)return e.left.value*=e.right.value,e.left;if("Value"===e.left.type&&"MathExpression"===e.right.type){if(l(e.right.left.type)&&l(e.right.right.type))return e.right.left.value*=e.left.value,e.right.right.value*=e.left.value,e.right}else if("Value"===e.left.type&&l(e.right.type))return e.right.value*=e.left.value,e.right}return e}(e)}return e}(e,t):"Calc"===e.type?a(e.value,t):e}function s(e,t){return e.type===t.type&&e.value===t.value}function l(e){switch(e){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":case"EmValue":case"ExValue":case"ChValue":case"RemValue":case"VhValue":case"VwValue":case"VminValue":case"VmaxValue":case"PercentageValue":case"Value":return!0}return!1}function c(e){return"+"===e?"-":"+"}function u(e){return l(e.type)?e.value=-e.value:"MathExpression"==e.type&&(e.left=u(e.left),e.right=u(e.right)),e}t.default=a},62843:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=a(t,n);return"MathExpression"===t.type&&(r=e+"("+r+")"),r};var r=n(63403),o={"*":0,"/":0,"+":1,"-":1};function i(e,t){if(!1!==t){var n=Math.pow(10,t);return Math.round(e*n)/n}return e}function a(e,t){switch(e.type){case"MathExpression":var n=e.left,s=e.right,l=e.operator,c="";return"MathExpression"===n.type&&o[l]<o[n.operator]?c+="("+a(n,t)+")":c+=a(n,t),c+=" "+e.operator+" ","MathExpression"===s.type&&o[l]<o[s.operator]?c+="("+a(s,t)+")":"MathExpression"===s.type&&"-"===l&&["+","-"].includes(s.operator)?(s.operator=(0,r.flip)(s.operator),c+=a(s,t)):c+=a(s,t),c;case"Value":return i(e.value,t);case"CssVariable":return e.fallback?"var("+e.value+", "+a(e.fallback,t)+")":"var("+e.value+")";case"Calc":return e.prefix?"-"+e.prefix+"-calc("+a(e.value,t)+")":"calc("+a(e.value,t)+")";default:return i(e.value,t)+e.unit}}e.exports=t.default},49463:function(e,t){var n=function(){function e(e,t){var n;if(Object.defineProperty(this,"name",{enumerable:!1,writable:!1,value:"JisonParserError"}),null==e&&(e="???"),Object.defineProperty(this,"message",{enumerable:!1,writable:!0,value:e}),this.hash=t,t&&t.exception instanceof Error){var r=t.exception;this.message=r.message||e,n=r.stack}n||(Error.hasOwnProperty("captureStackTrace")?Error.captureStackTrace(this,this.constructor):n=new Error(e).stack),n&&Object.defineProperty(this,"stack",{enumerable:!1,writable:!1,value:n})}function t(e,t,n){n=n||0;for(var r=0;r<t;r++)this.push(e),e+=n}function n(e,t){for(t+=e=this.length-e;e<t;e++)this.push(this[e])}function r(e){for(var t=[],n=0,r=e.length;n<r;n++){var o=e[n];"function"===typeof o?(n++,o.apply(t,e[n])):t.push(o)}return t}"function"===typeof Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,Error.prototype):e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e.prototype.name="JisonParserError";var o={trace:function(){},JisonParserError:e,yy:{},options:{type:"lalr",hasPartialLrUpgradeOnConflict:!0,errorRecoveryTokenDiscardCount:3},symbols_:{$accept:0,$end:1,ADD:3,ANGLE:16,CHS:22,COMMA:14,CSS_CPROP:13,CSS_VAR:12,DIV:6,EMS:20,EOF:1,EXS:21,FREQ:18,LENGTH:15,LPAREN:7,MUL:5,NESTED_CALC:9,NUMBER:11,PERCENTAGE:28,PREFIX:10,REMS:23,RES:19,RPAREN:8,SUB:4,TIME:17,VHS:24,VMAXS:27,VMINS:26,VWS:25,css_value:33,css_variable:32,error:2,expression:29,math_expression:30,value:31},terminals_:{1:"EOF",2:"error",3:"ADD",4:"SUB",5:"MUL",6:"DIV",7:"LPAREN",8:"RPAREN",9:"NESTED_CALC",10:"PREFIX",11:"NUMBER",12:"CSS_VAR",13:"CSS_CPROP",14:"COMMA",15:"LENGTH",16:"ANGLE",17:"TIME",18:"FREQ",19:"RES",20:"EMS",21:"EXS",22:"CHS",23:"REMS",24:"VHS",25:"VWS",26:"VMINS",27:"VMAXS",28:"PERCENTAGE"},TERROR:2,EOF:1,originalQuoteName:null,originalParseError:null,cleanupAfterParse:null,constructParseErrorInfo:null,yyMergeLocationInfo:null,__reentrant_call_depth:0,__error_infos:[],__error_recovery_infos:[],quoteName:function(e){return'"'+e+'"'},getSymbolName:function(e){if(this.terminals_[e])return this.terminals_[e];var t=this.symbols_;for(var n in t)if(t[n]===e)return n;return null},describeSymbol:function(e){if(e!==this.EOF&&this.terminal_descriptions_&&this.terminal_descriptions_[e])return this.terminal_descriptions_[e];if(e===this.EOF)return"end of input";var t=this.getSymbolName(e);return t?this.quoteName(t):null},collect_expected_token_set:function(e,t){var n=this.TERROR,r=[],o={};if(!t&&this.state_descriptions_&&this.state_descriptions_[e])return[this.state_descriptions_[e]];for(var i in this.table[e])if((i=+i)!==n){var a=t?i:this.describeSymbol(i);a&&!o[a]&&(r.push(a),o[a]=!0)}return r},productions_:function(e){for(var t=[],n=e.pop,r=e.rule,o=0,i=n.length;o<i;o++)t.push([n[o],r[o]]);return t}({pop:r([29,t,[30,10],31,31,32,32,t,[33,15]]),rule:r([2,t,[3,5],4,7,t,[1,4],2,4,6,t,[1,14],2])}),performAction:function(e,t,n){var r=this.yy;r.parser,r.lexer;switch(e){case 0:case 6:this.$=n[t-1];break;case 1:return this.$=n[t-1],n[t-1];case 2:case 3:case 4:case 5:this.$={type:"MathExpression",operator:n[t-1],left:n[t-2],right:n[t]};break;case 7:this.$={type:"Calc",value:n[t-1]};break;case 8:this.$={type:"Calc",value:n[t-1],prefix:n[t-5]};break;case 9:case 10:case 11:this.$=n[t];break;case 12:this.$={type:"Value",value:parseFloat(n[t])};break;case 13:this.$={type:"Value",value:-1*parseFloat(n[t])};break;case 14:this.$={type:"CssVariable",value:n[t-1]};break;case 15:this.$={type:"CssVariable",value:n[t-3],fallback:n[t-1]};break;case 16:this.$={type:"LengthValue",value:parseFloat(n[t]),unit:/[a-z]+/.exec(n[t])[0]};break;case 17:this.$={type:"AngleValue",value:parseFloat(n[t]),unit:/[a-z]+/.exec(n[t])[0]};break;case 18:this.$={type:"TimeValue",value:parseFloat(n[t]),unit:/[a-z]+/.exec(n[t])[0]};break;case 19:this.$={type:"FrequencyValue",value:parseFloat(n[t]),unit:/[a-z]+/.exec(n[t])[0]};break;case 20:this.$={type:"ResolutionValue",value:parseFloat(n[t]),unit:/[a-z]+/.exec(n[t])[0]};break;case 21:this.$={type:"EmValue",value:parseFloat(n[t]),unit:"em"};break;case 22:this.$={type:"ExValue",value:parseFloat(n[t]),unit:"ex"};break;case 23:this.$={type:"ChValue",value:parseFloat(n[t]),unit:"ch"};break;case 24:this.$={type:"RemValue",value:parseFloat(n[t]),unit:"rem"};break;case 25:this.$={type:"VhValue",value:parseFloat(n[t]),unit:"vh"};break;case 26:this.$={type:"VwValue",value:parseFloat(n[t]),unit:"vw"};break;case 27:this.$={type:"VminValue",value:parseFloat(n[t]),unit:"vmin"};break;case 28:this.$={type:"VmaxValue",value:parseFloat(n[t]),unit:"vmax"};break;case 29:this.$={type:"PercentageValue",value:parseFloat(n[t]),unit:"%"};break;case 30:var o=n[t];o.value*=-1,this.$=o}},table:function(e){for(var t=[],n=e.len,r=e.symbol,o=e.type,i=e.state,a=e.mode,s=e.goto,l=0,c=n.length;l<c;l++){for(var u=n[l],d={},p=0;p<u;p++){var f=r.shift();switch(o.shift()){case 2:d[f]=[a.shift(),s.shift()];break;case 0:d[f]=i.shift();break;default:d[f]=[3]}}t.push(d)}return t}({len:r([24,1,5,23,1,18,t,[0,3],1,t,[0,16],t,[23,4],n,[28,3],0,0,16,1,6,6,t,[0,3],5,1,2,n,[37,3],n,[20,3],5,0,0]),symbol:r([4,7,9,11,12,t,[15,19,1],1,1,t,[3,4,1],n,[30,19],n,[29,4],7,4,10,11,n,[22,14],n,[19,3],n,[43,22],n,[23,69],n,[139,4],8,n,[51,24],4,n,[138,15],13,n,[186,5],8,n,[6,6],n,[5,5],9,8,14,n,[159,47],n,[60,10]]),type:r([t,[2,19],t,[0,5],1,t,[2,24],t,[0,4],n,[22,19],n,[43,42],n,[23,70],n,[28,25],n,[45,25],n,[113,54]]),state:r([1,2,8,6,7,30,n,[4,3],33,37,n,[5,3],38,n,[4,3],39,n,[4,3],40,n,[4,3],42,n,[21,4],50,n,[5,3],51,n,[4,3]]),mode:r([t,[1,179],t,[2,3],n,[5,5],n,[6,4],t,[1,57]]),goto:r([5,3,4,24,t,[9,15,1],t,[25,5,1],n,[24,19],31,35,32,34,n,[18,14],36,n,[38,19],n,[19,57],n,[118,4],41,n,[24,19],43,35,n,[16,14],44,t,[2,3],28,29,2,t,[3,3],28,29,3,n,[53,4],t,[45,5,1],n,[100,42],52,n,[5,4],53])}),defaultActions:function(e){for(var t={},n=e.idx,r=e.goto,o=0,i=n.length;o<i;o++){t[n[o]]=r[o]}return t}({idx:r([6,7,8,t,[10,16,1],33,34,39,40,41,45,47,52,53]),goto:r([9,10,11,t,[16,14,1],12,1,30,13,t,[4,4,1],14,15,8])}),parseError:function(e,t,n){if(!t.recoverable)throw"function"===typeof this.trace&&this.trace(e),n||(n=this.JisonParserError),new n(e,t);"function"===typeof this.trace&&this.trace(e),t.destroy()},parse:function(e){var t,n=this,r=new Array(128),o=new Array(128),i=new Array(128),a=this.table,s=0,l=0,c=(this.TERROR,this.EOF),u=(this.options.errorRecoveryTokenDiscardCount,[0,54]);t=this.__lexer__?this.__lexer__:this.__lexer__=Object.create(this.lexer);var d={parseError:void 0,quoteName:void 0,lexer:void 0,parser:void 0,pre_parse:void 0,post_parse:void 0,pre_lex:void 0,post_lex:void 0};function p(){var e=t.fastLex();return"number"!==typeof e&&(e=n.symbols_[e]||e),e||c}"function"!==typeof assert||assert,this.yyGetSharedState=function(){return d},function(e,t){for(var n in t)"undefined"===typeof e[n]&&Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}(d,this.yy),d.lexer=t,d.parser=this,"function"===typeof d.parseError?this.parseError=function(e,t,n){return n||(n=this.JisonParserError),d.parseError.call(this,e,t,n)}:this.parseError=this.originalParseError,"function"===typeof d.quoteName?this.quoteName=function(e){return d.quoteName.call(this,e)}:this.quoteName=this.originalQuoteName,this.cleanupAfterParse=function(e,n,a){var l,c;n&&((d.post_parse||this.post_parse)&&(c=this.constructParseErrorInfo(null,null,null,!1)),d.post_parse&&"undefined"!==typeof(l=d.post_parse.call(this,d,e,c))&&(e=l),this.post_parse&&"undefined"!==typeof(l=this.post_parse.call(this,d,e,c))&&(e=l),c&&c.destroy&&c.destroy());if(this.__reentrant_call_depth>1)return e;if(t.cleanupAfterLex&&t.cleanupAfterLex(a),d&&(d.lexer=void 0,d.parser=void 0,t.yy===d&&(t.yy=void 0)),d=void 0,this.parseError=this.originalParseError,this.quoteName=this.originalQuoteName,r.length=0,o.length=0,i.length=0,s=0,!a){for(var u=this.__error_infos.length-1;u>=0;u--){var p=this.__error_infos[u];p&&"function"===typeof p.destroy&&p.destroy()}this.__error_infos.length=0}return e},this.constructParseErrorInfo=function(e,n,a,c){var u={errStr:e,exception:n,text:t.match,value:t.yytext,token:this.describeSymbol(l)||l,token_id:l,line:t.yylineno,expected:a,recoverable:c,state:f,action:h,new_state:x,symbol_stack:r,state_stack:o,value_stack:i,stack_pointer:s,yy:d,lexer:t,parser:this,destroy:function(){var e=!!this.recoverable;for(var t in this)this.hasOwnProperty(t)&&"object"===typeof t&&(this[t]=void 0);this.recoverable=e}};return this.__error_infos.push(u),u};var f,h,m,v,g,y,b,x,w=function(){var e=t.lex();return"number"!==typeof e&&(e=n.symbols_[e]||e),e||c},C={$:!0,_$:void 0,yy:d},j=!1;try{if(this.__reentrant_call_depth++,t.setInput(e,d),"function"===typeof t.canIUse)t.canIUse().fastLex&&(w=p);for(i[s]=null,o[s]=0,r[s]=0,++s,this.pre_parse&&this.pre_parse.call(this,d),d.pre_parse&&d.pre_parse.call(this,d),x=o[s-1];;){if(f=x,this.defaultActions[f])h=2,x=this.defaultActions[f];else if(l||(l=w()),v=a[f]&&a[f][l]||u,x=v[1],!(h=v[0])){var S,k=this.describeSymbol(l)||l,Z=this.collect_expected_token_set(f);S="number"===typeof t.yylineno?"Parse error on line "+(t.yylineno+1)+": ":"Parse error: ","function"===typeof t.showPosition&&(S+="\n"+t.showPosition(69,10)+"\n"),Z.length?S+="Expecting "+Z.join(", ")+", got unexpected "+k:S+="Unexpected "+k,g=this.constructParseErrorInfo(S,null,Z,!1),"undefined"!==typeof(m=this.parseError(g.errStr,g,this.JisonParserError))&&(j=m);break}switch(h){default:if(h instanceof Array){g=this.constructParseErrorInfo("Parse Error: multiple actions possible at state: "+f+", token: "+l,null,null,!1),"undefined"!==typeof(m=this.parseError(g.errStr,g,this.JisonParserError))&&(j=m);break}g=this.constructParseErrorInfo("Parsing halted. No viable error recovery approach available due to internal system failure.",null,null,!1),"undefined"!==typeof(m=this.parseError(g.errStr,g,this.JisonParserError))&&(j=m);break;case 1:r[s]=l,i[s]=t.yytext,o[s]=x,++s,l=0;continue;case 2:if(y=(b=this.productions_[x-1])[1],"undefined"!==typeof(m=this.performAction.call(C,x,s-1,i))){j=m;break}s-=y;var O=b[0];r[s]=O,i[s]=C.$,x=a[o[s-1]][O],o[s]=x,++s;continue;case 3:-2!==s&&(j=!0,s--,"undefined"!==typeof i[s]&&(j=i[s]))}break}}catch(E){if(E instanceof this.JisonParserError)throw E;if(t&&"function"===typeof t.JisonLexerError&&E instanceof t.JisonLexerError)throw E;g=this.constructParseErrorInfo("Parsing aborted due to exception.",E,null,!1),j=!1,"undefined"!==typeof(m=this.parseError(g.errStr,g,this.JisonParserError))&&(j=m)}finally{j=this.cleanupAfterParse(j,!0,!0),this.__reentrant_call_depth--}return j}};o.originalParseError=o.parseError,o.originalQuoteName=o.quoteName;var i=function(){function e(e,t){var n;if(Object.defineProperty(this,"name",{enumerable:!1,writable:!1,value:"JisonLexerError"}),null==e&&(e="???"),Object.defineProperty(this,"message",{enumerable:!1,writable:!0,value:e}),this.hash=t,t&&t.exception instanceof Error){var r=t.exception;this.message=r.message||e,n=r.stack}n||(Error.hasOwnProperty("captureStackTrace")?Error.captureStackTrace(this,this.constructor):n=new Error(e).stack),n&&Object.defineProperty(this,"stack",{enumerable:!1,writable:!1,value:n})}"function"===typeof Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,Error.prototype):e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e.prototype.name="JisonLexerError";var t={EOF:1,ERROR:2,__currentRuleSet__:null,__error_infos:[],__decompressed:!1,done:!1,_backtrack:!1,_input:"",_more:!1,_signaled_error_token:!1,conditionStack:[],match:"",matched:"",matches:!1,yytext:"",offset:0,yyleng:0,yylineno:0,yylloc:null,constructLexErrorInfo:function(e,t,n){if(e=""+e,void 0==n&&(n=!(e.indexOf("\n")>0&&e.indexOf("^")>0)),this.yylloc&&n)if("function"===typeof this.prettyPrintRange){this.prettyPrintRange(this.yylloc);/\n\s*$/.test(e)||(e+="\n"),e+="\n  Erroneous area:\n"+this.prettyPrintRange(this.yylloc)}else if("function"===typeof this.showPosition){var r=this.showPosition();r&&(e.length&&"\n"!==e[e.length-1]&&"\n"!==r[0]?e+="\n"+r:e+=r)}var o={errStr:e,recoverable:!!t,text:this.match,token:null,line:this.yylineno,loc:this.yylloc,yy:this.yy,lexer:this,destroy:function(){var e=!!this.recoverable;for(var t in this)this.hasOwnProperty(t)&&"object"===typeof t&&(this[t]=void 0);this.recoverable=e}};return this.__error_infos.push(o),o},parseError:function(e,t,n){if(n||(n=this.JisonLexerError),this.yy){if(this.yy.parser&&"function"===typeof this.yy.parser.parseError)return this.yy.parser.parseError.call(this,e,t,n)||this.ERROR;if("function"===typeof this.yy.parseError)return this.yy.parseError.call(this,e,t,n)||this.ERROR}throw new n(e,t)},yyerror:function(e){var t="";this.yylloc&&(t=" on line "+(this.yylineno+1));var n=this.constructLexErrorInfo("Lexical error"+t+": "+e,this.options.lexerErrorsAreRecoverable),r=Array.prototype.slice.call(arguments,1);return r.length&&(n.extra_error_attributes=r),this.parseError(n.errStr,n,this.JisonLexerError)||this.ERROR},cleanupAfterLex:function(e){if(this.setInput("",{}),!e){for(var t=this.__error_infos.length-1;t>=0;t--){var n=this.__error_infos[t];n&&"function"===typeof n.destroy&&n.destroy()}this.__error_infos.length=0}return this},clear:function(){this.yytext="",this.yyleng=0,this.match="",this.matches=!1,this._more=!1,this._backtrack=!1;var e=this.yylloc?this.yylloc.last_column:0;this.yylloc={first_line:this.yylineno+1,first_column:e,last_line:this.yylineno+1,last_column:e,range:[this.offset,this.offset]}},setInput:function(e,t){if(this.yy=t||this.yy||{},!this.__decompressed){for(var n=this.rules,r=0,o=n.length;r<o;r++){"number"===typeof(p=n[r])&&(n[r]=n[p])}var i=this.conditions;for(var a in i){var s=i[a],l=s.rules,c=(o=l.length,new Array(o+1)),u=new Array(o+1);for(r=0;r<o;r++){var d=l[r],p=n[d];c[r+1]=p,u[r+1]=d}s.rules=u,s.__rule_regexes=c,s.__rule_count=o}this.__decompressed=!0}return this._input=e||"",this.clear(),this._signaled_error_token=!1,this.done=!1,this.yylineno=0,this.matched="",this.conditionStack=["INITIAL"],this.__currentRuleSet__=null,this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0,range:[0,0]},this.offset=0,this},editRemainingInput:function(e,t){var n=e.call(this,this._input,t);return"string"!==typeof n?n&&(this._input=""+n):this._input=n,this},input:function(){if(!this._input)return null;var e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=1,n=!1;if("\n"===e)n=!0;else if("\r"===e){n=!0;var r=this._input[1];"\n"===r&&(t++,e+=r,this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r,this.yylloc.range[1]++)}return n?(this.yylineno++,this.yylloc.last_line++,this.yylloc.last_column=0):this.yylloc.last_column++,this.yylloc.range[1]++,this._input=this._input.slice(t),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);if(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.yyleng=this.yytext.length,this.offset-=t,this.match=this.match.substr(0,this.match.length-t),this.matched=this.matched.substr(0,this.matched.length-t),n.length>1){this.yylineno-=n.length-1,this.yylloc.last_line=this.yylineno+1;var r=this.match,o=r.split(/(?:\r\n?|\n)/g);1===o.length&&(o=(r=this.matched).split(/(?:\r\n?|\n)/g)),this.yylloc.last_column=o[o.length-1].length}else this.yylloc.last_column-=t;return this.yylloc.range[1]=this.yylloc.range[0]+this.yyleng,this.done=!1,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else{var e="";this.yylloc&&(e=" on line "+(this.yylineno+1));var t=this.constructLexErrorInfo("Lexical error"+e+": You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).",!1);this._signaled_error_token=this.parseError(t.errStr,t,this.JisonLexerError)||this.ERROR}return this},less:function(e){return this.unput(this.match.slice(e))},pastInput:function(e,t){var n=this.matched.substring(0,this.matched.length-this.match.length);e<0?e=n.length:e||(e=20),t<0?t=n.length:t||(t=1);var r=(n=n.substr(2*-e-2)).replace(/\r\n|\r/g,"\n").split("\n");return(n=(r=r.slice(-t)).join("\n")).length>e&&(n="..."+n.substr(-e)),n},upcomingInput:function(e,t){var n=this.match;e<0?e=n.length+this._input.length:e||(e=20),t<0?t=e:t||(t=1),n.length<2*e+2&&(n+=this._input.substring(0,2*e+2));var r=n.replace(/\r\n|\r/g,"\n").split("\n");return(n=(r=r.slice(0,t)).join("\n")).length>e&&(n=n.substring(0,e)+"..."),n},showPosition:function(e,t){var n=this.pastInput(e).replace(/\s/g," "),r=new Array(n.length+1).join("-");return n+this.upcomingInput(t).replace(/\s/g," ")+"\n"+r+"^"},deriveLocationInfo:function(e,t,n,r){var o={first_line:1,first_column:0,last_line:1,last_column:0,range:[0,0]};return e&&(o.first_line=0|e.first_line,o.last_line=0|e.last_line,o.first_column=0|e.first_column,o.last_column=0|e.last_column,e.range&&(o.range[0]=0|e.range[0],o.range[1]=0|e.range[1])),(o.first_line<=0||o.last_line<o.first_line)&&(o.first_line<=0&&t&&(o.first_line=0|t.last_line,o.first_column=0|t.last_column,t.range&&(o.range[0]=0|e.range[1])),(o.last_line<=0||o.last_line<o.first_line)&&n&&(o.last_line=0|n.first_line,o.last_column=0|n.first_column,n.range&&(o.range[1]=0|e.range[0])),o.first_line<=0&&r&&(o.last_line<=0||r.last_line<=o.last_line)&&(o.first_line=0|r.first_line,o.first_column=0|r.first_column,r.range&&(o.range[0]=0|r.range[0])),o.last_line<=0&&r&&(o.first_line<=0||r.first_line>=o.first_line)&&(o.last_line=0|r.last_line,o.last_column=0|r.last_column,r.range&&(o.range[1]=0|r.range[1]))),o.last_line<=0&&(o.first_line<=0?(o.first_line=this.yylloc.first_line,o.last_line=this.yylloc.last_line,o.first_column=this.yylloc.first_column,o.last_column=this.yylloc.last_column,o.range[0]=this.yylloc.range[0],o.range[1]=this.yylloc.range[1]):(o.last_line=this.yylloc.last_line,o.last_column=this.yylloc.last_column,o.range[1]=this.yylloc.range[1])),o.first_line<=0&&(o.first_line=o.last_line,o.first_column=0,o.range[1]=o.range[0]),o.first_column<0&&(o.first_column=0),o.last_column<0&&(o.last_column=o.first_column>0?o.first_column:80),o},prettyPrintRange:function(e,t,n){e=this.deriveLocationInfo(e,t,n);var r=(this.matched+this._input).split("\n"),o=Math.max(1,t?t.first_line:e.first_line-3),i=Math.max(1,n?n.last_line:e.last_line+1),a=1+Math.log10(1|i)|0,s=new Array(a).join(" "),l=[],c=r.slice(o-1,i+1).map((function(t,n){var r=n+o,i=(s+r).substr(-a)+": "+t,c=new Array(a+1).join("^"),u=3,d=0;(r===e.first_line?(u+=e.first_column,d=Math.max(2,(r===e.last_line?e.last_column:t.length)-e.first_column+1)):r===e.last_line?d=Math.max(2,e.last_column+1):r>e.first_line&&r<e.last_line&&(d=Math.max(2,t.length+1)),d)&&(i+="\n"+c+new Array(u).join(".")+new Array(d).join("^"),t.trim().length>0&&l.push(n));return i=i.replace(/\t/g," ")}));if(l.length>4){var u=l[1]+1,d=l[l.length-2]-1,p=new Array(a+1).join(" ")+"  (...continued...)";p+="\n"+new Array(a+1).join("-")+"  (---------------)",c.splice(u,d-u+1,p)}return c.join("\n")},describeYYLLOC:function(e,t){var n,r=e.first_line,o=e.last_line,i=e.first_column,a=e.last_column;if(0===o-r?(n="line "+r+", ",n+=a-i<=1?"column "+i:"columns "+i+" .. "+a):n="lines "+r+"(column "+i+") .. "+o+"(column "+a+")",e.range&&t){var s=e.range[0],l=e.range[1]-1;n+=l<=s?" {String Offset: "+s+"}":" {String Offset range: "+s+" .. "+l+"}"}return n},test_match:function(e,t){var n,r,o,i,a;if(this.options.backtrack_lexer&&(o={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.yylloc.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column,range:this.yylloc.range.slice(0)},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done}),a=(i=e[0]).length,(r=i.split(/(?:\r\n?|\n)/g)).length>1?(this.yylineno+=r.length-1,this.yylloc.last_line=this.yylineno+1,this.yylloc.last_column=r[r.length-1].length):this.yylloc.last_column+=a,this.yytext+=i,this.match+=i,this.matched+=i,this.matches=e,this.yyleng=this.yytext.length,this.yylloc.range[1]+=a,this.offset+=a,this._more=!1,this._backtrack=!1,this._input=this._input.slice(a),n=this.performAction.call(this,this.yy,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var s in o)this[s]=o[s];return this.__currentRuleSet__=null,!1}return!!this._signaled_error_token&&(n=this._signaled_error_token,this._signaled_error_token=!1,n)},next:function(){if(this.done)return this.clear(),this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||this.clear();var o=this.__currentRuleSet__;if(!o&&(!(o=this.__currentRuleSet__=this._currentRules())||!o.rules)){var i="";this.options.trackPosition&&(i=" on line "+(this.yylineno+1));var a=this.constructLexErrorInfo("Internal lexer engine error"+i+': The lex grammar programmer pushed a non-existing condition name "'+this.topState()+'"; this is a fatal error and should be reported to the application programmer team!',!1);return this.parseError(a.errStr,a,this.JisonLexerError)||this.ERROR}for(var s=o.rules,l=o.__rule_regexes,c=o.__rule_count,u=1;u<=c;u++)if((n=this._input.match(l[u]))&&(!t||n[0].length>t[0].length)){if(t=n,r=u,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,s[u])))return e;if(this._backtrack){t=void 0;continue}return!1}if(!this.options.flex)break}if(t)return!1!==(e=this.test_match(t,s[r]))&&e;if(this._input){i="";this.options.trackPosition&&(i=" on line "+(this.yylineno+1));a=this.constructLexErrorInfo("Lexical error"+i+": Unrecognized text.",this.options.lexerErrorsAreRecoverable);var d=this._input,p=this.topState(),f=this.conditionStack.length;return(e=this.parseError(a.errStr,a,this.JisonLexerError)||this.ERROR)===this.ERROR&&(this.matches||d!==this._input||p!==this.topState()||f!==this.conditionStack.length||this.input()),e}return this.done=!0,this.clear(),this.EOF},lex:function(){var e;for("function"===typeof this.pre_lex&&(e=this.pre_lex.call(this,0)),"function"===typeof this.options.pre_lex&&(e=this.options.pre_lex.call(this,e)||e),this.yy&&"function"===typeof this.yy.pre_lex&&(e=this.yy.pre_lex.call(this,e)||e);!e;)e=this.next();return this.yy&&"function"===typeof this.yy.post_lex&&(e=this.yy.post_lex.call(this,e)||e),"function"===typeof this.options.post_lex&&(e=this.options.post_lex.call(this,e)||e),"function"===typeof this.post_lex&&(e=this.post_lex.call(this,e)||e),e},fastLex:function(){for(var e;!e;)e=this.next();return e},canIUse:function(){return{fastLex:!("function"===typeof this.pre_lex||"function"===typeof this.options.pre_lex||this.yy&&"function"===typeof this.yy.pre_lex||this.yy&&"function"===typeof this.yy.post_lex||"function"===typeof this.options.post_lex||"function"===typeof this.post_lex)&&"function"===typeof this.fastLex}},begin:function(e){return this.pushState(e)},pushState:function(e){return this.conditionStack.push(e),this.__currentRuleSet__=null,this},popState:function(){return this.conditionStack.length-1>0?(this.__currentRuleSet__=null,this.conditionStack.pop()):this.conditionStack[0]},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL},stateStackSize:function(){return this.conditionStack.length},options:{trackPosition:!0},JisonLexerError:e,performAction:function(e,t,n){if(1!==t)return this.simpleCaseActionClusters[t]},simpleCaseActionClusters:{0:13,2:5,3:6,4:3,5:4,6:15,7:15,8:15,9:15,10:15,11:15,12:16,13:16,14:16,15:16,16:17,17:17,18:18,19:18,20:19,21:19,22:19,23:20,24:21,25:22,26:23,27:25,28:24,29:26,30:27,31:28,32:11,33:9,34:12,35:10,36:7,37:8,38:14,39:1},rules:[/^(?:(--[\d\-A-Za-z]*))/,/^(?:\s+)/,/^(?:\*)/,/^(?:\/)/,/^(?:\+)/,/^(?:-)/,/^(?:(\d+(\.\d*)?|\.\d+)px\b)/,/^(?:(\d+(\.\d*)?|\.\d+)cm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)mm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)in\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pt\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pc\b)/,/^(?:(\d+(\.\d*)?|\.\d+)deg\b)/,/^(?:(\d+(\.\d*)?|\.\d+)grad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)turn\b)/,/^(?:(\d+(\.\d*)?|\.\d+)s\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ms\b)/,/^(?:(\d+(\.\d*)?|\.\d+)Hz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)kHz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpi\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpcm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dppx\b)/,/^(?:(\d+(\.\d*)?|\.\d+)em\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ex\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ch\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rem\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vw\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vh\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmin\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmax\b)/,/^(?:(\d+(\.\d*)?|\.\d+)%)/,/^(?:(\d+(\.\d*)?|\.\d+)\b)/,/^(?:(calc))/,/^(?:(var))/,/^(?:([a-z]+))/,/^(?:\()/,/^(?:\))/,/^(?:,)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],inclusive:!0}}};return t}();function a(){this.yy={}}return o.lexer=i,a.prototype=o,o.Parser=a,new a}();t.parser=n,t.Parser=n.Parser,t.parse=function(){return n.parse.apply(n,arguments)}},45715:function(e,t,n){"use strict";n.r(t);var r=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),o="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,i="undefined"!==typeof n.g&&n.g.Math===Math?n.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),a="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var s=["top","right","bottom","left","width","height","size","weight"],l="undefined"!==typeof MutationObserver,c=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function s(){a(i)}function l(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(s,t);o=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;s.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),u=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},d=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},p=y(0,0,0,0);function f(e){return parseFloat(e)||0}function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+f(e["border-"+n+"-width"])}),0)}function m(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var r=d(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=f(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,s=f(r.width),l=f(r.height);if("border-box"===r.boxSizing&&(Math.round(s+i)!==t&&(s-=h(r,"left","right")+i),Math.round(l+a)!==n&&(l-=h(r,"top","bottom")+a)),!function(e){return e===d(e).document.documentElement}(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return y(o.left,o.top,s,l)}var v="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof d(e).SVGGraphicsElement}:function(e){return e instanceof d(e).SVGElement&&"function"===typeof e.getBBox};function g(e){return o?v(e)?function(e){var t=e.getBBox();return y(0,0,t.width,t.height)}(e):m(e):p}function y(e,t,n,r){return{x:e,y:t,width:n,height:r}}var b=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=g(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),x=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,o=e.height,i="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return u(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}(t);u(this,{target:e,contentRect:n})},w=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new b(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new x(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),C="undefined"!==typeof WeakMap?new WeakMap:new r,j=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),r=new w(t,n,this);C.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){j.prototype[e]=function(){var t;return(t=C.get(this))[e].apply(t,arguments)}}));var S="undefined"!==typeof i.ResizeObserver?i.ResizeObserver:j;t.default=S},27198:function(e,t){"use strict";var n,r,o,i;if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var c=null,u=null,d=function e(){if(null!==c)try{var n=t.unstable_now();c(!0,n),c=null}catch(r){throw setTimeout(e,0),r}};n=function(e){null!==c?setTimeout(n,0,e):(c=e,setTimeout(d,0))},r=function(e,t){u=setTimeout(e,t)},o=function(){clearTimeout(u)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,f=window.clearTimeout;if("undefined"!==typeof console){var h=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,v=null,g=-1,y=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},i=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<e?Math.floor(1e3/e):5};var x=new MessageChannel,w=x.port2;x.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();b=e+y;try{v(!0,e)?w.postMessage(null):(m=!1,v=null)}catch(n){throw w.postMessage(null),n}}else m=!1},n=function(e){v=e,m||(m=!0,w.postMessage(null))},r=function(e,n){g=p((function(){e(t.unstable_now())}),n)},o=function(){f(g),g=-1}}function C(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<k(o,t)))break e;e[r]=t,e[n]=o,n=r}}function j(e){return void 0===(e=e[0])?null:e}function S(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],s=i+1,l=e[s];if(void 0!==a&&0>k(a,n))void 0!==l&&0>k(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==l&&0>k(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function k(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var Z=[],O=[],E=1,D=null,P=3,A=!1,M=!1,T=!1;function I(e){for(var t=j(O);null!==t;){if(null===t.callback)S(O);else{if(!(t.startTime<=e))break;S(O),t.sortIndex=t.expirationTime,C(Z,t)}t=j(O)}}function R(e){if(T=!1,I(e),!M)if(null!==j(Z))M=!0,n(F);else{var t=j(O);null!==t&&r(R,t.startTime-e)}}function F(e,n){M=!1,T&&(T=!1,o()),A=!0;var i=P;try{for(I(n),D=j(Z);null!==D&&(!(D.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=D.callback;if("function"===typeof a){D.callback=null,P=D.priorityLevel;var s=a(D.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?D.callback=s:D===j(Z)&&S(Z),I(n)}else S(Z);D=j(Z)}if(null!==D)var l=!0;else{var c=j(O);null!==c&&r(R,c.startTime-n),l=!1}return l}finally{D=null,P=i,A=!1}}var B=i;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){M||A||(M=!0,n(F))},t.unstable_getCurrentPriorityLevel=function(){return P},t.unstable_getFirstCallbackNode=function(){return j(Z)},t.unstable_next=function(e){switch(P){case 1:case 2:case 3:var t=3;break;default:t=P}var n=P;P=t;try{return e()}finally{P=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=P;P=e;try{return t()}finally{P=n}},t.unstable_scheduleCallback=function(e,i,a){var s=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?s+a:s:a=s,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:E++,callback:i,priorityLevel:e,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>s?(e.sortIndex=a,C(O,e),null===j(Z)&&e===j(O)&&(T?o():T=!0,r(R,a-s))):(e.sortIndex=l,C(Z,e),M||A||(M=!0,n(F))),e},t.unstable_wrapCallback=function(e){var t=P;return function(){var n=P;P=t;try{return e.apply(this,arguments)}finally{P=n}}}},71395:function(e,t,n){"use strict";e.exports=n(27198)},29746:function(e){var t=new Error("Element already at target scroll position"),n=new Error("Scroll cancelled"),r=Math.min,o=Date.now;function i(e){return function(i,l,c,u){"function"==typeof(c=c||{})&&(u=c,c={}),"function"!=typeof u&&(u=s);var d=o(),p=i[e],f=c.ease||a,h=isNaN(c.duration)?350:+c.duration,m=!1;return p===l?u(t,i[e]):requestAnimationFrame((function t(a){if(m)return u(n,i[e]);var s=o(),c=r(1,(s-d)/h),v=f(c);i[e]=v*(l-p)+p,c<1?requestAnimationFrame(t):requestAnimationFrame((function(){u(null,i[e])}))})),function(){m=!0}}}function a(e){return.5*(1-Math.cos(Math.PI*e))}function s(){}e.exports={left:i("scrollLeft"),top:i("scrollTop")}},20906:function(e,t){var n,r,o;r=[],void 0===(o="function"===typeof(n=function(){var e=/(auto|scroll)/,t=function e(t,n){return null===t.parentNode?n:e(t.parentNode,n.concat([t]))},n=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},r=function(e){return n(e,"overflow")+n(e,"overflow-y")+n(e,"overflow-x")},o=function(t){return e.test(r(t))};return function(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var n=t(e.parentNode,[]),r=0;r<n.length;r+=1)if(o(n[r]))return n[r];return document.scrollingElement||document.documentElement}}})?n.apply(t,r):n)||(e.exports=o)},38297:function(e){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var c=i[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(o=n?n.call(r,u,d,c):void 0)||void 0===o&&u!==d)return!1}return!0}},93250:function(e){!function(t){var n;function r(e,t){var n=e.charCodeAt(t);if(isNaN(n))throw new RangeError("Index "+t+' out of range for string "'+e+'"; please open an issue at https://github.com/Trott/slug/issues/new');if(n<55296||n>57343)return[e.charAt(t),t];if(n>=55296&&n<=56319){if(e.length<=t+1)return[" ",t];var r=e.charCodeAt(t+1);return r<56320||r>57343?[" ",t]:[e.charAt(t)+e.charAt(t+1),t+1]}if(0===t)return[" ",t];var o=e.charCodeAt(t-1);if(o<55296||o>56319)return[" ",t];throw new Error('String "'+e+'" reaches code believed to be unreachable; please open an issue at https://github.com/Trott/slug/issues/new')}function o(e,t){var i=s(e,t);if(!0===(t&&void 0!==t.fallback?t.fallback:o.defaults.fallback)&&""===i){for(var a="",l=0;l<e.length;l++){var c=r(e,l);l=c[1],a+=c[0]}i=s(n(a),t)}return i}n="undefined"!==typeof window?window.btoa?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){for(var t,n,r=unescape(encodeURIComponent(e+"")),o="",i=0,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.charAt(0|i)||(a="=",i%1);o+=a.charAt(63&t>>8-i%1*8)){if((n=r.charCodeAt(i+=3/4))>255)throw new Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");t=t<<8|n}return o}:function(e){return Buffer.from(e).toString("base64")};var i={bg:{"\u0419":"Y","\u0439":"y",X:"H",x:"h","\u0426":"Ts","\u0446":"ts","\u0429":"Sht","\u0449":"sht","\u042a":"A","\u044a":"a","\u042c":"Y","\u044c":"y"},de:{"\xc4":"AE","\xe4":"ae","\xd6":"OE","\xf6":"oe","\xdc":"UE","\xfc":"ue"},sr:{"\u0111":"dj","\u0110":"DJ"},uk:{"\u0418":"Y","\u0438":"y","\u0419":"Y","\u0439":"y","\u0426":"Ts","\u0446":"ts","\u0425":"Kh","\u0445":"kh","\u0429":"Shch","\u0449":"shch","\u0413":"H","\u0433":"h"}},a={};function s(e,t){if("string"!==typeof e)throw new Error("slug() requires a string argument, received "+typeof e);"string"===typeof t&&(t={replacement:t}),(t=t?Object.assign({},t):{}).mode=t.mode||o.defaults.mode;for(var n,r=o.defaults.modes[t.mode],s=["replacement","multicharmap","charmap","remove","lower","trim"],l=0,c=s.length;l<c;l++)t[n=s[l]]=n in t?t[n]:r[n];var u=i[t.locale]||a,d=[];for(var p in t.multicharmap)if(Object.prototype.hasOwnProperty.call(t.multicharmap,p)){var f=p.length;-1===d.indexOf(f)&&d.push(f)}d=d.sort((function(e,t){return t-e}));for(var h,m="rfc3986"===t.mode?/[^\w\s\-.~]/:/[^A-Za-z0-9\s]/,v="",g=0,y=e.length;g<y;g++){h=e[g];for(var b=!1,x=0;x<d.length;x++){var w=d[x],C=e.substr(g,w);if(t.multicharmap[C]){g+=w-1,h=t.multicharmap[C],b=!0;break}}b||(h=u[h]?u[h]:t.charmap[h]?t.charmap[h].replace(t.replacement," "):h.includes(t.replacement)?h.replace(t.replacement," "):h.replace(m,"")),v+=h}return t.remove&&(v=v.replace(t.remove,"")),t.trim&&(v=v.trim()),v=v.replace(/\s+/g,t.replacement),t.lower&&(v=v.toLowerCase()),v}var l={"\u092b\u093c":"Fi","\u0917\u093c":"Ghi","\u0916\u093c":"Khi","\u0915\u093c":"Qi","\u0921\u093c":"ugDha","\u0922\u093c":"ugDhha","\u092f\u093c":"Yi","\u091c\u093c":"Za","\u05d1\u05b4\u05d9":"i","\u05d1\u05b5":"e","\u05d1\u05b5\u05d9":"e","\u05d1\u05b6":"e","\u05d1\u05b7":"a","\u05d1\u05b8":"a","\u05d1\u05b9":"o","\u05d5\u05b9":"o","\u05d1\u05bb":"u","\u05d5\u05bc":"u","\u05d1\u05bc":"b","\u05db\u05bc":"k","\u05da\u05bc":"k","\u05e4\u05bc":"p","\u05e9\u05c1":"sh","\u05e9\u05c2":"s","\u05d1\u05b0":"e","\u05d7\u05b1":"e","\u05d7\u05b2":"a","\u05d7\u05b3":"o","\u05d1\u05b4":"i"},c={"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xc6":"AE","\xc7":"C","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xd0":"D","\xd1":"N","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\u0150":"O","\xd8":"O","\u014c":"O","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\u0170":"U","\xdd":"Y","\xde":"TH","\xdf":"ss","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xe6":"ae","\xe7":"c","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xf0":"d","\xf1":"n","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\u0151":"o","\xf8":"o","\u014d":"o","\u0152":"OE","\u0153":"oe","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\u0171":"u","\xfd":"y","\xfe":"th","\xff":"y","\u1e9e":"SS","\u03b1":"a","\u03b2":"b","\u03b3":"g","\u03b4":"d","\u03b5":"e","\u03b6":"z","\u03b7":"h","\u03b8":"th","\u03b9":"i","\u03ba":"k","\u03bb":"l","\u03bc":"m","\u03bd":"n","\u03be":"3","\u03bf":"o","\u03c0":"p","\u03c1":"r","\u03c3":"s","\u03c4":"t","\u03c5":"y","\u03c6":"f","\u03c7":"x","\u03c8":"ps","\u03c9":"w","\u03ac":"a","\u03ad":"e","\u03af":"i","\u03cc":"o","\u03cd":"y","\u03ae":"h","\u03ce":"w","\u03c2":"s","\u03ca":"i","\u03b0":"y","\u03cb":"y","\u0390":"i","\u0391":"A","\u0392":"B","\u0393":"G","\u0394":"D","\u0395":"E","\u0396":"Z","\u0397":"H","\u0398":"Th","\u0399":"I","\u039a":"K","\u039b":"L","\u039c":"M","\u039d":"N","\u039e":"3","\u039f":"O","\u03a0":"P","\u03a1":"R","\u03a3":"S","\u03a4":"T","\u03a5":"Y","\u03a6":"F","\u03a7":"X","\u03a8":"PS","\u03a9":"W","\u0386":"A","\u0388":"E","\u038a":"I","\u038c":"O","\u038e":"Y","\u0389":"H","\u038f":"W","\u03aa":"I","\u03ab":"Y","\u015f":"s","\u015e":"S","\u0131":"i","\u0130":"I","\u011f":"g","\u011e":"G","\u0430":"a","\u0431":"b","\u0432":"v","\u0433":"g","\u0434":"d","\u0435":"e","\u0451":"yo","\u0436":"zh","\u0437":"z","\u0438":"i","\u0439":"j","\u043a":"k","\u043b":"l","\u043c":"m","\u043d":"n","\u043e":"o","\u043f":"p","\u0440":"r","\u0441":"s","\u0442":"t","\u0443":"u","\u0444":"f","\u0445":"h","\u0446":"c","\u0447":"ch","\u0448":"sh","\u0449":"sh","\u044a":"u","\u044b":"y","\u044c":"","\u044d":"e","\u044e":"yu","\u044f":"ya","\u0410":"A","\u0411":"B","\u0412":"V","\u0413":"G","\u0414":"D","\u0415":"E","\u0401":"Yo","\u0416":"Zh","\u0417":"Z","\u0418":"I","\u0419":"J","\u041a":"K","\u041b":"L","\u041c":"M","\u041d":"N","\u041e":"O","\u041f":"P","\u0420":"R","\u0421":"S","\u0422":"T","\u0423":"U","\u0424":"F","\u0425":"H","\u0426":"C","\u0427":"Ch","\u0428":"Sh","\u0429":"Sh","\u042a":"U","\u042b":"Y","\u042c":"","\u042d":"E","\u042e":"Yu","\u042f":"Ya","\u0404":"Ye","\u0406":"I","\u0407":"Yi","\u0490":"G","\u0454":"ye","\u0456":"i","\u0457":"yi","\u0491":"g","\u010d":"c","\u010f":"d","\u011b":"e","\u0148":"n","\u0159":"r","\u0161":"s","\u0165":"t","\u016f":"u","\u017e":"z","\u010c":"C","\u010e":"D","\u011a":"E","\u0147":"N","\u0158":"R","\u0160":"S","\u0164":"T","\u016e":"U","\u017d":"Z","\u013e":"l","\u013a":"l","\u0155":"r","\u013d":"L","\u0139":"L","\u0154":"R","\u0105":"a","\u0107":"c","\u0119":"e","\u0142":"l","\u0144":"n","\u015b":"s","\u017a":"z","\u017c":"z","\u0104":"A","\u0106":"C","\u0118":"E","\u0141":"L","\u0143":"N","\u015a":"S","\u0179":"Z","\u017b":"Z","\u0101":"a","\u0113":"e","\u0123":"g","\u012b":"i","\u0137":"k","\u013c":"l","\u0146":"n","\u016b":"u","\u0100":"A","\u0112":"E","\u0122":"G","\u012a":"I","\u0136":"K","\u013b":"L","\u0145":"N","\u016a":"U","\u0623":"a","\u0625":"i","\u0628":"b","\u062a":"t","\u062b":"th","\u062c":"g","\u062d":"h","\u062e":"kh","\u062f":"d","\u0630":"th","\u0631":"r","\u0632":"z","\u0633":"s","\u0634":"sh","\u0635":"s","\u0636":"d","\u0637":"t","\u0638":"th","\u0639":"aa","\u063a":"gh","\u0641":"f","\u0642":"k","\u0643":"k","\u0644":"l","\u0645":"m","\u0646":"n","\u0647":"h","\u0648":"o","\u064a":"y","\u0621":"aa","\u0629":"a","\u0622":"a","\u0627":"a","\u067e":"p","\u0698":"zh","\u06af":"g","\u0686":"ch","\u06a9":"k","\u06cc":"i","\u0117":"e","\u012f":"i","\u0173":"u","\u0116":"E","\u012e":"I","\u0172":"U","\u021b":"t","\u021a":"T","\u0163":"t","\u0162":"T","\u0219":"s","\u0218":"S","\u0103":"a","\u0102":"A","\u1ea0":"A","\u1ea2":"A","\u1ea6":"A","\u1ea4":"A","\u1eac":"A","\u1ea8":"A","\u1eaa":"A","\u1eb0":"A","\u1eae":"A","\u1eb6":"A","\u1eb2":"A","\u1eb4":"A","\u1eb8":"E","\u1eba":"E","\u1ebc":"E","\u1ec0":"E","\u1ebe":"E","\u1ec6":"E","\u1ec2":"E","\u1ec4":"E","\u1eca":"I","\u1ec8":"I","\u0128":"I","\u1ecc":"O","\u1ece":"O","\u1ed2":"O","\u1ed0":"O","\u1ed8":"O","\u1ed4":"O","\u1ed6":"O","\u01a0":"O","\u1edc":"O","\u1eda":"O","\u1ee2":"O","\u1ede":"O","\u1ee0":"O","\u1ee4":"U","\u1ee6":"U","\u0168":"U","\u01af":"U","\u1eea":"U","\u1ee8":"U","\u1ef0":"U","\u1eec":"U","\u1eee":"U","\u1ef2":"Y","\u1ef4":"Y","\u1ef6":"Y","\u1ef8":"Y","\u0110":"D","\u1ea1":"a","\u1ea3":"a","\u1ea7":"a","\u1ea5":"a","\u1ead":"a","\u1ea9":"a","\u1eab":"a","\u1eb1":"a","\u1eaf":"a","\u1eb7":"a","\u1eb3":"a","\u1eb5":"a","\u1eb9":"e","\u1ebb":"e","\u1ebd":"e","\u1ec1":"e","\u1ebf":"e","\u1ec7":"e","\u1ec3":"e","\u1ec5":"e","\u1ecb":"i","\u1ec9":"i","\u0129":"i","\u1ecd":"o","\u1ecf":"o","\u1ed3":"o","\u1ed1":"o","\u1ed9":"o","\u1ed5":"o","\u1ed7":"o","\u01a1":"o","\u1edd":"o","\u1edb":"o","\u1ee3":"o","\u1edf":"o","\u1ee1":"o","\u1ee5":"u","\u1ee7":"u","\u0169":"u","\u01b0":"u","\u1eeb":"u","\u1ee9":"u","\u1ef1":"u","\u1eed":"u","\u1eef":"u","\u1ef3":"y","\u1ef5":"y","\u1ef7":"y","\u1ef9":"y","\u0111":"d","\u04d8":"AE","\u04d9":"ae","\u0492":"GH","\u0493":"gh","\u049a":"KH","\u049b":"kh","\u04a2":"NG","\u04a3":"ng","\u04ae":"UE","\u04af":"ue","\u04b0":"U","\u04b1":"u","\u04ba":"H","\u04bb":"h","\u04e8":"OE","\u04e9":"oe","\u0452":"dj","\u0458":"j","\u0459":"lj","\u045a":"nj","\u045b":"c","\u045f":"dz","\u0402":"Dj","\u0408":"j","\u0409":"Lj","\u040a":"Nj","\u040b":"C","\u040f":"Dz","\u01cc":"nj","\u01c9":"lj","\u01cb":"NJ","\u01c8":"LJ","\u0905":"a","\u0906":"aa","\u090f":"e","\u0908":"ii","\u090d":"ei","\u090e":"ae","\u0910":"ai","\u0907":"i","\u0913":"o","\u0911":"oi","\u0912":"oii","\u090a":"uu","\u0914":"ou","\u0909":"u","\u092c":"B","\u092d":"Bha","\u091a":"Ca","\u091b":"Chha","\u0921":"Da","\u0922":"Dha","\u092b":"Fa","\u0917":"Ga","\u0918":"Gha","\u0917\u093c":"Ghi","\u0939":"Ha","\u091c":"Ja","\u091d":"Jha","\u0915":"Ka","\u0916":"Kha","\u0916\u093c":"Khi","\u0932":"L","\u0933":"Li","\u090c":"Li","\u0934":"Lii","\u0961":"Lii","\u092e":"Ma","\u0928":"Na","\u0919":"Na","\u091e":"Nia","\u0923":"Nae","\u0929":"Ni","\u0950":"oms","\u092a":"Pa","\u0915\u093c":"Qi","\u0930":"Ra","\u090b":"Ri","\u0960":"Ri","\u0931":"Ri","\u0938":"Sa","\u0936":"Sha","\u0937":"Shha","\u091f":"Ta","\u0924":"Ta","\u0920":"Tha","\u0926":"Tha","\u0925":"Tha","\u0927":"Thha","\u0921\u093c":"ugDha","\u0922\u093c":"ugDhha","\u0935":"Va","\u092f":"Ya","\u092f\u093c":"Yi","\u091c\u093c":"Za","\u0259":"e","\u018f":"E","\u10d0":"a","\u10d1":"b","\u10d2":"g","\u10d3":"d","\u10d4":"e","\u10d5":"v","\u10d6":"z","\u10d7":"t","\u10d8":"i","\u10d9":"k","\u10da":"l","\u10db":"m","\u10dc":"n","\u10dd":"o","\u10de":"p","\u10df":"zh","\u10e0":"r","\u10e1":"s","\u10e2":"t","\u10e3":"u","\u10e4":"p","\u10e5":"k","\u10e6":"gh","\u10e7":"q","\u10e8":"sh","\u10e9":"ch","\u10ea":"ts","\u10eb":"dz","\u10ec":"ts","\u10ed":"ch","\u10ee":"kh","\u10ef":"j","\u10f0":"h","\u05d1":"v","\u05d2\u05bc":"g","\u05d2":"g","\u05d3":"d","\u05d3\u05bc":"d","\u05d4":"h","\u05d5":"v","\u05d6":"z","\u05d7":"h","\u05d8":"t","\u05d9":"y","\u05db":"kh","\u05da":"kh","\u05dc":"l","\u05de":"m","\u05dd":"m","\u05e0":"n","\u05df":"n","\u05e1":"s","\u05e4":"f","\u05e3":"f","\u05e5":"ts","\u05e6":"ts","\u05e7":"k","\u05e8":"r","\u05ea\u05bc":"t","\u05ea":"t"};o.charmap=Object.assign({},c),o.multicharmap=Object.assign({},l),o.defaults={charmap:o.charmap,mode:"pretty",modes:{rfc3986:{replacement:"-",remove:null,lower:!0,charmap:o.charmap,multicharmap:o.multicharmap,trim:!0},pretty:{replacement:"-",remove:null,lower:!0,charmap:o.charmap,multicharmap:o.multicharmap,trim:!0}},multicharmap:o.multicharmap,fallback:!0},o.reset=function(){o.defaults.modes.rfc3986.charmap=o.defaults.modes.pretty.charmap=o.charmap=o.defaults.charmap=Object.assign({},c),o.defaults.modes.rfc3986.multicharmap=o.defaults.modes.pretty.multicharmap=o.multicharmap=o.defaults.multicharmap=Object.assign({},l),a=""},o.extend=function(e){for(var t=Object.keys(e),n={},r={},i=0;i<t.length;i++)t[i].length>1?n[t[i]]=e[t[i]]:r[t[i]]=e[t[i]];Object.assign(o.charmap,r),Object.assign(o.multicharmap,n)},o.setLocale=function(e){a=i[e]||{}},e.exports?e.exports=o:t.slug=o}(this)},34877:function(e){e.exports=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})).toLowerCase()}},89549:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0});var o={};t.default=void 0;var i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(n(82749)),a=n(16953);function s(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,"state",void 0),c(this,"props",void 0),this.state=i.getInitialState(),this.props=i.getInitialProps(t),this.handleSwipeStart=this.handleSwipeStart.bind(this),this.handleSwipeMove=this.handleSwipeMove.bind(this),this.handleSwipeEnd=this.handleSwipeEnd.bind(this),this.handleMouseDown=this.handleMouseDown.bind(this),this.handleMouseMove=this.handleMouseMove.bind(this),this.handleMouseUp=this.handleMouseUp.bind(this),this.handleMouseLeave=this.handleMouseLeave.bind(this)}var t,n,r;return t=e,n=[{key:"init",value:function(){this.setupTouchListeners(),this.setupMouseListeners()}},{key:"update",value:function(e){var t=this.props,n=Object.assign({},t,e);if(t.element!==n.element||t.target!==n.target)return this.destroy(),this.props=n,void this.init();this.props=n,t.mouseTrackingEnabled===n.mouseTrackingEnabled&&t.preventTrackingOnMouseleave===n.preventTrackingOnMouseleave||(this.cleanupMouseListeners(),n.mouseTrackingEnabled?this.setupMouseListeners():this.cleanupMouseListeners()),t.touchTrackingEnabled!==n.touchTrackingEnabled&&(this.cleanupTouchListeners(),n.touchTrackingEnabled?this.setupTouchListeners():this.cleanupTouchListeners())}},{key:"destroy",value:function(){this.cleanupMouseListeners(),this.cleanupTouchListeners(),this.state=i.getInitialState(),this.props=i.getInitialProps()}},{key:"setupTouchListeners",value:function(){var e=this.props,t=e.element,n=e.target,r=e.touchTrackingEnabled;if(t&&r){var o=n||t,a=i.checkIsPassiveSupported(),s=i.getOptions(a);o.addEventListener("touchstart",this.handleSwipeStart,s),o.addEventListener("touchmove",this.handleSwipeMove,s),o.addEventListener("touchend",this.handleSwipeEnd,s)}}},{key:"cleanupTouchListeners",value:function(){var e=this.props,t=e.element,n=e.target||t;n&&(n.removeEventListener("touchstart",this.handleSwipeStart),n.removeEventListener("touchmove",this.handleSwipeMove),n.removeEventListener("touchend",this.handleSwipeEnd))}},{key:"setupMouseListeners",value:function(){var e=this.props,t=e.element,n=e.mouseTrackingEnabled,r=e.preventTrackingOnMouseleave;n&&t&&(t.addEventListener("mousedown",this.handleMouseDown),t.addEventListener("mousemove",this.handleMouseMove),t.addEventListener("mouseup",this.handleMouseUp),r&&t.addEventListener("mouseleave",this.handleMouseLeave))}},{key:"cleanupMouseListeners",value:function(){var e=this.props.element;e&&(e.removeEventListener("mousedown",this.handleMouseDown),e.removeEventListener("mousemove",this.handleMouseMove),e.removeEventListener("mouseup",this.handleMouseUp),e.removeEventListener("mouseleave",this.handleMouseLeave))}},{key:"getEventData",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{directionDelta:0},n=this.props.rotationAngle,r=t.directionDelta,o=i.calculateMovingPosition(e),a=i.rotateByAngle(o,n);return i.calculatePosition(this.state,{rotatePosition:a,directionDelta:r})}},{key:"handleSwipeStart",value:function(e){if(!i.checkIsMoreThanSingleTouches(e)){var t=this.props.rotationAngle,n=i.calculateMovingPosition(e),r=i.rotateByAngle(n,t),o=r.x,a=r.y;this.state=i.getInitialState({isSwiping:!1,start:Date.now(),x:o,y:a})}}},{key:"handleSwipeMove",value:function(e){var t=this.state,n=t.x,r=t.y,o=t.isSwiping;if(n&&r&&!i.checkIsMoreThanSingleTouches(e)){var a=this.props.directionDelta||0,s=this.getEventData(e,{directionDelta:a}),l=s.absX,c=s.absY,u=s.deltaX,d=s.deltaY,p=s.directionX,f=s.directionY,h=s.duration,m=s.velocity,v=this.props,g=v.delta,y=v.preventDefaultTouchmoveEvent,b=v.onSwipeStart,x=v.onSwiping;e.cancelable&&y&&e.preventDefault(),l<Number(g)&&c<Number(g)&&!o||(b&&!o&&b(e,{deltaX:u,deltaY:d,absX:l,absY:c,directionX:p,directionY:f,duration:h,velocity:m}),this.state.isSwiping=!0,x&&x(e,{deltaX:u,deltaY:d,absX:l,absY:c,directionX:p,directionY:f,duration:h,velocity:m}))}}},{key:"handleSwipeEnd",value:function(e){var t=this.props,n=t.onSwiped,r=t.onTap;if(this.state.isSwiping){var o=this.props.directionDelta||0,a=this.getEventData(e,{directionDelta:o});n&&n(e,a)}else{var s=this.getEventData(e);r&&r(e,s)}this.state=i.getInitialState()}},{key:"handleMouseDown",value:function(e){var t=this.props.target;t?t===e.target&&this.handleSwipeStart(e):this.handleSwipeStart(e)}},{key:"handleMouseMove",value:function(e){this.handleSwipeMove(e)}},{key:"handleMouseUp",value:function(e){var t=this.state.isSwiping,n=this.props.target;n?(n===e.target||t)&&this.handleSwipeEnd(e):this.handleSwipeEnd(e)}},{key:"handleMouseLeave",value:function(e){this.state.isSwiping&&this.handleSwipeEnd(e)}}],r=[{key:"isTouchEventsSupported",value:function(){return i.checkIsTouchEventsSupported()}}],n&&l(t.prototype,n),r&&l(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},16953:function(e,t){"use strict";var n,r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.TraceDirectionKey=t.Direction=t.Axis=void 0,t.TraceDirectionKey=n,function(e){e.NEGATIVE="NEGATIVE",e.POSITIVE="POSITIVE",e.NONE="NONE"}(n||(t.TraceDirectionKey=n={})),t.Direction=r,function(e){e.TOP="TOP",e.LEFT="LEFT",e.RIGHT="RIGHT",e.BOTTOM="BOTTOM",e.NONE="NONE"}(r||(t.Direction=r={})),t.Axis=o,function(e){e.X="x",e.Y="y"}(o||(t.Axis=o={}))},49257:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateDirection=function(e){var t,n=r.TraceDirectionKey.NEGATIVE,o=r.TraceDirectionKey.POSITIVE,i=e[e.length-1],a=e[e.length-2]||0;if(e.every((function(e){return 0===e})))return r.TraceDirectionKey.NONE;t=i>a?o:n,0===i&&(t=a<0?o:n);return t};var r=n(16953)},88298:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateDirectionDelta=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e.length,i=n-1,a=r.TraceDirectionKey.NONE;i>=0;i--){var s=e[i],l=(0,o.getDirectionKey)(s),c=(0,o.getDirectionValue)(s[l]),u=e[i-1]||{},d=(0,o.getDirectionKey)(u),p=(0,o.getDirectionValue)(u[d]),f=(0,o.getDifference)(c,p);if(f>=t){a=l;break}a=d}return a};var r=n(16953),o=n(6242)},80588:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateDuration=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e?t-e:0}},40613:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateMovingPosition=function(e){if("changedTouches"in e){var t=e.changedTouches&&e.changedTouches[0];return{x:t&&t.clientX,y:t&&t.clientY}}return{x:e.clientX,y:e.clientY}}},40109:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculatePosition=function(e,t){var n=e.start,l=e.x,c=e.y,u=e.traceX,d=e.traceY,p=t.rotatePosition,f=t.directionDelta,h=p.x-l,m=c-p.y,v=Math.abs(h),g=Math.abs(m);(0,r.updateTrace)(u,h),(0,r.updateTrace)(d,m);var y=(0,o.resolveDirection)(u,s.Axis.X,f),b=(0,o.resolveDirection)(d,s.Axis.Y,f),x=(0,i.calculateDuration)(n,Date.now()),w=(0,a.calculateVelocity)(v,g,x);return{absX:v,absY:g,deltaX:h,deltaY:m,directionX:y,directionY:b,duration:x,positionX:p.x,positionY:p.y,velocity:w}};var r=n(86503),o=n(44766),i=n(80588),a=n(35453),s=n(16953)},32852:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateTraceDirections=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],n=r.TraceDirectionKey.POSITIVE,i=r.TraceDirectionKey.NEGATIVE,a=0,s=[],l=r.TraceDirectionKey.NONE;a<e.length;a++){var c=e[a],u=e[a-1];if(s.length){var d=c>u?n:i;l===r.TraceDirectionKey.NONE&&(l=d),d===l?s.push(c):(t.push(o({},l,s.slice())),(s=[]).push(c),l=d)}else 0!==c&&(l=c>0?n:i),s.push(c)}s.length&&t.push(o({},l,s));return t};var r=n(16953);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},35453:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateVelocity=function(e,t,n){return Math.sqrt(e*e+t*t)/(n||1)}},20302:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkIsMoreThanSingleTouches=void 0;t.checkIsMoreThanSingleTouches=function(e){return Boolean(e.touches&&e.touches.length>1)}},26412:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkIsPassiveSupported=function(e){if("boolean"===typeof e)return e;var t={isPassiveSupported:e};try{var n=(0,r.createOptions)(t);window.addEventListener("checkIsPassiveSupported",o,n),window.removeEventListener("checkIsPassiveSupported",o,n)}catch(i){}return t.isPassiveSupported},t.noop=void 0;var r=n(85932);var o=function(){};t.noop=o},46686:function(e,t){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.checkIsTouchEventsSupported=void 0;t.checkIsTouchEventsSupported=function(){return"object"===("undefined"===typeof window?"undefined":n(window))&&("ontouchstart"in window||Boolean(window.navigator.maxTouchPoints))}},6242:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveAxisDirection=t.getDirectionValue=t.getDirectionKey=t.getDifference=void 0;var r=n(16953);t.getDirectionKey=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.keys(e).toString();switch(t){case r.TraceDirectionKey.POSITIVE:return r.TraceDirectionKey.POSITIVE;case r.TraceDirectionKey.NEGATIVE:return r.TraceDirectionKey.NEGATIVE;default:return r.TraceDirectionKey.NONE}};t.getDirectionValue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e[e.length-1]||0};t.getDifference=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.abs(e-t)};t.resolveAxisDirection=function(e,t){var n=r.Direction.LEFT,o=r.Direction.RIGHT,i=r.Direction.NONE;return e===r.Axis.Y&&(n=r.Direction.BOTTOM,o=r.Direction.TOP),t===r.TraceDirectionKey.NEGATIVE&&(i=n),t===r.TraceDirectionKey.POSITIVE&&(i=o),i}},85932:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createOptions=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.defineProperty(e,"passive",{get:function(){return this.isPassiveSupported=!0,!0},enumerable:!0}),e}},96640:function(e,t){"use strict";function n(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 r(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.getInitialProps=void 0;t.getInitialProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r({element:null,target:null,delta:10,directionDelta:0,rotationAngle:0,mouseTrackingEnabled:!1,touchTrackingEnabled:!0,preventDefaultTouchmoveEvent:!1,preventTrackingOnMouseleave:!1},e)}},41615:function(e,t){"use strict";function n(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 r(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.getInitialState=void 0;t.getInitialState=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r({x:0,y:0,start:0,isSwiping:!1,traceX:[],traceY:[]},e)}},26048:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOptions=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e)return{passive:!1};return{}}},82749:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(49257);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}));var o=n(88298);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var i=n(80588);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var a=n(40613);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=n(40109);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var l=n(32852);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var c=n(35453);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var u=n(20302);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var d=n(26412);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var p=n(46686);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))}));var f=n(6242);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var h=n(85932);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var m=n(41615);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===m[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return m[e]}}))}));var v=n(96640);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===v[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}}))}));var g=n(26048);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===g[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return g[e]}}))}));var y=n(44766);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===y[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}}))}));var b=n(7221);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===b[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return b[e]}}))}));var x=n(86503);Object.keys(x).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===x[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return x[e]}}))}))},44766:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveDirection=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.Axis.X,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(n){var l=(0,o.calculateTraceDirections)(e),c=(0,i.calculateDirectionDelta)(l,n);return(0,a.resolveAxisDirection)(t,c)}var u=(0,r.calculateDirection)(e);return(0,a.resolveAxisDirection)(t,u)};var r=n(49257),o=n(32852),i=n(88298),a=n(6242),s=n(16953)},7221:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rotateByAngle=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0===t)return e;var n=e.x,r=e.y,o=Math.PI/180*t,i=n*Math.cos(o)+r*Math.sin(o),a=r*Math.cos(o)-n*Math.sin(o);return{x:i,y:a}}},86503:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateTrace=function(e,t){e[e.length-1]!==t&&e.push(t);return e}},53549:function(e,t){"use strict";var n,r,o,i,a,s,l,c,u,d,p,f,h,m;t.DV=t.CS=t.W6=t.bG=t.nJ=t.ks=t.vX=t.y$=t.BC=t.aL=t.a4=t.bn=t.G3=t.TE=t.Sj=t.tH=t.t$=t.DP=t.YH=t.t7=t.FP=t.Dw=t._L=t.lN=t.tg=t.vs=t.Y2=t.Ru=t.JN=t.Sg=t.u9=t.IQ=t.lu=t.$Z=t.f=t.CF=t.NF=t.bU=t.OO=t.Th=t.cM=t.Tz=t.fx=t.pK=t.e1=t.Nh=t.lk=t.TU=t.XD=t.py=void 0,t.z_=t.xS=t.Wp=t.RD=t.LC=t.D9=t.fh=t.vM=t.ox=t.Ae=t.U_=t.gV=t.hv=t.tw=t.Tl=t.rd=t.b0=t.OH=t.Cx=void 0,function(e){e.Article="article",e.CaseStudy="casestudy",e.Company="company",e.JobAd="jobad",e.MarketShowcase="marketshowcase",e.Project="project",e.ProjectOutline="projectoutline",e.ProjectPayment="projectpayment",e.ProjectPitch="projectpitch",e.ProjectShowcase="projectshowcase",e.User="user"}(t.py||(t.py={})),function(e){e.Pending="pending",e.Accepted="accepted"}(t.XD||(t.XD={})),function(e){e.Analysis="analysis",e.Blog="blog",e.Ebook="ebook",e.Editorial="editorial",e.Guide="guide",e.Infographic="infographic",e.Interview="interview",e.News="news",e.Presentation="presentation",e.PressRelease="press_release",e.Research="research",e.Showcase="showcase",e.Tutorial="tutorial"}(t.TU||(t.TU={})),function(e){e.ApprovedPrivate="approved_private",e.ApprovedPublic="approved_public",e.Bar="bar",e.Baz="baz",e.Buyer="buyer",e.Foo="foo",e.Foobar="foobar",e.Seller="seller",e.SellerProduct="seller_product",e.SellerService="seller_service"}(t.lk||(t.lk={})),function(e){e.Bar="bar",e.Baz="baz",e.CompanyAdmin="company_admin",e.EmailVerified="email_verified",e.Foo="foo",e.Foobar="foobar",e.PhoneVerified="phone_verified"}(t.Nh||(t.Nh={})),function(e){e.Bar="bar",e.EmailVerified="email_verified",e.Foo="foo",e.Foobar="foobar",e.IsSuperuser="is_superuser",e.LinkedinVerified="linkedin_verified",e.PhoneVerified="phone_verified",e.UserVerified="user_verified"}(t.e1||(t.e1={})),function(e){e.BranchOffice="branch_office",e.Headquarters="headquarters",e.RegionalHeadquarters="regional_headquarters",e.Subsidiary="subsidiary"}(t.pK||(t.pK={})),function(e){e.Bt_2_10="bt_2_10",e.Bt_11_50="bt_11_50",e.Bt_51_200="bt_51_200",e.Bt_201_500="bt_201_500",e.Bt_501_1000="bt_501_1000",e.Bt_1001_5000="bt_1001_5000",e.Bt_5001_10000="bt_5001_10000",e.Eq_1="eq_1",e.Gte_10001="gte_10001"}(n=t.fx||(t.fx={})),t.Tz=new Map([[n.Eq_1,"1 employee"],[n.Bt_2_10,"2-10 employees"],[n.Bt_11_50,"11-50 employees"],[n.Bt_51_200,"51-200 employees"],[n.Bt_201_500,"201-500 employees"],[n.Bt_501_1000,"501-1000 employees"],[n.Bt_1001_5000,"1001-5000 employees"],[n.Bt_5001_10000,"5001-10000 employees"],[n.Gte_10001,"10001+ employees"]]),function(e){e.Approved="approved",e.Rejected="rejected",e.Pending="pending",e.Unconfirmed="unconfirmed"}(r=t.cM||(t.cM={})),t.Th=new Map([[r.Approved,"Approved"],[r.Rejected,"Rejected"],[r.Pending,"Pending"],[r.Unconfirmed,"Unconfirmed"]]),function(e){e.CaseStudyMissing="case_study_missing",e.CaseStudyReviewMissing="case_study_review_missing",e.ProfileIncomplete="profile_incomplete",e.PitchExists="pitch_exists"}(t.OO||(t.OO={})),function(e){e.Ab="ab",e.Ad="ad",e.Ae="ae",e.Af="af",e.Ag="ag",e.Ai="ai",e.Al="al",e.Am="am",e.Ao="ao",e.Aq="aq",e.Ar="ar",e.As="as",e.At="at",e.Au="au",e.Aw="aw",e.Ax="ax",e.Az="az",e.Ba="ba",e.Bb="bb",e.Bd="bd",e.Be="be",e.Bf="bf",e.Bg="bg",e.Bh="bh",e.Bi="bi",e.Bj="bj",e.Bl="bl",e.Bm="bm",e.Bn="bn",e.Bo="bo",e.Bq="bq",e.Br="br",e.Bs="bs",e.Bt="bt",e.Bv="bv",e.Bw="bw",e.By="by",e.Bz="bz",e.Ca="ca",e.Cc="cc",e.Cd="cd",e.Cf="cf",e.Cg="cg",e.Ch="ch",e.Ci="ci",e.Ck="ck",e.Cl="cl",e.Cm="cm",e.Cn="cn",e.Co="co",e.Cr="cr",e.Cu="cu",e.Cv="cv",e.Cw="cw",e.Cx="cx",e.Cy="cy",e.Cz="cz",e.De="de",e.Dj="dj",e.Dk="dk",e.Dm="dm",e.Do="do",e.Dz="dz",e.Ec="ec",e.Ee="ee",e.Eg="eg",e.Eh="eh",e.Er="er",e.Es="es",e.Et="et",e.Fi="fi",e.Fj="fj",e.Fk="fk",e.Fm="fm",e.Fo="fo",e.Fr="fr",e.Ga="ga",e.Gb="gb",e.Gd="gd",e.Ge="ge",e.Gf="gf",e.Gg="gg",e.Gh="gh",e.Gi="gi",e.Gl="gl",e.Gm="gm",e.Gn="gn",e.Gp="gp",e.Gq="gq",e.Gr="gr",e.Gs="gs",e.Gt="gt",e.Gu="gu",e.Gw="gw",e.Gy="gy",e.Hk="hk",e.Hm="hm",e.Hn="hn",e.Hr="hr",e.Ht="ht",e.Hu="hu",e.Id="id",e.Ie="ie",e.Il="il",e.Im="im",e.In="in",e.Io="io",e.Iq="iq",e.Ir="ir",e.Is="is",e.It="it",e.Je="je",e.Jm="jm",e.Jo="jo",e.Jp="jp",e.Ke="ke",e.Kg="kg",e.Kh="kh",e.Ki="ki",e.Km="km",e.Kn="kn",e.Kp="kp",e.Kr="kr",e.Kw="kw",e.Ky="ky",e.Kz="kz",e.La="la",e.Lb="lb",e.Lc="lc",e.Li="li",e.Lk="lk",e.Lr="lr",e.Ls="ls",e.Lt="lt",e.Lu="lu",e.Lv="lv",e.Ly="ly",e.Ma="ma",e.Mc="mc",e.Md="md",e.Me="me",e.Mf="mf",e.Mg="mg",e.Mh="mh",e.Mk="mk",e.Ml="ml",e.Mm="mm",e.Mn="mn",e.Mo="mo",e.Mp="mp",e.Mq="mq",e.Mr="mr",e.Ms="ms",e.Mt="mt",e.Mu="mu",e.Mv="mv",e.Mw="mw",e.Mx="mx",e.My="my",e.Mz="mz",e.Na="na",e.Nc="nc",e.Ne="ne",e.Nf="nf",e.Ng="ng",e.Ni="ni",e.Nl="nl",e.No="no",e.Np="np",e.Nr="nr",e.Nu="nu",e.Nz="nz",e.Om="om",e.Pa="pa",e.Pe="pe",e.Pf="pf",e.Pg="pg",e.Ph="ph",e.Pk="pk",e.Pl="pl",e.Pm="pm",e.Pn="pn",e.Pr="pr",e.Ps="ps",e.Pt="pt",e.Pw="pw",e.Py="py",e.Qa="qa",e.Re="re",e.Ro="ro",e.Rs="rs",e.Ru="ru",e.Rw="rw",e.Sa="sa",e.Sb="sb",e.Sc="sc",e.Sd="sd",e.Se="se",e.Sg="sg",e.Sh="sh",e.Si="si",e.Sj="sj",e.Sk="sk",e.Sl="sl",e.Sm="sm",e.Sn="sn",e.So="so",e.Sr="sr",e.Ss="ss",e.St="st",e.Sv="sv",e.Sx="sx",e.Sy="sy",e.Sz="sz",e.Tc="tc",e.Td="td",e.Tf="tf",e.Tg="tg",e.Th="th",e.Tj="tj",e.Tk="tk",e.Tl="tl",e.Tm="tm",e.Tn="tn",e.To="to",e.Tr="tr",e.Tt="tt",e.Tv="tv",e.Tw="tw",e.Tz="tz",e.Ua="ua",e.Ug="ug",e.Um="um",e.Us="us",e.Uy="uy",e.Uz="uz",e.Va="va",e.Vc="vc",e.Ve="ve",e.Vg="vg",e.Vi="vi",e.Vn="vn",e.Vu="vu",e.Wf="wf",e.Ws="ws",e.Xk="xk",e.Ye="ye",e.Yt="yt",e.Za="za",e.Zm="zm",e.Zw="zw"}(o=t.bU||(t.bU={})),t.NF=new Map([[o.Ab,"Abkhazia"],[o.Ad,"Andorra"],[o.Ae,"United Arab Emirates"],[o.Af,"Afghanistan"],[o.Ag,"Antigua and Barbuda"],[o.Ai,"Anguilla"],[o.Al,"Albania"],[o.Am,"Armenia"],[o.Ao,"Angola"],[o.Aq,"Antarctica"],[o.Ar,"Argentina"],[o.As,"American Samoa"],[o.At,"Austria"],[o.Au,"Australia"],[o.Aw,"Aruba"],[o.Ax,"Aland Islands"],[o.Az,"Azerbaijan"],[o.Ba,"Bosnia and Herzegovina"],[o.Bb,"Barbados"],[o.Bd,"Bangladesh"],[o.Be,"Belgium"],[o.Bf,"Burkina Faso"],[o.Bg,"Bulgaria"],[o.Bh,"Bahrain"],[o.Bi,"Burundi"],[o.Bj,"Benin"],[o.Bl,"Saint-Barth\xe9lemy"],[o.Bm,"Bermuda"],[o.Bn,"Brunei Darussalam"],[o.Bo,"Bolivia"],[o.Bq,"Caribbean Netherlands"],[o.Br,"Brazil"],[o.Bs,"Bahamas"],[o.Bt,"Bhutan"],[o.Bv,"Bouvet Island"],[o.Bw,"Botswana"],[o.By,"Belarus"],[o.Bz,"Belize"],[o.Ca,"Canada"],[o.Cc,"Cocos (Keeling) Islands"],[o.Cd,"Democratic Republic of the Congo (Congo-Kinshasa, former Zaire)"],[o.Cf,"Centrafrican Republic"],[o.Cg,"Republic of the Congo (Congo-Brazzaville)"],[o.Ch,"Switzerland"],[o.Ci,"C\xf4te d'Ivoire"],[o.Ck,"Cook Islands"],[o.Cl,"Chile"],[o.Cm,"Cameroon"],[o.Cn,"China"],[o.Co,"Colombia"],[o.Cr,"Costa Rica"],[o.Cu,"Cuba"],[o.Cv,"Cabo Verde"],[o.Cw,"Cura\xe7ao"],[o.Cx,"Christmas Island"],[o.Cy,"Cyprus"],[o.Cz,"Czech Republic"],[o.De,"Germany"],[o.Dj,"Djibouti"],[o.Dk,"Denmark"],[o.Dm,"Dominica"],[o.Do,"Dominican Republic"],[o.Dz,"Algeria"],[o.Ec,"Ecuador"],[o.Ee,"Estonia"],[o.Eg,"Egypt"],[o.Eh,"Western Sahara"],[o.Er,"Eritrea"],[o.Es,"Spain"],[o.Et,"Ethiopia"],[o.Fi,"Finland"],[o.Fj,"Fiji"],[o.Fk,"Falkland Islands"],[o.Fm,"Micronesia (Federated States of)"],[o.Fo,"Faroe Islands"],[o.Fr,"France"],[o.Ga,"Gabon"],[o.Gb,"United Kingdom"],[o.Gd,"Grenada"],[o.Ge,"Georgia"],[o.Gf,"French Guiana"],[o.Gg,"Guernsey"],[o.Gh,"Ghana"],[o.Gi,"Gibraltar"],[o.Gl,"Greenland"],[o.Gm,"The Gambia"],[o.Gn,"Guinea"],[o.Gp,"Guadeloupe"],[o.Gq,"Equatorial Guinea"],[o.Gr,"Greece"],[o.Gs,"South Georgia and the South Sandwich Islands"],[o.Gt,"Guatemala"],[o.Gu,"Guam"],[o.Gw,"Guinea Bissau"],[o.Gy,"Guyana"],[o.Hk,"Hong Kong (SAR of China)"],[o.Hm,"Heard Island and McDonald Islands"],[o.Hn,"Honduras"],[o.Hr,"Croatia"],[o.Ht,"Haiti"],[o.Hu,"Hungary"],[o.Id,"Indonesia"],[o.Ie,"Ireland"],[o.Il,"Israel"],[o.Im,"Isle of Man"],[o.In,"India"],[o.Io,"British Indian Ocean Territory"],[o.Iq,"Iraq"],[o.Ir,"Iran"],[o.Is,"Iceland"],[o.It,"Italy"],[o.Je,"Jersey"],[o.Jm,"Jamaica"],[o.Jo,"Jordan"],[o.Jp,"Japan"],[o.Ke,"Kenya"],[o.Kg,"Kyrgyzstan"],[o.Kh,"Cambodia"],[o.Ki,"Kiribati"],[o.Km,"Comores"],[o.Kn,"Saint Kitts and Nevis"],[o.Kp,"North Korea"],[o.Kr,"South Korea"],[o.Kw,"Kuwait"],[o.Ky,"Cayman Islands"],[o.Kz,"Kazakhstan"],[o.La,"Laos"],[o.Lb,"Lebanon"],[o.Lc,"Saint Lucia"],[o.Li,"Liechtenstein"],[o.Lk,"Sri Lanka"],[o.Lr,"Liberia"],[o.Ls,"Lesotho"],[o.Lt,"Lithuania"],[o.Lu,"Luxembourg"],[o.Lv,"Latvia"],[o.Ly,"Libya"],[o.Ma,"Morocco"],[o.Mc,"Monaco"],[o.Md,"Moldova"],[o.Me,"Montenegro"],[o.Mf,"Saint Martin (French part)"],[o.Mg,"Madagascar"],[o.Mh,"Marshall Islands"],[o.Mk,"North Macedonia"],[o.Ml,"Mali"],[o.Mm,"Myanmar"],[o.Mn,"Mongolia"],[o.Mo,"Macao (SAR of China)"],[o.Mp,"Northern Mariana Islands"],[o.Mq,"Martinique"],[o.Mr,"Mauritania"],[o.Ms,"Montserrat"],[o.Mt,"Malta"],[o.Mu,"Mauritius"],[o.Mv,"Maldives"],[o.Mw,"Malawi"],[o.Mx,"Mexico"],[o.My,"Malaysia"],[o.Mz,"Mozambique"],[o.Na,"Namibia"],[o.Nc,"New Caledonia"],[o.Ne,"Niger"],[o.Nf,"Norfolk Island"],[o.Ng,"Nigeria"],[o.Ni,"Nicaragua"],[o.Nl,"The Netherlands"],[o.No,"Norway"],[o.Np,"Nepal"],[o.Nr,"Nauru"],[o.Nu,"Niue"],[o.Nz,"New Zealand"],[o.Om,"Oman"],[o.Pa,"Panama"],[o.Pe,"Peru"],[o.Pf,"French Polynesia"],[o.Pg,"Papua New Guinea"],[o.Ph,"Philippines"],[o.Pk,"Pakistan"],[o.Pl,"Poland"],[o.Pm,"Saint Pierre and Miquelon"],[o.Pn,"Pitcairn"],[o.Pr,"Puerto Rico"],[o.Ps,"Palestinian Territory"],[o.Pt,"Portugal"],[o.Pw,"Palau"],[o.Py,"Paraguay"],[o.Qa,"Qatar"],[o.Re,"Reunion"],[o.Ro,"Romania"],[o.Rs,"Serbia"],[o.Ru,"Russia"],[o.Rw,"Rwanda"],[o.Sa,"Saudi Arabia"],[o.Sb,"Solomon Islands"],[o.Sc,"Seychelles"],[o.Sd,"Sudan"],[o.Se,"Sweden"],[o.Sg,"Singapore"],[o.Sh,"Saint Helena"],[o.Si,"Slovenia"],[o.Sj,"Svalbard and Jan Mayen"],[o.Sk,"Slovakia"],[o.Sl,"Sierra Leone"],[o.Sm,"San Marino"],[o.Sn,"S\xe9n\xe9gal"],[o.So,"Somalia"],[o.Sr,"Suriname"],[o.Ss,"S\xe3o Tom\xe9 and Pr\xedncipe"],[o.St,"South Sudan"],[o.Sv,"El Salvador"],[o.Sx,"Saint Martin (Dutch part)"],[o.Sy,"Syria"],[o.Sz,"eSwatini"],[o.Tc,"Turks and Caicos Islands"],[o.Td,"Chad"],[o.Tf,"French Southern and Antarctic Lands"],[o.Tg,"Togo"],[o.Th,"Thailand"],[o.Tj,"Tajikistan"],[o.Tk,"Tokelau"],[o.Tl,"Timor-Leste"],[o.Tm,"Turkmenistan"],[o.Tn,"Tunisia"],[o.To,"Tonga"],[o.Tr,"Turkey"],[o.Tt,"Trinidad and Tobago"],[o.Tv,"Tuvalu"],[o.Tw,"Taiwan"],[o.Tz,"Tanzania"],[o.Ua,"Ukraine"],[o.Ug,"Uganda"],[o.Um,"United States Minor Outlying Islands"],[o.Us,"United States of America"],[o.Uy,"Uruguay"],[o.Uz,"Uzbekistan"],[o.Va,"City of the Vatican"],[o.Vc,"Saint Vincent and the Grenadines"],[o.Ve,"Venezuela"],[o.Vg,"British Virgin Islands"],[o.Vi,"United States Virgin Islands"],[o.Vn,"Vietnam"],[o.Vu,"Vanuatu"],[o.Wf,"Wallis and Futuna"],[o.Ws,"Samoa"],[o.Xk,"Kosovo"],[o.Ye,"Yemen"],[o.Yt,"Mayotte"],[o.Za,"South Africa"],[o.Zm,"Zambia"],[o.Zw,"Zimbabwe"]]),function(e){e.Eur="eur",e.Btc="btc",e.Eth="eth",e.Hrk="hrk",e.Inr="inr",e.Usd="usd"}(i=t.CF||(t.CF={})),t.f=new Map([[i.Eur,"EUR"],[i.Usd,"USD"],[i.Eur,"EUR"]]),function(e){e.Accounting="accounting",e.AirlinesAndAviation="airlines_and_aviation",e.AlternativeDisputeResolution="alternative_dispute_resolution",e.AlternativeMedicine="alternative_medicine",e.Animation="animation",e.ApparelAndFashion="apparel_and_fashion",e.ArchitectureAndPlanning="architecture_and_planning",e.ArtsAndCrafts="arts_and_crafts",e.Automotive="automotive",e.AviationAndAerospace="aviation_and_aerospace",e.Banking="banking",e.Biotechnology="biotechnology",e.BroadcastMedia="broadcast_media",e.BuildingMaterials="building_materials",e.BusinessSuppliesAndEquipment="business_supplies_and_equipment",e.CapitalMarkets="capital_markets",e.Chemicals="chemicals",e.CivicAndSocialOrganization="civic_and_social_organization",e.CivilEngineering="civil_engineering",e.CommercialRealEstate="commercial_real_estate",e.ComputerGames="computer_games",e.ComputerHardware="computer_hardware",e.ComputerNetworking="computer_networking",e.ComputerSoftware="computer_software",e.ComputerAndNetworkSecurity="computer_and_network_security",e.Construction="construction",e.ConsumerElectronics="consumer_electronics",e.ConsumerGoods="consumer_goods",e.ConsumerServices="consumer_services",e.Cosmetics="cosmetics",e.Dairy="dairy",e.DefenseAndSpace="defense_and_space",e.Design="design",e.EducationManagement="education_management",e.Elearning="elearning",e.ElectricalOrElectronicManufacturing="electrical_or_electronic_manufacturing",e.Energy="energy",e.Entertainment="entertainment",e.EnvironmentalServices="environmental_services",e.EventsServices="events_services",e.ExecutiveOffice="executive_office",e.FacilitiesServices="facilities_services",e.Farming="farming",e.FastMovingConsumerGoods="fast_moving_consumer_goods",e.FinancialServices="financial_services",e.FineArt="fine_art",e.Fishery="fishery",e.FoodProduction="food_production",e.FoodAndBeverages="food_and_beverages",e.Fundraising="fundraising",e.Furniture="furniture",e.GamblingAndCasinos="gambling_and_casinos",e.GlassAndCeramicsAndConcrete="glass_and_ceramics_and_concrete",e.GovernmentAdministration="government_administration",e.GovernmentRelations="government_relations",e.GraphicDesign="graphic_design",e.HealthAndWellnessAndFitness="health_and_wellness_and_fitness",e.HigherEducation="higher_education",e.HospitalAndHealthCare="hospital_and_health_care",e.Hospitality="hospitality",e.HumanResources="human_resources",e.ImportAndExport="import_and_export",e.IndividualAndFamilyServices="individual_and_family_services",e.IndustrialAutomation="industrial_automation",e.InformationServices="information_services",e.InformationTechnology="information_technology",e.Insurance="insurance",e.InternationalAffairs="international_affairs",e.InternationalTradeAndDevelopment="international_trade_and_development",e.Internet="internet",e.InvestmentBanking="investment_banking",e.InvestmentManagement="investment_management",e.Judiciary="judiciary",e.LawEnforcement="law_enforcement",e.LawPractice="law_practice",e.LegalServices="legal_services",e.LegislativeOffice="legislative_office",e.LeisureAndTravelAndTourism="leisure_and_travel_and_tourism",e.Libraries="libraries",e.LogisticsAndSupplyChain="logistics_and_supply_chain",e.LuxuryGoodsAndJewelry="luxury_goods_and_jewelry",e.Machinery="machinery",e.ManagementConsulting="management_consulting",e.Maritime="maritime",e.MarketResearch="market_research",e.MarketingAndAdvertising="marketing_and_advertising",e.MechanicalOrIndustrialEngineering="mechanical_or_industrial_engineering",e.MediaProduction="media_production",e.MedicalDevices="medical_devices",e.MedicalPractice="medical_practice",e.MentalHealthCare="mental_health_care",e.Military="military",e.MiningAndMetals="mining_and_metals",e.MotionPicturesAndFilm="motion_pictures_and_film",e.MuseumsAndInstitutions="museums_and_institutions",e.Music="music",e.Nanotechnology="nanotechnology",e.Newspapers="newspapers",e.NonprofitOrganizationManagement="nonprofit_organization_management",e.OilAndGas="oil_and_gas",e.OnlineMedia="online_media",e.OutsourcingOrOffshoring="outsourcing_or_offshoring",e.PackageOrFreightDelivery="package_or_freight_delivery",e.PackagingAndContainers="packaging_and_containers",e.PaperAndForestProducts="paper_and_forest_products",e.PerformingArts="performing_arts",e.Pharmaceuticals="pharmaceuticals",e.Philanthropy="philanthropy",e.Photography="photography",e.Plastics="plastics",e.PoliticalOrganization="political_organization",e.PrimaryOrSecondaryEducation="primary_or_secondary_education",e.Printing="printing",e.ProfessionalTrainingAndCoaching="professional_training_and_coaching",e.ProgramDevelopment="program_development",e.PublicPolicy="public_policy",e.PublicRelationsAndCommunications="public_relations_and_communications",e.PublicSafety="public_safety",e.Publishing="publishing",e.RailroadManufacture="railroad_manufacture",e.Ranching="ranching",e.RealEstate="real_estate",e.RecreationalFacilitiesAndServices="recreational_facilities_and_services",e.ReligiousInstitutions="religious_institutions",e.RenewablesAndEnvironment="renewables_and_environment",e.Research="research",e.Restaurants="restaurants",e.Retail="retail",e.SecurityAndInvestigations="security_and_investigations",e.Semiconductors="semiconductors",e.Shipbuilding="shipbuilding",e.SportingGoods="sporting_goods",e.Sports="sports",e.StaffingAndRecruiting="staffing_and_recruiting",e.Supermarkets="supermarkets",e.Telecommunications="telecommunications",e.Textiles="textiles",e.ThinkTanks="think_tanks",e.Tobacco="tobacco",e.TranslationAndLocalization="translation_and_localization",e.TransportationgAndTruckingAndRailroad="transportationg_and_trucking_and_railroad",e.Utilities="utilities",e.VentureCapitalAndPrivateEquity="venture_capital_and_private_equity",e.Veterinary="veterinary",e.Warehousing="warehousing",e.Wholesale="wholesale",e.WineAndSpirits="wine_and_spirits",e.Wireless="wireless",e.WritingAndEditing="writing_and_editing"}(a=t.$Z||(t.$Z={})),t.lu=new Map([[a.Accounting,"Accounting"],[a.AirlinesAndAviation,"Airlines/Aviation"],[a.AlternativeDisputeResolution,"Alternative Dispute Resolution"],[a.AlternativeMedicine,"Alternative Medicine"],[a.Animation,"Animation"],[a.ApparelAndFashion,"Apparel & Fashion"],[a.ArchitectureAndPlanning,"Architecture & Planning"],[a.ArtsAndCrafts,"Arts & Crats"],[a.Automotive,"Automotive"],[a.AviationAndAerospace,"Aviation & Aerospace"],[a.Banking,"Banking"],[a.Biotechnology,"Biotechnology"],[a.BroadcastMedia,"Broadcast Media"],[a.BuildingMaterials,"Building Materials"],[a.BusinessSuppliesAndEquipment,"Business Supplies & Equipment"],[a.CapitalMarkets,"Capital Markets"],[a.Chemicals,"Chemicals"],[a.CivicAndSocialOrganization,"Civic & Social Organization"],[a.CivilEngineering,"Civil Engineering"],[a.CommercialRealEstate,"Commercial Real Estate"],[a.ComputerAndNetworkSecurity,"Computer & Network Security"],[a.ComputerGames,"Computer Games"],[a.ComputerHardware,"Computer Hardware"],[a.ComputerNetworking,"Computer Networking"],[a.ComputerSoftware,"Computer Software"],[a.Construction,"Construction"],[a.ConsumerElectronics,"Consumer Electronics"],[a.ConsumerGoods,"Consumer Goods"],[a.ConsumerServices,"Consumer Services"],[a.Cosmetics,"Cosmetics"],[a.Dairy,"Dairy"],[a.DefenseAndSpace,"Defense & Space"],[a.Design,"Design"],[a.Elearning,"E-learning"],[a.EducationManagement,"Education Management"],[a.ElectricalOrElectronicManufacturing,"Electrical or Electronic Manufacturing"],[a.Energy,"Energy"],[a.Entertainment,"Entertainment"],[a.EnvironmentalServices,"Environmental Services"],[a.EventsServices,"Events Services"],[a.ExecutiveOffice,"Executive Office"],[a.FacilitiesServices,"Facilities Services"],[a.Farming,"Farming"],[a.FastMovingConsumerGoods,"Fast-Moving Consumer Goods"],[a.FinancialServices,"Financial Services"],[a.FineArt,"Fine Art"],[a.Fishery,"Fishery"],[a.FoodAndBeverages,"Food & Beverages"],[a.FoodProduction,"Food Production"],[a.Fundraising,"Fundraising"],[a.Furniture,"Furniture"],[a.GamblingAndCasinos,"Gambling & Casinos"],[a.GlassAndCeramicsAndConcrete,"Glass, Ceramics & Concrete"],[a.GovernmentAdministration,"Government Administration"],[a.GovernmentRelations,"Government Relations"],[a.GraphicDesign,"Graphic Design"],[a.HealthAndWellnessAndFitness,"Health, Wellness & Fitness"],[a.HigherEducation,"Higher Education"],[a.HospitalAndHealthCare,"Hospital & Health Care"],[a.Hospitality,"Hospitality"],[a.HumanResources,"Human Resources"],[a.ImportAndExport,"Import & Export"],[a.IndividualAndFamilyServices,"Individual & Family Services"],[a.IndustrialAutomation,"Industrial Automation"],[a.InformationServices,"Information Services"],[a.InformationTechnology,"Information Technology"],[a.Insurance,"Insurance"],[a.InternationalAffairs,"International Affairs"],[a.InternationalTradeAndDevelopment,"International Trade & Development"],[a.Internet,"Internet"],[a.InvestmentBanking,"Investment Banking"],[a.InvestmentManagement,"Investment Management"],[a.Judiciary,"Judiciary"],[a.LawEnforcement,"Law Enforcement"],[a.LawPractice,"Law Practice"],[a.LegalServices,"Legal Services"],[a.LegislativeOffice,"Legislative Office"],[a.LeisureAndTravelAndTourism,"Leisure, Travel & Tourism"],[a.Libraries,"Libraries"],[a.LogisticsAndSupplyChain,"Logistics & Supply Chain"],[a.LuxuryGoodsAndJewelry,"Luxury Goods & Jewelry"],[a.Machinery,"Machinery"],[a.ManagementConsulting,"Management Consulting"],[a.Maritime,"Maritime"],[a.MarketResearch,"Market Research"],[a.MarketingAndAdvertising,"Marketing & Advertising"],[a.MechanicalOrIndustrialEngineering,"Mechanical or Industrial Engineering"],[a.MediaProduction,"Media Production"],[a.MedicalDevices,"Medical Devices"],[a.MedicalPractice,"Medical Practice"],[a.MentalHealthCare,"Mental Health Care"],[a.Military,"Military"],[a.MiningAndMetals,"Mining & Metals"],[a.MotionPicturesAndFilm,"Motion Pictures & Film"],[a.MuseumsAndInstitutions,"Museums & Institutions"],[a.Music,"Music"],[a.Nanotechnology,"Nanotechnology"],[a.Newspapers,"Newspapers"],[a.NonprofitOrganizationManagement,"Nonprofit Organization Management"],[a.OilAndGas,"Oil & Gas"],[a.OnlineMedia,"Online Media"],[a.OutsourcingOrOffshoring,"Outsourcing/Offshoring"],[a.PackageOrFreightDelivery,"Package/Freight Delivery"],[a.PackagingAndContainers,"Packaging & Containers"],[a.PaperAndForestProducts,"Paper & Forest Products"],[a.PerformingArts,"Performing Arts"],[a.Pharmaceuticals,"Pharmaceuticals"],[a.Philanthropy,"Philanthropy"],[a.Photography,"Photography"],[a.Plastics,"Plastics"],[a.PoliticalOrganization,"Political Organization"],[a.PrimaryOrSecondaryEducation,"Primary/Secondary Education"],[a.Printing,"Printing"],[a.ProfessionalTrainingAndCoaching,"Professional Training & Coaching"],[a.ProgramDevelopment,"Program Development"],[a.PublicPolicy,"Public Policy"],[a.PublicRelationsAndCommunications,"Public Relations & Communications"],[a.PublicSafety,"Public Safety"],[a.Publishing,"Publishing"],[a.RailroadManufacture,"Railroad Manufacture"],[a.Ranching,"Ranching"],[a.RealEstate,"Real Estate"],[a.RecreationalFacilitiesAndServices,"Recreational Facilities & Services"],[a.ReligiousInstitutions,"Religious Institutions"],[a.RenewablesAndEnvironment,"Renewables & Environment"],[a.Research,"Research"],[a.Restaurants,"Restaurants"],[a.Retail,"Retail"],[a.SecurityAndInvestigations,"Security & Investigations"],[a.Semiconductors,"Semiconductors"],[a.Shipbuilding,"Shipbuilding"],[a.SportingGoods,"Sporting Goods"],[a.Sports,"Sports"],[a.StaffingAndRecruiting,"Staffing & Recruiting"],[a.Supermarkets,"Supermarkets"],[a.Telecommunications,"Telecommunications"],[a.Textiles,"Textiles"],[a.ThinkTanks,"Think Tanks"],[a.Tobacco,"Tobacco"],[a.TranslationAndLocalization,"Translation & Localization"],[a.TransportationgAndTruckingAndRailroad,"Transportation, Trucking & Railroad"],[a.Utilities,"Utilities"],[a.VentureCapitalAndPrivateEquity,"Venture Capital & Private Equity"],[a.Veterinary,"Veterinary"],[a.Warehousing,"Warehousing"],[a.Wholesale,"Wholesale"],[a.WineAndSpirits,"Wine & Spirits"],[a.Wireless,"Wireless"],[a.WritingAndEditing,"Writing & Editing"]]),function(e){e.Aa="aa",e.Ab="ab",e.Ae="ae",e.Af="af",e.Ak="ak",e.Am="am",e.An="an",e.Ar="ar",e.As="as",e.Av="av",e.Ay="ay",e.Az="az",e.Ba="ba",e.Be="be",e.Bg="bg",e.Bi="bi",e.Bm="bm",e.Bn="bn",e.Bo="bo",e.Br="br",e.Bs="bs",e.Ca="ca",e.Ce="ce",e.Ch="ch",e.Cnr="cnr",e.Co="co",e.Cr="cr",e.Cs="cs",e.Cu="cu",e.Cv="cv",e.Cy="cy",e.Da="da",e.Dag="dag",e.De="de",e.Dv="dv",e.Dz="dz",e.Ee="ee",e.El="el",e.En="en",e.Eo="eo",e.Es="es",e.Et="et",e.Eu="eu",e.Fa="fa",e.Ff="ff",e.Fi="fi",e.Fil="fil",e.Fj="fj",e.Fo="fo",e.Fr="fr",e.Fy="fy",e.Ga="ga",e.Gd="gd",e.Gl="gl",e.Gn="gn",e.Gu="gu",e.Gv="gv",e.Ha="ha",e.He="he",e.Hi="hi",e.Ho="ho",e.Hr="hr",e.Ht="ht",e.Hu="hu",e.Hy="hy",e.Hz="hz",e.Ia="ia",e.Id="id",e.Ie="ie",e.Ig="ig",e.Ii="ii",e.Ik="ik",e.Io="io",e.Is="is",e.It="it",e.Iu="iu",e.Ja="ja",e.Jv="jv",e.Ka="ka",e.Kg="kg",e.Ki="ki",e.Kj="kj",e.Kk="kk",e.Kl="kl",e.Km="km",e.Kn="kn",e.Ko="ko",e.Kr="kr",e.Ks="ks",e.Ku="ku",e.Kv="kv",e.Kw="kw",e.Ky="ky",e.La="la",e.Lb="lb",e.Lg="lg",e.Li="li",e.Ln="ln",e.Lo="lo",e.Lt="lt",e.Lu="lu",e.Lv="lv",e.Mg="mg",e.Mh="mh",e.Mi="mi",e.Mk="mk",e.Ml="ml",e.Mn="mn",e.Mo="mo",e.Mr="mr",e.Ms="ms",e.Mt="mt",e.My="my",e.Na="na",e.Nb="nb",e.Nd="nd",e.Ne="ne",e.Ng="ng",e.Nl="nl",e.Nn="nn",e.No="no",e.Nr="nr",e.Nso="nso",e.Nv="nv",e.Ny="ny",e.Oc="oc",e.Oj="oj",e.Om="om",e.Or="or",e.Os="os",e.Pa="pa",e.Pi="pi",e.Pl="pl",e.Ps="ps",e.Pt="pt",e.Qu="qu",e.Rm="rm",e.Rn="rn",e.Ro="ro",e.Ru="ru",e.Rw="rw",e.Sa="sa",e.Sc="sc",e.Sd="sd",e.Se="se",e.Sg="sg",e.Si="si",e.Sk="sk",e.Sl="sl",e.Sm="sm",e.Sn="sn",e.So="so",e.Sq="sq",e.Sr="sr",e.Ss="ss",e.St="st",e.Su="su",e.Sv="sv",e.Sw="sw",e.Ta="ta",e.Te="te",e.Tg="tg",e.Th="th",e.Ti="ti",e.Tk="tk",e.Tl="tl",e.Tn="tn",e.To="to",e.Tr="tr",e.Ts="ts",e.Tt="tt",e.Tw="tw",e.Ty="ty",e.Ug="ug",e.Uk="uk",e.Ur="ur",e.Uz="uz",e.Ve="ve",e.Vi="vi",e.Vo="vo",e.Wa="wa",e.Wo="wo",e.Xh="xh",e.Yi="yi",e.Yo="yo",e.Yue="yue",e.Za="za",e.Zh="zh",e.Zu="zu"}(s=t.IQ||(t.IQ={})),t.u9=new Map([[s.Aa,"Afar"],[s.Ab,"Abkhazian"],[s.Ae,"Avestan"],[s.Af,"Afrikaans"],[s.Ak,"Akan"],[s.Am,"Amharic"],[s.An,"Aragonese"],[s.Ar,"Arabic"],[s.As,"Assamese"],[s.Av,"Avaric"],[s.Ay,"Aymara"],[s.Az,"Azerbaijani"],[s.Ba,"Bashkir"],[s.Be,"Belarusian"],[s.Bg,"Bulgarian"],[s.Bi,"Bislama"],[s.Bm,"Bambara"],[s.Bn,"Bengali"],[s.Bo,"Tibetan"],[s.Br,"Breton"],[s.Bs,"Bosnian"],[s.Ca,"Catalan, Valencian"],[s.Ce,"Chechen"],[s.Ch,"Chamorro"],[s.Cnr,"Montenegrin"],[s.Co,"Corsican"],[s.Cr,"Cree"],[s.Cs,"Czech"],[s.Cu,"Church Slavic, Old Slavonic, Church Slavonic, Old Bulgarian, Old Church Slavonic"],[s.Cv,"Chuvash"],[s.Cy,"Welsh"],[s.Da,"Danish"],[s.Dag,"Dagbani"],[s.De,"German"],[s.Dv,"Divehi, Dhivehi, Maldivian"],[s.Dz,"Dzongkha"],[s.Ee,"Ewe"],[s.El,"Greek, Modern (1453\u2013)"],[s.En,"English"],[s.Eo,"Esperanto"],[s.Es,"Spanish, Castilian"],[s.Et,"Estonian"],[s.Eu,"Basque"],[s.Fa,"Persian"],[s.Ff,"Fulah"],[s.Fi,"Finnish"],[s.Fil,"Filipino"],[s.Fj,"Fijian"],[s.Fo,"Faroese"],[s.Fr,"French"],[s.Fy,"Western Frisian"],[s.Ga,"Irish"],[s.Gd,"Gaelic, Scottish Gaelic"],[s.Gl,"Galician"],[s.Gn,"Guarani"],[s.Gu,"Gujarati"],[s.Gv,"Manx"],[s.Ha,"Hausa"],[s.He,"Hebrew"],[s.Hi,"Hindi"],[s.Ho,"Hiri Motu"],[s.Hr,"Croatian"],[s.Ht,"Haitian, Haitian Creole"],[s.Hu,"Hungarian"],[s.Hy,"Armenian"],[s.Hz,"Herero"],[s.Ia,"Interlingua (International Auxiliary Language Association)"],[s.Id,"Indonesian"],[s.Ie,"Interlingue, Occidental"],[s.Ig,"Igbo"],[s.Ii,"Sichuan Yi, Nuosu"],[s.Ik,"Inupiaq"],[s.Io,"Ido"],[s.Is,"Icelandic"],[s.It,"Italian"],[s.Iu,"Inuktitut"],[s.Ja,"Japanese"],[s.Jv,"Javanese"],[s.Ka,"Georgian"],[s.Kg,"Kongo"],[s.Ki,"Kikuyu, Gikuyu"],[s.Kj,"Kuanyama, Kwanyama"],[s.Kk,"Kazakh"],[s.Kl,"Kalaallisut, Greenlandic"],[s.Km,"Central Khmer"],[s.Kn,"Kannada"],[s.Ko,"Korean"],[s.Kr,"Kanuri"],[s.Ks,"Kashmiri"],[s.Ku,"Kurdish"],[s.Kv,"Komi"],[s.Kw,"Cornish"],[s.Ky,"Kirghiz, Kyrgyz"],[s.La,"Latin"],[s.Lb,"Luxembourgish, Letzeburgesch"],[s.Lg,"Ganda"],[s.Li,"Limburgan, Limburger, Limburgish"],[s.Ln,"Lingala"],[s.Lo,"Lao"],[s.Lt,"Lithuanian"],[s.Lu,"Luba-Katanga"],[s.Lv,"Latvian"],[s.Mg,"Malagasy"],[s.Mh,"Marshallese"],[s.Mi,"Maori"],[s.Mk,"Macedonian"],[s.Ml,"Malayalam"],[s.Mn,"Mongolian"],[s.Mo,"Moldovan"],[s.Mr,"Marathi"],[s.Ms,"Malay"],[s.Mt,"Maltese"],[s.My,"Burmese"],[s.Na,"Nauru"],[s.Nb,"Norwegian Bokm\xe5l"],[s.Nd,"North Ndebele"],[s.Ne,"Nepali"],[s.Ng,"Ndonga"],[s.Nl,"Dutch, Flemish"],[s.Nn,"Norwegian Nynorsk"],[s.No,"Norwegian"],[s.Nr,"South Ndebele"],[s.Nso,"Northern Sotho"],[s.Nv,"Navajo, Navaho"],[s.Ny,"Chichewa, Chewa, Nyanja"],[s.Oc,"Occitan"],[s.Oj,"Ojibwa"],[s.Om,"Oromo"],[s.Or,"Oriya"],[s.Os,"Ossetian, Ossetic"],[s.Pa,"Punjabi, Panjabi"],[s.Pi,"Pali"],[s.Pl,"Polish"],[s.Ps,"Pashto, Pushto"],[s.Pt,"Portuguese"],[s.Qu,"Quechua"],[s.Rm,"Romansh"],[s.Rn,"Rundi"],[s.Ro,"Romanian, Moldavian, Moldovan"],[s.Ru,"Russian"],[s.Rw,"Kinyarwanda"],[s.Sa,"Sanskrit"],[s.Sc,"Sardinian"],[s.Sd,"Sindhi"],[s.Se,"Northern Sami"],[s.Sg,"Sango"],[s.Si,"Sinhala, Sinhalese"],[s.Sk,"Slovak"],[s.Sl,"Slovenian"],[s.Sm,"Samoan"],[s.Sn,"Shona"],[s.So,"Somali"],[s.Sq,"Albanian"],[s.Sr,"Serbian"],[s.Ss,"Swati"],[s.St,"Southern Sotho"],[s.Su,"Sundanese"],[s.Sv,"Swedish"],[s.Sw,"Swahili"],[s.Ta,"Tamil"],[s.Te,"Telugu"],[s.Tg,"Tajik"],[s.Th,"Thai"],[s.Ti,"Tigrinya"],[s.Tk,"Turkmen"],[s.Tl,"Tagalog"],[s.Tn,"Tswana"],[s.To,"Tonga (Tonga Islands)"],[s.Tr,"Turkish"],[s.Ts,"Tsonga"],[s.Tt,"Tatar"],[s.Tw,"Twi"],[s.Ty,"Tahitian"],[s.Ug,"Uighur, Uyghur"],[s.Uk,"Ukrainian"],[s.Ur,"Urdu"],[s.Uz,"Uzbek"],[s.Ve,"Venda"],[s.Vi,"Vietnamese"],[s.Vo,"Volap\xfck"],[s.Wa,"Walloon"],[s.Wo,"Wolof"],[s.Xh,"Xhosa"],[s.Yi,"Yiddish"],[s.Yo,"Yoruba"],[s.Yue,"Yue"],[s.Za,"Zhuang, Chuang"],[s.Zh,"Chinese"],[s.Zu,"Zulu"]]),function(e){e.Flag="flag"}(t.Sg||(t.Sg={})),function(e){e.Milestone="milestone",e.Event="event",e.Task="task",e.Subtask="subtask",e.Payment="payment",e.PitchDeadline="pitch_deadline"}(t.JN||(t.JN={})),function(e){e.Accepted="accepted",e.Negotiation="negotiation",e.Canceled="canceled",e.Draft="draft",e.Active="active"}(t.Ru||(t.Ru={})),function(e){e.Bt_25_49="bt_25_49",e.Bt_50_99="bt_50_99",e.Bt_100_149="bt_100_149",e.Bt_150_199="bt_150_199",e.Bt_200_299="bt_200_299",e.Gte_300="gte_300",e.Lt_25="lt_25",e.NA="n_a"}(l=t.Y2||(t.Y2={})),t.vs=new Map([[l.Lt_25,"< 25"],[l.Bt_25_49,"25 - 49"],[l.Bt_50_99,"50 - 99"],[l.Bt_100_149,"100 - 149"],[l.Bt_150_199,"150 - 199"],[l.Bt_200_299,"200 - 299"],[l.Gte_300,"300+"],[l.NA,"n_a"]]),function(e){e.Approved="approved",e.Completed="completed",e.InProgress="in_progress",e.Negotiation="negotiation",e.Pending="pending",e.UnderReview="under_review"}(t.tg||(t.tg={})),function(e){e.Completed="completed",e.PendingBuyerInvoice="pending_buyer_invoice",e.PendingBuyerPayment="pending_buyer_payment",e.PendingMilestoneApproval="pending_milestone_approval",e.PendingSellerInvoice="pending_seller_invoice",e.PendingSellerPayment="pending_seller_payment"}(t.lN||(t.lN={})),function(e){e.Bt_5k_10k="bt_5k_10k",e.Bt_10k_25k="bt_10k_25k",e.Bt_25k_50k="bt_25k_50k",e.Bt_50k_75k="bt_50k_75k",e.Bt_75k_100k="bt_75k_100k",e.Bt_100k_150k="bt_100k_150k",e.Bt_150k_200k="bt_150k_200k",e.Bt_200k_250k="bt_200k_250k",e.Gt_250k="gt_250k",e.Lt_5k="lt_5k"}(c=t._L||(t._L={})),t.Dw=new Map([[c.Bt_5k_10k,"5,000 - 10,000"],[c.Bt_10k_25k,"10,000 - 25,000"],[c.Bt_25k_50k,"25,000 - 50,000"],[c.Bt_50k_75k,"50,000 - 75,000"],[c.Bt_75k_100k,"75,000 - 100,000"],[c.Bt_100k_150k,"100,000 - 150,000"],[c.Bt_150k_200k,"150,000 - 200,000"],[c.Bt_200k_250k,"200,000 - 250,000"],[c.Gt_250k,"250,000+"],[c.Lt_5k,"< 5,000"]]),function(e){e.Canceled="canceled",e.Completed="completed",e.InProgress="in_progress",e.Pending="pending"}(t.FP||(t.FP={})),function(e){e.Canceled="canceled",e.Completed="completed",e.Pending="pending"}(t.t7||(t.t7={})),function(e){e.Canceled="canceled",e.Completed="completed",e.InProgress="in_progress",e.Pending="pending"}(t.YH||(t.YH={})),function(e){e.OneTime="one_time",e.Retainer="retainer"}(t.DP||(t.DP={})),function(e){e.AwaitingApproval="awaiting_approval",e.Deleted="deleted",e.Draft="draft",e.Private="private",e.Public="public",e.Rejected="rejected"}(t.t$||(t.t$={})),function(e){e.Animation="animation",e.AppDesign="app_design",e.AppDevelopment="app_development",e.AugmentedReality="augmented_reality",e.Blockchain="blockchain",e.Branding="branding",e.CgiProduction="cgi_production",e.Chatbot="chatbot",e.CommunityManagement="community_management",e.ContentMarketing="content_marketing",e.Copywriting="copywriting",e.DataAnalytics="data_analytics",e.DataEngineering="data_engineering",e.DataScience="data_science",e.DesignStrategy="design_strategy",e.DevOps="devops",e.DigitalStrategy="digital_strategy",e.Ecommerce="ecommerce",e.EmailMarketing="email_marketing",e.EventMarketing="event_marketing",e.ExtendedReality="extended_reality",e.GameDevelopment="game_development",e.GraphicDesign="graphic_design",e.InfluencerMarketing="influencer_marketing",e.InstoreMarketing="instore_marketing",e.MachineLearning="machine_learning",e.MarketResearch="market_research",e.MediaBuying="media_buying",e.MobileAdvertising="mobile_advertising",e.MobileAppDesign="mobile_app_design",e.MobileAppDevelopment="mobile_app_development",e.MotionDesign="motion_design",e.PaidSearchMarketing="paid_search_marketing",e.PerformanceMarketing="performance_marketing",e.PublicRelations="public_relations",e.SearchEngineOptimization="search_engine_optimization",e.SocialMediaAdvertising="social_media_advertising",e.SocialMediaManagement="social_media_management",e.UserExperienceDesign="user_experience_design",e.UserInterfaceDesign="user_interface_design",e.Video="video",e.VirtualReality="virtual_reality",e.WebDesign="web_design",e.WebDevelopment="web_development"}(u=t.tH||(t.tH={})),t.Sj=new Map([[u.Animation,"Animation"],[u.AppDesign,"App Design"],[u.AppDevelopment,"App Development"],[u.AugmentedReality,"Augmented Reality (AR)"],[u.Blockchain,"Blockchain"],[u.Branding,"Branding"],[u.CgiProduction,"CGI Production"],[u.Chatbot,"Chatbot"],[u.CommunityManagement,"Community Management"],[u.ContentMarketing,"Content Marketing"],[u.Copywriting,"Copywriting"],[u.DataAnalytics,"Data Analytics"],[u.DataEngineering,"Data Engineering"],[u.DataScience,"Data Science"],[u.DesignStrategy,"Design Strategy"],[u.DevOps,"DevOps"],[u.DigitalStrategy,"Digital Strategy"],[u.Ecommerce,"E-commerce"],[u.EmailMarketing,"Email Marketing"],[u.EventMarketing,"Event Marketing"],[u.ExtendedReality,"Extended Reality (XR)"],[u.GameDevelopment,"Game Development"],[u.GraphicDesign,"Graphic Design"],[u.InfluencerMarketing,"Influencer Marketing"],[u.InstoreMarketing,"In-store Marketing"],[u.MachineLearning,"Machine Learning"],[u.MarketResearch,"Market Research"],[u.MediaBuying,"Media Buying"],[u.MobileAdvertising,"Mobile Advertising"],[u.MobileAppDesign,"Mobile App Design"],[u.MobileAppDevelopment,"Mobile App Development"],[u.MotionDesign,"Motion Design"],[u.PaidSearchMarketing,"Paid Search Marketing"],[u.PerformanceMarketing,"Performance Marketing"],[u.PublicRelations,"Public Relations"],[u.SearchEngineOptimization,"Search Engine Optimization (SEO)"],[u.SocialMediaAdvertising,"Social Media Advertising"],[u.SocialMediaManagement,"Social Media Management"],[u.UserExperienceDesign,"User Experience (UX) Design"],[u.UserInterfaceDesign,"User Interface (UI) Design"],[u.Video,"Video"],[u.VirtualReality,"Virtual Reality (VR)"],[u.WebDesign,"Web Design"],[u.WebDevelopment,"Web Development"]]),function(e){e.Apl="apl",e.Assembly="assembly",e.C="c",e.Cobol="cobol",e.Clojure="clojure",e.Cpp="cpp",e.Crystal="crystal",e.Csharp="csharp",e.Dart="dart",e.Delphi="delphi",e.Elixir="elixir",e.Erlang="erlang",e.Fsharp="fsharp",e.Go="go",e.Groovy="groovy",e.HtmlAndCss="html_and_css",e.Haskell="haskell",e.Java="java",e.JavaScript="javascript",e.Julia="julia",e.Kotlin="kotlin",e.Lisp="lisp",e.Matlab="matlab",e.ObjectiveC="objective_c",e.Php="php",e.Perl="perl",e.PowerShell="powershell",e.Python="python",e.R="r",e.Ruby="ruby",e.Rust="rust",e.Sql="sql",e.Scala="scala",e.Swift="swift",e.TypeScript="typescript",e.UnixShell="unix_shell",e.VisualBasic="visual_basic"}(d=t.TE||(t.TE={})),t.G3=new Map([[d.Apl,"APL"],[d.Assembly,"Assembly"],[d.C,"C"],[d.Cobol,"COBOL"],[d.Clojure,"Clojure"],[d.Cpp,"C++"],[d.Crystal,"Crystal"],[d.Csharp,"C#"],[d.Dart,"Dart"],[d.Delphi,"Delphi"],[d.Elixir,"Elixir"],[d.Erlang,"Erlang"],[d.Fsharp,"F#"],[d.Go,"Go"],[d.Groovy,"Groovy"],[d.HtmlAndCss,"HTML & CSS"],[d.Haskell,"Haskell"],[d.Java,"Java"],[d.JavaScript,"JavaScript"],[d.Julia,"Julia"],[d.Kotlin,"Kotlin"],[d.Lisp,"Lisp"],[d.Matlab,"MATLAB"],[d.ObjectiveC,"Objective-C"],[d.Php,"PHP"],[d.Perl,"Perl"],[d.PowerShell,"PowerShell"],[d.Python,"Python"],[d.R,"R"],[d.Ruby,"Ruby"],[d.Rust,"Rust"],[d.Sql,"SQL"],[d.Scala,"Scala"],[d.Swift,"Swift"],[d.TypeScript,"TypeScript"],[d.UnixShell,"Unix Shell"],[d.VisualBasic,"Visual Basic"]]),function(e){e.AmazonWebServices="amazon_web_services",e.Android="android",e.Azure="azure",e.DigitalOcean="digitalocean",e.Docker="docker",e.GoogleCloud="google_cloud",e.Heroku="heroku",e.IbmCloud="ibm_cloud",e.Kubernetes="kubernetes",e.Lxc="lxc",e.Linux="linux",e.MacOs="macos",e.OracleCloud="oracle_cloud",e.SalesforcePlatform="salesforce_platform",e.Windows="windows",e.IOs="ios"}(t.bn||(t.bn={})),function(e){e.AsPdotNet="aspdotnet",e.Angular="angular",e.AngularJs="angularjs",e.ApacheHBase="apache_hbase",e.ApacheSpark="apache_spark",e.BackboneJs="backbonejs",e.Bootstrap="bootstrap",e.CakePhp="cakephp",e.Cassandra="cassandra",e.Cordova="cordova",e.Django="django",e.Drupal="drupal",e.Elasticsearch="elasticsearch",e.Electron="electron",e.EmberJs="emberjs",e.Express="express",e.FastApi="fastapi",e.Firebase="firebase",e.Flask="flask",e.Flutter="flutter",e.Gatsby="gatsby",e.Hadoop="hadoop",e.IbmDb2="ibm_db2",e.Joomla="joomla",e.Laravel="laravel",e.Meteor="meteor",e.MicrosoftSqlServer="microsoft_sql_server",e.MongoDb="mongodb",e.MySqlOrMariaDb="mysql_or_mariadb",e.NextJs="nextjs",e.NodeJs="nodejs",e.NumPy="numpy",e.OracleDatabase="oracle_database",e.Pandas="pandas",e.Play="play",e.PostgreSql="postgresql",e.PyTorch="pytorch",e.Qt="qt",e.Quasar="quasar",e.React="react",e.ReactNative="react_native",e.Redis="redis",e.RubyOnRails="ruby_on_rails",e.SqLite="sqlite",e.SailsJs="sailsjs",e.Spring="spring",e.Struts="struts",e.Svelte="svelte",e.Symfony="symfony",e.TensorFlow="tensorflow",e.Unity="unity",e.UnrealEngine="unreal_engine",e.VueJs="vuejs",e.WordPress="wordpress",e.DotNet="dotnet",e.JQuery="jquery"}(t.a4||(t.a4={})),function(e){e.Bar="bar",e.Baz="baz",e.Foo="foo"}(t.aL||(t.aL={})),function(e){e.TdaVerified="tda_verified",e.Unverified="unverified",e.Verified="verified"}(t.BC||(t.BC={})),function(e){e.ContractDetail="contract_detail_screen",e.EndToEnd="end_to_end",e.IndividualContractDetail="individual_contract_detail",e.IndividualPayment="individual_payment",e.MilestoneDetail="milestone_detail",e.PaymentDetail="payment_detail",e.ProjectDetail="project_detail",e.TaskDetail="task_detail",e.SubtaskDetail="subtask_detail",e.ActiveProjectDetail="active_project_detail"}(t.y$||(t.y$={})),function(e){e.Verified="verified",e.Admin="admin"}(t.vX||(t.vX={})),function(e){e.Buyer="buyer",e.SellerTool="seller_tool",e.SellerService="seller_service"}(t.ks||(t.ks={})),function(e){e.Regular="regular",e.Admin="admin"}(t.nJ||(t.nJ={})),function(e){e.Pending="pending",e.InProgress="in_progress",e.Late="late",e.Paid="paid"}(t.bG||(t.bG={})),function(e){e.Content="content",e.Marketplace="marketplace",e.E2EManagment="e2e_managment",e.Achievements="achievements",e.TDCNotifications="tdc_notifications",e.Premium="premium",e.PostRegistration="post_registration",e.Calendar="calendar"}(p=t.W6||(t.W6={})),function(e){e.New="new",e.InProgress="in_progress",e.Resolved="resolved"}(t.CS||(t.CS={})),function(e){e.Regular="regular",e.Blue="blue",e.Orange="orange",e.Green="green",e.Red="red"}(t.DV||(t.DV={})),function(e){e.ProjectDetail="project_detail",e.MilestoneScreen="milestone_screen",e.TimedProjectScreen="timed_project_screen",e.TimedProjectDetailScreen="timed_project_detail_screen",e.PitchScreen="pitch_screen",e.PitchDetailScreen="pitch_detail_screen",e.CaseStudyScreen="case_study_screen",e.DashboardHome="dashboard_home",e.Calendar="calendar"}(t.Cx||(t.Cx={})),function(e){e.ArticlePublished="article_published",e.CaseStudyPublished="case_study_published",e.NewProject="new_project",e.ApproveMilestone="approve_milestone",e.CompleteMilestone="complete_milestone",e.PaidMilestone="paid_milestone",e.Unflag="unflag",e.Flag="flag",e.ApproveContract="approve_contract",e.SubmittedContract="submitted_contract",e.BannerProjectReady="banner_project_ready",e.BannerProjectStarted="banner_project_started",e.BannerCreatorSubmittedContract="banner_creator_submitted_contract",e.BannerOtherSubmittedContract="banner_other_submitted_contract",e.BannerCreatorSubmittedAnnex="banner_creator_submitted_annex",e.BannerOtherSubmittedAnnex="banner_other_submitted_annex",e.BannerReviewedContract="banner_reviewed_contract",e.BannerOtherReviewedContract="banner_other_reviewed_contract",e.BannerReviewedAnnex="banner_reviewed_annex",e.BannerOtherReviewedAnnex="banner_other_reviewed_annex",e.BannerApproveContract="banner_approve_contract",e.BannerApproveAnnex="banner_approve_annex",e.BannerAnnexApplied="banner_annex_applied",e.BannerApproveMilestoneBuyer="banner_approve_milestone_buyer",e.BannerApproveMilestoneSeller="banner_approve_milestone_seller",e.BannerCompleteMilestoneBuyer="banner_complete_milestone_buyer",e.BannerCompleteMilestoneSeller="banner_complete_milestone_seller",e.BannerPaymentDue="banner_payment_due",e.BannerMilestonePaid="banner_milestone_paid",e.BannerRecurringMilestone="banner_recurring_milestone",e.BannerFlagCreator="banner_flag_creator",e.BannerFlagOther="banner_flag_other",e.BannerFlagResolved="banner_flag_resolved",e.BannerTimedProjectSubmitted="banner_timed_project_submitted",e.BannerTimedProjectRejected="banner_timed_project_rejected",e.BannerTimedProjectDraftSaved="banner_timed_project_draft_saved",e.BannerTimedProjectEditSubmitted="banner_timed_project_edit_submitted",e.BannerTimedProjectEditRejected="banner_timed_project_edit_rejected",e.BannerTimedProjectDeletionRequested="banner_timed_project_deletion_requested",e.BannerPitchSubmitted="banner_pitch_submitted",e.BannerPitchRejected="banner_pitch_rejected",e.BannerPitchEditSubmitted="banner_pitch_edit_submitted",e.BannerPitchEditRejected="banner_pitch_edit_rejected",e.BannerPitchApprovedBuyer="banner_pitch_approved_buyer",e.BannerPitchApprovedSeller="banner_pitch_approved_seller",e.BannerPitchRound2ApprovedSeller="banner_pitch_round_2_approved_seller",e.BannerPitchRound2ApprovedBuyer="banner_pitch_round_2_approved_buyer",e.BannerPitchRejectedManually="banner_pitch_rejected_manually",e.BannerPitchRejectedAutomatically="banner_pitch_rejected_automatically",e.BannerPitchHired="banner_pitch_hired",e.BannerPitchDeletionRequested="banner_pitch_deletion_requested",e.BannerPitchDeleted="banner_pitch_deleted",e.BannerCaseStudyApproved="banner_case_study_approved",e.BannerCaseStudyRejected="banner_case_study_rejected",e.BannerCaseStudyEditRejected="banner_case_study_edit_rejected",e.BannerCaseStudyReviewed="banner_case_study_reviewed",e.BannerBuyerProfileApproved="banner_buyer_profile_approved",e.BannerSellerProfileApproved="banner_seller_profile_approved",e.BannerSellerProfilePending="banner_seller_profile_pending",e.BannerSellerProfileRejected="banner_seller_profile_rejected",e.BannerEventInvitePending="banner_event_invite_pending",e.ReviewContract="review_contract",e.ContractReady="contract_ready",e.ApproveAnnex="approve_annex",e.SubmittedAnnex="submitted_annex",e.ReviewAnnex="review_annex",e.AnnexReady="annex_ready",e.TerminateContract="terminate_contract",e.CancelContract="cancel_contract",e.PaymentDue="payment_due",e.PaymentOverdue="payment_overdue",e.CreateTask="create_task",e.DeleteTask="delete_task",e.ApproveCaseStudy="approve_case_study",e.RejectCaseStudy="reject_case_study",e.ApproveCaseStudyEdit="approve_case_study_edit",e.RejectCaseStudyEdit="reject_case_study_edit",e.CaseStudyReviewLive="case_study_review_live",e.CaseStudyRequestReview="case_study_request_review",e.ApproveTimedProject="approve_timed_project",e.RejectTimedProject="reject_timed_project",e.NewTimedProject="new_timed_project",e.ApproveTimedProjectEditBuyer="approve_timed_project_edit_buyer",e.ApproveTimedProjectEditSeller="approve_timed_project_edit_seller",e.RejectTimedProjectEdit="reject_timed_project_edit",e.TimedProjectDeadlinePassed="timed_project_deadline_passed",e.DeleteTimedProjectBuyer="delete_timed_project_buyer",e.DeleteTimedProjectSeller="delete_timed_project_seller",e.DeleteTimedProjectCanceled="delete_timed_project_canceled",e.PitchSubmittedSeller="pitch_submitted_seller",e.PitchSubmittedBuyer="pitch_submitted_buyer",e.PitchRejected="pitch_rejected",e.PitchEditAcceptedSeller="pitch_edit_accepted_seller",e.PitchEditAcceptedBuyer="pitch_edit_accepted_buyer",e.PitchDeletedSeller="pitch_deleted_seller",e.PitchDeletedBuyer="pitch_deleted_buyer",e.PitchRound2Accepted="pitch_round_2_accepted",e.PitchRound1Rejected="pitch_round_1_rejected",e.PitchHired="pitch_hired",e.PitchRound2Rejected="pitch_round_2_rejected",e.PitchAutomaticallyRejected="pitch_automatically_rejected",e.DeletePitchCanceled="delete_pitch_canceled"}(f=t.OH||(t.OH={})),new Map([[f.ArticlePublished,p.Content],[f.CaseStudyPublished,p.Content],[f.NewProject,p.Marketplace],[f.ApproveMilestone,p.E2EManagment],[f.CompleteMilestone,p.E2EManagment],[f.PaidMilestone,p.E2EManagment],[f.Unflag,p.E2EManagment],[f.Flag,p.E2EManagment],[f.ApproveContract,p.E2EManagment],[f.SubmittedContract,p.E2EManagment],[f.BannerProjectReady,p.E2EManagment],[f.BannerProjectStarted,p.E2EManagment],[f.BannerCreatorSubmittedContract,p.E2EManagment],[f.BannerOtherSubmittedContract,p.E2EManagment],[f.BannerCreatorSubmittedAnnex,p.E2EManagment],[f.BannerOtherSubmittedAnnex,p.E2EManagment],[f.BannerReviewedContract,p.E2EManagment],[f.BannerOtherReviewedContract,p.E2EManagment],[f.BannerReviewedAnnex,p.E2EManagment],[f.BannerOtherReviewedAnnex,p.E2EManagment],[f.BannerApproveContract,p.E2EManagment],[f.BannerApproveAnnex,p.E2EManagment],[f.BannerAnnexApplied,p.E2EManagment],[f.BannerApproveMilestoneSeller,p.E2EManagment],[f.BannerApproveMilestoneBuyer,p.E2EManagment],[f.BannerCompleteMilestoneBuyer,p.E2EManagment],[f.BannerCompleteMilestoneSeller,p.E2EManagment],[f.BannerPaymentDue,p.E2EManagment],[f.BannerMilestonePaid,p.E2EManagment],[f.BannerRecurringMilestone,p.E2EManagment],[f.BannerFlagOther,p.E2EManagment],[f.BannerFlagCreator,p.E2EManagment],[f.BannerFlagResolved,p.E2EManagment],[f.BannerTimedProjectSubmitted,p.Marketplace],[f.BannerTimedProjectRejected,p.Marketplace],[f.BannerTimedProjectDraftSaved,p.Marketplace],[f.BannerTimedProjectEditSubmitted,p.Marketplace],[f.BannerTimedProjectEditRejected,p.Marketplace],[f.BannerTimedProjectDeletionRequested,p.Marketplace],[f.BannerPitchSubmitted,p.Marketplace],[f.BannerPitchRejected,p.Marketplace],[f.BannerPitchEditRejected,p.Marketplace],[f.BannerPitchEditSubmitted,p.Marketplace],[f.BannerPitchApprovedBuyer,p.Marketplace],[f.BannerPitchApprovedSeller,p.Marketplace],[f.BannerPitchRound2ApprovedSeller,p.Marketplace],[f.BannerPitchRound2ApprovedBuyer,p.Marketplace],[f.BannerPitchRejectedManually,p.Marketplace],[f.BannerPitchRejectedAutomatically,p.Marketplace],[f.BannerPitchHired,p.Marketplace],[f.BannerPitchDeletionRequested,p.Marketplace],[f.BannerPitchDeleted,p.Marketplace],[f.BannerCaseStudyApproved,p.Content],[f.BannerCaseStudyRejected,p.Content],[f.BannerCaseStudyEditRejected,p.Content],[f.BannerCaseStudyReviewed,p.Content],[f.BannerSellerProfileApproved,p.PostRegistration],[f.BannerSellerProfilePending,p.PostRegistration],[f.BannerSellerProfileRejected,p.PostRegistration],[f.BannerBuyerProfileApproved,p.PostRegistration],[f.BannerEventInvitePending,p.Calendar],[f.ReviewContract,p.E2EManagment],[f.ContractReady,p.E2EManagment],[f.ApproveAnnex,p.E2EManagment],[f.SubmittedAnnex,p.E2EManagment],[f.ReviewAnnex,p.E2EManagment],[f.AnnexReady,p.E2EManagment],[f.TerminateContract,p.E2EManagment],[f.CancelContract,p.E2EManagment],[f.PaymentDue,p.E2EManagment],[f.PaymentOverdue,p.E2EManagment],[f.CreateTask,p.E2EManagment],[f.DeleteTask,p.E2EManagment],[f.ApproveCaseStudy,p.Content],[f.RejectCaseStudy,p.Content],[f.ApproveCaseStudyEdit,p.Content],[f.RejectCaseStudyEdit,p.Content],[f.CaseStudyReviewLive,p.Content],[f.CaseStudyRequestReview,p.Content],[f.ApproveTimedProject,p.Marketplace],[f.RejectTimedProject,p.Marketplace],[f.NewTimedProject,p.Marketplace],[f.ApproveTimedProjectEditBuyer,p.Marketplace],[f.ApproveTimedProjectEditSeller,p.Marketplace],[f.RejectTimedProjectEdit,p.Marketplace],[f.TimedProjectDeadlinePassed,p.Marketplace],[f.DeleteTimedProjectBuyer,p.Marketplace],[f.DeleteTimedProjectSeller,p.Marketplace],[f.DeleteTimedProjectCanceled,p.Marketplace],[f.PitchSubmittedSeller,p.Marketplace],[f.PitchSubmittedBuyer,p.Marketplace],[f.PitchRejected,p.Marketplace],[f.PitchEditAcceptedSeller,p.Marketplace],[f.PitchEditAcceptedBuyer,p.Marketplace],[f.PitchDeletedSeller,p.Marketplace],[f.PitchDeletedBuyer,p.Marketplace],[f.PitchRound2Accepted,p.Marketplace],[f.PitchRound1Rejected,p.Marketplace],[f.PitchHired,p.Marketplace],[f.PitchRound2Rejected,p.Marketplace],[f.PitchAutomaticallyRejected,p.Marketplace],[f.DeletePitchCanceled,p.Marketplace]]),function(e){e.Asc="asc",e.Desc="desc"}(t.b0||(t.b0={})),function(e){e.Local="local",e.Global="global",e.Undefined="undefined"}(t.rd||(t.rd={})),function(e){e.Active="active",e.Closed="closed",e.Draft="draft",e.Pending="pending",e.Archived="archived",e.Canceled="canceled"}(t.Tl||(t.Tl={})),function(e){e.Form="form",e.Video="video"}(t.tw||(t.tw={})),function(e){e.Draft="draft",e.Pending="pending",e.FirstRound="first_round",e.SecondRound="second_round",e.FirstRoundRejected="first_round_rejected",e.SecondRoundRejected="second_round_rejected",e.Chosen="chosen",e.FirstRoundWithdrawn="first_round_withdrawn",e.SecondRoundWithdrawn="second_round_withdrawn",e.Hired="hired",e.Archived="archived",e.Canceled="canceled"}(t.hv||(t.hv={})),function(e){e.Overall="overall",e.Knowledge="knowledge",e.Strategy="strategy",e.Budget="budget"}(t.gV||(t.gV={})),function(e){e.Draft="draft",e.Pending="pending",e.Published="published",e.Archived="archived",e.UnderReview="under_review",e.Verified="verified"}(t.U_||(t.U_={})),function(e){e.Information="information",e.FeatureRequest="feature-request",e.Problem="problem",e.JoinRequest="join-request",e.Other="other"}(t.Ae||(t.Ae={})),function(e){e.Public="public",e.Direct="direct"}(t.ox||(t.ox={})),function(e){e.SellerArchive="seller_archive",e.CaseStudyArchive="case_study_archive"}(t.vM||(t.vM={})),function(e){e.BitrixAssignedBy="bitrix_assigned_by"}(t.fh||(t.fh={})),function(e){e.Draft="draft",e.Published="published"}(h=t.D9||(t.D9={})),t.LC=new Map([[h.Published,"Published"],[h.Draft,"Draft"]]),function(e){e.Verification="email_verification",e.PasswordReset="password_reset",e.NewUserRegistred="new_user_registred",e.ConfirmAccount="confirm_account",e.CaseStudyReviewRequest="case_study_review_request"}(t.RD||(t.RD={})),function(e){e.One="one",e.Two="two",e.Three="three"}(t.Wp||(t.Wp={})),function(e){e.Requested="requested",e.ProjectCreated="project_created",e.Closed="closed",e.Deleted="deleted"}(m=t.xS||(t.xS={})),t.z_=new Map([[m.Requested,"Requested"],[m.ProjectCreated,"Project Created"],[m.Closed,"Closed"],[m.Deleted,"Deleted"]])},3665:function(e,t,n){"use strict";var r;n.d(t,{C:function(){return s},T:function(){return c},w:function(){return l}});var o=n(30303),i=n(42716),a=(n(23029),(0,o.createContext)("undefined"!==typeof HTMLElement?(0,i.Z)({key:"css"}):null));var s=a.Provider,l=function(e){return(0,o.forwardRef)((function(t,n){var r=(0,o.useContext)(a);return e(t,r,n)}))},c=(0,o.createContext)({});(r||(r=n.t(o,2))).useInsertionEffect&&(r||(r=n.t(o,2))).useInsertionEffect},19471:function(e,t,n){"use strict";var r;n.d(t,{xB:function(){return u},iv:function(){return d},F4:function(){return p}});var o=n(30303),i=(n(42716),n(3665)),a=(n(20703),n(65473)),s=n(23029),l=n(10527),c=(r||(r=n.t(o,2))).useInsertionEffect?(r||(r=n.t(o,2))).useInsertionEffect:o.useLayoutEffect,u=(0,i.w)((function(e,t){var n=e.styles,r=(0,s.O)([n],void 0,(0,o.useContext)(i.T)),u=(0,o.useRef)();return c((function(){var e=t.key+"-global",n=new l.m({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,i=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(o=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),u.current=[n,o],function(){n.flush()}}),[t]),c((function(){var e=u.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&(0,a.My)(t,r.next,!0),n.tags.length){var o=n.tags[n.tags.length-1].nextElementSibling;n.before=o,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,s.O)(t)}var p=function(){var e=d.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},23029:function(e,t,n){"use strict";n.d(t,{O:function(){return h}});var r=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},o={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var i=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!==typeof e},c=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return s(e)?e:e.replace(i,"-$&").toLowerCase()})),u=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(a,(function(e,t,n){return p={name:t,styles:n,next:p},t}))}return 1===o[e]||s(e)||"number"!==typeof t||0===t?t:t+"px"};function d(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return p={name:n.name,styles:n.styles,next:p},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)p={name:r.name,styles:r.styles,next:p},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=d(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!==typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":l(a)&&(r+=c(i)+":"+u(i,a)+";");else if(!Array.isArray(a)||"string"!==typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=d(e,t,a);switch(i){case"animation":case"animationName":r+=c(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var p=0;p<a.length;p++)l(a[p])&&(r+=c(i)+":"+u(i,a[p])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=p,i=n(e);return p=o,d(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var p,f=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var h=function(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,i="";p=void 0;var a=e[0];null==a||void 0===a.raw?(o=!1,i+=d(n,t,a)):i+=a[0];for(var s=1;s<e.length;s++)i+=d(n,t,e[s]),o&&(i+=a[s]);f.lastIndex=0;for(var l,c="";null!==(l=f.exec(i));)c+="-"+l[1];return{name:r(i)+c,styles:i,next:p}}},96152:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");t.Z=a},1068:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4 11h-3v3c0 .55-.45 1-1 1s-1-.45-1-1v-3H8c-.55 0-1-.45-1-1s.45-1 1-1h3V8c0-.55.45-1 1-1s1 .45 1 1v3h3c.55 0 1 .45 1 1s-.45 1-1 1z"}),"AddCircleRounded");t.Z=a},30689:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M22 5.18 10.59 16.6l-4.24-4.24 1.41-1.41 2.83 2.83 10-10L22 5.18zM12 20c-4.41 0-8-3.59-8-8s3.59-8 8-8c1.57 0 3.04.46 4.28 1.25l1.45-1.45C16.1 2.67 14.13 2 12 2 6.48 2 2 6.48 2 12s4.48 10 10 10c1.73 0 3.36-.44 4.78-1.22l-1.5-1.5c-1 .46-2.11.72-3.28.72zm7-5h-3v2h3v3h2v-3h3v-2h-3v-3h-2v3z"}),"AddTask");t.Z=a},99925:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M16.01 11H4v2h12.01v3L20 12l-3.99-4z"}),"ArrowRightAlt");t.Z=a},41584:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward");t.Z=a},21747:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"m12.36 6 .08.39.32 1.61H18v6h-3.36l-.08-.39-.32-1.61H7V6h5.36M14 4H5v17h2v-7h5.6l.4 2h7V6h-5.6L14 4z"}),"AssistantPhotoOutlined");t.Z=a},94258:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");t.Z=a},65519:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"}),"CancelOutlined");t.Z=a},72675:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm4.3 14.3c-.39.39-1.02.39-1.41 0L12 13.41 9.11 16.3c-.39.39-1.02.39-1.41 0a.9959.9959 0 0 1 0-1.41L10.59 12 7.7 9.11a.9959.9959 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0L12 10.59l2.89-2.89c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41L13.41 12l2.89 2.89c.38.38.38 1.02 0 1.41z"}),"CancelRounded");t.Z=a},38469:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"CancelSharp");t.Z=a},10501:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");t.Z=a},10062:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlankOutlined");t.Z=a},12190:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zM17.99 9l-1.41-1.42-6.59 6.59-2.58-2.57-1.42 1.41 4 3.99z"}),"CheckBoxOutlined");t.Z=a},85308:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");t.Z=a},99528:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"CheckCircleOutline");t.Z=a},54467:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircleSharp");t.Z=a},50642:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");t.Z=a},19310:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");t.Z=a},21278:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");t.Z=a},70961:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");t.Z=a},43615:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");t.Z=a},85950:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5-1-1h-5l-1 1H5v2h14V4h-3.5z"}),"DeleteOutlineOutlined");t.Z=a},62558:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"m15 5-1.41 1.41L18.17 11H2v2h16.17l-4.59 4.59L15 19l7-7-7-7z"}),"East");t.Z=a},48786:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");t.Z=a},77130:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z"}),"EditOutlined");t.Z=a},71134:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"m14 9-1-2H7V5.72c.6-.34 1-.98 1-1.72 0-1.1-.9-2-2-2s-2 .9-2 2c0 .74.4 1.38 1 1.72V21h2v-4h5l1 2h7V9h-6zm4 8h-4l-1-2H7V9h5l1 2h5v6z"}),"EmojiFlags");t.Z=a},56121:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}),"Error");t.Z=a},3602:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess");t.Z=a},56943:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");t.Z=a},93499:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M22 12c0-5.52-4.48-10-10-10S2 6.48 2 12c0 4.84 3.44 8.87 8 9.8V15H8v-3h2V9.5C10 7.57 11.57 6 13.5 6H16v3h-2c-.55 0-1 .45-1 1v2h3v3h-3v6.95c5.05-.5 9-4.76 9-9.95z"}),"FacebookOutlined");t.Z=a},60654:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("circle",{cx:"12",cy:"12",r:"8"}),"FiberManualRecord");t.Z=a},36750:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}),"InsertDriveFileOutlined");t.Z=a},33967:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDown");t.Z=a},49535:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");t.Z=a},35004:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;!function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}r.default=e,n&&n.set(e,r)}(n(30303));var o=r(n(66830)),i=n(27241);function a(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}var s=(0,o.default)((0,i.jsx)("path",{d:"M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z"}),"LinkedIn");t.Z=s},70011:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6zm9 14H6V10h12v10zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"}),"LockOutlined");t.Z=a},64401:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz");t.Z=a},77325:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");t.Z=a},25814:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");t.Z=a},17491:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt");t.Z=a},15817:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M15 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V9l-6-6zM8 17c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm6 1V4.5l5.5 5.5H14z"}),"Summarize");t.Z=a},49838:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M10 10.02h5V21h-5zM17 21h3c1.1 0 2-.9 2-2v-9h-5v11zm3-18H5c-1.1 0-2 .9-2 2v3h19V5c0-1.1-.9-2-2-2zM3 19c0 1.1.9 2 2 2h3V10H3v9z"}),"TableChart");t.Z=a},88549:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M22 5.18 10.59 16.6l-4.24-4.24 1.41-1.41 2.83 2.83 10-10L22 5.18zm-2.21 5.04c.13.57.21 1.17.21 1.78 0 4.42-3.58 8-8 8s-8-3.58-8-8 3.58-8 8-8c1.58 0 3.04.46 4.28 1.25l1.44-1.44C16.1 2.67 14.13 2 12 2 6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-1.19-.22-2.33-.6-3.39l-1.61 1.61z"}),"TaskAlt");t.Z=a},64369:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;!function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}r.default=e,n&&n.set(e,r)}(n(30303));var o=r(n(66830)),i=n(27241);function a(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}var s=(0,o.default)((0,i.jsx)("path",{d:"M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.38-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29 0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15 0 1.49.75 2.81 1.91 3.56-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07 4.28 4.28 0 0 0 4 2.98 8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21 16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56.84-.6 1.56-1.36 2.14-2.23z"}),"Twitter");t.Z=s},69646:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11zM8 15.01l1.41 1.41L11 14.84V19h2v-4.16l1.59 1.59L16 15.01 12.01 11z"}),"UploadFile");t.Z=a},38761:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11zM8 15.01l1.41 1.41L11 14.84V19h2v-4.16l1.59 1.59L16 15.01 12.01 11 8 15.01z"}),"UploadFileOutlined");t.Z=a},71713:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility");t.Z=a},694:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff");t.Z=a},47081:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(66830)),i=n(27241),a=(0,o.default)((0,i.jsx)("path",{d:"m9 19 1.41-1.41L5.83 13H22v-2H5.83l4.59-4.59L9 5l-7 7 7 7z"}),"West");t.Z=a},17291:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;!function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}r.default=e,n&&n.set(e,r)}(n(30303));var o=r(n(66830)),i=n(27241);function a(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}var s=(0,o.default)((0,i.jsx)("path",{d:"M10 15l5.19-3L10 9v6m11.56-7.83c.13.47.22 1.1.28 1.9.07.8.1 1.49.1 2.09L22 12c0 2.19-.16 3.8-.44 4.83-.25.9-.83 1.48-1.73 1.73-.47.13-1.33.22-2.65.28-1.3.07-2.49.1-3.59.1L12 19c-4.19 0-6.8-.16-7.83-.44-.9-.25-1.48-.83-1.73-1.73-.13-.47-.22-1.1-.28-1.9-.07-.8-.1-1.49-.1-2.09L2 12c0-2.19.16-3.8.44-4.83.25-.9.83-1.48 1.73-1.73.47-.13 1.33-.22 2.65-.28 1.3-.07 2.49-.1 3.59-.1L12 5c4.19 0 6.8.16 7.83.44.9.25 1.48.83 1.73 1.73z"}),"YouTube");t.Z=s},66830:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(47402)},44887:function(e,t,n){"use strict";n.d(t,{_$r:function(){return Hl},ZCF:function(){return yn}});var r=n(64649),o=n(649),i=n(22951),a=n(91976),s=n(67591),l=n(99616),c=n(11026),u=n(50824),d=n.n(u),p=n(30303),f=n(25262),h=n.n(f),m=n(22997),v=n(13839),g=n(96148),y=n(52492),b=n(92939),x=n(72188),w=n(51748),C=n(71539),j=n(33850),S=n(26605),k=n(86162),Z=n(78411),O=n(85961),E=n(21088),D=n(38542),P="NOT_FOUND";var A=function(e,t){return e===t};function M(e,t){var n="object"===typeof t?t:{equalityCheck:t},r=n.equalityCheck,o=void 0===r?A:r,i=n.maxSize,a=void 0===i?1:i,s=n.resultEqualityCheck,l=function(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}}(o),c=1===a?function(e){var t;return{get:function(n){return t&&e(t.key,n)?t.value:P},put:function(e,n){t={key:e,value:n}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}(l):function(e,t){var n=[];function r(e){var r=n.findIndex((function(n){return t(e,n.key)}));if(r>-1){var o=n[r];return r>0&&(n.splice(r,1),n.unshift(o)),o.value}return P}return{get:r,put:function(t,o){r(t)===P&&(n.unshift({key:t,value:o}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(a,l);function u(){var t=c.get(arguments);if(t===P){if(t=e.apply(null,arguments),s){var n=c.getEntries(),r=n.find((function(e){return s(e.value,t)}));r&&(t=r.value)}c.put(arguments,t)}return t}return u.clearCache=function(){return c.clear()},u}function T(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"===typeof e}))){var n=t.map((function(e){return"function"===typeof e?"function "+(e.name||"unnamed")+"()":typeof e})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function I(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];var i,a=0,s={memoizeOptions:void 0},l=r.pop();if("object"===typeof l&&(s=l,l=r.pop()),"function"!==typeof l)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof l+"]");var c=s,u=c.memoizeOptions,d=void 0===u?n:u,p=Array.isArray(d)?d:[d],f=T(r),h=e.apply(void 0,[function(){return a++,l.apply(null,arguments)}].concat(p)),m=e((function(){for(var e=[],t=f.length,n=0;n<t;n++)e.push(f[n].apply(null,arguments));return i=h.apply(null,e)}));return Object.assign(m,{resultFunc:l,memoizedResultFunc:h,dependencies:f,lastResult:function(){return i},recomputations:function(){return a},resetRecomputations:function(){return a=0}}),m};return o}var R=I(M),F=n(21792),B=n(63612),L=n(77906),N=n(48227),_=n(33267),z=n(86239),H=n(53802),W=n(98087),V=n(555),U=n(8023),q=n(54386),G=n(47148),Y=n(4228),K=n(55488),J=n(77143),X=n(66430),Q=n(27241);var $=function(e){var t=e.children,n=e.defer,r=void 0!==n&&n,o=e.fallback,i=void 0===o?null:o,a=p.useState(!1),s=(0,c.Z)(a,2),l=s[0],u=s[1];return(0,X.Z)((function(){r||u(!0)}),[r]),p.useEffect((function(){r&&u(!0)}),[r]),(0,Q.jsx)(p.Fragment,{children:l?t:i})},ee=n(76276),te=n(40727),ne=n(15977),re=n(66554),oe=n(44884),ie=n(52693),ae=n(47966),se=n(3391),le=n(30808),ce=n(25773),ue=n(82284),de=n(23492);var pe=p.createContext();var fe=p.createContext();function he(e){return(0,m.Z)("MuiTableCell",e)}var me,ve,ge,ye,be,xe,we,Ce,je=(0,v.Z)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Se=["align","className","component","padding","scope","size","sortDirection","variant"],ke=(0,y.ZP)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],t["size".concat((0,O.Z)(n.size))],"normal"!==n.padding&&t["padding".concat((0,O.Z)(n.padding))],"inherit"!==n.align&&t["align".concat((0,O.Z)(n.align))],n.stickyHeader&&t.stickyHeader]}})((function(e){var t=e.theme,n=e.ownerState;return(0,ce.Z)({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?"1px solid ".concat(t.vars.palette.TableCell.border):"1px solid\n    ".concat("light"===t.palette.mode?(0,b.$n)((0,b.Fq)(t.palette.divider,1),.88):(0,b._j)((0,b.Fq)(t.palette.divider,1),.68)),textAlign:"left",padding:16},"head"===n.variant&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},"body"===n.variant&&{color:(t.vars||t).palette.text.primary},"footer"===n.variant&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},"small"===n.size&&(0,r.Z)({padding:"6px 16px"},"&.".concat(je.paddingCheckbox),{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}),"checkbox"===n.padding&&{width:48,padding:"0 0 0 4px"},"none"===n.padding&&{padding:0},"left"===n.align&&{textAlign:"left"},"center"===n.align&&{textAlign:"center"},"right"===n.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===n.align&&{textAlign:"justify"},n.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})})),Ze=p.forwardRef((function(e,t){var n,r=(0,x.Z)({props:e,name:"MuiTableCell"}),o=r.align,i=void 0===o?"inherit":o,a=r.className,s=r.component,l=r.padding,c=r.scope,u=r.size,d=r.sortDirection,f=r.variant,h=(0,le.Z)(r,Se),m=p.useContext(pe),v=p.useContext(fe),y=v&&"head"===v.variant,b=c;"td"===(n=s||(y?"th":"td"))?b=void 0:!b&&y&&(b="col");var w=f||v&&v.variant,C=(0,ce.Z)({},r,{align:i,component:n,padding:l||(m&&m.padding?m.padding:"normal"),size:u||(m&&m.size?m.size:"medium"),sortDirection:d,stickyHeader:"head"===w&&m&&m.stickyHeader,variant:w}),j=function(e){var t=e.classes,n=e.variant,r=e.align,o=e.padding,i=e.size,a={root:["root",n,e.stickyHeader&&"stickyHeader","inherit"!==r&&"align".concat((0,O.Z)(r)),"normal"!==o&&"padding".concat((0,O.Z)(o)),"size".concat((0,O.Z)(i))]};return(0,g.Z)(a,he,t)}(C),S=null;return d&&(S="asc"===d?"ascending":"descending"),(0,Q.jsx)(ke,(0,ce.Z)({as:n,ref:t,className:(0,F.default)(j.root,a),"aria-sort":S,scope:b,ownerState:C},h))})),Oe=n(9433),Ee=n(86814),De=n(13692),Pe=n(99227),Ae=n(20604),Me=n(54098),Te=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"],Ie=p.forwardRef((function(e,t){var n=e.backIconButtonProps,r=e.count,o=e.getItemAriaLabel,i=e.nextIconButtonProps,a=e.onPageChange,s=e.page,l=e.rowsPerPage,c=e.showFirstButton,u=e.showLastButton,d=(0,le.Z)(e,Te),p=(0,Pe.Z)();return(0,Q.jsxs)("div",(0,ce.Z)({ref:t},d,{children:[c&&(0,Q.jsx)(H.Z,{onClick:function(e){a(e,0)},disabled:0===s,"aria-label":o("first",s),title:o("first",s),children:"rtl"===p.direction?me||(me=(0,Q.jsx)(Ae.Z,{})):ve||(ve=(0,Q.jsx)(Me.Z,{}))}),(0,Q.jsx)(H.Z,(0,ce.Z)({onClick:function(e){a(e,s-1)},disabled:0===s,color:"inherit","aria-label":o("previous",s),title:o("previous",s)},n,{children:"rtl"===p.direction?ge||(ge=(0,Q.jsx)(De.Z,{})):ye||(ye=(0,Q.jsx)(Ee.Z,{}))})),(0,Q.jsx)(H.Z,(0,ce.Z)({onClick:function(e){a(e,s+1)},disabled:-1!==r&&s>=Math.ceil(r/l)-1,color:"inherit","aria-label":o("next",s),title:o("next",s)},i,{children:"rtl"===p.direction?be||(be=(0,Q.jsx)(Ee.Z,{})):xe||(xe=(0,Q.jsx)(De.Z,{}))})),u&&(0,Q.jsx)(H.Z,{onClick:function(e){a(e,Math.max(0,Math.ceil(r/l)-1))},disabled:s>=Math.ceil(r/l)-1,"aria-label":o("last",s),title:o("last",s),children:"rtl"===p.direction?we||(we=(0,Q.jsx)(Me.Z,{})):Ce||(Ce=(0,Q.jsx)(Ae.Z,{}))})]}))}));function Re(e){return(0,m.Z)("MuiTablePagination",e)}var Fe,Be=(0,v.Z)("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),Le=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],Ne=(0,y.ZP)(Ze,{name:"MuiTablePagination",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme;return{overflow:"auto",color:(t.vars||t).palette.text.primary,fontSize:t.typography.pxToRem(14),"&:last-child":{padding:0}}})),_e=(0,y.ZP)(Oe.Z,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:function(e,t){return(0,ce.Z)((0,r.Z)({},"& .".concat(Be.actions),t.actions),t.toolbar)}})((function(e){var t,n=e.theme;return t={minHeight:52,paddingRight:2},(0,r.Z)(t,"".concat(n.breakpoints.up("xs")," and (orientation: landscape)"),{minHeight:52}),(0,r.Z)(t,n.breakpoints.up("sm"),{minHeight:52,paddingRight:2}),(0,r.Z)(t,"& .".concat(Be.actions),{flexShrink:0,marginLeft:20}),t})),ze=(0,y.ZP)("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:function(e,t){return t.spacer}})({flex:"1 1 100%"}),He=(0,y.ZP)("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:function(e,t){return t.selectLabel}})((function(e){var t=e.theme;return(0,ce.Z)({},t.typography.body2,{flexShrink:0})})),We=(0,y.ZP)(de.Z,{name:"MuiTablePagination",slot:"Select",overridesResolver:function(e,t){var n;return(0,ce.Z)((n={},(0,r.Z)(n,"& .".concat(Be.selectIcon),t.selectIcon),(0,r.Z)(n,"& .".concat(Be.select),t.select),n),t.input,t.selectRoot)}})((0,r.Z)({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8},"& .".concat(Be.select),{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"})),Ve=(0,y.ZP)(K.Z,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:function(e,t){return t.menuItem}})({}),Ue=(0,y.ZP)("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:function(e,t){return t.displayedRows}})((function(e){var t=e.theme;return(0,ce.Z)({},t.typography.body2,{flexShrink:0})}));function qe(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"\u2013").concat(n," of ").concat(-1!==r?r:"more than ".concat(n))}function Ge(e){return"Go to ".concat(e," page")}var Ye,Ke=p.forwardRef((function(e,t){var n,r=(0,x.Z)({props:e,name:"MuiTablePagination"}),o=r.ActionsComponent,i=void 0===o?Ie:o,a=r.backIconButtonProps,s=r.className,l=r.colSpan,c=r.component,u=void 0===c?Ze:c,d=r.count,f=r.getItemAriaLabel,h=void 0===f?Ge:f,m=r.labelDisplayedRows,v=void 0===m?qe:m,y=r.labelRowsPerPage,b=void 0===y?"Rows per page:":y,w=r.nextIconButtonProps,C=r.onPageChange,j=r.onRowsPerPageChange,S=r.page,k=r.rowsPerPage,O=r.rowsPerPageOptions,E=void 0===O?[10,25,50,100]:O,D=r.SelectProps,P=void 0===D?{}:D,A=r.showFirstButton,M=void 0!==A&&A,T=r.showLastButton,I=void 0!==T&&T,R=(0,le.Z)(r,Le),B=r,L=function(e){var t=e.classes;return(0,g.Z)({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},Re,t)}(B),N=P.native?"option":Ve;u!==Ze&&"td"!==u||(n=l||1e3);var _=(0,Z.Z)(P.id),H=(0,Z.Z)(P.labelId);return(0,Q.jsx)(Ne,(0,ce.Z)({colSpan:n,ref:t,as:u,ownerState:B,className:(0,F.default)(L.root,s)},R,{children:(0,Q.jsxs)(_e,{className:L.toolbar,children:[(0,Q.jsx)(ze,{className:L.spacer}),E.length>1&&(0,Q.jsx)(He,{className:L.selectLabel,id:H,children:b}),E.length>1&&(0,Q.jsx)(We,(0,ce.Z)({variant:"standard"},!P.variant&&{input:Fe||(Fe=(0,Q.jsx)(z.ZP,{}))},{value:k,onChange:j,id:_,labelId:H},P,{classes:(0,ce.Z)({},P.classes,{root:(0,F.default)(L.input,L.selectRoot,(P.classes||{}).root),select:(0,F.default)(L.select,(P.classes||{}).select),icon:(0,F.default)(L.selectIcon,(P.classes||{}).icon)}),children:E.map((function(e){return(0,p.createElement)(N,(0,ce.Z)({},!(0,ue.Z)(N)&&{ownerState:B},{className:L.menuItem,key:e.label?e.label:e,value:e.value?e.value:e}),e.label?e.label:e)}))})),(0,Q.jsx)(Ue,{className:L.displayedRows,children:v({from:0===d?0:S*k+1,to:-1===d?(S+1)*k:-1===k?d:Math.min(d,(S+1)*k),count:-1===d?-1:d,page:S})}),(0,Q.jsx)(i,{className:L.actions,backIconButtonProps:a,count:d,nextIconButtonProps:w,onPageChange:C,page:S,rowsPerPage:k,showFirstButton:M,showLastButton:I,getItemAriaLabel:h})]})}))})),Je=n(90736),Xe=n(11240),Qe=n(31792);e=n.hmd(e),function(e){e.resize="resize",e.debouncedResize="debouncedResize",e.viewportInnerSizeChange="viewportInnerSizeChange",e.componentError="componentError",e.unmount="unmount",e.cellModeChange="cellModeChange",e.cellClick="cellClick",e.cellDoubleClick="cellDoubleClick",e.cellMouseDown="cellMouseDown",e.cellMouseUp="cellMouseUp",e.cellKeyDown="cellKeyDown",e.cellFocusIn="cellFocusIn",e.cellFocusOut="cellFocusOut",e.cellDragEnter="cellDragEnter",e.cellDragOver="cellDragOver",e.editCellPropsChange="editCellPropsChange",e.cellEditCommit="cellEditCommit",e.cellEditStart="cellEditStart",e.cellEditStop="cellEditStop",e.rowEditStart="rowEditStart",e.rowEditStop="rowEditStop",e.rowEditCommit="rowEditCommit",e.cellNavigationKeyDown="cellNavigationKeyDown",e.rowClick="rowClick",e.rowDoubleClick="rowDoubleClick",e.rowMouseEnter="rowMouseEnter",e.rowMouseLeave="rowMouseLeave",e.editRowsModelChange="editRowsModelChange",e.columnHeaderBlur="columnHeaderBlur",e.columnHeaderFocus="columnHeaderFocus",e.columnHeaderNavigationKeyDown="columnHeaderNavigationKeyDown",e.columnHeaderKeyDown="columnHeaderKeyDown",e.columnHeaderClick="columnHeaderClick",e.columnHeaderDoubleClick="columnHeaderDoubleClick",e.columnHeaderOver="columnHeaderOver",e.columnHeaderOut="columnHeaderOut",e.columnHeaderEnter="columnHeaderEnter",e.columnHeaderLeave="columnHeaderLeave",e.columnHeaderDragStart="columnHeaderDragStart",e.columnHeaderDragOver="columnHeaderDragOver",e.columnHeaderDragEnter="columnHeaderDragEnter",e.columnHeaderDragEnd="columnHeaderDragEnd",e.selectionChange="selectionChange",e.headerSelectionCheckboxChange="headerSelectionCheckboxChange",e.rowSelectionCheckboxChange="rowSelectionCheckboxChange",e.pageChange="pageChange",e.pageSizeChange="pageSizeChange",e.rowGroupingModelChange="rowGroupingModelChange",e.rowsScroll="rowsScroll",e.rowsScrollEnd="rowsScrollEnd",e.columnSeparatorMouseDown="columnSeparatorMouseDown",e.columnResize="columnResize",e.columnWidthChange="columnWidthChange",e.columnResizeStart="columnResizeStart",e.columnResizeStop="columnResizeStop",e.columnOrderChange="columnOrderChange",e.rowsSet="rowsSet",e.rowExpansionChange="rowExpansionChange",e.visibleRowsSet="visibleRowsSet",e.columnsChange="columnsChange",e.detailPanelsExpandedRowIdsChange="detailPanelsExpandedRowIdsChange",e.pinnedColumnsChange="pinnedColumnsChange",e.preProcessorRegister="preProcessorRegister",e.preProcessorUnregister="preProcessorUnregister",e.rowGroupsPreProcessingChange="rowGroupsPreProcessingChange",e.sortModelChange="sortModelChange",e.filterModelChange="filterModelChange",e.columnVisibilityModelChange="columnVisibilityModelChange",e.stateChange="stateChange",e.columnVisibilityChange="columnVisibilityChange",e.virtualScrollerContentSizeChange="virtualScrollerContentSizeChange"}(Ye||(Ye={}));var $e=p.createContext(void 0);function et(){var e=p.useContext($e);if(void 0===e)throw new Error(["MUI: Could not find the data grid context.","It looks like you rendered your component outside of a DataGrid or DataGridPro parent component.","This can also happen if you are bundling multiple versions of the data grid."].join("\n"));return e}function tt(e){return(0,m.Z)("MuiDataGrid",e)}var nt=(0,v.Z)("MuiDataGrid",["actionsCell","autoHeight","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell","cellCheckbox","checkboxInput","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderDropZone","columnHeaderTitle","columnHeaderTitleContainer","columnHeaders","columnHeadersInner","columnHeadersInner--scrollable","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsPanel","columnsPanelRow","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filterForm","filterFormDeleteIcon","filterFormLinkOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","root","row--editable","row--editing","row","rowCount","scrollArea--left","scrollArea--right","scrollArea","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerRenderZone","pinnedColumns","pinnedColumns--left","pinnedColumns--right","pinnedColumnHeaders","pinnedColumnHeaders--left","pinnedColumnHeaders--right","withBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle"]),rt=p.createContext(void 0),ot=function(){var e=p.useContext(rt);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid/DataGridPro component.");return e},it=(0,y.ZP)("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:function(e,t){return t.main}})((function(){return{position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"}}));function at(e){var t=function(e){var t=e.classes;return(0,g.Z)({root:["main"]},tt,t)}({classes:ot().classes});return p.createElement(it,{className:t.root},e.children)}function st(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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function lt(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}var ct=p.forwardRef((function(e,t){var n=e.children,r=e.defaultHeight,o=void 0===r?null:r,i=e.defaultWidth,a=void 0===i?null:i,s=e.disableHeight,l=void 0!==s&&s,u=e.disableWidth,d=void 0!==u&&u,f=e.nonce,h=e.onResize,m=e.style,v=st(e,["children","defaultHeight","defaultWidth","disableHeight","disableWidth","nonce","onResize","style"]),g=p.useState({height:o,width:a}),y=(0,c.Z)(g,2),b=y[0],x=y[1],k=p.useRef(null),Z=p.useRef(null),O=(0,w.Z)((function(){if(Z.current){var e=Z.current.offsetHeight||0,t=Z.current.offsetWidth||0,n=(0,C.Z)(Z.current).getComputedStyle(Z.current),r=parseInt(n.paddingLeft,10)||0,o=parseInt(n.paddingRight,10)||0,i=e-(parseInt(n.paddingTop,10)||0)-(parseInt(n.paddingBottom,10)||0),a=t-r-o;(!l&&b.height!==i||!d&&b.width!==a)&&(x({height:i,width:a}),h&&h({height:i,width:a}))}}));(0,j.Z)((function(){var e;if(Z.current=k.current.parentElement,Z){var t=(0,C.Z)(null!==(e=Z.current)&&void 0!==e?e:void 0),n=function(e,t){var n=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},r=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var r=this;n(this),this.__resizeRAF__&&t.cancelAnimationFrame(this.__resizeRAF__),this.__resizeRAF__=t.requestAnimationFrame((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(r)&&(r.__resizeLast__.width=r.offsetWidth,r.__resizeLast__.height=r.offsetHeight,r.__resizeListeners__.forEach((function(t){t.call(r,e)})))}))}},o=!1,i="",a="animationstart",s="Webkit Moz O ms".split(" "),l="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),c=document.createElement("fakeelement");if(void 0!==c.style.animationName&&(o=!0),!1===o)for(var u=0;u<s.length;u++)if(void 0!==c.style[s[u]+"AnimationName"]){i="-"+s[u].toLowerCase()+"-",a=l[u],o=!0;break}var d="@"+i+"keyframes resizeanim { from { opacity: 0; } to { opacity: 0; } } ",p=i+"animation: 1ms resizeanim; ";return{addResizeListener:function(o,i){if(!o.__resizeTriggers__){var s=o.ownerDocument,l=t.getComputedStyle(o);l&&"static"==l.position&&(o.style.position="relative"),function(t){if(!t.getElementById("muiDetectElementResize")){var n=(d||"")+".Mui-resizeTriggers { "+(p||"")+'visibility: hidden; opacity: 0; } .Mui-resizeTriggers, .Mui-resizeTriggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .Mui-resizeTriggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=t.head||t.getElementsByTagName("head")[0],o=t.createElement("style");o.id="muiDetectElementResize",o.type="text/css",null!=e&&o.setAttribute("nonce",e),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(t.createTextNode(n)),r.appendChild(o)}}(s),o.__resizeLast__={},o.__resizeListeners__=[],(o.__resizeTriggers__=s.createElement("div")).className="Mui-resizeTriggers",o.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',o.appendChild(o.__resizeTriggers__),n(o),o.addEventListener("scroll",r,!0),a&&(o.__resizeTriggers__.__animationListener__=function(e){"resizeanim"==e.animationName&&n(o)},o.__resizeTriggers__.addEventListener(a,o.__resizeTriggers__.__animationListener__))}o.__resizeListeners__.push(i)},removeResizeListener:function(e,t){if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",r,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(a,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}(f,t);return n.addResizeListener(Z.current,O),O(),function(){n.removeResizeListener(Z.current,O)}}}),[f,O]);var E={overflow:"visible"},D={};l||(E.height=0,D.height=b.height),d||(E.width=0,D.width=b.width);var P=(0,S.Z)(k,t);return p.createElement("div",Object.assign({ref:P,style:Object.assign(Object.assign({},E),m)},v),null===b.height&&null===b.width?null:n(D))})),ut=function(e,t){return function(e){return e.cache}(t)?t(e):t(e.current.state)},dt={};function pt(e){return e.current}var ft=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=n[0],i=n[1],a=pt(o)?o.current.instanceId:null!=i?i:"default",s=pt(o)?o.current.state:o;if(dt[a]&&dt[a].get(t))return dt[a].get(t)(s,a);var l=R.apply(void 0,t);return dt[a]||(dt[a]=new Map),dt[a].set(t,l),l(s,a)};return r.cache=dt,r},ht=function(e){return e.rows},mt=ft(ht,(function(e){return e.totalRowCount})),vt=ft(ht,(function(e){return e.totalTopLevelRowCount})),gt=ft(ht,(function(e){return e.idRowsLookup})),yt=ft(ht,(function(e){return e.tree})),bt=ft(ht,(function(e){return e.groupingName})),xt=ft(ht,(function(e){return e.treeDepth})),wt=ft(ht,(function(e){return e.ids})),Ct=function(e){return e.sorting},jt=ft(Ct,(function(e){return e.sortedRows})),St=ft(jt,gt,(function(e,t){return e.map((function(e){return{id:e,model:t[e]}}))})),kt=ft(Ct,(function(e){return e.sortModel})),Zt=ft(kt,(function(e){return e.reduce((function(t,n,r){return t[n.field]={sortDirection:n.sort,sortIndex:e.length>1?r+1:void 0},t}),{})})),Ot=function(e){return e.columns},Et=function(e){return e.columns.all},Dt=function(e){return e.columns.lookup},Pt=ft(Et,Dt,(function(e,t){return e.map((function(e){return t[e]}))})),At=ft(Ot,(function(e){return e.columnVisibilityModel})),Mt=ft(Pt,At,(function(e,t){return e.filter((function(e){return!1!==t[e.field]}))})),Tt=(ft(Mt,(function(e){return e.map((function(e){return e.field}))})),ft(Mt,(function(e){var t=[];return{totalWidth:e.reduce((function(e,n){return t.push(e),e+n.computedWidth}),0),positions:t}}))),It=ft(Pt,(function(e){return e.filter((function(e){return e.filterable}))})),Rt=ft(It,(function(e){return e.map((function(e){return e.field}))})),Ft=ft(Mt,(function(e){return e.length})),Bt=ft(Tt,(function(e){return e.totalWidth})),Lt=function(e){return e.rowsMeta},Nt=function(e){return e.filter},_t=ft(Nt,(function(e){return e.filterModel})),zt=ft(Nt,(function(e){return e.visibleRowsLookup})),Ht=ft(Nt,(function(e){return e.filteredRowsLookup})),Wt=(ft(Nt,(function(e){return e.filteredDescendantCountLookup})),ft(zt,St,(function(e,t){return t.filter((function(t){return!1!==e[t.id]}))}))),Vt=ft(Wt,(function(e){return e.map((function(e){return e.id}))})),Ut=ft(Ht,St,(function(e,t){return t.filter((function(t){return!1!==e[t.id]}))})),qt=ft(Ut,(function(e){return e.map((function(e){return e.id}))})),Gt=ft(Wt,yt,xt,(function(e,t,n){return n<2?e:e.filter((function(e){var n;return 0===(null===(n=t[e.id])||void 0===n?void 0:n.depth)}))})),Yt=ft(Wt,(function(e){return e.length})),Kt=ft(Gt,(function(e){return e.length})),Jt=ft(_t,Dt,(function(e,t){var n;return null===(n=e.items)||void 0===n?void 0:n.filter((function(e){var n,r;if(!e.columnField)return!1;var o=t[e.columnField];if(!(null==o?void 0:o.filterOperators)||0===(null===(n=null==o?void 0:o.filterOperators)||void 0===n?void 0:n.length))return!1;var i=o.filterOperators.find((function(t){return t.value===e.operatorValue}));return!!i&&(!i.InputComponent||null!=e.value&&""!==(null===(r=e.value)||void 0===r?void 0:r.toString()))}))})),Xt=ft(Jt,(function(e){return e.reduce((function(e,t){return e[t.columnField]?e[t.columnField].push(t):e[t.columnField]=[t],e}),{})}));function Qt(){var e,t,n,r=et(),o=ot(),i=ut(r,mt),a=ut(r,Yt),s=!o.loading&&0===i,l=!o.loading&&i>0&&0===a;return s?p.createElement(o.components.NoRowsOverlay,Object.assign({},null===(e=o.componentsProps)||void 0===e?void 0:e.noRowsOverlay)):l?p.createElement(o.components.NoResultsOverlay,Object.assign({},null===(t=o.componentsProps)||void 0===t?void 0:t.noResultsOverlay)):o.loading?p.createElement(o.components.LoadingOverlay,Object.assign({},null===(n=o.componentsProps)||void 0===n?void 0:n.loadingOverlay)):null}var $t=function(e){return e.density},en=ft($t,(function(e){return e.value})),tn=ft($t,(function(e){return e.rowHeight})),nn=ft($t,(function(e){return e.headerHeight})),rn=ft($t,(function(e){return e.factor}));function on(e){var t=e.children,n=e.VirtualScrollerComponent,r=e.ColumnHeadersComponent,o=et(),i=ot(),a=ut(o,nn),s=p.useState(i.disableVirtualization),l=(0,c.Z)(s,2),u=l[0],d=l[1],f=p.useCallback((function(){d(!0)}),[]),h=p.useCallback((function(){d(!1)}),[]);o.current.unstable_disableVirtualization=f,o.current.unstable_enableVirtualization=h;var m=p.useRef(null),v=p.useRef(null),g=p.useRef(null),y=p.useRef(null);o.current.columnHeadersContainerElementRef=v,o.current.columnHeadersElementRef=m,o.current.windowRef=g,o.current.renderingZoneRef=y;var b=p.useCallback((function(e){o.current.publishEvent(Ye.resize,e)}),[o]);return p.createElement(at,null,p.createElement(Qt,null),p.createElement(r,{ref:v,innerRef:m}),p.createElement(ct,{nonce:i.nonce,disableHeight:i.autoHeight,onResize:b},(function(e){var t={width:e.width,height:e.height?e.height-a:"auto",marginTop:a};return p.createElement(n,{ref:g,style:t,disableVirtualization:u})})),t)}function an(e,t){var n=p.useRef(null);if(n.current)return n.current;var r=e.current.getLogger(t);return n.current=r,r}var sn=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,a.Z)(n,[{key:"componentDidCatch",value:function(e,t){this.props.api.current&&(this.logError(e),this.props.api.current.showError({error:e,errorInfo:t}))}},{key:"logError",value:function(e,t){this.props.logger.error("An unexpected error occurred. Error: ".concat(e&&e.message,". "),e,t)}},{key:"render",value:function(){var e;return this.props.hasError||(null===(e=this.state)||void 0===e?void 0:e.hasError)?this.props.render(this.props.componentProps||this.state):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0,error:e}}}]),n}(p.Component);function ln(e){var t=e.children,n=et(),r=an(n,"GridErrorHandler"),o=ot(),i=n.current.state.error,a=p.useCallback((function(e){n.current.publishEvent(Ye.resize,e)}),[n]);return p.createElement(sn,{hasError:null!=i,componentProps:i,api:n,logger:r,render:function(e){return p.createElement(at,null,p.createElement(ct,{nonce:o.nonce,disableHeight:o.autoHeight,onResize:a},(function(){var t;return p.createElement(o.components.ErrorOverlay,Object.assign({},e,null===(t=o.componentsProps)||void 0===t?void 0:t.errorOverlay))})))}},t)}function cn(){var e,t=et(),n=ot(),r=p.useRef(null);return t.current.footerRef=r,n.hideFooter?null:p.createElement("div",{ref:r},p.createElement(n.components.Footer,Object.assign({},null===(e=n.componentsProps)||void 0===e?void 0:e.footer)))}function un(){var e,t=et(),n=ot(),r=p.useRef(null);return t.current.headerRef=r,p.createElement("div",{ref:r},p.createElement(n.components.Header,Object.assign({},null===(e=n.componentsProps)||void 0===e?void 0:e.header)))}function dn(e){var t,n=e.item,r=e.applyValue,o=e.apiRef,i=e.focusElementRef,a=st(e,["item","applyValue","apiRef","focusElementRef"]),s=p.useState(n.value||""),l=(0,c.Z)(s,2),u=l[0],d=l[1],f=ot(),h=p.useCallback((function(e){var t=e.target.value;d(t),r(Object.assign(Object.assign({},n),{value:t}))}),[r,n]);return p.useEffect((function(){d(n.value||"")}),[n.value]),p.createElement(f.components.BaseTextField,Object.assign({label:o.current.getLocaleText("filterPanelInputLabel"),value:u,onChange:h,variant:"standard",select:!0,SelectProps:{native:!0},InputLabelProps:{shrink:!0},inputRef:i},a,null===(t=f.componentsProps)||void 0===t?void 0:t.baseTextField),p.createElement("option",{value:""},o.current.getLocaleText("filterValueAny")),p.createElement("option",{value:"true"},o.current.getLocaleText("filterValueTrue")),p.createElement("option",{value:"false"},o.current.getLocaleText("filterValueFalse")))}var pn=(0,k.Z)(p.createElement("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),fn=(0,k.Z)(p.createElement("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),hn=(0,k.Z)(p.createElement("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),mn=(0,k.Z)(p.createElement("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),vn=(0,k.Z)(p.createElement("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),gn=(0,k.Z)(p.createElement("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),yn=(0,k.Z)(p.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search"),bn=((0,k.Z)(p.createElement("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu"),(0,k.Z)(p.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle"),(0,k.Z)(p.createElement("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon")),xn=(0,k.Z)(p.createElement("path",{d:"M11 19V5h2v14z"}),"Separator"),wn=(0,k.Z)(p.createElement("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),Cn=(0,k.Z)(p.createElement("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),jn=(0,k.Z)(p.createElement("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),Sn=(0,k.Z)(p.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),kn=(0,k.Z)(p.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Zn=(0,k.Z)(p.createElement("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),On=(0,k.Z)(p.createElement("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),En=(0,k.Z)(p.createElement("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),Dn=(0,k.Z)(p.createElement("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),Pn=(0,k.Z)(p.createElement("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),An=(0,k.Z)(p.createElement("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Mn=(0,k.Z)(p.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");function Tn(e){var t,n,r=e.item,o=e.applyValue,i=e.type,a=e.apiRef,s=e.focusElementRef,l=e.InputProps,u=st(e,["item","applyValue","type","apiRef","focusElementRef","InputProps"]),d=p.useRef(),f=p.useState(null!==(t=r.value)&&void 0!==t?t:""),h=(0,c.Z)(f,2),m=h[0],v=h[1],g=p.useState(!1),y=(0,c.Z)(g,2),b=y[0],x=y[1],w=(0,Z.Z)(),C=ot(),j=p.useCallback((function(e){var t=e.target.value;clearTimeout(d.current),v(String(t)),x(!0),d.current=setTimeout((function(){o(Object.assign(Object.assign({},r),{value:t})),x(!1)}),500)}),[o,r]);return p.useEffect((function(){return function(){clearTimeout(d.current)}}),[]),p.useEffect((function(){var e,t=null!==(e=r.value)&&void 0!==e?e:"";v(String(t))}),[r.value]),p.createElement(C.components.BaseTextField,Object.assign({id:w,label:a.current.getLocaleText("filterPanelInputLabel"),placeholder:a.current.getLocaleText("filterPanelInputPlaceholder"),value:m,onChange:j,type:i||"text",variant:"standard",InputLabelProps:{shrink:!0},inputRef:s,InputProps:Object.assign(Object.assign(Object.assign({},b?{endAdornment:p.createElement(En,null)}:{}),l),{inputProps:Object.assign({max:"datetime-local"===i?"9999-12-31T23:59":"9999-12-31"},null==l?void 0:l.inputProps)})},u,null===(n=C.componentsProps)||void 0===n?void 0:n.baseTextField))}var In=/(\d+)-(\d+)-(\d+)/,Rn=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function Fn(e,t,n,r){if(!e.value)return null;var o=e.value.match(n?Rn:In).slice(1).map(Number),i=(0,c.Z)(o,5),a=i[0],s=i[1],l=i[2],u=i[3],d=i[4],p=new Date(a,s-1,l,u||0,d||0).getTime();return function(e){var o=e.value;if(!o)return!1;var i=o instanceof Date?o:new Date(o.toString());if(r)return t(i.getTime(),p);var a=(o instanceof Date?new Date(i):i).setHours(n?i.getHours():0,n?i.getMinutes():0,0,0);return t(a,p)}}var Bn=function(e){return[{value:"is",getApplyFilterFn:function(t){return Fn(t,(function(e,t){return e===t}),e)},InputComponent:Tn,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:function(t){return Fn(t,(function(e,t){return e!==t}),e)},InputComponent:Tn,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:function(t){return Fn(t,(function(e,t){return e>t}),e)},InputComponent:Tn,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:function(t){return Fn(t,(function(e,t){return e>=t}),e)},InputComponent:Tn,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:function(t){return Fn(t,(function(e,t){return e<t}),e,!e)},InputComponent:Tn,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFn:function(t){return Fn(t,(function(e,t){return e<=t}),e)},InputComponent:Tn,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:function(){return function(e){return null==e.value}}},{value:"isNotEmpty",getApplyFilterFn:function(){return function(e){return null!=e.value}}}]},Ln=function(e,t){var n=e.valueOptions,r=e.valueFormatter,i=e.field;return[""].concat("function"==typeof n?(0,o.Z)(n({field:i})):(0,o.Z)(n||[])).map((function(e){return"object"==typeof e?p.createElement("option",{key:e.value,value:e.value},e.label):p.createElement("option",{key:e,value:e},r&&""!==e?r({value:e,field:i,api:t}):e)}))};function Nn(e){var t,n,r=e.item,o=e.applyValue,i=e.type,a=e.apiRef,s=e.focusElementRef,l=st(e,["item","applyValue","type","apiRef","focusElementRef"]),u=p.useRef(),d=p.useState(null!==(t=r.value)&&void 0!==t?t:""),f=(0,c.Z)(d,2),h=f[0],m=f[1],v=p.useState(!1),g=(0,c.Z)(v,2),y=g[0],b=g[1],x=(0,Z.Z)(),w=ot(),C="singleSelect"===i?{select:!0,SelectProps:{native:!0},children:Ln(a.current.getColumn(r.columnField),a.current)}:{},j=p.useCallback((function(e){var t=e.target.value;if("singleSelect"===i){var n=a.current.getColumn(r.columnField),s="function"==typeof n.valueOptions?n.valueOptions({field:n.field}):n.valueOptions;t=s.map((function(e){return"object"==typeof e?e.value:e})).find((function(e){return String(e)===t}))}clearTimeout(u.current),m(String(t)),b(!0),u.current=setTimeout((function(){o(Object.assign(Object.assign({},r),{value:t})),b(!1)}),500)}),[a,o,r,i]);p.useEffect((function(){return function(){clearTimeout(u.current)}}),[]),p.useEffect((function(){var e,t=null!==(e=r.value)&&void 0!==e?e:"";m(String(t))}),[r.value]);var S=y?{endAdornment:p.createElement(En,null)}:l.InputProps;return p.createElement(w.components.BaseTextField,Object.assign({id:x,label:a.current.getLocaleText("filterPanelInputLabel"),placeholder:a.current.getLocaleText("filterPanelInputPlaceholder"),value:h,onChange:j,type:i||"text",variant:"standard",InputProps:S,InputLabelProps:{shrink:!0},inputRef:s},C,l,null===(n=w.componentsProps)||void 0===n?void 0:n.baseTextField))}function _n(e){var t=e.item,n=e.applyValue,r=e.type,i=e.apiRef,a=e.focusElementRef,s=st(e,["item","applyValue","type","apiRef","focusElementRef"]),l=p.useState(t.value||[]),u=(0,c.Z)(l,2),d=u[0],f=u[1],h=(0,Z.Z)();p.useEffect((function(){var e,n=null!==(e=t.value)&&void 0!==e?e:[];f(n.map(String))}),[t.value]);var m=p.useCallback((function(e,r){f(r.map(String)),n(Object.assign(Object.assign({},t),{value:(0,o.Z)(r)}))}),[n,t]);return p.createElement(B.Z,Object.assign({multiple:!0,freeSolo:!0,limitTags:1,options:[],filterOptions:function(e,t){var n=t.inputValue;return null==n||""===n?[]:[n]},id:h,value:d,onChange:m,renderTags:function(e,t){return e.map((function(e,n){return p.createElement(N.Z,Object.assign({variant:"outlined",size:"small",label:e},t({index:n})))}))},renderInput:function(e){return p.createElement(_.Z,Object.assign({},e,{label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:Object.assign(Object.assign({},e.InputLabelProps),{shrink:!0}),inputRef:a,type:r||"text",variant:"standard"}))}},s))}var zn=function(e){return null==e?null:Number(e)},Hn=function(){return[{label:"=",value:"=",getApplyFilterFn:function(e){return null==e.value||Number.isNaN(e.value)?null:function(t){var n=t.value;return zn(n)===e.value}},InputComponent:Nn,InputComponentProps:{type:"number"}},{label:"!=",value:"!=",getApplyFilterFn:function(e){return null==e.value||Number.isNaN(e.value)?null:function(t){var n=t.value;return zn(n)!==e.value}},InputComponent:Nn,InputComponentProps:{type:"number"}},{label:">",value:">",getApplyFilterFn:function(e){return null==e.value||Number.isNaN(e.value)?null:function(t){var n=t.value;return null!=n&&zn(n)>e.value}},InputComponent:Nn,InputComponentProps:{type:"number"}},{label:">=",value:">=",getApplyFilterFn:function(e){return null==e.value||Number.isNaN(e.value)?null:function(t){var n=t.value;return null!=n&&zn(n)>=e.value}},InputComponent:Nn,InputComponentProps:{type:"number"}},{label:"<",value:"<",getApplyFilterFn:function(e){return null==e.value||Number.isNaN(e.value)?null:function(t){var n=t.value;return null!=n&&zn(n)<e.value}},InputComponent:Nn,InputComponentProps:{type:"number"}},{label:"<=",value:"<=",getApplyFilterFn:function(e){return null==e.value||Number.isNaN(e.value)?null:function(t){var n=t.value;return null!=n&&zn(n)<=e.value}},InputComponent:Nn,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:function(){return function(e){return null==e.value}}},{value:"isNotEmpty",getApplyFilterFn:function(){return function(e){return null!=e.value}}},{value:"isAnyOf",getApplyFilterFn:function(e){return Array.isArray(e.value)&&0!==e.value.length?function(t){var n=t.value;return null!=n&&e.value.includes(Number(n))}:null},InputComponent:_n,InputComponentProps:{type:"number"}}]};function Wn(e,t){if(void 0!==t)return t.map((function(e){return"object"==typeof e?e.value:e})).find((function(t){return String(t)===String(e)}))}function Vn(e){var t,n,r=e.item,i=e.applyValue,a=e.type,s=e.apiRef,l=e.focusElementRef,u=st(e,["item","applyValue","type","apiRef","focusElementRef"]),d=p.useState(null!==(t=r.value)&&void 0!==t?t:""),f=(0,c.Z)(d,2),h=f[0],m=f[1],v=(0,Z.Z)(),g=ot(),y=r.columnField?s.current.getColumn(r.columnField):null,b=p.useMemo((function(){return"function"==typeof y.valueOptions?y.valueOptions({field:y.field}):y.valueOptions}),[y]),x=p.useCallback((function(e){var t=e.target.value;t=Wn(t,b),m(String(t)),i(Object.assign(Object.assign({},r),{value:t}))}),[i,r,b]);return p.useEffect((function(){var e;if(void 0!==b){if((e=Wn(r.value,b))!==r.value)return void i(Object.assign(Object.assign({},r),{value:e}))}else e=r.value;e=null!=e?e:"",m(String(e))}),[r,b,i]),p.createElement(g.components.BaseTextField,Object.assign({id:v,label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),value:h,onChange:x,type:a||"text",variant:"standard",InputLabelProps:{shrink:!0},inputRef:l,select:!0,SelectProps:{native:!0}},u,null===(n=g.componentsProps)||void 0===n?void 0:n.baseTextField),function(e,t){var n=e.valueOptions,r=e.valueFormatter,i=e.field;return[""].concat("function"==typeof n?(0,o.Z)(n({field:i})):(0,o.Z)(n||[])).map((function(e){return"object"==typeof e?p.createElement("option",{key:e.value,value:e.value},e.label):p.createElement("option",{key:e,value:e},r&&""!==e?r({value:e,field:i,api:t}):e)}))}(s.current.getColumn(r.columnField),s.current))}var Un=function(e){return"object"==typeof e?e.value:e},qn=function(e,t){return Un(e)===Un(t)},Gn=(0,L.D)();function Yn(e){var t=e.item,n=e.applyValue,r=(e.type,e.apiRef),i=e.focusElementRef,a=st(e,["item","applyValue","type","apiRef","focusElementRef"]),s=(0,Z.Z)(),l=t.columnField?r.current.getColumn(t.columnField):null,c=p.useMemo((function(){return"function"==typeof l.valueOptions?l.valueOptions({field:l.field}):l.valueOptions}),[l]),u=p.useMemo((function(){return c.map(Un)}),[c]),d=function(e,t){var n=e.valueFormatter,r=e.field;return function(e){return"object"==typeof e?e.label:n&&""!==e?n({value:e,field:r,api:t}):e}}(r.current.getColumn(t.columnField),r.current),f=p.useMemo((function(){return Array.isArray(t.value)?void 0!==c?t.value.map((function(e){var t=Un(e);return u.findIndex((function(e){return e===t}))})).filter((function(e){return e>=0})).map((function(e){return c[e]})):t.value:[]}),[t.value,c,u]);p.useEffect((function(){Array.isArray(t.value)&&f.length===t.value.length||n(Object.assign(Object.assign({},t),{value:f.map(Un)}))}),[t,f,n]);var h=p.useCallback((function(e,r){n(Object.assign(Object.assign({},t),{value:(0,o.Z)(r.map(Un))}))}),[n,t]);return p.createElement(B.Z,Object.assign({multiple:!0,freeSolo:!1,limitTags:1,options:c,isOptionEqualToValue:qn,filterOptions:Gn,id:s,value:f,onChange:h,renderTags:function(e,t){return e.map((function(e,n){return p.createElement(N.Z,Object.assign({variant:"outlined",size:"small",label:d(e)},t({index:n})))}))},renderInput:function(e){return p.createElement(_.Z,Object.assign({},e,{label:r.current.getLocaleText("filterPanelInputLabel"),placeholder:r.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:Object.assign(Object.assign({},e.InputLabelProps),{shrink:!0}),inputRef:i,type:"singleSelect",variant:"standard"}))}},a))}var Kn=function(e){return null==e||"object"!=typeof e?e:e.value};function Jn(e,t){return e===t||e!=e&&t!=t}function Xn(e,t){for(var n=e.length;n--;)if(Jn(e[n][0],t))return n;return-1}var Qn=Array.prototype.splice;function $n(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}$n.prototype.clear=function(){this.__data__=[],this.size=0},$n.prototype.delete=function(e){var t=this.__data__,n=Xn(t,e);return!(n<0)&&(n==t.length-1?t.pop():Qn.call(t,n,1),--this.size,!0)},$n.prototype.get=function(e){var t=this.__data__,n=Xn(t,e);return n<0?void 0:t[n][1]},$n.prototype.has=function(e){return Xn(this.__data__,e)>-1},$n.prototype.set=function(e,t){var n=this.__data__,r=Xn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var er="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,tr="object"==typeof self&&self&&self.Object===Object&&self,nr=er||tr||Function("return this")(),rr=nr.Symbol,or=Object.prototype,ir=or.hasOwnProperty,ar=or.toString,sr=rr?rr.toStringTag:void 0,lr=Object.prototype.toString,cr=rr?rr.toStringTag:void 0;function ur(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":cr&&cr in Object(e)?function(e){var t=ir.call(e,sr),n=e[sr];try{e[sr]=void 0;var r=!0}catch(e){}var o=ar.call(e);return r&&(t?e[sr]=n:delete e[sr]),o}(e):function(e){return lr.call(e)}(e)}function dr(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function pr(e){if(!dr(e))return!1;var t=ur(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var fr,hr=nr["__core-js_shared__"],mr=(fr=/[^.]+$/.exec(hr&&hr.keys&&hr.keys.IE_PROTO||""))?"Symbol(src)_1."+fr:"",vr=Function.prototype.toString;function gr(e){if(null!=e){try{return vr.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var yr=/^\[object .+?Constructor\]$/,br=Function.prototype,xr=Object.prototype,wr=br.toString,Cr=xr.hasOwnProperty,jr=RegExp("^"+wr.call(Cr).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Sr(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!dr(e)||(t=e,mr&&mr in t))&&(pr(e)?jr:yr).test(gr(e));var t}(n)?n:void 0}var kr=Sr(nr,"Map"),Zr=Sr(Object,"create"),Or=Object.prototype.hasOwnProperty,Er=Object.prototype.hasOwnProperty;function Dr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Pr(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Ar(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Mr(e){var t=this.__data__=new $n(e);this.size=t.size}function Tr(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Ar;++t<n;)this.add(e[t])}function Ir(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Rr(e,t){return e.has(t)}function Fr(e,t,n,r,o,i){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var u=-1,d=!0,p=2&n?new Tr:void 0;for(i.set(e,t),i.set(t,e);++u<s;){var f=e[u],h=t[u];if(r)var m=a?r(h,f,u,t,e,i):r(f,h,u,e,t,i);if(void 0!==m){if(m)continue;d=!1;break}if(p){if(!Ir(t,(function(e,t){if(!Rr(p,t)&&(f===e||o(f,e,n,r,i)))return p.push(t)}))){d=!1;break}}else if(f!==h&&!o(f,h,n,r,i)){d=!1;break}}return i.delete(e),i.delete(t),d}Dr.prototype.clear=function(){this.__data__=Zr?Zr(null):{},this.size=0},Dr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Dr.prototype.get=function(e){var t=this.__data__;if(Zr){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Or.call(t,e)?t[e]:void 0},Dr.prototype.has=function(e){var t=this.__data__;return Zr?void 0!==t[e]:Er.call(t,e)},Dr.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Zr&&void 0===t?"__lodash_hash_undefined__":t,this},Ar.prototype.clear=function(){this.size=0,this.__data__={hash:new Dr,map:new(kr||$n),string:new Dr}},Ar.prototype.delete=function(e){var t=Pr(this,e).delete(e);return this.size-=t?1:0,t},Ar.prototype.get=function(e){return Pr(this,e).get(e)},Ar.prototype.has=function(e){return Pr(this,e).has(e)},Ar.prototype.set=function(e,t){var n=Pr(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Mr.prototype.clear=function(){this.__data__=new $n,this.size=0},Mr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Mr.prototype.get=function(e){return this.__data__.get(e)},Mr.prototype.has=function(e){return this.__data__.has(e)},Mr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof $n){var r=n.__data__;if(!kr||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ar(r)}return n.set(e,t),this.size=n.size,this},Tr.prototype.add=Tr.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Tr.prototype.has=function(e){return this.__data__.has(e)};var Br=nr.Uint8Array;function Lr(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Nr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var _r=rr?rr.prototype:void 0,zr=_r?_r.valueOf:void 0,Hr=Array.isArray,Wr=Object.prototype.propertyIsEnumerable,Vr=Object.getOwnPropertySymbols,Ur=Vr?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a)&&(i[o++]=a)}return i}(Vr(e),(function(t){return Wr.call(e,t)})))}:function(){return[]};function qr(e){return null!=e&&"object"==typeof e}function Gr(e){return qr(e)&&"[object Arguments]"==ur(e)}var Yr=Object.prototype,Kr=Yr.hasOwnProperty,Jr=Yr.propertyIsEnumerable,Xr=Gr(function(){return arguments}())?Gr:function(e){return qr(e)&&Kr.call(e,"callee")&&!Jr.call(e,"callee")},Qr="object"==typeof exports&&exports&&!exports.nodeType&&exports,$r=Qr&&e&&!e.nodeType&&e,eo=$r&&$r.exports===Qr?nr.Buffer:void 0,to=(eo?eo.isBuffer:void 0)||function(){return!1},no=/^(?:0|[1-9]\d*)$/;function ro(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&no.test(e))&&e>-1&&e%1==0&&e<t}function oo(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var io={};io["[object Float32Array]"]=io["[object Float64Array]"]=io["[object Int8Array]"]=io["[object Int16Array]"]=io["[object Int32Array]"]=io["[object Uint8Array]"]=io["[object Uint8ClampedArray]"]=io["[object Uint16Array]"]=io["[object Uint32Array]"]=!0,io["[object Arguments]"]=io["[object Array]"]=io["[object ArrayBuffer]"]=io["[object Boolean]"]=io["[object DataView]"]=io["[object Date]"]=io["[object Error]"]=io["[object Function]"]=io["[object Map]"]=io["[object Number]"]=io["[object Object]"]=io["[object RegExp]"]=io["[object Set]"]=io["[object String]"]=io["[object WeakMap]"]=!1;var ao,so="object"==typeof exports&&exports&&!exports.nodeType&&exports,lo=so&&e&&!e.nodeType&&e,co=lo&&lo.exports===so&&er.process,uo=function(){try{return co&&co.binding&&co.binding("util")}catch(e){}}(),po=uo&&uo.isTypedArray,fo=po?(ao=po,function(e){return ao(e)}):function(e){return qr(e)&&oo(e.length)&&!!io[ur(e)]},ho=Object.prototype.hasOwnProperty;var mo=Object.prototype,vo=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),go=Object.prototype.hasOwnProperty;function yo(e){return null!=(t=e)&&oo(t.length)&&!pr(t)?function(e,t){var n=Hr(e),r=!n&&Xr(e),o=!n&&!r&&to(e),i=!n&&!r&&!o&&fo(e),a=n||r||o||i,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var c in e)!t&&!ho.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ro(c,l))||s.push(c);return s}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||mo))return vo(e);var t,n,r=[];for(var o in Object(e))go.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e);var t}function bo(e){return function(e,t,n){var r=t(e);return Hr(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,yo,Ur)}var xo=Object.prototype.hasOwnProperty,wo=Sr(nr,"DataView"),Co=Sr(nr,"Promise"),jo=Sr(nr,"Set"),So=Sr(nr,"WeakMap"),ko=gr(wo),Zo=gr(kr),Oo=gr(Co),Eo=gr(jo),Do=gr(So),Po=ur;(wo&&"[object DataView]"!=Po(new wo(new ArrayBuffer(1)))||kr&&"[object Map]"!=Po(new kr)||Co&&"[object Promise]"!=Po(Co.resolve())||jo&&"[object Set]"!=Po(new jo)||So&&"[object WeakMap]"!=Po(new So))&&(Po=function(e){var t=ur(e),n="[object Object]"==t?e.constructor:void 0,r=n?gr(n):"";if(r)switch(r){case ko:return"[object DataView]";case Zo:return"[object Map]";case Oo:return"[object Promise]";case Eo:return"[object Set]";case Do:return"[object WeakMap]"}return t});var Ao=Po,Mo="[object Object]",To=Object.prototype.hasOwnProperty;function Io(e,t,n,r,o){return e===t||(null==e||null==t||!qr(e)&&!qr(t)?e!=e&&t!=t:function(e,t,n,r,o,i){var a=Hr(e),s=Hr(t),l=a?"[object Array]":Ao(e),c=s?"[object Array]":Ao(t),u=(l="[object Arguments]"==l?Mo:l)==Mo,d=(c="[object Arguments]"==c?Mo:c)==Mo,p=l==c;if(p&&to(e)){if(!to(t))return!1;a=!0,u=!1}if(p&&!u)return i||(i=new Mr),a||fo(e)?Fr(e,t,n,r,o,i):function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new Br(e),new Br(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Jn(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Lr;case"[object Set]":var l=1&r;if(s||(s=Nr),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=Fr(s(e),s(t),r,o,i,a);return a.delete(e),u;case"[object Symbol]":if(zr)return zr.call(e)==zr.call(t)}return!1}(e,t,l,n,r,o,i);if(!(1&n)){var f=u&&To.call(e,"__wrapped__"),h=d&&To.call(t,"__wrapped__");if(f||h){var m=f?e.value():e,v=h?t.value():t;return i||(i=new Mr),o(m,v,n,r,i)}}return!!p&&(i||(i=new Mr),function(e,t,n,r,o,i){var a=1&n,s=bo(e),l=s.length;if(l!=bo(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:xo.call(t,u)))return!1}var d=i.get(e);if(d&&i.get(t))return d==t;var p=!0;i.set(e,t),i.set(t,e);for(var f=a;++c<l;){var h=e[u=s[c]],m=t[u];if(r)var v=a?r(m,h,u,t,e,i):r(h,m,u,e,t,i);if(!(void 0===v?h===m||o(h,m,n,r,i):v)){p=!1;break}f||(f="constructor"==u)}if(p&&!f){var g=e.constructor,y=t.constructor;g==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof y&&y instanceof y||(p=!1)}return i.delete(e),i.delete(t),p}(e,t,n,r,o,i))}(e,t,n,r,Io,o))}function Ro(){try{var e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(t){return!1}}function Fo(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}var Bo=function(e,t,n){return Math.max(t,Math.min(n,e))},Lo=(0,y.ZP)(z.ZP,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:function(e,t){return t.editInputCell}})((function(e){var t=e.theme;return Object.assign(Object.assign({},t.typography.body2),{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})}));function No(e){var t=e.id,n=e.value,r=(e.formattedValue,e.api),o=e.field,i=(e.row,e.rowNode,e.colDef),a=(e.cellMode,e.isEditable,e.tabIndex,e.hasFocus),s=(e.getValue,e.isValidating,e.debounceMs),l=void 0===s?500:s,u=st(e,["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","getValue","isValidating","debounceMs"]),d=p.useRef(),f=p.useState(n),h=(0,c.Z)(f,2),m=h[0],v=h[1],y=function(e){var t=e.classes;return(0,g.Z)({root:["editInputCell"]},tt,t)}({classes:ot().classes}),b=p.useCallback((function(e){var n=e.target.value;v(n),r.setEditCellValue({id:t,field:o,value:n,debounceMs:l},e)}),[r,l,o,t]);return p.useEffect((function(){v(n)}),[n]),(0,j.Z)((function(){a&&d.current.focus()}),[a]),p.createElement(Lo,Object.assign({inputRef:d,className:y.root,fullWidth:!0,type:"number"===i.type?i.type:"text",value:null!=m?m:"",onChange:b},u))}var _o=function(e){return function(t){return Object.assign(Object.assign({},t),{sorting:Object.assign(Object.assign({},t.sorting),{sortModel:e})})}},zo=function(e,t){var n=e.indexOf(t);return t&&-1!==n&&n+1!==e.length?e[n+1]:e[0]},Ho=function(e,t){return null==e&&null!=t?-1:null==t&&null!=e?1:null==e&&null==t?0:null},Wo=new Intl.Collator,Vo=function(e,t){var n=Ho(e,t);return null!==n?n:Number(e)-Number(t)},Uo=function(e,t){var n=Ho(e,t);return null!==n?n:e>t?1:e<t?-1:0},qo={width:100,minWidth:50,maxWidth:1/0,hide:!1,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,editable:!1,sortComparator:function(e,t){var n=Ho(e,t);return null!==n?n:"string"==typeof e?Wo.compare(e.toString(),t.toString()):e-t},type:"string",align:"left",filterOperators:[{value:"contains",getApplyFilterFn:function(e){if(!e.value)return null;var t=new RegExp(Fo(e.value),"i");return function(e){var n=e.value;return null!=n&&t.test(n.toString())}},InputComponent:Nn},{value:"equals",getApplyFilterFn:function(e){if(!e.value)return null;var t=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return function(n){var r=n.value;return null!=r&&0===t.compare(e.value,r.toString())}},InputComponent:Nn},{value:"startsWith",getApplyFilterFn:function(e){if(!e.value)return null;var t=new RegExp("^".concat(Fo(e.value),".*$"),"i");return function(e){var n=e.value;return null!=n&&t.test(n.toString())}},InputComponent:Nn},{value:"endsWith",getApplyFilterFn:function(e){if(!e.value)return null;var t=new RegExp(".*".concat(Fo(e.value),"$"),"i");return function(e){var n=e.value;return null!=n&&t.test(n.toString())}},InputComponent:Nn},{value:"isEmpty",getApplyFilterFn:function(){return function(e){var t=e.value;return""===t||null==t}}},{value:"isNotEmpty",getApplyFilterFn:function(){return function(e){var t=e.value;return""!==t&&null!=t}}},{value:"isAnyOf",getApplyFilterFn:function(e){if(!Array.isArray(e.value)||0===e.value.length)return null;var t=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return function(n){var r=n.value;return null!=r&&e.value.some((function(e){return 0===t.compare(e,r.toString()||"")}))}},InputComponent:_n}],renderEditCell:function(e){return p.createElement(No,Object.assign({},e))}},Go=(0,y.ZP)(G.Z,{name:"MuiDataGrid",slot:"Menu",overridesResolver:function(e,t){return t.menu}})((function(e){var t=e.theme;return(0,r.Z)({zIndex:t.zIndex.modal},"& .".concat(nt.menuList),{outline:0})})),Yo={"bottom-start":"top left","bottom-end":"top right"},Ko=function(e){var t,n=e.open,r=e.target,o=e.onClickAway,i=e.children,a=e.position,s=e.className,l=e.onExited,c=st(e,["open","target","onClickAway","children","position","className","onExited"]),u=p.useRef(r),d=p.useRef(n),f=ot(),h=function(e){var t=e.classes;return(0,g.Z)({root:["menu"]},tt,t)}({classes:f.classes});return p.useEffect((function(){d.current&&u.current&&u.current.focus(),d.current=n,u.current=r}),[n,r]),p.createElement(Go,Object.assign({as:f.components.BasePopper,className:(0,F.default)(s,h.root),open:n,anchorEl:r,transition:!0,placement:a},c,null===(t=f.componentsProps)||void 0===t?void 0:t.basePopper),(function(e){var t,n=e.TransitionProps,r=e.placement;return p.createElement(V.Z,{onClickAway:o},p.createElement(U.Z,Object.assign({},n,{style:{transformOrigin:Yo[r]},onExited:(t=null==n?void 0:n.onExited,function(e){t&&t(),l&&l(e)})}),p.createElement(q.Z,null,i)))}))},Jo=function(e){var t=p.useState(!1),n=(0,c.Z)(t,2),r=n[0],o=n[1],i=p.useRef(null),a=(0,Z.Z)(),s=(0,Z.Z)(),l=ot(),u=e.colDef,d=e.id,f=e.api,h=e.position,m=void 0===h?"bottom-end":h;if(!function(e){return"function"==typeof e.getActions}(u))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");var v=function(){return o(!1)},g=u.getActions(f.getRowParams(d)),y=g.filter((function(e){return!e.props.showInMenu})),b=g.filter((function(e){return e.props.showInMenu}));return p.createElement("div",{className:nt.actionsCell},y.map((function(e,t){return p.cloneElement(e,{key:t})})),b.length>0&&p.createElement(H.Z,{ref:i,id:s,"aria-label":f.getLocaleText("actionsCellMore"),"aria-controls":a,"aria-expanded":r?"true":void 0,"aria-haspopup":"true",size:"small",onClick:function(){return o(!0)}},p.createElement(l.components.MoreActionsIcon,{fontSize:"small"})),b.length>0&&p.createElement(Ko,{id:a,onClickAway:v,onClick:v,open:r,target:i.current,position:m,"aria-labelledby":s},p.createElement(W.Z,{className:nt.menuList},b.map((function(e,t){return p.cloneElement(e,{key:t})})))))},Xo=Object.assign(Object.assign({},qo),{sortable:!1,filterable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:function(e){return p.createElement(Jo,Object.assign({},e))}}),Qo=p.memo((function(e){e.id;var t=e.value,n=(e.formattedValue,e.api),r=(e.field,e.row,e.rowNode,e.colDef,e.cellMode,e.isEditable,e.hasFocus,e.tabIndex,e.getValue,st(e,["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","getValue"])),o=ot(),i=function(e){var t=e.classes;return(0,g.Z)({root:["booleanCell"]},tt,t)}({classes:o.classes}),a=p.useMemo((function(){return t?o.components.BooleanCellTrueIcon:o.components.BooleanCellFalseIcon}),[o.components.BooleanCellFalseIcon,o.components.BooleanCellTrueIcon,t]);return p.createElement(a,Object.assign({fontSize:"small",className:i.root,titleAccess:n.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":Boolean(t)},r))}));function $o(e){var t,n=e.id,r=e.value,o=(e.formattedValue,e.api),i=e.field,a=(e.row,e.rowNode,e.colDef,e.cellMode,e.isEditable,e.tabIndex,e.className),s=(e.getValue,e.hasFocus),l=(e.isValidating,e.error,st(e,["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","getValue","hasFocus","isValidating","error"])),u=p.useRef(null),d=(0,Z.Z)(),f=p.useState(r),h=(0,c.Z)(f,2),m=h[0],v=h[1],y=ot(),b=function(e){var t=e.classes;return(0,g.Z)({root:["editBooleanCell"]},tt,t)}({classes:y.classes}),x=p.useCallback((function(e){var t=e.target.checked;v(t),o.setEditCellValue({id:n,field:i,value:t},e)}),[o,i,n]);return p.useEffect((function(){v(r)}),[r]),(0,j.Z)((function(){s&&u.current.focus()}),[s]),p.createElement("label",Object.assign({htmlFor:d,className:(0,F.default)(b.root,a)},l),p.createElement(y.components.BaseCheckbox,Object.assign({id:d,inputRef:u,checked:Boolean(m),onChange:x,size:"small"},null===(t=y.componentsProps)||void 0===t?void 0:t.baseCheckbox)))}var ei=Object.assign(Object.assign({},qo),{type:"boolean",align:"center",headerAlign:"center",renderCell:function(e){return e.rowNode.isAutoGenerated?"":p.createElement(Qo,Object.assign({},e))},renderEditCell:function(e){return p.createElement($o,Object.assign({},e))},sortComparator:Vo,valueFormatter:function(e){var t=e.value,n=e.api;return t?n.getLocaleText("booleanCellTrueLabel"):n.getLocaleText("booleanCellFalseLabel")},filterOperators:[{value:"is",getApplyFilterFn:function(e){if(!e.value)return null;var t="true"===e.value;return function(e){var n=e.value;return Boolean(n)===t}},InputComponent:dn}]}),ti=function(e){return"Escape"===e},ni=function(e){return"Enter"===e},ri=function(e){return"Tab"===e},oi=function(e){return" "===e},ii=function(e){return"Delete"===e||"Backspace"===e},ai=/^((?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])|(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC82\uDCB0-\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD34\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC9-\uDDCC\uDDCE\uDDCF\uDE2C-\uDE37\uDE3E\uDEDF-\uDEEA\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC35-\uDC46\uDC5E\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDEAB-\uDEB7\uDF1D-\uDF2B]|\uD806[\uDC2C-\uDC3A\uDD30-\uDD35\uDD37\uDD38\uDD3B-\uDD3E\uDD40\uDD42\uDD43\uDDD1-\uDDD7\uDDDA-\uDDE0\uDDE4\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE8A-\uDE99]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDEF3-\uDEF6]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF51-\uDF87\uDF8F-\uDF92\uDFE4\uDFF0\uDFF1]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uDB40[\uDD00-\uDDEF])(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])|(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC82\uDCB0-\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD34\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC9-\uDDCC\uDDCE\uDDCF\uDE2C-\uDE37\uDE3E\uDEDF-\uDEEA\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC35-\uDC46\uDC5E\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDEAB-\uDEB7\uDF1D-\uDF2B]|\uD806[\uDC2C-\uDC3A\uDD30-\uDD35\uDD37\uDD38\uDD3B-\uDD3E\uDD40\uDD42\uDD43\uDDD1-\uDDD7\uDDDA-\uDDE0\uDDE4\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE8A-\uDE99]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDEF3-\uDEF6]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF51-\uDF87\uDF8F-\uDF92\uDFE4\uDFF0\uDFF1]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uDB40[\uDD00-\uDDEF])|(?:[0-9\xB2\xB3\xB9\xBC-\xBE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D58-\u0D5E\u0D66-\u0D78\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]|\uD800[\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDEE1-\uDEFB\uDF20-\uDF23\uDF41\uDF4A\uDFD1-\uDFD5]|\uD801[\uDCA0-\uDCA9]|\uD802[\uDC58-\uDC5F\uDC79-\uDC7F\uDCA7-\uDCAF\uDCFB-\uDCFF\uDD16-\uDD1B\uDDBC\uDDBD\uDDC0-\uDDCF\uDDD2-\uDDFF\uDE40-\uDE48\uDE7D\uDE7E\uDE9D-\uDE9F\uDEEB-\uDEEF\uDF58-\uDF5F\uDF78-\uDF7F\uDFA9-\uDFAF]|\uD803[\uDCFA-\uDCFF\uDD30-\uDD39\uDE60-\uDE7E\uDF1D-\uDF26\uDF51-\uDF54\uDFC5-\uDFCB]|\uD804[\uDC52-\uDC6F\uDCF0-\uDCF9\uDD36-\uDD3F\uDDD0-\uDDD9\uDDE1-\uDDF4\uDEF0-\uDEF9]|\uD805[\uDC50-\uDC59\uDCD0-\uDCD9\uDE50-\uDE59\uDEC0-\uDEC9\uDF30-\uDF3B]|\uD806[\uDCE0-\uDCF2\uDD50-\uDD59]|\uD807[\uDC50-\uDC6C\uDD50-\uDD59\uDDA0-\uDDA9\uDFC0-\uDFD4]|\uD809[\uDC00-\uDC6E]|\uD81A[\uDE60-\uDE69\uDEC0-\uDEC9\uDF50-\uDF59\uDF5B-\uDF61]|\uD81B[\uDE80-\uDE96]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDFCE-\uDFFF]|\uD838[\uDD40-\uDD49\uDEF0-\uDEF9]|\uD83A[\uDCC7-\uDCCF\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9])|[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]|(?:[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDD-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7C\uDE80-\uDE86\uDE90-\uDEAC\uDEB0-\uDEBA\uDEC0-\uDEC5\uDED0-\uDED9\uDEE0-\uDEE7\uDEF0-\uDEF6\uDF00-\uDF92\uDF94-\uDFCA])|(?:[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]))$/i,si=function(e){return ai.test(e)},li=["Enter","Escape","Tab"],ci=["Enter","Tab"],ui=function(e){return ci.indexOf(e)>-1},di=function(e){return function(e){return"Home"===e||"End"===e}(e)||function(e){return 0===e.indexOf("Arrow")}(e)||function(e){return 0===e.indexOf("Page")}(e)||oi(e)},pi=function(e){return!!e.key},fi=function(e){return ri(e)||ti(e)},hi=p.forwardRef((function(e,t){var n,r=e.field,o=e.id,i=e.value,a=(e.formattedValue,e.row,e.rowNode,e.colDef,e.isEditable,e.cellMode,e.hasFocus),s=e.tabIndex,l=(e.getValue,st(e,["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","getValue"])),c=et(),u=ot(),d=function(e){var t=e.classes;return(0,g.Z)({root:["checkboxInput"]},tt,t)}({classes:u.classes}),f=p.useRef(null),h=(0,S.Z)(f,t),m=c.current.getCellElement(o,r);p.useLayoutEffect((function(){0===s&&m&&(m.tabIndex=-1)}),[m,s]),p.useLayoutEffect((function(){a&&f.current&&f.current.querySelector("input").focus()}),[a]);var v=p.useCallback((function(t){oi(t.key)&&t.stopPropagation(),di(t.key)&&!t.shiftKey&&c.current.publishEvent(Ye.cellNavigationKeyDown,e,t)}),[c,e]),y=!u.isRowSelectable||u.isRowSelectable(c.current.getRowParams(o)),b=c.current.getLocaleText(i?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return p.createElement(u.components.BaseCheckbox,Object.assign({ref:h,tabIndex:s,checked:i,onChange:function(e){var t={value:e.target.checked,id:o};c.current.publishEvent(Ye.rowSelectionCheckboxChange,t,e)},className:d.root,color:"primary",inputProps:{"aria-label":b},onKeyDown:v,disabled:!y},null===(n=u.componentsProps)||void 0===n?void 0:n.baseCheckbox,l))})),mi=p.memo(hi),vi=function(e){return e.focus},gi=ft(vi,(function(e){return e.cell})),yi=ft(vi,(function(e){return e.columnHeader})),bi=function(e){return e.tabIndex},xi=ft(bi,(function(e){return e.cell})),wi=ft(bi,(function(e){return e.columnHeader})),Ci=function(e){return e.selection},ji=ft(Ci,(function(e){return e.length})),Si=ft(Ci,gt,(function(e,t){return new Map(e.map((function(e){return[e,t[e]]})))})),ki=ft(Ci,(function(e){return e.reduce((function(e,t){return e[t]=t,e}),{})})),Zi=function(e){return e.pagination},Oi=ft(Zi,(function(e){return e.page})),Ei=ft(Zi,(function(e){return e.pageSize})),Di=(ft(Zi,(function(e){return e.pageCount})),ft(Zi,yt,xt,Wt,Gt,(function(e,t,n,r,o){var i=o.length,a=Math.min(e.pageSize*e.page,i-1),s=Math.min(a+e.pageSize-1,i-1);if(-1===a||-1===s)return null;if(n<2)return{firstRowIndex:a,lastRowIndex:s};for(var l=o[a],c=s-a+1,u=r.findIndex((function(e){return e.id===l.id})),d=u,p=0;d<r.length&&p<=c;){var f=t[r[d].id].depth;(p<c||f>0)&&(d+=1),0===f&&(p+=1)}return{firstRowIndex:u,lastRowIndex:d-1}}))),Pi=ft(Wt,Di,(function(e,t){return t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]})),Ai=ft(Vt,Di,(function(e,t){return t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]})),Mi=p.forwardRef((function(e,t){var n,r=st(e,["field","colDef"]),o=p.useState(!1),i=(0,c.Z)(o,2)[1],a=et(),s=ot(),l=function(e){var t=e.classes;return(0,g.Z)({root:["checkboxInput"]},tt,t)}({classes:s.classes}),u=ut(a,wi),d=ut(a,Ci),f=ut(a,Vt),h=ut(a,Ai),m=p.useMemo((function(){return"function"!=typeof s.isRowSelectable?d:d.filter((function(e){return!!a.current.getRow(e)&&s.isRowSelectable(a.current.getRowParams(e))}))}),[a,s.isRowSelectable,d]),v=p.useMemo((function(){return(s.pagination&&s.checkboxSelectionVisibleOnly?h:f).reduce((function(e,t){return e[t]=!0,e}),{})}),[s.pagination,s.checkboxSelectionVisibleOnly,h,f]),y=p.useMemo((function(){return m.filter((function(e){return v[e]})).length}),[m,v]),b=y>0&&y<Object.keys(v).length,x=y>0,w=null!==u&&u.field===e.field?0:-1;p.useLayoutEffect((function(){var t=a.current.getColumnHeaderElement(e.field);0===w&&t&&(t.tabIndex=-1)}),[w,a,e.field]);var C=p.useCallback((function(t){" "===t.key&&a.current.publishEvent(Ye.headerSelectionCheckboxChange,{value:!x}),di(t.key)&&!t.shiftKey&&a.current.publishEvent(Ye.columnHeaderNavigationKeyDown,e,t)}),[a,e,x]),j=p.useCallback((function(){i((function(e){return!e}))}),[]);p.useEffect((function(){return a.current.subscribeEvent(Ye.selectionChange,j)}),[a,j]);var S=a.current.getLocaleText(x?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return p.createElement(s.components.BaseCheckbox,Object.assign({ref:t,indeterminate:b,checked:x,onChange:function(e){var t={value:e.target.checked};a.current.publishEvent(Ye.headerSelectionCheckboxChange,t)},className:l.root,color:"primary",inputProps:{"aria-label":S},tabIndex:w,onKeyDown:C},null===(n=s.componentsProps)||void 0===n?void 0:n.baseCheckbox,r))})),Ti=Object.assign(Object.assign({},ei),{field:"__check__",type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,valueGetter:function(e){return void 0!==ki(e.api.state,e.api.instanceId)[e.id]},renderHeader:function(e){return p.createElement(Mi,Object.assign({},e))},renderCell:function(e){return p.createElement(mi,Object.assign({},e))}});function Ii(e){var t=e.id,n=e.value,r=(e.formattedValue,e.api),o=e.field,i=(e.row,e.rowNode,e.colDef),a=(e.cellMode,e.isEditable,e.tabIndex,e.hasFocus),s=(e.getValue,e.inputProps),l=(e.isValidating,st(e,["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","getValue","inputProps","isValidating"])),u="dateTime"===i.type,d=p.useRef(),f=p.useMemo((function(){var e,t;return t=null==(e=null==n?null:n instanceof Date?n:new Date((null!=n?n:"").toString()))||Number.isNaN(e.getTime())?"":new Date(e.getTime()-60*e.getTimezoneOffset()*1e3).toISOString().substr(0,u?16:10),{parsed:e,formatted:t}}),[n,u]),h=p.useState(f),m=(0,c.Z)(h,2),v=m[0],y=m[1],b=function(e){var t=e.classes;return(0,g.Z)({root:["editInputCell"]},tt,t)}({classes:ot().classes}),x=p.useCallback((function(e){var n,i=e.target.value;if(""===i)n=null;else{var a=i.split("T"),s=(0,c.Z)(a,2),l=s[0],u=s[1],d=l.split("-"),p=(0,c.Z)(d,3),f=p[0],h=p[1],m=p[2];if((n=new Date).setFullYear(f,Number(h)-1,m),n.setHours(0,0,0,0),u){var v=u.split(":"),g=(0,c.Z)(v,2),b=g[0],x=g[1];n.setHours(Number(b),Number(x),0,0)}}y({parsed:n,formatted:i}),r.setEditCellValue({id:t,field:o,value:n},e)}),[r,o,t]);return p.useEffect((function(){y((function(e){var t,n;return f.parsed!==e.parsed&&(null===(t=f.parsed)||void 0===t?void 0:t.getTime())!==(null===(n=e.parsed)||void 0===n?void 0:n.getTime())?f:e}))}),[f]),(0,j.Z)((function(){a&&d.current.focus()}),[a]),p.createElement(z.ZP,Object.assign({inputRef:d,fullWidth:!0,className:b.root,type:u?"datetime-local":"date",inputProps:Object.assign({max:u?"9999-12-31T23:59":"9999-12-31"},s),value:v.formatted,onChange:x},l))}var Ri=function(e){return p.createElement(Ii,Object.assign({},e))};var Fi,Bi,Li,Ni=Object.assign(Object.assign({},qo),{type:"date",sortComparator:Uo,valueFormatter:function(e){var t=e.value;return t instanceof Date?t.toLocaleDateString():t},filterOperators:Bn(),renderEditCell:Ri}),_i=Object.assign(Object.assign({},qo),{type:"dateTime",sortComparator:Uo,valueFormatter:function(e){var t=e.value;return t instanceof Date?t.toLocaleString():t},filterOperators:Bn(!0),renderEditCell:Ri}),zi=Object.assign(Object.assign({},qo),{type:"number",align:"right",headerAlign:"right",sortComparator:Vo,valueParser:function(e){return""===e?null:Number(e)},valueFormatter:function(e){var t=e.value;return t&&function(e){return"number"==typeof e}(t)&&t.toLocaleString()||t},filterOperators:Hn()});!function(e){e.Cell="cell",e.Row="row"}(Fi||(Fi={})),function(e){e.Edit="edit",e.View="view"}(Bi||(Bi={})),function(e){e.Edit="edit",e.View="view"}(Li||(Li={}));var Hi=function(e){return"object"==typeof e?p.createElement(K.Z,{key:e.value,value:e.value},e.label):p.createElement(K.Z,{key:e,value:e},e)};function Wi(e){var t,n,r=this,o=e.id,i=e.value,a=(e.formattedValue,e.api),s=e.field,l=e.row,u=(e.rowNode,e.colDef),f=(e.cellMode,e.isEditable,e.tabIndex,e.className,e.getValue,e.hasFocus),h=(e.isValidating,e.error),m=st(e,["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","getValue","hasFocus","isValidating","error"]),v=p.useRef(),g=p.useRef(),y=ot(),b=p.useState("cell"===y.editMode),x=(0,c.Z)(b,2),w=x[0],C=x[1];return n="function"==typeof u.valueOptions?u.valueOptions({id:o,row:l,field:s}):u.valueOptions,u.valueFormatter&&(n=n.map((function(e){if("object"==typeof e)return e;var t={field:s,api:a,value:e};return{value:e,label:String(u.valueFormatter(t))}}))),(0,j.Z)((function(){f&&g.current.focus()}),[f]),p.createElement(y.components.BaseSelect,Object.assign({ref:v,inputRef:g,value:i,onChange:function(e){return lt(r,void 0,void 0,d().mark((function t(){var n,r;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return C(!1),t.next=3,a.setEditCellValue({id:o,field:s,value:e.target.value},e);case 3:if(n=t.sent,y.editMode!==Fi.Row&&!1!==n){t.next=6;break}return t.abrupt("return");case 6:return t.next=8,Promise.resolve(a.commitCellChange({id:o,field:s},e));case 8:if(t.t0=t.sent,!t.t0){t.next=11;break}t.t0=(a.setCellMode(o,s,"view"),e.key);case 11:if(!t.t0){t.next=14;break}r=a.getCellParams(o,s),a.publishEvent(Ye.cellNavigationKeyDown,r,e);case 14:case"end":return t.stop()}}),t)})))},open:w,onOpen:function(){C(!0)},MenuProps:{onClose:function(e,t){y.editMode!==Fi.Row?("backdropClick"===t||ti(e.key))&&a.setCellMode(o,s,"view"):C(!1)}},error:h,fullWidth:!0},m,null===(t=y.componentsProps)||void 0===t?void 0:t.baseSelect),n.map(Hi))}var Vi,Ui,qi,Gi,Yi=Object.assign(Object.assign({},qo),{type:"singleSelect",renderEditCell:function(e){return p.createElement(Wi,Object.assign({},e))},filterOperators:[{value:"is",getApplyFilterFn:function(e){return null==e.value||""===e.value?null:function(t){var n=t.value;return Kn(n)===Kn(e.value)}},InputComponent:Vn},{value:"not",getApplyFilterFn:function(e){return null==e.value||""===e.value?null:function(t){var n=t.value;return Kn(n)!==Kn(e.value)}},InputComponent:Vn},{value:"isAnyOf",getApplyFilterFn:function(e){if(!Array.isArray(e.value)||0===e.value.length)return null;var t=e.value.map(Kn);return function(e){var n=e.value;return t.includes(Kn(n))}},InputComponent:Yn}]}),Ki=function(){var e={string:qo,number:zi,date:Ni,dateTime:_i,boolean:ei,singleSelect:Yi,actions:Xo};return e.__default__=qo,e},Ji="client",Xi="server";!function(e){e.And="and",e.Or="or"}(Vi||(Vi={})),function(e){e.left="left",e.right="right"}(Ui||(Ui={})),function(e){e.Compact="compact",e.Standard="standard",e.Comfortable="comfortable"}(qi||(qi={}));var Qi=function(e){return e.detailPanel.contentCache},$i=function(e){var t=e.id,n=e.value,r=ot(),o=et(),i=function(e){var t=e.classes,n=e.isExpanded;return(0,g.Z)({root:["detailPanelToggleCell",n&&"detailPanelToggleCell--expanded"]},tt,t)}({classes:r.classes,isExpanded:n}),a=ut(o,Qi),s=p.isValidElement(a[t]),l=n?r.components.DetailPanelCollapseIcon:r.components.DetailPanelExpandIcon;return p.createElement(H.Z,{size:"small",tabIndex:-1,disabled:!s,className:i.root,"aria-label":n?o.current.getLocaleText("collapseDetailPanel"):o.current.getLocaleText("expandDetailPanel")},p.createElement(l,{fontSize:"inherit"}))},ea=(0,y.ZP)("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:function(e,t){return[(0,r.Z)({},"&.".concat(nt.autoHeight),t.autoHeight),(0,r.Z)({},"& .".concat(nt.editBooleanCell),t.editBooleanCell),(0,r.Z)({},"& .".concat(nt["cell--editing"]),t["cell--editing"]),(0,r.Z)({},"& .".concat(nt["cell--textCenter"]),t["cell--textCenter"]),(0,r.Z)({},"& .".concat(nt["cell--textLeft"]),t["cell--textLeft"]),(0,r.Z)({},"& .".concat(nt["cell--textRight"]),t["cell--textRight"]),(0,r.Z)({},"& .".concat(nt["cell--withRenderer"]),t["cell--withRenderer"]),(0,r.Z)({},"& .".concat(nt.cell),t.cell),(0,r.Z)({},"& .".concat(nt.cellCheckbox),t.cellCheckbox),(0,r.Z)({},"& .".concat(nt.checkboxInput),t.checkboxInput),(0,r.Z)({},"& .".concat(nt["columnHeader--alignCenter"]),t["columnHeader--alignCenter"]),(0,r.Z)({},"& .".concat(nt["columnHeader--alignLeft"]),t["columnHeader--alignLeft"]),(0,r.Z)({},"& .".concat(nt["columnHeader--alignRight"]),t["columnHeader--alignRight"]),(0,r.Z)({},"& .".concat(nt["columnHeader--dragging"]),t["columnHeader--dragging"]),(0,r.Z)({},"& .".concat(nt["columnHeader--moving"]),t["columnHeader--moving"]),(0,r.Z)({},"& .".concat(nt["columnHeader--numeric"]),t["columnHeader--numeric"]),(0,r.Z)({},"& .".concat(nt["columnHeader--sortable"]),t["columnHeader--sortable"]),(0,r.Z)({},"& .".concat(nt["columnHeader--sorted"]),t["columnHeader--sorted"]),(0,r.Z)({},"& .".concat(nt.columnHeader),t.columnHeader),(0,r.Z)({},"& .".concat(nt.columnHeaderCheckbox),t.columnHeaderCheckbox),(0,r.Z)({},"& .".concat(nt.columnHeaderDraggableContainer),t.columnHeaderDraggableContainer),(0,r.Z)({},"& .".concat(nt.columnHeaderTitleContainer),t.columnHeaderTitleContainer),(0,r.Z)({},"& .".concat(nt["columnSeparator--resizable"]),t["columnSeparator--resizable"]),(0,r.Z)({},"& .".concat(nt["columnSeparator--resizing"]),t["columnSeparator--resizing"]),(0,r.Z)({},"& .".concat(nt.columnSeparator),t.columnSeparator),(0,r.Z)({},"& .".concat(nt.filterIcon),t.filterIcon),(0,r.Z)({},"& .".concat(nt.iconSeparator),t.iconSeparator),(0,r.Z)({},"& .".concat(nt.menuIcon),t.menuIcon),(0,r.Z)({},"& .".concat(nt.menuIconButton),t.menuIconButton),(0,r.Z)({},"& .".concat(nt.menuOpen),t.menuOpen),(0,r.Z)({},"& .".concat(nt.menuList),t.menuList),(0,r.Z)({},"& .".concat(nt["row--editable"]),t["row--editable"]),(0,r.Z)({},"& .".concat(nt["row--editing"]),t["row--editing"]),(0,r.Z)({},"& .".concat(nt.row),t.row),(0,r.Z)({},"& .".concat(nt.sortIcon),t.sortIcon),(0,r.Z)({},"& .".concat(nt.withBorder),t.withBorder),(0,r.Z)({},"& .".concat(nt.treeDataGroupingCell),t.treeDataGroupingCell),(0,r.Z)({},"& .".concat(nt.treeDataGroupingCellToggle),t.treeDataGroupingCellToggle),(0,r.Z)({},"& .".concat(nt.detailPanelToggleCell),t.detailPanelToggleCell),(0,r.Z)({},"& .".concat(nt["detailPanelToggleCell--expanded"]),t["detailPanelToggleCell--expanded"]),t.root]}})((function(e){var t,n,o=e.theme,i="light"===o.palette.mode?(0,b.$n)((0,b.Fq)(o.palette.divider,1),.88):(0,b._j)((0,b.Fq)(o.palette.divider,1),.68);return Object.assign(Object.assign({flex:1,boxSizing:"border-box",position:"relative",border:"1px solid ".concat(i),borderRadius:o.shape.borderRadius,color:o.palette.text.primary},o.typography.body2),(n={outline:"none",height:"100%",display:"flex",flexDirection:"column"},(0,r.Z)(n,"&.".concat(nt.autoHeight),{height:"auto"}),(0,r.Z)(n,"& .".concat(nt.columnHeader,", & .").concat(nt.cell),{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"}),(0,r.Z)(n,"& .".concat(nt.columnHeader,":focus-within, & .").concat(nt.cell,":focus-within"),{outline:"solid ".concat((0,b.Fq)(o.palette.primary.main,.5)," 1px"),outlineWidth:1,outlineOffset:-1}),(0,r.Z)(n,"& .".concat(nt.columnHeader,":focus, & .").concat(nt.cell,":focus"),{outline:"solid ".concat(o.palette.primary.main," 1px")}),(0,r.Z)(n,"& .".concat(nt.columnHeaderCheckbox,", & .").concat(nt.cellCheckbox),{padding:0,justifyContent:"center",alignItems:"center"}),(0,r.Z)(n,"& .".concat(nt.columnHeader),{position:"relative",display:"flex",alignItems:"center"}),(0,r.Z)(n,"& .".concat(nt["columnHeader--sorted"]," .").concat(nt.iconButtonContainer),{visibility:"visible",width:"auto"}),(0,r.Z)(n,"& .".concat(nt.columnHeader,":not(.").concat(nt["columnHeader--sorted"],") .").concat(nt.sortIcon),{opacity:0,transition:o.transitions.create(["opacity"],{duration:o.transitions.duration.shorter})}),(0,r.Z)(n,"& .".concat(nt.columnHeader,":not(.").concat(nt["columnHeader--sorted"],"):hover .").concat(nt.sortIcon),{opacity:.5}),(0,r.Z)(n,"& .".concat(nt.columnHeaderTitleContainer),{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden",padding:"0 6px"}),(0,r.Z)(n,"& .".concat(nt.sortIcon,", & .").concat(nt.filterIcon),{fontSize:"inherit"}),(0,r.Z)(n,"& .".concat(nt["columnHeader--sortable"]),{cursor:"pointer"}),(0,r.Z)(n,"& .".concat(nt["columnHeader--alignCenter"]," .").concat(nt.columnHeaderTitleContainer),{justifyContent:"center"}),(0,r.Z)(n,"& .".concat(nt["columnHeader--alignRight"]," .").concat(nt.columnHeaderDraggableContainer,", & .").concat(nt["columnHeader--alignRight"]," .").concat(nt.columnHeaderTitleContainer),{flexDirection:"row-reverse"}),(0,r.Z)(n,"& .".concat(nt["columnHeader--alignCenter"]," .").concat(nt.menuIcon,", & .").concat(nt["columnHeader--alignRight"]," .").concat(nt.menuIcon),{marginRight:"auto",marginLeft:-6}),(0,r.Z)(n,"& .".concat(nt["columnHeader--moving"]),{backgroundColor:o.palette.action.hover}),(0,r.Z)(n,"& .".concat(nt.columnSeparator),{position:"absolute",zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:i}),(0,r.Z)(n,"& .".concat(nt["columnSeparator--sideLeft"]),{left:-12}),(0,r.Z)(n,"& .".concat(nt["columnSeparator--sideRight"]),{right:-12}),(0,r.Z)(n,"& .".concat(nt["columnSeparator--resizable"]),(0,r.Z)({cursor:"col-resize",touchAction:"none","&:hover":{color:o.palette.text.primary,"@media (hover: none)":{color:i}}},"&.".concat(nt["columnSeparator--resizing"]),{color:o.palette.text.primary})),(0,r.Z)(n,"& .".concat(nt.iconSeparator),{color:"inherit"}),(0,r.Z)(n,"& .".concat(nt.menuIcon),{width:0,visibility:"hidden",fontSize:20,marginRight:-6,display:"flex",alignItems:"center"}),(0,r.Z)(n,"& .".concat(nt.columnHeader,":hover"),(t={},(0,r.Z)(t,"& .".concat(nt.iconButtonContainer),{visibility:"visible",width:"auto"}),(0,r.Z)(t,"& .".concat(nt.menuIcon),{width:"auto",visibility:"visible"}),t)),(0,r.Z)(n,".".concat(nt.menuOpen),{visibility:"visible",width:"auto"}),(0,r.Z)(n,"& .".concat(nt.row),{display:"flex",width:"fit-content",breakInside:"avoid","&:hover, &.Mui-hovered":{backgroundColor:o.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:(0,b.Fq)(o.palette.primary.main,o.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:(0,b.Fq)(o.palette.primary.main,o.palette.action.selectedOpacity+o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(0,b.Fq)(o.palette.primary.main,o.palette.action.selectedOpacity)}}}}),(0,r.Z)(n,"& .".concat(nt.cell),{display:"flex",alignItems:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(i)}),(0,r.Z)(n,"& .".concat(nt.cell,".").concat(nt["cell--editing"]),{padding:1,display:"flex",boxShadow:o.shadows[2],backgroundColor:o.palette.background.paper,"&:focus-within":{outline:"solid ".concat(o.palette.primary.main," 1px"),outlineOffset:"-1px"}}),(0,r.Z)(n,"& .".concat(nt["row--editing"]),{boxShadow:o.shadows[2]}),(0,r.Z)(n,"& .".concat(nt["row--editing"]," .").concat(nt.cell),{boxShadow:o.shadows[0],backgroundColor:o.palette.background.paper}),(0,r.Z)(n,"& .".concat(nt.editBooleanCell),{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"}),(0,r.Z)(n,"& .".concat(nt.booleanCell,'[data-value="true"]'),{color:o.palette.text.secondary}),(0,r.Z)(n,"& .".concat(nt.booleanCell,'[data-value="false"]'),{color:o.palette.text.disabled}),(0,r.Z)(n,"& .".concat(nt.actionsCell),{display:"inline-flex",alignItems:"center",gridGap:o.spacing(1)}),(0,r.Z)(n,"& .".concat(nt.withBorder),{borderRight:"1px solid ".concat(i)}),(0,r.Z)(n,"& .".concat(nt["cell--textLeft"]),{justifyContent:"flex-start"}),(0,r.Z)(n,"& .".concat(nt["cell--textRight"]),{justifyContent:"flex-end"}),(0,r.Z)(n,"& .".concat(nt["cell--textCenter"]),{justifyContent:"center"}),(0,r.Z)(n,"& .".concat(nt.columnHeaderDraggableContainer),{display:"flex",width:"100%"}),(0,r.Z)(n,"& .".concat(nt["columnHeader--dragging"]),{background:o.palette.background.paper,padding:"0 12px",borderRadius:o.shape.borderRadius,opacity:o.palette.action.disabledOpacity}),(0,r.Z)(n,"& .".concat(nt.treeDataGroupingCell),{display:"flex",alignItems:"center",width:"100%"}),(0,r.Z)(n,"& .".concat(nt.treeDataGroupingCellToggle),{flex:"0 0 28px",alignSelf:"stretch",marginRight:o.spacing(2)}),(0,r.Z)(n,"& .".concat(nt.groupingCriteriaCell),{display:"flex",alignItems:"center",width:"100%"}),(0,r.Z)(n,"& .".concat(nt.groupingCriteriaCellToggle),{flex:"0 0 28px",alignSelf:"stretch",marginRight:o.spacing(2)}),n))})),ta=p.forwardRef((function(e,t){var n,o=ot(),i=e.children,a=e.className,s=st(e,["children","className"]),l=et(),c=ut(l,Ft),u=ut(l,mt),d=p.useRef(null),f=(0,S.Z)(d,t);return l.current.rootElementRef=d,p.createElement($,null,p.createElement(ea,Object.assign({ref:f,className:(0,F.default)(a,null===(n=o.classes)||void 0===n?void 0:n.root,nt.root,(0,r.Z)({},nt.autoHeight,o.autoHeight)),role:"grid","aria-colcount":c,"aria-rowcount":u,"aria-multiselectable":!o.disableMultipleSelection,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"]},s),i))})),na=(0,y.ZP)("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:function(e,t){return t.footerContainer}})((function(){return{display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52}})),ra=p.forwardRef((function(e,t){var n=e.className,r=st(e,["className"]),o=function(e){var t=e.classes;return(0,g.Z)({root:["footerContainer"]},tt,t)}({classes:ot().classes});return p.createElement(na,Object.assign({ref:t,className:(0,F.default)(o.root,n)},r))})),oa=(0,y.ZP)("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:function(e,t){return t.overlay}})((function(e){var t=e.theme;return{display:"flex",position:"absolute",top:0,left:0,right:0,bottom:0,alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:(0,b.Fq)(t.palette.background.default,t.palette.action.disabledOpacity)}})),ia=p.forwardRef((function(e,t){var n,r,o=e.className,i=e.style,a=st(e,["className","style"]),s=et(),l=ot(),u=function(e){var t=e.classes;return(0,g.Z)({root:["overlay"]},tt,t)}({classes:l.classes}),d=ut(s,nn),f=p.useState((function(){var e,t;return null!==(t=null===(e=s.current.getRootDimensions())||void 0===e?void 0:e.viewportInnerSize)&&void 0!==t?t:null})),h=(0,c.Z)(f,2),m=h[0],v=h[1],y=p.useCallback((function(){var e,t;v(null!==(t=null===(e=s.current.getRootDimensions())||void 0===e?void 0:e.viewportInnerSize)&&void 0!==t?t:null)}),[s]);(0,j.Z)((function(){return s.current.subscribeEvent(Ye.viewportInnerSizeChange,y)}),[s,y]);var b=null!==(n=null==m?void 0:m.height)&&void 0!==n?n:0;return l.autoHeight&&0===b&&(b="auto"),m?p.createElement(oa,Object.assign({ref:t,className:(0,F.default)(u.root,o),style:Object.assign({height:b,width:null!==(r=null==m?void 0:m.width)&&void 0!==r?r:0,top:d,position:"absolute",left:0},i)},a)):null})),aa=(0,y.ZP)("div",{name:"MuiDataGrid",slot:"ToolbarContainer",overridesResolver:function(e,t){return t.toolbarContainer}})((function(e){return{display:"flex",alignItems:"center",padding:e.theme.spacing(.5,.5,0)}})),sa=p.forwardRef((function(e,t){var n=e.className,r=e.children,o=st(e,["className","children"]),i=function(e){var t=e.classes;return(0,g.Z)({root:["toolbarContainer"]},tt,t)}({classes:ot().classes});return r?p.createElement(aa,Object.assign({ref:t,className:(0,F.default)(n,i.root)},o),r):null})),la=(0,y.ZP)("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:function(e,t){return t.iconButtonContainer}})((function(){return{display:"flex",visibility:"hidden",width:0}})),ca=p.forwardRef((function(e,t){var n=e.className,r=st(e,["className"]),o=function(e){var t=e.classes;return(0,g.Z)({root:["iconButtonContainer"]},tt,t)}({classes:ot().classes});return p.createElement(la,Object.assign({ref:t,className:(0,F.default)(o.root,n)},r))})),ua=p.memo((function(e){var t=e.direction,n=e.index,r=e.sortingOrder,o=et(),i=ot(),a=function(e){var t=e.classes;return(0,g.Z)({icon:["sortIcon"]},tt,t)}(Object.assign(Object.assign({},e),{classes:i.classes})),s=function(e,t,n,r){var o=e.ColumnUnsortedIcon,i={};return"asc"===t?o=e.ColumnSortedAscendingIcon:"desc"===t?o=e.ColumnSortedDescendingIcon:(o=e.ColumnUnsortedIcon,i.sortingOrder=r),o?p.createElement(o,Object.assign({fontSize:"small",className:n},i)):null}(i.components,t,a.icon,r);if(!s)return null;var l=p.createElement(H.Z,{tabIndex:-1,"aria-label":o.current.getLocaleText("columnHeaderSortIconLabel"),title:o.current.getLocaleText("columnHeaderSortIconLabel"),size:"small"},s);return p.createElement(ca,null,null!=n&&p.createElement(ee.Z,{badgeContent:n,color:"default"},l),null==n&&l)}));function da(e,t){return e.closest(".".concat(t))}function pa(e){return null!=e&&e.classList.contains(nt.cell)}function fa(e){return e.replace(/["\\]/g,"\\$&")}function ha(e,t){return e.querySelector(".".concat(nt.row,'[data-id="').concat(fa(String(t)),'"]'))}var ma,va=(0,y.ZP)("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:function(e,t){return t.columnHeaderTitle}})((function(e){return{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:e.theme.typography.fontWeightMedium}})),ga=p.forwardRef((function(e,t){var n=e.className,r=st(e,["className"]),o=function(e){var t=e.classes;return(0,g.Z)({root:["columnHeaderTitle"]},tt,t)}({classes:ot().classes});return p.createElement(va,Object.assign({ref:t,className:(0,F.default)(o.root,n)},r))}));function ya(e){var t,n=e.label,r=e.description,o=e.columnWidth,i=ot(),a=p.useRef(null),s=p.useState(""),l=(0,c.Z)(s,2),u=l[0],d=l[1];return p.useEffect((function(){if(!r&&a&&a.current){var e=(t=a.current).scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth;d(e?n:"")}var t}),[a,o,r,n]),p.createElement(i.components.BaseTooltip,Object.assign({title:r||u},null===(t=i.componentsProps)||void 0===t?void 0:t.baseTooltip),p.createElement(ga,{ref:a},n))}!function(e){e.Left="left",e.Right="right"}(ma||(ma={}));var ba,xa=p.memo((function(e){e.resizable,e.resizing;var t=e.height,n=e.side,r=void 0===n?ma.Right:n,o=st(e,["resizable","resizing","height","side"]),i=ot(),a=function(e){var t=e.resizable,n=e.resizing,r=e.classes,o=e.side,i={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&"columnSeparator--side".concat((0,O.Z)(o))],icon:["iconSeparator"]};return(0,g.Z)(i,tt,r)}(Object.assign(Object.assign({},e),{side:r,classes:i.classes})),s=p.useCallback((function(e){e.preventDefault(),e.stopPropagation()}),[]);return p.createElement("div",Object.assign({className:a.root,style:{minHeight:t,opacity:i.showColumnRightBorder?0:1}},o,{onClick:s}),p.createElement(i.components.ColumnResizeIcon,{className:a.icon}))})),wa=p.memo((function(e){var t=e.column,n=e.open,r=e.columnMenuId,o=e.columnMenuButtonId,i=e.iconButtonRef,a=et(),s=ot(),l=function(e){var t=e.classes,n=e.open;return(0,g.Z)({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},tt,t)}(Object.assign(Object.assign({},e),{classes:s.classes})),c=p.useCallback((function(e){e.preventDefault(),e.stopPropagation(),a.current.toggleColumnMenu(t.field)}),[a,t.field]);return p.createElement("div",{className:l.root},p.createElement(H.Z,{ref:i,tabIndex:-1,className:l.button,"aria-label":a.current.getLocaleText("columnMenuLabel"),title:a.current.getLocaleText("columnMenuLabel"),size:"small",onClick:c,"aria-expanded":n?"true":void 0,"aria-haspopup":"true","aria-controls":r,id:o},p.createElement(s.components.ColumnMenuIcon,{fontSize:"small"})))})),Ca=function(e){return e.preferencePanel};function ja(e){var t,n=e.counter,r=et(),o=ot(),i=function(e){var t=e.classes;return(0,g.Z)({icon:["filterIcon"]},tt,t)}(Object.assign(Object.assign({},e),{classes:o.classes})),a=p.useCallback((function(e){e.preventDefault(),e.stopPropagation();var t=Ca(r.current.state),n=t.open,o=t.openedPanelValue;n&&o===ba.filters?r.current.hideFilterPanel():r.current.showFilterPanel()}),[r]);if(!n)return null;var s=p.createElement(H.Z,{onClick:a,color:"default","aria-label":r.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1},p.createElement(o.components.ColumnFilteredIcon,{className:i.icon,fontSize:"small"}));return p.createElement(o.components.BaseTooltip,Object.assign({title:r.current.getLocaleText("columnHeaderFiltersTooltipActive")(n),enterDelay:1e3},null===(t=o.componentsProps)||void 0===t?void 0:t.baseTooltip),p.createElement(ca,null,n>1&&p.createElement(ee.Z,{badgeContent:n,color:"default"},s),1===n&&s))}function Sa(e){var t=e.columnMenuId,n=e.columnMenuButtonId,r=e.ContentComponent,o=e.contentComponentProps,i=e.field,a=e.open,s=e.target,l=e.onExited,c=et(),u=c.current.getColumn(i),d=p.useCallback((function(e){e.stopPropagation(),c.current.hideColumnMenu()}),[c]);return s?p.createElement(Ko,{placement:"bottom-"+("right"===u.align?"start":"end"),open:a,target:s,onClickAway:d,onExited:l},p.createElement(r,Object.assign({currentColumn:u,hideMenu:d,open:a,id:t,labelledby:n},o))):null}function ka(e){var t,n,r,o,i=e.column,a=e.columnMenuOpen,s=e.colIndex,l=e.headerHeight,u=e.isResizing,d=e.isLastColumn,f=e.sortDirection,h=e.sortIndex,m=e.filterItemsCounter,v=e.hasFocus,y=e.tabIndex,b=e.extendRowFullWidth,x=e.disableReorder,w=e.separatorSide,C=et(),j=ot(),S=p.useRef(null),k=(0,Z.Z)(),O=(0,Z.Z)(),E=p.useRef(null),D=p.useState(a),P=(0,c.Z)(D,2),A=P[0],M=P[1],T=null!==(t=C.current.getRootDimensions())&&void 0!==t?t:{hasScrollX:!1,hasScrollY:!1},I=T.hasScrollX,R=T.hasScrollY,B=null;i.renderHeader&&(B=i.renderHeader(C.current.getColumnHeaderParams(i.field)));var L,N=p.useCallback((function(e){return function(t){t.currentTarget.contains(t.target)&&C.current.publishEvent(e,C.current.getColumnHeaderParams(i.field),t)}}),[C,i.field]),_={onClick:N(Ye.columnHeaderClick),onDoubleClick:N(Ye.columnHeaderDoubleClick),onMouseOver:N(Ye.columnHeaderOver),onMouseOut:N(Ye.columnHeaderOut),onMouseEnter:N(Ye.columnHeaderEnter),onMouseLeave:N(Ye.columnHeaderLeave),onKeyDown:N(Ye.columnHeaderKeyDown),onFocus:N(Ye.columnHeaderFocus),onBlur:N(Ye.columnHeaderBlur)},z={onDragStart:N(Ye.columnHeaderDragStart),onDragEnter:N(Ye.columnHeaderDragEnter),onDragOver:N(Ye.columnHeaderDragOver),onDragEnd:N(Ye.columnHeaderDragEnd)},H=d?!(d&&I&&!R)&&!b:j.showColumnRightBorder,W=function(e){var t=e.column,n=e.classes,r=e.isDragging,o=e.sortDirection,i=e.showRightBorder,a=null!=o,s="number"===t.type,l={root:["columnHeader","left"===t.headerAlign&&"columnHeader--alignLeft","center"===t.headerAlign&&"columnHeader--alignCenter","right"===t.headerAlign&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",a&&"columnHeader--sorted",s&&"columnHeader--numeric",i&&"withBorder"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"]};return(0,g.Z)(l,tt,n)}(Object.assign(Object.assign({},e),{classes:j.classes,showRightBorder:H})),V=i.computedWidth;null!=f&&(L="asc"===f?"ascending":"descending"),p.useEffect((function(){A||M(a)}),[A,a]);var U=p.useCallback((function(){M(!1)}),[]),q=!j.disableColumnMenu&&!i.disableColumnMenu&&p.createElement(wa,{column:i,columnMenuId:k,columnMenuButtonId:O,open:A,iconButtonRef:E}),G=null!==(n=i.sortingOrder)&&void 0!==n?n:j.sortingOrder,Y=p.createElement(p.Fragment,null,!j.disableColumnFilter&&p.createElement(ja,{counter:m}),i.sortable&&!i.hideSortIcons&&p.createElement(ua,{direction:f,index:h,sortingOrder:G}));p.useLayoutEffect((function(){var e=C.current.state.columnMenu;if(v&&!e.open){var t=S.current.querySelector('[tabindex="0"]');t?t.focus():S.current.focus()}}));var K="function"==typeof i.headerClassName?i.headerClassName({field:i.field,colDef:i}):i.headerClassName;return p.createElement("div",Object.assign({ref:S,className:(0,F.default)(W.root,K),"data-field":i.field,style:{width:V,minWidth:V,maxWidth:V},role:"columnheader",tabIndex:y,"aria-colindex":s+1,"aria-sort":L},_),p.createElement("div",Object.assign({className:W.draggableContainer,draggable:!j.disableColumnReorder&&!x&&!i.disableReorder},z),p.createElement("div",{className:W.titleContainer},B||p.createElement(ya,{label:null!==(r=i.headerName)&&void 0!==r?r:i.field,description:i.description,columnWidth:V}),Y),q),p.createElement(xa,{resizable:!j.disableColumnResize&&!!i.resizable,resizing:u,height:l,onMouseDown:N(Ye.columnSeparatorMouseDown),side:w}),p.createElement(Sa,{columnMenuId:k,columnMenuButtonId:O,field:i.field,open:a,target:E.current,ContentComponent:j.components.ColumnMenu,contentComponentProps:null===(o=j.componentsProps)||void 0===o?void 0:o.columnMenu,onExited:U}))}!function(e){e.filters="filters",e.columns="columns"}(ba||(ba={}));var Za=function(e){var t=e.onClick,n=et(),r=ot(),o=p.useCallback((function(e){t(e),n.current.showPreferences(ba.columns)}),[n,t]);return r.disableColumnSelector?null:p.createElement(K.Z,{onClick:o},n.current.getLocaleText("columnMenuShowColumns"))},Oa=function(e){var t=e.column,n=e.onClick,r=et(),o=ot(),i=p.useCallback((function(e){n(e),r.current.showFilterPanel(null==t?void 0:t.field)}),[r,null==t?void 0:t.field,n]);return o.disableColumnFilter||!(null==t?void 0:t.filterable)?null:p.createElement(K.Z,{onClick:i},r.current.getLocaleText("columnMenuFilter"))},Ea=p.forwardRef((function(e,t){var n=e.hideMenu,r=(e.currentColumn,e.open),o=e.id,i=e.labelledby,a=e.className,s=e.children,l=st(e,["hideMenu","currentColumn","open","id","labelledby","className","children"]),c=p.useCallback((function(e){ri(e.key)&&e.preventDefault(),fi(e.key)&&n(e)}),[n]);return p.createElement(W.Z,Object.assign({id:o,ref:t,className:(0,F.default)(nt.menuList,a),"aria-labelledby":i,onKeyDown:c,autoFocus:r},l),s)})),Da=function(e,t){var n={},r=0,o=0,i=[];if(e.all.forEach((function(t){var a,s=Object.assign({},e.lookup[t]);!1===e.columnVisibilityModel[t]?s.computedWidth=0:(s.flex&&s.flex>0?(r+=s.flex,a=s.minWidth,i.push(s)):a=Bo(s.width,s.minWidth,s.maxWidth),o+=a,s.computedWidth=a);n[t]=s})),r>0&&o<t){var a=(t-o)/r;i.forEach((function(e){e.computedWidth=Bo(e.computedWidth+a*e.flex,e.minWidth,e.maxWidth)}))}return Object.assign(Object.assign({},e),{lookup:n})},Pa=function(e){var t,n,r,i,a,s=e.apiRef,l=e.columnsToUpsert,c=e.columnsTypes,u=e.currentColumnVisibilityModel,d=void 0===u?At(s):u,p=e.shouldRegenColumnVisibilityModelFromColumns,f=e.reset;if(f)a={all:[],lookup:{}};else{var h=Ot(s.current.state);a={all:(0,o.Z)(h.all),lookup:Object.assign({},h.lookup)}}var m={};l.forEach((function(e){m[e.field]=!0,null==a.lookup[e.field]?(a.lookup[e.field]=Object.assign(Object.assign({},function(e,t){return t&&e[t]?e[t]:e.__default__}(c,e.type)),e),a.all.push(e.field)):a.lookup[e.field]=Object.assign(Object.assign({},a.lookup[e.field]),e)}));var v=Object.assign({},a.lookup),g=s.current.unstable_applyPreProcessors("hydrateColumns",a),y={};if(p)if(f)g.all.forEach((function(e){y[e]=!a.lookup[e].hide}));else{var b=Object.assign({},d),x=!1;g.all.forEach((function(e){var t;if(m[e]||v[e]!==g.lookup[e]){var n=null===(t=d[e])||void 0===t||t,r=!g.lookup[e].hide;r!==n&&(x=!0,b[e]=r)}})),y=x?b:d}else y=d;var w=Object.assign(Object.assign({},g),{columnVisibilityModel:y});return Da(w,null!==(i=null===(r=null===(n=(t=s.current).getRootDimensions)||void 0===n?void 0:n.call(t))||void 0===r?void 0:r.viewportInnerSize.width)&&void 0!==i?i:0)},Aa=function(e){return function(t){return Object.assign(Object.assign({},t),{columns:e})}},Ma=function(e){var t=e.column,n=e.onClick,r=et(),o=ot(),i=p.useRef(),a=1===Mt(r).filter((function(e){return!0!==e.disableColumnMenu})).length,s=p.useCallback((function(e){a||(n(e),i.current=setTimeout((function(){r.current.setColumnVisibility(null==t?void 0:t.field,!1)}),100))}),[r,null==t?void 0:t.field,n,a]);return p.useEffect((function(){return function(){return clearTimeout(i.current)}}),[]),o.disableColumnSelector||!1===t.hideable?null:p.createElement(K.Z,{onClick:s,disabled:a},r.current.getLocaleText("columnMenuHideColumn"))},Ta=function(e){var t=e.column,n=e.onClick,r=et(),o=ut(r,kt),i=p.useMemo((function(){if(!t)return null;var e=o.find((function(e){return e.field===t.field}));return null==e?void 0:e.sort}),[t,o]),a=p.useCallback((function(e){n(e);var o=e.currentTarget.getAttribute("data-value")||null;r.current.sortColumn(t,o)}),[r,t,n]);return t&&t.sortable?p.createElement(p.Fragment,null,p.createElement(K.Z,{onClick:a,disabled:null==i},r.current.getLocaleText("columnMenuUnsort")),p.createElement(K.Z,{onClick:a,"data-value":"asc",disabled:"asc"===i},r.current.getLocaleText("columnMenuSortAsc")),p.createElement(K.Z,{onClick:a,"data-value":"desc",disabled:"desc"===i},r.current.getLocaleText("columnMenuSortDesc"))):null},Ia=p.forwardRef((function(e,t){var n=e.hideMenu,r=e.currentColumn,o=et(),i=[p.createElement(Ta,{onClick:n,column:r}),p.createElement(Oa,{onClick:n,column:r}),p.createElement(Ma,{onClick:n,column:r}),p.createElement(Za,{onClick:n,column:r})],a=o.current.unstable_applyPreProcessors("columnMenu",i,r);return p.createElement(Ea,Object.assign({ref:t},e),a.map((function(e,t){return p.cloneElement(e,{key:t,onClick:n,column:r})})))})),Ra=(0,y.ZP)("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:function(e,t){return t.panelContent}})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function Fa(e){var t=e.className,n=st(e,["className"]),r=function(e){var t=e.classes;return(0,g.Z)({root:["panelContent"]},tt,t)}({classes:ot().classes});return p.createElement(Ra,Object.assign({className:(0,F.default)(t,r.root)},n))}var Ba=(0,y.ZP)("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:function(e,t){return t.panelFooter}})((function(e){return{padding:e.theme.spacing(.5),display:"flex",justifyContent:"space-between"}}));function La(e){var t=e.className,n=st(e,["className"]),r=function(e){var t=e.classes;return(0,g.Z)({root:["panelFooter"]},tt,t)}({classes:ot().classes});return p.createElement(Ba,Object.assign({className:(0,F.default)(t,r.root)},n))}var Na=(0,y.ZP)("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:function(e,t){return t.panelHeader}})((function(e){return{padding:e.theme.spacing(1)}}));function _a(e){var t=e.className,n=st(e,["className"]),r=function(e){var t=e.classes;return(0,g.Z)({root:["panelHeader"]},tt,t)}({classes:ot().classes});return p.createElement(Na,Object.assign({className:(0,F.default)(t,r.root)},n))}var za=(0,y.ZP)("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:function(e,t){return t.panelWrapper}})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),Ha=function(){return!0};function Wa(e){var t=e.className,n=st(e,["className"]),r=function(e){var t=e.classes;return(0,g.Z)({root:["panelWrapper"]},tt,t)}({classes:ot().classes});return p.createElement(oe.Z,{open:!0,disableEnforceFocus:!0,isEnabled:Ha},p.createElement(za,Object.assign({tabIndex:-1,className:(0,F.default)(t,r.root)},n)))}var Va=!1;"undefined"!=typeof process&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FRESHCHAT_TOKEN:"539e3257-4d1f-4072-8033-b237731c824f",REACT_APP_FRESHCHAT_WIDGET_UUID:"",REACT_APP_GOOGLE_ANALYTIS_MEASUREMENT_ID:"G-S8ER4J03EX",REACT_APP_FRESHCHAT_HOST:"https://topdigitalagency.freshchat.com",REACT_APP_CALENDLY_URL:"https://calendly.com/connectwithspona/30min?month=2024-01",REACT_APP_GATEWAY_URL:"/api/"}.GRID_EXPERIMENTAL_ENABLED&&Ro()&&window.localStorage.getItem("GRID_EXPERIMENTAL_ENABLED")?Va="true"===window.localStorage.getItem("GRID_EXPERIMENTAL_ENABLED"):"undefined"!=typeof process&&(Va="true"==={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FRESHCHAT_TOKEN:"539e3257-4d1f-4072-8033-b237731c824f",REACT_APP_FRESHCHAT_WIDGET_UUID:"",REACT_APP_GOOGLE_ANALYTIS_MEASUREMENT_ID:"G-S8ER4J03EX",REACT_APP_FRESHCHAT_HOST:"https://topdigitalagency.freshchat.com",REACT_APP_CALENDLY_URL:"https://calendly.com/connectwithspona/30min?month=2024-01",REACT_APP_GATEWAY_URL:"/api/"}.GRID_EXPERIMENTAL_ENABLED);var Ua=Va,qa={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",errorOverlayDefaultLabel:"An error occurred.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:function(e){return"".concat(e,1!==e?" active filters":" active filter")},toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",columnsPanelTextFieldLabel:"Find column",columnsPanelTextFieldPlaceholder:"Column title",columnsPanelDragIconLabel:"Reorder column",columnsPanelShowAllButton:"Show all",columnsPanelHideAllButton:"Hide all",filterPanelAddFilter:"Add filter",filterPanelDeleteIconLabel:"Delete",filterPanelOperators:"Operators",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorEquals:"equals",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:function(e){return"".concat(e,1!==e?" active filters":" active filter")},columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:function(e){return"".concat(e.toLocaleString(),1!==e?" rows selected":" row selected")},footerTotalRows:"Total Rows:",footerTotalVisibleRows:function(e,t){return"".concat(e.toLocaleString()," of ").concat(t.toLocaleString())},checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"true",booleanCellFalseLabel:"false",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:function(e){return"Group by ".concat(e)},unGroupColumn:function(e){return"Stop grouping by ".concat(e)},expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{}},Ga=(0,y.ZP)("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:function(e,t){return t.columnsPanel}})((function(){return{padding:"8px 0px 8px 8px"}})),Ya=(0,y.ZP)("div",{name:"MuiDataGrid",slot:"ColumnsPanelRow",overridesResolver:function(e,t){return t.columnsPanelRow}})((function(e){var t=e.theme;return(0,r.Z)({display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px"},"& .".concat(te.Z.root),{marginRight:t.spacing(.5)})})),Ka=(0,y.ZP)(H.Z)({justifyContent:"flex-end"});var Ja=(0,v.Z)("MuiDataGrid",["panel","paper"]),Xa=(0,y.ZP)(G.Z,{name:"MuiDataGrid",slot:"Panel",overridesResolver:function(e,t){return t.panel}})((function(e){return{zIndex:e.theme.zIndex.modal}})),Qa=(0,y.ZP)(q.Z,{name:"MuiDataGrid",slot:"Paper",overridesResolver:function(e,t){return t.paper}})((function(e){return{backgroundColor:e.theme.palette.background.paper,minWidth:300,maxHeight:450,display:"flex"}})),$a=p.forwardRef((function(e,t){var n,r=e.children,o=e.className,i=(e.classes,st(e,["children","className","classes"])),a=et(),s=Ja,l=p.useState(!1),u=(0,c.Z)(l,2),d=u[0],f=u[1],h=p.useCallback((function(){a.current.hidePreferences()}),[a]),m=p.useCallback((function(e){ti(e.key)&&a.current.hidePreferences()}),[a]),v=null===(n=a.current.columnHeadersContainerElementRef)||void 0===n?void 0:n.current;return v?p.createElement(Xa,Object.assign({ref:t,placement:"bottom-start",className:(0,F.default)(o,s.panel),anchorEl:v,modifiers:[{name:"flip",enabled:!1},{name:"isPlaced",enabled:!0,phase:"main",fn:function(){f(!0)}}]},i),p.createElement(V.Z,{onClickAway:h},p.createElement(Qa,{className:s.paper,elevation:8,onKeyDown:m},d&&r))):null})),es=p.forwardRef((function(e,t){var n,r,o,i,a=et(),s=ut(a,Pt),l=ot(),c=ut(a,Ca),u=c.openedPanelValue===ba.columns,d=!c.openedPanelValue||!u;return p.createElement(l.components.Panel,Object.assign({ref:t,as:l.components.BasePopper,open:s.length>0&&c.open},null===(n=l.componentsProps)||void 0===n?void 0:n.panel,e,null===(r=l.componentsProps)||void 0===r?void 0:r.basePopper),!l.disableColumnSelector&&u&&p.createElement(l.components.ColumnsPanel,Object.assign({},null===(o=l.componentsProps)||void 0===o?void 0:o.columnsPanel)),!l.disableColumnFilter&&d&&p.createElement(l.components.FilterPanel,Object.assign({},null===(i=l.componentsProps)||void 0===i?void 0:i.filterPanel)))})),ts=(0,y.ZP)("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:function(e,t){return t.filterForm}})((function(e){return{display:"flex",padding:e.theme.spacing(1)}})),ns=(0,y.ZP)(ae.Z,{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:function(e,t){return t.filterFormDeleteIcon}})((function(e){var t=e.theme;return{flexShrink:0,justifyContent:"flex-end",marginRight:t.spacing(.5),marginBottom:t.spacing(.2)}})),rs=(0,y.ZP)(ae.Z,{name:"MuiDataGrid",slot:"FilterFormLinkOperatorInput",overridesResolver:function(e,t){return t.filterFormLinkOperatorInput}})({minWidth:60}),os=(0,y.ZP)(ae.Z,{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:function(e,t){return t.filterFormColumnInput}})({width:150}),is=(0,y.ZP)(ae.Z,{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:function(e,t){return t.filterFormOperatorInput}})({width:120}),as=(0,y.ZP)(ae.Z,{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:function(e,t){return t.filterFormValueInput}})({width:190}),ss=function(e){return e.headerName||e.field},ls=new Intl.Collator;function cs(e){var t,n,r,o,i,a=e.item,s=e.hasMultipleFilters,l=e.deleteFilter,c=e.applyFilterChanges,u=e.multiFilterOperator,d=e.showMultiFilterOperators,f=e.disableMultiFilterOperator,h=e.applyMultiFilterOperatorChanges,m=e.focusElementRef,v=e.linkOperators,y=void 0===v?[Vi.And,Vi.Or]:v,b=e.columnsSort,x=e.deleteIconProps,w=void 0===x?{}:x,C=e.linkOperatorInputProps,j=void 0===C?{}:C,S=e.operatorInputProps,k=void 0===S?{}:S,E=e.columnInputProps,D=void 0===E?{}:E,P=e.valueInputProps,A=void 0===P?{}:P,M=et(),T=ut(M,It),I=(0,Z.Z)(),R=(0,Z.Z)(),B=(0,Z.Z)(),L=(0,Z.Z)(),N=(0,Z.Z)(),_=(0,Z.Z)(),z=ot(),W=function(e){var t=e.classes;return(0,g.Z)({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],linkOperatorInput:["filterFormLinkOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},tt,t)}({classes:z.classes}),V=p.useRef(null),U=p.useRef(null),q=s&&y.length>0,G=(null===(t=z.componentsProps)||void 0===t?void 0:t.baseFormControl)||{},Y=p.useMemo((function(){switch(b){case"asc":return T.sort((function(e,t){return ls.compare(ss(e),ss(t))}));case"desc":return T.sort((function(e,t){return-ls.compare(ss(e),ss(t))}));default:return T}}),[T,b]),K=a.columnField?M.current.getColumn(a.columnField):null,J=p.useMemo((function(){var e;return a.operatorValue&&K?null===(e=K.filterOperators)||void 0===e?void 0:e.find((function(e){return e.value===a.operatorValue})):null}),[a,K]),X=p.useCallback((function(e){var t=e.target.value,n=M.current.getColumn(t);if(n.field!==K.field){var r=n.filterOperators.find((function(e){return e.value===a.operatorValue}))||n.filterOperators[0],o=!r.InputComponent||r.InputComponent!==(null==J?void 0:J.InputComponent);c(Object.assign(Object.assign({},a),{columnField:t,operatorValue:r.value,value:o?void 0:a.value}))}}),[M,c,a,K,J]),Q=p.useCallback((function(e){var t=e.target.value,n=null==K?void 0:K.filterOperators.find((function(e){return e.value===t})),r=!(null==n?void 0:n.InputComponent)||(null==n?void 0:n.InputComponent)!==(null==J?void 0:J.InputComponent);c(Object.assign(Object.assign({},a),{operatorValue:t,value:r?void 0:a.value}))}),[c,a,K,J]),$=p.useCallback((function(e){var t=e.target.value===Vi.And.toString()?Vi.And:Vi.Or;h(t)}),[h]);return p.useImperativeHandle(m,(function(){return{focus:function(){var e;(null==J?void 0:J.InputComponent)?null===(e=null==V?void 0:V.current)||void 0===e||e.focus():U.current.focus()}}}),[J]),p.createElement(ts,{className:W.root},p.createElement(ns,Object.assign({variant:"standard",as:z.components.BaseFormControl},G,w,{className:(0,F.default)(W.deleteIcon,G.className,w.className)}),p.createElement(H.Z,{"aria-label":M.current.getLocaleText("filterPanelDeleteIconLabel"),title:M.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:function(){z.disableMultipleColumnsFiltering?c(Object.assign(Object.assign({},a),{value:void 0})):l(a)},size:"small"},p.createElement(kn,{fontSize:"small"}))),p.createElement(rs,Object.assign({variant:"standard",as:z.components.BaseFormControl},G,j,{sx:Object.assign(Object.assign({display:q?"block":"none",visibility:d?"visible":"hidden"},G.sx||{}),j.sx||{}),className:(0,F.default)(W.linkOperatorInput,G.className,j.className)}),p.createElement(ie.Z,{htmlFor:I,id:R},M.current.getLocaleText("filterPanelOperators")),p.createElement(z.components.BaseSelect,Object.assign({labelId:R,id:I,value:u,onChange:$,disabled:!!f||1===y.length,native:!0},null===(n=z.componentsProps)||void 0===n?void 0:n.baseSelect),y.map((function(e){return p.createElement("option",{key:e.toString(),value:e.toString()},M.current.getLocaleText(function(e){switch(e){case Vi.And:return"filterPanelOperatorAnd";case Vi.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `linkOperator` property in the `GridFilterPanel`.")}}(e)))})))),p.createElement(os,Object.assign({variant:"standard",as:z.components.BaseFormControl},G,D,{className:(0,F.default)(W.columnInput,G.className,D.className)}),p.createElement(ie.Z,{htmlFor:B,id:L},M.current.getLocaleText("filterPanelColumns")),p.createElement(z.components.BaseSelect,Object.assign({labelId:L,id:B,label:M.current.getLocaleText("filterPanelColumns"),value:a.columnField||"",onChange:X,native:!0},null===(r=z.componentsProps)||void 0===r?void 0:r.baseSelect),Y.map((function(e){return p.createElement("option",{key:e.field,value:e.field},ss(e))})))),p.createElement(is,Object.assign({variant:"standard",as:z.components.BaseFormControl},G,k,{className:(0,F.default)(W.operatorInput,G.className,k.className)}),p.createElement(ie.Z,{htmlFor:N,id:_},M.current.getLocaleText("filterPanelOperators")),p.createElement(z.components.BaseSelect,Object.assign({labelId:_,label:M.current.getLocaleText("filterPanelOperators"),id:N,value:a.operatorValue,onChange:Q,native:!0,inputRef:U},null===(o=z.componentsProps)||void 0===o?void 0:o.baseSelect),null===(i=null==K?void 0:K.filterOperators)||void 0===i?void 0:i.map((function(e){return p.createElement("option",{key:e.value,value:e.value},e.label||M.current.getLocaleText("filterOperator".concat((0,O.Z)(e.value))))})))),p.createElement(as,Object.assign({variant:"standard",as:z.components.BaseFormControl},G,A,{className:(0,F.default)(W.valueInput,G.className,A.className)}),(null==J?void 0:J.InputComponent)?p.createElement(J.InputComponent,Object.assign({apiRef:M,item:a,applyValue:c,focusElementRef:V},J.InputComponentProps)):null))}var us=p.forwardRef((function(e,t){var n,r=e.onClick,o=st(e,["onClick"]),i=et(),a=ot(),s=ut(i,Ca),l=s.open,c=s.openedPanelValue;return a.disableColumnSelector?null:p.createElement(a.components.BaseButton,Object.assign({ref:t,size:"small",color:"primary","aria-label":i.current.getLocaleText("toolbarColumnsLabel"),startIcon:p.createElement(a.components.ColumnSelectorIcon,null)},o,{onClick:function(e){l&&c===ba.columns?i.current.hidePreferences():i.current.showPreferences(ba.columns),null==r||r(e)}},null===(n=a.componentsProps)||void 0===n?void 0:n.baseButton),i.current.getLocaleText("toolbarColumns"))})),ds=p.forwardRef((function(e,t){var n,r=e.onClick,o=st(e,["onClick"]),i=et(),a=ot(),s=ut(i,en),l=(0,Z.Z)(),u=(0,Z.Z)(),d=p.useState(!1),f=(0,c.Z)(d,2),h=f[0],m=f[1],v=p.useRef(null),g=(0,S.Z)(t,v),y=[{icon:p.createElement(a.components.DensityCompactIcon,null),label:i.current.getLocaleText("toolbarDensityCompact"),value:qi.Compact},{icon:p.createElement(a.components.DensityStandardIcon,null),label:i.current.getLocaleText("toolbarDensityStandard"),value:qi.Standard},{icon:p.createElement(a.components.DensityComfortableIcon,null),label:i.current.getLocaleText("toolbarDensityComfortable"),value:qi.Comfortable}],b=p.useMemo((function(){switch(s){case qi.Compact:return p.createElement(a.components.DensityCompactIcon,null);case qi.Comfortable:return p.createElement(a.components.DensityComfortableIcon,null);default:return p.createElement(a.components.DensityStandardIcon,null)}}),[s,a]),x=function(){return m(!1)};if(a.disableDensitySelector)return null;var w=y.map((function(e,t){return p.createElement(K.Z,{key:t,onClick:function(){return t=e.value,i.current.setDensity(t),void m(!1);var t},selected:e.value===s},p.createElement(J.Z,null,e.icon),e.label)}));return p.createElement(p.Fragment,null,p.createElement(a.components.BaseButton,Object.assign({ref:g,color:"primary",size:"small",startIcon:b,"aria-label":i.current.getLocaleText("toolbarDensityLabel"),"aria-expanded":h?"true":void 0,"aria-haspopup":"menu","aria-labelledby":u,id:l},o,{onClick:function(e){m(!0),null==r||r(e)}},null===(n=a.componentsProps)||void 0===n?void 0:n.baseButton),i.current.getLocaleText("toolbarDensity")),p.createElement(Ko,{open:h,target:v.current,onClickAway:x,position:"bottom-start"},p.createElement(W.Z,{id:u,className:nt.menuList,"aria-labelledby":l,onKeyDown:function(e){ri(e.key)&&e.preventDefault(),fi(e.key)&&x()},autoFocusItem:h},w)))})),ps=(0,y.ZP)("ul",{name:"MuiDataGrid",slot:"ToolbarFilterList",overridesResolver:function(e,t){return t.toolbarFilterList}})((function(e){var t=e.theme;return{margin:t.spacing(1,1,.5),padding:t.spacing(0,1)}})),fs=p.forwardRef((function(e,t){var n,r,o=e.componentsProps,i=void 0===o?{}:o,a=st(e,["componentsProps"]),s=i.button||{},l=et(),c=ot(),u=ut(l,Jt),d=ut(l,Dt),f=ut(l,Ca),h=function(e){var t=e.classes;return(0,g.Z)({root:["toolbarFilterList"]},tt,t)}({classes:c.classes}),m=p.useMemo((function(){return f.open?l.current.getLocaleText("toolbarFiltersTooltipHide"):0===u.length?l.current.getLocaleText("toolbarFiltersTooltipShow"):p.createElement("div",null,l.current.getLocaleText("toolbarFiltersTooltipActive")(u.length),p.createElement(ps,{className:h.root},u.map((function(e,t){return Object.assign({},d[e.columnField]&&p.createElement("li",{key:t},"".concat(d[e.columnField].headerName||e.columnField,"\n                  ").concat(function(e){return d[e.columnField].filterOperators.find((function(t){return t.value===e.operatorValue})).label||l.current.getLocaleText("filterOperator".concat((0,O.Z)(e.operatorValue))).toString()}(e),"\n                  ").concat(e.value)))}))))}),[l,f.open,u,d,h]);return c.disableColumnFilter?null:p.createElement(c.components.BaseTooltip,Object.assign({title:m,enterDelay:1e3},a,null===(n=c.componentsProps)||void 0===n?void 0:n.baseTooltip),p.createElement(c.components.BaseButton,Object.assign({ref:t,size:"small",color:"primary","aria-label":l.current.getLocaleText("toolbarFiltersLabel"),startIcon:p.createElement(ee.Z,{badgeContent:u.length,color:"primary"},p.createElement(c.components.OpenFilterButtonIcon,null))},s,{onClick:function(e){var t,n=f.open,r=f.openedPanelValue;n&&r===ba.filters?l.current.hideFilterPanel():l.current.showFilterPanel(),null===(t=s.onClick)||void 0===t||t.call(s,e)}},null===(r=c.componentsProps)||void 0===r?void 0:r.baseButton),l.current.getLocaleText("toolbarFilters")))})),hs=p.forwardRef((function(e,t){var n,r=e.csvOptions,o=e.printOptions,i=e.onClick,a=st(e,["csvOptions","printOptions","onClick"]),s=et(),l=ot(),u=(0,Z.Z)(),d=(0,Z.Z)(),f=p.useState(!1),h=(0,c.Z)(f,2),m=h[0],v=h[1],g=p.useRef(null),y=(0,S.Z)(t,g),b=[{label:s.current.getLocaleText("toolbarExportCSV"),format:"csv",formatOptions:r},{label:s.current.getLocaleText("toolbarExportPrint"),format:"print",formatOptions:o}],x=function(){return v(!1)},w=function(e){return function(){switch(e.format){case"csv":s.current.exportDataAsCsv(e.formatOptions);break;case"print":s.current.exportDataAsPrint(e.formatOptions)}v(!1)}};return(null==r?void 0:r.disableToolbarButton)&&(null==o?void 0:o.disableToolbarButton)?null:p.createElement(p.Fragment,null,p.createElement(l.components.BaseButton,Object.assign({ref:y,color:"primary",size:"small",startIcon:p.createElement(l.components.ExportIcon,null),"aria-expanded":m?"true":void 0,"aria-label":s.current.getLocaleText("toolbarExportLabel"),"aria-haspopup":"menu","aria-labelledby":d,id:u},a,{onClick:function(e){v(!0),null==i||i(e)}},null===(n=l.componentsProps)||void 0===n?void 0:n.baseButton),s.current.getLocaleText("toolbarExport")),p.createElement(Ko,{open:m,target:g.current,onClickAway:x,position:"bottom-start"},p.createElement(W.Z,{id:d,className:nt.menuList,"aria-labelledby":u,onKeyDown:function(e){ri(e.key)&&e.preventDefault(),fi(e.key)&&x()},autoFocusItem:m},b.map((function(e,t){var n;return(null===(n=e.formatOptions)||void 0===n?void 0:n.disableToolbarButton)?null:p.createElement(K.Z,{key:t,onClick:w(e)},e.label)})))))})),ms=(p.forwardRef((function(e,t){e.className;var n=e.csvOptions,r=e.printOptions,o=st(e,["className","csvOptions","printOptions"]),i=ot();return i.disableColumnFilter&&i.disableColumnSelector&&i.disableDensitySelector?null:p.createElement(sa,Object.assign({ref:t},o),p.createElement(us,null),p.createElement(fs,null),p.createElement(ds,null),p.createElement(hs,{csvOptions:n,printOptions:r}))})),(0,y.ZP)("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:function(e,t){return t.rowCount}})((function(e){return{alignItems:"center",display:"flex",margin:e.theme.spacing(0,2)}}))),vs=p.forwardRef((function(e,t){var n=e.className,r=e.rowCount,o=e.visibleRowCount,i=st(e,["className","rowCount","visibleRowCount"]),a=et(),s=function(e){var t=e.classes;return(0,g.Z)({root:["rowCount"]},tt,t)}({classes:ot().classes});if(0===r)return null;var l=o<r?a.current.getLocaleText("footerTotalVisibleRows")(o,r):r.toLocaleString();return p.createElement(ms,Object.assign({ref:t,className:(0,F.default)(s.root,n)},i),a.current.getLocaleText("footerTotalRows")," ",l)})),gs=(0,y.ZP)("div",{name:"MuiDataGrid",slot:"SelectedRowCount",overridesResolver:function(e,t){return t.selectedRowCount}})((function(e){var t=e.theme;return(0,r.Z)({alignItems:"center",display:"flex",margin:t.spacing(0,2),visibility:"hidden",width:0,height:0},t.breakpoints.up("sm"),{visibility:"visible",width:"auto",height:"auto"})})),ys=p.forwardRef((function(e,t){var n=e.className,r=e.selectedRowCount,o=st(e,["className","selectedRowCount"]),i=et(),a=function(e){var t=e.classes;return(0,g.Z)({root:["selectedRowCount"]},tt,t)}({classes:ot().classes}),s=i.current.getLocaleText("footerRowSelected")(r);return p.createElement(gs,Object.assign({ref:t,className:(0,F.default)(a.root,n)},o),s)})),bs=p.forwardRef((function(e,t){var n,r=et(),o=ot(),i=ut(r,vt),a=ut(r,ji),s=ut(r,Kt),l=!o.hideFooterSelectedRowCount&&a>0?p.createElement(ys,{selectedRowCount:a}):p.createElement("div",null),c=o.hideFooterRowCount||o.pagination?null:p.createElement(vs,{rowCount:i,visibleRowCount:s}),u=o.pagination&&!o.hideFooterPagination&&o.components.Pagination&&p.createElement(o.components.Pagination,Object.assign({},null===(n=o.componentsProps)||void 0===n?void 0:n.pagination));return p.createElement(ra,Object.assign({ref:t},e),l,c,u)})),xs=p.forwardRef((function(e,t){var n,r,o=ot();return p.createElement("div",Object.assign({ref:t},e),p.createElement(o.components.PreferencesPanel,Object.assign({},null===(n=o.componentsProps)||void 0===n?void 0:n.preferencesPanel)),o.components.Toolbar&&p.createElement(o.components.Toolbar,Object.assign({},null===(r=o.componentsProps)||void 0===r?void 0:r.toolbar)))})),ws=p.forwardRef((function(e,t){return p.createElement(ia,Object.assign({ref:t},e),p.createElement(se.Z,null))})),Cs=p.forwardRef((function(e,t){var n=et().current.getLocaleText("noRowsLabel");return p.createElement(ia,Object.assign({ref:t},e),n)})),js=(0,y.ZP)(Ke)((function(e){var t,n=e.theme;return t={},(0,r.Z)(t,"& .".concat(Be.selectLabel),(0,r.Z)({display:"none"},n.breakpoints.up("sm"),{display:"block"})),(0,r.Z)(t,"& .".concat(Be.input),(0,r.Z)({display:"none"},n.breakpoints.up("sm"),{display:"inline-flex"})),t})),Ss=p.forwardRef((function(e,t){var n,r=et(),o=ot(),i=ut(r,Zi),a=p.useMemo((function(){return Math.floor(i.rowCount/(i.pageSize||1))}),[i.rowCount,i.pageSize]),s=p.useCallback((function(e){var t=Number(e.target.value);r.current.setPageSize(t)}),[r]),l=p.useCallback((function(e,t){r.current.setPage(t)}),[r]);return p.createElement(js,Object.assign({ref:t,component:"div",count:i.rowCount,page:i.page<=a?i.page:a,rowsPerPageOptions:(null===(n=o.rowsPerPageOptions)||void 0===n?void 0:n.includes(i.pageSize))?o.rowsPerPageOptions:[],rowsPerPage:i.pageSize,onPageChange:l,onRowsPerPageChange:s},r.current.getLocaleText("MuiTablePagination"),e))})),ks=function(e){var t=e.width,n=e.height;if(!t||!n)return null;var r={width:t,height:n};return p.createElement("div",{className:"MuiDataGrid-cell",style:r})};var Zs,Os=function(){function e(){(0,i.Z)(this,e),this.timeouts=new Map}return(0,a.Z)(e,[{key:"register",value:function(e,t,n){var r=this,o=setTimeout((function(){"function"==typeof t&&t(),r.timeouts.delete(n.cleanupToken)}),1e3);this.timeouts.set(n.cleanupToken,o)}},{key:"unregister",value:function(e){var t=this.timeouts.get(e.cleanupToken);t&&(this.timeouts.delete(e.cleanupToken),clearTimeout(t))}}]),e}(),Es=function(){function e(){(0,i.Z)(this,e),this.registry=new FinalizationRegistry((function(e){"function"==typeof e&&e()}))}return(0,a.Z)(e,[{key:"register",value:function(e,t,n){this.registry.register(e,t,n)}},{key:"unregister",value:function(e){this.registry.unregister(e)}}]),e}();!function(e){e.DataGrid="DataGrid",e.DataGridPro="DataGridPro"}(Zs||(Zs={}));var Ds=(0,a.Z)((function e(){(0,i.Z)(this,e)}));var Ps=function(e){var t=0;return function(n,r,o,i){var a=p.useState(new Ds),s=(0,c.Z)(a,1)[0],l=p.useRef(null),u=p.useRef();u.current=o;var d=p.useRef(null);if(!l.current&&u.current){l.current=n.current.subscribeEvent(r,(function(e,t,n){var r;t.defaultMuiPrevented||null===(r=u.current)||void 0===r||r.call(u,e,t,n)}),i),t+=1,d.current={cleanupToken:t},e.register(s,(function(){var e;null===(e=l.current)||void 0===e||e.call(l),l.current=null,d.current=null}),d.current)}else!u.current&&l.current&&(l.current(),l.current=null,d.current&&(e.unregister(d.current),d.current=null));p.useEffect((function(){if(!l.current&&u.current){l.current=n.current.subscribeEvent(r,(function(e,t,n){var r;t.defaultMuiPrevented||null===(r=u.current)||void 0===r||r.call(u,e,t,n)}),i)}return d.current&&e&&(e.unregister(d.current),d.current=null),function(){var e;null===(e=l.current)||void 0===e||e.call(l),l.current=null}}),[n,r,i])}}("undefined"!=typeof FinalizationRegistry?new Es:new Os),As={isFirst:!0};function Ms(e,t,n){Ps(e,t,n,As)}var Ts=(0,y.ZP)("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:function(e,t){return[(0,r.Z)({},"&.".concat(nt["scrollArea--left"]),t["scrollArea--left"]),(0,r.Z)({},"&.".concat(nt["scrollArea--right"]),t["scrollArea--right"]),t.scrollArea]}})((function(){var e;return e={position:"absolute",top:0,zIndex:101,width:20,bottom:0},(0,r.Z)(e,"&.".concat(nt["scrollArea--left"]),{left:0}),(0,r.Z)(e,"&.".concat(nt["scrollArea--right"]),{right:0}),e})),Is=p.memo((function(e){var t=e.scrollDirection,n=p.useRef(null),r=et(),o=p.useRef(),i=p.useState(!1),a=(0,c.Z)(i,2),s=a[0],l=a[1],u=ut(r,nn),d=p.useRef({left:0,top:0}),f=ot(),h=function(e){var t=e.scrollDirection,n=e.classes;return(0,g.Z)({root:["scrollArea","scrollArea--".concat(t)]},tt,n)}(Object.assign(Object.assign({},e),{classes:f.classes})),m=p.useCallback((function(e){d.current=e}),[]),v=p.useCallback((function(e){var i;if("left"===t)i=e.clientX-n.current.getBoundingClientRect().right;else{if("right"!==t)throw new Error("MUI: Wrong drag direction");i=Math.max(1,e.clientX-n.current.getBoundingClientRect().left)}i=1.5*(i-1)+1,clearTimeout(o.current),o.current=setTimeout((function(){r.current.scroll({left:d.current.left+i,top:d.current.top})}))}),[t,r]);p.useEffect((function(){return function(){clearTimeout(o.current)}}),[]);var y=p.useCallback((function(){l((function(e){return!e}))}),[]);return Ps(r,Ye.rowsScroll,m),Ps(r,Ye.columnHeaderDragStart,y),Ps(r,Ye.columnHeaderDragEnd,y),s?p.createElement(Ts,{ref:n,className:(0,F.default)(h.root),onDragOver:v,style:{height:u}}):null})),Rs=function(e){return e.columnMenu},Fs=(ft((function(e){return e.columnReorder}),(function(e){return e.dragCol})),ft((function(e){return e.columnResize}),(function(e){return e.resizingColumnField})),function(e){return e.editRows}),Bs=function(){return{items:[],linkOperator:Vi.And}};Object.assign(Object.assign({},qo),{type:"treeDataGroup",sortable:!1,filterable:!1,disableColumnMenu:!0,disableReorder:!0,align:"left",width:200,valueGetter:function(e){return e.rowNode.groupingKey}});var Ls=ft((function(e){return e.rowGrouping}),(function(e){return e.model}));ft(Ls,Dt,(function(e,t){return e.filter((function(e){return!!t[e]&&t[e].groupable}))})),Object.assign(Object.assign({},qo),{field:"__detail_panel_toggle__",headerName:"",type:"detailPanelToggle",editable:!1,sortable:!1,filterable:!1,resizable:!1,disableColumnMenu:!0,disableReorder:!0,align:"left",width:40,valueGetter:function(e){return function(e){return e.detailPanel.expandedRowIds}(e.api.state).includes(e.id)},renderCell:function(e){return p.createElement($i,Object.assign({},e))}});function Ns(e,t,n){var r=p.useRef(t),o=p.useState(Object.keys(t)),i=(0,c.Z)(o,1)[0],a=p.useCallback((function(){e.current&&i.forEach((function(t){e.current.hasOwnProperty(t)||(e.current[t]=function(){var e;return(e=r.current)[t].apply(e,arguments)})}))}),[i,e]);p.useEffect((function(){r.current=t}),[t]),p.useEffect((function(){a()}),[a]),a()}var _s=function(e,t,n,r,o){var i=an(e,"useNativeEventListener"),a=p.useState(!1),s=(0,c.Z)(a,2),l=s[0],u=s[1],d=p.useRef(r),f=p.useCallback((function(e){return d.current&&d.current(e)}),[]);p.useEffect((function(){d.current=r}),[r]),p.useEffect((function(){var r;if((r="function"==typeof t?t():t&&t.current?t.current:null)&&f&&n&&!l){i.debug("Binding native ".concat(n," event")),r.addEventListener(n,f,o);var a=r;u(!0);e.current.subscribeEvent(Ye.unmount,(function(){i.debug("Clearing native ".concat(n," event")),a.removeEventListener(n,f,o)}))}}),[t,f,n,l,i,o,e])},zs=function(e,t){var n;return{components:{MuiDataGrid:{defaultProps:{localeText:Object.assign(Object.assign({},e),{MuiTablePagination:(null===(n=null==t?void 0:t.components)||void 0===n?void 0:n.MuiTablePagination.defaultProps)||{}})}}}}},Hs=(zs({noRowsLabel:"\u0644\u0627 \u062a\u0648\u062c\u062f \u0635\u0641\u0648\u0641",noResultsOverlayLabel:"\u0644\u0645 \u064a\u062a\u0645 \u0627\u0644\u0639\u062b\u0648\u0631 \u0639\u0644\u0649 \u0646\u062a\u0627\u0626\u062c.",errorOverlayDefaultLabel:"\u062d\u062f\u062b \u062e\u0637\u0623.",toolbarDensity:"\u0643\u062b\u0627\u0641\u0629",toolbarDensityLabel:"\u0643\u062b\u0627\u0641\u0629",toolbarDensityCompact:"\u0645\u062f\u0645\u062c",toolbarDensityStandard:"\u0627\u0644\u0645\u0639\u064a\u0627\u0631",toolbarDensityComfortable:"\u0645\u0631\u064a\u062d",toolbarColumns:"\u0627\u0644\u0623\u0639\u0645\u062f\u0629",toolbarColumnsLabel:"\u062d\u062f\u062f \u0627\u0644\u0623\u0639\u0645\u062f\u0629",toolbarFilters:"\u0627\u0644\u0641\u0644\u0627\u062a\u0631",toolbarFiltersLabel:"\u0627\u0638\u0647\u0631 \u0627\u0644\u0641\u0644\u0627\u062a\u0631",toolbarFiltersTooltipHide:"\u0625\u062e\u0641\u0627\u0621 \u0627\u0644\u0641\u0644\u0627\u062a\u0631",toolbarFiltersTooltipShow:"\u0627\u0638\u0647\u0631 \u0627\u0644\u0641\u0644\u0627\u062a\u0631",toolbarFiltersTooltipActive:function(e){return"".concat(e," \u0641\u0644\u0627\u062a\u0631 \u0646\u0634\u0637\u0629")},toolbarExport:"\u062a\u0635\u062f\u064a\u0631",toolbarExportLabel:"\u062a\u0635\u062f\u064a\u0631",toolbarExportCSV:"\u062a\u0646\u0632\u064a\u0644 \u0643\u0645\u0644\u0641 CSV",columnsPanelTextFieldLabel:"\u0627\u064a\u062c\u0627\u062f \u0639\u0645\u0648\u062f",columnsPanelTextFieldPlaceholder:"\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0639\u0645\u0648\u062f",columnsPanelDragIconLabel:"\u0625\u0639\u0627\u062f\u0629 \u062a\u0631\u062a\u064a\u0628 \u0627\u0644\u0639\u0645\u0648\u062f",columnsPanelShowAllButton:"\u0639\u0631\u0636 \u0627\u0644\u0643\u0644",columnsPanelHideAllButton:"\u0627\u062e\u0641\u0627\u0621 \u0627\u0644\u0643\u0644",filterPanelAddFilter:"\u0627\u0636\u0641 \u0641\u0644\u062a\u0631",filterPanelDeleteIconLabel:"\u062d\u0630\u0641",filterPanelOperators:"\u0627\u0644\u0639\u0627\u0645\u0644\u064a\u0646",filterPanelOperatorAnd:"\u0648",filterPanelOperatorOr:"\u0627\u0648",filterPanelColumns:"\u0627\u0644\u0623\u0639\u0645\u062f\u0629",filterPanelInputLabel:"\u0642\u064a\u0645\u0629",filterPanelInputPlaceholder:"\u0642\u064a\u0645\u0629 \u0627\u0644\u062a\u0635\u0641\u064a\u0629",filterOperatorContains:"\u064a\u062d\u062a\u0648\u064a \u0639\u0644\u0649",filterOperatorEquals:"\u064a\u0633\u0627\u0648\u064a",filterOperatorStartsWith:"\u064a\u0628\u062f\u0623 \u0628",filterOperatorEndsWith:"\u064a\u0646\u062a\u0647\u064a \u0628\u0640",filterOperatorIs:"\u064a\u0643\u0648\u0646",filterOperatorNot:"\u0644\u064a\u0633",filterOperatorAfter:"\u064a\u0643\u0648\u0646 \u0628\u0639\u062f",filterOperatorOnOrAfter:"\u0641\u064a \u0623\u0648 \u0628\u0639\u062f",filterOperatorBefore:"\u064a\u0643\u0648\u0646",filterOperatorOnOrBefore:"\u0641\u064a \u0623\u0648 \u0642\u0628\u0644",filterOperatorIsEmpty:"\u0641\u0627\u0631\u063a",filterOperatorIsNotEmpty:"\u0644\u064a\u0633 \u0641\u0627\u0631\u063a\u0627",filterValueAny:"\u0623\u064a",filterValueTrue:"\u0635\u062d\u064a\u062d",filterValueFalse:"\u062e\u0627\u0637\u0626\u0629",columnMenuLabel:"\u0627\u0644\u0642\u0627\u0626\u0645\u0629",columnMenuShowColumns:"\u0625\u0638\u0647\u0627\u0631 \u0627\u0644\u0623\u0639\u0645\u062f\u0629",columnMenuFilter:"\u0641\u0644\u062a\u0631",columnMenuHideColumn:"\u0625\u062e\u0641\u0627\u0621",columnMenuUnsort:"\u063a\u064a\u0631 \u0645\u0631\u062a\u0628",columnMenuSortAsc:"\u0627\u0644\u062a\u0631\u062a\u064a\u0628 \u062d\u0633\u0628 ASC",columnMenuSortDesc:"\u0627\u0644\u062a\u0631\u062a\u064a\u0628 \u062d\u0633\u0628 DESC",columnHeaderFiltersTooltipActive:function(e){return"".concat(e," \u0641\u0644\u0627\u062a\u0631 \u0646\u0634\u0637\u0629")},columnHeaderFiltersLabel:"\u0627\u0638\u0647\u0631 \u0627\u0644\u0641\u0644\u0627\u062a\u0631",columnHeaderSortIconLabel:"\u062a\u0631\u062a\u064a\u0628",footerRowSelected:function(e){return"".concat(e.toLocaleString()," \u0635\u0641\u0648\u0641 \u0645\u062e\u062a\u0627\u0631\u0629")},footerTotalRows:"\u0625\u062c\u0645\u0627\u0644\u064a \u0627\u0644\u0635\u0641\u0648\u0641:",footerTotalVisibleRows:function(e,t){return"".concat(e.toLocaleString()," \u0645\u0646 ").concat(t.toLocaleString())},checkboxSelectionHeaderName:"\u062a\u062d\u062f\u064a\u062f",booleanCellTrueLabel:"\u0635\u062d\u064a\u062d",booleanCellFalseLabel:"\u062e\u0627\u0637\u0626\u0629"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"\u0625\u0638\u0647\u0627\u0631 \u0627\u0644\u0645\u0633\u0627\u0631"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:function(e){return"first"===e?"\u0627\u0646\u062a\u0642\u0644 \u0625\u0644\u0649 \u0627\u0644\u0635\u0641\u062d\u0629 \u0627\u0644\u0623\u0648\u0644\u0649":"last"===e?"\u0627\u0646\u062a\u0642\u0644 \u0625\u0644\u0649 \u0627\u0644\u0635\u0641\u062d\u0629 \u0627\u0644\u0623\u062e\u064a\u0631\u0629":"next"===e?"\u0627\u0646\u062a\u0642\u0644 \u0625\u0644\u0649 \u0627\u0644\u0635\u0641\u062d\u0629 \u0627\u0644\u062a\u0627\u0644\u064a\u0629":"\u0627\u0646\u062a\u0642\u0644 \u0625\u0644\u0649 \u0627\u0644\u0635\u0641\u062d\u0629 \u0627\u0644\u0633\u0627\u0628\u0642\u0629"},labelRowsPerPage:"\u0639\u062f\u062f \u0627\u0644\u0635\u0641\u0648\u0641 \u0641\u064a \u0627\u0644\u0635\u0641\u062d\u0629:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"\u2013").concat(n," \u0645\u0646 ").concat(-1!==r?r:" \u0623\u0643\u062b\u0631 \u0645\u0646".concat(n))}}},MuiRating:{defaultProps:{getLabelText:function(e){return"".concat(e," ").concat(1!==e?"\u0646\u062c\u0648\u0645":"\u0646\u062c\u0645\u0629")},emptyLabelText:"\u0641\u0627\u0631\u063a"}},MuiAutocomplete:{defaultProps:{clearText:"\u0645\u0633\u062d",closeText:"\u0625\u063a\u0644\u0627\u0642",loadingText:"\u062c\u0627\u0631 \u0627\u0644\u062a\u062d\u0645\u064a\u0644...",noOptionsText:"\u0644\u0627 \u064a\u0648\u062c\u062f \u062e\u064a\u0627\u0631\u0627\u062a",openText:"\u0641\u062a\u062d"}},MuiAlert:{defaultProps:{closeText:"\u0625\u063a\u0644\u0627\u0642"}},MuiPagination:{defaultProps:{"aria-label":"\u0627\u0644\u062a\u0646\u0642\u0644 \u0639\u0628\u0631 \u0627\u0644\u0635\u0641\u062d\u0627\u062a",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"\u0627\u0646\u062a\u0642\u0644 \u0625\u0644\u0649 "," \u0635\u0641\u062d\u0629 ").concat(t):"first"===e?"\u0627\u0646\u062a\u0642\u0644 \u0625\u0644\u0649 \u0627\u0644\u0635\u0641\u062d\u0629 \u0627\u0644\u0623\u0648\u0644\u0649":"last"===e?"\u0627\u0646\u062a\u0642\u0644 \u0627\u0644\u064a \u0627\u0644\u0635\u0641\u062d\u0629 \u0627\u0644\u0623\u062e\u064a\u0631\u0629":"next"===e?"\u0627\u0646\u062a\u0642\u0644 \u0625\u0644\u0649 \u0627\u0644\u0635\u0641\u062d\u0629 \u0627\u0644\u062a\u0627\u0644\u064a\u0629":"\u0627\u0646\u062a\u0642\u0644 \u0625\u0644\u0649 \u0627\u0644\u0635\u0641\u062d\u0629 \u0627\u0644\u0633\u0627\u0628\u0642\u0629"}}}}}),zs({noRowsLabel:"\u041d\u044f\u043c\u0430 \u0440\u0435\u0434\u043e\u0432\u0435",errorOverlayDefaultLabel:"\u0412\u044a\u0437\u043d\u0438\u043a\u043d\u0430 \u0433\u0440\u0435\u0448\u043a\u0430.",toolbarDensity:"\u0413\u044a\u0441\u0442\u043e\u0442\u0430",toolbarDensityLabel:"\u0413\u044a\u0441\u0442\u043e\u0442\u0430",toolbarDensityCompact:"\u041a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u0430",toolbarDensityStandard:"\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430",toolbarDensityComfortable:"\u041a\u043e\u043c\u0444\u043e\u0440\u0442\u043d\u0430",toolbarColumns:"\u041a\u043e\u043b\u043e\u043d\u0438",toolbarColumnsLabel:"\u041f\u043e\u043a\u0430\u0436\u0438 \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u0430 \u043d\u0430 \u043a\u043e\u043b\u043e\u043d\u0438",toolbarFilters:"\u0424\u0438\u043b\u0442\u0440\u0438",toolbarFiltersLabel:"\u041f\u043e\u043a\u0430\u0436\u0438 \u0424\u0438\u043b\u0442\u0440\u0438\u0442\u0435",toolbarFiltersTooltipHide:"\u0421\u043a\u0440\u0438\u0439 \u0424\u0438\u043b\u0442\u0440\u0438\u0442\u0435",toolbarFiltersTooltipShow:"\u041f\u043e\u043a\u0430\u0436\u0438 \u0424\u0438\u043b\u0442\u0440\u0438\u0442\u0435",toolbarFiltersTooltipActive:function(e){return"".concat(e," \u0430\u043a\u0442\u0438\u0432\u043d\u0438 \u0444\u0438\u043b\u0442\u0440\u0438")},columnsPanelTextFieldLabel:"\u041d\u0430\u043c\u0435\u0440\u0438 \u043a\u043e\u043b\u043e\u043d\u0430",columnsPanelTextFieldPlaceholder:"\u0417\u0430\u0433\u043b\u0430\u0432\u0438\u0435 \u043d\u0430 \u043a\u043e\u043b\u043e\u043d\u0430",columnsPanelDragIconLabel:"\u041f\u0440\u0435\u043d\u0430\u0440\u0435\u0434\u0438 \u043d\u0430 \u043a\u043e\u043b\u043e\u043d\u0430",columnsPanelShowAllButton:"\u041f\u043e\u043a\u0430\u0436\u0438 \u0412\u0441\u0438\u0447\u043a\u0438",columnsPanelHideAllButton:"\u0421\u043a\u0440\u0438\u0439 \u0412\u0441\u0438\u0447\u043a\u0438",filterPanelAddFilter:"\u0414\u043e\u0431\u0430\u0432\u0438 \u0424\u0438\u043b\u0442\u044a\u0440",filterPanelDeleteIconLabel:"\u0418\u0437\u0442\u0440\u0438\u0439",filterPanelOperators:"\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0438",filterPanelOperatorAnd:"\u0418",filterPanelOperatorOr:"\u0418\u043b\u0438",filterPanelColumns:"\u041a\u043e\u043b\u043e\u043d\u0438",filterPanelInputLabel:"\u0421\u0442\u043e\u0439\u043d\u043e\u0441\u0442",filterPanelInputPlaceholder:"\u0421\u0442\u043e\u0439\u043d\u043e\u0441\u0442 \u043d\u0430 \u0444\u0438\u043b\u0442\u044a\u0440\u0430",filterOperatorContains:"\u0441\u044a\u0434\u044a\u0440\u0436\u0430",filterOperatorEquals:"\u0440\u0430\u0432\u043d\u043e",filterOperatorStartsWith:"\u0437\u0430\u043f\u043e\u0447\u0432\u0430 \u0441",filterOperatorEndsWith:"\u0437\u0430\u0432\u044a\u0440\u0448\u0432\u0430 \u0441",filterOperatorIs:"\u0435",filterOperatorNot:"\u043d\u0435 \u0435",filterOperatorAfter:"\u0435 \u0441\u043b\u0435\u0434",filterOperatorOnOrAfter:"\u0435 \u043d\u0430 \u0438\u043b\u0438 \u0441\u043b\u0435\u0434",filterOperatorBefore:"\u0435 \u043f\u0440\u0435\u0434\u0438",filterOperatorOnOrBefore:"\u0435 \u043d\u0430 \u0438\u043b\u0438 \u043f\u0440\u0435\u0434\u0438",columnMenuLabel:"\u041c\u0435\u043d\u044e",columnMenuShowColumns:"\u041f\u043e\u043a\u0430\u0436\u0438 \u043a\u043e\u043b\u043e\u043d\u0438\u0442\u0435",columnMenuFilter:"\u0424\u0438\u043b\u0442\u0440\u0438",columnMenuHideColumn:"\u0421\u043a\u0440\u0438\u0439",columnMenuUnsort:"\u041e\u0442\u043c\u0435\u043d\u0438 \u0441\u043e\u0440\u0442\u0438\u0440\u0430\u043d\u0435\u0442\u043e",columnMenuSortAsc:"\u0421\u043e\u0440\u0442\u0438\u0440\u0430\u0439 \u043f\u043e \u0432\u044a\u0437\u0445\u043e\u0434\u044f\u0449 \u0440\u0435\u0434",columnMenuSortDesc:"\u0421\u043e\u0440\u0442\u0438\u0440\u0430\u0439 \u043f\u043e \u043d\u0438\u0437\u0445\u043e\u0434\u044f\u0449 \u0440\u0435\u0434",columnHeaderFiltersTooltipActive:function(e){return"".concat(e," \u0430\u043a\u0442\u0438\u0432\u043d\u0438 \u0444\u0438\u043b\u0442\u0440\u0438")},columnHeaderFiltersLabel:"\u041f\u043e\u043a\u0430\u0436\u0438 \u0424\u0438\u043b\u0442\u0440\u0438\u0442\u0435",columnHeaderSortIconLabel:"\u0421\u043e\u0440\u0442\u0438\u0440\u0430\u0439",footerRowSelected:function(e){return"".concat(e.toLocaleString(),1!==e?" \u0438\u0437\u0431\u0440\u0430\u043d\u0438 \u0440\u0435\u0434\u043e\u0432\u0435":" \u0438\u0437\u0431\u0440\u0430\u043d \u0440\u0435\u0434")},footerTotalRows:"\u041e\u0431\u0449\u043e R\u0435\u0434\u043e\u0432\u0435:"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"\u041f\u043e\u043a\u0430\u0437\u0432\u0430\u043d\u0435 \u043d\u0430 \u043f\u044a\u0442\u044f"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:function(e){return"first"===e?"\u041e\u0442\u0438\u0434\u0438 \u043d\u0430 \u043f\u044a\u0440\u0432\u0430\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430":"last"===e?"\u041e\u0442\u0438\u0434\u0438 \u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0430\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430":"next"===e?"\u041e\u0442\u0438\u0434\u0438 \u043d\u0430 \u0441\u043b\u0435\u0434\u0432\u0430\u0449\u0430\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430":"\u041e\u0442\u0438\u0434\u0438 \u043d\u0430 \u043f\u0440\u0435\u0434\u0438\u0448\u043d\u0430\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430"},labelRowsPerPage:"\u0420\u0435\u0434\u043e\u0432\u0435 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430:"}},MuiRating:{defaultProps:{getLabelText:function(e){return"".concat(e," \u0417\u0432\u0435\u0437\u0434").concat(1!==e?"\u0438":"\u0430")},emptyLabelText:"\u0418\u0437\u0447\u0438\u0441\u0442\u0438"}},MuiAutocomplete:{defaultProps:{clearText:"\u0418\u0437\u0447\u0438\u0441\u0442\u0438",closeText:"\u0417\u0430\u0442\u0432\u043e\u0440\u0438",loadingText:"\u0417\u0430\u0440\u0435\u0436\u0434\u0430\u043d\u0435\u2026",noOptionsText:"\u041d\u044f\u043c\u0430 \u043d\u0430\u043b\u0438\u0447\u043d\u0438 \u043e\u043f\u0446\u0438\u0438",openText:"\u041e\u0442\u0432\u043e\u0440\u0438"}},MuiAlert:{defaultProps:{closeText:"\u0417\u0430\u0442\u0432\u043e\u0440\u0438"}},MuiPagination:{defaultProps:{"aria-label":"\u041f\u0430\u0433\u0438\u043d\u0430\u0446\u0438\u044f",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"\u041a\u044a\u043c ","\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 ").concat(t):"first"===e?"\u041e\u0442\u0438\u0434\u0438 \u043d\u0430 \u043f\u044a\u0440\u0432\u0430\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430":"last"===e?"\u041e\u0442\u0438\u0434\u0438 \u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0430\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430":"next"===e?"\u041e\u0442\u0438\u0434\u0438 \u043d\u0430 \u0441\u043b\u0435\u0434\u0432\u0430\u0449\u0430\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430":"\u041e\u0442\u0438\u0434\u0438 \u043d\u0430 \u043f\u0440\u0435\u0434\u0438\u0448\u043d\u0430\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430"}}}}}),zs({noRowsLabel:"\u017d\xe1dn\xe9 z\xe1znamy",noResultsOverlayLabel:"Nena\u0161li se \u017eadn\xe9 v\xfdsledky.",errorOverlayDefaultLabel:"Stala sa nep\u0159edv\xeddan\xe1 chyba.",toolbarDensity:"Hustota",toolbarDensityLabel:"Hustota",toolbarDensityCompact:"Kompaktn\xed",toolbarDensityStandard:"Standartn\xed",toolbarDensityComfortable:"Komfortn\xed",toolbarColumns:"Sloupce",toolbarColumnsLabel:"Vybrat sloupec",toolbarFilters:"Filtry",toolbarFiltersLabel:"Zobrazit filtry",toolbarFiltersTooltipHide:"Skr\xfdt filtry",toolbarFiltersTooltipShow:"Zobrazit filtry",toolbarFiltersTooltipActive:function(e){var t="aktivn\xedch filtr\u016f";return e>1&&e<5?t="aktivn\xed filtry":1===e&&(t="aktivn\xed filtr"),"".concat(e," ").concat(t)},toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"St\xe1hnout jako CSV",toolbarExportPrint:"Vytisknout",columnsPanelTextFieldLabel:"Naj\xedt sloupec",columnsPanelTextFieldPlaceholder:"N\xe1zev sloupce",columnsPanelDragIconLabel:"Uspo\u0159\xe1dat sloupce",columnsPanelShowAllButton:"Zobrazit v\u0161e",columnsPanelHideAllButton:"Skr\xfdt v\u0161e",filterPanelAddFilter:"P\u0159idat filtr",filterPanelDeleteIconLabel:"Odstranit",filterPanelOperators:"Oper\xe1tory",filterPanelOperatorAnd:"A",filterPanelOperatorOr:"Nebo",filterPanelColumns:"Sloupce",filterPanelInputLabel:"Hodnota",filterPanelInputPlaceholder:"Hodnota filtru",filterOperatorContains:"obsahuje",filterOperatorEquals:"rovn\xe1 se",filterOperatorStartsWith:"za\u010d\xedn\xe1 s",filterOperatorEndsWith:"kon\u010d\xed na",filterOperatorIs:"je",filterOperatorNot:"nen\xed",filterOperatorAfter:"je po",filterOperatorOnOrAfter:"je na nebo po",filterOperatorBefore:"je p\u0159ed",filterOperatorOnOrBefore:"je na nebo d\u0159\xedve",filterOperatorIsEmpty:"je pr\xe1zdn\xfd",filterOperatorIsNotEmpty:"nen\xed pr\xe1zdn\xfd",filterValueAny:"jak\xfdkoliv",filterValueTrue:"ano",filterValueFalse:"ne",columnMenuLabel:"Menu",columnMenuShowColumns:"Zobrazit sloupce",columnMenuFilter:"Filtr",columnMenuHideColumn:"Skr\xfdt",columnMenuUnsort:"Zru\u0161it filtry",columnMenuSortAsc:"Se\u0159adit vzestupn\u011b",columnMenuSortDesc:"Se\u0159adit sestupn\u011b",columnHeaderFiltersTooltipActive:function(e){var t="aktivn\xedch filtr\u016f";return e>1&&e<5?t="aktivn\xed filtry":1===e&&(t="aktivn\xed filtr"),"".concat(e," ").concat(t)},columnHeaderFiltersLabel:"Zobrazit filtry",columnHeaderSortIconLabel:"Filtrovat",footerRowSelected:function(e){var t="vybran\xfdch z\xe1znam\u016f";return e>1&&e<5?t="vybran\xe9 z\xe1znamy":1===e&&(t="vybran\xfd z\xe1znam"),"".concat(e," ").concat(t)},footerTotalRows:"Celkem \u0159\xe1dk\u016f:",footerTotalVisibleRows:function(e,t){var n=t.toString(),r=n[0],o=["4","6","7"].includes(r)||"1"===r&&n.length%3==0?"ze":"z";return"".concat(e.toLocaleString()," ").concat(o," ").concat(t.toLocaleString())},checkboxSelectionHeaderName:"V\xfdb\u011br \u0159\xe1dku",booleanCellTrueLabel:"ano",booleanCellFalseLabel:"ne",actionsCellMore:"v\xedce",pinToLeft:"P\u0159ipnout na levo",pinToRight:"P\u0159ipnout na pravo",unpin:"Odepnout",treeDataGroupingHeaderName:"Skupina",treeDataExpand:"zobrazit potomky",treeDataCollapse:"skr\xfdt potomky",groupingColumnHeaderName:"Skupina",groupColumn:function(e){return"Zoskupit podle ".concat(e)},unGroupColumn:function(e){return"P\u0159estat zoskupovat podle ".concat(e)}},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"Uk\xe1zat cestu"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:function(e){return"first"===e?"J\xedt na prvn\xed str\xe1nku":"last"===e?"J\xedt na posledn\xed str\xe1nku":"next"===e?"J\xedt na dal\u0161\xed str\xe1nku":"J\xedt na p\u0159edchoz\xed str\xe1nku"},labelRowsPerPage:"\u0158\xe1dk\u016f na str\xe1nce:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"\u2013").concat(n," z ").concat(-1!==r?r:"v\xedce ne\u017e ".concat(n))}}},MuiRating:{defaultProps:{getLabelText:function(e){return"".concat(e,1===e?" hv\u011bzdi\u010dka":e>=2&&e<=4?" hv\u011bzdi\u010dky":" hv\u011bzdi\u010dek")},emptyLabelText:"Pr\xe1zdn\xe9"}},MuiAutocomplete:{defaultProps:{clearText:"Vymazat",closeText:"Zav\u0159\xedt",loadingText:"Na\u010d\xedt\xe1n\xed\u2026",noOptionsText:"\u017d\xe1dn\xe9 mo\u017enosti",openText:"Otev\u0159\xedt"}},MuiAlert:{defaultProps:{closeText:"Zav\u0159\xedt"}},MuiPagination:{defaultProps:{"aria-label":"Navigace str\xe1nkov\xe1n\xedm",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"J\xedt na ").concat(t,". str\xe1nku"):"first"===e?"J\xedt na prvn\xed str\xe1nku":"last"===e?"J\xedt na posledn\xed str\xe1nku":"next"===e?"J\xedt na dal\u0161\xed str\xe1nku":"J\xedt na p\u0159edchoz\xed str\xe1nku"}}}}}),zs({noRowsLabel:"Ingen r\xe6kker",noResultsOverlayLabel:"Ingen resultater",errorOverlayDefaultLabel:"Der skete en fejl.",toolbarDensityLabel:"T\xe6thed",toolbarDensityCompact:"Kompakt",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Luftig",toolbarColumns:"Kolonne",toolbarColumnsLabel:"V\xe6lg kolonne",toolbarFiltersLabel:"Vis filtre",toolbarFiltersTooltipHide:"Skjul filtre",toolbarFiltersTooltipShow:"Vis filtre",toolbarFiltersTooltipActive:function(e){return"".concat(e,1!==e?" aktive filtre":" aktivt filter")},toolbarExportLabel:"Eksporter",toolbarExportCSV:"Download som CSV",columnsPanelTextFieldLabel:"Find kolonne",columnsPanelTextFieldPlaceholder:"Kolonne titel",columnsPanelDragIconLabel:"Reorder kolonne",columnsPanelShowAllButton:"Vis alle",columnsPanelHideAllButton:"Skjul alle",filterPanelAddFilter:"Tilf\xf8j filter",filterPanelDeleteIconLabel:"Slet",filterPanelOperators:"Operatorer",filterPanelColumns:"Kolonne",filterPanelInputLabel:"V\xe6rdi",filterPanelInputPlaceholder:"Filter v\xe6rdi",filterOperatorContains:"Indeholder",filterOperatorEquals:"Lig med",filterOperatorStartsWith:"Begynder med",filterOperatorEndsWith:"Ender med",filterOperatorIs:"P\xe5",filterOperatorNot:"Ikke p\xe5",filterOperatorAfter:"Efter",filterOperatorOnOrAfter:"P\xe5 eller efter",filterOperatorBefore:"F\xf8r",filterOperatorOnOrBefore:"P\xe5 eller f\xf8r",filterOperatorIsEmpty:"Indeholder data",filterOperatorIsNotEmpty:"Indeholder ikke data",columnMenuShowColumns:"Vis Kolonner",columnMenuHideColumn:"Skjul",columnMenuUnsort:"Fjern sortering",columnMenuSortAsc:"Sorter stigende",columnMenuSortDesc:"Sorter faldende",columnHeaderFiltersTooltipActive:function(e){return"".concat(e,1!==e?" aktive filtre":" aktivt filter")},columnHeaderFiltersLabel:"Vis filtre",columnHeaderSortIconLabel:"Sorter",footerRowSelected:function(e){return"".concat(e.toLocaleString(),1!==e?" r\xe6kker valgt":" r\xe6kke valgt")},footerTotalRows:"Totale r\xe6kker:",footerTotalVisibleRows:function(e,t){return"".concat(e.toLocaleString()," af ").concat(t.toLocaleString())},checkboxSelectionHeaderName:"Afkrydsningsvalg",actionsCellMore:"mere",pinToLeft:"Fastg\xf8r til venstre",pinToRight:"Fastg\xf8r til h\xf8jre",unpin:"Frigiv",treeDataGroupingHeaderName:"Gruppering",treeDataExpand:"Vis underelementer",treeDataCollapse:"Skjul underelementer"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"Vis sti"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:function(e){return"first"===e?"G\xe5 til den f\xf8rste side":"last"===e?"G\xe5 til den sidste side":"next"===e?"G\xe5 til den n\xe6ste side":"G\xe5 til den forrige side"},labelRowsPerPage:"R\xe6kker pr side:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," af ").concat(-1!==r?r:"mere end ".concat(n))}}},MuiRating:{defaultProps:{getLabelText:function(e){return"".concat(e," Stjern").concat(1!==e?"er":"")},emptyLabelText:"Tom"}},MuiAutocomplete:{defaultProps:{clearText:"Slet",closeText:"Luk",loadingText:"Indl\xe6ser\u2026",noOptionsText:"Ingen muligheder",openText:"\xc5ben"}},MuiAlert:{defaultProps:{closeText:"Luk"}},MuiPagination:{defaultProps:{"aria-label":"Sideinddelings navigation",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"Go to ","page ").concat(t):"first"===e?"G\xe5 til den f\xf8rste side":"last"===e?"G\xe5 til den sidste side":"next"===e?"G\xe5 til den n\xe6ste side":"G\xe5 til den forrige side"}}}}}),zs({noRowsLabel:"Keine Eintr\xe4ge",noResultsOverlayLabel:"Keine Ergebnisse gefunden.",errorOverlayDefaultLabel:"Ein unerwarteter Fehler ist aufgetreten.",toolbarDensity:"Zeilenh\xf6he",toolbarDensityLabel:"Zeilenh\xf6he",toolbarDensityCompact:"Kompakt",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Breit",toolbarColumns:"Spalten",toolbarColumnsLabel:"Zeige Spaltenauswahl",toolbarFilters:"Filter",toolbarFiltersLabel:"Zeige Filter",toolbarFiltersTooltipHide:"Verberge Filter",toolbarFiltersTooltipShow:"Zeige Filter",toolbarFiltersTooltipActive:function(e){return"".concat(e,1!==e?" aktive Filter":" aktiver Filter")},toolbarExport:"Exportieren",toolbarExportLabel:"Exportieren",toolbarExportCSV:"Download als CSV",toolbarExportPrint:"Drucken",columnsPanelTextFieldLabel:"Finde Spalte",columnsPanelTextFieldPlaceholder:"Spalten\xfcberschrift",columnsPanelDragIconLabel:"Spalte umsortieren",columnsPanelShowAllButton:"Zeige alle",columnsPanelHideAllButton:"Verberge alle",filterPanelAddFilter:"Filter hinzuf\xfcgen",filterPanelDeleteIconLabel:"L\xf6schen",filterPanelOperators:"Operatoren",filterPanelOperatorAnd:"Und",filterPanelOperatorOr:"Oder",filterPanelColumns:"Spalten",filterPanelInputLabel:"Wert",filterPanelInputPlaceholder:"Wert filtern",filterOperatorContains:"enth\xe4lt",filterOperatorEquals:"ist gleich",filterOperatorStartsWith:"beginnt mit",filterOperatorEndsWith:"endet mit",filterOperatorIs:"ist",filterOperatorNot:"ist nicht",filterOperatorAfter:"ist nach",filterOperatorOnOrAfter:"ist am oder nach",filterOperatorBefore:"ist vor",filterOperatorOnOrBefore:"ist am oder vor",filterOperatorIsEmpty:"ist leer",filterOperatorIsNotEmpty:"ist nicht leer",filterValueAny:"Beliebig",filterValueTrue:"Ja",filterValueFalse:"Nein",columnMenuLabel:"Men\xfc",columnMenuShowColumns:"Zeige alle Spalten",columnMenuFilter:"Filter",columnMenuHideColumn:"Verbergen",columnMenuUnsort:"Sortierung deaktivieren",columnMenuSortAsc:"Sortiere aufsteigend",columnMenuSortDesc:"Sortiere absteigend",columnHeaderFiltersTooltipActive:function(e){return"".concat(e,1!==e?" aktive Filter":" aktiver Filter")},columnHeaderFiltersLabel:"Zeige Filter",columnHeaderSortIconLabel:"Sortieren",footerRowSelected:function(e){return"".concat(e.toLocaleString(),1!==e?" Eintr\xe4ge ausgew\xe4hlt":" Eintrag ausgew\xe4hlt")},footerTotalRows:"Gesamt:",footerTotalVisibleRows:function(e,t){return"".concat(e.toLocaleString()," von ").concat(t.toLocaleString())},checkboxSelectionHeaderName:"Checkbox Auswahl",booleanCellTrueLabel:"Ja",booleanCellFalseLabel:"Nein",actionsCellMore:"Mehr",pinToLeft:"Links anheften",pinToRight:"Rechts anheften",unpin:"Losl\xf6sen",treeDataGroupingHeaderName:"Gruppe",treeDataExpand:"Kinder einblenden",treeDataCollapse:"Kinder ausblenden"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"Pfad anzeigen"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:function(e){return"first"===e?"Zur ersten Seite":"last"===e?"Zur letzten Seite":"next"===e?"Zur n\xe4chsten Seite":"Zur vorherigen Seite"},labelRowsPerPage:"Zeilen pro Seite:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"\u2013").concat(n," von ").concat(-1!==r?r:"mehr als ".concat(n))}}},MuiRating:{defaultProps:{getLabelText:function(e){return"".concat(e," ").concat(1!==e?"Sterne":"Stern")},emptyLabelText:"Keine Wertung"}},MuiAutocomplete:{defaultProps:{clearText:"Leeren",closeText:"Schlie\xdfen",loadingText:"Wird geladen\u2026",noOptionsText:"Keine Optionen",openText:"\xd6ffnen"}},MuiAlert:{defaultProps:{closeText:"Schlie\xdfen"}},MuiPagination:{defaultProps:{"aria-label":"Navigation via Seitennummerierung",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"Gehe zu ","Seite ").concat(t):"first"===e?"Zur ersten Seite":"last"===e?"Zur letzten Seite":"next"===e?"Zur n\xe4chsten Seite":"Zur vorherigen Seite"}}}}}),zs({noRowsLabel:"\u0394\u03b5\u03bd \u03c5\u03c0\u03ac\u03c1\u03c7\u03bf\u03c5\u03bd \u03ba\u03b1\u03c4\u03b1\u03c7\u03c9\u03c1\u03ae\u03c3\u03b5\u03b9\u03c2",noResultsOverlayLabel:"\u0394\u03b5\u03bd \u03b2\u03c1\u03ad\u03b8\u03b7\u03ba\u03b1\u03bd \u03b1\u03c0\u03bf\u03c4\u03b5\u03bb\u03ad\u03c3\u03bc\u03b1\u03c4\u03b1.",errorOverlayDefaultLabel:"\u03a0\u03b1\u03c1\u03bf\u03c5\u03c3\u03b9\u03ac\u03c3\u03c4\u03b7\u03ba\u03b5 \u03b1\u03c0\u03c1\u03cc\u03b2\u03bb\u03b5\u03c0\u03c4\u03bf \u03c3\u03c6\u03ac\u03bb\u03bc\u03b1.",toolbarDensity:"\u038e\u03c8\u03bf\u03c2 \u03c3\u03b5\u03b9\u03c1\u03ac\u03c2",toolbarDensityLabel:"\u038e\u03c8\u03bf\u03c2 \u03c3\u03b5\u03b9\u03c1\u03ac\u03c2",toolbarDensityCompact:"\u03a3\u03c5\u03bc\u03c0\u03b1\u03b3\u03ae\u03c2",toolbarDensityStandard:"\u03a0\u03c1\u03bf\u03ba\u03b1\u03b8\u03bf\u03c1\u03b9\u03c3\u03bc\u03ad\u03bd\u03bf",toolbarDensityComfortable:"\u03a0\u03bb\u03b1\u03c4\u03cd",toolbarColumns:"\u03a3\u03c4\u03ae\u03bb\u03b5\u03c2",toolbarColumnsLabel:"\u0395\u03c0\u03b9\u03bb\u03ad\u03be\u03c4\u03b5 \u03c3\u03c4\u03ae\u03bb\u03b5\u03c2",toolbarFilters:"\u03a6\u03af\u03bb\u03c4\u03c1\u03b1",toolbarFiltersLabel:"\u0395\u03bc\u03c6\u03ac\u03bd\u03b9\u03c3\u03b7 \u03c6\u03af\u03bb\u03c4\u03c1\u03c9\u03bd",toolbarFiltersTooltipHide:"\u0391\u03c0\u03cc\u03ba\u03c1\u03c5\u03c8\u03b7 \u03c6\u03af\u03bb\u03c4\u03c1\u03c9\u03bd",toolbarFiltersTooltipShow:"\u0395\u03bc\u03c6\u03ac\u03bd\u03b9\u03c3\u03b7 \u03c6\u03af\u03bb\u03c4\u03c1\u03c9\u03bd",toolbarFiltersTooltipActive:function(e){return"".concat(e,1!==e?" \u03b5\u03bd\u03b5\u03c1\u03b3\u03ac \u03c6\u03af\u03bb\u03c4\u03c1\u03b1":" \u03b5\u03bd\u03b5\u03c1\u03b3\u03cc \u03c6\u03af\u03bb\u03c4\u03c1\u03bf")},toolbarExport:"\u0395\u03be\u03b1\u03b3\u03c9\u03b3\u03ae",toolbarExportLabel:"\u0395\u03be\u03b1\u03b3\u03c9\u03b3\u03ae",toolbarExportCSV:"\u039b\u03ae\u03c8\u03b7 \u03c9\u03c2 CSV",columnsPanelTextFieldLabel:"\u0395\u03cd\u03c1\u03b5\u03c3\u03b7 \u03c3\u03c4\u03ae\u03bb\u03b7\u03c2",columnsPanelTextFieldPlaceholder:"\u0395\u03c0\u03b9\u03ba\u03b5\u03c6\u03b1\u03bb\u03af\u03b4\u03b1 \u03c3\u03c4\u03ae\u03bb\u03b7\u03c2",columnsPanelDragIconLabel:"\u0391\u03bd\u03b1\u03b4\u03b9\u03ac\u03c4\u03b1\u03be\u03b7 \u03c3\u03c4\u03ae\u03bb\u03b7\u03c2",columnsPanelShowAllButton:"\u03a0\u03c1\u03bf\u03b2\u03bf\u03bb\u03ae \u03cc\u03bb\u03c9\u03bd",columnsPanelHideAllButton:"\u0391\u03c0\u03cc\u03ba\u03c1\u03c5\u03c8\u03b7 \u03cc\u03bb\u03c9\u03bd",filterPanelAddFilter:"\u03a0\u03c1\u03bf\u03c3\u03b8\u03ae\u03ba\u03b7 \u03c6\u03af\u03bb\u03c4\u03c1\u03bf\u03c5",filterPanelDeleteIconLabel:"\u0394\u03b9\u03b1\u03b3\u03c1\u03b1\u03c6\u03ae",filterPanelOperators:"\u03a4\u03b5\u03bb\u03b5\u03c3\u03c4\u03ad\u03c2",filterPanelOperatorAnd:"\u039a\u03b1\u03af",filterPanelOperatorOr:"\u0389",filterPanelColumns:"\u03a3\u03c4\u03ae\u03bb\u03b5\u03c2",filterPanelInputLabel:"\u03a4\u03b9\u03bc\u03ae",filterPanelInputPlaceholder:"\u03a4\u03b9\u03bc\u03ae \u03c6\u03af\u03bb\u03c4\u03c1\u03bf\u03c5",filterOperatorContains:"\u03c0\u03b5\u03c1\u03b9\u03ad\u03c7\u03b5\u03b9",filterOperatorEquals:"\u03b9\u03c3\u03bf\u03cd\u03c4\u03b1\u03b9",filterOperatorStartsWith:"\u03be\u03b5\u03ba\u03b9\u03bd\u03ac\u03b5\u03b9 \u03bc\u03b5",filterOperatorEndsWith:"\u03c4\u03b5\u03bb\u03b5\u03b9\u03ce\u03bd\u03b5\u03b9 \u03bc\u03b5",filterOperatorIs:"\u03b5\u03af\u03bd\u03b1\u03b9",filterOperatorNot:"\u03b4\u03b5\u03bd \u03b5\u03af\u03bd\u03b1\u03b9",filterOperatorAfter:"\u03b5\u03af\u03bd\u03b1\u03b9 \u03bc\u03b5\u03c4\u03ac",filterOperatorOnOrAfter:"\u03b5\u03af\u03bd\u03b1\u03b9 \u03af\u03c3\u03bf \u03ae \u03bc\u03b5\u03c4\u03ac",filterOperatorBefore:"\u03b5\u03af\u03bd\u03b1\u03b9 \u03c0\u03c1\u03b9\u03bd",filterOperatorOnOrBefore:"\u03b5\u03af\u03bd\u03b1\u03b9 \u03af\u03c3\u03bf \u03ae \u03c0\u03c1\u03b9\u03bd",filterOperatorIsEmpty:"\u03b5\u03af\u03bd\u03b1\u03b9 \u03ba\u03b5\u03bd\u03cc",filterOperatorIsNotEmpty:"\u03b4\u03b5\u03bd \u03b5\u03af\u03bd\u03b1\u03b9 \u03ba\u03b5\u03bd\u03cc",columnMenuLabel:"\u039c\u03b5\u03bd\u03bf\u03cd",columnMenuShowColumns:"\u0395\u03bc\u03c6\u03ac\u03bd\u03b9\u03c3\u03b7 \u03c3\u03c4\u03b7\u03bb\u03ce\u03bd",columnMenuFilter:"\u03a6\u03af\u03bb\u03c4\u03c1\u03bf",columnMenuHideColumn:"\u0391\u03c0\u03cc\u03ba\u03c1\u03c5\u03c8\u03b7",columnMenuUnsort:"\u0391\u03c0\u03b5\u03bd\u03b5\u03c1\u03b3\u03bf\u03c0\u03bf\u03af\u03b7\u03c3\u03b7 \u03c4\u03b1\u03be\u03b9\u03bd\u03cc\u03bc\u03b7\u03c3\u03b7\u03c2",columnMenuSortAsc:"\u03a4\u03b1\u03be\u03b9\u03bd\u03cc\u03bc\u03b7\u03c3\u03b7 \u03c3\u03b5 \u03b1\u03cd\u03be\u03bf\u03c5\u03c3\u03b1 \u03c3\u03b5\u03b9\u03c1\u03ac",columnMenuSortDesc:"\u03a4\u03b1\u03be\u03b9\u03bd\u03cc\u03bc\u03b7\u03c3\u03b7 \u03c3\u03b5 \u03c6\u03b8\u03af\u03bd\u03bf\u03c5\u03c3\u03b1 \u03c3\u03b5\u03b9\u03c1\u03ac",columnHeaderFiltersTooltipActive:function(e){return"".concat(e,1!==e?" \u03b5\u03bd\u03b5\u03c1\u03b3\u03ac \u03c6\u03af\u03bb\u03c4\u03c1\u03b1":" \u03b5\u03bd\u03b5\u03c1\u03b3\u03cc \u03c6\u03af\u03bb\u03c4\u03c1\u03bf")},columnHeaderFiltersLabel:"\u0395\u03bc\u03c6\u03ac\u03bd\u03b9\u03c3\u03b7 \u03c6\u03af\u03bb\u03c4\u03c1\u03c9\u03bd",columnHeaderSortIconLabel:"\u03a4\u03b1\u03be\u03b9\u03bd\u03cc\u03bc\u03b7\u03c3\u03b7",footerRowSelected:function(e){return"".concat(e.toLocaleString(),1!==e?" \u03b5\u03c0\u03b9\u03bb\u03b5\u03b3\u03bc\u03ad\u03bd\u03b5\u03c2 \u03b3\u03c1\u03b1\u03bc\u03bc\u03ad\u03c2":" \u03b5\u03c0\u03b9\u03bb\u03b5\u03b3\u03bc\u03ad\u03bd\u03b7 \u03b3\u03c1\u03b1\u03bc\u03bc\u03ae")},footerTotalRows:"\u03a3\u03cd\u03bd\u03bf\u03bb\u03bf \u0393\u03c1\u03b1\u03bc\u03bc\u03ce\u03bd:",footerTotalVisibleRows:function(e,t){return"".concat(e.toLocaleString()," \u03b1\u03c0\u03cc ").concat(t.toLocaleString())},actionsCellMore:"\u03c0\u03b5\u03c1\u03b9\u03c3\u03c3\u03cc\u03c4\u03b5\u03c1\u03b1"}),zs(qa,{}),zs({noRowsLabel:"Sin filas",errorOverlayDefaultLabel:"Ha ocurrido un error.",toolbarDensity:"Densidad",toolbarDensityLabel:"Densidad",toolbarDensityCompact:"Compacta",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comoda",toolbarColumns:"Columnas",toolbarColumnsLabel:"Seleccionar columnas",toolbarFilters:"Filtros",toolbarFiltersLabel:"Mostrar filtros",toolbarFiltersTooltipHide:"Ocultar filtros",toolbarFiltersTooltipShow:"Mostrar filtros",toolbarFiltersTooltipActive:function(e){return"".concat(e,e>1?" filtros activos":" filtro activo")},toolbarExport:"Exportar",toolbarExportLabel:"Exportar",toolbarExportCSV:"Descargar como CSV",columnsPanelTextFieldLabel:"Columna de b\xfasqueda",columnsPanelTextFieldPlaceholder:"T\xedtulo de columna",columnsPanelDragIconLabel:"Reorder columna",columnsPanelShowAllButton:"Mostrar todo",columnsPanelHideAllButton:"Ocultar todo",filterPanelAddFilter:"Agregar filtro",filterPanelDeleteIconLabel:"Borrar",filterPanelOperators:"Operadores",filterPanelOperatorAnd:"Y",filterPanelOperatorOr:"O",filterPanelColumns:"Columnas",filterPanelInputLabel:"Valor",filterPanelInputPlaceholder:"Valor de filtro",filterOperatorContains:"contiene",filterOperatorEquals:"es igual",filterOperatorStartsWith:"comienza con",filterOperatorEndsWith:"termina con",filterOperatorIs:"es",filterOperatorNot:"no es",filterOperatorAfter:"es posterior",filterOperatorOnOrAfter:"es en o posterior",filterOperatorBefore:"es anterior",filterOperatorOnOrBefore:"es en o anterior",filterOperatorIsEmpty:"est\xe1 vac\xedo",filterOperatorIsNotEmpty:"no esta vac\xedo",columnMenuLabel:"Men\xfa",columnMenuShowColumns:"Mostrar columnas",columnMenuFilter:"Filtro",columnMenuHideColumn:"Ocultar",columnMenuUnsort:"Desordenar",columnMenuSortAsc:"Ordenar ASC",columnMenuSortDesc:"Ordenar DESC",columnHeaderFiltersTooltipActive:function(e){return"".concat(e,e>1?" filtros activos":" filtro activo")},columnHeaderFiltersLabel:"Mostrar filtros",columnHeaderSortIconLabel:"Ordenar",footerRowSelected:function(e){return"".concat(e.toLocaleString(),e>1?" filas seleccionadas":" fila seleccionada")},footerTotalRows:"Filas Totales:",footerTotalVisibleRows:function(e,t){return"".concat(e.toLocaleString()," de ").concat(t.toLocaleString())},actionsCellMore:"m\xe1s"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"Mostrar ruta"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:function(e){return"first"===e?"Ir a la primera p\xe1gina":"last"===e?"Ir a la \xfaltima p\xe1gina":"next"===e?"Ir a la p\xe1gina siguiente":"Ir a la p\xe1gina anterior"},labelRowsPerPage:"Filas por p\xe1gina:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"\u2013").concat(n," de ").concat(-1!==r?r:"m\xe1s de ".concat(n))}}},MuiRating:{defaultProps:{getLabelText:function(e){return"".concat(e," Estrella").concat(1!==e?"s":"")},emptyLabelText:"Vac\xedo"}},MuiAutocomplete:{defaultProps:{clearText:"Limpiar",closeText:"Cerrar",loadingText:"Cargando\u2026",noOptionsText:"Sin opciones",openText:"Abierto"}},MuiAlert:{defaultProps:{closeText:"Cerrar"}},MuiPagination:{defaultProps:{"aria-label":"Paginador",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"Ir a la ","p\xe1gina ").concat(t):"first"===e?"Ir a la primera p\xe1gina":"last"===e?"Ir a la \xfaltima p\xe1gina":"next"===e?"Ir a la p\xe1gina siguiente":"Ir a la p\xe1gina anterior"}}}}}),zs({noRowsLabel:"\u0628\u062f\u0648\u0646 \u0633\u0637\u0631",noResultsOverlayLabel:"\u0646\u062a\u06cc\u062c\u0647 \u0627\u06cc \u067e\u06cc\u062f\u0627 \u0646\u0634\u062f.",errorOverlayDefaultLabel:"\u062e\u0637\u0627\u06cc\u06cc \u0631\u0648\u06cc \u062f\u0627\u062f.",toolbarDensity:"\u062a\u0631\u0627\u06a9\u0645",toolbarDensityLabel:"\u062a\u0631\u0627\u06a9\u0645",toolbarDensityCompact:"\u0641\u0634\u0631\u062f\u0647",toolbarDensityStandard:"\u0627\u0633\u062a\u0627\u0646\u062f\u0627\u0631\u062f",toolbarDensityComfortable:"\u0631\u0627\u062d\u062a",toolbarColumns:"\u0633\u062a\u0648\u0646\u200c\u0647\u0627",toolbarColumnsLabel:"\u0633\u062a\u0648\u0646\u200c\u0647\u0627 \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f",toolbarFilters:"\u0641\u06cc\u0644\u062a\u0631\u0647\u0627",toolbarFiltersLabel:"\u0646\u0645\u0627\u06cc\u0634 \u0641\u06cc\u0644\u062a\u0631\u0647\u0627",toolbarFiltersTooltipHide:"\u0645\u062e\u0641\u06cc \u06a9\u0631\u062f\u0646 \u0641\u06cc\u0644\u062a\u0631\u0647\u0627",toolbarFiltersTooltipShow:"\u0646\u0645\u0627\u06cc\u0634 \u0641\u06cc\u0644\u062a\u0631\u0647\u0627",toolbarFiltersTooltipActive:function(e){return"".concat(e,1!==e?" \u0641\u06cc\u0644\u062a\u0631\u0647\u0627\u06cc \u0641\u0639\u0627\u0644":" \u0641\u06cc\u0644\u062a\u0631 \u0641\u0639\u0627\u0644")},toolbarExport:"\u062e\u0631\u0648\u062c\u06cc",toolbarExportLabel:"\u062e\u0631\u0648\u062c\u06cc",toolbarExportCSV:"\u062f\u0627\u0646\u0644\u0648\u062f \u0628\u0647\u200c\u0635\u0648\u0631\u062a CSV",columnsPanelTextFieldLabel:"\u067e\u06cc\u062f\u0627\u06a9\u0631\u062f\u0646 \u0633\u062a\u0648\u0646",columnsPanelTextFieldPlaceholder:"\u0639\u0646\u0648\u0627\u0646 \u0633\u062a\u0648\u0646",columnsPanelDragIconLabel:"\u062c\u0627\u200c\u0628\u0647\u200c\u062c\u0627\u06cc\u06cc \u0633\u062a\u0648\u0646",columnsPanelShowAllButton:"\u0646\u0645\u0627\u06cc\u0634 \u0647\u0645\u0647",columnsPanelHideAllButton:"\u0645\u062e\u0641\u06cc \u0647\u0645\u0647",filterPanelAddFilter:"\u0627\u0641\u0632\u0648\u062f\u0646 \u0641\u06cc\u0644\u062a\u0631",filterPanelDeleteIconLabel:"\u062d\u0630\u0641",filterPanelOperators:"\u0639\u0645\u0644\u06af\u0631\u0647\u0627",filterPanelOperatorAnd:"\u0648",filterPanelOperatorOr:"\u06cc\u0627",filterPanelColumns:"\u0633\u062a\u0648\u0646\u200c\u0647\u0627",filterPanelInputLabel:"\u0645\u0642\u062f\u0627\u0631",filterPanelInputPlaceholder:"\u0641\u06cc\u0644\u062a\u0631 \u0645\u0642\u062f\u0627\u0631",filterOperatorContains:"\u0634\u0627\u0645\u0644",filterOperatorEquals:"\u0645\u0633\u0627\u0648\u06cc",filterOperatorStartsWith:"\u0634\u0631\u0648\u0639 \u0628\u0627",filterOperatorEndsWith:"\u067e\u0627\u06cc\u0627\u0646 \u0628\u0627",filterOperatorIs:"\u0647\u0633\u062a",filterOperatorNot:"\u0646\u06cc\u0633\u062a",filterOperatorAfter:"\u0628\u0639\u062f \u0627\u0632",filterOperatorOnOrAfter:"\u0645\u0639\u0627\u062f\u0644 \u06cc\u0627 \u0628\u0639\u062f\u0634",filterOperatorBefore:"\u0642\u0628\u0644\u0634",filterOperatorOnOrBefore:"\u0645\u0639\u0627\u062f\u0644 \u06cc\u0627 \u0642\u0628\u0644\u0634",filterOperatorIsEmpty:"\u062e\u0627\u0644\u06cc \u0627\u0633\u062a",filterOperatorIsNotEmpty:"\u062e\u0627\u0644\u06cc \u0646\u06cc\u0633\u062a",filterValueAny:"\u0647\u0631\u0686\u06cc\u0632\u06cc",filterValueTrue:"\u0635\u062d\u06cc\u062d",filterValueFalse:"\u063a\u0644\u0637",columnMenuLabel:"\u0641\u0647\u0631\u0633\u062a",columnMenuShowColumns:"\u0646\u0645\u0627\u06cc\u0634 \u0633\u062a\u0648\u0646\u200c\u0647\u0627",columnMenuFilter:"\u0641\u06cc\u0644\u062a\u0631",columnMenuHideColumn:"\u0645\u062e\u0641\u06cc",columnMenuUnsort:"\u0646\u0627\u0645\u0631\u062a\u0628\u200c\u06a9\u0631\u062f\u0646",columnMenuSortAsc:"\u0645\u0631\u062a\u0628\u200c\u06a9\u0631\u062f\u0646 \u0635\u0639\u0648\u062f\u06cc",columnMenuSortDesc:"\u0645\u0631\u062a\u0628\u200c\u06a9\u0631\u062f\u0646 \u0646\u0632\u0648\u0644\u06cc",columnHeaderFiltersTooltipActive:function(e){return"".concat(e,1!==e?" \u0641\u06cc\u0644\u062a\u0631\u200c\u0647\u0627\u06cc \u0641\u0639\u0627\u0644":" \u0641\u06cc\u0644\u062a\u0631 \u0641\u0639\u0627\u0644")},columnHeaderFiltersLabel:"\u0646\u0645\u0627\u06cc\u0634 \u0641\u06cc\u0644\u062a\u0631\u0647\u0627",columnHeaderSortIconLabel:"\u0645\u0631\u062a\u0628\u200c\u06a9\u0631\u062f\u0646",footerRowSelected:function(e){return"".concat(e.toLocaleString(),1!==e?" \u0633\u0637\u0631\u0647\u0627\u06cc \u0627\u0646\u062a\u062e\u0627\u0628 \u0634\u062f\u0647":" \u0633\u0637\u0631 \u0627\u0646\u062a\u062e\u0627\u0628 \u0634\u062f\u0647")},footerTotalRows:"\u0645\u062c\u0645\u0648\u0639 \u0633\u0637\u0631\u0647\u0627:",footerTotalVisibleRows:function(e,t){return"".concat(e.toLocaleString()," \u0627\u0632 ").concat(t.toLocaleString())},checkboxSelectionHeaderName:"\u0627\u0646\u062a\u062e\u0627\u0628 \u0686\u06a9\u200c\u0628\u0627\u06a9\u0633",booleanCellTrueLabel:"\u0635\u062d\u06cc\u062d",booleanCellFalseLabel:"\u063a\u0644\u0637",actionsCellMore:"\u0628\u06cc\u0634\u062a\u0631"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"\u0646\u0645\u0627\u06cc\u0634 \u0645\u0633\u06cc\u0631"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:function(e){return"first"===e?"\u0631\u0641\u062a\u0646 \u0628\u0647 \u0627\u0648\u0644\u06cc\u0646 \u0635\u0641\u062d\u0647":"last"===e?"\u0631\u0641\u062a\u0646 \u0628\u0647 \u0622\u062e\u0631\u06cc\u0646 \u0635\u0641\u062d\u0647":"next"===e?"\u0631\u0641\u062a\u0646 \u0628\u0647 \u0635\u0641\u062d\u0647\u200c\u06cc \u0628\u0639\u062f\u06cc":"\u0631\u0641\u062a\u0646 \u0628\u0647 \u0635\u0641\u062d\u0647\u200c\u06cc \u0642\u0628\u0644\u06cc"},labelRowsPerPage:"\u062a\u0639\u062f\u0627\u062f \u0633\u0637\u0631\u0647\u0627\u06cc \u0647\u0631 \u0635\u0641\u062d\u0647:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"\u2013").concat(n," \u0627\u0632 ").concat(-1!==r?r:"\u0628\u06cc\u0634\u062a\u0631 \u0627\u0632 ".concat(n))}}},MuiRating:{defaultProps:{getLabelText:function(e){return"".concat(e," \u0633\u062a\u0627\u0631\u0647")},emptyLabelText:"\u062e\u0627\u0644\u06cc"}},MuiAutocomplete:{defaultProps:{clearText:"\u067e\u0627\u06a9\u200c\u06a9\u0631\u062f\u0646",closeText:"\u0628\u0633\u062a\u0646",loadingText:"\u062f\u0631 \u062d\u0627\u0644 \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc\u2026",noOptionsText:"\u0628\u06cc\u200c\u0646\u062a\u06cc\u062c\u0647",openText:"\u0628\u0627\u0632\u06a9\u0631\u062f\u0646"}},MuiAlert:{defaultProps:{closeText:"\u0628\u0633\u062a\u0646"}},MuiPagination:{defaultProps:{"aria-label":"\u0646\u0627\u0648\u0628\u0631\u06cc \u0635\u0641\u062d\u0647",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"\u0631\u0641\u062a\u0646 \u0628\u0647 ","\u0635\u0641\u062d\u0647\u0654 ").concat(t):"first"===e?"\u0631\u0641\u062a\u0646 \u0628\u0647 \u0627\u0648\u0644\u06cc\u0646 \u0635\u0641\u062d\u0647":"last"===e?"\u0631\u0641\u062a\u0646 \u0628\u0647 \u0622\u062e\u0631\u06cc\u0646 \u0635\u0641\u062d\u0647":"next"===e?"\u0631\u0641\u062a\u0646 \u0628\u0647 \u0635\u0641\u062d\u0647\u200c\u06cc \u0628\u0639\u062f\u06cc":"\u0631\u0641\u062a\u0646 \u0628\u0647 \u0635\u0641\u062d\u0647\u200c\u06cc \u0642\u0628\u0644\u06cc"}}}}}),zs({noRowsLabel:"Ei rivej\xe4",noResultsOverlayLabel:"Ei tuloksia.",errorOverlayDefaultLabel:"Tapahtui virhe.",toolbarDensity:"Density",toolbarDensityLabel:"Tiiveys",toolbarDensityCompact:"Kompakti",toolbarDensityStandard:"Vakio",toolbarDensityComfortable:"Mukava",toolbarColumns:"Sarakkeet",toolbarColumnsLabel:"Valitse sarakkeet",toolbarFilters:"Suodattimet",toolbarFiltersLabel:"N\xe4yt\xe4 suodattimet",toolbarFiltersTooltipHide:"Piilota suodattimet",toolbarFiltersTooltipShow:"N\xe4yt\xe4 suodattimet",toolbarFiltersTooltipActive:function(e){return"".concat(e,1!==e?" aktiivista suodatinta":" aktiivinen suodatin")},toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Lataa CSV-muodossa",toolbarExportPrint:"Tulosta",columnsPanelTextFieldLabel:"Etsi sarake",columnsPanelTextFieldPlaceholder:"Sarakkeen otsikko",columnsPanelDragIconLabel:"J\xe4rjest\xe4 sarake uudelleen",columnsPanelShowAllButton:"N\xe4yt\xe4 kaikki",columnsPanelHideAllButton:"Piilota kaikki",filterPanelAddFilter:"Lis\xe4\xe4 suodatin",filterPanelDeleteIconLabel:"Poista",filterPanelOperators:"Operaattorit",filterPanelOperatorAnd:"Ja",filterPanelOperatorOr:"Tai",filterPanelColumns:"Sarakkeet",filterPanelInputLabel:"Arvo",filterPanelInputPlaceholder:"Suodattimen arvo",filterOperatorContains:"sis\xe4lt\xe4\xe4",filterOperatorEquals:"on yht\xe4 suuri",filterOperatorStartsWith:"alkaa",filterOperatorEndsWith:"p\xe4\xe4ttyy",filterOperatorIs:"on",filterOperatorNot:"ei ole",filterOperatorAfter:"on j\xe4lkeen",filterOperatorOnOrAfter:"on sama tai j\xe4lkeen",filterOperatorBefore:"on ennen",filterOperatorOnOrBefore:"on sama tai ennen",filterOperatorIsEmpty:"on tyhj\xe4",filterOperatorIsNotEmpty:"ei ole tyhj\xe4",filterValueAny:"mik\xe4 tahansa",filterValueTrue:"tosi",filterValueFalse:"ep\xe4tosi",columnMenuLabel:"Valikko",columnMenuShowColumns:"N\xe4yt\xe4 sarakkeet",columnMenuFilter:"Suodata",columnMenuHideColumn:"Piilota",columnMenuUnsort:"Poista j\xe4rjestys",columnMenuSortAsc:"J\xe4rjest\xe4 laskevasti",columnMenuSortDesc:"J\xe4rjest\xe4 nousevasti",columnHeaderFiltersTooltipActive:function(e){return"".concat(e,1!==e?" aktiivista suodatinta":" aktiivinen suodatin")},columnHeaderFiltersLabel:"N\xe4yt\xe4 suodattimet",columnHeaderSortIconLabel:"J\xe4rjest\xe4",footerRowSelected:function(e){return"".concat(e.toLocaleString(),1!==e?" rivi\xe4 valittu":" rivi valittu")},footerTotalRows:"Rivej\xe4 yhteens\xe4:",footerTotalVisibleRows:function(e,t){return"".concat(e.toLocaleString()," / ").concat(t.toLocaleString())},checkboxSelectionHeaderName:"Valintaruutu",booleanCellTrueLabel:"tosi",booleanCellFalseLabel:"ep\xe4tosi",actionsCellMore:"lis\xe4\xe4",pinToLeft:"Kiinnit\xe4 vasemmalle",pinToRight:"Kiinnit\xe4 oikealle",unpin:"Irrota kiinnitys",treeDataGroupingHeaderName:"Ryhm\xe4",treeDataExpand:"Laajenna",treeDataCollapse:"Supista"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"N\xe4yt\xe4 reitti"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:function(e){return"first"===e?"Mene ensimm\xe4iselle sivulle":"last"===e?"Mene viimeiselle sivulle":"next"===e?"Mene seuraavalle sivulle":"Mene edelliselle sivulle"},labelRowsPerPage:"Rivej\xe4 per sivu:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"\u2013").concat(n," / ").concat(-1!==r?r:"enemm\xe4n kuin ".concat(n))}}},MuiRating:{defaultProps:{getLabelText:function(e){return"".concat(e," T\xe4ht").concat(1!==e?"e\xe4":"i")},emptyLabelText:"Tyhj\xe4"}},MuiAutocomplete:{defaultProps:{clearText:"Tyhjenn\xe4",closeText:"Sulje",loadingText:"Ladataan\u2026",noOptionsText:"Ei valintoja",openText:"Avaa"}},MuiAlert:{defaultProps:{closeText:"Sulje"}},MuiPagination:{defaultProps:{"aria-label":"Sivutus navigaatio",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"sivu":"Mene sivulle"," ").concat(t):"first"===e?"Mene ensimm\xe4iselle sivulle":"last"===e?"Mene viimeiselle sivulle":"next"===e?"Mene seuraavalle sivulle":"Mene edelliselle sivulle"}}}}}),zs({noRowsLabel:"Pas de r\xe9sultats",noResultsOverlayLabel:"Aucun r\xe9sultat.",errorOverlayDefaultLabel:"Une erreur est apparue.",toolbarDensity:"Densit\xe9",toolbarDensityLabel:"Densit\xe9",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Confortable",toolbarColumns:"Colonnes",toolbarColumnsLabel:"Choisir les colonnes",toolbarFilters:"Filtres",toolbarFiltersLabel:"Afficher les filtres",toolbarFiltersTooltipHide:"Cacher les filtres",toolbarFiltersTooltipShow:"Afficher les filtres",toolbarFiltersTooltipActive:function(e){return"".concat(e,e>1?" filtres actifs":" filtre actif")},toolbarExport:"Exporter",toolbarExportLabel:"Exporter",toolbarExportCSV:"T\xe9l\xe9charger en CSV",toolbarExportPrint:"Imprimer",columnsPanelTextFieldLabel:"Chercher colonne",columnsPanelTextFieldPlaceholder:"Titre de la colonne",columnsPanelDragIconLabel:"R\xe9organiser la colonne",columnsPanelShowAllButton:"Tout afficher",columnsPanelHideAllButton:"Tout cacher",filterPanelAddFilter:"Ajouter un filtre",filterPanelDeleteIconLabel:"Supprimer",filterPanelOperators:"Op\xe9rateurs",filterPanelOperatorAnd:"Et",filterPanelOperatorOr:"Ou",filterPanelColumns:"Colonnes",filterPanelInputLabel:"Valeur",filterPanelInputPlaceholder:"Filtrer la valeur",filterOperatorContains:"contient",filterOperatorEquals:"\xe9gal \xe0",filterOperatorStartsWith:"commence par",filterOperatorEndsWith:"se termine par",filterOperatorIs:"est",filterOperatorNot:"n'est pas",filterOperatorAfter:"post\xe9rieur",filterOperatorOnOrAfter:"\xe9gal ou post\xe9rieur",filterOperatorBefore:"ant\xe9rieur",filterOperatorOnOrBefore:"\xe9gal ou ant\xe9rieur",filterOperatorIsEmpty:"est vide",filterOperatorIsNotEmpty:"n'est pas vide",filterOperatorIsAnyOf:"fait parti de",filterValueAny:"tous",filterValueTrue:"vrai",filterValueFalse:"faux",columnMenuLabel:"Menu",columnMenuShowColumns:"Afficher les colonnes",columnMenuFilter:"Filtrer",columnMenuHideColumn:"Cacher",columnMenuUnsort:"Annuler le tri",columnMenuSortAsc:"Tri ascendant",columnMenuSortDesc:"Tri descendant",columnHeaderFiltersTooltipActive:function(e){return"".concat(e,e>1?" filtres actifs":" filtre actif")},columnHeaderFiltersLabel:"Afficher les filtres",columnHeaderSortIconLabel:"Trier",footerRowSelected:function(e){return"".concat(e.toLocaleString(),e>1?" lignes s\xe9lectionn\xe9es":" ligne s\xe9lectionn\xe9e")},footerTotalRows:"Lignes totales :",footerTotalVisibleRows:function(e,t){return"".concat(e.toLocaleString()," sur ").concat(t.toLocaleString())},checkboxSelectionHeaderName:"S\xe9lection",booleanCellTrueLabel:"vrai",booleanCellFalseLabel:"faux",actionsCellMore:"Plus",pinToLeft:"\xc9pingler \xe0 gauche",pinToRight:"\xc9pingler \xe0 droite",unpin:"D\xe9s\xe9pingler",treeDataGroupingHeaderName:"Groupe",treeDataExpand:"afficher les enfants",treeDataCollapse:"masquer les enfants",groupingColumnHeaderName:"Groupe",groupColumn:function(e){return"Grouper par ".concat(e)},unGroupColumn:function(e){return"Arr\xeater de grouper par ".concat(e)}},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"Montrer le chemin"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:function(e){return"first"===e?"Aller \xe0 la premi\xe8re page":"last"===e?"Aller \xe0 la derni\xe8re page":"next"===e?"Aller \xe0 la page suivante":"Aller \xe0 la page pr\xe9c\xe9dente"},labelRowsPerPage:"Lignes par page :",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"\u2013").concat(n," sur ").concat(-1!==r?r:"plus que ".concat(n))}}},MuiRating:{defaultProps:{getLabelText:function(e){return"".concat(e," Etoile").concat(1!==e?"s":"")},emptyLabelText:"Vide"}},MuiAutocomplete:{defaultProps:{clearText:"Vider",closeText:"Fermer",loadingText:"Chargement\u2026",noOptionsText:"Pas de r\xe9sultats",openText:"Ouvrir"}},MuiAlert:{defaultProps:{closeText:"Fermer"}},MuiPagination:{defaultProps:{"aria-label":"navigation de pagination",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"Aller \xe0 la ","page ").concat(t):"first"===e?"Aller \xe0 la premi\xe8re page":"last"===e?"Aller \xe0 la derni\xe8re page":"next"===e?"Aller \xe0 la page suivante":"Aller \xe0 la page pr\xe9c\xe9dente"}}}}}),zs({noRowsLabel:"\u05d0\u05d9\u05df \u05e9\u05d5\u05e8\u05d5\u05ea",noResultsOverlayLabel:"\u05dc\u05d0 \u05e0\u05de\u05e6\u05d0\u05d5 \u05ea\u05d5\u05e6\u05d0\u05d5\u05ea.",errorOverlayDefaultLabel:"\u05d0\u05d9\u05e8\u05e2\u05d4 \u05e9\u05d2\u05d9\u05d0\u05d4.",toolbarDensity:"\u05e6\u05e4\u05d9\u05e4\u05d5\u05ea",toolbarDensityLabel:"\u05e6\u05e4\u05d9\u05e4\u05d5\u05ea",toolbarDensityCompact:"\u05d3\u05d7\u05d5\u05e1\u05d4",toolbarDensityStandard:"\u05e8\u05d2\u05d9\u05dc\u05d4",toolbarDensityComfortable:"\u05d0\u05d5\u05d5\u05e8\u05d9\u05e8\u05d9\u05ea",toolbarColumns:"\u05e2\u05de\u05d5\u05d3\u05d5\u05ea",toolbarColumnsLabel:"\u05d1\u05d7\u05e8 \u05e2\u05de\u05d5\u05d3\u05d5\u05ea",toolbarFilters:"\u05e1\u05d9\u05e0\u05d5\u05df",toolbarFiltersLabel:"\u05d4\u05e6\u05d2 \u05de\u05e1\u05e0\u05e0\u05d9\u05dd",toolbarFiltersTooltipHide:"\u05d4\u05e1\u05ea\u05e8 \u05de\u05e1\u05e0\u05e0\u05d9\u05dd",toolbarFiltersTooltipShow:"\u05d4\u05e6\u05d2 \u05de\u05e1\u05e0\u05e0\u05d9\u05dd",toolbarFiltersTooltipActive:function(e){return 1!==e?"".concat(e," \u05de\u05e1\u05e0\u05e0\u05d9\u05dd \u05e4\u05e2\u05d9\u05dc\u05d9\u05dd"):"\u05de\u05e1\u05e0\u05df \u05d0\u05d7\u05d3 \u05e4\u05e2\u05d9\u05dc"},toolbarExport:"\u05d9\u05d9\u05e6\u05d5\u05d0",toolbarExportLabel:"\u05d9\u05d9\u05e6\u05d5\u05d0",toolbarExportCSV:"\u05d4\u05d5\u05e8\u05d3\u05d4 \u05db- CSV",toolbarExportPrint:"\u05d4\u05d3\u05e4\u05e1\u05d4",columnsPanelTextFieldLabel:"\u05d7\u05e4\u05e9 \u05e2\u05de\u05d5\u05d3\u05d4",columnsPanelTextFieldPlaceholder:"\u05db\u05d5\u05ea\u05e8\u05ea \u05e2\u05de\u05d5\u05d3\u05d4",columnsPanelDragIconLabel:"\u05e1\u05d3\u05e8 \u05e2\u05de\u05d5\u05d3\u05d5\u05ea \u05de\u05d7\u05d3\u05e9",columnsPanelShowAllButton:"\u05d4\u05e6\u05d2 \u05d4\u05db\u05dc",columnsPanelHideAllButton:"\u05d4\u05e1\u05ea\u05e8 \u05d4\u05db\u05dc",filterPanelAddFilter:"\u05d4\u05d5\u05e1\u05e3 \u05de\u05e1\u05e0\u05df",filterPanelDeleteIconLabel:"\u05de\u05d7\u05e7",filterPanelOperators:"\u05d0\u05d5\u05e4\u05e8\u05d8\u05d5\u05e8",filterPanelOperatorAnd:"\u05d5\u05d2\u05dd",filterPanelOperatorOr:"\u05d0\u05d5",filterPanelColumns:"\u05e2\u05de\u05d5\u05d3\u05d5\u05ea",filterPanelInputLabel:"\u05e2\u05e8\u05da",filterPanelInputPlaceholder:"\u05e2\u05e8\u05da \u05de\u05e1\u05e0\u05df",filterOperatorContains:"\u05de\u05db\u05d9\u05dc",filterOperatorEquals:"\u05e9\u05d5\u05d5\u05d4",filterOperatorStartsWith:"\u05de\u05ea\u05d7\u05d9\u05dc \u05d1-",filterOperatorEndsWith:"\u05e0\u05d2\u05de\u05e8 \u05d1-",filterOperatorIs:"\u05d4\u05d9\u05e0\u05d5",filterOperatorNot:"\u05d0\u05d9\u05e0\u05d5",filterOperatorAfter:"\u05d0\u05d7\u05e8\u05d9",filterOperatorOnOrAfter:"\u05d1- \u05d0\u05d5 \u05d0\u05d7\u05e8\u05d9",filterOperatorBefore:"\u05dc\u05e4\u05e0\u05d9",filterOperatorOnOrBefore:"\u05d1- \u05d0\u05d5 \u05dc\u05e4\u05e0\u05d9",filterOperatorIsEmpty:"\u05e8\u05d9\u05e7",filterOperatorIsNotEmpty:"\u05d0\u05d9\u05e0\u05d5 \u05e8\u05d9\u05e7",filterOperatorIsAnyOf:"\u05d4\u05d5\u05d0 \u05d0\u05d7\u05d3 \u05de-",filterValueAny:"\u05db\u05dc \u05e2\u05e8\u05da",filterValueTrue:"\u05db\u05df",filterValueFalse:"\u05dc\u05d0",columnMenuLabel:"\u05ea\u05e4\u05e8\u05d9\u05d8",columnMenuShowColumns:"\u05d4\u05e6\u05d2 \u05e2\u05de\u05d5\u05d3\u05d5\u05ea",columnMenuFilter:"\u05e1\u05e0\u05df",columnMenuHideColumn:"\u05d4\u05e1\u05ea\u05e8",columnMenuUnsort:"\u05d1\u05d8\u05dc \u05de\u05d9\u05d5\u05df",columnMenuSortAsc:"\u05de\u05d9\u05d9\u05df \u05d1\u05e1\u05d3\u05e8 \u05e2\u05d5\u05dc\u05d4",columnMenuSortDesc:"\u05de\u05d9\u05d9\u05df \u05d1\u05e1\u05d3\u05e8 \u05d9\u05d5\u05e8\u05d3",columnHeaderFiltersTooltipActive:function(e){return 1!==e?"".concat(e," \u05de\u05e1\u05e0\u05e0\u05d9\u05dd \u05e4\u05e2\u05d9\u05dc\u05d9\u05dd"):"\u05de\u05e1\u05e0\u05df \u05d0\u05d7\u05d3 \u05e4\u05e2\u05d9\u05dc"},columnHeaderFiltersLabel:"\u05d4\u05e6\u05d2 \u05de\u05e1\u05e0\u05e0\u05d9\u05dd",columnHeaderSortIconLabel:"\u05de\u05d9\u05d9\u05df",footerRowSelected:function(e){return 1!==e?"".concat(e.toLocaleString()," \u05e9\u05d5\u05e8\u05d5\u05ea \u05e0\u05d1\u05d7\u05e8\u05d5"):"\u05e9\u05d5\u05e8\u05d4 \u05d0\u05d7\u05ea \u05e0\u05d1\u05d7\u05e8\u05d4"},footerTotalRows:"\u05e1\u05da \u05d4\u05db\u05dc \u05e9\u05d5\u05e8\u05d5\u05ea: ",footerTotalVisibleRows:function(e,t){return"".concat(e.toLocaleString()," \u05de\u05ea\u05d5\u05da ").concat(t.toLocaleString())},checkboxSelectionHeaderName:"\u05d1\u05d7\u05d9\u05e8\u05d4",booleanCellTrueLabel:"\u05db\u05df",booleanCellFalseLabel:"\u05dc\u05d0",actionsCellMore:"\u05e2\u05d5\u05d3",pinToLeft:"\u05e0\u05e2\u05e5 \u05de\u05e9\u05de\u05d0\u05dc",pinToRight:"\u05e0\u05e2\u05e5 \u05de\u05d9\u05de\u05d9\u05df",unpin:"\u05d1\u05d8\u05dc \u05e0\u05e2\u05d9\u05e6\u05d4",treeDataGroupingHeaderName:"\u05e7\u05d1\u05d5\u05e6\u05d4",treeDataExpand:"\u05d4\u05e8\u05d7\u05d1",treeDataCollapse:"\u05db\u05d5\u05d5\u05e5",groupingColumnHeaderName:"\u05e7\u05d1\u05d5\u05e6\u05d4",groupColumn:function(e){return"\u05e7\u05d1\u05e5 \u05dc\u05e4\u05d9 ".concat(e)},unGroupColumn:function(e){return"\u05d4\u05e4\u05e1\u05e7 \u05dc\u05e7\u05d1\u05e5 \u05dc\u05e4\u05d9 ".concat(e)}},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"\u05d4\u05e6\u05d2 \u05e0\u05ea\u05d9\u05d1"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:function(e){return"first"===e?"\u05dc\u05e2\u05de\u05d5\u05d3 \u05d4\u05e8\u05d0\u05e9\u05d5\u05df":"last"===e?"\u05dc\u05e2\u05de\u05d5\u05d3 \u05d4\u05d0\u05d7\u05e8\u05d5\u05df":"next"===e?"\u05dc\u05e2\u05de\u05d5\u05d3 \u05d4\u05d1\u05d0":"\u05dc\u05e2\u05de\u05d5\u05d3 \u05d4\u05e7\u05d5\u05d3\u05dd"},labelRowsPerPage:"\u05e9\u05d5\u05e8\u05d5\u05ea \u05d1\u05e2\u05de\u05d5\u05d3:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"\u2013").concat(n," \u05de\u05ea\u05d5\u05da ").concat(-1!==r?r:"\u05d9\u05d5\u05ea\u05e8 \u05de ".concat(n))}}},MuiRating:{defaultProps:{getLabelText:function(e){return"".concat(e," \u05db\u05d5\u05db\u05d1").concat(1!==e?"\u05d9\u05dd":"")},emptyLabelText:"\u05e8\u05d9\u05e7"}},MuiAutocomplete:{defaultProps:{clearText:"\u05e0\u05e7\u05d4",closeText:"\u05e1\u05d2\u05d5\u05e8",loadingText:"\u05d8\u05d5\u05e2\u05df\u2026",noOptionsText:"\u05d0\u05d9\u05df \u05d0\u05d5\u05e4\u05e6\u05d9\u05d5\u05ea",openText:"\u05e4\u05ea\u05d7"}},MuiAlert:{defaultProps:{closeText:"\u05e1\u05d2\u05d5\u05e8"}},MuiPagination:{defaultProps:{"aria-label":"\u05e0\u05d9\u05d5\u05d5\u05d8 \u05d1\u05e2\u05de\u05d5\u05d3\u05d9\u05dd",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"\u05dc ","\u05e2\u05de\u05d5\u05d3 ").concat(t):"first"===e?"\u05dc\u05e2\u05de\u05d5\u05d3 \u05d4\u05e8\u05d0\u05e9\u05d5\u05df":"last"===e?"\u05dc\u05e2\u05de\u05d5\u05d3 \u05d4\u05d0\u05d7\u05e8\u05d5\u05df":"next"===e?"\u05dc\u05e2\u05de\u05d5\u05d3 \u05d4\u05d1\u05d0":"\u05dc\u05e2\u05de\u05d5\u05d3 \u05d4\u05e7\u05d5\u05d3\u05dd"}}}}}),zs({noRowsLabel:"Nessun record",noResultsOverlayLabel:"Nessun record trovato.",errorOverlayDefaultLabel:"Si \xe8 verificato un errore.",toolbarDensity:"Densit\xe0",toolbarDensityLabel:"Densit\xe0",toolbarDensityCompact:"Compatta",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comoda",toolbarColumns:"Colonne",toolbarColumnsLabel:"Seleziona le colonne",toolbarFilters:"Filtri",toolbarFiltersLabel:"Mostra i filtri",toolbarFiltersTooltipHide:"Nascondi i filtri",toolbarFiltersTooltipShow:"Mostra i filtri",toolbarFiltersTooltipActive:function(e){return"".concat(e,e>1?" filtri attivi":" filtro attivo")},toolbarExport:"Esporta",toolbarExportLabel:"Esporta",toolbarExportCSV:"Esporta in CSV",toolbarExportPrint:"Stampa",columnsPanelTextFieldLabel:"Cerca colonna",columnsPanelTextFieldPlaceholder:"Titolo della colonna",columnsPanelDragIconLabel:"Riordina la colonna",columnsPanelShowAllButton:"Mostra tutto",columnsPanelHideAllButton:"Nascondi tutto",filterPanelAddFilter:"Aggiungi un filtro",filterPanelDeleteIconLabel:"Rimuovi",filterPanelOperators:"Operatori",filterPanelOperatorAnd:"E (and)",filterPanelOperatorOr:"O (or)",filterPanelColumns:"Colonne",filterPanelInputLabel:"Valore",filterPanelInputPlaceholder:"Filtra il valore",filterOperatorContains:"contiene",filterOperatorEquals:"uguale a",filterOperatorStartsWith:"comincia per",filterOperatorEndsWith:"termina per",filterOperatorIs:"uguale a",filterOperatorNot:"diversa da",filterOperatorAfter:"dopo il",filterOperatorOnOrAfter:"a partire dal",filterOperatorBefore:"prima del",filterOperatorOnOrBefore:"fino al",filterOperatorIsEmpty:"\xe8 vuoto",filterOperatorIsNotEmpty:"non \xe8 vuoto",filterOperatorIsAnyOf:"\xe8 uno tra",filterValueAny:"qualunque",filterValueTrue:"vero",filterValueFalse:"falso",columnMenuLabel:"Menu",columnMenuShowColumns:"Mostra le colonne",columnMenuFilter:"Filtra",columnMenuHideColumn:"Nascondi",columnMenuUnsort:"Annulla l'ordinamento",columnMenuSortAsc:"Ordinamento crescente",columnMenuSortDesc:"Ordinamento decrescente",columnHeaderFiltersTooltipActive:function(e){return"".concat(e,e>1?" filtri attivi":" filtro attivo")},columnHeaderFiltersLabel:"Mostra i filtri",columnHeaderSortIconLabel:"Ordina",footerRowSelected:function(e){return"".concat(e.toLocaleString(),e>1?" record selezionati":" record selezionato")},footerTotalRows:"Record totali:",footerTotalVisibleRows:function(e,t){return"".concat(e.toLocaleString()," di ").concat(t.toLocaleString())},checkboxSelectionHeaderName:"Seleziona",booleanCellTrueLabel:"vero",booleanCellFalseLabel:"falso",actionsCellMore:"pi\xf9",pinToLeft:"Blocca a sinistra",pinToRight:"Blocca a destra",unpin:"Sblocca",treeDataGroupingHeaderName:"Gruppo",treeDataExpand:"mostra figli",treeDataCollapse:"nascondi figli",groupingColumnHeaderName:"Gruppo",groupColumn:function(e){return"Raggruppa per ".concat(e)},unGroupColumn:function(e){return"Annulla raggruppamento per ".concat(e)}},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"Visualizza percorso"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:function(e){return"first"===e?"Vai alla prima pagina":"last"===e?"Vai all'ultima pagina":"next"===e?"Vai alla pagina successiva":"Vai alla pagina precedente"},labelRowsPerPage:"Righe per pagina:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"\u2013").concat(n," di ").concat(-1!==r?r:"pi\xf9 di ".concat(n))}}},MuiRating:{defaultProps:{getLabelText:function(e){return"".concat(e," Stell").concat(1!==e?"e":"a")},emptyLabelText:"Vuoto"}},MuiAutocomplete:{defaultProps:{clearText:"Svuota",closeText:"Chiudi",loadingText:"Caricamento in corso\u2026",noOptionsText:"Nessuna opzione",openText:"Apri"}},MuiAlert:{defaultProps:{closeText:"Chiudi"}},MuiPagination:{defaultProps:{"aria-label":"Navigazione impaginata",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"Vai alla ","pagina ").concat(t):"first"===e?"Vai alla prima pagina":"last"===e?"Vai all'ultima pagina":"next"===e?"Vai alla pagina successiva":"Vai alla pagina precedente"}}}}}),zs({noRowsLabel:"\u884c\u304c\u3042\u308a\u307e\u305b\u3093\u3002",noResultsOverlayLabel:"\u7d50\u679c\u304c\u3042\u308a\u307e\u305b\u3093\u3002",errorOverlayDefaultLabel:"\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002",toolbarDensity:"\u884c\u9593\u9694",toolbarDensityLabel:"\u884c\u9593\u9694",toolbarDensityCompact:"\u30b3\u30f3\u30d1\u30af\u30c8",toolbarDensityStandard:"\u6a19\u6e96",toolbarDensityComfortable:"\u3072\u308d\u3081",toolbarColumns:"\u5217\u4e00\u89a7",toolbarColumnsLabel:"\u5217\u9078\u629e",toolbarFilters:"\u30d5\u30a3\u30eb\u30bf\u30fc",toolbarFiltersLabel:"\u30d5\u30a3\u30eb\u30bf\u30fc\u8868\u793a",toolbarFiltersTooltipHide:"\u30d5\u30a3\u30eb\u30bf\u30fc\u975e\u8868\u793a",toolbarFiltersTooltipShow:"\u30d5\u30a3\u30eb\u30bf\u30fc\u8868\u793a",toolbarFiltersTooltipActive:function(e){return"".concat(e,"\u4ef6\u306e\u30d5\u30a3\u30eb\u30bf\u30fc\u3092\u9069\u7528\u4e2d")},toolbarExport:"\u30a8\u30af\u30b9\u30dd\u30fc\u30c8",toolbarExportLabel:"\u30a8\u30af\u30b9\u30dd\u30fc\u30c8",toolbarExportCSV:"CSV\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9",columnsPanelTextFieldLabel:"\u5217\u691c\u7d22",columnsPanelTextFieldPlaceholder:"\u691c\u7d22\u30af\u30a8\u30ea\u3092\u5165\u529b...",columnsPanelDragIconLabel:"\u5217\u4e26\u3079\u66ff\u3048",columnsPanelShowAllButton:"\u3059\u3079\u3066\u8868\u793a",columnsPanelHideAllButton:"\u3059\u3079\u3066\u975e\u8868\u793a",filterPanelAddFilter:"\u30d5\u30a3\u30eb\u30bf\u30fc\u8ffd\u52a0",filterPanelDeleteIconLabel:"\u524a\u9664",filterPanelOperators:"\u30aa\u30da\u30ec\u30fc\u30bf",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"\u5217",filterPanelInputLabel:"\u5024",filterPanelInputPlaceholder:"\u5024\u3092\u5165\u529b...",filterOperatorContains:"...\u3092\u542b\u3080",filterOperatorEquals:"...\u306b\u7b49\u3057\u3044",filterOperatorStartsWith:"...\u3067\u59cb\u307e\u308b",filterOperatorEndsWith:"...\u3067\u7d42\u308f\u308b",filterOperatorIs:"...\u3067\u3042\u308b",filterOperatorNot:"...\u3067\u306a\u3044",filterOperatorAfter:"...\u3088\u308a\u5f8c\u308d",filterOperatorOnOrAfter:"...\u4ee5\u964d",filterOperatorBefore:"...\u3088\u308a\u524d",filterOperatorOnOrBefore:"...\u4ee5\u524d",filterOperatorIsEmpty:"...\u7a7a\u3067\u3042\u308b",filterOperatorIsNotEmpty:"...\u7a7a\u3067\u306a\u3044",columnMenuLabel:"\u30e1\u30cb\u30e5\u30fc",columnMenuShowColumns:"\u5217\u8868\u793a",columnMenuFilter:"\u30d5\u30a3\u30eb\u30bf\u30fc",columnMenuHideColumn:"\u5217\u975e\u8868\u793a",columnMenuUnsort:"\u30bd\u30fc\u30c8\u89e3\u9664",columnMenuSortAsc:"\u6607\u9806\u30bd\u30fc\u30c8",columnMenuSortDesc:"\u964d\u9806\u30bd\u30fc\u30c8",columnHeaderFiltersTooltipActive:function(e){return"".concat(e,"\u4ef6\u306e\u30d5\u30a3\u30eb\u30bf\u30fc\u3092\u9069\u7528\u4e2d")},columnHeaderFiltersLabel:"\u30d5\u30a3\u30eb\u30bf\u30fc\u8868\u793a",columnHeaderSortIconLabel:"\u30bd\u30fc\u30c8",footerRowSelected:function(e){return"".concat(e,"\u884c\u3092\u9078\u629e\u4e2d")},footerTotalRows:"\u7dcf\u884c\u6570:",footerTotalVisibleRows:function(e,t){return"".concat(e.toLocaleString()," / ").concat(t.toLocaleString())},checkboxSelectionHeaderName:"\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9",booleanCellTrueLabel:"\u771f",booleanCellFalseLabel:"\u507d"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"\u3059\u3079\u3066\u8868\u793a"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:function(e){return"first"===e?"\u6700\u521d\u306e\u30da\u30fc\u30b8\u3078":"last"===e?"\u6700\u5f8c\u306e\u30da\u30fc\u30b8\u3078":"next"===e?"\u6b21\u306e\u30da\u30fc\u30b8\u3078":"\u524d\u306e\u30da\u30fc\u30b8\u3078"},labelRowsPerPage:"\u30da\u30fc\u30b8\u3042\u305f\u308a\u306e\u884c\u6570:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"\uff5e").concat(n," / ").concat(-1!==r?r:"".concat(n,"\u4ee5\u4e0a"))}}},MuiRating:{defaultProps:{getLabelText:function(e){return"\u661f".concat(e)},emptyLabelText:"\u661f\u306a\u3057"}},MuiAutocomplete:{defaultProps:{clearText:"\u30af\u30ea\u30a2",closeText:"\u9589\u3058\u308b",loadingText:"\u8aad\u307f\u8fbc\u307f\u4e2d\u2026",noOptionsText:"\u30c7\u30fc\u30bf\u304c\u3042\u308a\u307e\u305b\u3093",openText:"\u958b\u304f"}},MuiAlert:{defaultProps:{closeText:"\u9589\u3058\u308b"}},MuiPagination:{defaultProps:{"aria-label":"\u30da\u30fc\u30b8\u9078\u629e",getItemAriaLabel:function(e,t,n){return"page"===e?"\u30da\u30fc\u30b8".concat(t).concat(n?"":"\u3078"):"first"===e?"\u6700\u521d\u306e\u30da\u30fc\u30b8\u3078":"last"===e?"\u6700\u5f8c\u306e\u30da\u30fc\u30b8\u3078":"next"===e?"\u6b21\u306e\u30da\u30fc\u30b8\u3078":"\u524d\u306e\u30da\u30fc\u30b8\u3078"}}}}}),zs({noRowsLabel:"\ud589\uc774 \uc5c6\uc2b5\ub2c8\ub2e4.",noResultsOverlayLabel:"\uacb0\uacfc\uac12\uc774 \uc5c6\uc2b5\ub2c8\ub2e4.",errorOverlayDefaultLabel:"\uc624\ub958\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4.",toolbarDensity:"\ub77c\uc778 \uac04\uaca9",toolbarDensityLabel:"\ub77c\uc778 \uac04\uaca9",toolbarDensityCompact:"\uc881\uac8c",toolbarDensityStandard:"\uae30\ubcf8",toolbarDensityComfortable:"\ub113\uac8c",toolbarColumns:"\uc5f4 \ubaa9\ub85d",toolbarColumnsLabel:"\uc5f4 \uc120\ud0dd",toolbarFilters:"\ud544\ud130",toolbarFiltersLabel:"\ud544\ud130 \ud45c\uc2dc",toolbarFiltersTooltipHide:"\ud544\ud130 \uc228\uae30\uae30",toolbarFiltersTooltipShow:"\ud544\ud130 \ud45c\uc2dc",toolbarFiltersTooltipActive:function(e){return"".concat(e,"\uac74\uc758 \ud544\ud130\ub97c \uc801\uc6a9\uc911")},toolbarExport:"\ub0b4\ubcf4\ub0b4\uae30",toolbarExportLabel:"\ub0b4\ubcf4\ub0b4\uae30",toolbarExportCSV:"CSV\ub2e4\uc6b4\ub85c\ub4dc",toolbarExportPrint:"\ud504\ub9b0\ud2b8",columnsPanelTextFieldLabel:"\uc5f4 \uac80\uc0c9",columnsPanelTextFieldPlaceholder:"\uc5f4 \uc774\ub984",columnsPanelDragIconLabel:"\uc5f4 \uc815\ub82c",columnsPanelShowAllButton:"\ubaa8\ub450 \ubcf4\uae30",columnsPanelHideAllButton:"\ubaa8\ub450 \uc228\uae30\uae30",filterPanelAddFilter:"\ud544\ud130 \ucd94\uac00",filterPanelDeleteIconLabel:"\uc0ad\uc81c",filterPanelOperators:"\uc5f0\uc0b0\uc790",filterPanelOperatorAnd:"\uadf8\ub9ac\uace0",filterPanelOperatorOr:"\ub610\ub294",filterPanelColumns:"\ubaa9\ub85d",filterPanelInputLabel:"\uac12",filterPanelInputPlaceholder:"\uac12 \uc785\ub825",filterOperatorContains:"\ud3ec\ud568\ud558\ub294",filterOperatorEquals:"\uac12\uc774 \uac19\uc740",filterOperatorStartsWith:"\uc2dc\uc791\ud558\ub294",filterOperatorEndsWith:"\ub05d\ub098\ub294",filterOperatorIs:"~\uc778",filterOperatorNot:"~\uc544\ub2cc",filterOperatorAfter:"\ub354 \uc774\ud6c4",filterOperatorOnOrAfter:"\uc774\ud6c4",filterOperatorBefore:"\ub354 \uc774\uc804",filterOperatorOnOrBefore:"\uc774\uc804",filterOperatorIsEmpty:"\uac12\uc774 \uc5c6\ub294",filterOperatorIsNotEmpty:"\uac12\uc774 \uc788\ub294",filterValueAny:"\uc544\ubb34\uac12",filterValueTrue:"\ucc38",filterValueFalse:"\uac70\uc9d3",columnMenuLabel:"\uba54\ub274",columnMenuShowColumns:"\uc5f4 \ud45c\uc2dc",columnMenuFilter:"\ud544\ud130",columnMenuHideColumn:"\uc5f4 \uc228\uae30\uae30",columnMenuUnsort:"\uc815\ub82c \ud574\uc81c",columnMenuSortAsc:"\uc624\ub984\ucc28\uc21c \uc815\ub82c",columnMenuSortDesc:"\ub0b4\ub9bc\ucc28\uc21c \uc815\ub82c",columnHeaderFiltersTooltipActive:function(e){return"".concat(e,"\uac74\uc758 \ud544\ud130\ub97c \uc801\uc6a9\uc911")},columnHeaderFiltersLabel:"\ud544\ud130 \ud45c\uc2dc",columnHeaderSortIconLabel:"\uc815\ub82c",footerRowSelected:function(e){return"".concat(e,"\ud589 \uc120\ud0dd\uc911")},footerTotalRows:"\ucd1d \ud589\uc218:",footerTotalVisibleRows:function(e,t){return"".concat(e.toLocaleString()," / ").concat(t.toLocaleString())},checkboxSelectionHeaderName:"\uc120\ud0dd",booleanCellTrueLabel:"\ucc38",booleanCellFalseLabel:"\uac70\uc9d3",actionsCellMore:"\ub354\ubcf4\uae30",treeDataGroupingHeaderName:"\uadf8\ub8f9",treeDataExpand:"\ud558\uc704\ub178\ub4dc \ud3bc\uce58\uae30",treeDataCollapse:"\ud558\uc704\ub178\ub4dc \uc811\uae30"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"\uacbd\ub85c \ubcf4\uae30"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:function(e){return"first"===e?"\uccab \ubc88\uc9f8 \ud398\uc774\uc9c0\ub85c \uc774\ub3d9":"last"===e?"\ub9c8\uc9c0\ub9c9 \ud398\uc774\uc9c0\ub85c \uc774\ub3d9":"next"===e?"\ub2e4\uc74c \ud398\uc774\uc9c0\ub85c \uc774\ub3d9":"\uc774\uc804 \ud398\uc774\uc9c0\ub85c \uc774\ub3d9"},labelRowsPerPage:"\ud398\uc774\uc9c0 \ub2f9 \ud589:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"\u2013").concat(n," / ").concat(-1!==r?r:"".concat(n,"\uac1c \uc774\uc0c1"))}}},MuiRating:{defaultProps:{getLabelText:function(e){return"".concat(e," \uc810")},emptyLabelText:"\ube48 \ud14d\uc2a4\ud2b8"}},MuiAutocomplete:{defaultProps:{clearText:"\uc9c0\uc6b0\uae30",closeText:"\ub2eb\uae30",loadingText:"\ubd88\ub7ec\uc624\ub294 \uc911\u2026",noOptionsText:"\uc635\uc158 \uc5c6\uc74c",openText:"\uc5f4\uae30"}},MuiAlert:{defaultProps:{closeText:"\ub2eb\uae30"}},MuiPagination:{defaultProps:{"aria-label":"\ud398\uc774\uc9c0\ub124\uc774\uc158 \ub124\ube44\uac8c\uc774\uc158",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(t," \ubc88\uc9f8 \ud398\uc774\uc9c0").concat(n?"":"\ub85c \uc774\ub3d9"):"first"===e?"\uccab \ubc88\uc9f8 \ud398\uc774\uc9c0\ub85c \uc774\ub3d9":"last"===e?"\ub9c8\uc9c0\ub9c9 \ud398\uc774\uc9c0\ub85c \uc774\ub3d9":"next"===e?"\ub2e4\uc74c \ud398\uc774\uc9c0\ub85c \uc774\ub3d9":"\uc774\uc804 \ud398\uc774\uc9c0\ub85c \uc774\ub3d9"}}}}}),zs({noRowsLabel:"Geen resultaten.",noResultsOverlayLabel:"Geen resultaten gevonden.",errorOverlayDefaultLabel:"Er deed zich een fout voor.",toolbarDensity:"Grootte",toolbarDensityLabel:"Grootte",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Normaal",toolbarDensityComfortable:"Breed",toolbarColumns:"Kolommen",toolbarColumnsLabel:"Kies kolommen",toolbarFilters:"Filters",toolbarFiltersLabel:"Toon filters",toolbarFiltersTooltipHide:"Verberg filters",toolbarFiltersTooltipShow:"Toon filters",toolbarFiltersTooltipActive:function(e){return"".concat(e,e>1?" actieve filters":" filter actief")},toolbarExport:"Exporteren",toolbarExportLabel:"Exporteren",toolbarExportCSV:"Exporteer naar CSV",toolbarExportPrint:"Print",columnsPanelTextFieldLabel:"Zoek kolom",columnsPanelTextFieldPlaceholder:"Kolomtitel",columnsPanelDragIconLabel:"Kolom herschikken",columnsPanelShowAllButton:"Alles tonen",columnsPanelHideAllButton:"Alles verbergen",filterPanelAddFilter:"Filter toevoegen",filterPanelDeleteIconLabel:"Verwijderen",filterPanelOperators:"Operatoren",filterPanelOperatorAnd:"En",filterPanelOperatorOr:"Of",filterPanelColumns:"Kolommen",filterPanelInputLabel:"Waarde",filterPanelInputPlaceholder:"Filter waarde",filterOperatorContains:"bevat",filterOperatorEquals:"gelijk aan",filterOperatorStartsWith:"begint met",filterOperatorEndsWith:"eindigt met",filterOperatorIs:"is",filterOperatorNot:"is niet",filterOperatorAfter:"is na",filterOperatorOnOrAfter:"is gelijk of er na",filterOperatorBefore:"is voor",filterOperatorOnOrBefore:"is gelijk of er voor",filterOperatorIsEmpty:"is leeg",filterOperatorIsNotEmpty:"is niet leeg",filterValueAny:"alles",filterValueTrue:"waar",filterValueFalse:"onwaar",columnMenuLabel:"Menu",columnMenuShowColumns:"Toon kolommen",columnMenuFilter:"Filteren",columnMenuHideColumn:"Verbergen",columnMenuUnsort:"Annuleer sortering",columnMenuSortAsc:"Oplopend sorteren",columnMenuSortDesc:"Aflopend sorteren",columnHeaderFiltersTooltipActive:function(e){return"".concat(e,e>1?" actieve filters":" filter actief")},columnHeaderFiltersLabel:"Toon filters",columnHeaderSortIconLabel:"Sorteren",footerRowSelected:function(e){return"".concat(e.toLocaleString(),e>1?" rijen geselecteerd":" rij geselecteerd")},footerTotalRows:"Totaal:",footerTotalVisibleRows:function(e,t){return"".concat(e.toLocaleString()," van ").concat(t.toLocaleString())},checkboxSelectionHeaderName:"Checkbox selectie",booleanCellTrueLabel:"waar",booleanCellFalseLabel:"onwaar",actionsCellMore:"meer",pinToLeft:"Links vastzetten",pinToRight:"Rechts vastzetten",unpin:"Losmaken",treeDataGroupingHeaderName:"Groep",treeDataExpand:"Uitvouwen",treeDataCollapse:"Inklappen",groupingColumnHeaderName:"Groep",groupColumn:function(e){return"Groepeer op ".concat(e)},unGroupColumn:function(e){return"Stop groeperen op ".concat(e)}},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"Pad tonen"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:function(e){return"first"===e?"Ga naar eerste pagina":"last"===e?"Ga naar laatste pagina":"next"===e?"Ga naar volgende pagina":"Ga naar vorige pagina"},labelRowsPerPage:"Regels per pagina:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"\u2013").concat(n," van ").concat(-1!==r?r:"meer dan ".concat(n))}}},MuiRating:{defaultProps:{getLabelText:function(e){return"".concat(e," Ster").concat(1!==e?"ren":"")},emptyLabelText:"Leeg"}},MuiAutocomplete:{defaultProps:{clearText:"Wissen",closeText:"Sluiten",loadingText:"Laden\u2026",noOptionsText:"Geen opties",openText:"Openen"}},MuiAlert:{defaultProps:{closeText:"Sluiten"}},MuiPagination:{defaultProps:{"aria-label":"Navigatie via paginering",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"Ga naar ","pagina ").concat(t):"first"===e?"Ga naar eerste pagina":"last"===e?"Ga naar laatste pagina":"next"===e?"Ga naar volgende pagina":"Ga naar vorige pagina"}}}}}),zs({noRowsLabel:"Brak danych",noResultsOverlayLabel:"Nie znaleziono wynik\xf3w.",errorOverlayDefaultLabel:"Wyst\u0105pi\u0142 b\u0142\u0105d.",toolbarDensity:"Wysoko\u015b\u0107 rz\u0119du",toolbarDensityLabel:"Wysoko\u015b\u0107 rz\u0119du",toolbarDensityCompact:"Kompakt",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Komfort",toolbarColumns:"Kolumny",toolbarColumnsLabel:"Zaznacz kolumny",toolbarFilters:"Filtry",toolbarFiltersLabel:"Poka\u017c filtry",toolbarFiltersTooltipHide:"Ukryj filtry",toolbarFiltersTooltipShow:"Poka\u017c filtry",toolbarFiltersTooltipActive:function(e){return"Liczba aktywnych filtr\xf3w: ".concat(e)},toolbarExport:"Eksportuj",toolbarExportLabel:"Eksportuj",toolbarExportCSV:"Pobierz jako plik CSV",columnsPanelTextFieldLabel:"Znajd\u017a kolumn\u0119",columnsPanelTextFieldPlaceholder:"Tytu\u0142 kolumny",columnsPanelDragIconLabel:"Zmie\u0144 kolejno\u015b\u0107 kolumn",columnsPanelShowAllButton:"Poka\u017c wszystko",columnsPanelHideAllButton:"Ukryj wszystko",filterPanelAddFilter:"Dodaj filtr",filterPanelDeleteIconLabel:"Usu\u0144",filterPanelOperators:"Operator",filterPanelOperatorAnd:"I",filterPanelOperatorOr:"Lub",filterPanelColumns:"Kolumny",filterPanelInputLabel:"Warto\u015b\u0107",filterPanelInputPlaceholder:"Filtrowana warto\u015b\u0107",filterOperatorContains:"zawiera",filterOperatorEquals:"r\xf3wna si\u0119",filterOperatorStartsWith:"zaczyna si\u0119 od",filterOperatorEndsWith:"ko\u0144czy si\u0119 na",filterOperatorIs:"r\xf3wna si\u0119",filterOperatorNot:"r\xf3\u017cne",filterOperatorAfter:"wi\u0119ksze ni\u017c",filterOperatorOnOrAfter:"wi\u0119ksze lub r\xf3wne",filterOperatorBefore:"mniejsze ni\u017c",filterOperatorOnOrBefore:"mniejsze lub r\xf3wne",filterOperatorIsEmpty:"jest pusty",filterOperatorIsNotEmpty:"nie jest pusty",columnMenuLabel:"Menu",columnMenuShowColumns:"Poka\u017c wszystkie kolumny",columnMenuFilter:"Filtr",columnMenuHideColumn:"Ukryj",columnMenuUnsort:"Anuluj sortowanie",columnMenuSortAsc:"Sortuj rosn\u0105co",columnMenuSortDesc:"Sortuj malej\u0105co",columnHeaderFiltersTooltipActive:function(e){return"Liczba aktywnych filtr\xf3w: ".concat(e)},columnHeaderFiltersLabel:"Poka\u017c filtry",columnHeaderSortIconLabel:"Sortuj",footerRowSelected:function(e){return"Liczba wybranych wierszy: ".concat(e.toLocaleString())},footerTotalRows:"\u0141\u0105czna liczba wierszy:",footerTotalVisibleRows:function(e,t){return"".concat(e.toLocaleString()," z ").concat(t.toLocaleString())},actionsCellMore:"wi\u0119cej"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"Poka\u017c \u015bcie\u017ck\u0119"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:function(e){return"first"===e?"Przejd\u017a do pierwszej strony":"last"===e?"Przejd\u017a do ostatniej strony":"next"===e?"Przejd\u017a do nast\u0119pnej strony":"Przejd\u017a do poprzedniej strony"},labelRowsPerPage:"Wierszy na stron\u0119:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"\u2013").concat(n," z ").concat(-1!==r?r:"ponad ".concat(n))}}},MuiRating:{defaultProps:{getLabelText:function(e){var t="gwiazdek",n=e%10;return(e<10||e>20)&&n>1&&n<5?t="gwiazdki":1===e&&(t="gwiazdka"),"".concat(e," ").concat(t)},emptyLabelText:"Brak gwiazdek"}},MuiAutocomplete:{defaultProps:{clearText:"Wyczy\u015b\u0107",closeText:"Zamknij",loadingText:"\u0141adowanie\u2026",noOptionsText:"Brak opcji",openText:"Otw\xf3rz"}},MuiAlert:{defaultProps:{closeText:"Zamknij"}},MuiPagination:{defaultProps:{"aria-label":"Nawigacja podzia\u0142u na strony",getItemAriaLabel:function(e,t,n){return"page"===e?n?"".concat(t,". strona"):"Przejd\u017a do ".concat(t,". strony"):"first"===e?"Przejd\u017a do pierwszej strony":"last"===e?"Przejd\u017a do ostatniej strony":"next"===e?"Przejd\u017a do nast\u0119pnej strony":"Przejd\u017a do poprzedniej strony"}}}}}),zs({noRowsLabel:"Nenhuma linha",noResultsOverlayLabel:"Nenhum resultado encontrado.",errorOverlayDefaultLabel:"Ocorreu um erro.",toolbarDensity:"Densidade",toolbarDensityLabel:"Densidade",toolbarDensityCompact:"Compacto",toolbarDensityStandard:"Padr\xe3o",toolbarDensityComfortable:"Confort\xe1vel",toolbarColumns:"Colunas",toolbarColumnsLabel:"Exibir seletor de colunas",toolbarFilters:"Filtros",toolbarFiltersLabel:"Exibir filtros",toolbarFiltersTooltipHide:"Ocultar filtros",toolbarFiltersTooltipShow:"Exibir filtros",toolbarFiltersTooltipActive:function(e){return"".concat(e," ").concat(1!==e?"filtros":"filtro"," ").concat(1!==e?"ativos":"ativo")},toolbarExport:"Exportar",toolbarExportLabel:"Exportar",toolbarExportCSV:"Baixar como CSV",toolbarExportPrint:"Print",columnsPanelTextFieldLabel:"Localizar coluna",columnsPanelTextFieldPlaceholder:"T\xedtulo da coluna",columnsPanelDragIconLabel:"Reordenar Coluna",columnsPanelShowAllButton:"Mostrar todas",columnsPanelHideAllButton:"Ocultar todas",filterPanelAddFilter:"Adicionar filtro",filterPanelDeleteIconLabel:"Excluir",filterPanelOperators:"Operadores",filterPanelOperatorAnd:"E",filterPanelOperatorOr:"Ou",filterPanelColumns:"Colunas",filterPanelInputLabel:"Valor",filterPanelInputPlaceholder:"Filtrar valor",filterOperatorContains:"cont\xe9m",filterOperatorEquals:"\xe9 igual a",filterOperatorStartsWith:"come\xe7a com",filterOperatorEndsWith:"termina com",filterOperatorIs:"\xe9",filterOperatorNot:"n\xe3o \xe9",filterOperatorAfter:"ap\xf3s",filterOperatorOnOrAfter:"em ou ap\xf3s",filterOperatorBefore:"antes de",filterOperatorOnOrBefore:"em ou antes de",filterOperatorIsEmpty:"est\xe1 vazio",filterOperatorIsNotEmpty:"n\xe3o est\xe1 vazio",filterValueAny:"qualquer",filterValueTrue:"verdadeiro",filterValueFalse:"falso",columnMenuLabel:"Menu",columnMenuShowColumns:"Exibir colunas",columnMenuFilter:"Filtrar",columnMenuHideColumn:"Ocultar",columnMenuUnsort:"Desfazer ordena\xe7\xe3o",columnMenuSortAsc:"Ordenar do menor para o maior",columnMenuSortDesc:"Ordenar do maior para o menor",columnHeaderFiltersTooltipActive:function(e){return"".concat(e," ").concat(1!==e?"filtros":"filtro"," ").concat(1!==e?"ativos":"ativo")},columnHeaderFiltersLabel:"Exibir Filtros",columnHeaderSortIconLabel:"Ordenar",footerRowSelected:function(e){return"".concat(e.toLocaleString(),1!==e?" linhas selecionadas":" linha selecionada")},footerTotalRows:"Total de linhas:",footerTotalVisibleRows:function(e,t){return"".concat(e.toLocaleString()," de ").concat(t.toLocaleString())},checkboxSelectionHeaderName:"Sele\xe7\xe3o",checkboxSelectionSelectAllRows:"Selecionar todas linhas",checkboxSelectionUnselectAllRows:"Deselecionar todas linhas",checkboxSelectionSelectRow:"Selecionar linha",checkboxSelectionUnselectRow:"Deselecionar linha",booleanCellTrueLabel:"sim",booleanCellFalseLabel:"n\xe3o",actionsCellMore:"mais",pinToLeft:"Fixar \xe0 esquerda",pinToRight:"Fixar \xe0 direita",unpin:"Desafixar",groupingColumnHeaderName:"Grupo",groupColumn:function(e){return"Agrupar por ".concat(e)},unGroupColumn:function(e){return"Parar agrupamento por ".concat(e)},expandDetailPanel:"Expandir",collapseDetailPanel:"Esconder"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"Mostrar caminho"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:function(e){return"first"===e?"Ir para a primeira p\xe1gina":"last"===e?"Ir para a \xfaltima p\xe1gina":"next"===e?"Ir para a pr\xf3xima p\xe1gina":"Ir para a p\xe1gina anterior"},labelRowsPerPage:"Linhas por p\xe1gina:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"\u2013").concat(n," de ").concat(-1!==r?r:"mais de ".concat(n))}}},MuiRating:{defaultProps:{getLabelText:function(e){return"".concat(e," Estrela").concat(1!==e?"s":"")},emptyLabelText:"Vazio"}},MuiAutocomplete:{defaultProps:{clearText:"Limpar",closeText:"Fechar",loadingText:"Carregando\u2026",noOptionsText:"Sem op\xe7\xf5es",openText:"Abrir"}},MuiAlert:{defaultProps:{closeText:"Fechar"}},MuiPagination:{defaultProps:{"aria-label":"Navegar pela pagina\xe7\xe3o",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"Ir para a ","p\xe1gina ").concat(t):"first"===e?"Ir para a primeira p\xe1gina":"last"===e?"Ir para a \xfaltima p\xe1gina":"next"===e?"Ir para a pr\xf3xima p\xe1gina":"Ir para a p\xe1gina anterior"}}}}}),zs({noRowsLabel:"\u041d\u0435\u0442 \u0441\u0442\u0440\u043e\u043a",noResultsOverlayLabel:"\u0414\u0430\u043d\u043d\u044b\u0435 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u044b.",errorOverlayDefaultLabel:"\u041e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0430 \u043e\u0448\u0438\u0431\u043a\u0430.",toolbarDensity:"\u0412\u044b\u0441\u043e\u0442\u0430 \u0441\u0442\u0440\u043e\u043a\u0438",toolbarDensityLabel:"\u0412\u044b\u0441\u043e\u0442\u0430 \u0441\u0442\u0440\u043e\u043a\u0438",toolbarDensityCompact:"\u041a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u0430\u044f",toolbarDensityStandard:"\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430\u044f",toolbarDensityComfortable:"\u041a\u043e\u043c\u0444\u043e\u0440\u0442\u043d\u0430\u044f",toolbarColumns:"\u0421\u0442\u043e\u043b\u0431\u0446\u044b",toolbarColumnsLabel:"\u0412\u044b\u0434\u0435\u043b\u0438\u0442\u0435 \u0441\u0442\u043e\u043b\u0431\u0446\u044b",toolbarFilters:"\u0424\u0438\u043b\u044c\u0442\u0440\u044b",toolbarFiltersLabel:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u044b",toolbarFiltersTooltipHide:"\u0421\u043a\u0440\u044b\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u044b",toolbarFiltersTooltipShow:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u044b",toolbarFiltersTooltipActive:function(e){var t="\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432",n=e%10;return n>1&&n<5?t="\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u0444\u0438\u043b\u044c\u0442\u0440\u0430":1===n&&(t="\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0444\u0438\u043b\u044c\u0442\u0440"),"".concat(e," ").concat(t)},toolbarExport:"\u042d\u043a\u0441\u043f\u043e\u0440\u0442",toolbarExportLabel:"\u042d\u043a\u0441\u043f\u043e\u0440\u0442",toolbarExportCSV:"\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 CSV",toolbarExportPrint:"\u041f\u0435\u0447\u0430\u0442\u044c",columnsPanelTextFieldLabel:"\u041d\u0430\u0439\u0442\u0438 \u0441\u0442\u043e\u043b\u0431\u0435\u0446",columnsPanelTextFieldPlaceholder:"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0441\u0442\u043e\u043b\u0431\u0446\u0430",columnsPanelDragIconLabel:"\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0441\u0442\u043e\u043b\u0431\u0446\u0430",columnsPanelShowAllButton:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435",columnsPanelHideAllButton:"\u0421\u043a\u0440\u044b\u0442\u044c \u0432\u0441\u0435",filterPanelAddFilter:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440",filterPanelDeleteIconLabel:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c",filterPanelOperators:"\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b",filterPanelOperatorAnd:"\u0418",filterPanelOperatorOr:"\u0418\u043b\u0438",filterPanelColumns:"\u0421\u0442\u043e\u043b\u0431\u0446\u044b",filterPanelInputLabel:"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435",filterPanelInputPlaceholder:"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0444\u0438\u043b\u044c\u0442\u0440\u0430",filterOperatorContains:"\u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442",filterOperatorEquals:"\u0440\u0430\u0432\u0435\u043d",filterOperatorStartsWith:"\u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441",filterOperatorEndsWith:"\u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430",filterOperatorIs:"\u0440\u0430\u0432\u0435\u043d",filterOperatorNot:"\u043d\u0435 \u0440\u0430\u0432\u0435\u043d",filterOperatorAfter:"\u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c",filterOperatorOnOrAfter:"\u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e",filterOperatorBefore:"\u043c\u0435\u043d\u044c\u0448\u0435 \u0447\u0435\u043c",filterOperatorOnOrBefore:"\u043c\u0435\u043d\u044c\u0448\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e",filterOperatorIsEmpty:"\u043f\u0443\u0441\u0442\u043e\u0439",filterOperatorIsNotEmpty:"\u043d\u0435 \u043f\u0443\u0441\u0442\u043e\u0439",filterValueAny:"\u043b\u044e\u0431\u043e\u0439",filterValueTrue:"\u0438\u0441\u0442\u0438\u043d\u0430",filterValueFalse:"\u043b\u043e\u0436\u044c",columnMenuLabel:"\u041c\u0435\u043d\u044e",columnMenuShowColumns:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0446\u044b",columnMenuFilter:"\u0424\u0438\u043b\u044c\u0442\u0440",columnMenuHideColumn:"\u0421\u043a\u0440\u044b\u0442\u044c",columnMenuUnsort:"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0443",columnMenuSortAsc:"\u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430\u043d\u0438\u044e",columnMenuSortDesc:"\u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e \u0443\u0431\u044b\u0432\u0430\u043d\u0438\u044e",columnHeaderFiltersTooltipActive:function(e){var t="\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432",n=e%10;return n>1&&n<5?t="\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u0444\u0438\u043b\u044c\u0442\u0440\u0430":1===n&&(t="\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0444\u0438\u043b\u044c\u0442\u0440"),"".concat(e," ").concat(t)},columnHeaderFiltersLabel:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u044b",columnHeaderSortIconLabel:"\u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c",footerRowSelected:function(e){var t="\u0441\u0442\u0440\u043e\u043a \u0432\u044b\u0431\u0440\u0430\u043d\u043e",n=e%10;return n>1&&n<5?t="\u0441\u0442\u0440\u043e\u043a\u0438 \u0432\u044b\u0431\u0440\u0430\u043d\u044b":1===n&&(t="\u0441\u0442\u0440\u043e\u043a\u0430 \u0432\u044b\u0431\u0440\u0430\u043d\u0430"),"".concat(e," ").concat(t)},footerTotalRows:"\u0412\u0441\u0435\u0433\u043e \u0441\u0442\u0440\u043e\u043a:",footerTotalVisibleRows:function(e,t){return"".concat(e.toLocaleString()," \u0438\u0437 ").concat(t.toLocaleString())},checkboxSelectionHeaderName:"\u0412\u044b\u0431\u043e\u0440 \u0444\u043b\u0430\u0436\u043a\u0430",booleanCellTrueLabel:"\u0438\u0441\u0442\u0438\u043d\u0430",booleanCellFalseLabel:"\u043b\u043e\u0436\u044c",actionsCellMore:"\u0435\u0449\u0451",pinToLeft:"\u0417\u0430\u043a\u0440\u0435\u043f\u0438\u0442\u044c \u0441\u043b\u0435\u0432\u0430",pinToRight:"\u0417\u0430\u043a\u0440\u0435\u043f\u0438\u0442\u044c \u0441\u043f\u0440\u0430\u0432\u0430",unpin:"\u041e\u0442\u043a\u0440\u0435\u043f\u0438\u0442\u044c",treeDataGroupingHeaderName:"\u0413\u0440\u0443\u043f\u043f\u0430",treeDataExpand:"\u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b",treeDataCollapse:"\u0441\u043a\u0440\u044b\u0442\u044c \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b",groupingColumnHeaderName:"\u0413\u0440\u0443\u043f\u043f\u0430",groupColumn:function(e){return"\u0421\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e ".concat(e)},unGroupColumn:function(e){return"\u0420\u0430\u0437\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e ".concat(e)}},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u043e\u043b\u043d\u044b\u0439 \u043f\u0443\u0442\u044c"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:function(e){return"first"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043f\u0435\u0440\u0432\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443":"last"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443":"next"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443":"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443"},labelRowsPerPage:"\u0421\u0442\u0440\u043e\u043a \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"\u2013").concat(n," \u0438\u0437 ").concat(-1!==r?r:"\u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c ".concat(n))}}},MuiRating:{defaultProps:{getLabelText:function(e){var t="\u0417\u0432\u0451\u0437\u0434",n=e%10;return n>1&&n<5?t="\u0417\u0432\u0435\u0437\u0434\u044b":1===n&&(t="\u0417\u0432\u0435\u0437\u0434\u0430"),"".concat(e," ").concat(t)},emptyLabelText:"\u0420\u0435\u0439\u0442\u0438\u043d\u0433 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442"}},MuiAutocomplete:{defaultProps:{clearText:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c",closeText:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c",loadingText:"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430\u2026",noOptionsText:"\u041d\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432",openText:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c"}},MuiAlert:{defaultProps:{closeText:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"}},MuiPagination:{defaultProps:{"aria-label":"\u041d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044f \u043f\u043e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\u043c",getItemAriaLabel:function(e,t,n){return"page"===e?n?"".concat(t," \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430"):"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 ".concat(t," \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443"):"first"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043f\u0435\u0440\u0432\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443":"last"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443":"next"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443":"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443"}}}}}),zs({noRowsLabel:"\u017diadne z\xe1znamy",noResultsOverlayLabel:"Nena\u0161li sa \u017eadne v\xfdsledky.",errorOverlayDefaultLabel:"Stala sa nepredv\xeddan\xe1 chyba.",toolbarDensity:"Hustota",toolbarDensityLabel:"Hustota",toolbarDensityCompact:"Kompaktn\xe1",toolbarDensityStandard:"\u0160tandartn\xe1",toolbarDensityComfortable:"Komfortn\xe1",toolbarColumns:"St\u013apce",toolbarColumnsLabel:"Vybra\u0165 st\u013apce",toolbarFilters:"Filtre",toolbarFiltersLabel:"Zobrazi\u0165 filtre",toolbarFiltersTooltipHide:"Skry\u0165 filtre ",toolbarFiltersTooltipShow:"Zobrazi\u0165 filtre",toolbarFiltersTooltipActive:function(e){var t="akt\xedvnych filtrov";return e>1&&e<5?t="akt\xedvne filtre":1===e&&(t="akt\xedvny filter"),"".concat(e," ").concat(t)},toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Stiahnu\u0165 ako CSV",toolbarExportPrint:"Vytla\u010di\u0165",columnsPanelTextFieldLabel:"N\xe1js\u0165 st\u013apec",columnsPanelTextFieldPlaceholder:"N\xe1zov st\u013apca",columnsPanelDragIconLabel:"Usporiad\u0165 st\u013apce",columnsPanelShowAllButton:"Zobrazi\u0165 v\u0161etko",columnsPanelHideAllButton:"Skry\u0165 v\u0161etko",filterPanelAddFilter:"Prida\u0165 filter",filterPanelDeleteIconLabel:"Odstr\xe1ni\u0165",filterPanelOperators:"Oper\xe1tory",filterPanelOperatorAnd:"A",filterPanelOperatorOr:"Alebo",filterPanelColumns:"St\u013apce",filterPanelInputLabel:"Hodnota",filterPanelInputPlaceholder:"Hodnota filtra",filterOperatorContains:"obsahuje",filterOperatorEquals:"rovn\xe1 sa",filterOperatorStartsWith:"za\u010d\xedna s",filterOperatorEndsWith:"kon\u010d\xed na",filterOperatorIs:"je",filterOperatorNot:"nie je",filterOperatorAfter:"je po",filterOperatorOnOrAfter:"je na alebo po",filterOperatorBefore:"je pred",filterOperatorOnOrBefore:"je na alebo sk\xf4r",filterOperatorIsEmpty:"je pr\xe1zdny",filterOperatorIsNotEmpty:"nie je pr\xe1zdny",filterValueAny:"ak\xfdko\u013evek",filterValueTrue:"\xe1no",filterValueFalse:"nie",columnMenuLabel:"Menu",columnMenuShowColumns:"Zobrazi\u0165 st\u013apce",columnMenuFilter:"Filter",columnMenuHideColumn:"Skry\u0165",columnMenuUnsort:"Zru\u0161i\u0165 filtre",columnMenuSortAsc:"Zoradi\u0165 vzostupne",columnMenuSortDesc:"Zoradi\u0165 zostupne",columnHeaderFiltersTooltipActive:function(e){var t="akt\xedvnych filtrov";return e>1&&e<5?t="akt\xedvne filtre":1===e&&(t="akt\xedvny filter"),"".concat(e," ").concat(t)},columnHeaderFiltersLabel:"Zobrazi\u0165 filtre",columnHeaderSortIconLabel:"Filtrova\u0165",footerRowSelected:function(e){var t="vybran\xfdch z\xe1znamov";return e>1&&e<5?t="vybran\xe9 z\xe1znamy":1===e&&(t="vybran\xfd z\xe1znam"),"".concat(e," ").concat(t)},footerTotalRows:"Riadkov spolu:",footerTotalVisibleRows:function(e,t){var n=t.toString(),r=n[0],o=["4","6","7"].includes(r)||"1"===r&&n.length%3==0?"zo":"z";return"".concat(e.toLocaleString()," ").concat(o," ").concat(t.toLocaleString())},checkboxSelectionHeaderName:"V\xfdber riadku",booleanCellTrueLabel:"\xe1no",booleanCellFalseLabel:"nie",actionsCellMore:"viac",pinToLeft:"Pripn\xfa\u0165 na \u013eavo",pinToRight:"Pripn\xfa\u0165 na pravo",unpin:"Odopn\xfa\u0165",treeDataGroupingHeaderName:"Skupina",treeDataExpand:"zobrazi\u0165 potomkov",treeDataCollapse:"skry\u0165 potomkov",groupingColumnHeaderName:"Skupina",groupColumn:function(e){return"Zoskupi\u0165 pod\u013ea ".concat(e)},unGroupColumn:function(e){return"Presta\u0165 zoskupova\u0165 pod\u013ea ".concat(e)}},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"Uk\xe1za\u0165 cestu "}},MuiTablePagination:{defaultProps:{getItemAriaLabel:function(e){return"first"===e?"\xcds\u0165 na prv\xfa str\xe1nku":"last"===e?"\xcds\u0165 na posledn\xfa str\xe1nku":"next"===e?"\xcds\u0165 na \u010fa\u013e\u0161iu str\xe1nku":"\xcds\u0165 na predch\xe1dzaj\xfacu str\xe1nku"},labelRowsPerPage:"Riadkov na str\xe1nke:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"\u2013").concat(n," z ").concat(-1!==r?r:"viac ako ".concat(n))}}},MuiRating:{defaultProps:{getLabelText:function(e){return"".concat(e,1===e?" hviezdi\u010dka":e>=2&&e<=4?" hviezdi\u010dky":" hviezdi\u010diek")},emptyLabelText:"Pr\xe1zdne"}},MuiAutocomplete:{defaultProps:{clearText:"Vymaza\u0165",closeText:"Zavrie\u0165",loadingText:"Na\u010d\xedtanie\u2026",noOptionsText:"\u017diadne mo\u017enosti",openText:"Otvori\u0165"}},MuiAlert:{defaultProps:{closeText:"Zavrie\u0165"}},MuiPagination:{defaultProps:{"aria-label":"Navig\xe1cia str\xe1nkovanim",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"\xcds\u0165 na ","str\xe1nku ").concat(t):"first"===e?"\xcds\u0165 na prv\xfa str\xe1nku":"last"===e?"\xcds\u0165 na posledn\xfa str\xe1nku":"next"===e?"\xcds\u0165 na \u010fa\u013e\u0161iu str\xe1nku":"\xcds\u0165 na predch\xe1dzaj\xfacu str\xe1nku"}}}}}),zs({noRowsLabel:"Sat\u0131r yok",noResultsOverlayLabel:"Sonu\xe7 bulunamad\u0131.",errorOverlayDefaultLabel:"Bir hata olu\u015ftu.",toolbarDensity:"Yo\u011funluk",toolbarDensityLabel:"Yo\u011funluk",toolbarDensityCompact:"S\u0131k\u0131",toolbarDensityStandard:"Standart",toolbarDensityComfortable:"Rahat",toolbarColumns:"S\xfctunlar",toolbarColumnsLabel:"S\xfctun se\xe7",toolbarFilters:"Filtreler",toolbarFiltersLabel:"Filtreleri g\xf6ster",toolbarFiltersTooltipHide:"Filtreleri gizle",toolbarFiltersTooltipShow:"Filtreleri g\xf6ster",toolbarFiltersTooltipActive:function(e){return"".concat(e," aktif filtre")},toolbarExport:"D\u0131\u015fa aktar",toolbarExportLabel:"D\u0131\u015fa aktar",toolbarExportCSV:"CSV olarak aktar",toolbarExportPrint:"Yazd\u0131r",columnsPanelTextFieldLabel:"S\xfctun ara",columnsPanelTextFieldPlaceholder:"S\xfctun ad\u0131",columnsPanelDragIconLabel:"S\xfctunlar\u0131 yeniden s\u0131rala",columnsPanelShowAllButton:"Hepsini g\xf6ster",columnsPanelHideAllButton:"Hepsini gizle",filterPanelAddFilter:"Filtre Ekle",filterPanelDeleteIconLabel:"Kald\u0131r",filterPanelOperators:"Operat\xf6r",filterPanelOperatorAnd:"Ve",filterPanelOperatorOr:"Veya",filterPanelColumns:"S\xfctunlar",filterPanelInputLabel:"De\u011fer",filterPanelInputPlaceholder:"Filtre de\u011feri",filterOperatorContains:"i\xe7erir",filterOperatorEquals:"e\u015fittir",filterOperatorStartsWith:"ile ba\u015flar",filterOperatorEndsWith:"ile biter",filterOperatorIs:"e\u015fittir",filterOperatorNot:"e\u015fit de\u011fildir",filterOperatorAfter:"b\xfcy\xfck",filterOperatorOnOrAfter:"b\xfcy\xfck e\u015fit",filterOperatorBefore:"k\xfc\xe7\xfck",filterOperatorOnOrBefore:"k\xfc\xe7\xfck e\u015fit",filterOperatorIsEmpty:"bo\u015f",filterOperatorIsNotEmpty:"dolu",filterOperatorIsAnyOf:"herhangi biri",columnMenuLabel:"Men\xfc",columnMenuShowColumns:"S\xfctunlar\u0131 g\xf6ster",columnMenuFilter:"Filtre uygula",columnMenuHideColumn:"Gizle",columnMenuUnsort:"S\u0131ralama",columnMenuSortAsc:"S\u0131rala - Artan",columnMenuSortDesc:"S\u0131rala - Azalan",columnHeaderFiltersTooltipActive:function(e){return"".concat(e," filtre aktif")},columnHeaderFiltersLabel:"Filtreleri g\xf6ster",columnHeaderSortIconLabel:"S\u0131rala",footerRowSelected:function(e){return"".concat(e.toLocaleString()," sat\u0131r se\xe7ildi")},footerTotalRows:"Toplam Sat\u0131r:",footerTotalVisibleRows:function(e,t){return"".concat(e.toLocaleString()," / ").concat(t.toLocaleString())},checkboxSelectionHeaderName:"Se\xe7im",actionsCellMore:"daha fazla",pinToLeft:"Sola sabitle",pinToRight:"Sa\u011fa sabitle",unpin:"Sabitlemeyi kald\u0131r",treeDataGroupingHeaderName:"Grup",treeDataExpand:"g\xf6ster",treeDataCollapse:"gizle",groupingColumnHeaderName:"Grup",groupColumn:function(e){return"".concat(e," i\xe7in grupla")},unGroupColumn:function(e){return"".concat(e," i\xe7in gruplamay\u0131 kald\u0131r")},expandDetailPanel:"Geni\u015flet",collapseDetailPanel:"Gizle"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"Yolu g\xf6ster"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:function(e){return"first"===e?"\u0130lk sayfaya git":"last"===e?"Son sayfaya git":"next"===e?"Sonraki sayfaya git":"\xd6nceki sayfaya git"},labelRowsPerPage:"Sayfa ba\u015f\u0131na sat\u0131r:"}},MuiRating:{defaultProps:{getLabelText:function(e){return"".concat(e," Y\u0131ld\u0131z")},emptyLabelText:"Bo\u015f"}},MuiAutocomplete:{defaultProps:{clearText:"Temizle",closeText:"Kapat",loadingText:"Y\xfckleniyor\u2026",noOptionsText:"Se\xe7enek yok",openText:"A\xe7"}},MuiAlert:{defaultProps:{closeText:"Kapat"}},MuiPagination:{defaultProps:{"aria-label":"Sayfa navigasyonu",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(t,". ").concat(n?"sayfa":"sayfaya git"):"first"===e?"\u0130lk sayfaya git":"last"===e?"Son sayfaya git":"next"===e?"Sonraki sayfaya git":"\xd6nceki sayfaya git"}}}}}),function(e,t){var n=t.many,r=e%10;return r>1&&r<5?n=t.few:1===r&&(n=t.one),"".concat(e," ").concat(n)}),Ws=(zs({noRowsLabel:"\u041d\u0435\u043c\u0430\u0454 \u0440\u044f\u0434\u043a\u0456\u0432",noResultsOverlayLabel:"\u0414\u0430\u043d\u0456 \u043d\u0435 \u0437\u043d\u0430\u0439\u0434\u0435\u043d\u043e.",errorOverlayDefaultLabel:"\u0412\u0438\u044f\u0432\u043b\u0435\u043d\u043e \u043f\u043e\u043c\u0438\u043b\u043a\u0443.",toolbarDensity:"\u0412\u0438\u0441\u043e\u0442\u0430 \u0440\u044f\u0434\u043a\u0430",toolbarDensityLabel:"\u0412\u0438\u0441\u043e\u0442\u0430 \u0440\u044f\u0434\u043a\u0430",toolbarDensityCompact:"\u041a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u0438\u0439",toolbarDensityStandard:"\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0438\u0439",toolbarDensityComfortable:"\u041a\u043e\u043c\u0444\u043e\u0440\u0442\u043d\u0438\u0439",toolbarColumns:"\u0421\u0442\u043e\u0432\u043f\u0446\u0456",toolbarColumnsLabel:"\u0412\u0438\u0434\u0456\u043b\u0456\u0442\u044c \u0441\u0442\u043e\u0432\u043f\u0446\u0456",toolbarFilters:"\u0424\u0456\u043b\u044c\u0442\u0440\u0438",toolbarFiltersLabel:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u0444\u0456\u043b\u044c\u0442\u0440\u0438",toolbarFiltersTooltipHide:"\u041f\u0440\u0438\u0445\u043e\u0432\u0430\u0442\u0438 \u0444\u0456\u043b\u044c\u0442\u0440\u0438",toolbarFiltersTooltipShow:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u0444\u0456\u043b\u044c\u0442\u0440\u0438",toolbarFiltersTooltipActive:function(e){return Hs(e,{one:"\u0430\u043a\u0442\u0438\u0432\u043d\u0438\u0439 \u0444\u0456\u043b\u044c\u0442\u0440",few:"\u0430\u043a\u0442\u0438\u0432\u043d\u0456 \u0444\u0456\u043b\u044c\u0442\u0440\u0438",many:"\u0430\u043a\u0442\u0438\u0432\u043d\u0438\u0445 \u0444\u0456\u043b\u044c\u0442\u0440\u0456\u0432"})},toolbarExport:"\u0415\u043a\u0441\u043f\u043e\u0440\u0442",toolbarExportLabel:"\u0415\u043a\u0441\u043f\u043e\u0440\u0442",toolbarExportCSV:"\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u0438 \u0443 \u0444\u043e\u0440\u043c\u0430\u0442\u0456 CSV",toolbarExportPrint:"\u0414\u0440\u0443\u043a",columnsPanelTextFieldLabel:"\u0417\u043d\u0430\u0439\u0442\u0438 \u0441\u0442\u043e\u0432\u043f\u0435\u0446\u044c",columnsPanelTextFieldPlaceholder:"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0441\u0442\u043e\u0432\u043f\u0446\u044f",columnsPanelDragIconLabel:"\u0417\u043c\u0456\u043d\u0438\u0442\u0438 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0441\u0442\u043e\u0432\u043f\u0446\u044f",columnsPanelShowAllButton:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u0432\u0441\u0456",columnsPanelHideAllButton:"\u041f\u0440\u0438\u0445\u043e\u0432\u0430\u0442\u0438 \u0432\u0441\u0456",filterPanelAddFilter:"\u0414\u043e\u0434\u0430\u0442\u0438 \u0444\u0456\u043b\u044c\u0442\u0440",filterPanelDeleteIconLabel:"\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438",filterPanelOperators:"\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0438",filterPanelOperatorAnd:"\u0406",filterPanelOperatorOr:"\u0410\u0431\u043e",filterPanelColumns:"\u0421\u0442\u043e\u0432\u043f\u0446\u0456",filterPanelInputLabel:"\u0417\u043d\u0430\u0447\u0435\u043d\u043d\u044f",filterPanelInputPlaceholder:"\u0417\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0444\u0456\u043b\u044c\u0442\u0440\u0430",filterOperatorContains:"\u043c\u0456\u0441\u0442\u0438\u0442\u044c",filterOperatorEquals:"\u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454",filterOperatorStartsWith:"\u043f\u043e\u0447\u0438\u043d\u0430\u0454\u0442\u044c\u0441\u044f \u0437",filterOperatorEndsWith:"\u0437\u0430\u043a\u0456\u043d\u0447\u0443\u0454\u0442\u044c\u0441\u044f \u043d\u0430",filterOperatorIs:"\u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454",filterOperatorNot:"\u043d\u0435 \u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454",filterOperatorAfter:"\u0431\u0456\u043b\u044c\u0448\u0435 \u043d\u0456\u0436",filterOperatorOnOrAfter:"\u0431\u0456\u043b\u044c\u0448\u0435 \u0430\u0431\u043e \u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454",filterOperatorBefore:"\u043c\u0435\u043d\u0448\u0435 \u043d\u0456\u0436",filterOperatorOnOrBefore:"\u043c\u0435\u043d\u0448\u0435 \u0430\u0431\u043e \u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454",filterOperatorIsEmpty:"\u043f\u043e\u0440\u043e\u0436\u043d\u0456\u0439",filterOperatorIsNotEmpty:"\u043d\u0435 \u043f\u043e\u0440\u043e\u0436\u043d\u0456\u0439",filterValueAny:"\u0431\u0443\u0434\u044c-\u044f\u043a\u0438\u0439",filterValueTrue:"\u0442\u0430\u043a",filterValueFalse:"\u043d\u0456",columnMenuLabel:"\u041c\u0435\u043d\u044e",columnMenuShowColumns:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u0441\u0442\u043e\u0432\u043f\u0446\u0456",columnMenuFilter:"\u0424\u0456\u043b\u044c\u0442\u0440",columnMenuHideColumn:"\u041f\u0440\u0438\u0445\u043e\u0432\u0430\u0442\u0438",columnMenuUnsort:"\u0421\u043a\u0430\u0441\u0443\u0432\u0430\u0442\u0438 \u0441\u043e\u0440\u0442\u0443\u0432\u0430\u043d\u043d\u044f",columnMenuSortAsc:"\u0421\u043e\u0440\u0442\u0443\u0432\u0430\u0442\u0438 \u0437\u0430 \u0437\u0440\u043e\u0441\u0442\u0430\u043d\u043d\u044f\u043c",columnMenuSortDesc:"\u0421\u043e\u0440\u0442\u0443\u0432\u0430\u0442\u0438 \u0437\u0430 \u0441\u043f\u0430\u0434\u0430\u043d\u043d\u044f\u043c",columnHeaderFiltersTooltipActive:function(e){return Hs(e,{one:"\u0430\u043a\u0442\u0438\u0432\u043d\u0438\u0439 \u0444\u0456\u043b\u044c\u0442\u0440",few:"\u0430\u043a\u0442\u0438\u0432\u043d\u0456 \u0444\u0456\u043b\u044c\u0442\u0440\u0438",many:"\u0430\u043a\u0442\u0438\u0432\u043d\u0438\u0445 \u0444\u0456\u043b\u044c\u0442\u0440\u0456\u0432"})},columnHeaderFiltersLabel:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u0444\u0456\u043b\u044c\u0442\u0440\u0438",columnHeaderSortIconLabel:"\u0421\u043e\u0440\u0442\u0443\u0432\u0430\u0442\u0438",footerRowSelected:function(e){return Hs(e,{one:"\u0432\u0438\u0431\u0440\u0430\u043d\u0438\u0439 \u0440\u044f\u0434\u043e\u043a",few:"\u0432\u0438\u0431\u0440\u0430\u043d\u0456 \u0440\u044f\u0434\u043a\u0438",many:"\u0432\u0438\u0431\u0440\u0430\u043d\u0438\u0445 \u0440\u044f\u0434\u043a\u0456\u0432"})},footerTotalRows:"\u0423\u0441\u044c\u043e\u0433\u043e \u0440\u044f\u0434\u043a\u0456\u0432:",footerTotalVisibleRows:function(e,t){return"".concat(e.toLocaleString()," \u0437 ").concat(t.toLocaleString())},checkboxSelectionHeaderName:"\u0412\u0438\u0431\u0456\u0440 \u043f\u0440\u0430\u043f\u043e\u0440\u0446\u044f",booleanCellTrueLabel:"\u0442\u0430\u043a",booleanCellFalseLabel:"\u043d\u0456",actionsCellMore:"\u0431\u0456\u043b\u044c\u0448\u0435",pinToLeft:"\u0417\u0430\u043a\u0440\u0456\u043f\u0438\u0442\u0438 \u043b\u0456\u0432\u043e\u0440\u0443\u0447",pinToRight:"\u0417\u0430\u043a\u0440\u0456\u043f\u0438\u0442\u0438 \u043f\u0440\u0430\u0432\u043e\u0440\u0443\u0447",unpin:"\u0412\u0456\u0434\u043a\u0440\u0456\u043f\u0438\u0442\u0438",treeDataGroupingHeaderName:"\u0413\u0440\u0443\u043f\u0430",treeDataExpand:"\u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u0434\u043e\u0447\u0456\u0440\u043d\u0456 \u0435\u043b\u0435\u043c\u0435\u043d\u0442\u0438",treeDataCollapse:"\u043f\u0440\u0438\u0445\u043e\u0432\u0430\u0442\u0438 \u0434\u043e\u0447\u0456\u0440\u043d\u0456 \u0435\u043b\u0435\u043c\u0435\u043d\u0442\u0438"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u0448\u043b\u044f\u0445 \u0441\u0442\u043e\u0440\u0456\u043d\u043e\u043a"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:function(e){return"first"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043f\u0435\u0440\u0448\u0443 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443":"last"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043e\u0441\u0442\u0430\u043d\u043d\u044e \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443":"next"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443":"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u044e \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443"},labelRowsPerPage:"\u0420\u044f\u0434\u043a\u0456\u0432 \u043d\u0430 \u0441\u0442\u043e\u0440\u0456\u043d\u0446\u0456:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"\u2013").concat(n," \u0437 ").concat(-1!==r?r:"\u043f\u043e\u043d\u0430\u0434 ".concat(n))}}},MuiRating:{defaultProps:{getLabelText:function(e){var t="\u0417\u0456\u0440\u043e\u043a",n=e%10;return n>1&&n<5?t="\u0417\u0456\u0440\u043a\u0438":1===n&&(t="\u0417\u0456\u0440\u043a\u0430"),"".concat(e," ").concat(t)},emptyLabelText:"\u0420\u0435\u0439\u0442\u0438\u043d\u0433 \u0432\u0456\u0434\u0441\u0443\u0442\u043d\u0456\u0439"}},MuiAutocomplete:{defaultProps:{clearText:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u0438",closeText:"\u0417\u0433\u043e\u0440\u043d\u0443\u0442\u0438",loadingText:"\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u043d\u044f\u2026",noOptionsText:"\u041d\u0435\u043c\u0430\u0454 \u0432\u0430\u0440\u0456\u0430\u043d\u0442\u0456\u0432",openText:"\u0420\u043e\u0437\u0433\u043e\u0440\u043d\u0443\u0442\u0438"}},MuiAlert:{defaultProps:{closeText:"\u0417\u0433\u043e\u0440\u043d\u0443\u0442\u0438"}},MuiPagination:{defaultProps:{"aria-label":"\u041d\u0430\u0432\u0456\u0433\u0430\u0446\u0456\u044f \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0430\u043c\u0438",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 ","\u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443 ").concat(t):"first"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043f\u0435\u0440\u0448\u0443 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443":"last"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043e\u0441\u0442\u0430\u043d\u043d\u044e \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443":"next"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443":"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u044e \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443"}}}}}),zs({noRowsLabel:"Kh\xf4ng c\xf3 d\u1eef li\u1ec7u",noResultsOverlayLabel:"Kh\xf4ng t\xecm th\u1ea5y k\u1ebft qu\u1ea3.",errorOverlayDefaultLabel:"C\xf3 l\u1ed7i x\u1ea3y ra.",toolbarDensity:"\u0110\u1ed9 gi\xe3n",toolbarDensityLabel:"\u0110\u1ed9 gi\xe3n",toolbarDensityCompact:"Trung b\xecnh",toolbarDensityStandard:"Ti\xeau chu\u1ea9n",toolbarDensityComfortable:"R\u1ed9ng",toolbarColumns:"C\u1ed9t",toolbarColumnsLabel:"Ch\u1ecdn c\u1ed9t",toolbarFilters:"B\u1ed9 l\u1ecdc",toolbarFiltersLabel:"Hi\u1ec3n th\u1ecb b\u1ed9 l\u1ecdc",toolbarFiltersTooltipHide:"\u1ea8n",toolbarFiltersTooltipShow:"Hi\u1ec7n",toolbarFiltersTooltipActive:function(e){return"".concat(e," b\u1ed9 l\u1ecdc ho\u1ea1t \u0111\u1ed9ng")},toolbarExport:"Xu\u1ea5t",toolbarExportLabel:"Xu\u1ea5t",toolbarExportCSV:"Xu\u1ea5t CSV",toolbarExportPrint:"In",columnsPanelTextFieldLabel:"T\xecm ki\u1ebfm",columnsPanelTextFieldPlaceholder:"Ti\xeau \u0111\u1ec1 c\u1ed9t",columnsPanelDragIconLabel:"S\u1eafp x\u1ebfp",columnsPanelShowAllButton:"Hi\u1ec7n t\u1ea5t c\u1ea3",columnsPanelHideAllButton:"\u1ea8n t\u1ea5t c\u1ea3",filterPanelAddFilter:"Th\xeam b\u1ed9 l\u1ecdc",filterPanelDeleteIconLabel:"X\xf3a",filterPanelOperators:"To\xe1n t\u1eed",filterPanelOperatorAnd:"V\xe0",filterPanelOperatorOr:"Ho\u1eb7c",filterPanelColumns:"C\u1ed9t",filterPanelInputLabel:"Gi\xe1 tr\u1ecb",filterPanelInputPlaceholder:"L\u1ecdc gi\xe1 tr\u1ecb",filterOperatorContains:"Ch\u1ee9a",filterOperatorEquals:"B\u1eb1ng",filterOperatorStartsWith:"B\u1eaft \u0111\u1ea7u b\u1eb1ng",filterOperatorEndsWith:"K\u1ebft th\xfac b\u1eb1ng",filterOperatorIs:"L\xe0",filterOperatorNot:"Kh\xf4ng l\xe0",filterOperatorAfter:"Tr\u01b0\u1edbc",filterOperatorOnOrAfter:"b\u1eb1ng ho\u1eb7c sau",filterOperatorBefore:"Sau",filterOperatorOnOrBefore:"b\u1eb1ng ho\u1eb7c tr\u01b0\u1edbc",filterOperatorIsEmpty:"R\u1ed7ng",filterOperatorIsNotEmpty:"Kh\xe1c r\u1ed7ng",filterValueAny:"b\u1ea5t k\u1ef3 gi\xe1 tr\u1ecb n\xe0o",filterValueTrue:"C\xf3",filterValueFalse:"Kh\xf4ng",columnMenuLabel:"Danh m\u1ee5c",columnMenuShowColumns:"Danh s\xe1ch c\u1ed9t",columnMenuFilter:"B\u1ed9 l\u1ecdc",columnMenuHideColumn:"\u1ea8n c\u1ed9t",columnMenuUnsort:"B\u1ecf s\u1eafp x\u1ebfp",columnMenuSortAsc:"S\u1eafp x\u1ebfp t\u0103ng d\u1ea7n",columnMenuSortDesc:"S\u1eafp x\u1ebfp gi\u1ea3m d\u1ea7n",columnHeaderFiltersTooltipActive:function(e){return"".concat(e," b\u1ed9 l\u1ecdc ho\u1ea1t \u0111\u1ed9ng")},columnHeaderFiltersLabel:"B\u1ed9 l\u1ecdc",columnHeaderSortIconLabel:"S\u1eafp x\u1ebfp",footerRowSelected:function(e){return"".concat(e.toLocaleString()," h\xe0ng \u0111\xe3 ch\u1ecdn")},footerTotalRows:"T\u1ed5ng:",footerTotalVisibleRows:function(e,t){return"".concat(e.toLocaleString()," / ").concat(t.toLocaleString())},checkboxSelectionHeaderName:"T\xedch v\xe0o \xf4 tr\u1ed1ng",booleanCellTrueLabel:"C\xf3",booleanCellFalseLabel:"Kh\xf4ng",actionsCellMore:"Th\xeam",pinToLeft:"Ghim c\u1ed9t b\xean tr\xe1i",pinToRight:"Ghim c\u1ed9t b\xean ph\u1ea3i",unpin:"B\u1ecf ghim",treeDataGroupingHeaderName:"Nh\xf3m",treeDataExpand:"m\u1edf r\u1ed9ng",treeDataCollapse:"\u1ea9n \u0111i"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"M\u1edf ra"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:function(e){return"first"===e?"T\u1edbi trang \u0111\u1ea7u ti\xean":"last"===e?"T\u1edbi trang cu\u1ed1i c\xf9ng":"next"===e?"T\u1edbi trang ti\u1ebfp theo":"V\u1ec1 trang tr\u01b0\u1edbc \u0111\xf3"},labelRowsPerPage:"S\u1ed1 h\xe0ng m\u1ed7i trang:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"\u2013").concat(n," trong ").concat(-1!==r?r:"nhi\u1ec1u h\u01a1n ".concat(n))}}},MuiRating:{defaultProps:{getLabelText:function(e){return"".concat(e," sao")},emptyLabelText:"Kh\xf4ng c\xf3 d\u1eef li\u1ec7u"}},MuiAutocomplete:{defaultProps:{clearText:"X\xf3a",closeText:"\u0110\xf3ng",loadingText:"\u0110ang t\u1ea3i\u2026",noOptionsText:"Kh\xf4ng c\xf3 l\u1ef1a ch\u1ecdn n\xe0o",openText:"M\u1edf"}},MuiAlert:{defaultProps:{closeText:"\u0110\xf3ng"}},MuiPagination:{defaultProps:{"aria-label":"Thanh \u0111i\u1ec1u khi\u1ec3n trang",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"T\u1edbi ","trang ").concat(t):"first"===e?"T\u1edbi trang \u0111\u1ea7u ti\xean":"last"===e?"T\u1edbi trang cu\u1ed1i c\xf9ng":"next"===e?"T\u1edbi trang ti\u1ebfp theo":"V\u1ec1 trang tr\u01b0\u1edbc \u0111\xf3"}}}}}),zs({noRowsLabel:"\u6ca1\u6709\u6570\u636e\u3002",noResultsOverlayLabel:"\u672a\u627e\u5230\u6570\u636e\u3002",errorOverlayDefaultLabel:"\u53d1\u751f\u9519\u8bef\u3002",toolbarDensity:"\u8868\u683c\u5bc6\u5ea6",toolbarDensityLabel:"\u8868\u683c\u5bc6\u5ea6",toolbarDensityCompact:"\u7d27\u5bc6",toolbarDensityStandard:"\u6807\u51c6",toolbarDensityComfortable:"\u7a00\u758f",toolbarColumns:"\u5217",toolbarColumnsLabel:"\u9009\u62e9\u5217",toolbarFilters:"\u7b5b\u9009\u5668",toolbarFiltersLabel:"\u663e\u793a\u7b5b\u9009\u5668",toolbarFiltersTooltipHide:"\u9690\u85cf\u7b5b\u9009\u5668",toolbarFiltersTooltipShow:"\u663e\u793a\u7b5b\u9009\u5668",toolbarFiltersTooltipActive:function(e){return"".concat(e," \u4e2a\u7b5b\u9009\u5668")},toolbarExport:"\u5bfc\u51fa",toolbarExportLabel:"\u5bfc\u51fa",toolbarExportCSV:"\u5bfc\u51fa\u81f3CSV",columnsPanelTextFieldLabel:"\u641c\u7d22\u5217",columnsPanelTextFieldPlaceholder:"\u5217\u540d",columnsPanelDragIconLabel:"\u91cd\u6392\u5e8f\u5217",columnsPanelShowAllButton:"\u663e\u793a\u6240\u6709",columnsPanelHideAllButton:"\u9690\u85cf\u6240\u6709",filterPanelAddFilter:"\u6dfb\u52a0\u7b5b\u9009\u5668",filterPanelDeleteIconLabel:"\u5220\u9664",filterPanelOperators:"\u64cd\u4f5c\u5668",filterPanelOperatorAnd:"\u4e0e",filterPanelOperatorOr:"\u6216",filterPanelColumns:"\u5217",filterPanelInputLabel:"\u503c",filterPanelInputPlaceholder:"\u7b5b\u9009\u503c",filterOperatorContains:"\u5305\u542b",filterOperatorEquals:"\u7b49\u4e8e",filterOperatorStartsWith:"\u5f00\u59cb\u4e8e",filterOperatorEndsWith:"\u7ed3\u675f\u4e8e",filterOperatorIs:"\u662f",filterOperatorNot:"\u4e0d\u662f",filterOperatorAfter:"\u5728\u540e\u9762",filterOperatorOnOrAfter:"\u6b63\u5728\u540e\u9762",filterOperatorBefore:"\u5728\u524d\u9762",filterOperatorOnOrBefore:"\u6b63\u5728\u524d\u9762",filterOperatorIsEmpty:"\u4e3a\u7a7a",filterOperatorIsNotEmpty:"\u4e0d\u4e3a\u7a7a",filterValueAny:"\u4efb\u4f55",filterValueTrue:"\u771f",filterValueFalse:"\u5047",columnMenuLabel:"\u83dc\u5355",columnMenuShowColumns:"\u663e\u793a",columnMenuFilter:"\u7b5b\u9009\u5668",columnMenuHideColumn:"\u9690\u85cf",columnMenuUnsort:"\u6062\u590d\u9ed8\u8ba4",columnMenuSortAsc:"\u5347\u5e8f",columnMenuSortDesc:"\u964d\u5e8f",columnHeaderFiltersTooltipActive:function(e){return"".concat(e," \u4e2a\u7b5b\u9009\u5668")},columnHeaderFiltersLabel:"\u663e\u793a\u7b5b\u9009\u5668",columnHeaderSortIconLabel:"\u6392\u5e8f",footerRowSelected:function(e){return"\u5171\u9009\u4e2d\u4e86".concat(e.toLocaleString(),"\u884c")},footerTotalRows:"\u6240\u6709\u884c:",footerTotalVisibleRows:function(e,t){return"".concat(e.toLocaleString()," / ").concat(t.toLocaleString())},checkboxSelectionHeaderName:"\u591a\u9009\u6846",booleanCellTrueLabel:"\u771f",booleanCellFalseLabel:"\u5047"},{components:{MuiBreadcrumbs:{defaultProps:{expandText:"\u5c55\u5f00"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:function(e){return"first"===e?"\u7b2c\u4e00\u9875":"last"===e?"\u6700\u540e\u4e00\u9875":"next"===e?"\u4e0b\u4e00\u9875":"\u4e0a\u4e00\u9875"},labelRowsPerPage:"\u6bcf\u9875\u884c\u6570:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"\u7b2c ".concat(t," \u6761\u5230\u7b2c ").concat(n," \u6761\uff0c").concat(-1!==r?"\u5171 ".concat(r," \u6761"):"\u81f3\u5c11 ".concat(n," \u6761"))}}},MuiRating:{defaultProps:{getLabelText:function(e){return"".concat(e," \u9897\u661f")},emptyLabelText:"\u65e0\u6807\u7b7e"}},MuiAutocomplete:{defaultProps:{clearText:"\u6e05\u7a7a",closeText:"\u5173\u95ed",loadingText:"\u52a0\u8f7d\u4e2d\u2026\u2026",noOptionsText:"\u6ca1\u6709\u53ef\u7528\u9009\u9879",openText:"\u6253\u5f00"}},MuiAlert:{defaultProps:{closeText:"\u5173\u95ed"}}}}),function(e){var t=e.apiRef,n=e.props,r=e.children;return p.createElement(rt.Provider,{value:n},p.createElement($e.Provider,{value:t},r))}),Vs=Ro()&&null!=window.localStorage.getItem("DEBUG"),Us=function(){},qs={debug:Us,info:Us,warn:Us,error:Us},Gs=["debug","info","warn","error"];function Ys(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:console,r=Gs.indexOf(t);if(-1===r)throw new Error("MUI: Log level ".concat(t," not recognized."));return Gs.reduce((function(t,i,a){return t[i]=a>=r?function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];var s=r[0],l=r.slice(1);n[i].apply(n,["MUI: ".concat(e," - ").concat(s)].concat((0,o.Z)(l)))}:Us,t}),{})}var Ks=function(){function e(){(0,i.Z)(this,e),this.maxListeners=10,this.warnOnce=!1,this.events={}}return(0,a.Z)(e,[{key:"on",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.events[e];r||(r={highPriority:new Map,regular:new Map},this.events[e]=r),n.isFirst?r.highPriority.set(t,!0):r.regular.set(t,!0)}},{key:"removeListener",value:function(e,t){this.events[e]&&(this.events[e].regular.delete(t),this.events[e].highPriority.delete(t))}},{key:"removeAllListeners",value:function(){this.events={}}},{key:"emit",value:function(e){var t=this.events[e];if(t){for(var n=Array.from(t.highPriority.keys()),r=Array.from(t.regular.keys()),o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];for(var s=n.length-1;s>=0;s-=1){var l=n[s];t.highPriority.has(l)&&l.apply(this,i)}for(var c=0;c<r.length;c+=1){var u=r[c];t.regular.has(u)&&u.apply(this,i)}}}},{key:"once",value:function(e,t){var n=this;this.on(e,(function r(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];n.removeListener(e,r),t.apply(n,i)}))}}]),e}(),Js=0,Xs=function(e){var t=p.useRef(!0);t.current&&(t.current=!1,e())},Qs=function(e,t,n){var r=p.useRef(),o=p.useRef("mui-".concat(Math.round(1e9*Math.random()))),i=p.useCallback((function(){r.current=e.current.unstable_registerPreProcessor(t,o.current,n)}),[e,n,t]);Xs((function(){i()}));var a=p.useRef(!0);p.useEffect((function(){return a.current?a.current=!1:i(),function(){r.current&&(r.current(),r.current=null)}}),[i])};function $s(e){var t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);var n=document.createRange();n.selectNode(t);var r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}var el=function(e,t){var n=p.useRef(!1);n.current||(e.current.state=t(e.current.state),n.current=!0)};var tl=function(e,t,n){switch(e){case qi.Compact:return{value:e,headerHeight:Math.floor(.7*t),rowHeight:Math.floor(.7*n),factor:.7};case qi.Comfortable:return{value:e,headerHeight:Math.floor(1.3*t),rowHeight:Math.floor(1.3*n),factor:1.3};default:return{value:e,headerHeight:t,rowHeight:n,factor:1}}},nl=function(e,t){if("string"==typeof e){var n=e.replace(/"/g,'""');return[t,"\n","\r"].some((function(e){return n.includes(e)}))?'"'.concat(n,'"'):n}return e};function rl(e){var t=e.columns,n=e.rowIds,r=e.getCellParams,o=e.delimiterCharacter,i=e.includeHeaders,a=n.reduce((function(e,n){return"".concat(e).concat(function(e,t,n,r){return t.map((function(t){return nl(n(e,t.field).formattedValue,r)}))}(n,t,r,o).join(o),"\r\n")}),"").trim();return i?"".concat("".concat(t.filter((function(e){return e.field!==Ti.field})).map((function(e){return nl(e.headerName||e.field,o)})).join(o),"\r\n"),a).trim():a}var ol=function(e){var t=e.apiRef,n=qt(t),r=t.current.getSelectedRows();return r.size>0?n.filter((function(e){return r.has(e)})):n},il=function(e,t){var n=Object.assign({},e);return n.items.length>1&&t&&(n.items=[n.items[0]]),function(t){return Object.assign(Object.assign({},t),{filter:Object.assign(Object.assign({},t.filter),{filterModel:e})})}},al=function(e,t){var n=Object.assign({},e);if(null==n.id&&(n.id=Math.round(1e5*Math.random())),null==n.operatorValue){var r=t.current.getColumn(n.columnField);n.operatorValue=r&&r.filterOperators[0].value}return n},sl=function(e){if(e.items.length>1&&e.items.find((function(e){return null==e.id})))throw new Error("MUI: The 'id' field is required on `filterModel.items` when you use multiple filters.")},ll=function(e,t){var n,r;return t.pagination&&"client"===t.paginationMode?(r=Di(e),n=Pi(e)):r=0===(n=Wt(e)).length?null:{firstRowIndex:0,lastRowIndex:n.length-1},{rows:n,range:r}},cl=function(e,t){var n=ll(e,t);return p.useMemo((function(){return{rows:n.rows,range:n.range}}),[n.rows,n.range])},ul=function(e){return function(t){return Object.assign(Object.assign({},t),{pagination:Object.assign(Object.assign({},t.pagination),{pageSize:e})})}},dl=function(e,t){return t>0&&e>0?Math.ceil(e/t):0},pl=function(e){return e.pageCount?Object.assign(Object.assign({},e),{page:Math.max(Math.min(e.page,e.pageCount-1),0)}):e},fl=function(e){return function(t){return Object.assign(Object.assign({},t),{pagination:pl(Object.assign(Object.assign({},t.pagination),{page:e}))})}};function hl(e){return"function"==typeof e.then}function ml(e,t){var n,o=an(e,"useGridEditRows");(function(e,t){var n,o=an(e,"useGridEditRows"),i=function(e){return function(){t.editMode===Fi.Cell&&e.apply(void 0,arguments)}},a=p.useCallback((function(t,n,r){e.current.getCellMode(t,n)!==r&&(o.debug("Switching cell id: ".concat(t," field: ").concat(n," to mode: ").concat(r)),e.current.setState((function(o){var i=Object.assign({},o.editRows);return i[t]=Object.assign({},i[t]),r===Bi.Edit?i[t][n]={value:e.current.getCellValue(t,n)}:(delete i[t][n],Object.keys(i[t]).length||delete i[t]),Object.assign(Object.assign({},o),{editRows:i})})),e.current.forceUpdate(),e.current.publishEvent(Ye.cellModeChange,e.current.getCellParams(t,n)))}),[e,o]),s=p.useCallback((function(t,n){var r=Fs(e.current.state);return r[t]&&r[t][n]?Bi.Edit:Bi.View}),[e]),l=p.useCallback((function(n){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.id,a=n.field;e.current.unstable_runPendingEditCellValueChangeDebounce(i,a);var s=e.current.getEditRowsModel();if(!s[i]||!s[i][a])throw new Error("MUI: Cell at id: ".concat(i," and field: ").concat(a," is not in edit mode."));var l=s[i][a],c=e.current.getColumn(a),u=e.current.getRow(i);if(null===(r=t.experimentalFeatures)||void 0===r?void 0:r.preventCommitWhileValidating){var d=s[i][a];if(d.isValidating||d.error)return!1}var p=Object.assign(Object.assign({},n),{value:l.value}),f=!!l.error;if(!f&&"function"==typeof c.preProcessEditCellProps){var h=c.preProcessEditCellProps({id:i,row:u,props:l});if(hl(h))return h.then((function(t){return e.current.unstable_setEditCellProps({id:i,field:a,props:t}),!t.error&&(e.current.publishEvent(Ye.cellEditCommit,p,o),!0)}));e.current.unstable_setEditCellProps({id:i,field:a,props:h}),f=!!h.error}return!f&&(e.current.publishEvent(Ye.cellEditCommit,p,o),!0)}),[e,null===(n=t.experimentalFeatures)||void 0===n?void 0:n.preventCommitWhileValidating]),c=p.useCallback((function(t){var n=e.current.getColumn(t.field),r=e.current.getRow(t.id);return new Promise((function(o){var i={value:t.value},a=e.current.getEditRowsModel()[t.id][t.field];if("function"!=typeof n.preProcessEditCellProps)return e.current.unstable_setEditCellProps(Object.assign(Object.assign({},t),{props:i})),void o(!0);i=e.current.unstable_setEditCellProps(Object.assign(Object.assign({},t),{props:Object.assign(Object.assign({},a),{isValidating:!0})})),Promise.resolve(n.preProcessEditCellProps({id:t.id,row:r,props:Object.assign(Object.assign({},i),{value:e.current.unstable_parseValue(t.id,t.field,t.value)})})).then((function(n){e.current.unstable_setEditCellProps(Object.assign(Object.assign({},t),{props:Object.assign(Object.assign({},n),{isValidating:!1})})),o(!n.error)}))}))}),[e]);Ns(e,{setCellMode:a,getCellMode:s,commitCellChange:l,unstable_setCellEditingEditCellValue:c});var u=p.useCallback((function(t,n){return lt(void 0,void 0,void 0,d().mark((function r(){var o,i,a,s,l,c,u;return d().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o=t.id,i=t.field,a=t.cellMode,t.isEditable){r.next=3;break}return r.abrupt("return");case 3:if(s=a===Bi.Edit,l=n.ctrlKey||n.metaKey||n.altKey,s||(c=n.key,!(ni(c)||ii(c)||si(c)))||l||" "===n.key&&n.shiftKey||e.current.publishEvent(Ye.cellEditStart,t,n),!s&&ii(n.key)&&(e.current.setEditCellValue({id:o,field:i,value:""}),e.current.commitCellChange({id:o,field:i},n),e.current.publishEvent(Ye.cellEditStop,t,n)),!s||!ui(n.key)){r.next=10;break}return u={id:o,field:i},r.next=8,e.current.commitCellChange(u,n);case 8:if(r.sent){r.next=10;break}return r.abrupt("return");case 10:s&&function(e){return li.indexOf(e)>-1}(n.key)&&e.current.publishEvent(Ye.cellEditStop,t,n);case 11:case"end":return r.stop()}}),r)})))}),[e]),f=p.useCallback((function(t,n){t.isEditable&&e.current.publishEvent(Ye.cellEditStart,t,n)}),[e]),h=function(t,n){return lt(void 0,void 0,void 0,d().mark((function r(){return d().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.t0=t.cellMode!==Bi.View,!r.t0){r.next=5;break}return r.next=4,e.current.commitCellChange(t,n);case 4:e.current.publishEvent(Ye.cellEditStop,t,n);case 5:case"end":return r.stop()}}),r)})))},m=(0,w.Z)((function(e,t){h(e,t)})),v=(0,w.Z)((function(){var t=gi(e);if(t){var n=e.current.getCellParams(t.id,t.field);h(n,{})}})),g=p.useCallback((function(t,n){t.isEditable&&(e.current.setCellMode(t.id,t.field,Bi.Edit),pi(n)&&si(n.key)&&e.current.unstable_setEditCellProps({id:t.id,field:t.field,props:{value:""}}))}),[e]),y=p.useCallback((function(t,n){e.current.setCellMode(t.id,t.field,Bi.View),pi(n)&&(ui(n.key)?e.current.publishEvent(Ye.cellNavigationKeyDown,t,n):("Escape"===n.key||ii(n.key))&&e.current.setCellFocus(t.id,t.field))}),[e]),b=p.useCallback((function(t){var n=t.id,i=t.field,a=e.current.getEditRowsModel()[n][i].value;o.debug("Setting cell id: ".concat(n," field: ").concat(i," to value: ").concat(null==a?void 0:a.toString()));var s=e.current.getRow(n);if(s){var l=e.current.getColumn(t.field),c=Object.assign(Object.assign({},s),(0,r.Z)({},i,a));l.valueSetter&&(c=l.valueSetter({row:s,value:a})),e.current.updateRows([c])}}),[e,o]),x=p.useCallback((function(t){var n=e.current.getRow(t.id),r=e.current.getColumn(t.field),o=r.preProcessEditCellProps?r.preProcessEditCellProps({id:t.id,row:n,props:t.props}):t.props;hl(o)?o.then((function(n){e.current.unstable_setEditCellProps(Object.assign(Object.assign({},t),{props:n}))})):e.current.unstable_setEditCellProps(Object.assign(Object.assign({},t),{props:o}))}),[e]);Ps(e,Ye.cellKeyDown,i(u)),Ps(e,Ye.cellDoubleClick,i(f)),Ps(e,Ye.cellFocusOut,i(m)),Ps(e,Ye.columnHeaderDragStart,i(v)),Ps(e,Ye.cellEditStart,i(g)),Ps(e,Ye.cellEditStop,i(y)),Ps(e,Ye.cellEditCommit,i(b)),Ps(e,Ye.editCellPropsChange,i(x)),Ms(e,Ye.cellEditCommit,t.onCellEditCommit),Ms(e,Ye.cellEditStart,t.onCellEditStart),Ms(e,Ye.cellEditStop,t.onCellEditStop)})(e,t),function(e,t){var n,r,o=p.useRef(null),i=p.useRef(null),a=ut(e,Pt),s=function(e){return function(){t.editMode===Fi.Row&&e.apply(void 0,arguments)}},l=p.useCallback((function(t,n){n!==e.current.getRowMode(t)&&(e.current.setState((function(r){var o=Object.assign({},r.editRows);return n===Li.Edit?(o[t]={},a.forEach((function(n){var r=e.current.getCellParams(t,n.field);r.isEditable&&(o[t][n.field]={value:r.value})}))):delete o[t],Object.assign(Object.assign({},r),{editRows:o})})),e.current.forceUpdate())}),[e,a]),c=p.useCallback((function(n){return t.editMode===Fi.Cell?Li.View:Fs(e.current.state)[n]?Li.Edit:Li.View}),[e,t.editMode]),u=p.useCallback((function(n){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.editMode===Fi.Cell)throw new Error("MUI: You can't commit changes when the edit mode is 'cell'.");e.current.unstable_runPendingEditCellValueChangeDebounce(n);var i=e.current.getEditRowsModel()[n];if(!i)throw new Error("MUI: Row at id: ".concat(n," is not being edited."));if((null===(r=t.experimentalFeatures)||void 0===r?void 0:r.preventCommitWhileValidating)&&!Object.keys(i).reduce((function(e,t){return e&&!i[t].isValidating&&!i[t].error}),!0))return!1;if(Object.values(i).some((function(e){return!!e.error})))return!1;var a=Object.keys(i).filter((function(t){return"function"==typeof e.current.getColumn(t).preProcessEditCellProps}));if(a.length>0){var s=e.current.getRow(n),l=a.map((function(t){return lt(void 0,void 0,void 0,d().mark((function r(){var o,a;return d().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=e.current.getColumn(t),r.next=3,Promise.resolve(o.preProcessEditCellProps({id:n,row:s,props:i[t]}));case 3:return a=r.sent,r.abrupt("return",(e.current.unstable_setEditCellProps({id:n,field:t,props:a}),a.error));case 5:case"end":return r.stop()}}),r)})))}));return Promise.all(l).then((function(t){return!t.some((function(e){return!!e}))&&(e.current.publishEvent(Ye.rowEditCommit,n,o),!0)}))}return e.current.publishEvent(Ye.rowEditCommit,n,o),!0}),[e,t.editMode,null===(n=t.experimentalFeatures)||void 0===n?void 0:n.preventCommitWhileValidating]),f=p.useCallback((function(t){var n=e.current.getEditRowsModel()[t.id],r=e.current.getRow(t.id),o=!0;return new Promise((function(i){Object.keys(n).forEach((function(i){return lt(void 0,void 0,void 0,d().mark((function a(){var s,l;return d().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(s=e.current.getColumn(i),l=i===t.field?{value:t.value}:n[i],l=e.current.unstable_setEditCellProps({id:t.id,field:i,props:Object.assign(Object.assign({},l),{isValidating:!0})}),a.t0=s.preProcessEditCellProps,!a.t0){a.next=8;break}return a.next=7,Promise.resolve(s.preProcessEditCellProps({id:t.id,row:r,props:Object.assign(Object.assign({},l),{value:i===t.field?e.current.unstable_parseValue(t.id,i,t.value):l.value})}));case 7:l=a.sent;case 8:l.error&&(o=!1),e.current.unstable_setEditCellProps({id:t.id,field:i,props:Object.assign(Object.assign({},l),{isValidating:!1})});case 10:case"end":return a.stop()}}),a)})))})),i(o)}))}),[e]);Ns(e,{setRowMode:l,getRowMode:c,commitRowChange:u,unstable_setRowEditingEditCellValue:f});var h=p.useCallback((function(n,r){return lt(void 0,void 0,void 0,d().mark((function o(){var i,a,s,l;return d().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(a=n.cellMode,n.isEditable){o.next=3;break}return o.abrupt("return");case 3:if(s=a===Bi.Edit,l=e.current.getRowParams(n.id),!s){o.next=19;break}if("Enter"!==r.key){o.next=16;break}return o.next=8,e.current.commitRowChange(n.id);case 8:if(o.t0=!o.sent,!o.t0){o.next=11;break}o.t0=null===(i=t.experimentalFeatures)||void 0===i?void 0:i.preventCommitWhileValidating;case 11:if(!o.t0){o.next=13;break}return o.abrupt("return");case 13:e.current.publishEvent(Ye.rowEditStop,l,r),o.next=17;break;case 16:"Escape"===r.key&&e.current.publishEvent(Ye.rowEditStop,l,r);case 17:o.next=20;break;case 19:"Enter"===r.key&&e.current.publishEvent(Ye.rowEditStart,l,r);case 20:case"end":return o.stop()}}),o)})))}),[e,null===(r=t.experimentalFeatures)||void 0===r?void 0:r.preventCommitWhileValidating]),m=p.useCallback((function(t,n){if(t.isEditable){var r=e.current.getRowParams(t.id);e.current.publishEvent(Ye.rowEditStart,r,n)}}),[e]),v=p.useCallback((function(t){var n=e.current.getRow(t.id),r=e.current.getEditRowsModel()[t.id];Object.keys(r).forEach((function(o){return lt(void 0,void 0,void 0,d().mark((function i(){var a,s,l;return d().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(!(a=e.current.getColumn(o)).preProcessEditCellProps){i.next=9;break}return s=o===t.field?t.props:r[o],i.next=5,Promise.resolve(a.preProcessEditCellProps({id:t.id,row:n,props:s}));case 5:l=i.sent,e.current.unstable_setEditCellProps({id:t.id,field:o,props:l}),i.next=10;break;case 9:o===t.field&&e.current.unstable_setEditCellProps(t);case 10:case"end":return i.stop()}}),i)})))}))}),[e]),g=p.useCallback((function(t){e.current.setRowMode(t.id,Li.Edit)}),[e]),y=p.useCallback((function(t,n){e.current.setRowMode(t.id,Li.View),"Enter"===n.key&&e.current.publishEvent(Ye.cellNavigationKeyDown,t,n)}),[e]),b=p.useCallback((function(t){var n=e.current.getEditRowsModel()[t];if(!n)throw new Error("MUI: Row at id: ".concat(t," is not being edited."));var r=e.current.getRow(t);if(r){var o=Object.assign({},r);Object.keys(n).forEach((function(t){var r=e.current.getColumn(t),i=n[t].value;r.valueSetter?o=r.valueSetter({row:o,value:i}):o[t]=i})),e.current.updateRows([o])}}),[e]),x=p.useCallback((function(e){i.current=e}),[]),C=function(t,n){return lt(void 0,void 0,void 0,d().mark((function r(){return d().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:t.cellMode!==Bi.View&&(i.current=null,o.current=setTimeout((function(){return lt(void 0,void 0,void 0,d().mark((function r(){var o,a;return d().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if((null===(o=i.current)||void 0===o?void 0:o.id)===t.id){r.next=5;break}return r.next=3,e.current.commitRowChange(t.id,n);case 3:a=e.current.getRowParams(t.id),e.current.publishEvent(Ye.rowEditStop,a,n);case 5:case"end":return r.stop()}}),r)})))})));case 1:case"end":return r.stop()}}),r)})))},j=(0,w.Z)((function(e,t){C(e,t)})),S=(0,w.Z)((function(){var t=gi(e);if(t){var n=e.current.getCellParams(t.id,t.field);C(n,{})}}));Ps(e,Ye.cellKeyDown,s(h)),Ps(e,Ye.cellDoubleClick,s(m)),Ps(e,Ye.editCellPropsChange,s(v)),Ps(e,Ye.rowEditStart,s(g)),Ps(e,Ye.rowEditStop,s(y)),Ps(e,Ye.rowEditCommit,s(b)),Ps(e,Ye.cellFocusIn,s(x)),Ps(e,Ye.cellFocusOut,s(j)),Ps(e,Ye.columnHeaderDragStart,s(S)),Ms(e,Ye.rowEditCommit,t.onRowEditCommit),Ms(e,Ye.rowEditStart,t.onRowEditStart),Ms(e,Ye.rowEditStop,t.onRowEditStop)}(e,t),el(e,(function(e){return Object.assign(Object.assign({},e),{editRows:{}})}));var i=p.useRef({});e.current.unstable_updateControlState({stateId:"editRows",propModel:t.editRowsModel,propOnChange:t.onEditRowsModelChange,stateSelector:Fs,changeEvent:Ye.editRowsModelChange});var a=p.useCallback((function(e){return!e.rowNode.isAutoGenerated&&!!e.colDef.editable&&!!e.colDef.renderEditCell&&(!t.isCellEditable||t.isCellEditable(e))}),[t.isCellEditable]),s=p.useCallback((function(e,t){if(i.current[e])if(t){if(i.current[e][t])(0,(0,c.Z)(i.current[e][t],2)[1])()}else Object.keys(i.current[e]).forEach((function(t){(0,(0,c.Z)(i.current[e][t],2)[1])()}))}),[]),l=p.useCallback((function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t,n,r){if(n){if(i.current[e]||(i.current[e]={}),i.current[e][t]){var o=(0,c.Z)(i.current[e][t],1)[0];clearTimeout(o)}var a=setTimeout((function(){r(),delete i.current[e][t]}),n);i.current[e][t]=[a,function(){r();var n=(0,c.Z)(i.current[e][t],1)[0];clearTimeout(n),delete i.current[e][t]}]}else r()}(n.id,n.field,n.debounceMs,(function(){var o;if(null===(o=t.experimentalFeatures)||void 0===o?void 0:o.preventCommitWhileValidating)return"row"===t.editMode?e.current.unstable_setRowEditingEditCellValue(n):e.current.unstable_setCellEditingEditCellValue(n);var i={id:n.id,field:n.field,props:{value:n.value}};return e.current.publishEvent(Ye.editCellPropsChange,i,r)}))}),[e,t.editMode,null===(n=t.experimentalFeatures)||void 0===n?void 0:n.preventCommitWhileValidating]),u=p.useCallback((function(t,n,r){var o=e.current.getColumn(n);return o.valueParser?o.valueParser(r,e.current.getCellParams(t,n)):r}),[e]),f=p.useCallback((function(t){var n=t.id,r=t.field,i=t.props;return o.debug("Setting cell props on id: ".concat(n," field: ").concat(r)),e.current.setState((function(e){var t=Object.assign({},e.editRows);return t[n]=Object.assign({},e.editRows[n]),t[n][r]=Object.assign(Object.assign({},i),{value:u(n,r,i.value)}),Object.assign(Object.assign({},e),{editRows:t})})),e.current.forceUpdate(),Fs(e.current.state)[n][r]}),[e,o,u]),h=p.useCallback((function(t){Fs(e.current.state)!==t&&(o.debug("Setting editRows model"),e.current.setState((function(e){return Object.assign(Object.assign({},e),{editRows:t})})),e.current.forceUpdate())}),[e,o]),m=p.useCallback((function(){return Fs(e.current.state)}),[e]),v=p.useCallback((function(e,t){var n=t.detail>1;e.isEditable&&e.cellMode===Bi.View&&n&&t.preventDefault()}),[]);Ps(e,Ye.cellMouseDown,v),Ms(e,Ye.editCellPropsChange,t.onEditCellPropsChange),Ns(e,{isCellEditable:a,setEditRowsModel:h,getEditRowsModel:m,setEditCellValue:l,unstable_setEditCellProps:f,unstable_parseValue:u,unstable_runPendingEditCellValueChangeDebounce:s}),p.useEffect((function(){void 0!==t.editRowsModel&&e.current.setEditRowsModel(t.editRowsModel)}),[e,t.editRowsModel])}function vl(e,t,n){var r=t?t(e):e.id;return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"A row was provided without id in the rows prop:";if(null==e)throw new Error(["MUI: The data grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join("\n"))}(r,e,n),r}var gl=function(e){var t,n=e.prevState,r=e.rows,o=e.props,i=null!=o?o:n.props;if(r){t={idRowsLookup:{},ids:[]};for(var a=0;a<r.length;a+=1){var s=r[a],l=vl(s,i.getRowId);t.idRowsLookup[l]=s,t.ids.push(l)}}else t=n.value;return{value:t,props:i,rowsBeforePartialUpdates:null!=r?r:n.rowsBeforePartialUpdates}},yl=function(e,t,n){var r=e.state,o=r.props.rowCount,i=void 0===o?0:o,a=r.value,s=n.current.unstable_groupRows(Object.assign(Object.assign({},a),{previousTree:t})),l=Object.values(s.tree).filter((function(e){return null==e.parent})).length,c=i>s.ids.length?i:s.ids.length,u=i>l?i:l;return Object.assign(Object.assign({},s),{totalRowCount:c,totalTopLevelRowCount:u})};function bl(e){var t=e.clientHeight,n=e.scrollTop,r=e.offsetHeight,o=e.offsetTop,i=o+r;return i-t>n?i-t:o<n?o:void 0}var xl=function(e){var t=function(e,t){var n=function(e,t){var n=p.useRef();n.current||(n.current={unstable_eventManager:new Ks,state:{},instanceId:Js},Js+=1),p.useImperativeHandle(e,(function(){return n.current}),[n]);var r=p.useCallback((function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];var i=r[0],a=r[1],s=r[2],l=void 0===s?{}:s;if(l.defaultMuiPrevented=!1,!function(e){return void 0!==e.isPropagationStopped}(l)||!l.isPropagationStopped()){var c=t.signature===Zs.DataGridPro?{api:n.current}:{};n.current.unstable_eventManager.emit(i,a,l,c)}}),[n,t.signature]),o=p.useCallback((function(e,t,r){n.current.unstable_eventManager.on(e,t,r);var o=n.current;return function(){o.unstable_eventManager.removeListener(e,t)}}),[n]),i=p.useCallback((function(e){n.current.publishEvent(Ye.componentError,e)}),[n]);return Ns(n,{subscribeEvent:o,publishEvent:r,showError:i}),p.useEffect((function(){var e=n.current;return function(){e.publishEvent(Ye.unmount)}}),[n]),n}(e,t);return function(e,t){e.current.getLogger=p.useCallback((function(e){return Vs?Ys(e,"debug",t.logger):t.logLevel?Ys(e,t.logLevel.toString(),t.logger):qs}),[t.logLevel,t.logger])}(n,t),function(e,t){var n=p.useCallback((function(t){e.current.setState((function(e){return Object.assign(Object.assign({},e),{error:t})}))}),[e]);p.useEffect((function(){n(t.error)}),[n,t.error]),Ps(e,Ye.componentError,n)}(n,t),function(e,t){var n=p.useRef({}),r=p.useState(),o=(0,c.Z)(r,2)[1],i=p.useCallback((function(e){var t=e.stateId,r=st(e,["stateId"]);n.current[t]=Object.assign(Object.assign({},r),{stateId:t})}),[]),a=p.useCallback((function(r){var o;if(o="function"==typeof r?r(e.current.state):r,e.current.state===o)return!1;var i=!1,a=[];if(Object.keys(n.current).forEach((function(t){var r=n.current[t],s=r.stateSelector(e.current.state,e.current.instanceId),l=r.stateSelector(o,e.current.instanceId);l!==s&&(a.push({stateId:r.stateId,hasPropChanged:l!==r.propModel}),void 0!==r.propModel&&l!==r.propModel&&(i=!0))})),a.length>1)throw new Error("You're not allowed to update several sub-state in one transaction. You already updated ".concat(a[0],", therefore, you're not allowed to update ").concat(a.join(", ")," in the same transaction."));return i||(e.current.state=o,e.current.publishEvent&&e.current.publishEvent(Ye.stateChange,o)),a.forEach((function(r){var a=r.stateId,s=r.hasPropChanged,l=n.current[a],c=l.stateSelector(o,e.current.instanceId);if(l.propOnChange&&s){var u=t.signature===Zs.DataGridPro?{api:e.current}:{};l.propOnChange(c,u)}i||e.current.publishEvent(l.changeEvent,c)})),!i}),[e,t.signature]),s=p.useCallback((function(){return o((function(){return e.current.state}))}),[e]);Ns(e,{setState:a,forceUpdate:s,unstable_updateControlState:i})}(n,t),function(e){var t=p.useRef({}),n=p.useCallback((function(n,o,i){t.current[n]||(t.current[n]={});var a=t.current[n],s=a[o];return s&&s===i||(t.current[n]=Object.assign(Object.assign({},a),(0,r.Z)({},o,i)),e.current.publishEvent(Ye.preProcessorRegister,n)),function(){var r=t.current[n],i=o;r[i];var a=st(r,["symbol"==typeof i?i:i+""]);t.current[n]=a,e.current.publishEvent(Ye.preProcessorUnregister,n)}}),[e]),o=p.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=n[0],i=n[1],a=n[2];return t.current[o]?Object.values(t.current[o]).reduce((function(e,t){return t(e,a)}),i):i}),[]);Ns(e,{unstable_registerPreProcessor:n,unstable_applyPreProcessors:o})}(n),function(e){var t=p.useRef(new Map),n=p.useCallback((function(n,r){var o;(null!==(o=t.current.get(n))&&void 0!==o?o:null)!==r&&(t.current.set(n,r),e.current.publishEvent(Ye.rowGroupsPreProcessingChange))}),[e]),r=p.useCallback((function(){for(var e=null,n=Array.from(t.current.values());!e&&n.length;){var r=n.shift();r&&(e=r.apply(void 0,arguments))}return e||function(e){for(var t=e.ids,n=e.idRowsLookup,r={},o=0;o<t.length;o+=1){var i=t[o];r[i]={id:i,depth:0,parent:null,groupingKey:"",groupingField:null}}return{groupingName:"none",tree:r,treeDepth:1,idRowsLookup:n,ids:t}}.apply(void 0,arguments)}),[]);Ns(e,{unstable_registerRowGroupsBuilder:n,unstable_groupRows:r})}(n),function(e,t){Ns(e,{getLocaleText:p.useCallback((function(e){if(null==t.localeText[e])throw new Error("Missing translation for key ".concat(e,"."));return t.localeText[e]}),[t.localeText])})}(n,t),n}(void 0,e);return function(e,t){var n=an(e,"useGridSelection"),r=p.useMemo((function(){return null==t.selectionModel||Array.isArray(t.selectionModel)?t.selectionModel:[t.selectionModel]}),[t.selectionModel]);el(e,(function(e){return Object.assign(Object.assign({},e),{selection:null!=r?r:[]})}));var i=function(e){var t=e.classes;return p.useMemo((function(){return(0,g.Z)({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},tt,t)}),[t])}({classes:t.classes}),a=p.useRef(null);e.current.unstable_updateControlState({stateId:"selection",propModel:r,propOnChange:t.onSelectionModelChange,stateSelector:Ci,changeEvent:Ye.selectionChange});var s=t.checkboxSelection,l=t.disableMultipleSelection,u=t.disableSelectionOnClick,d=t.isRowSelectable,f=t.pagination,h=t.paginationMode,m=!l||s,v=p.useCallback((function(t){var n,r=t,o=null!==(n=a.current)&&void 0!==n?n:t,i=e.current.isRowSelected(t);if(i){var s=Vt(e),l=s.findIndex((function(e){return e===o})),c=s.findIndex((function(e){return e===r}));r=l>c?s[c+1]:s[c-1]}a.current=t,e.current.selectRowRange({startId:o,endId:r},!i)}),[e]),y=p.useCallback((function(n){var r=Object.assign(Object.assign({},Ti),{cellClassName:i.cellCheckbox,headerClassName:i.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),a=t.checkboxSelection,s=null!=n.lookup[r.field];return a&&!s?(n.lookup[r.field]=r,n.all=[r.field].concat((0,o.Z)(n.all))):!a&&s&&(delete n.lookup[r.field],n.all=n.all.filter((function(e){return e!==r.field}))),n}),[e,i,t.checkboxSelection]);Qs(e,"hydrateColumns",y);var b=p.useCallback((function(t){Ci(e.current.state)!==t&&(n.debug("Setting selection model"),e.current.setState((function(e){return Object.assign(Object.assign({},e),{selection:t})})),e.current.forceUpdate())}),[e,n]),x=p.useCallback((function(t){return Ci(e.current.state).includes(t)}),[e]),w=p.useCallback((function(){return Si(e)}),[e]),C=p.useCallback((function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!d||d(e.current.getRowParams(t)))if(a.current=t,o)n.debug("Setting selection for row ".concat(t)),e.current.setSelectionModel(r?[t]:[]);else{n.debug("Toggling selection for row ".concat(t));var i=Ci(e.current.state).filter((function(e){return e!==t}));r&&i.push(t),(i.length<2||m)&&e.current.setSelectionModel(i)}}),[e,d,n,m]),j=p.useCallback((function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];n.debug("Setting selection for several rows");var i,a=d?t.filter((function(t){return d(e.current.getRowParams(t))})):t;if(o)i=r?a:[];else{var s=Object.assign({},ki(e));a.forEach((function(e){r?s[e]=e:delete s[e]})),i=Object.values(s)}(i.length<2||m)&&e.current.setSelectionModel(i)}),[e,d,n,m]),S=p.useCallback((function(t){var r=t.startId,o=t.endId,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2?arguments[2]:void 0;if(e.current.getRow(r)&&e.current.getRow(o)){n.debug("Expanding selection from row ".concat(r," to row ").concat(o));var s=Vt(e),l=s.indexOf(r),u=s.indexOf(o),d=l>u?[u,l]:[l,u],p=(0,c.Z)(d,2),f=p[0],h=p[1],m=s.slice(f,h+1);e.current.selectRows(m,i,a)}}),[e,n]);Ns(e,{selectRow:C,selectRows:j,selectRowRange:S,setSelectionModel:b,getSelectedRows:w,isRowSelected:x});var k=p.useCallback((function(){var t=Ci(e.current.state),n=gt(e),r=Object.assign({},ki(e)),o=!1;t.forEach((function(e){n[e]||(delete r[e],o=!0)})),o&&e.current.setSelectionModel(Object.values(r))}),[e]),Z=p.useCallback((function(t,n){var r=n.metaKey||n.ctrlKey,o=!s&&!r&&!pi(n),i=!m||o,a=e.current.isRowSelected(t);i?e.current.selectRow(t,!!o||!a,!0):e.current.selectRow(t,!a,!1)}),[e,m,s]),O=p.useCallback((function(t,n){if(!u){var r=da(n.target,nt.cell),o=null==r?void 0:r.getAttribute("data-field");if(o!==Ti.field){if(o&&"actions"===e.current.getColumn(o).type)return;n.shiftKey&&(m||s)?v(t.id):Z(t.id,n)}}}),[u,m,s,e,v,Z]),E=p.useCallback((function(e,t){var n;m&&t.shiftKey&&(null===(n=window.getSelection())||void 0===n||n.removeAllRanges())}),[m]),D=p.useCallback((function(t,n){n.nativeEvent.shiftKey?v(t.id):e.current.selectRow(t.id,t.value)}),[e,v]),P=p.useCallback((function(n){var r=t.checkboxSelectionVisibleOnly&&t.pagination?Ai(e):Vt(e);e.current.selectRows(r,n.value)}),[e,t.checkboxSelectionVisibleOnly,t.pagination]),A=p.useCallback((function(t,n){if(pa(n.target)){var r=e.current.getCellParams(t.id,t.field);return r.cellMode===Bi.Edit?void 0:" "===n.key&&n.shiftKey?(n.preventDefault(),void Z(r.id,n)):void("a"===n.key.toLowerCase()&&(n.ctrlKey||n.metaKey)&&(n.preventDefault(),j(e.current.getAllRowIds(),!0)))}}),[e,Z,j]);Ps(e,Ye.visibleRowsSet,k),Ps(e,Ye.rowClick,O),Ps(e,Ye.rowSelectionCheckboxChange,D),Ps(e,Ye.headerSelectionCheckboxChange,P),Ps(e,Ye.cellMouseDown,E),Ps(e,Ye.cellKeyDown,A),p.useEffect((function(){void 0!==r&&e.current.setSelectionModel(r)}),[e,r]);var M=null!=r;p.useEffect((function(){if(!M){var t=Ci(e.current.state);if(d){var n=t.filter((function(t){return d(e.current.getRowParams(t))}));n.length<t.length&&e.current.setSelectionModel(n)}}}),[e,d,M]),p.useEffect((function(){var t=Ci(e.current.state);if(!m&&t.length>1){var n=ll(e,{pagination:f,paginationMode:h}).rows.reduce((function(e,t){return e[t.id]=!0,e}),{}),r=t.find((function(t){var r=!0;return d&&(r=d(e.current.getRowParams(t))),r&&n[t]}));e.current.setSelectionModel(void 0!==r?[r]:[])}}),[e,m,s,l,d,f,h])}(t,e),function(e,t){var n,i,a=an(e,"useGridColumns"),s=p.useMemo((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign(Object.assign({},Ki()),e),n={};return Object.entries(t).forEach((function(e){var r=(0,c.Z)(e,2),o=r[0],i=r[1];i=Object.assign(Object.assign({},t[i.extendType||"__default__"]),i),n[o]=i})),n}(t.columnTypes)}),[t.columnTypes]),l=p.useRef(!!t.columnVisibilityModel||!!(null===(i=null===(n=t.initialState)||void 0===n?void 0:n.columns)||void 0===i?void 0:i.columnVisibilityModel)).current;el(e,(function(n){var r,o,i,a,c=Pa({apiRef:e,columnsTypes:s,columnsToUpsert:t.columns,shouldRegenColumnVisibilityModelFromColumns:!l,currentColumnVisibilityModel:null!==(a=null!==(r=t.columnVisibilityModel)&&void 0!==r?r:null===(i=null===(o=t.initialState)||void 0===o?void 0:o.columns)||void 0===i?void 0:i.columnVisibilityModel)&&void 0!==a?a:{},reset:!0});return Object.assign(Object.assign({},n),{columns:c})})),e.current.unstable_updateControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:At,changeEvent:Ye.columnVisibilityModelChange});var u=p.useCallback((function(t){a.debug("Updating columns state."),e.current.setState(Aa(t)),e.current.forceUpdate(),e.current.publishEvent(Ye.columnsChange,t.all)}),[a,e]),d=p.useCallback((function(t){return Dt(e.current.state)[t]}),[e]),f=p.useCallback((function(){return Pt(e)}),[e]),h=p.useCallback((function(){return Mt(e)}),[e]),m=p.useCallback((function(){return Tt(e)}),[e]),v=p.useCallback((function(t){return(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?Mt(e):Pt(e)).findIndex((function(e){return e.field===t}))}),[e]),g=p.useCallback((function(t){var n=v(t);return Tt(e).positions[n]}),[e,v]),y=p.useCallback((function(t){At(e)!==t&&(e.current.setState((function(n){return Object.assign(Object.assign({},n),{columns:Pa({apiRef:e,columnsTypes:s,columnsToUpsert:[],shouldRegenColumnVisibilityModelFromColumns:!1,currentColumnVisibilityModel:t,reset:!1})})})),e.current.forceUpdate())}),[e,s]),b=p.useCallback((function(t){var n=Pa({apiRef:e,columnsTypes:s,columnsToUpsert:t,shouldRegenColumnVisibilityModelFromColumns:!0,reset:!1});u(n)}),[e,u,s]),x=p.useCallback((function(t){return e.current.updateColumns([t])}),[e]),w=p.useCallback((function(t,n){var o;if(l){var i=At(e);if(n!==(null===(o=i[t])||void 0===o||o)){var a=Object.assign(Object.assign({},i),(0,r.Z)({},t,n));e.current.setColumnVisibilityModel(a)}}else{var s=e.current.getColumn(t),c=Object.assign(Object.assign({},s),{hide:!n});e.current.updateColumns([c]);var u={field:t,colDef:c,isVisible:n};e.current.publishEvent(Ye.columnVisibilityChange,u)}}),[e,l]),C=p.useCallback((function(t,n){var r=Et(e.current.state),i=r.findIndex((function(e){return e===t}));if(i!==n){a.debug("Moving column ".concat(t," to index ").concat(n));var s=(0,o.Z)(r);s.splice(n,0,s.splice(i,1)[0]),u(Object.assign(Object.assign({},Ot(e.current.state)),{all:s}));var l={field:t,element:e.current.getColumnHeaderElement(t),colDef:e.current.getColumn(t),targetIndex:n,oldIndex:i};e.current.publishEvent(Ye.columnOrderChange,l)}}),[e,a,u]),j=p.useCallback((function(t,n){a.debug("Updating column ".concat(t," width to ").concat(n));var r=e.current.getColumn(t),o=Object.assign(Object.assign({},r),{width:n});e.current.updateColumns([o]),e.current.publishEvent(Ye.columnWidthChange,{element:e.current.getColumnHeaderElement(t),colDef:o,width:n})}),[e,a]);Ns(e,{getColumn:d,getAllColumns:f,getColumnIndex:v,getColumnPosition:g,getVisibleColumns:h,getColumnsMeta:m,updateColumn:x,updateColumns:b,setColumnVisibilityModel:y,setColumnVisibility:w,setColumnIndex:C,setColumnWidth:j});var S=p.useCallback((function(t){if(!l)return t;var n=At(e);return Object.values(n).some((function(e){return!1===e}))?Object.assign(Object.assign({},t),{columns:{columnVisibilityModel:n}}):t}),[e,l]),k=p.useCallback((function(t,n){var r;if(!l)return t;var o=null===(r=n.stateToRestore.columns)||void 0===r?void 0:r.columnVisibilityModel;if(null!=o){var i=Pa({apiRef:e,columnsTypes:s,columnsToUpsert:[],shouldRegenColumnVisibilityModelFromColumns:!1,currentColumnVisibilityModel:o,reset:!1});e.current.setState(Aa(i))}return t}),[e,l,s]);Qs(e,"exportState",S),Qs(e,"restoreState",k);var Z=p.useCallback((function(t){if("hydrateColumns"===t){a.info("Columns pre-processing have changed, regenerating the columns");var n=Pa({apiRef:e,columnsTypes:s,columnsToUpsert:[],shouldRegenColumnVisibilityModelFromColumns:!l,reset:!1});u(n)}}),[e,a,u,s,l]),O=p.useRef(null);Ps(e,Ye.preProcessorRegister,Z),Ps(e,Ye.viewportInnerSizeChange,(function(t){O.current!==t.width&&(O.current=t.width,u(Da(Ot(e.current.state),t.width)))})),Ms(e,Ye.columnVisibilityChange,t.onColumnVisibilityChange);var E=p.useRef(!0);p.useEffect((function(){if(E.current)E.current=!1;else{a.info("GridColumns have changed, new length ".concat(t.columns.length));var n=Pa({apiRef:e,columnsTypes:s,shouldRegenColumnVisibilityModelFromColumns:!l,columnsToUpsert:t.columns,reset:!0});u(n)}}),[a,e,u,t.columns,s,l]),p.useEffect((function(){void 0!==t.columnVisibilityModel&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)}),[e,a,t.columnVisibilityModel])}(t,e),function(e,t){var n=an(e,"useDensity");el(e,(function(e){return Object.assign(Object.assign({},e),{density:tl(t.density,t.headerHeight,t.rowHeight)})}));var r=p.useCallback((function(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.headerHeight,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.rowHeight;n.debug("Set grid density to ".concat(r)),e.current.setState((function(e){var t=$t(e),n=tl(r,o,i);return Io(t,n)?e:Object.assign(Object.assign({},e),{density:n})})),e.current.forceUpdate()}),[n,e,t.headerHeight,t.rowHeight]);p.useEffect((function(){e.current.setDensity(t.density,t.headerHeight,t.rowHeight)}),[e,t.density,t.rowHeight,t.headerHeight]),Ns(e,{setDensity:r})}(t,e),function(e,t){var n=an(e,"useGridRows"),i=p.useRef({state:{value:{idRowsLookup:{},ids:[]},props:{rowCount:void 0,getRowId:void 0},rowsBeforePartialUpdates:[]},timeout:null,lastUpdateMs:0});el(e,(function(n){return i.current.state=gl({rows:t.rows,props:{rowCount:t.rowCount,getRowId:t.getRowId},prevState:i.current.state}),i.current.lastUpdateMs=Date.now(),Object.assign(Object.assign({},n),{rows:yl(i.current,null,e)})}));var a=p.useCallback((function(t){var n;return null!==(n=gt(e)[t])&&void 0!==n?n:null}),[e]),s=p.useCallback((function(n,r){var o=function(){i.current.timeout=null,i.current.lastUpdateMs=Date.now(),e.current.setState((function(t){return Object.assign(Object.assign({},t),{rows:yl(i.current,yt(e),e)})})),e.current.publishEvent(Ye.rowsSet),e.current.forceUpdate()};if(i.current.timeout&&clearTimeout(i.current.timeout),i.current.state=n,i.current.timeout=null,r){var a=t.throttleRowsMs-(Date.now()-i.current.lastUpdateMs);a>0?i.current.timeout=setTimeout(o,a):o()}else o()}),[e,i,t.throttleRowsMs]),l=p.useCallback((function(e){n.debug("Updating all rows, new length ".concat(e.length)),s(gl({rows:e,prevState:i.current.state}),!0)}),[n,s]),c=p.useCallback((function(n){if(t.signature===Zs.DataGrid&&n.length>1)throw new Error(["MUI: You can't update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to the DataGridPro component to unlock this feature."].join("\n"));var r=new Map;n.forEach((function(e){var n=vl(e,t.getRowId,"A row was provided without id when calling updateRows():");r.has(n)?r.set(n,Object.assign(Object.assign({},r.get(n)),e)):r.set(n,e)}));var a=[],l={idRowsLookup:Object.assign({},i.current.state.value.idRowsLookup),ids:(0,o.Z)(i.current.state.value.ids)};r.forEach((function(t,n){return"delete"===t._action?(delete l.idRowsLookup[n],void a.push(n)):e.current.getRow(n)?void(l.idRowsLookup[n]=Object.assign(Object.assign({},e.current.getRow(n)),t)):(l.idRowsLookup[n]=t,void l.ids.push(n))})),a.length>0&&(l.ids=l.ids.filter((function(e){return!a.includes(e)})));var c=Object.assign(Object.assign({},i.current.state),{value:l});s(c,!0)}),[e,t.getRowId,s,t.signature]),u=p.useCallback((function(){var t=wt(e),n=gt(e);return new Map(t.map((function(e){return[e,n[e]]})))}),[e]),d=p.useCallback((function(){return mt(e)}),[e]),f=p.useCallback((function(){return wt(e)}),[e]),h=p.useCallback((function(t,n){var o=e.current.getRowNode(t);if(!o)throw new Error("MUI: No row with id #".concat(t," found"));var i=Object.assign(Object.assign({},o),{childrenExpanded:n});e.current.setState((function(e){return Object.assign(Object.assign({},e),{rows:Object.assign(Object.assign({},e.rows),{tree:Object.assign(Object.assign({},e.rows.tree),(0,r.Z)({},t,i))})})})),e.current.forceUpdate(),e.current.publishEvent(Ye.rowExpansionChange,i)}),[e]),m=p.useCallback((function(t){var n;return null!==(n=yt(e)[t])&&void 0!==n?n:null}),[e]);p.useEffect((function(){return function(){null!==i.current.timeout&&clearTimeout(i.current.timeout)}}),[]);var v=p.useRef(!0);p.useEffect((function(){v.current?v.current=!1:i.current.state.rowsBeforePartialUpdates!==t.rows&&(n.debug("Updating all rows, new length ".concat(t.rows.length)),s(gl({rows:t.rows,props:{rowCount:t.rowCount,getRowId:t.getRowId},prevState:i.current.state}),!1))}),[t.rows,t.rowCount,t.getRowId,n,s]);var g=p.useCallback((function(){var e;n.info("Row grouping pre-processing have changed, regenerating the row tree"),e=i.current.state.rowsBeforePartialUpdates===t.rows?void 0:t.rows,s(gl({rows:e,props:{rowCount:t.rowCount,getRowId:t.getRowId},prevState:i.current.state}),!1)}),[n,s,t.rowCount,t.getRowId,t.rows]);Ps(e,Ye.rowGroupsPreProcessingChange,g),Ns(e,{getRow:a,getRowModels:u,getRowsCount:d,getAllRowIds:f,setRows:l,updateRows:c,setRowChildrenExpansion:h,getRowNode:m})}(t,e),function(e){var t=p.useCallback((function(t){return{field:t,colDef:e.current.getColumn(t)}}),[e]),n=p.useCallback((function(){var t;return(t=e.current).getCellValue.apply(t,arguments)}),[e]),r=p.useCallback((function(t){var r=e.current.getRow(t);if(!r)throw new Error("No row with id #".concat(t," found"));return{id:t,columns:e.current.getAllColumns(),row:r,getValue:n}}),[e,n]),o=p.useCallback((function(t,r){var o=e.current.getRow(t),i=e.current.getRowNode(t);if(!o||!i)throw new Error("No row with id #".concat(t," found"));var a=gi(e),s=xi(e);return{id:t,field:r,row:o,rowNode:i,value:o[r],colDef:e.current.getColumn(r),cellMode:e.current.getCellMode(t,r),getValue:n,api:e.current,hasFocus:null!==a&&a.field===r&&a.id===t,tabIndex:s&&s.field===r&&s.id===t?0:-1}}),[e,n]),i=p.useCallback((function(t,r){var o=e.current.getColumn(r),i=e.current.getCellValue(t,r),a=e.current.getRow(t),s=e.current.getRowNode(t);if(!a||!s)throw new Error("No row with id #".concat(t," found"));var l=gi(e),c=xi(e),u={id:t,field:r,row:a,rowNode:s,colDef:o,cellMode:e.current.getCellMode(t,r),getValue:n,hasFocus:null!==l&&l.field===r&&l.id===t,tabIndex:c&&c.field===r&&c.id===t?0:-1,value:i,formattedValue:i};return o.valueFormatter&&(u.formattedValue=o.valueFormatter({id:t,field:u.field,value:u.value,api:e.current})),u.isEditable=o&&e.current.isCellEditable(u),u}),[e,n]),a=p.useCallback((function(t,n){var r=e.current.getColumn(n);if(!r||!r.valueGetter){var i=e.current.getRow(t);if(!i)throw new Error("No row with id #".concat(t," found"));return i[n]}return r.valueGetter(o(t,n))}),[e,o]),s=p.useCallback((function(t){return e.current.rootElementRef.current?function(e,t){return e.querySelector('[role="columnheader"][data-field="'.concat(fa(t),'"]'))}(e.current.rootElementRef.current,t):null}),[e]),l=p.useCallback((function(t){return e.current.rootElementRef.current?ha(e.current.rootElementRef.current,t):null}),[e]),c=p.useCallback((function(t,n){return e.current.rootElementRef.current?function(e,t){var n=t.field,r=ha(e,t.id);return r?r.querySelector(".".concat(nt.cell,'[data-field="').concat(fa(n),'"]')):null}(e.current.rootElementRef.current,{id:t,field:n}):null}),[e]);Ns(e,{getCellValue:a,getCellParams:i,getCellElement:c,getRowParams:r,getRowElement:l,getColumnHeaderParams:t,getColumnHeaderElement:s})}(t),ml(t,e),function(e,t){var n=an(e,"useGridFocus");el(e,(function(e){return Object.assign(Object.assign({},e),{focus:{cell:null,columnHeader:null},tabIndex:{cell:null,columnHeader:null}})}));var r=p.useRef(null),o=p.useCallback((function(t,r){if(e.current.getRow(t)){var o=gi(e);(null==o?void 0:o.id)===t&&o.field===r||(e.current.setState((function(e){return n.debug("Focusing on cell with id=".concat(t," and field=").concat(r)),Object.assign(Object.assign({},e),{tabIndex:{cell:{id:t,field:r},columnHeader:null},focus:{cell:{id:t,field:r},columnHeader:null}})})),e.current.forceUpdate(),e.current.publishEvent(Ye.cellFocusIn,e.current.getCellParams(t,r)))}}),[e,n]),i=p.useCallback((function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=gi(e);o&&e.current.publishEvent(Ye.cellFocusOut,e.current.getCellParams(o.id,o.field),r),e.current.setState((function(e){return n.debug("Focusing on column header with colIndex=".concat(t)),Object.assign(Object.assign({},e),{tabIndex:{columnHeader:{field:t},cell:null},focus:{columnHeader:{field:t},cell:null}})})),e.current.forceUpdate()}),[e,n]),a=p.useCallback((function(t){var n=t.id,r=t.field;e.current.setCellFocus(n,r)}),[e]),s=p.useCallback((function(t,n){"Enter"===n.key||"Tab"===n.key||di(n.key)||e.current.setCellFocus(t.id,t.field)}),[e]),l=p.useCallback((function(t,n){var r=t.field;n.target===n.currentTarget&&e.current.setColumnHeaderFocus(r,n)}),[e]),c=p.useCallback((function(){n.debug("Clearing focus"),e.current.setState((function(e){return Object.assign(Object.assign({},e),{focus:{cell:null,columnHeader:null}})}))}),[n,e]),u=p.useCallback((function(e){r.current=e}),[]),d=p.useCallback((function(t){var n=r.current;r.current=null;var o=gi(e);if(o){if((null==n?void 0:n.id)!==o.id||(null==n?void 0:n.field)!==o.field){var i=e.current.getCellElement(o.id,o.field);(null==i?void 0:i.contains(t.target))||e.current.getRow(o.id)&&(e.current.publishEvent(Ye.cellFocusOut,e.current.getCellParams(o.id,o.field),t),n?e.current.setCellFocus(n.id,n.field):(e.current.setState((function(e){return Object.assign(Object.assign({},e),{focus:{cell:null,columnHeader:null}})})),e.current.forceUpdate()))}}else n&&e.current.setCellFocus(n.id,n.field)}),[e]),f=p.useCallback((function(t){if("view"!==t.cellMode){var n=gi(e);(null==n?void 0:n.id)===t.id&&(null==n?void 0:n.field)===t.field||e.current.setCellFocus(t.id,t.field)}}),[e]);Ns(e,{setCellFocus:o,setColumnHeaderFocus:i}),p.useEffect((function(){var t=gi(e);t&&(e.current.getRow(t.id)||e.current.setState((function(e){return Object.assign(Object.assign({},e),{focus:{cell:null,columnHeader:null}})})))}),[e,t.rows]),p.useEffect((function(){var t=(0,E.Z)(e.current.rootElementRef.current);return t.addEventListener("click",d),function(){t.removeEventListener("click",d)}}),[e,d]),Ps(e,Ye.columnHeaderBlur,c),Ps(e,Ye.cellDoubleClick,a),Ps(e,Ye.cellMouseUp,u),Ps(e,Ye.cellKeyDown,s),Ps(e,Ye.cellModeChange,f),Ps(e,Ye.columnHeaderFocus,l)}(t,e),function(e,t){var n=an(e,"useGridSorting"),r=p.useRef({}),i=p.useRef(null);el(e,(function(e){var n,r,o,i;return Object.assign(Object.assign({},e),{sorting:{sortModel:null!==(i=null!==(n=t.sortModel)&&void 0!==n?n:null===(o=null===(r=t.initialState)||void 0===r?void 0:r.sorting)||void 0===o?void 0:o.sortModel)&&void 0!==i?i:[],sortedRows:[]}})})),e.current.unstable_updateControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:kt,changeEvent:Ye.sortModelChange});var a=p.useCallback((function(t,n){var r=kt(e),i=r.findIndex((function(e){return e.field===t})),a=(0,o.Z)(r);return i>-1?n?a.splice(i,1,n):a.splice(i,1):a=[].concat((0,o.Z)(r),[n]),a}),[e]),s=p.useCallback((function(n,r){var o,i,a=kt(e).find((function(e){return e.field===n.field}));if(a){var s=void 0===r?zo(null!==(o=n.sortingOrder)&&void 0!==o?o:t.sortingOrder,a.sort):r;return null==s?void 0:Object.assign(Object.assign({},a),{sort:s})}return{field:n.field,sort:void 0===r?zo(null!==(i=n.sortingOrder)&&void 0!==i?i:t.sortingOrder):r}}),[e,t.sortingOrder]),l=p.useCallback((function(){if(t.sortingMode===Xi)return n.debug("Skipping sorting rows as sortingMode = server"),void e.current.setState((function(t){return Object.assign(Object.assign({},t),{sorting:Object.assign(Object.assign({},t.sorting),{sortedRows:wt(t,e.current.instanceId)})})}));e.current.setState((function(t){var n=bt(t,e.current.instanceId),o=r.current[n];if(!o)throw new Error("MUI: Invalid sorting method.");var i=function(e,t){var n=e.map((function(e){return function(e,t){var n=t.current.getColumn(e.field);return n?{getSortCellParams:function(e){return{id:e,field:n.field,rowNode:t.current.getRowNode(e),value:t.current.getCellValue(e,n.field),api:t.current}},comparator:"desc"===e.sort?function(){return-1*n.sortComparator.apply(n,arguments)}:n.sortComparator}:null}(e,t)})).filter((function(e){return!!e}));return 0===n.length?null:function(e){return e.map((function(e){return{value:e,params:n.map((function(t){return t.getSortCellParams(e.id)}))}})).sort((function(e,t){return r=n,o=e.params,i=t.params,r.reduce((function(e,t,n){if(0!==e)return e;var r=o[n],a=i[n];return t.comparator(r.value,a.value,r,a)}),0);var r,o,i})).map((function(e){return e.value.id}))}}(kt(t,e.current.instanceId),e),a=o({sortRowList:i});return Object.assign(Object.assign({},t),{sorting:Object.assign(Object.assign({},t.sorting),{sortedRows:a})})})),e.current.forceUpdate()}),[e,n,t.sortingMode]),c=p.useCallback((function(t){kt(e)!==t&&(n.debug("Setting sort model"),e.current.setState(_o(t)),e.current.forceUpdate(),e.current.applySorting())}),[e,n]),u=p.useCallback((function(n,r,o){if(n.sortable){var i,l=s(n,r);i=!o||t.disableMultipleColumnsSorting?l?[l]:[]:a(n.field,l),e.current.setSortModel(i)}}),[e,a,s,t.disableMultipleColumnsSorting]),d=p.useCallback((function(){return kt(e)}),[e]),f=p.useCallback((function(){return St(e).map((function(e){return e.model}))}),[e]),h=p.useCallback((function(){return jt(e)}),[e]),m=p.useCallback((function(t){return e.current.getSortedRowIds().indexOf(t)}),[e]),v=p.useCallback((function(t){return e.current.getSortedRowIds()[t]}),[e]);Ns(e,{getSortModel:d,getSortedRows:f,getSortedRowIds:h,getRowIndex:m,getRowIdFromRowIndex:v,setSortModel:c,sortColumn:u,applySorting:l});var g=p.useCallback((function(t){var n=kt(e);return 0===n.length?t:Object.assign(Object.assign({},t),{sorting:{sortModel:n}})}),[e]),y=p.useCallback((function(t,n){var r,i=null===(r=n.stateToRestore.sorting)||void 0===r?void 0:r.sortModel;return null==i?t:(e.current.setState(_o(i)),Object.assign(Object.assign({},t),{callbacks:[].concat((0,o.Z)(t.callbacks),[e.current.applySorting])}))}),[e]),b=p.useCallback((function(t){if(!t.sortRowList)return wt(e);var n=yt(e);return t.sortRowList(Object.values(n))}),[e]);Qs(e,"exportState",g),Qs(e,"restoreState",y),function(e,t,n){var r=p.useCallback((function(e){return e[t]=n,e}),[t,n]);Qs(e,"sortingMethod",r)}(e,"none",b);var x=p.useCallback((function(e,t){var n=e.colDef,r=t.shiftKey||t.metaKey||t.ctrlKey;u(n,void 0,r)}),[u]),w=p.useCallback((function(e,t){var n=e.colDef;!ni(t.key)||t.ctrlKey||t.metaKey||u(n,void 0,t.shiftKey)}),[u]),C=p.useCallback((function(){var t=kt(e),n=Pt(e);if(t.length>0){var r=t.filter((function(e){return n.find((function(t){return t.field===e.field}))}));r.length<t.length&&e.current.setSortModel(r)}}),[e]),j=p.useCallback((function(t){if("sortingMethod"===t){r.current=e.current.unstable_applyPreProcessors("sortingMethod",{});var n=bt(e);i.current!==r.current[n]&&e.current.applySorting()}}),[e]);Ps(e,Ye.columnHeaderClick,x),Ps(e,Ye.columnHeaderKeyDown,w),Ps(e,Ye.rowsSet,e.current.applySorting),Ps(e,Ye.columnsChange,C),Ps(e,Ye.preProcessorRegister,j),Xs((function(){r.current=e.current.unstable_applyPreProcessors("sortingMethod",{}),e.current.applySorting()})),p.useEffect((function(){void 0!==t.sortModel&&e.current.setSortModel(t.sortModel)}),[e,t.sortModel])}(t,e),function(e,t){var n=an(e,"useGridPreferencesPanel");el(e,(function(e){var n,r;return Object.assign(Object.assign({},e),{preferencePanel:null!==(r=null===(n=t.initialState)||void 0===n?void 0:n.preferencePanel)&&void 0!==r?r:{open:!1}})}));var r=p.useRef(),o=p.useRef(),i=p.useCallback((function(){n.debug("Hiding Preferences Panel"),e.current.setState((function(e){return Object.assign(Object.assign({},e),{preferencePanel:{open:!1}})})),e.current.forceUpdate()}),[e,n]),a=p.useCallback((function(){o.current=setTimeout((function(){return clearTimeout(r.current)}),0)}),[]),s=p.useCallback((function(){r.current=setTimeout(i,100)}),[i]),l=p.useCallback((function(t){n.debug("Opening Preferences Panel"),a(),e.current.setState((function(e){return Object.assign(Object.assign({},e),{preferencePanel:Object.assign(Object.assign({},e.preferencePanel),{open:!0,openedPanelValue:t})})})),e.current.forceUpdate()}),[a,e,n]);Ns(e,{showPreferences:l,hidePreferences:s});var c=p.useCallback((function(t){var n=Ca(e.current.state);return n.open||n.openedPanelValue?Object.assign(Object.assign({},t),{preferencePanel:n}):t}),[e]),u=p.useCallback((function(t,n){var r=n.stateToRestore.preferencePanel;return null!=r&&e.current.setState((function(e){return Object.assign(Object.assign({},e),{preferencePanel:r})})),t}),[e]);Qs(e,"exportState",c),Qs(e,"restoreState",u),p.useEffect((function(){return function(){clearTimeout(r.current),clearTimeout(o.current)}}),[])}(t,e),function(e,t){var n=an(e,"useGridFilter"),r=p.useRef({}),i=p.useRef(null);el(e,(function(e){var n,r,o,i;return t.filterModel&&sl(t.filterModel),Object.assign(Object.assign({},e),{filter:{filterModel:null!==(i=null!==(n=t.filterModel)&&void 0!==n?n:null===(o=null===(r=t.initialState)||void 0===r?void 0:r.filter)||void 0===o?void 0:o.filterModel)&&void 0!==i?i:Bs(),visibleRowsLookup:{},filteredDescendantCountLookup:{}}})})),e.current.unstable_updateControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:_t,changeEvent:Ye.filterModelChange});var a=p.useCallback((function(){e.current.setState((function(n){var o=bt(n,e.current.instanceId),a=r.current[o];if(!a)throw new Error("MUI: Invalid filtering method.");var s=_t(n,e.current.instanceId),l=t.filterMode===Ji?function(e,t){var n=e.items,r=e.linkOperator,o=void 0===r?Vi.And:r,i=n.map((function(e){var n;if(!e.columnField||!e.operatorValue)return null;var r,o=t.current.getColumn(e.columnField);if(!o)return null;if(o.valueParser){var i=o.valueParser;r=Array.isArray(e.value)?null===(n=e.value)||void 0===n?void 0:n.map((function(e){return i(e)})):i(e.value)}else r=e.value;var a=Object.assign(Object.assign({},e),{value:r}),s=o.filterOperators;if(!(null==s?void 0:s.length))throw new Error("MUI: No filter operators found for column '".concat(o.field,"'."));var l=s.find((function(e){return e.value===a.operatorValue}));if(!l)throw new Error("MUI: No filter operator found for column '".concat(o.field,"' and operator value '").concat(a.operatorValue,"'."));var c=l.getApplyFilterFn(a,o);return"function"!=typeof c?null:{fn:function(e){var n=t.current.getCellParams(e,a.columnField);return c(n)},item:a}})).filter((function(e){return!!e}));return 0===i.length?null:function(e,t){var n=t?i.filter((function(e){return t(e.item)})):i;return o===Vi.And?n.every((function(t){return t.fn(e)})):n.some((function(t){return t.fn(e)}))}}(s,e):null;i.current=a;var c=a({isRowMatchingFilters:l});return Object.assign(Object.assign({},n),{filter:Object.assign(Object.assign({},n.filter),c)})})),e.current.publishEvent(Ye.visibleRowsSet),e.current.forceUpdate()}),[e,t.filterMode]),s=p.useCallback((function(t){var n=_t(e),r=(0,o.Z)(n.items),i=r.findIndex((function(e){return e.id===t.id})),a=al(t,e);-1===i?r.push(a):r[i]=a,e.current.setFilterModel(Object.assign(Object.assign({},n),{items:r}))}),[e]),l=p.useCallback((function(t){var n=_t(e),r=n.items.filter((function(e){return e.id!==t.id}));r.length!==n.items.length&&e.current.setFilterModel(Object.assign(Object.assign({},n),{items:r}))}),[e]),c=p.useCallback((function(r){if(n.debug("Displaying filter panel"),r){var i,a=_t(e),s=a.items.filter((function(e){return void 0!==e.value}));i=s.find((function(e){return e.columnField===r}))?s:t.disableMultipleColumnsFiltering?[al({columnField:r},e)]:[].concat((0,o.Z)(s),[al({columnField:r},e)]),e.current.setFilterModel(Object.assign(Object.assign({},a),{items:i}))}e.current.showPreferences(ba.filters)}),[e,n,t.disableMultipleColumnsFiltering]),u=p.useCallback((function(){n.debug("Hiding filter panel"),e.current.hidePreferences()}),[e,n]),d=p.useCallback((function(t){var n=_t(e);n.linkOperator!==t&&e.current.setFilterModel(Object.assign(Object.assign({},n),{linkOperator:t}))}),[e]),f=p.useCallback((function(r){_t(e)!==r&&(sl(r),n.debug("Setting filter model"),e.current.setState(il(r,t.disableMultipleColumnsFiltering)),e.current.unstable_applyFilters())}),[e,n,t.disableMultipleColumnsFiltering]),h=p.useCallback((function(){var t=Wt(e);return new Map(t.map((function(e){return[e.id,e.model]})))}),[e]);Ns(e,{setFilterLinkOperator:d,unstable_applyFilters:a,deleteFilterItem:l,upsertFilterItem:s,setFilterModel:f,showFilterPanel:c,hideFilterPanel:u,getVisibleRowModels:h});var m=p.useCallback((function(t){var n=_t(e);return 0===n.items.length&&n.linkOperator===Bs().linkOperator?t:Object.assign(Object.assign({},t),{filter:{filterModel:n}})}),[e]),v=p.useCallback((function(n,r){var i,a=null===(i=r.stateToRestore.filter)||void 0===i?void 0:i.filterModel;return null==a?n:(e.current.setState(il(a,t.disableMultipleColumnsFiltering)),Object.assign(Object.assign({},n),{callbacks:[].concat((0,o.Z)(n.callbacks),[e.current.unstable_applyFilters])}))}),[e,t.disableMultipleColumnsFiltering]),g=p.useCallback((function(n){if(t.filterMode===Ji&&n.isRowMatchingFilters){for(var r=wt(e),o={},i=0;i<r.length;i+=1){var a=r[i];o[a]=n.isRowMatchingFilters(a)}return{filteredRowsLookup:o,visibleRowsLookup:o,filteredDescendantCountLookup:{}}}return{visibleRowsLookup:{},filteredRowsLookup:{},filteredDescendantCountLookup:{}}}),[e,t.filterMode]);Qs(e,"exportState",m),Qs(e,"restoreState",v),function(e,t,n){var r=p.useCallback((function(e){return e[t]=n,e}),[t,n]);Qs(e,"filteringMethod",r)}(e,"none",g);var y=p.useCallback((function(){n.debug("onColUpdated - GridColumns changed, applying filters");var t=_t(e),r=Rt(e),o=t.items.filter((function(e){return e.columnField&&r.includes(e.columnField)}));o.length<t.items.length&&e.current.setFilterModel(Object.assign(Object.assign({},t),{items:o}))}),[e,n]),b=p.useCallback((function(t){if("filteringMethod"===t){r.current=e.current.unstable_applyPreProcessors("filteringMethod",{});var n=bt(e);i.current!==r.current[n]&&e.current.unstable_applyFilters()}}),[e]);Ps(e,Ye.rowsSet,e.current.unstable_applyFilters),Ps(e,Ye.rowExpansionChange,e.current.unstable_applyFilters),Ps(e,Ye.columnsChange,y),Ps(e,Ye.preProcessorRegister,b),Xs((function(){r.current=e.current.unstable_applyPreProcessors("filteringMethod",{}),e.current.unstable_applyFilters()})),p.useEffect((function(){void 0!==t.filterModel&&e.current.setFilterModel(t.filterModel)}),[e,n,t.filterModel])}(t,e),function(e,t){(function(e,t){var n=an(e,"useGridPageSize"),r=ut(e,tn),o=t.autoPageSize?0:100;el(e,(function(e){var n,r,i;return i=null!=t.pageSize?t.pageSize:null!=(null===(r=null===(n=t.initialState)||void 0===n?void 0:n.pagination)||void 0===r?void 0:r.pageSize)?t.initialState.pagination.pageSize:o,Object.assign(Object.assign({},e),{pagination:{pageSize:i}})})),e.current.unstable_updateControlState({stateId:"pageSize",propModel:t.pageSize,propOnChange:t.onPageSizeChange,stateSelector:Ei,changeEvent:Ye.pageSizeChange});var i=p.useCallback((function(t){t!==Ei(e)&&(n.debug("Setting page size to ".concat(t)),e.current.setState(ul(t)),e.current.forceUpdate())}),[e,n]);Ns(e,{setPageSize:i});var a=p.useCallback((function(t){var n=Ei(e);return n===o?t:Object.assign(Object.assign({},t),{pagination:Object.assign(Object.assign({},t.pagination),{pageSize:n})})}),[e,o]),s=p.useCallback((function(t,n){var r,o=null===(r=n.stateToRestore.pagination)||void 0===r?void 0:r.pageSize;return null!=o&&e.current.setState(ul(o)),t}),[e]);Qs(e,"exportState",a),Qs(e,"restoreState",s);var l=p.useCallback((function(){var n=e.current.getRootDimensions();if(t.autoPageSize&&n){var o=Math.floor(n.viewportInnerSize.height/r);e.current.setPageSize(o)}}),[e,t.autoPageSize,r]);Ps(e,Ye.viewportInnerSizeChange,l),p.useEffect((function(){null==t.pageSize||t.autoPageSize||e.current.setPageSize(t.pageSize)}),[e,t.autoPageSize,t.pageSize]),p.useEffect((function(){l()}),[l])})(e,t),function(e,t){var n=an(e,"useGridPage");el(e,(function(e){var n,r,o,i,a,s;return Object.assign(Object.assign({},e),{pagination:Object.assign(Object.assign({},e.pagination),{page:null!==(i=null!==(n=t.page)&&void 0!==n?n:null===(o=null===(r=t.initialState)||void 0===r?void 0:r.pagination)||void 0===o?void 0:o.page)&&void 0!==i?i:0,pageCount:dl(null!==(a=t.rowCount)&&void 0!==a?a:0,e.pagination.pageSize),rowCount:null!==(s=t.rowCount)&&void 0!==s?s:0})})}));var r=ut(e,Kt);e.current.unstable_updateControlState({stateId:"page",propModel:t.page,propOnChange:t.onPageChange,stateSelector:Oi,changeEvent:Ye.pageChange});var o=p.useCallback((function(t){n.debug("Setting page to ".concat(t)),e.current.setState(fl(t)),e.current.forceUpdate()}),[e,n]);Ns(e,{setPage:o});var i=p.useCallback((function(t){var n=Oi(e);return 0===n?t:Object.assign(Object.assign({},t),{pagination:Object.assign(Object.assign({},t.pagination),{page:n})})}),[e]),a=p.useCallback((function(t,n){var r,o,i=null!==(o=null===(r=n.stateToRestore.pagination)||void 0===r?void 0:r.page)&&void 0!==o?o:Oi(e);return e.current.setState(fl(i)),t}),[e]);Qs(e,"exportState",i),Qs(e,"restoreState",a),Ps(e,Ye.pageSizeChange,(function(t){e.current.setState((function(e){var n=dl(e.pagination.rowCount,t);return Object.assign(Object.assign({},e),{pagination:pl(Object.assign(Object.assign({},e.pagination),{pageCount:n,page:e.pagination.page}))})})),e.current.forceUpdate()})),p.useEffect((function(){e.current.setState((function(e){var n=void 0!==t.rowCount?t.rowCount:r,o=dl(n,e.pagination.pageSize),i=null==t.page?e.pagination.page:t.page;return Object.assign(Object.assign({},e),{pagination:pl(Object.assign(Object.assign({},e.pagination),{page:i,rowCount:n,pageCount:o}))})})),e.current.forceUpdate()}),[r,t.rowCount,t.page,e])}(e,t)}(t,e),function(e,t){var n=t.getRowHeight,r=t.pagination,o=t.paginationMode,i=p.useRef({}),a=ut(e,tn),s=ut(e,Nt),l=ut(e,Zi),c=ut(e,Ct);el(e,(function(e){return Object.assign(Object.assign({},e),{rowsMeta:{currentPageTotalHeight:0,positions:[]}})}));var u=p.useCallback((function(){var t=ll(e,{pagination:r,paginationMode:o}).rows;e.current.setState((function(r){var o=[],a=rn(r,e.current.instanceId),s=tn(r,e.current.instanceId),l=t.reduce((function(t,r){var l;o.push(t);var c=s;n&&(c=null!==(l=n(Object.assign(Object.assign({},r),{densityFactor:a})))&&void 0!==l?l:s);var u=e.current.unstable_applyPreProcessors("rowHeight",{base:c},r),d=Object.values(u).reduce((function(e,t){return e+t}),0);return i.current[r.id]=c,t+d}),0);return Object.assign(Object.assign({},r),{rowsMeta:{currentPageTotalHeight:l,positions:o}})})),e.current.forceUpdate()}),[e,r,o,n]);p.useEffect((function(){u()}),[a,s,l,c,u]);var d=p.useCallback((function(e){"rowHeight"===e&&u()}),[u]);Ps(e,Ye.preProcessorRegister,d),Ns(e,{unstable_getRowHeight:function(e){return i.current[e]||a}})}(t,e),function(e,t){var n=an(e,"useGridScroll"),r=e.current.columnHeadersElementRef,o=e.current.windowRef,i=ut(e,Zi),a=ut(e,mt),s=ut(e,Mt),l=ut(e,Tt),c=ut(e,Lt),u=p.useCallback((function(r){if(0===a||0===s.length)return!1;n.debug("Scrolling to cell at row ".concat(r.rowIndex,", col: ").concat(r.colIndex," "));var u={};if(null!=r.colIndex&&(u.left=bl({clientHeight:o.current.clientWidth,scrollTop:o.current.scrollLeft,offsetHeight:s[r.colIndex].computedWidth,offsetTop:l.positions[r.colIndex]})),null!=r.rowIndex){var d=t.pagination?r.rowIndex-i.page*i.pageSize:r.rowIndex,p=c.positions[d+1]?c.positions[d+1]-c.positions[d]:c.currentPageTotalHeight-c.positions[d];u.top=bl({clientHeight:o.current.clientHeight,scrollTop:o.current.scrollTop,offsetHeight:p,offsetTop:c.positions[d]})}return(void 0!==typeof(u=e.current.unstable_applyPreProcessors("scrollToIndexes",u,r)).left||void 0!==typeof u.top)&&(e.current.scroll(u),!0)}),[a,s,n,e,o,l.positions,t.pagination,i.page,i.pageSize,c.positions,c.currentPageTotalHeight]),d=p.useCallback((function(e){o.current&&null!=e.left&&r.current&&(r.current.scrollLeft=e.left,o.current.scrollLeft=e.left,n.debug("Scrolling left: ".concat(e.left))),o.current&&null!=e.top&&(o.current.scrollTop=e.top,n.debug("Scrolling top: ".concat(e.top))),n.debug("Scrolling, updating container, and viewport")}),[o,r,n]),f=p.useCallback((function(){return(null==o?void 0:o.current)?{top:o.current.scrollTop,left:o.current.scrollLeft}:{top:0,left:0}}),[o]);Ns(e,{scroll:d,scrollToIndexes:u,getScrollPosition:f});var h=p.useCallback((function(e){e.target.scrollLeft=0,e.target.scrollTop=0}),[]);_s(e,(function(){var t,n,r;return null===(r=null===(n=null===(t=e.current)||void 0===t?void 0:t.renderingZoneRef)||void 0===n?void 0:n.current)||void 0===r?void 0:r.parentElement}),"scroll",h)}(t,e),function(e){var t=an(e,"useGridColumnMenu");el(e,(function(e){return Object.assign(Object.assign({},e),{columnMenu:{open:!1}})}));var n=ut(e,Rs),r=p.useCallback((function(n){e.current.setState((function(e){return e.columnMenu.open&&e.columnMenu.field===n?e:(t.debug("Opening Column Menu"),Object.assign(Object.assign({},e),{columnMenu:{open:!0,field:n}}))}))&&(e.current.hidePreferences(),e.current.forceUpdate())}),[e,t]),o=p.useCallback((function(){e.current.setState((function(e){return e.columnMenu.open||void 0!==e.columnMenu.field?(t.debug("Hiding Column Menu"),Object.assign(Object.assign({},e),{columnMenu:Object.assign(Object.assign({},e.columnMenu),{open:!1,field:void 0})})):e}))&&e.current.forceUpdate()}),[e,t]),i=p.useCallback((function(e){t.debug("Toggle Column Menu"),n.open&&n.field===e?o():r(e)}),[t,r,o,n]);Ns(e,{showColumnMenu:r,hideColumnMenu:o,toggleColumnMenu:i}),Ps(e,Ye.columnResizeStart,o),Ps(e,Ye.rowsScroll,o)}(t),function(e){var t=p.useCallback((function(t,n){e.current.publishEvent(Ye.cellNavigationKeyDown,t,n);var r=gi(e);if(r){var o=da(n.target,nt.row),i=Number(o.getAttribute("data-rowindex")),a=Vt(e)[i];a!==r.id&&e.current.selectRowRange({startId:a,endId:r.id},!e.current.isRowSelected(r.id))}}),[e]),n=p.useCallback((function(n,r){if(pa(r.target)){var o=e.current.getCellParams(n.id,n.field);o.cellMode===Bi.Edit||" "===r.key&&r.shiftKey||(!di(r.key)||r.shiftKey?di(r.key)&&r.shiftKey&&(r.preventDefault(),t(o,r)):e.current.publishEvent(Ye.cellNavigationKeyDown,o,r))}}),[e,t]);Ps(e,Ye.cellKeyDown,n)}(t),function(e,t){var n=an(e,"useGridKeyboardNavigation"),r=ut(e,Ft),o=ut(e,Wt),i=cl(e,t),a=p.useCallback((function(t,r){n.debug("Navigating to cell row ".concat(r,", col ").concat(t)),e.current.scrollToIndexes({colIndex:t,rowIndex:r});var i=e.current.getVisibleColumns()[t].field,a=o[r];e.current.setCellFocus(a.id,i)}),[e,n,o]),s=p.useCallback((function(t,r){n.debug("Navigating to header col ".concat(t)),e.current.scrollToIndexes({colIndex:t});var o=e.current.getVisibleColumns()[t].field;e.current.setColumnHeaderFocus(o,r)}),[e,n]),l=p.useCallback((function(t,n){var l=e.current.getRootDimensions();if(i.range&&l){var c=e.current.unstable_getViewportPageSize(),u=t.field?e.current.getColumnIndex(t.field):0,d=o.findIndex((function(e){return e.id===t.id})),p=i.range.firstRowIndex,f=i.range.lastRowIndex,h=r-1,m=!0;switch(n.key){case"ArrowDown":case"Enter":d<f&&a(u,d+1);break;case"ArrowUp":d>p?a(u,d-1):s(u,n);break;case"ArrowRight":u<h&&a(u+1,d);break;case"ArrowLeft":u>0&&a(u-1,d);break;case"Tab":n.shiftKey&&u>0?a(u-1,d):!n.shiftKey&&u<h&&a(u+1,d);break;case"PageDown":case" ":d<f&&a(u,Math.min(d+c,f));break;case"PageUp":var v=Math.max(d-c,p);v!==d&&v>=p?a(u,v):s(u,n);break;case"Home":n.ctrlKey||n.metaKey||n.shiftKey?a(0,p):a(0,d);break;case"End":n.ctrlKey||n.metaKey||n.shiftKey?a(h,f):a(h,d);break;default:m=!1}m&&n.preventDefault()}}),[e,o,r,i,a,s]),c=p.useCallback((function(t,n){var o,l,c,u;if(t.field&&e.current.getRootDimensions()){var d=e.current.unstable_getViewportPageSize(),p=t.field?e.current.getColumnIndex(t.field):0,f=null!==(l=null===(o=i.range)||void 0===o?void 0:o.firstRowIndex)&&void 0!==l?l:null,h=null!==(u=null===(c=i.range)||void 0===c?void 0:c.lastRowIndex)&&void 0!==u?u:null,m=r-1,v=!0;switch(n.key){case"ArrowDown":null!==f&&a(p,f);break;case"ArrowRight":p<m&&s(p+1,n);break;case"ArrowLeft":p>0&&s(p-1,n);break;case"PageDown":null!==f&&null!==h&&a(p,Math.min(f+d,h));break;case"Home":s(0,n);break;case"End":s(m,n);break;case"Enter":(n.ctrlKey||n.metaKey)&&e.current.toggleColumnMenu(t.field);break;case" ":break;default:v=!1}v&&n.preventDefault()}}),[e,r,i,a,s]);Ps(e,Ye.cellNavigationKeyDown,l),Ps(e,Ye.columnHeaderKeyDown,c)}(t,e),function(e){var t=an(e,"useGridCsvExport"),n=p.useCallback((function(){var n,r,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.debug("Get data as CSV");var i=Pt(e);return rl({columns:o.fields?o.fields.map((function(e){return i.find((function(t){return t.field===e}))})).filter((function(e){return!!e})):(o.allColumns?i:Mt(e)).filter((function(e){return!e.disableExport})),rowIds:(null!==(n=o.getRowsToExport)&&void 0!==n?n:ol)({apiRef:e}),getCellParams:e.current.getCellParams,delimiterCharacter:o.delimiter||",",includeHeaders:null===(r=o.includeHeaders)||void 0===r||r})}),[t,e]),r=p.useCallback((function(e){t.debug("Export data as CSV");var r=n(e);!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"csv",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.title,r="".concat(n,".").concat(t);if("download"in HTMLAnchorElement.prototype){var o=URL.createObjectURL(e),i=document.createElement("a");return i.href=o,i.download=r,i.click(),void setTimeout((function(){URL.revokeObjectURL(o)}))}throw new Error("MUI: exportAs not supported")}(new Blob([(null==e?void 0:e.utf8WithBom)?new Uint8Array([239,187,191]):"",r],{type:"text/csv"}),"csv",null==e?void 0:e.fileName)}),[t,n]);Ns(e,{getDataAsCsv:n,exportDataAsCsv:r})}(t),function(e,t){var n=an(e,"useGridPrintExport"),r=ut(e,Lt),i=ut(e,nn),a=ut(e,Yt),s=ut(e,At),l=ut(e,Pt),c=p.useRef(null),u=p.useRef(),f=p.useRef([]);p.useEffect((function(){c.current=(0,E.Z)(e.current.rootElementRef.current)}),[e]);var h=p.useCallback((function(t,n){return new Promise((function(r){t||n?(e.current.updateColumns(l.map((function(e){return!1!==s[e.field]&&f.current.push(e.field),n?(e.hide=!1,e):(e.hide=!(null==t?void 0:t.includes(e.field))||e.disableExport,e)}))),r()):r()}))}),[l,s,e]),m=p.useCallback((function(e){var t=document.createElement("iframe");return t.id="grid-print-window",t.src=window.location.href,t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}),[]),v=p.useCallback((function(t,n){var a,s,l,u,d,p,f=Object.assign({copyStyles:!0,hideToolbar:!1,hideFooter:!1},n);t.onload=null;var h=t.contentDocument||(null===(s=t.contentWindow)||void 0===s?void 0:s.document);if(h){var m=e.current.rootElementRef.current,v=m.cloneNode(!0),g=v.querySelector(".".concat(nt.virtualScroller));g.style.height="auto",g.style.width="auto",g.parentElement.style.width="auto",g.parentElement.style.height="auto",v.querySelector(".".concat(nt.main)).style.overflow="visible",v.querySelector(".".concat(nt.columnHeaders)).querySelector(".".concat(nt.columnHeadersInner)).style.width="100%";var y=(null===(l=m.querySelector(".".concat(nt.toolbarContainer)))||void 0===l?void 0:l.clientHeight)||0,b=(null===(u=m.querySelector(".".concat(nt.footerContainer)))||void 0===u?void 0:u.clientHeight)||0;f.hideToolbar&&(null===(d=v.querySelector(".".concat(nt.toolbarContainer)))||void 0===d||d.remove(),y=0),f.hideFooter&&(null===(p=v.querySelector(".".concat(nt.footerContainer)))||void 0===p||p.remove(),b=0),v.style.height="".concat(r.currentPageTotalHeight+i+y+b,"px"),h.body.innerHTML="",h.body.appendChild(v);var x="function"==typeof f.pageStyle?f.pageStyle():f.pageStyle;if("string"==typeof x){var w=h.createElement("style");w.appendChild(h.createTextNode(x)),h.head.appendChild(w)}if(f.bodyClassName&&(a=h.body.classList).add.apply(a,(0,o.Z)(f.bodyClassName.split(" "))),f.copyStyles)for(var C=c.current.querySelectorAll("style, link[rel='stylesheet']"),j=0;j<C.length;j+=1){var S=C[j];if("STYLE"===S.tagName){var k=h.createElement(S.tagName),Z=S.sheet;if(Z){for(var O="",E=0;E<Z.cssRules.length;E+=1)"string"==typeof Z.cssRules[E].cssText&&(O+="".concat(Z.cssRules[E].cssText,"\r\n"));k.appendChild(h.createTextNode(O)),h.head.appendChild(k)}}else if(S.getAttribute("href")){for(var D=h.createElement(S.tagName),P=0;P<S.attributes.length;P+=1){var A=S.attributes[P];A&&D.setAttribute(A.nodeName,A.nodeValue||"")}h.head.appendChild(D)}}t.contentWindow.print()}}),[e,c,r.currentPageTotalHeight,i]),g=p.useCallback((function(t){c.current.body.removeChild(t),e.current.setState((function(e){return Object.assign(Object.assign({},e),u.current)})),e.current.unstable_enableVirtualization(),f.current.length&&e.current.updateColumns(l.map((function(e){return e.hide=f.current.includes(e.field),e}))),u.current=null,f.current=[]}),[l,e]),y=p.useCallback((function(r){return lt(void 0,void 0,void 0,d().mark((function o(){var i;return d().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(n.debug("Export data as Print"),e.current.rootElementRef.current){o.next=2;break}throw new Error("MUI: No grid root element available.");case 2:return u.current=e.current.state,t.pagination&&e.current.setPageSize(a),o.next=6,h(null==r?void 0:r.fields,null==r?void 0:r.allColumns);case 6:e.current.unstable_disableVirtualization(),i=m(null==r?void 0:r.fileName),c.current.body.appendChild(i),i.onload=function(){return v(i,r)},i.contentWindow.onafterprint=function(){return g(i)};case 9:case"end":return o.stop()}}),o)})))}),[a,t,n,e,m,v,g,h]);Ns(e,{exportDataAsPrint:y})}(t,e),function(e){var t=p.useCallback((function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(0!==e.current.getSelectedRows().size){var n=e.current.getDataAsCsv({includeHeaders:t,delimiter:"\t"});navigator.clipboard?navigator.clipboard.writeText(n).catch((function(){$s(n)})):$s(n)}}),[e]),n=p.useCallback((function(t){var n,r=t.ctrlKey||t.metaKey||t.altKey;"C"===String.fromCharCode(t.keyCode)&&r&&""===(null===(n=window.getSelection())||void 0===n?void 0:n.toString())&&e.current.unstable_copySelectedRowsToClipboard(t.altKey)}),[e]);_s(e,e.current.rootElementRef,"keydown",n),Ns(e,{unstable_copySelectedRowsToClipboard:t})}(t),function(e,t){var n=an(e,"useResizeContainer"),r=p.useRef(!1),o=p.useRef(null),i=p.useRef(null),a=ut(e,Lt),s=ut(e,nn),l=p.useCallback((function(){var n,r=null===(n=e.current.rootElementRef)||void 0===n?void 0:n.current,l=Bt(e);if(o.current){var c;if(null!=t.scrollbarSize)c=t.scrollbarSize;else if(l&&r){var u=(0,E.Z)(r).createElement("div");u.style.width="99px",u.style.height="99px",u.style.position="absolute",u.style.overflow="scroll",u.className="scrollDiv",r.appendChild(u),c=u.offsetWidth-u.clientWidth,r.removeChild(u)}else c=0;var d={width:o.current.width,height:t.autoHeight?a.currentPageTotalHeight:o.current.height-s},p=function(e){var t=e.content,n=e.container,r=e.scrollBarSize,o=t.width>n.width,i=t.height>n.height,a=!1,s=!1;return(o||i)&&(a=o,(s=t.height+(a?r:0)>n.height)&&(a=t.width+r>n.width)),{hasScrollX:a,hasScrollY:s}}({content:{width:Math.round(l),height:a.currentPageTotalHeight},container:d,scrollBarSize:c}),f=p.hasScrollX,h=p.hasScrollY,m={viewportOuterSize:d,viewportInnerSize:{width:d.width-(h?c:0),height:d.height-(f?c:0)},hasScrollX:f,hasScrollY:h},v=i.current;i.current=m,m.viewportInnerSize.width===(null==v?void 0:v.viewportInnerSize.width)&&m.viewportInnerSize.height===(null==v?void 0:v.viewportInnerSize.height)||e.current.publishEvent(Ye.viewportInnerSizeChange,m.viewportInnerSize)}}),[e,t.scrollbarSize,t.autoHeight,s,a.currentPageTotalHeight]),c=p.useCallback((function(){l(),e.current.publishEvent(Ye.debouncedResize,o.current)}),[e,l]),u=p.useCallback((function(){return i.current}),[]),d=p.useCallback((function(){var n=e.current.getRootDimensions();if(!n)return 0;var r=ll(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){var o=e.current.unstable_getRenderContext(),i=o.lastRowIndex-o.firstRowIndex;return Math.min(i-1,r.rows.length)}var a=Math.floor(n.viewportInnerSize.height/tn(e));return Math.min(a,r.rows.length)}),[e,t.pagination,t.paginationMode,t.getRowHeight]);Ns(e,{resize:c,getRootDimensions:u,unstable_getViewportPageSize:d});var f=p.useMemo((function(){return(0,D.Z)(c,60)}),[c]),h=p.useRef(!0),m=p.useCallback((function(e){o.current=e;var i=/jsdom/.test(window.navigator.userAgent);return 0!==e.height||r.current||t.autoHeight||i||(n.warn(["The parent of the grid has an empty height.","You need to make sure the container has an intrinsic height.","The grid displays with a height of 0px.","","You can find a solution in the docs:","https://mui.com/components/data-grid/layout/"].join("\n")),r.current=!0),0!==e.width||r.current||i||(n.warn(["The parent of the grid has an empty width.","You need to make sure the container has an intrinsic width.","The grid displays with a width of 0px.","","You can find a solution in the docs:","https://mui.com/components/data-grid/layout/"].join("\n")),r.current=!0),h.current?(c(),void(h.current=!1)):void f()}),[t.autoHeight,f,n,c]);(0,j.Z)((function(){return l()}),[l]),Ms(e,Ye.visibleRowsSet,l),Ms(e,Ye.pageChange,l),Ms(e,Ye.pageSizeChange,l),Ms(e,Ye.columnsChange,l),Ps(e,Ye.resize,m),Ms(e,Ye.debouncedResize,t.onResize)}(t,e),function(e,t){Ms(e,Ye.columnHeaderClick,t.onColumnHeaderClick),Ms(e,Ye.columnHeaderDoubleClick,t.onColumnHeaderDoubleClick),Ms(e,Ye.columnHeaderOver,t.onColumnHeaderOver),Ms(e,Ye.columnHeaderOut,t.onColumnHeaderOut),Ms(e,Ye.columnHeaderEnter,t.onColumnHeaderEnter),Ms(e,Ye.columnHeaderLeave,t.onColumnHeaderLeave),Ms(e,Ye.columnOrderChange,t.onColumnOrderChange),Ms(e,Ye.cellClick,t.onCellClick),Ms(e,Ye.cellDoubleClick,t.onCellDoubleClick),Ms(e,Ye.cellKeyDown,t.onCellKeyDown),Ms(e,Ye.cellFocusOut,t.onCellFocusOut),Ms(e,Ye.rowDoubleClick,t.onRowDoubleClick),Ms(e,Ye.rowClick,t.onRowClick),Ms(e,Ye.componentError,t.onError),Ms(e,Ye.stateChange,t.onStateChange)}(t,e),function(e){var t=p.useCallback((function(){return e.current.unstable_applyPreProcessors("exportState",{})}),[e]),n=p.useCallback((function(t){e.current.unstable_applyPreProcessors("restoreState",{callbacks:[]},{stateToRestore:t}).callbacks.forEach((function(e){e()})),e.current.forceUpdate()}),[e]);Ns(e,{exportState:t,restoreState:n})}(t),t},wl={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBuffer:3,rowBuffer:3,columnThreshold:3,rowThreshold:3,density:qi.Standard,disableExtendRowFullWidth:!1,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableMultipleColumnsFiltering:!1,disableMultipleSelection:!1,disableMultipleColumnsSorting:!1,disableSelectionOnClick:!1,disableVirtualization:!1,editMode:Fi.Cell,filterMode:Ji,headerHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,logger:console,logLevel:"error",pagination:!1,paginationMode:Ji,rowHeight:52,rowsPerPageOptions:[25,50,100],showCellRightBorder:!1,showColumnRightBorder:!1,sortingOrder:["asc","desc",null],sortingMode:Ji,throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1},Cl=p.memo((function(e){var t=e.sortingOrder,n=st(e,["sortingOrder"]),r=ot(),o="asc"===(0,c.Z)(t,1)[0]?r.components.ColumnSortedAscendingIcon:r.components.ColumnSortedDescendingIcon;return o?p.createElement(o,Object.assign({},n)):null})),jl=p.forwardRef((function(e,t){var n=e.message,r=(e.hasError,e.errorInfo,st(e,["message","hasError","errorInfo"])),o=et().current.getLocaleText("errorOverlayDefaultLabel");return p.createElement(ia,Object.assign({ref:t},r),n||o)})),Sl=p.forwardRef((function(e,t){var n=et().current.getLocaleText("noResultsOverlayLabel");return p.createElement(ia,Object.assign({ref:t},e),n)})),kl={BooleanCellTrueIcon:An,BooleanCellFalseIcon:kn,ColumnMenuIcon:Sn,OpenFilterButtonIcon:vn,ColumnFilteredIcon:gn,ColumnSelectorIcon:bn,ColumnUnsortedIcon:Cl,ColumnSortedAscendingIcon:pn,ColumnSortedDescendingIcon:fn,ColumnResizeIcon:xn,DensityCompactIcon:wn,DensityStandardIcon:Cn,DensityComfortableIcon:jn,ExportIcon:Pn,MoreActionsIcon:Mn,TreeDataCollapseIcon:mn,TreeDataExpandIcon:hn,GroupingCriteriaCollapseIcon:mn,GroupingCriteriaExpandIcon:hn,DetailPanelExpandIcon:Zn,DetailPanelCollapseIcon:On},Zl=Object.assign(Object.assign({},kl),{BaseCheckbox:Je.Z,BaseTextField:_.Z,BaseFormControl:ae.Z,BaseSelect:de.Z,BaseSwitch:ne.Z,BaseButton:Xe.Z,BaseTooltip:Qe.Z,BasePopper:G.Z,Cell:function(e){var t=e.align,n=e.children,r=e.colIndex,o=e.cellMode,i=e.field,a=e.formattedValue,s=e.hasFocus,l=e.height,c=e.isEditable,u=e.rowId,d=e.tabIndex,f=e.value,h=e.width,m=e.className,v=e.showRightBorder,y=(e.extendRowFullWidth,e.row,e.onClick),b=e.onDoubleClick,x=e.onMouseDown,w=e.onMouseUp,C=e.onKeyDown,j=e.onDragEnter,S=e.onDragOver,k=st(e,["align","children","colIndex","cellMode","field","formattedValue","hasFocus","height","isEditable","rowId","tabIndex","value","width","className","showRightBorder","extendRowFullWidth","row","onClick","onDoubleClick","onMouseDown","onMouseUp","onKeyDown","onDragEnter","onDragOver"]),Z=null==a?f:a,D=p.useRef(null),P=et(),A=function(e){var t=e.align,n=e.showRightBorder,r=e.isEditable,o=e.classes,i={root:["cell","cell--text".concat((0,O.Z)(t)),r&&"cell--editable",n&&"withBorder"]};return(0,g.Z)(i,tt,o)}({align:t,showRightBorder:v,isEditable:c,classes:ot().classes}),M=p.useCallback((function(e){return function(t){var n=P.current.getCellParams(u,i||"");P.current.publishEvent(e,n,t),w&&w(t)}}),[P,i,w,u]),T=p.useCallback((function(e,t){return function(n){if(n.currentTarget.contains(n.target)&&P.current.getRow(u)){var r=P.current.getCellParams(u,i||"");P.current.publishEvent(e,r,n),t&&t(n)}}}),[P,i,u]),I={minWidth:h,maxWidth:h,minHeight:l,maxHeight:l};p.useLayoutEffect((function(){if(s&&o!==Bi.Edit){var e=(0,E.Z)(P.current.rootElementRef.current);if(D.current&&!D.current.contains(e.activeElement)){var t=D.current.querySelector('[tabindex="0"]')||D.current;if(void 0===Gi&&document.createElement("div").focus({get preventScroll(){return Gi=!0,!1}}),Gi)t.focus({preventScroll:!0});else{var n=P.current.getScrollPosition();t.focus(),P.current.scroll(n)}}}}),[s,o,P]);var R=k.onFocus;return p.createElement("div",Object.assign({ref:D,className:(0,F.default)(m,A.root),role:"cell","data-field":i,"data-colindex":r,"aria-colindex":r+1,style:I,tabIndex:"view"!==o&&c?-1:d,onClick:T(Ye.cellClick,y),onDoubleClick:T(Ye.cellDoubleClick,b),onMouseDown:T(Ye.cellMouseDown,x),onMouseUp:M(Ye.cellMouseUp),onKeyDown:T(Ye.cellKeyDown,C),onDragEnter:T(Ye.cellDragEnter,j),onDragOver:T(Ye.cellDragOver,S)},k,{onFocus:R}),null!=n?n:null==Z?void 0:Z.toString())},ColumnMenu:Ia,ErrorOverlay:jl,Footer:bs,Header:xs,Toolbar:null,PreferencesPanel:es,LoadingOverlay:ws,NoResultsOverlay:Sl,NoRowsOverlay:Cs,Pagination:Ss,FilterPanel:function(e){var t,n=et(),r=ot(),i=ut(n,_t),a=ut(n,It),s=p.useRef(null),l=e.linkOperators,c=void 0===l?[Vi.And,Vi.Or]:l,u=e.columnsSort,d=e.filterFormProps,f=st(e,["linkOperators","columnsSort","filterFormProps"]),h=p.useCallback((function(e){n.current.upsertFilterItem(e)}),[n]),m=p.useCallback((function(e){n.current.setFilterLinkOperator(e)}),[n]),v=p.useCallback((function(){var e=a.find((function(e){var t;return null===(t=e.filterOperators)||void 0===t?void 0:t.length}));return e?{columnField:e.field,operatorValue:e.filterOperators[0].value,id:Math.round(1e5*Math.random())}:null}),[a]),g=p.useMemo((function(){if(i.items.length)return i.items;var e=v();return e?[e]:[]}),[i.items,v]),y=g.length>1,b=p.useCallback((function(e){n.current.deleteFilterItem(e)}),[n]);return p.useEffect((function(){c.length>0&&i.linkOperator&&!c.includes(i.linkOperator)&&m(c[0])}),[c,m,i.linkOperator]),p.useEffect((function(){g.length>0&&s.current.focus()}),[g.length]),p.createElement(Wa,Object.assign({},f),p.createElement(Fa,null,g.map((function(e,t){return p.createElement(cs,Object.assign({key:null==e.id?t:e.id,item:e,applyFilterChanges:h,deleteFilter:b,hasMultipleFilters:y,showMultiFilterOperators:t>0,multiFilterOperator:i.linkOperator,disableMultiFilterOperator:1!==t,applyMultiFilterOperatorChanges:m,focusElementRef:t===g.length-1?s:null,linkOperators:c,columnsSort:u},d))}))),!r.disableMultipleColumnsFiltering&&p.createElement(La,null,p.createElement(r.components.BaseButton,Object.assign({onClick:function(){var e=v();e&&n.current.setFilterModel(Object.assign(Object.assign({},i),{items:[].concat((0,o.Z)(g),[e])}))},startIcon:p.createElement(Zn,null),color:"primary"},null===(t=r.componentsProps)||void 0===t?void 0:t.baseButton),n.current.getLocaleText("filterPanelAddFilter"))))},ColumnsPanel:function(){var e,t,n,r=et(),o=p.useRef(null),i=ut(r,Pt),a=ut(r,At),s=ot(),l=p.useState(""),u=(0,c.Z)(l,2),d=u[0],f=u[1],h=function(e){var t=e.classes;return(0,g.Z)({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},tt,t)}({classes:s.classes}),m=function(e){var t=e.target.name;r.current.setColumnVisibility(t,!1===a[t])},v=p.useCallback((function(e){r.current.updateColumns(i.map((function(t){return!1!==t.hideable?{field:t.field,hide:!e}:t})))}),[r,i]),y=p.useCallback((function(e){f(e.target.value)}),[]),b=p.useMemo((function(){return d?i.filter((function(e){return e.field.toLowerCase().indexOf(d.toLowerCase())>-1||e.headerName&&e.headerName.toLowerCase().indexOf(d.toLowerCase())>-1})):i}),[i,d]);return p.useEffect((function(){o.current.focus()}),[]),p.createElement(Wa,null,p.createElement(_a,null,p.createElement(s.components.BaseTextField,Object.assign({label:r.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:r.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:o,value:d,onChange:y,variant:"standard",fullWidth:!0},null===(e=s.componentsProps)||void 0===e?void 0:e.baseTextField))),p.createElement(Fa,null,p.createElement(Ga,{className:h.root},b.map((function(e){var t;return p.createElement(Ya,{className:h.columnsPanelRow,key:e.field},p.createElement(re.Z,{control:p.createElement(s.components.BaseSwitch,Object.assign({disabled:!1===e.hideable,checked:!1!==a[e.field],onClick:m,name:e.field,color:"primary",size:"small"},null===(t=s.componentsProps)||void 0===t?void 0:t.baseSwitch)),label:e.headerName||e.field}),!s.disableColumnReorder&&Ua&&p.createElement(Ka,{draggable:!0,"aria-label":r.current.getLocaleText("columnsPanelDragIconLabel"),title:r.current.getLocaleText("columnsPanelDragIconLabel"),size:"small",disabled:!0},p.createElement(Dn,null)))})))),p.createElement(La,null,p.createElement(s.components.BaseButton,Object.assign({onClick:function(){return v(!1)},color:"primary"},null===(t=s.componentsProps)||void 0===t?void 0:t.baseButton),r.current.getLocaleText("columnsPanelHideAllButton")),p.createElement(s.components.BaseButton,Object.assign({onClick:function(){return v(!0)},color:"primary"},null===(n=s.componentsProps)||void 0===n?void 0:n.baseButton),r.current.getLocaleText("columnsPanelShowAllButton"))))},Panel:$a,Row:function(e){for(var t,n,r,o,i=e.selected,a=e.rowId,s=(e.row,e.index),l=e.style,c=e.rowHeight,u=e.className,d=e.visibleColumns,f=e.renderedColumns,h=e.containerWidth,m=e.firstColumnToRender,v=(e.lastColumnToRender,e.cellFocus),y=e.cellTabIndex,b=e.editRowsState,x=e.onClick,w=e.onDoubleClick,C=e.onMouseEnter,j=e.onMouseLeave,S=st(e,["selected","rowId","row","index","style","rowHeight","className","visibleColumns","renderedColumns","containerWidth","firstColumnToRender","lastColumnToRender","cellFocus","cellTabIndex","editRowsState","onClick","onDoubleClick","onMouseEnter","onMouseLeave"]),k=s+2,Z=et(),O=ot(),E=ut(Z,Tt),D=null!==(t=Z.current.getRootDimensions())&&void 0!==t?t:{hasScrollX:!1,hasScrollY:!1},P=D.hasScrollX,A=D.hasScrollY,M=function(e){var t=e.editable,n=e.editing,r=e.selected,o=e.classes;return(0,g.Z)({root:["row",r&&"selected",t&&"row--editable",n&&"row--editing"]},tt,o)}({selected:i,classes:O.classes,editing:Z.current.getRowMode(a)===Li.Edit,editable:O.editMode===Fi.Row}),T=p.useCallback((function(e,t){return function(n){(1!==n.target.nodeType||n.currentTarget.contains(n.target))&&Z.current.getRow(a)&&(Z.current.publishEvent(e,Z.current.getRowParams(a),n),t&&t(n))}}),[Z,a]),I=Object.assign({maxHeight:c,minHeight:c},l),R="function"==typeof O.getRowClassName&&O.getRowClassName(Z.current.getRowParams(a)),B=[],L=0;L<f.length;L+=1){var N=f[L],_=m+L,z=_===d.length-1,H=z?!(z&&P&&!A)&&O.disableExtendRowFullWidth:O.showCellRightBorder,W=Z.current.getCellParams(a,N.field),V=[];N.cellClassName&&V.push((0,F.default)("function"==typeof N.cellClassName?N.cellClassName(W):N.cellClassName));var U=b[a]?b[a][N.field]:null,q=null;if(null==U&&N.renderCell&&(q=N.renderCell(Object.assign(Object.assign({},W),{api:Z.current})),V.push((0,F.default)(nt["cell--withRenderer"],null===(n=O.classes)||void 0===n?void 0:n["cell--withRenderer"]))),null!=U&&N.renderEditCell){var G=Object.assign(Object.assign(Object.assign({},W),U),{api:Z.current});q=N.renderEditCell(G),V.push((0,F.default)(nt["cell--editing"],null===(r=O.classes)||void 0===r?void 0:r["cell--editing"]))}O.getCellClassName&&V.push(O.getCellClassName(W));var Y=null!==v&&v.id===a&&v.field===N.field,K=null!==y&&y.id===a&&y.field===N.field&&"view"===W.cellMode?0:-1;B.push(p.createElement(O.components.Cell,Object.assign({key:N.field,value:W.value,field:N.field,width:N.computedWidth,rowId:a,height:c,showRightBorder:H,formattedValue:W.formattedValue,align:N.align||"left",cellMode:W.cellMode,colIndex:_,isEditable:W.isEditable,hasFocus:Y,tabIndex:K,className:(0,F.default)(V)},null===(o=O.componentsProps)||void 0===o?void 0:o.cell),q))}var J=h-E.totalWidth;return p.createElement("div",Object.assign({"data-id":a,"data-rowindex":s,role:"row",className:(0,F.default)(R,M.root,u),"aria-rowindex":k,"aria-selected":i,style:I,onClick:T(Ye.rowClick,x),onDoubleClick:T(Ye.rowDoubleClick,w),onMouseEnter:T(Ye.rowMouseEnter,C),onMouseLeave:T(Ye.rowMouseLeave,j)},S),B,J>0&&p.createElement(ks,{width:J,height:c}))}}),Ol={apiRef:void 0,disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,signature:"DataGrid"},El=(0,y.ZP)("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:function(e,t){return t.virtualScroller}})({overflow:"auto","@media print":{overflow:"hidden"}}),Dl=p.forwardRef((function(e,t){var n=e.className,r=st(e,["className"]),o=function(e){var t=e.classes;return(0,g.Z)({root:["virtualScroller"]},tt,t)}({classes:ot().classes});return p.createElement(El,Object.assign({ref:t,className:(0,F.default)(o.root,n)},r))})),Pl=(0,y.ZP)("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:function(e,t){return t.virtualScrollerContent}})({position:"relative"}),Al=p.forwardRef((function(e,t){var n=e.className,r=st(e,["className"]),o=function(e){var t=e.classes;return(0,g.Z)({root:["virtualScrollerContent"]},tt,t)}({classes:ot().classes});return p.createElement(Pl,Object.assign({ref:t,className:(0,F.default)(o.root,n)},r))})),Ml=(0,y.ZP)("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:function(e,t){return t.virtualScrollerRenderZone}})({position:"absolute"}),Tl=p.forwardRef((function(e,t){var n=e.className,r=st(e,["className"]),o=function(e){var t=e.classes;return(0,g.Z)({root:["virtualScrollerRenderZone"]},tt,t)}({classes:ot().classes});return p.createElement(Ml,Object.assign({ref:t,className:(0,F.default)(o.root,n)},r))}));function Il(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length;if(t.length<=0)return-1;if(n>=r)return n;var o=n+Math.floor((r-n)/2);return e<=t[o]?Il(e,t,n,o):Il(e,t,o+1,r)}var Rl=p.forwardRef((function(e,t){var n=e.className,r=e.disableVirtualization,o=st(e,["className","disableVirtualization"]),i=function(e){var t,n=et(),r=ot(),o=ut(n,Mt),i=e.ref,a=e.disableVirtualization,s=e.onRenderZonePositioning,l=e.renderZoneMinColumnIndex,u=void 0===l?0:l,d=e.renderZoneMaxColumnIndex,f=void 0===d?o.length:d,h=e.getRowProps,m=ut(n,Tt),v=ut(n,tn),g=ut(n,gi),y=ut(n,xi),b=ut(n,Lt),x=ut(n,Fs),w=ut(n,ki),C=cl(n,r),j=p.useRef(null),k=p.useRef(null),Z=(0,S.Z)(i,k),O=p.useState(null),E=(0,c.Z)(O,2),D=E[0],P=E[1],A=p.useRef(D),M=p.useRef({top:0,left:0}),T=p.useState(null),I=(0,c.Z)(T,2),R=I[0],F=I[1],B=p.useRef(m.totalWidth),L=p.useCallback((function(){if(a)return{firstRowIndex:0,lastRowIndex:C.rows.length,firstColumnIndex:0,lastColumnIndex:o.length};var e=M.current,t=e.top,n=e.left,i=Il(t,b.positions);return{firstRowIndex:i,lastRowIndex:r.autoHeight?i+C.rows.length:Il(t+k.current.clientHeight,b.positions),firstColumnIndex:Il(n,m.positions),lastColumnIndex:Il(n+R,m.positions)}}),[a,b.positions,r.autoHeight,C.rows.length,m.positions,R,o.length]);p.useEffect((function(){a?j.current.style.transform="translate3d(0px, 0px, 0px)":(k.current.scrollLeft=0,k.current.scrollTop=0)}),[a]),p.useEffect((function(){F(k.current.clientWidth)}),[b.currentPageTotalHeight]),p.useEffect((function(){if(null!=R){var e=L();A.current=e,P(e);var t=M.current,r={top:t.top,left:t.left,renderContext:e};n.current.publishEvent(Ye.rowsScroll,r)}}),[n,L,R]);var N=p.useCallback((function(){k.current&&F(k.current.clientWidth)}),[]);Ps(n,Ye.resize,N);var _=function(e){var t=e.firstIndex,n=e.lastIndex,r=e.buffer,o=e.minFirstIndex,i=e.maxLastIndex;return[Bo(t-r,o,i),Bo(n+r,o,i)]},z=p.useCallback((function(e){var t,o=_({firstIndex:e.firstRowIndex,lastIndex:e.lastRowIndex,minFirstIndex:0,maxLastIndex:null===(t=C.range)||void 0===t?void 0:t.lastRowIndex,buffer:r.rowBuffer}),i=(0,c.Z)(o,1)[0],a=_({firstIndex:e.firstColumnIndex,lastIndex:e.lastColumnIndex,minFirstIndex:u,maxLastIndex:f,buffer:r.columnBuffer}),l=(0,c.Z)(a,1)[0],d=Lt(n.current.state).positions[i],p=Tt(n).positions[l];j.current.style.transform="translate3d(".concat(p,"px, ").concat(d,"px, 0px)"),"function"==typeof s&&s({top:d,left:p})}),[n,null===(t=C.range)||void 0===t?void 0:t.lastRowIndex,s,f,u,r.columnBuffer,r.rowBuffer]),H=function(e){var t=e.currentTarget,o=t.scrollTop,i=t.scrollLeft;if(M.current.top=o,M.current.left=i,!(i<0||o<0)&&A.current){var s=a?A.current:L(),l=Math.abs(s.firstRowIndex-A.current.firstRowIndex),c=Math.abs(s.firstColumnIndex-A.current.firstColumnIndex),u=l>=r.rowThreshold||c>=r.columnThreshold||B.current!==m.totalWidth;n.current.publishEvent(Ye.rowsScroll,{top:o,left:i,renderContext:u?s:A.current}),u&&(P(s),A.current=s,B.current=m.totalWidth,z(s))}},W=R&&m.totalWidth>R,V=p.useMemo((function(){var e={width:W?m.totalWidth:"auto",height:Math.max(b.currentPageTotalHeight,1)};return r.autoHeight&&0===C.rows.length&&(e.height=2*v),e}),[m.totalWidth,b.currentPageTotalHeight,C.rows.length,W,r.autoHeight,v]);p.useEffect((function(){n.current.publishEvent(Ye.virtualScrollerContentSizeChange)}),[n,V]),r.autoHeight&&0===C.rows.length&&(V.height=2*v);var U={};W||(U.overflowX="hidden");var q=p.useCallback((function(){return A.current}),[]);return n.current.unstable_getRenderContext=q,{renderContext:D,updateRenderZonePosition:z,getRows:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{renderContext:D},i=t.renderContext,s=t.minFirstColumn,l=void 0===s?u:s,d=t.maxLastColumn,m=void 0===d?f:d,v=t.availableSpace,b=void 0===v?R:v;if(!C.range||!i||null==b)return null;for(var j=a?0:r.rowBuffer,S=a?0:r.columnBuffer,k=_({firstIndex:i.firstRowIndex,lastIndex:i.lastRowIndex,minFirstIndex:0,maxLastIndex:C.rows.length,buffer:j}),Z=(0,c.Z)(k,2),O=Z[0],E=Z[1],P=_({firstIndex:i.firstColumnIndex,lastIndex:i.lastColumnIndex,minFirstIndex:l,maxLastIndex:m,buffer:S}),A=(0,c.Z)(P,2),M=A[0],T=A[1],I=C.rows.slice(O,E),F=o.slice(M,T),B=[],L=0;L<I.length;L+=1){var N=I[L],z=N.id,H=N.model,W=n.current.unstable_getRowHeight(z),V=void 0;V=null!=w[z]&&("function"!=typeof r.isRowSelectable||r.isRowSelectable(n.current.getRowParams(z))),B.push(p.createElement(r.components.Row,Object.assign({key:z,row:H,rowId:z,rowHeight:W,cellFocus:g,cellTabIndex:y,editRowsState:x,renderedColumns:F,visibleColumns:o,firstColumnToRender:M,lastColumnToRender:T,selected:V,index:C.range.firstRowIndex+i.firstRowIndex+L,containerWidth:b},"function"==typeof h?h(z,H):{},null===(e=r.componentsProps)||void 0===e?void 0:e.row)))}return B},getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,n=void 0===t?{}:t,r=st(e,["style"]);return Object.assign({ref:Z,onScroll:H,style:Object.assign(Object.assign({},n),U)},r)},getContentProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,n=void 0===t?{}:t;return{style:Object.assign(Object.assign({},n),V)}},getRenderZoneProps:function(){return{ref:j}}}}({ref:t,disableVirtualization:r}),a=i.getRootProps,s=i.getContentProps,l=i.getRenderZoneProps,u=i.getRows;return p.createElement(Dl,Object.assign({className:n},a(o)),p.createElement(Al,Object.assign({},s()),p.createElement(Tl,Object.assign({},l()),u())))})),Fl=(0,y.ZP)("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:function(e,t){return t.columnHeaders}})((function(e){var t=e.theme;return{position:"absolute",top:0,left:0,right:0,overflow:"hidden",display:"flex",alignItems:"center",borderBottom:"1px solid ".concat("light"===t.palette.mode?(0,b.$n)((0,b.Fq)(t.palette.divider,1),.88):(0,b._j)((0,b.Fq)(t.palette.divider,1),.68))}})),Bl=p.forwardRef((function(e,t){e.innerRef;var n=e.className,r=st(e,["innerRef","className"]),o=function(e){var t=e.classes;return(0,g.Z)({root:["columnHeaders"]},tt,t)}({classes:ot().classes});return p.createElement(Fl,Object.assign({ref:t,className:(0,F.default)(n,o.root)},r))})),Ll=(0,y.ZP)("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:function(e,t){return[(0,r.Z)({},"&.".concat(nt.columnHeaderDropZone),t.columnHeaderDropZone),t.columnHeadersInner]}})((function(){var e;return e={display:"flex",alignItems:"center"},(0,r.Z)(e,"&.".concat(nt.columnHeaderDropZone," .").concat(nt.columnHeaderDraggableContainer),{cursor:"move"}),(0,r.Z)(e,"&.".concat(nt["columnHeadersInner--scrollable"]," .").concat(nt.columnHeader,":last-child"),{borderRight:"none"}),e})),Nl=p.forwardRef((function(e,t){var n,r,o=e.isDragging,i=e.className,a=st(e,["isDragging","className"]),s=et(),l=ot(),c=function(e){var t=e.isDragging,n=e.hasScrollX,r=e.classes;return(0,g.Z)({root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]},tt,r)}({isDragging:o,hasScrollX:null!==(r=null===(n=s.current.getRootDimensions())||void 0===n?void 0:n.hasScrollX)&&void 0!==r&&r,classes:l.classes});return p.createElement(Ll,Object.assign({ref:t,className:(0,F.default)(i,c.root)},a))})),_l=p.forwardRef((function(e,t){var n=e.innerRef,r=(e.className,st(e,["innerRef","className"])),o=function(e){var t=e.innerRef,n=e.minColumnIndex,r=void 0===n?0:n,o=p.useState(""),i=(0,c.Z)(o,2),a=i[0],s=i[1],l=p.useState(""),u=(0,c.Z)(l,2),d=u[0],f=u[1],h=et(),m=ut(h,Mt),v=ut(h,Tt),g=ut(h,wi),y=ut(h,xi),b=ut(h,yi),x=ut(h,nn),w=ut(h,Xt),C=ut(h,Zt),j=ut(h,Rs),k=ot(),Z=p.useRef(null),O=(0,S.Z)(t,Z),E=p.useState(null),D=(0,c.Z)(E,2),P=D[0],A=D[1],M=p.useRef(P),T=p.useRef(0);p.useEffect((function(){h.current.columnHeadersContainerElementRef.current.scrollLeft=0}),[h]);var I=p.useCallback((function(e){var t=Math.max(e.firstColumnIndex-k.columnBuffer,r),n=t>0?T.current-v.positions[t]:T.current;Z.current.style.transform="translate3d(".concat(-n,"px, 0px, 0px)")}),[v.positions,r,k.columnBuffer]),R=p.useCallback((function(e){var t,n,r=e.left,o=e.renderContext,i=void 0===o?null:o;Z.current&&(T.current===r&&(null===(t=M.current)||void 0===t?void 0:t.firstColumnIndex)===(null==i?void 0:i.firstColumnIndex)&&(null===(n=M.current)||void 0===n?void 0:n.lastColumnIndex)===(null==i?void 0:i.lastColumnIndex)||(T.current=r,i===M.current&&M.current||(A(i),M.current=i),i&&I(i)))}),[I]),F=p.useCallback((function(e){return f(e.field)}),[]),B=p.useCallback((function(){return f("")}),[]),L=p.useCallback((function(e){return s(e.field)}),[]),N=p.useCallback((function(){return s("")}),[]);Ps(h,Ye.columnResizeStart,F),Ps(h,Ye.columnResizeStop,B),Ps(h,Ye.columnHeaderDragStart,L),Ps(h,Ye.columnHeaderDragEnd,N),Ps(h,Ye.rowsScroll,R);var _={minHeight:x,maxHeight:x,lineHeight:"".concat(x,"px")};return{renderContext:P,getColumns:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e||{},o=n.renderContext,i=void 0===o?P:o,s=n.minFirstColumn,l=void 0===s?r:s,c=n.maxLastColumn,u=void 0===c?m.length:c;if(!i)return null;for(var f=[],h=Math.max(i.firstColumnIndex-k.columnBuffer,l),v=Math.min(i.lastColumnIndex+k.columnBuffer,u),S=m.slice(h,v),Z=0;Z<S.length;Z+=1){var O=S[Z],E=h+Z,D=0===E,A=!(null===g&&null===y),M=null!==g&&g.field===O.field||D&&!A?0:-1,T=null!==b&&b.field===O.field,I=j.open&&j.field===O.field;f.push(p.createElement(ka,Object.assign({key:Z},C[O.field],{columnMenuOpen:I,filterItemsCounter:w[O.field]&&w[O.field].length,headerHeight:x,isDragging:O.field===a,column:O,colIndex:E,isResizing:d===O.field,isLastColumn:E===f.length-1,extendRowFullWidth:!k.disableExtendRowFullWidth,hasFocus:T,tabIndex:M},t)))}return f},isDragging:!!a,updateInnerPosition:I,getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({style:_},e)},getInnerProps:function(){return{ref:O,"aria-rowindex":1,role:"row"}}}}({innerRef:n}),i=o.isDragging,a=o.getRootProps,s=o.getInnerProps,l=o.getColumns;return p.createElement(Bl,Object.assign({ref:t},a(r)),p.createElement(Is,{scrollDirection:"left"}),p.createElement(Nl,Object.assign({isDragging:i},s()),l()),p.createElement(Is,{scrollDirection:"right"}))})),zl=p.forwardRef((function(e,t){var n=function(e){if(e.pageSize>100)throw new Error("'props.pageSize' cannot exceed 100 in DataGrid.");var t=(0,x.Z)({props:e,name:"MuiDataGrid"}),n=p.useMemo((function(){return Object.assign(Object.assign({},qa),t.localeText)}),[t.localeText]),r=p.useMemo((function(){var e=t.components;if(!e)return Object.assign({},Zl);var n={};return Object.keys(Zl).forEach((function(t){n[t]=void 0===e[t]?Zl[t]:e[t]})),n}),[t.components]);return p.useMemo((function(){return Object.assign(Object.assign(Object.assign(Object.assign({},wl),t),{localeText:n,components:r}),Ol)}),[t,n,r])}(e),r=xl(n);return p.createElement(Ws,{apiRef:r,props:n},p.createElement(ta,{className:n.className,style:n.style,sx:n.sx,ref:t},p.createElement(ln,null,p.createElement(un,null),p.createElement(on,{ColumnHeadersComponent:_l,VirtualScrollerComponent:Rl}),p.createElement(cn,null))))})),Hl=p.memo(zl);zl.propTypes={"aria-label":h().string,"aria-labelledby":h().string,autoHeight:h().bool,autoPageSize:h().bool,checkboxSelection:h().bool,classes:h().object,columnBuffer:h().number,columns:(0,Y.Z)(h().array.isRequired,(function(e){return e.columns&&e.columns.some((function(e){return e.resizable}))?new Error(["MUI: `column.resizable = true` is not a valid prop.","Column resizing is not available in the MIT version.","","You need to upgrade to the DataGridPro component to unlock this feature."].join("\n")):null})),columnThreshold:h().number,columnTypes:h().object,columnVisibilityModel:h().object,components:h().object,componentsProps:h().object,density:h().oneOf(["comfortable","compact","standard"]),disableColumnFilter:h().bool,disableColumnMenu:h().bool,disableColumnSelector:h().bool,disableDensitySelector:h().bool,disableExtendRowFullWidth:h().bool,disableSelectionOnClick:h().bool,disableVirtualization:h().bool,editMode:h().oneOf(["cell","row"]),editRowsModel:h().object,error:h().any,experimentalFeatures:h().shape({preventCommitWhileValidating:h().bool}),filterMode:h().oneOf(["client","server"]),filterModel:(0,Y.Z)(h().any,(function(e){return null!=e.filterModel&&e.filterModel.items.length>1?new Error(["MUI: `<DataGrid filterModel={model} />` is not a valid prop. `model.items` has more than 1 item.","Only single filter is available in the MIT version.","","You need to upgrade to the DataGridPro component to unlock this feature."].join("\n")):null})),getCellClassName:h().func,getDetailPanelContent:h().func,getRowClassName:h().func,getRowHeight:h().func,getRowId:h().func,headerHeight:h().number,hideFooter:h().bool,hideFooterPagination:h().bool,hideFooterSelectedRowCount:h().bool,initialState:h().object,isCellEditable:h().func,isRowSelectable:h().func,loading:h().bool,localeText:h().object,logger:h().shape({debug:h().func.isRequired,error:h().func.isRequired,info:h().func.isRequired,warn:h().func.isRequired}),logLevel:h().oneOf(["debug","error","info","warn",!1]),nonce:h().string,onCellClick:h().func,onCellDoubleClick:h().func,onCellEditCommit:h().func,onCellEditStart:h().func,onCellEditStop:h().func,onCellFocusOut:h().func,onCellKeyDown:h().func,onColumnHeaderClick:h().func,onColumnHeaderDoubleClick:h().func,onColumnHeaderEnter:h().func,onColumnHeaderLeave:h().func,onColumnHeaderOut:h().func,onColumnHeaderOver:h().func,onColumnOrderChange:h().func,onColumnVisibilityChange:h().func,onColumnVisibilityModelChange:h().func,onEditCellPropsChange:h().func,onEditRowsModelChange:h().func,onError:h().func,onFilterModelChange:h().func,onPageChange:h().func,onPageSizeChange:h().func,onResize:h().func,onRowClick:h().func,onRowDoubleClick:h().func,onRowEditCommit:h().func,onRowEditStart:h().func,onRowEditStop:h().func,onSelectionModelChange:h().func,onSortModelChange:h().func,onStateChange:h().func,page:h().number,pageSize:(0,Y.Z)(h().number,(function(e){return e.pageSize&&e.pageSize>100?new Error(["MUI: `<DataGrid pageSize={".concat(e.pageSize,"} />` is not a valid prop."),"Only page size below 100 is available in the MIT version.","","You need to upgrade to the DataGridPro component to unlock this feature."].join("\n")):null})),pagination:function(e){return!1===e.pagination?new Error(["MUI: `<DataGrid pagination={false} />` is not a valid prop.","Infinite scrolling is not available in the MIT version.","","You need to upgrade to the DataGridPro component to disable the pagination."].join("\n")):null},paginationMode:h().oneOf(["client","server"]),rowBuffer:h().number,rowCount:h().number,rowHeight:h().number,rows:h().arrayOf(h().object).isRequired,rowsPerPageOptions:h().arrayOf(h().number),rowThreshold:h().number,scrollbarSize:h().number,selectionModel:(0,Y.Z)(h().oneOfType([h().number,h().string,h().array]),(function(e){return!e.checkboxSelection&&Array.isArray(e.selectionModel)&&e.selectionModel.length>1?new Error(["MUI: `<DataGrid selectionModel={".concat(JSON.stringify(e.selectionModel),"} />` is not a valid prop."),"selectionModel can only be of 1 item in DataGrid.","","You need to upgrade to the DataGridPro component to unlock multiple selection."].join("\n")):null})),showCellRightBorder:h().bool,showColumnRightBorder:h().bool,sortingMode:h().oneOf(["client","server"]),sortingOrder:h().arrayOf(h().oneOf(["asc","desc"])),sortModel:h().arrayOf(h().shape({field:h().string.isRequired,sort:h().oneOf(["asc","desc"])})),sx:h().oneOfType([h().arrayOf(h().oneOfType([h().func,h().object,h().bool])),h().func,h().object])}},95136:function(e,t,n){"use strict";n.d(t,{X3:function(){return L},aU:function(){return r},Zq:function(){return M},lX:function(){return f},Ep:function(){return g},kG:function(){return h},WK:function(){return _},RQ:function(){return I},fp:function(){return w},cP:function(){return y},pC:function(){return T},Zn:function(){return D}});var r,o=n(91976),i=n(22951),a=n(67591),s=n(99616),l=n(37373),c=n(11026);n(50824);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(r||(r={}));var d,p="popstate";function f(e){return void 0===e&&(e={}),x((function(e,t){var n=e.location;return v("",{pathname:n.pathname,search:n.search,hash:n.hash},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:g(t)}),null,e)}function h(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function m(e){return{usr:e.state,key:e.key}}function v(e,t,n,r){return void 0===n&&(n=null),u({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?y(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function g(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,o=void 0===r?"":r,i=e.hash,a=void 0===i?"":i;return o&&"?"!==o&&(n+="?"===o.charAt(0)?o:"?"+o),a&&"#"!==a&&(n+="#"===a.charAt(0)?a:"#"+a),n}function y(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function b(e){var t="undefined"!==typeof window&&"undefined"!==typeof window.location&&"null"!==window.location.origin?window.location.origin:window.location.href,n="string"===typeof e?e:g(e);return h(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}function x(e,t,n,o){void 0===o&&(o={});var i=o,a=i.window,s=void 0===a?document.defaultView:a,l=i.v5Compat,c=void 0!==l&&l,u=s.history,d=r.Pop,f=null;function h(){d=r.Pop,f&&f({action:d,location:y.location})}var y={get action(){return d},get location(){return e(s,u)},listen:function(e){if(f)throw new Error("A history only accepts one active listener");return s.addEventListener(p,h),f=e,function(){s.removeEventListener(p,h),f=null}},createHref:function(e){return t(s,e)},encodeLocation:function(e){var t=b("string"===typeof e?e:g(e));return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){d=r.Push;var o=v(y.location,e,t);n&&n(o,e);var i=m(o),a=y.createHref(o);try{u.pushState(i,"",a)}catch(l){s.location.assign(a)}c&&f&&f({action:d,location:y.location})},replace:function(e,t){d=r.Replace;var o=v(y.location,e,t);n&&n(o,e);var i=m(o),a=y.createHref(o);u.replaceState(i,"",a),c&&f&&f({action:d,location:y.location})},go:function(e){return u.go(e)}};return y}function w(e,t,n){void 0===n&&(n="/");var r=D(("string"===typeof t?y(t):t).pathname||"/",n);if(null==r)return null;var o=C(e);!function(e){e.sort((function(e,t){return e.score!==t.score?t.score-e.score:function(e,t){var n=e.length===t.length&&e.slice(0,-1).every((function(e,n){return e===t[n]}));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((function(e){return e.childrenIndex})),t.routesMeta.map((function(e){return e.childrenIndex})))}))}(o);for(var i=null,a=0;null==i&&a<o.length;++a)i=Z(o[a],E(r));return i}function C(e,t,n,r){return void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r=""),e.forEach((function(e,o){var i={relativePath:e.path||"",caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};i.relativePath.startsWith("/")&&(h(i.relativePath.startsWith(r),'Absolute route path "'+i.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(r.length));var a=I([r,i.relativePath]),s=n.concat(i);e.children&&e.children.length>0&&(h(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+a+'".'),C(e.children,t,s,a)),(null!=e.path||e.index)&&t.push({path:a,score:k(a,e.index),routesMeta:s})})),t}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(d||(d={}));var j=/^:\w+$/,S=function(e){return"*"===e};function k(e,t){var n=e.split("/"),r=n.length;return n.some(S)&&(r+=-2),t&&(r+=2),n.filter((function(e){return!S(e)})).reduce((function(e,t){return e+(j.test(t)?3:""===t?1:10)}),r)}function Z(e,t){for(var n=e.routesMeta,r={},o="/",i=[],a=0;a<n.length;++a){var s=n[a],l=a===n.length-1,c="/"===o?t:t.slice(o.length)||"/",u=O({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},c);if(!u)return null;Object.assign(r,u.params);var d=s.route;i.push({params:r,pathname:I([o,u.pathname]),pathnameBase:R(I([o,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(o=I([o,u.pathnameBase]))}return i}function O(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});var n=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);P("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');var r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(function(e,t){return r.push(t),"([^\\/]+)"}));e.endsWith("*")?(r.push("*"),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))");return[new RegExp(o,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),r=(0,c.Z)(n,2),o=r[0],i=r[1],a=t.match(o);if(!a)return null;var s=a[0],l=s.replace(/(.)\/+$/,"$1"),u=a.slice(1);return{params:i.reduce((function(e,t,n){if("*"===t){var r=u[n]||"";l=s.slice(0,s.length-r.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return P(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(u[n]||"",t),e}),{}),pathname:s,pathnameBase:l,pattern:e}}function E(e){try{return decodeURI(e)}catch(t){return P(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function D(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;var n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function P(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function A(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function M(e){return e.filter((function(e,t){return 0===t||e.route.path&&e.route.path.length>0}))}function T(e,t,n,r){var o;void 0===r&&(r=!1),"string"===typeof e?o=y(e):(h(!(o=u({},e)).pathname||!o.pathname.includes("?"),A("?","pathname","search",o)),h(!o.pathname||!o.pathname.includes("#"),A("#","pathname","hash",o)),h(!o.search||!o.search.includes("#"),A("#","search","hash",o)));var i,a=""===e||""===o.pathname,s=a?"/":o.pathname;if(r||null==s)i=n;else{var l=t.length-1;if(s.startsWith("..")){for(var c=s.split("/");".."===c[0];)c.shift(),l-=1;o.pathname=c.join("/")}i=l>=0?t[l]:"/"}var d=function(e,t){void 0===t&&(t="/");var n="string"===typeof e?y(e):e,r=n.pathname,o=n.search,i=void 0===o?"":o,a=n.hash,s=void 0===a?"":a,l=r?r.startsWith("/")?r:function(e,t){var n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((function(e){".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(r,t):t;return{pathname:l,search:F(i),hash:B(s)}}(o,i),p=s&&"/"!==s&&s.endsWith("/"),f=(a||"."===s)&&n.endsWith("/");return d.pathname.endsWith("/")||!p&&!f||(d.pathname+="/"),d}var I=function(e){return e.join("/").replace(/\/\/+/g,"/")},R=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},F=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},B=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""},L=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n)}((0,l.Z)(Error));var N=(0,o.Z)((function e(t,n,r,o){(0,i.Z)(this,e),void 0===o&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}));function _(e){return e instanceof N}var z=["post","put","patch","delete"],H=(new Set(z),["get"].concat(z));new Set(H),new Set([301,302,303,307,308]),new Set([307,308]),"undefined"!==typeof window&&"undefined"!==typeof window.document&&window.document.createElement},31147:function(e,t){"use strict";t.Z=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?i===t.replace(/\/.*$/,""):o===t}))}return!0}},45133:function(e,t,n){e.exports=n(19145)},47914:function(e,t,n){"use strict";var r=n(54609),o=n(31128),i=n(77326),a=n(98309),s=n(61182),l=n(93454),c=n(8204),u=n(68717),d=n(54963),p=n(94668);e.exports=function(e){return new Promise((function(t,n){var f,h=e.data,m=e.headers,v=e.responseType;function g(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}r.isFormData(h)&&delete m["Content-Type"];var y=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(b+":"+x)}var w=s(e.baseURL,e.url);function C(){if(y){var r="getAllResponseHeaders"in y?l(y.getAllResponseHeaders()):null,i={data:v&&"text"!==v&&"json"!==v?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:r,config:e,request:y};o((function(e){t(e),g()}),(function(e){n(e),g()}),i),y=null}}if(y.open(e.method.toUpperCase(),a(w,e.params,e.paramsSerializer),!0),y.timeout=e.timeout,"onloadend"in y?y.onloadend=C:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(C)},y.onabort=function(){y&&(n(u("Request aborted",e,"ECONNABORTED",y)),y=null)},y.onerror=function(){n(u("Network Error",e,null,y)),y=null},y.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||d.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",y)),y=null},r.isStandardBrowserEnv()){var j=(e.withCredentials||c(w))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;j&&(m[e.xsrfHeaderName]=j)}"setRequestHeader"in y&&r.forEach(m,(function(e,t){"undefined"===typeof h&&"content-type"===t.toLowerCase()?delete m[t]:y.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),v&&"json"!==v&&(y.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&y.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(e){y&&(n(!e||e&&e.type?new p("canceled"):e),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),h||(h=null),y.send(h)}))}},19145:function(e,t,n){"use strict";var r=n(54609),o=n(13600),i=n(39926),a=n(88592);var s=function e(t){var n=new i(t),s=o(i.prototype.request,n);return r.extend(s,i.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(54963));s.Axios=i,s.Cancel=n(94668),s.CancelToken=n(55349),s.isCancel=n(38683),s.VERSION=n(62510).version,s.all=function(e){return Promise.all(e)},s.spread=n(23938),s.isAxiosError=n(5010),e.exports=s,e.exports.default=s},94668:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},55349:function(e,t,n){"use strict";var r=n(94668);function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},38683:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},39926:function(e,t,n){"use strict";var r=n(54609),o=n(98309),i=n(33610),a=n(73478),s=n(88592),l=n(55774),c=l.validators;function u(e){this.defaults=e,this.interceptors={request:new i,response:new i}}u.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&l.assertOptions(t,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!r){var u=[a,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(i),o=Promise.resolve(e);u.length;)o=o.then(u.shift(),u.shift());return o}for(var d=e;n.length;){var p=n.shift(),f=n.shift();try{d=p(d)}catch(h){f(h);break}}try{o=a(d)}catch(h){return Promise.reject(h)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},u.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=u},33610:function(e,t,n){"use strict";var r=n(54609);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},61182:function(e,t,n){"use strict";var r=n(99048),o=n(61214);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},68717:function(e,t,n){"use strict";var r=n(94998);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},73478:function(e,t,n){"use strict";var r=n(54609),o=n(93667),i=n(38683),a=n(54963),s=n(94668);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return l(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(l(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},94998:function(e){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},88592:function(e,t,n){"use strict";var r=n(54609);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function l(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||i,o=t(e);r.isUndefined(o)&&t!==l||(n[e]=o)})),n}},31128:function(e,t,n){"use strict";var r=n(68717);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},93667:function(e,t,n){"use strict";var r=n(54609),o=n(54963);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},54963:function(e,t,n){"use strict";var r=n(54609),o=n(10819),i=n(94998),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:function(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(47914)),e}(),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(o){if("SyntaxError"!==o.name)throw o}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||l.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(a){if("SyntaxError"===s.name)throw i(s,this,"E_JSON_PARSE");throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(a)})),e.exports=l},62510:function(e){e.exports={version:"0.24.0"}},13600:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},98309:function(e,t,n){"use strict";var r=n(54609);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},61214:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},77326:function(e,t,n){"use strict";var r=n(54609);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},99048:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},5010:function(e){"use strict";e.exports=function(e){return"object"===typeof e&&!0===e.isAxiosError}},8204:function(e,t,n){"use strict";var r=n(54609);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},10819:function(e,t,n){"use strict";var r=n(54609);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},93454:function(e,t,n){"use strict";var r=n(54609),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},23938:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},55774:function(e,t,n){"use strict";var r=n(62510).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new Error(o(r," has been removed"+(t?" in "+t:"")));return t&&!i[r]&&(i[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={assertOptions:function(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],l=void 0===s||a(s,i,e);if(!0!==l)throw new TypeError("option "+i+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},54609:function(e,t,n){"use strict";var r=n(13600),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return"undefined"===typeof e}function s(e){return null!==e&&"object"===typeof e}function l(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===o.call(e)}function u(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!==typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"===typeof e},isNumber:function(e){return"number"===typeof e},isObject:s,isPlainObject:l,isUndefined:a,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:c,isStream:function(e){return s(e)&&c(e.pipe)},isURLSearchParams:function(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)},forEach:u,merge:function e(){var t={};function n(n,r){l(t[r])&&l(n)?t[r]=e(t[r],n):l(n)?t[r]=e({},n):i(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)u(arguments[r],n);return t},extend:function(e,t,n){return u(t,(function(t,o){e[o]=n&&"function"===typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},17515:function(e,t){"use strict";function n(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function r(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={p:r,P:function(e,t){var o,i=e.match(/(P+)(p+)?/)||[],a=i[1],s=i[2];if(!s)return n(e,t);switch(a){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",n(a,t)).replace("{{time}}",r(s,t))}};t.default=o,e.exports=t.default},83806:function(e,t,n){"use strict";function r(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}n.d(t,{Z:function(){return r}})},95973:function(e,t){"use strict";function n(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function r(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}var o={p:r,P:function(e,t){var o,i=e.match(/(P+)(p+)?/)||[],a=i[1],s=i[2];if(!s)return n(e,t);switch(a){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",n(a,t)).replace("{{time}}",r(s,t))}};t.Z=o},14903:function(e,t,n){"use strict";function r(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}n.d(t,{Z:function(){return r}})},48605:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(22053),o=n(11022),i=n(44528),a=n(96851);function s(e){(0,a.Z)(1,arguments);var t=(0,i.Z)(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=(0,o.Z)(n);return r}var l=6048e5;function c(e){(0,a.Z)(1,arguments);var t=(0,r.Z)(e),n=(0,o.Z)(t).getTime()-s(t).getTime();return Math.round(n/l)+1}},44528:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(22053),o=n(96851),i=n(11022);function a(e){(0,o.Z)(1,arguments);var t=(0,r.Z)(e),n=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(n+1,0,4),a.setUTCHours(0,0,0,0);var s=(0,i.Z)(a),l=new Date(0);l.setUTCFullYear(n,0,4),l.setUTCHours(0,0,0,0);var c=(0,i.Z)(l);return t.getTime()>=s.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1}},42640:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(22053),o=n(39656),i=n(80972),a=n(96851),s=n(47624);function l(e,t){(0,a.Z)(1,arguments);var n=t||{},r=n.locale,l=r&&r.options&&r.options.firstWeekContainsDate,c=null==l?1:(0,s.Z)(l),u=null==n.firstWeekContainsDate?c:(0,s.Z)(n.firstWeekContainsDate),d=(0,i.Z)(e,t),p=new Date(0);p.setUTCFullYear(d,0,u),p.setUTCHours(0,0,0,0);var f=(0,o.Z)(p,t);return f}var c=6048e5;function u(e,t){(0,a.Z)(1,arguments);var n=(0,r.Z)(e),i=(0,o.Z)(n,t).getTime()-l(n,t).getTime();return Math.round(i/c)+1}},80972:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(22053),o=n(96851),i=n(39656),a=n(47624);function s(e,t){(0,o.Z)(1,arguments);var n=(0,r.Z)(e),s=n.getUTCFullYear(),l=t||{},c=l.locale,u=c&&c.options&&c.options.firstWeekContainsDate,d=null==u?1:(0,a.Z)(u),p=null==l.firstWeekContainsDate?d:(0,a.Z)(l.firstWeekContainsDate);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(s+1,0,p),f.setUTCHours(0,0,0,0);var h=(0,i.Z)(f,t),m=new Date(0);m.setUTCFullYear(s,0,p),m.setUTCHours(0,0,0,0);var v=(0,i.Z)(m,t);return n.getTime()>=h.getTime()?s+1:n.getTime()>=v.getTime()?s:s-1}},9504:function(e,t,n){"use strict";n.d(t,{Iu:function(){return i},Do:function(){return a},qp:function(){return s}});var r=["D","DD"],o=["YY","YYYY"];function i(e){return-1!==r.indexOf(e)}function a(e){return-1!==o.indexOf(e)}function s(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}},96851:function(e,t,n){"use strict";function r(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:function(){return r}})},11022:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(22053),o=n(96851);function i(e){(0,o.Z)(1,arguments);var t=1,n=(0,r.Z)(e),i=n.getUTCDay(),a=(i<t?7:0)+i-t;return n.setUTCDate(n.getUTCDate()-a),n.setUTCHours(0,0,0,0),n}},39656:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(22053),o=n(96851),i=n(47624);function a(e,t){(0,o.Z)(1,arguments);var n=t||{},a=n.locale,s=a&&a.options&&a.options.weekStartsOn,l=null==s?0:(0,i.Z)(s),c=null==n.weekStartsOn?l:(0,i.Z)(n.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=(0,r.Z)(e),d=u.getUTCDay(),p=(d<c?7:0)+d-c;return u.setUTCDate(u.getUTCDate()-p),u.setUTCHours(0,0,0,0),u}},47624:function(e,t,n){"use strict";function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,{Z:function(){return r}})},14677:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(47624),o=n(22053),i=n(96851);function a(e,t){(0,i.Z)(2,arguments);var n=(0,o.Z)(e).getTime(),a=(0,r.Z)(t);return new Date(n+a)}},15006:function(e,t,n){"use strict";n.d(t,{Z:function(){return R}});var r=n(3111),o=n(22765),i=n(15350),a=n(22053),s=n(96851),l=864e5;var c=n(48605),u=n(44528),d=n(42640),p=n(80972),f=n(83806),h={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return(0,f.Z)("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):(0,f.Z)(n+1,2)},d:function(e,t){return(0,f.Z)(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return(0,f.Z)(e.getUTCHours()%12||12,t.length)},H:function(e,t){return(0,f.Z)(e.getUTCHours(),t.length)},m:function(e,t){return(0,f.Z)(e.getUTCMinutes(),t.length)},s:function(e,t){return(0,f.Z)(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds(),o=Math.floor(r*Math.pow(10,n-3));return(0,f.Z)(o,t.length)}},m="midnight",v="noon",g="morning",y="afternoon",b="evening",x="night",w={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return h.y(e,t)},Y:function(e,t,n,r){var o=(0,p.Z)(e,r),i=o>0?o:1-o;if("YY"===t){var a=i%100;return(0,f.Z)(a,2)}return"Yo"===t?n.ordinalNumber(i,{unit:"year"}):(0,f.Z)(i,t.length)},R:function(e,t){var n=(0,u.Z)(e);return(0,f.Z)(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return(0,f.Z)(n,t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return(0,f.Z)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return(0,f.Z)(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return h.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return(0,f.Z)(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=(0,d.Z)(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):(0,f.Z)(o,t.length)},I:function(e,t,n){var r=(0,c.Z)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):(0,f.Z)(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):h.d(e,t)},D:function(e,t,n){var r=function(e){(0,s.Z)(1,arguments);var t=(0,a.Z)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/l)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):(0,f.Z)(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return(0,f.Z)(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return(0,f.Z)(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return(0,f.Z)(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?v:0===o?m:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?b:o>=12?y:o>=4?g:x,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return h.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):h.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,f.Z)(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,f.Z)(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):h.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):h.s(e,t)},S:function(e,t){return h.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return j(o);case"XXXX":case"XX":return S(o);default:return S(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return j(o);case"xxxx":case"xx":return S(o);default:return S(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+C(o,":");default:return"GMT"+S(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+C(o,":");default:return"GMT"+S(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e,i=Math.floor(o.getTime()/1e3);return(0,f.Z)(i,t.length)},T:function(e,t,n,r){var o=(r._originalDate||e).getTime();return(0,f.Z)(o,t.length)}};function C(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+(0,f.Z)(i,2)}function j(e,t){return e%60===0?(e>0?"-":"+")+(0,f.Z)(Math.abs(e)/60,2):S(e,t)}function S(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+(0,f.Z)(Math.floor(o/60),2)+n+(0,f.Z)(o%60,2)}var k=w,Z=n(95973),O=n(14903),E=n(9504),D=n(47624),P=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,A=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,M=/^'([^]*?)'?$/,T=/''/g,I=/[a-zA-Z]/;function R(e,t,n){(0,s.Z)(2,arguments);var l=String(t),c=n||{},u=c.locale||o.Z,d=u.options&&u.options.firstWeekContainsDate,p=null==d?1:(0,D.Z)(d),f=null==c.firstWeekContainsDate?p:(0,D.Z)(c.firstWeekContainsDate);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=u.options&&u.options.weekStartsOn,m=null==h?0:(0,D.Z)(h),v=null==c.weekStartsOn?m:(0,D.Z)(c.weekStartsOn);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!u.localize)throw new RangeError("locale must contain localize property");if(!u.formatLong)throw new RangeError("locale must contain formatLong property");var g=(0,a.Z)(e);if(!(0,r.Z)(g))throw new RangeError("Invalid time value");var y=(0,O.Z)(g),b=(0,i.Z)(g,y),x={firstWeekContainsDate:f,weekStartsOn:v,locale:u,_originalDate:g},w=l.match(A).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,Z.Z[t])(e,u.formatLong,x):e})).join("").match(P).map((function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return F(n);var o=k[r];if(o)return!c.useAdditionalWeekYearTokens&&(0,E.Do)(n)&&(0,E.qp)(n,t,e),!c.useAdditionalDayOfYearTokens&&(0,E.Iu)(n)&&(0,E.qp)(n,t,e),o(b,n,u.localize,x);if(r.match(I))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n})).join("");return w}function F(e){return e.match(M)[1].replace(T,"'")}},3111:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(96851);function o(e){return(0,r.Z)(1,arguments),e instanceof Date||"object"===typeof e&&"[object Date]"===Object.prototype.toString.call(e)}var i=n(22053);function a(e){if((0,r.Z)(1,arguments),!o(e)&&"number"!==typeof e)return!1;var t=(0,i.Z)(e);return!isNaN(Number(t))}},22765:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},o=function(e,t,n){var o,i=r[e];return o="string"===typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o};function i(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var a={date:i({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:i({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:i({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},l=function(e,t,n,r){return s[e]};function c(e){return function(t,n){var r,o=n||{};if("formatting"===(o.context?String(o.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,a=o.width?String(o.width):i;r=e.formattingValues[a]||e.formattingValues[i]}else{var s=e.defaultWidth,l=o.width?String(o.width):e.defaultWidth;r=e.values[l]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var u={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:c({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:c({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:c({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:c({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:c({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function d(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?f(l,(function(e){return e.test(s)})):p(l,(function(e){return e.test(s)}));a=e.valueCallback?e.valueCallback(c):c,a=n.valueCallback?n.valueCallback(a):a;var u=t.slice(s.length);return{value:a,rest:u}}}function p(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function f(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}var h,m={ordinalNumber:(h={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(h.matchPattern);if(!n)return null;var r=n[0],o=e.match(h.parsePattern);if(!o)return null;var i=h.valueCallback?h.valueCallback(o[0]):o[0];i=t.valueCallback?t.valueCallback(i):i;var a=e.slice(r.length);return{value:i,rest:a}}),era:d({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:d({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:d({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:d({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:d({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},v={code:"en-US",formatDistance:o,formatLong:a,formatRelative:l,localize:u,match:m,options:{weekStartsOn:0,firstWeekContainsDate:1}}},15350:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(47624),o=n(14677),i=n(96851);function a(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(t);return(0,o.Z)(e,-n)}},22053:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(96851);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://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}},33647:function(e,t){"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,s=60109,l=60110,c=60112,u=60113,d=60120,p=60115,f=60116,h=60121,m=60122,v=60117,g=60129,y=60131;if("function"===typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),o=b("react.fragment"),i=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),l=b("react.context"),c=b("react.forward_ref"),u=b("react.suspense"),d=b("react.suspense_list"),p=b("react.memo"),f=b("react.lazy"),h=b("react.block"),m=b("react.server.block"),v=b("react.fundamental"),g=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case f:case p:case s:return e;default:return t}}case r:return t}}}},50557:function(e,t,n){"use strict";n(33647)},41098:function(e,t,n){"use strict";var r;n.d(t,{Fg:function(){return W},j3:function(){return V},F0:function(){return U},oQ:function(){return Z},TH:function(){return E},s0:function(){return D},bx:function(){return A},UO:function(){return M},WU:function(){return T},V$:function(){return I}});var o=n(22951),i=n(91976),a=n(67591),s=n(99616),l=n(11026),c=n(95136),u=n(30303);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}var p="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},f=u.useState,h=u.useEffect,m=u.useLayoutEffect,v=u.useDebugValue;function g(e){var t=e.getSnapshot,n=e.value;try{var r=t();return!p(n,r)}catch(o){return!0}}var y=!!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement)?function(e,t,n){return t()}:function(e,t,n){var r=t(),o=f({inst:{value:r,getSnapshot:t}}),i=(0,l.Z)(o,2),a=i[0].inst,s=i[1];return m((function(){a.value=r,a.getSnapshot=t,g(a)&&s({inst:a})}),[e,r,t]),h((function(){g(a)&&s({inst:a});return e((function(){g(a)&&s({inst:a})}))}),[e]),v(r),r},b=("useSyncExternalStore"in(r||(r=n.t(u,2)))&&function(e){e.useSyncExternalStore}(r||(r=n.t(u,2))),u.createContext(null));var x=u.createContext(null);var w=u.createContext(null);var C=u.createContext(null);var j=u.createContext(null);var S=u.createContext({outlet:null,matches:[]});var k=u.createContext(null);function Z(e,t){var n=(void 0===t?{}:t).relative;O()||(0,c.kG)(!1);var r=u.useContext(C),o=r.basename,i=r.navigator,a=T(e,{relative:n}),s=a.hash,l=a.pathname,d=a.search,p=l;return"/"!==o&&(p="/"===l?o:(0,c.RQ)([o,l])),i.createHref({pathname:p,search:d,hash:s})}function O(){return null!=u.useContext(j)}function E(){return O()||(0,c.kG)(!1),u.useContext(j).location}function D(){O()||(0,c.kG)(!1);var e=u.useContext(C),t=e.basename,n=e.navigator,r=u.useContext(S).matches,o=E().pathname,i=JSON.stringify((0,c.Zq)(r).map((function(e){return e.pathnameBase}))),a=u.useRef(!1);return u.useEffect((function(){a.current=!0})),u.useCallback((function(e,r){if(void 0===r&&(r={}),a.current)if("number"!==typeof e){var s=(0,c.pC)(e,JSON.parse(i),o,"path"===r.relative);"/"!==t&&(s.pathname="/"===s.pathname?t:(0,c.RQ)([t,s.pathname])),(r.replace?n.replace:n.push)(s,r.state,r)}else n.go(e)}),[t,n,i,o])}var P=u.createContext(null);function A(){return u.useContext(P)}function M(){var e=u.useContext(S).matches,t=e[e.length-1];return t?t.params:{}}function T(e,t){var n=(void 0===t?{}:t).relative,r=u.useContext(S).matches,o=E().pathname,i=JSON.stringify((0,c.Zq)(r).map((function(e){return e.pathnameBase})));return u.useMemo((function(){return(0,c.pC)(e,JSON.parse(i),o,"path"===n)}),[e,i,o,n])}function I(e,t){O()||(0,c.kG)(!1);var n,r=u.useContext(C).navigator,o=u.useContext(x),i=u.useContext(S).matches,a=i[i.length-1],s=a?a.params:{},l=(a&&a.pathname,a?a.pathnameBase:"/"),p=(a&&a.route,E());if(t){var f,h="string"===typeof t?(0,c.cP)(t):t;"/"===l||(null==(f=h.pathname)?void 0:f.startsWith(l))||(0,c.kG)(!1),n=h}else n=p;var m=n.pathname||"/",v="/"===l?m:m.slice(l.length)||"/",g=(0,c.fp)(e,{pathname:v});var y=_(g&&g.map((function(e){return Object.assign({},e,{params:Object.assign({},s,e.params),pathname:(0,c.RQ)([l,r.encodeLocation?r.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:(0,c.RQ)([l,r.encodeLocation?r.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})})),i,o||void 0);return t&&y?u.createElement(j.Provider,{value:{location:d({pathname:"/",search:"",hash:"",state:null,key:"default"},n),navigationType:c.aU.Pop}},y):y}function R(){var e=function(){var e,t=u.useContext(k),n=z(B.UseRouteError),r=u.useContext(S),o=r.matches[r.matches.length-1];if(t)return t;return r||(0,c.kG)(!1),!o.route.id&&(0,c.kG)(!1),null==(e=n.errors)?void 0:e[o.route.id]}(),t=(0,c.WK)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r};return u.createElement(u.Fragment,null,u.createElement("h2",null,"Unhandled Thrown Error!"),u.createElement("h3",{style:{fontStyle:"italic"}},t),n?u.createElement("pre",{style:o},n):null,u.createElement("p",null,"\ud83d\udcbf Hey developer \ud83d\udc4b"),u.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own\xa0",u.createElement("code",{style:i},"errorElement")," props on\xa0",u.createElement("code",{style:i},"<Route>")))}var F,B,L=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e){var r;return(0,o.Z)(this,n),(r=t.call(this,e)).state={location:e.location,error:e.error},r}return(0,i.Z)(n,[{key:"componentDidCatch",value:function(e,t){console.error("React Router caught the following error during render",e,t)}},{key:"render",value:function(){return this.state.error?u.createElement(k.Provider,{value:this.state.error,children:this.props.component}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{error:e}}},{key:"getDerivedStateFromProps",value:function(e,t){return t.location!==e.location?{error:e.error,location:e.location}:{error:e.error||t.error,location:t.location}}}]),n}(u.Component);function N(e){var t=e.routeContext,n=e.match,r=e.children,o=u.useContext(b);return o&&n.route.errorElement&&(o._deepestRenderedBoundaryId=n.route.id),u.createElement(S.Provider,{value:t},r)}function _(e,t,n){if(void 0===t&&(t=[]),null==e){if(null==n||!n.errors)return null;e=n.matches}var r=e,o=null==n?void 0:n.errors;if(null!=o){var i=r.findIndex((function(e){return e.route.id&&(null==o?void 0:o[e.route.id])}));i>=0||(0,c.kG)(!1),r=r.slice(0,Math.min(r.length,i+1))}return r.reduceRight((function(e,i,a){var s=i.route.id?null==o?void 0:o[i.route.id]:null,l=n?i.route.errorElement||u.createElement(R,null):null,c=function(){return u.createElement(N,{match:i,routeContext:{outlet:e,matches:t.concat(r.slice(0,a+1))}},s?l:void 0!==i.route.element?i.route.element:e)};return n&&(i.route.errorElement||0===a)?u.createElement(L,{location:n.location,component:l,error:s,children:c()}):c()}),null)}function z(e){var t=u.useContext(x);return t||(0,c.kG)(!1),t}!function(e){e.UseRevalidator="useRevalidator"}(F||(F={})),function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"}(B||(B={}));var H;function W(e){var t=e.to,n=e.replace,r=e.state,o=e.relative;O()||(0,c.kG)(!1);var i=u.useContext(x),a=D();return u.useEffect((function(){i&&"idle"!==i.navigation.state||a(t,{replace:n,state:r,relative:o})})),null}function V(e){return function(e){var t=u.useContext(S).outlet;return t?u.createElement(P.Provider,{value:e},t):t}(e.context)}function U(e){var t=e.basename,n=void 0===t?"/":t,r=e.children,o=void 0===r?null:r,i=e.location,a=e.navigationType,s=void 0===a?c.aU.Pop:a,l=e.navigator,d=e.static,p=void 0!==d&&d;O()&&(0,c.kG)(!1);var f=n.replace(/^\/*/,"/"),h=u.useMemo((function(){return{basename:f,navigator:l,static:p}}),[f,l,p]);"string"===typeof i&&(i=(0,c.cP)(i));var m=i,v=m.pathname,g=void 0===v?"/":v,y=m.search,b=void 0===y?"":y,x=m.hash,w=void 0===x?"":x,S=m.state,k=void 0===S?null:S,Z=m.key,E=void 0===Z?"default":Z,D=u.useMemo((function(){var e=(0,c.Zn)(g,f);return null==e?null:{pathname:e,search:b,hash:w,state:k,key:E}}),[f,g,b,w,k,E]);return null==D?null:u.createElement(C.Provider,{value:h},u.createElement(j.Provider,{children:o,value:{location:D,navigationType:s}}))}!function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(H||(H={}));var q=new Promise((function(){}));u.Component},73991:function(e){"use strict";var t=function(){};e.exports=t},16459:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADEAAAAkCAYAAAAgh9I0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAQZSURBVHgB7VhdUtpQFP5uyNS/zpQl4A50B7AC3YHwpNgH5a1VZwpTpH2DPnTUJ2AFxRUUV1C6ArOD0hkdqSO5PecSQhISyA+MTqffTMTcSw73O/8nAgtC81imB6vY0lLYkcAWJDIQdI0hYdC9IYAeTNzsfxIdLAgCCXHxTmY0DXumhmMhkY7wqEFXVw5RKX4WBhIgNgnW/OM6jqRAGcnRWLlHpdAQfcRALBJfT+RWSuAb/ZuZ+UWptA2pIR3CSgZZJRfHKpFJXJ3KPVOgEXCoLlnmhj9X79DzavbiTGalpLgBjhCgADpQfv9ctBEBkUgwAQralo+QHhErFauii5BgQqSIJnzIRCUSmgQHMHT8mLKAxJeDmjhGTBCZMsn8APeh+k8Subc10QsjQ0NIiBS+ewmQrxeSEGCQ9crkYgWXXCDNMcfJI4yMUCSuTiRrKuNcI22Vih9FCwtAsSZaXiL8e4N1hFLQXHdiNyIr3LoWE7pQEC7PZINkH2FyuP6re2zOS70zLaEKWWoi1IIhTTSwBDzoKFN2sw/MbvVnA3UVjzPgawl6KEvaZxfKevfY7Gx+LAkXJxTowh3oFri6F/zqyJQl2P85iOFDQMFEF0vE4BUaTms4wIq9teLTBRcJqgP1mW0ExULSPmceSmXyf4nroH0+3+WpbDrXbHdihr4EJDrU3LXX7tCN29vEAafXh9fggrhLh9zz7gsTJeqEVWwqEr4ZiANYkA9GqMJeWHKbQb4cUQ67eMa5PpTY5oKo3MkKYidGzVgCAqzJcWxRhgtduPzACuDzYNS+26CCWOdPrV5WwvPOTcpAiXv8xw3YBZKHJE6VSAA+D/dnnuUsK0dbeZrKQkbSFKriC1PVNu+XWaLgsCo63sz1sEaWVmOkA2SFn0gAyvP5oAzH69wJIwmG7syVImtr3qaOCs0vxISqrNpct2nwUIUFgVwsrQUUlsgYZ5B5E9y4Q53XSgSBksQb171EXyPNu3p2yrm7iAGh+w84AVCpFzHAk6Hz3kyhpw109LxN19V7GblDpecqJCdnX0Dbs9927lOOL0X9DY43eBTFY/Co2J3KlrMqcgtsDrGdqEB5GjmVtmuijJgImCxbB+eiMOqdhtMtMPu3xfzZwV2132jM76z4U+c/rHFKfRU6vDOzZEiTzUt+uwFci6ErdoxlNIJWsGfsQ6bUm5EdcEct3d8lpdsFWR8v0tuFBg3tae/QzgI0FpJyrXXpymHBsII9a98HfE8RqE5c09WKq6FdjEz0EsEur2b7qju2poYiRWSITW92eU5Y8drCE7bZY7z7ut9Dlq/lyUfLUie/NMnEYlJkSBuJWpMgcOxpzk5V4jcps7d6j86sWUafJdQiw9fCXsPPwqGPlsMg9Muzl4z/JF4K/gkSfwF6HsWUh9nM8AAAAABJRU5ErkJggg=="},5354:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKEAAACgCAYAAABkDQwTAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABMNSURBVHgB7Z0HkBRFG4b7jAgoGEDEhFlBRYyYRTFgqaUiCiWYRUtKDAgKRsyYQFTEUCZELRNizqAWqGBEMQtizmBCMdB/P/1fb83Nzu7O7N1xy/E+VVN3u7PT09PzTfeXuscYIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhGhgqqIfXnrppRH//fdfi8UWW8ykZf78+WbppZc2q666qt/c8WbxxRc3WcqIl/fNN9+YTz75pEYZfL/EEkuYLbbYwjRp0sSUA2XMnDnTfPnll3n1Y9/KK69sNtxwQ1MOf/31l3nllVf8tSedd8cddyyrTWjPqqoq88EHH5hbbrnFvPbaa/4afv/9d7+/WbNmZo011jCbbbaZOeSQQ8z2229vrLWJ9SjFP//8Y6ZOner/xtt+9dVXN2uvvXbJMvgt558xY4b5+uuv/Xfxsti/wQYbvN22bdsReQU4YZrpLtiWs7kT2VVWWcX27NnTjhs3zv7000/WndBvWXCNbkeOHGldI+ado2XLlvbDDz+05UJdHn30UeuE2dc3Xv6WW25pf/vtt8x15vevvvpqYp05zw477OCvKwv8ft68efauu+6yXbp0se7e5MpLqjvfcV3rrbeeHT58uHUPWub2nz17tl1//fVrlB/Od+KJJ6Yq699//7Uvv/yyXWuttfLqyWfaaP/997euo5mQKMXlCqE7NLfxeckll7Tu6bTjx4/3DZn1pl5zzTWJ52nRokWthBB+/vln63oN3xihvtGbOGHChEwCE250//79CwrHfffdl6kNaLOxY8da1/P4OsXbuNgWzrnMMsvYK6+80n7//fepz/3LL794IUxq+zRCyP53333XuhGlRtuGjWs56KCD7Jw5cxDW4kKY9oKLNQQbT+8555xjXfdusxCEMF5uXQghDXXppZf6GxUvn+969erlhTDtjeN3NGrr1q3zyuQa3LCTWhD4DSNI9+7dvRBFhbqce8BNpxd9//33Uz1YQQiTyiolhOx7++237UYbbVSwY6IHdEN0KGdCvQph9OQI4mOPPea76bTUpxDCO++8429yUmOhUiBUaaFBb7vtttxQHBfqE044IZUAUI4bomzXrl19WUGgy70fQXgpa9111/WCWOpBKFcI+R7hQuCTHkTqgKrz2WefReVgQpC7kpoySnGWLYo7kfn777/NxRdf7BXsSsE9rcY9lYn1db2WefbZZ70CnQaOufnmm3MKd4CymzZtao455piSBgnH/fHHH2avvfYyEydO9GWF88fLpKw07R+O46/rhXxdomXVFZTpem/Tu3fvXN2j9WXr3LmzcR2RN26SDKYlSp2EQnr06GE23XTTxIug8dxTZpwu5f9H2OK/c920efPNN80222xjKgGuyfVQxulqvq7R+tKIN954oxfSNGDJv/7663nfIyy77bab6dChQ9HjOTfW6JAhQ4zTp/Ie1iBY/F1ttdV8mZtvvrlZYYUVfF2djotXw7z44ovmxx9/zDuWG8/18Df+0NWWIIBHHXWUeeGFF/LOTRs4o8zcfffdplWrVunOnzQc8/mOO+7IKeBJG13stGnT7MYbb5ynSIfu2DWETUt9D8dAnRmmkq53+eWXt9OnT09VxoUXXpg4BNEOWLbFhmLajv1PPvlkzvqNXzPlOIHzwzpDXrS80P589/HHH9tTTz3VLrvssv4Y2hw91QlAakMry3DM/xh5zi2Up4oEHRB5+OKLLwqdf0JmISwFJ3ruuecSdSO+u/zyy21aFoQQUt9hw4bllH8T0+UGDRpU8ubhzsHSTmoz5zP1BkkxuJG//vqrdT7EREFmW3HFFb1OHYylQnoZDwQGoPMjWjdqeSG49dZbMxlZaYUwdDyHHnpozoUTrTOfcdE4f2YxWyC9TpgWut6tt946cchm2FhppZVMpdGnTx/v7I0PE3x++umn/TBZTDd0Bo4fQm1Mb2M77LDDjBMgU4rnn3/eTJ48Oa/dKMMZT2b06NFmzz33rKELJoGuhTO/U6dOxvWsZsSIEb4O4bi6gnrimB84cKC59957/ee4Huh8leaee+7xTvQ0TvM6EcJQESIRSTeUxnFPWL0oxuXCzWnTpo054IAD8vZxLW5489GJpBtoq/W4+++/P09I+b3rsc2RRx5pSkE5oYykttlvv/18/bJEP7guZ+F7nbfcqFUxqKsb1cx1111nXC+Xq3d4QIg6YYTQIaU9fyrrOJw8aQsCOHfuXOO67JyiH7XYsI5QputaMa4LnPM00UrmetxwVvA4NxSbhx56KHHfLrvs4kNcxW4C5yD0hqBHCQp98+bNzXnnnVdW+K0+oL4YTVdccYVxenANAzTcZzcEews5TXgvSknrmBO99dZbxim8efuCdYZ1iHX20Ucf5XXNNCKW31JLLWUqkd13391bsAyr8V7twQcf9MNa0pDtwn9m1qxZedcLCHYa4SEG/Pnnnyfu23nnnf1NrRS4tptuuskMHTrUX3PUimffmmuuaZy/1Dhjr3adTSHDpFBMNB7HjB7D9xgSl1xyiXW+QpuFBWGYAAo2yjwRlCQLj++INceVa45zeloNYyJcc/v27a1zlaQKcT3wwAOJBgnf0W4LmiTDJNQHS3e55ZZLvC/sP+OMM7LGx9MbJra6G7bVw2zY4kOyjek06FtkfQwYMMDrhJVIGPqOPvpo07Zt2xrXEK4R3ScK3znPv3FB+rzyKAunrXPxpOoNvvrqq7zeN7QlPUolENrhvffe8+qDLaDXjxw50htzaZ38UepeczX/r7hzPRjn2vGWWiHFuxJAcHD8orcmWZLoOAhdtP4YE/Ebwv9EJfbdd99UCjm///PPPwsKK5ZxJRGN4sThWubNm+ctZtSLrNGxVIZJMTM/6tGP/oab9PDDD/ue4cwzz/QNXqmCCH379vV5kXFoXDds5upOVCh8thHFnDYiIpQ2H5Fjks4XqNT2Cvc5+qCF3tKpSub000/3noMsda+T2DEVCltUGKkIVuRVV11lnDc/MaRXCVBvkk432WSTxP24HELdCUHGw3ShDfr165dJKSeUFSe0X5K7q6EJhiY9Pg9QPFaNy2bcuHE+TEd7pR2aU+mECNGnn37qs2XjGxnQWJZPPPGEGTx4sI9RBoGMVs6FsPzQVqlgvZOZHCX0dpMmTcrFdQupFzhm995779S+Mfv/7GJ/U6sSEg9oK5I/KoXwoKHvomade+65eSNkuNennXZa+fe6UCpXmrBdiGF+9913PmQTkkZNxII68MADU1lQC8o6jtffPWjWRXYSw3iuYX2uX7t27RKtYsJaWZNhv/32W+tcG4nnIwZMPHhBUixsR52Ibzvh8t4CPB5J4cbwezeq+PYq0ibpreO0Q0J4UhhiDj/88Lz97qQ+RMWTUokEXxfZM/HejH1jx471YSoXkM/zDTI08fRnPR9thUEUh/LRPc8666yKaS+iQOj4O+20Uy5EGEJzSTJCZtWxxx5bI6pSiDq3jkPKUZLrAYt5zpw5plxsPeuTCJ8Lyue5lLgW18Obyy67LLEODMNcc1Ydjt/vs88+BUODjzzySGa3RxDg4cOHm9mzZ5flMkmqJ+HDrl271jBEccNdcMEFXpWJD8uoLtSfB7eULVCnQmirrSRmbCVdCFSyu4Y6brfddt5Hl2T9ESGxsWQFOP7444smFxSDRFYC/km6JIkCWO3k6hXyxwaCCwWD5uCDDzaDBg3yx/LQ17a9OZ4wYvz6qHOvXr18Iki8/kEQ+/fv73vFYnVPLYTFLiScgEYjUXTMmDGJN4TwF916OY1SW0uxWCNEoRfEeZ0kVEnZ00xzRXDLqR/HtGzZ0gwbNqyGdyHUl/OR6e10ad8L08PFryN8dvqcz/DGTfTUU095AcBSRTViX10IYhLUGUc1bRA3VKg/5yabp9gImCqzGl0ASzjaQNH/Gfc5GdnTBOTxrdmE1CQyK9Cfys3u4DxEYHgqs+LCTsaFlkrGdKknPQmZIs5wKPpbrqOQfzEt1Ac9q3v37t7/GHf0hrY9++yzvYcBIdtqq628Lob1TNSFaAaZ7cxNjk4LoCy8FmT0kIzhwm51nlkTdGIepJ49e/r6RK+BekybNs2ccsopPsO7ZFsVih2n2UzEijImf+JNyDROk2BZyDpOW5ekzQ17qZM7iSeffPLJRScZVVVnYLsbn3lKaxyOdzfPutBh0Rl2SVNKQ5snHRP2OZ3Nx8dLWe+1nW3HFNOkKapV1ZnWzpCJzrycEOQulZ8wuhX6TfiblF8XdC2U29oMq/G6pN2yQm/BEMjQnFTf8B2rHaDP1VZV4HhyAJ955hmfBlWovKheaGNx/Pi1Rg2Ibt26+Z6onLbIcg0465mPlKQfUkf2v/HGG3kykrlvTnuTozoVQ8gNN9xQselccag3y2p07NixoECwFAkTfOrynO3bt/eTlpgcFHdiZyknbNSRHE90dB6o+s5N5P6iHzpfal7dGaLRC0866SRvtUflJlEIa3vxIbyD0u2GNTN+/HgfHaiPTN/6gPqjd+Lnin4XfbCwoHFZ1PU1kZmMW4YczNatW+d646oisfuqhDAquYjomG4Y9tdSbj2rMlj9/I5kkOuvv97rn1GhZx894JQpU3xkraD/00nyzHJ1LnQPxn0m+KB/jRo1ykcEsky0gbAWTSH9p9y6kf+XNaIxd+5cH6VJWlNlxIgRmdeXyXJuyibiMHToUNuhQ4fchPikuoQNfcypCPb222/3EY35GdeiYdJ/fC2acA6WOUlbFnUfPXp0Yh4qG5EX54jP6YQ1RNzFRWe6A9uZjPCU4X4hAsBTRw8YhpOsTyDdNr4urPG6hHqxolfWFcfcDfVWso3pW7hx6KnqExuZOkF2O0M12dgMa1jGYRoAvScjDdEXdErSwMrp+eidSM7gfHHQWdNmCNnq6RH4i20Bdc11eBOd2tGF/6tiB890f9oZkcMW0XkX9PmrIm4xG0kji++vBGzEjVeAiW6/F8LKTHmuIBr6xhayzitJ4JLIUr+Fw1IQjRoJoWhwJISiwZEQigZHQigaHAmhaHAkhKLBkRCKBkdCKBocCaFocCSEosFp9EKYlIBgU2SKl5oVWOrYOIVmyyXVxZaZEb6w0qgTGOZXv1DxzjvvrPE9CZdMN2D1WN7xEYWbz2QdMoTXWWcdn9ialK5OOtWoUaNqJGfyO5aYI9k1LIcSIHWfFzAeccQRuQnjtnqSGJOUWBiA2XQss9GlSxdfv9pMoFpoIZXLNjKmTp3qEymbNm3qX6nQqlUr26RJE5+Ay+sfmHgTTdZkiYsBAwb4BFHe+sQEpHjyKr/nBYbNmzf3k4gok7JZaZ+ETd7tNnny5Nxx/H7IkCE+OZTvw/nYf9FFF/n6tGnTxnbq1MkfS90GDhzo61LbSVQVzIRFTgj79evnX9tFtveUKVOs62m8kE2aNKmGkP3www9+PRoEgv1BGOLwfg6EsFu3br5M1uChfLKaEcbOnTvnVqhFkAYPHpwTwgCz28ia3nbbbf07Ssjk5i+rtPLqs0YsgJB+tl1jgUk/ZCCTDc0wzMoBZCezOgDYal2OFadYzo7J5qxnzTrMZHrbAjoaQyYZ5ZTLshiUy3lYs4b518VgHT/qwPIorO0X3ijAuja8+qzScwbrikVGCG21/sVNZzVRVt5nCgI3G7jh6ILXXnutf3UX6xUy2YiZYaT4F1pPhVUnSP9nrRoEj4XW0UNJtS/1cnAmBTFjj2X3WOGVGX7HHXecT+OvpHcBLlBsIx6OWWrNGQv+PcwMl82aNfNDZFRvu/rqq72ON2bMGDtr1iw7Y8YM63pNP3krvhg6wzFloL8xLIeNF4P36NEj+krVgsMxMNSz3B264R577OHrRpl9+/a1TsClEzYGghCy+nzv3r1tnz59vJ7HK9CiOhs6HXogAoChgDAGA4ZZY6wuENUdg2HSsWNH//ou3t2HgeIsai9U0ZluxYSQV5NhHFE2G2sk8lpWDCnWJ1wUhHCRmWPiehm/voytnoCD/mUjK0ewjNn06dP9albRNQPZx5rbrpf0a9SwAFJUV2N2Gwv+oE/i+sGlwyqmrP1SbDimXIZ6JoOzOACvpGXyODohi0Yx33hhWSygtiwSQhidGBSfkA3odbwqghUXWJgyrMdsq53GLAnHQkyPP/64FxaICjAgNLxEB18g/kNe0MMk7+ArjBsZtno9b14PyxIdvL0J44aXE/H6Vtb4xue4KBAXwvFua2EaCfRO3FgMjWKv+WL5NW74rrvuWmPBxyCIrGXNG5xYNJ3PlIPQhfcZRwXt/PPP9+9AZoUyDA7e6QfM2cUJjTM6gEOb1SlYTo9lUjBsmN+L8GKg1PXLESuMz4wQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBDV/A+P3mHOutddWgAAAABJRU5ErkJggg=="},77786:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKEAAACgCAYAAABkDQwTAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA3OSURBVHgB7Z1dcttGEsd7KKnKtXIq3Iq1tU8WfYKVT7D0277ZPkHkE9g+gakTRD6BlRNEOYHpE0Q5gSk/pTZKLVIbp1xrmrPdPaBIYGaAAQjSkvz/VVEfJDAYAI2enu6eJhEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAfGZM6ob9O4Mh/zogO/sHbRrTO6cendFfaJxNJhmBG0WlEPYHgz79MXvKmz2Tf+kqYOwJbfWOsl8mEwI3gq3YB/29wVP6nz3lu/4v/vcWXRnMAc3o2a2/fE0f/vz9Da0ReQhv9fu3PmTZBwJrI6gJ+3t3X5E1h3TVMTxE75oHXQ3RanKY2UNueEiWTY/yscieke19n11MxtSS/t8HA/o4exH88Kve86bn0v+G71VHbdW2ueOPQCwrx6wUvqYV2C6/cW0EUBBBeW9fs8ZaSRCdvWtZMCwLn4kfS7Qw2cP+3v6E/z7Kfp2cUFOm9IhM5Pr+MTvnnyNqQpdt0eW1OAx+OKXv+eek1IGH/IAOaAV6pQ68uDYCOEcFcfYdtaR/5y7va1/zn8PknSxfdGtf8QPb/LjGPo1/Zr6lzjBP1aZvjH1BG+ZSCHWYIDui6wg/OPnsvRGq9d2kq+1xn7FW/Cn1ZrOdfagCHG2PBm3OI3Y41oaNzi0/9pA2zEITfppt/AnoFGNfNdm8M62vmpjSrp21CZquQ03UVLOaWYeauMFh5Ydqwal9S9cenqQkTBpyu+d1uAmegFjzPds/p1nmjHDVdP9lDdGbPeLPlm8U26HmJd2m4zqblLUg+1jtT5TCtrmX6oLq39m3lRsY8yTFdk2TAf/68kjw1tPuxr7kCdwpJeImJmIs3wQsiYCMa7cTrWmD77/Mfn3nDWG5gMlFPWUBPnPaakn4LigB9beWjsdGvlX/a3E4n84OqcWkIojTvie12+lImBy7qKF31sSDkA/H9iHdBHo8u61BtWDILjPmJCSAZfjiHmcX53/l36PUGblqmeDQb8YqzP77LScVQYZ1dma8f5vBCeGKU+wrgxj2dTfPRrT+Fh3RuvgUMfblmFM6DnzCkwo6pM6osTM/83zADcf2hgihkOnQFtdQxgZi3+ZHzwmrIcuSw7qK23QW14whIVgck+26MZVnpUaH0WPqBtWGoSEytwUPqUus/Y5txXrB/sg2Jl+0bfrSEK3v24Nn3jsqgJHJS4jM3KOA8Du3jB142/eW7TRzpI7yZXjWHROcduiDMPbentI6ZsT93NZNokfATRDWRcgtw8fL/j25nD2qoAX70NJdY4Pn49mG/T5rexPQgkZs1c0BIVRm6cNuA1wAIGQPGt/+FLeQzzBvoxlGJzsB06Ak1DtsH4dNsVBf1saXNxw7LTEovmd8O9HoTZxE2vDdKiFibo+t4LB4zHfjKXXhrpG+z1io/RChCvXC/g1q2rH2b0rtUdeTmdRu1+d+ZhsTQnuUXbwb5fZRo8hG95g3nv0VMNzZwSt24r1QC3weJ3XRj6jBL85wni1zG6Hd2FFe1pzqrjlunKCxw0I9JT9O7WbCT6K2qjEdaEHD9zshuSP3r25kOBYB1N/iuV+n/ZXGOPiu4Rldd765uFtGwnzyIAZfwX1auWtybedHLSTOrucZ0IJiq7bJDFqRFYTQnKYK1NwgVkM4xR2k7aa334Rc2429D+ZpYTU2WB7y+yfV0mU2SttgQsgRzvB5hu+DWZ+vtIKWw7F5LpED+Yt9XNVpUCJIuzzMsOpln1DG28vTWRUmzGiL/Uf8JFfGeFci4BIRRBA/sSDu3R1L8ioPZ5PLz3b4HHUIlpzD6tb73wweBYe69gzbuGtk+6AP0gb8n11qQWsfcn8HqZu3E8JeQUNV2SpOoJbtmal5Qjv2IKoR2ai+NJy3+TirGMixTunNGTznq+XnA2q/JITF9tx24f04bOfNkx3c/xU5g62J+PlqiTxwwe06g5WMTc5HaDcci0d8PmyZqqiC8dLBRRvy+4/jbXPobW9woEP3dH2TGKfJO7jw+RKD+b9Rt4xks1ycm5RXpF/DNjZr1PwonsNnsQXntBRC1hbOdUCi6YK2m2Sk5EN2GTfzNM/DbWvq0RlrIRHuIa0RSUJYSRA16+b8fkHTx+KwWw202DQSrmuYpLqg5hyt3ahfsMwqExM1zp2mY81WEET2uO/2RlV7q4DaguGcqQD+lj+RdjPpZSqI2xxyM01uhGa/PChn3eTZKH6/JUOnwRJVN1qEhLZddk08IpOz3Tuhz8gqfsIDuSCiBURz8d/3NfFTbDo56YQcOxa4Z2ybnWo8d5dOCxolmGiwHnIBOWQhGqlrxZLMRgfch8UNt0b8hm+Wk13DBGakWwn5fF4zPFKEHsT3aksvxbqDWs6PhfMDTkEzgYfi8gPygRXCdqDd7YAgO0WykmvLZVbXZefGd3+QdRZgX6D24Lb9D7Vhau5VCwm4aqzorJ4NaR1sN0ihAteeFYXQJDhtW2BvyHIDkMSqYbuDTkNdczZoD4LPz6oJDBzXtG/7e/vNgut1bCDTO2l9r2Sj7LLh3racxiI7W17uYZXqYvxapaCTtvu+lIa1QtUybe9PnrTMlswgmU2zWynWT5eg0cF94mu84sREEefzGXWGzkjb24QJE5PGS1zVvWHHqdXAtP1Ps6f54qHYSDGWjJUmTuJFuZKqMGl61bK8ny9yt1K8n9vsOvNq0NRnEiUy7kAIu58hc39kZtxumF+HEC4QX+Yzdi1FfYocN/6WBUGczWn9F6HZrS9e5MqVNKkWYUfZxbuokzpfB/06uZ+l9roUwquaWd29ndkNkg5/HLODtaqDCFWT/ou2dEWdovu0K1diRiy4weiNc6o3EcB5e52VKCmwuhD2uhWYtUx00sjySMjyK2RmBPP7+n8bPKqo5ZPpkG6imdoHbFsH4+SV5UoWbUa0qAqOL7wutBi4zkaqT5y4cw81Z1sXnqqiC5uQOs37S02dj9F2OOaLz8PsE2/bUPmOwLbBchjuZh4tmyu5HTYqlRNx9Mzj5QVQUbPBiKDQyzz7220btxczus3XJB/ug4EAnYS49LliP0N5h878UmWRRe7TTmk/af/jIsmjTDfp/Tdp3XIJDUne2ZebHZ0sBVPlORad/Xp+6LU3DxHuDcbeUgerQnQphCyAAc1jj7jdkdduni3DwjgqJdTOq3O5fW7x/+X0uJkZ83lOyv3ktp54haaME7xcqIMamB9I770qxfDlLXTqgh7HkJexpfxBTY16d1jVhMyKXeLnksAsrTXOteCjYrtSqsQXwEK7FxMegvcliDBc2lH65/bTuHBpJyOFP+/KiRW0ay7Y92jNQAjnGNvnoWpQeG9HFnFruTTPfzb/V4c3siUtmZgeFl5hJ22N6SP/Li/USy5V4iWy9sWsEAHLs9vH5GVbu0ReV4WW3VGm9+Oq/sxUsO54wSO2ld4WXmoLlmelbLct35hQnDsxdzBP2SpOfiy5aJHxa2YnC8SUQhOqpQdJcznDkxmtQssCObM/iD0qyzfU3Fgj84JIEwKJ2Fd1i6EaaQ9jzpO2s5QcCVHhrrinLmnY3E+870MtjSzC2GYhfgJOCC2EMBm3GOqHy/9NoP5MEzeTtfuRT4rtmoYeA69wZbE9eVDYvrwnyw6iLpkiQ10EtgYXWj4cmzf0xcPXQG7I8kuWIIQyrmUCoX5B5mPgAX6flgXk7Elv2P05P8bEO2ZqbeyQUzmiaGSCxBOQBy67XM5bzjcShhXBbr3EIM58YjLmV4frZK8hlt7GqgbwTZ1QeR3xJ82+Pg0b+jpbPqE6QmU/TG5PfpKYbWn79+pkfk61lFw7biGTCpYrElqqTd3jWfEv+vlJ/or7M42R8x5Rh6gmTFqR9WUz9t4xy35B82PhM9FaNV8vkTuXR8U2F8ISXGci3xYQioAU2xVBLc/Wx0vHGOh3nyy/yC+Y7oZrdTOVteK6hmPtXeL0/8siL5kRWEdsfr/8c8rao2zkq8DozPKg3J6L6YYW9ZfvQeieSAHKu97kSITaFSLwQodZwbXzUZ3hmd9XX7j1GL4tmjxBSqXgiep/Mzhez8LtDdI+iyYLTTLii/SLVfFrqkU4V4wr0DkItxcu2h6IgCztowWUssp2l6plXLYZu88uZe2UbO93HrL3+RzFtu2n9LPQfjmEqRr+POr0Nl4DdWU9rjrrTeVyBGKt2q5qkxZB/prv6GPNdxKMNdfiqqF57cmEaId9oE3DrZHz9tpvKIS+s3qq1RFO6brS7364KOCKNT0O3Yh8LfXjRn5X+c6Pmi+JdLZZI3MpcxrQF0D9UOzNWNGC6jYfryOC4gmhdDC7OH98LW1EU1W8fOW2J3pNds395fhqmey3yam7wezqqLzJiwX0KX1OXKSfqVCzIzpW/eJyw7mfUM6pWhgzzdrZrj7vVTBVH1amHV09Mr1QKWntms6UuIRAKnP1NQmk3ToT57ObrzHJ1F/31WrfYB9Yu+JsztvtH8JSP2mVvnp+SimIUCHAlUJ42ejia7XYx9S7eivhzOxn2uod49vgAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABoxf8BzL+OWGejUXgAAAAASUVORK5CYII="},8387:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQ8AAACgCAYAAAASEumxAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAACU5SURBVHgB7Z0LdF1Vmcf3TZpnm6avlAoFYy206Su0BWrVDoUR5GkBrQMIWnUAHR/joCP4GKnOuBxEYSk+EFAcdEBop4IVq8gjKFgQStukb0uppVDaJrQl7zTJnd8/99xyc3PuvefcJE1avt9aZ51z79lnn33249vffn3bOcMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMM4soiEcbx48eKc9evXB3pm7969kaqqqg4uoy48kYULF+YEdTx16tQoYet04YlMnDgxv6SkZPjBgwfHRKPRkoR70by8vP25ubn7uN/At7S6zN8SmT9/fm5ZWVngb16yZElHOv/4rkjQOE/wL1T8ZUsW8R76e8LAtyssXXHfm7xK3OW6EGRIw7QEeVcv8ncigfJmYhxm9NCFYPr06Qs7OzvnBnFLQczNz8+/aw24kPCe6bznYy7AR/CeHFi5bt26+1wAcB+ZPHnyMMJWzjvmRCKRefw3g1tDOYoSnXI0cb+R8w6OJ3H3DEJm07HHHrufzNae7PeMGTPG4uaj+HtMgKA4wr0H4XQbUbTf7z7hPGnIkCEfwc+igP5tGz169J179uyZQLg/wl95rn/5AwX0D0EdT5s27RTi5lLC1i+Cje9/sKam5gldU+Cu5TQ+4KNK6+/xLUpnN2XKlM9zOp5wZiywctPS0nLj1q1b97qQnHzyySPIT9dzWeBS53WV0RaObxK+BpcFEqRLly5dSD56Nz8PpnPL99xDWXrOBWCICwEvP5vTPwdxSyAcGeVPXIYWHqDC/LkgDvUewqVCEkh4kKnOQaO4nGfey88yzmnde/dncVzEu5oQOmvq6up+g8bys+QMw/0RHR0dEnonuQAQP6vb29vv5dJXeCBYxvP+T3M53AUA/1bU19f/gkI0gec+yV8lrh/hew9wCiw8YDJh+1fCFirfBQxLB/6+wuUT3l9Xcpwc8PHXiOslLlZJyK8rQjzbMXTo0Ns5hxYera2tpbz3s0EqB9ys5LTcZaHJIziO43kJqUzfhLPoWs6BhEfYGiCUekZAslLnKAShnlPGyeRm1qxZExEcd+D2PsJ1KUeZCwnPFHO8k/AtLigomO4TDiVsYPVS7ilM6TJDNEjtl+BfJ5pK/JlsmothCBU2wbd2ZJsnMgYmxiG/CVu7C0c0y2c7vHQPjdIeDgZ0ezn5d6jLjvmE8W2ZHCk9g5SlQ2Fy4QirqeS7LOADwr6nIN19mhOT2tra7uRSWoFq417XfGorJf+HUNF/geNUTTu0oJw093UvcPtb7tFk+qU/oS8gfhTv/d2U6iJk3ouQnEOyeVZalJrCLgvQYsnqkUDv4h1zcXu8ywKePYejNIC7HN4ROH1CFSIi+FEygC5P4DjNL0C8/GVOD3LewfGsywIKwEYK1R34fyxHJX8d55L6Z/B7H6c/cl6Nm+dT+YXgmENT4i4uK9K8cjvHK17/RlctoqYQv0dyeSLXPSS+X21TWFhY29TUdA+XkznKee405yNMeFZqYRXHWsJ2wKUAlfZF4lvaUjk/K/Hv7T5+tckv7v2Z9Kmhc7eVZlUqLzsTalWFXxk/N4U71YgRz11uXzQ1+Nb1hPE2DjXHpnNkrA2zhfD/irir5l1v5z0z+aswyYm+cTP3fqM8S57bmnBvKf9JfX8b90/xe5ZjK34/wPlV3hO6ySJ45+u856dclnOM9sKZqiI8Abcf4PyfLgT0q5TznoszNM+34ffDHFtcwCaLCCUxUZvyydB51OKFnH/JX+ckOWknAF8moOp8anPZkzt79uwC2u/FCJHF/Fb7PbkQLqXN+HH6Heq93z1ip6Ki4q0ksATHGT7vOEhYazjfo4gjgms5t8ZvDpH+H40OI2Ms4Odi173foYXvv6C6uvrRJD/Vo12wc+fOfJo1KhhPu6SMxzte4riYWqd61apVmVTWHPzLJx4KiPOPEZabkx3g19ME9bKLLrpoR7xHnv7m83B7b1KYX+e4ifjYnFBTns21+gaSa78tuPuq3ElI4tcIztfye3KCGzW5bqCDMkxmzp07d25+c3NzAYLkE/j7LR83f+Fd93NOl39GcaivYGzCfxKKXyTf3aIf9EkVkEb55J9JuPu1S+o85R27ef81Y8eOfSi587u8vLyQfgwJSwnrFRxvSXp/kzrGKQ//15uRFsghnxcSF/nkv5PxU/0uY9K4f44K6j3kmwNBPCfvDKEiUTzfmsHpZxobG+/cvn17iwtBqNrEEwhtDC+1bNy4scNHmrUS0Bc3bNgQqB2Xhg4iqIkMkHKol8TffsUVVzRQYHzvk7DDcPNFLv/BJ5wt3Psh55voWd7tUrNn5syZ91Fw/8UF67SMkhGVAC2VlZXNZAg/N3sp7DsCCA7RGfePkYpUmfRVeuxrAwzlbSKT/pg0jKslEYTMSOLmQz5udyIUliT+wQiERqYmu97RsXLlymbOzXxPqn6FdYxe3Eal0JrKE6Utp1M5FqRy4z3fSrg1YuanXe1DgG/wGzWLFyK01hbirMeznoa6pZeCQ3Qqn3Nu4puUHzI1UU8ibt7hAnZS7969uwwB/0+Z3JEHtoYVHKLPh8wIbKgx8mzx+gNSQgKrVv2Yj1ou7ejGMWPGfDWD4Ig5bm9vxn3oiE2FwkNh77N492tve3GT3MzrSOqc1f08F0D7TNGmj7iQmmsQ1N81fvz4tP6iUeg7DiY91y/h8UPxQQXQp++i0lUXQKbKXELzEk94ZoQoOZljRiZ35ItAUwGS6fMhs8EAqmAxEvrDrmdbVRH6lPpAvBo9I7iN+PSNDmrI3Hv4zhWeWl/KtUaWGrxClxXEQSP+1XKpPi0V3JfJ8H9zAwBNkSjp8gLf9RA/2wjXyxq10Hwfd4SCMMonPjMJJGXEM9GYRnPOOOeD+Hg/8RJEYw40LymZo1J40MyoJGPN9uskIoFupMn1dxcC1TQkRDNnNQ3aOTeSeftMG+lraJr8lZPUVbWpcxsaGgqHDRuWg4r8ussC9Xvgz5eKiooW79u3r7GsrKzTT90/XEjVp+n8lT5oNgwWIuTL4WpeZejYFBPRXN/D+afpHGmCoUZZXMD3uyw4KoWH5mJw+EnTv5NAf3YhKC0tbX799df/yxMc+zlrQlcbnbUb3eBHbWqFu7d9UC7eNneDhKNIcAi1ukb6NMU1ItSi+UVJ/y+YM2fOkmeeeSZlZYB2Nh+BlNz5up1jnEvSyPH/LZqFGnYK/FEpPOAs5zOfgIR4hH6OUFN8vQ6+XznD6CfQoiIMMqhAJwuPnRRsdY5elfgn/53KiJWmMPhWhAw0DEdwvN91H/bVsLA6wa/m+W7CA606q7k3R53w0EIjEsJvTofU7E1u4IkyjKsh2FBxX1tb694MkOmjNI/6e3bsoIL8mkvBPs5nLk2D5pIQJ6oMyxP+H+dNIfAVHsSfhn3fldQEWss7fstzi5Ld427E8uXLNbDw5tY8tm3bNpZIKk1uO2p4jYjb4QYYwnEsnblfptlTH/LR2e5NgOJn586d8xhGDuRenaVok0dCEzItWiwYjWXaxP4HaSKq8DRxqzzRPU7fj4bxleQhbfXPMcR8ftLERs3V+S2dsnUSzj6vH1VSUiLhEap5e9QJDwqlRhZ6DD0Rmc20A19xA4w3AvLpAB1jb1bOJYOfG9Qxhe42F5tEeMRSWFg4hApFE9+Smy2vMkL2Wnt7+z0aOXHdBctb0WAvdklN6lmzZp2Q3FGqOVE8/weER4ff3CM1Yyg3oTtNjzrhQcYr85uf762+zRhBp5566jjakwsZTSl0AVCCEPF3b9my5c3RrhhcRMMs5BqsMPQaRXj43YpoqgB5TMsP1P+RuLZFnawL0DKWV1dXN8b/ZCRmXvIyBtw9wX8vNDY2FuBXm49WPmbv3r0qM80uBEed8PAW1WU9gaepqUmjNNcjqY8N4h5hVUvNUcWlCQ8jK1Rw0SJGJ/+v9Vvkr4Oy46Gp8Pz1WZegnWhUEU1C5h9WJzwmOy7dmizSXDZu3NgwZcoU30V40SzXLR1Zs58CgJonvaxHmyBoM0FzGsIssdYyZhInbBukM4vD2jk+RLNc0TqYKC0t7baqN4G2hIl9v3E9KygtGFUTrysOpk2bVqGO0kQHWux2zDHHPK5rtBj1afSwHYObYirAjKtukzkamy1a4ahI6iZliaCCaHczgykJmSEjId3vJix3u9jiqkDPSZiB1jS81x39aOHgKhfcFME6d4RDns33W6GufrpRo0Z1NcsQIn+l8CteEvuDchE6mq7+/bKyspa6uroF0QTDQp6BpPviE/rQbjrxo9HnPRG/NTyZOOqEB22612n3aQFfN+HhGfIJYpZuHwkia1QjPVsN5VxPcD21tAYS5y+c/0TCBl6SzTM76bi9afXq1aGWcVOrfDIas352tPP7448//jMrVqxodW8SpHVE/a2JaRFjV8FXvwYjUHcldybz3CTy1OkHDhxYx/WCpHvbcf9g/LcEEUP+zT59HoWUm9DrW466ZsuIESOk2vlNBMv37GKkpaKi4hWksEz/Xd7W1nYZz9zstzCOBH8MSf4hhgn/m2OnC4gEUpYL4w6LEZ2BRlO06bA+4psiYSC/FfDdfoU3Ul9ffyguyG/SPLYkuSni2fdoSb+Lme9MZHV5efn6+A+0k4MIkx6LQWW7hjCY8EBFk0bgV5il+yuC06pnmva8YcOG12pqavZpBMWbjt4DSfVVq1ZJUGVrId4wuqCSKvZptqjpvfvCCy88NJqEUFW+/p3rPplL62G0AO5TidPYPaNPdydqcOTtVKYjc1L0uaRlQJottNEW8RGys7GTQMsoz9+RfNX0KmdjLLkHMpCD35pUlbwsfR7vPi5uJbs3ZDIJYLy5YQh1KHlEFtyPJ2+/Qj5XU3oH5yqaIN0qNzQKGdjyGwnpNmlL9nTwdxn+Xc7PQ4aQvOb4uES3sq5HJ2jyKuNO3r/bswZ4CHWY4ueR0WHKh83h9FFdex+iiL3RZWdp3Q9Fmqy8Jy8AGkbkqc0oa9emLRj9Bv1gxQiEC7g8zZtjpPxWz0lDqd2EBxrFUNwn2+jooGwcWLx4cbc/X3vttecYnZEphEQranHbLLEfsbkvj7S0tPRYOMf7233+U3hDNxUHpPb0UZ3yKdR92c59mnds9btBgnyWjqdJzjD6kcbGRgmLxIIa8Zbc9yhzdKD7VeId/C9zg90quZ07d2oi1z2ejdlU7JJJQz9ToDznNx9JzZ0RLiRZCQ/tYJXqXoq588n0a60/evToHUTeMr97RJ5sWn5dG+64YJiG0j8c0fFKp3fa+xm21OgGZcZvQqIMHvnuUkjn6KMyHehS8wydo75D2DzXQxvxzDSG3ukgq2bLDTfcEF26dKlv5EiD0LZ2fve01d3mzZtHEymBdvKiLRj1xqp73JP2kqzSxdG4NtrFvSTKZfw8MfGeZ5bwYhJfdkG/wUjJiy71akIJ1+HZ9G+gBnamsGGqbSxDbx3op24Kbw6Iy4Ko5+eAFGI1V2OWA3v836fh8fZG8b1HsyLtu0i/lHuykL4pV0Yrn9PZPo58XhIkbVKkYVuqKQD4u52h1cec/44AsiO8LJWxpqj/PjHSivq3z2PSpEklZPxiCt1UXjbR9QyBJmJdu3fv3oWRnlsKRvlfxk3UZJiQ5jWR2bNnF7W2tmpC1/GyXeD8ty8oJRyTZGMUN3UIpW6rVCdPnvw3/ruBiJbl6OSpv2ofqtPpNITMb3BTRWK8FN9sSn0jJJxm671bY+fJ9g9SQbjzUFeH41cxwkn+5/uEW5bDJxD24cRl84IFC15NZYRl7ty5RfinDDiK4/QUGVFt5Yl8h2qUfYwSaXTI1yGZvZA2c5dZOr5V/s5KFUb80+5u6mBrlaBFyCoj92q/1Pj3UGhH4O+ZKSqFUsKo72knHrvWWhBHL4UxVCPDNsuXLx9FuAv5zvNdz/Tv2psF/986ZcoUzQ1queSSS17RO2TSYevWraM0cYt0eo+Wq/u8okQW6cjPByI9JaDyuSq9WTKykyqMSosDBw6U0C+hkZbz/NzwjrdWVla+pjQgLLXxNSxaSUvH6S+5/4loTxu9m8i7Tyf+cfXVV+c9++yzI4h3DetOTo53r3J8m2aoKs61P3MQC+2hhAcef90rzFqg00N78ObIa6+S01JJ3EySWBs0b9q0SZFykYv1IJ/o5057nnKaT8TW87Ey//9A4n0NuU6cOHEZPc7aAuEbPpGsiTmKSBWSa0gc7QMTHxYr1gK7aMg5/2SEqcTR11xM6GlxUg+hx/8TeJe2FjhA5v4Lmfw6Xfv5R+a6hLDJEMwx0dR7nLyTYxnhlfC4g+PHLoXwqKurU4GVRXlVdbJtelIKrWom/i3vlFHNSKQBN1Vk1q8lLsDKhoaGBu3Ut4j00qbiqSqQ9xI/GlKPEj+qEGqJow+6FHHkx4MPPjiagvJLwi6hq7Uffir5CXze7bhp5n07HnjgAQn7/Z7G8Auuh/GsKki/fVT03z/qItt8XltbK1OC15K+2hvIryKWJvBdKsdGpQFhUj55JH6f3897W4ecnPTeh/Lz819K/O/JJ5/8R9z+G5fx+EhG6pkGMBYQ540c2lngDpeBUIWDAGijnnd7gXT9BX5P5TQvgzNpJiVe56tv/4UkNNrATRRqFYLrUtQizhtjL036z6XCG0PvkZkpFNqDQ+FOt/eGMt4J3vVuetpTzjvR4jxpHC4N3tj+27xwlcoqFYIzldtRif6lyfjyc2LcDeHYhCbYF53rMnjzDxnclHhHPHw7EQSh3q1JVy625UY6jXFIXICpaRx/B9+pkY/5rp8tsfNuaUNnpLmvfHGcd92VtxLvqzOUfrsPUtDHx5tWmmZeVFT0fPK2HtzXyIzKbbFLzSjvkLY52gUgbJ/HYVn+rMLZV8JJEUmteavUPvzVJsvaeySrvh7VUi62GfLd3i50fm6i0b4TrL1qJgw2Im/s5Xs4RvmyyqteGJON8vQHvc4ka9as0ZBtRgv2qmCjMRu8fcph2Xs2IHkJ7wkzFTsS9d8y8RCeun1nRUXFH5GqH3exBWYzXfAp35rSq7UDy+jEffj555/37enWnjUIlcBxGo3tLZtur9qwi5UypU9WBUI1uOxKuF7i7VXb71PPvS0MwuShgvi2B9pvuI+nDRxCzeDIG/swhxWgWS9P8N6bE7BSi3jplJGwe9V+hdNI1w+QObu2Q0Dl7qSz7BY+dmnAR9U5Fcg2qbZcoB/km1zeWlxcPIN3zvaGbss1y+6QhwxneVPcXyAitTZga1NT08uLFi16PV3HHU2Qatqbap8HErK841V65htoZ/vep0P1fsIYeNUo/m3UFOQ0Th4mDc93IdFM4DPPPLOZZqDrDYTvFxzaFiJw4ST+W4jTUEarx4yRbZu97wuxAZkWndXT16YRPhndOd/1g5BThzx+x00m/j5MWtCXltW+z4L4e5zmzcUBp6BriDjQfjxvqgVIfmiEZNeuXXkjR448VBPQydq1XQFNHqm+R1XTwTAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMo38INT196tSpX4tGo+OGDBnyP9XV1c8EeWbixIkFxcXFV7a3t8/y/npsw4YNMhHYbdr3FFllce7TOTk52zh+nMl2hIzVEJZPdnZ2pl0wJOvsuLt//fr1T7kM4SwqKvpwR0fHzDR+bRwzZswdVVVVLS4DlZWVx/HNX0q0l+FZ0N4TiUTWt7W1Pbt58+ZXXAiI/xPw41OyUOVim079INkSPG7yc3NzL+Pdczgvq6mpecSFxIuLy3mPbLdoTcou3vsDbUcR1A+FleeuIX3SroXC3wbCeefatWu3pHMnAz9Lliz5oJb0434tYfmJC8ns2bNLm5ubtZ7k9IS9iPfh5zPk6QcIg9Ij8GpXmbIknv+Zb5yglav4+RDh+oNLytvTpk2bzzsWcrxMvP4wiKGdZMjv58mwkZbdw4G8vLyfrFmzZrsLCflyKmHW4lCVm5t6s5NAWHseMpgyiY/QjmqBhEdpaWluS0uLjJFc6v11GpG5et26dS8kusPPsWSKT3L5HAVLy93TCg/cD8fPKxIWtKmQxhekqZB2JSCR3YZbbZaTVngg4IYQqQrnP7nYcu5kc21avfvw/v37ZSgmo/CQNTJOV+FfnuefFkXlecuj60n8tcjL6xGkgeLRYxQF+mPa1dwzz5i3cOHCL8jwUdxBY2NjztChQ8/g/kf47u0uwYBMUChIw2SlCj9O9b6ljt9Pcvl4UD94VlsPyKJcfGf3VOmjzZx/63puZtQNMrkKzSlcqsL4NefAwkMF7pRTThlHPpShpDO8sDV6YVL+uZh4XUi+/AKFf1Uk4F7F5BfZDTkf9/O990yfMWPGKiq+PYnuPKNLV3Ne29raqvwTSngo/ITtc1ye5YXtIGjh5g9dSIg72Zq50sVspvzKxUxMZEVW9jxSbByTjsTEmMnzH+L8jVRughiPRdBsJ8G1m31Xze4ZkZW1pBL+UqRu9v5XWFdm8o/CrNWEXe8lfDIwuyRxVSbeyPL1NhKtyQUgwXZFM/5IGNZIa+NcGY1tGykraN+uqKi4dOPGjbtcMA7Fi7dcX8/K72o/d1mkUxcIDxl9kgYmTUMrjMsJq4zJBBYe+LGLuPomzxV64ZUBJNlTGcp/P+Jaq0u1/LsTt0GX68atgYey1TFz5sxSwvItLhfwLdrC8XuE4c9KU+22xu/LPCNJN6NNyO7ty0H89eyjdsaXunOeRx6SBbzbE9156RDPD6FBcBzD6RTZk+EdshImTedCl4XwUFi8vNlO+Htln+dw7tuiACvhZILuwxSae8n4gZb++uFJ9ztRZ7uaXsuWLZtCwklzkX3J31IjV8Xd4iaU4RXCt4aa7qdxv5P8CWvERVrK76jRVsg/tIRiEu/zvENNmlkIrUruBxUeXXiWzHbLRibHVZMmTfpysg3XbFEtR+15rmdT5VlvA60biNMLaIrcQrwEWh6PSi1bqnfH45DvltZwDYdq/RVonn+M3wubPmEh7BIQl7iYNvsZav9lsjLnYvZyV6CRyOzCd/nWOeSh97mYKccwSEvdxfOqwD6KRqmmee/sF3goPYj3efg9gusNHLdS6G/kPPekk046bsuWLYEEXX9wuIWH1M2zVQuhOSwi4RYnm0wL62c845Hh3/iTCA9jMDcZz3hztK8ytWq4BP8aqAmXUBN+RHZJOYe2Wg3Sfu7l6NpTFwEke5PVrg9AqI9CE3iXrqWBEfZHON/gYkarZa07jF2JQ3FIAXjjT9LH9WH8ZoJvkDYgNX1Ffn7+IwjA+BaMUfJfE3089xUUFFwRjW1G9n4XXngofdWPJ6E7m7wtP250fcDkyZOHEebzYuZkIzUcj6jZy63x/K90ut8NEIdz0ye1MF7l/G0X6z+4hoIz3Q1CCFu/mlukrRxvDnVS8LN5VxEZ52ec/+JidicXI4iLXR+AvzKoe6Jn+PgJde7ye4P3ngtl/8QdQUyYMEGGnruMBJP/nliwYEFdspvx48fvU6F0sU2aTswiLtV+eRE/fs51lIL+RXUYuz4AQSRDzXM8bfN32iqE67gAf19fpXs2HNYd42TOTp2OfLxqydFEylUyx+8GGeqQRJOZRQ/3bB20OU/RWSMZLiSyzE+mbdceHzLrrz1M+fssrw/gpbgFtbAwatAu699cajTpdDqZz3J9AOE5Q8Z5Cfe6wsLCbd6uY1UcOfx3Ou8tcUcQCOdxccPXfNuLfhopo2cS4C+6mPAYhnAPbS2PNC7B/6XEkfokJGivUnq7XoK/0zidKGtunNe6WL+JBiyksc8irIH2QOoPDvd2kzleW/BHkdh+mpfU19dnspI+EGjItko1rw5+6/wwtfJbsvBLAvOy2traf6eP5zoK/F0cMoWozrrby8rKalwWEJYII0S/xw+FT/uMfEFDrK4XSKvAvwUutiHUo84bFeBaw48a0tReJOXuCIKa+9AWjxLiKZyp+dSmjsRIz/2GAiHL9MrbnvahAn4Fv2e53qGwaL9b2SB9Hk39Re9dVfxWn5e28TjNDRADtdO7huae4uPLtJ+ENsBxgwjCpUKzkfN675Dx4/V0rLVl4Zc29VFvvubILOb4gIvVcp/Cv+8GmTOSCs0XIPPcgp+1HO9EoCykJsratCThmelZl29CGHUNbUug0AeymXRSx5xGSrRB0ZFkvjJsWCNen0xWEP+/4HnZaZVm+W+9aebRNyatKb7VyYNordpKJA+NcDt/Pedi23hc0BcaTjYMiPDwdh+7k6OVSDlr//796mQ6LNs6BORuEujsxINMcT6aw+6Q/qjZ0sShzrQfc9YIkTLm3/neFV6Pf6+gNnqUAv2MakyOK4cOHToymyFab/KRtEB1oudqsymEye06ECQyfD009jmR0xnOzKaTd0DQrnfujaHrlJVUJLYJtdKmU1uFuiwhj7zEO+92sWbemaRP1toHeU5axSjv50I0mZ8oPRgtuoXfEvJKtzmMtGWjEfeagdI8Ound/pVUbs1XIII/F8LSdb+jwqdaPfHwhkKzKZQtFL6f03dwLeezXWxSznu1XWGqvU7DIAFEeNUM0u7npxOv52XT4VtZWVnmYltSCA2nXsx5kQ6ur4x6O9Zxnoa2U+GOEEpKSnYTP12bOxP2KX61tGpz7mlnQmkJe1avXh26kkigk3f+XM0M/ByLAPg08RV6RFF9geSRc523AZaLNV8WuVh6fNTTEJVXj/HmqBz2sjxQwsN5Q7Q3u9ieKPOJqMvdIKGvN1uO79XR1NTUNfWeS3V2XlhXV3e26wOGDRu2hnfc42L7j2h7ynEuJGTAt3NozomaUT8inNcnHTd4mpP6VzLt+jZoWLly5X7Cvc37OQ/NoMdufnQ2azawmgcqDxpd6pUWzDs1mesmTeriUDPv3d6GYYFBG9e8Du0op3LyoE96XM//m3CjND8LAXjYm/6Hc55HD4iAp7QnKhGgufaXukGC15nb52zfvr2FduvP8H8hP2fx7V+iXbuGmi7UGpdklFkrKipuJj41c1czQ0OHn7CoyaJtCdeitn+nurr6xcT7GhJEZdYm5ZcR/nM4f8cdph0Ee4lmgKrZqPlFpxH2jzNq9h1vFEl7I+fSHFAnsYZD1df1v64PYFRqRVFR0R+5lN/aozdU4aafaQ5pUu5iGuVNNTU1PZZXMAqokcqvcszzNoYPNPu5rxhQ4aHFbwyBfp+I1UZJw90gQWsVyGDfoDAmD82q/+JnhHunyxLNjMXv21ys8M2hybaIs6ZO90rb0YZWU6ZM0dwPTdEPlVHLy8vl/hzv51P0m7ya7EaTqcisj3F5Een1Lpo5b8+0mG2wQFPudxSux9W/xvFlbfRFGjymSoJ400QrzSpV02UZaR54Cn46tm3bdoD0uJV3aEPsYWGe1SLApUuXnqkwaUMzmj6+m5oR3j9xeo3jeIakNYP3IRcQzSCmOfUZ4mFB8g55CK2HEa6PZfIjrPDoKkzqXArzUMTb6i7qs30iErWGD1DNsCj+X3zrvzBom0Cv00/Dc1n1lieE8x38fEdsWUy3+1oR+zCXGYWHFxbFb05yfNEBez+Z+X24uUDTyxGgyxUPmfwkg0QQNl3x6DciQG31U8L8gXj/hAs40kCzZxrPTVfcaUgaTcZ3BAg3T6sDmMsxZGjNK9Gwe6B+INIkJ75lZTRhpXFQ9u7de2gLycgbWzYGAsG3izj+PJe/5N0ztDyC6ytiQenKk+34+Wu+72thVg57+bQrLH55m+/9K9/9EH5/MBbsSKD0WLJkiTavnutiDz27adOmuhRONXlPebGM9LgY7fDhTDO2vbhXWFWWL/e+o5sbr4nVt8IDCfUf0dju3oFXgk6YMKEVtfAuAlTlUkyh5p6GMavwX+23+nHjxjVq678w8Jwi8TqOQiJyvQuJwom0vZ3EVqRFU4SzhVpsexD/6DR7pb6+/hMqMIRnTeI9dcDSfPms5k+oc1PtVhcr6Gm1D4ZiNalMamonKnGP9TBoNZspJGq6VGrOAvH5VxcA4m4/3/0VdRTj/6OpwkE6biTcWtU6Br//RodvDkPNQTuR1e+g9ClACIaeSq+JXGg+9xHGHYTxhbDPSzjPmTNnXmNj4zzi+1z8GesVJM3NeIx0fTzsUgmacftJB60zuZ/467EtqDrZaU5ex70ubQZ3e3kmyIraNtz+QOVB64BSOSK/vkp6f4pLbZsqbVHCNe03UMFsID9+IRJb7e0L6Rso34QeA/eOsKMOie+J9sJNkPdkE77E5zMRJmyRDM9EEtwEDXMmPxPdZHLXW/dh0ymucfQmfeJCNus8gqabV1ZWFg9LuzfDtDd5Lk5f5e2w7nMS3IV1n4rDsu7IMAxjYFAHkRYSDdRMOcMwjlxyvNWBR9K0Z8MwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMwjj7+H9AVt1jGEHtNAAAAAElFTkSuQmCC"},9229:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKEAAACgCAYAAABkDQwTAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABRGSURBVHgB7Z3PchNJ0sCzhPjCMSaWJgY25oTF7bth377biCcY8wSYJ7B5AuzTdzR+Asxtb8Bpj2ieAHPb28icdhdPTE+EvUGEbdVmZvWf6u6q/iO1LLWcvwiBbfWf6qrsqqyszCwAQRAEQRAEQRAEQRAEQRAEQRAEQRAEQRAEQRAEQRAEQRAEQRAE4bZzB1aI4NFgd239/t/W1oOdtXsP/vX9IvwHrADBw8Fw7Yf7b/G59vH/YO0vD06/n4chrAgKVgBqJFD6LWgYZL5Q+hju9A7Cf47H0EGCwSCA88lrfJC9zBcKxvjPQfhtfAwrQKeFEHu+TdD6EH8clh6o9BsUxqOuCGMkfLuR8AXeA0kYtXoZno1H0GE6ORxTI631//L/+OMxfgbVZ6j/w15ye239wZ/f/xOewBLDvfql/juWeRt/Xas6HD87qIIMcIj+0tUhunM9YfDw8euSHgIbQR2Bmgywh3jhvMCSDmUsfKDx2Xy9uhrhPx+xV98tqB0Jeh/6vXddUz86I4Q89IJ+728AdQD34E04HnNvEPw0GMD1ZN8vjLPpi3z9S9TXlAqgr15NfR2f3pcWdIT/HNhDLgrsPpb/hbMuOqgvdkIIgwAb6q7+7BZAbKQ+vPQJAQrvDvcwPuFtKIyWvrY/y3WS6/04eMO9W5GQhels/MZ5XuVLprZQEJda9YjpQRdYw6HXLUQhvkalww/1COG30yfYKC9NL5FDqx241p+MsJZDJiA4178VBDC+zpX+jdQFFtS69ApqRWh6dfXEJ4B8ED2z7h3jM/kEbRM6QjeE0A8Kp34bPNr4zD1DCTw83VHPsNd5V/iSBNxc5zeXMJK+RvfAY95A2WyVQQG90J/rCLX7dPUMhW8/Vitc0LMGDzfeY8E/Ydk7I2w+ui6EBmoI6oUePX5bJozUe4Tfvu6gDvekXBjNdaLG/tS4sbNC3UxILsEvfFgcnphdoWoCsA0rQjeFkIZV39CKDWRm0H4SYSwbolGo+eOarZpz8sJSHBaNMH6uejnqwD1rqgoUh3D/sLz0dFMINQrBpdpi3alIQA3lG1ptKvVFxylm5knnZIUwPDvdqhLqxvpiBD8H9qzgUgWUOib9Ee/xETpKZ4fjMByHpDtVD60z6osZeLa6X3YdFlDzcjiG1an1xaHjWiP8PMN7vizTH7tA53VCa2jdcvdCLemL5mKHdYbW6OXYqjEJmnJSgXbJs/Gzri/XxazGxAS4FzqpNMW0qS/q8uXCjFCX6Iv4+QWa01n9z8XKCGEMD62L0Rfd1yFhLNMXK00+q8/KCSGxGH2xokyV+mJEv7npxUx29FPoKCsphDE3qy/WLFOZvmgKddhEX2T1gk03OeFV0JnJykoLYcxc9EWYvpHr6otlL0e0iuO3G/a6ozd2w4GBGsIYjmNGqGc9gylgZ4g+7EVuU0VqeqGwAFiTEyzP1HVZ6WRhBD7IlNHvTVTq0LGMrFxPGJCCVGIQblNfrFUeWmqrGFpr6ItBoYx5eMWE152fdc2fcKWEEIfTQ+hjj3mu/+DViTp6XpW++HCwB9OW56+DbdbXai7dVeuL7tPYbvjtdKurdsOVEUIeZjOOoagr1XDRqtQX3b5+9ZjwuaYXi5fumkyCquyB0ZJdmctXF1idnnDNYW+zVyfYfd5PhX2xPWr6L9awL+K19A452E6zHr1M3IrZsdGhqOEreqFYX5zBOF27PCX+i5kyzW89emm4HUIYkw6Jh21MOmYmFsaHG+9bW4+u6PGXkVUWwhEp7B674F5dl/528ZSHDM1t6Itpj38IHWK1V0xIYa/j0k+z2JvgCj7UinepmJFX6ov4knWpR1z54TjXe3woHEDCONHv2/B+rl2meD1aqyNwlSddutvxXYMnI3qygce7JyXKa/heOm6NThj1Hs+9B1j6ordh2y7P7+O9SqO5Q19k4bygOBPnkl3n6IOQRaupjdPTEK1u7AQ/Dj5ATx86VkNIX9zGl+MYVO8j2x61HsIKcbtmx0XCWb1i2gJ7xWp9EdUG8Lv6f4COcruFUKFpsExfbJu7OOmo67/o0hfzcNQhZ+UiZ44v0FFue0/IJPrijF7UldBQW9cUU6Yvxlka1jnVxzF0HBFCi9Slf94rJmkIaNlhycy+0Eur51VZGrqECOFCqRfvgj30n7DCiBDeKMptp4yN5suwlLgARAhvkit4ZfQ8p//igEMMOu4RMw0ihDeM0fO8ppgApxwihMLNkLpoQWfte20hQrhoVnzSUQcRQmHhiBBWoSGYxu/QbPDTHU+WRSJCWE0QebN8qmNCyaXyHeSutBLG5bYRIXQxcSacHJYtuVWm8lVwsiorHG0jQuiA120rUoYUermyVL5mnXeqjBG3ARFCD4k3izfFXI2/pXHBK7POOw9ECEsw3jUlKUO8rE4q35tAhLAGlSlDYui7Hnu4rEwq35tAhLABJSlDUv++f49v/QpIUyTGZApIXwyCwQe4i7NgmqDEGzuegTAFIoRTQilDwOy3DCJ8syHDsbBwRAiFhSNCKCwcEUJh4YgQCgtHhFBYOF0VwmHTLFq87wdvoL3k3G2WNzHx3vFtidEBuiGE3x1+eDUDyDO7t+fzuOg5B7nXYZJ7tgZbWKCw7lreO5C7zhg6wh3oAN+/h9/XfnhAm9UMi9+q4dp6sEMuK1jx6fcKwrUf7v+EjXyMv/1v8TSTx+X7f8J/wgJZux/8A8tN/od5Lxwq+97a+v0B/hx/IvQpPjNl8NqhSxSvqg/Cs9Nj6AhT70K0CLhnuJ7sYy/4AqaH1nmPkqW2JaHGrk41UCNs0Ve0xg0dolNCGGOE0eE+X4XSR7DeW1rfvsotz3zwNmOcnWsEHaSTQhhTv/cg/z446EojNejxuVdnn8cO02khjMGZ7z4KY7p7UkzHewizJ55+797Lbrl79VsJz4IfPT7GmbDGzx8kmKuS14V6fLNHCT3b4FPdvZCFBcF2sxVNKkQPBoIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCEL7NPInNH57GcLwbPzGeWziJZy52zjeGpUdN684RsLgcbdntyWd5oB2OXBypnw9eQE9RS5OAQf5KD2mndJdqdrw+D2Amjsn2WW2z+vBiS8NXK6eRrE/Y/DjYBuvt5m7/gefOz477eZ9CWcMSzD1jnUFWFemLCHeIwSl3sEdLKvZiT57jqst/XhlwkfDrFxFt3NKkRaGxYKbtGm54zWMIM5kdUWVa30fKvq7q3I3c/fdT+7NFarf4vdDinPC68cMQNPvmvzwxpT2N1O5Su/WDg2wy2yfd83l9eQitMvL7/mIf+xxneS8pTUJtbuBtT6E/Mvir6dKgoePD7G+9pK+R2fuNcQ2CfGYN+HZ12yK5DUsw1XNkAOTt7GREM4e8tmf7Dj/rvUvMG+uc2GcXAHsyp82EgnNtX4Py4rHhZ9797q9dQ0oThvrpqo3C3j724ow2raZPT+h4krct//E3TfobZgjPLRpPbAKQjmiR8n3xuXfVKaGTWpUt5u/+oDC+9F7IzX3vUcCZ9kUDpm6negLvP5rGhWsi4/AirkxG//giJKMDiSIg1+9YRGKe+Nf3d81r6/ZhRALXqhEk8F0vti6Fe0R8i1bYaQ74lD8whp2hxAPi1m+xDrfwlATemFHuT8OoS2U3knbQ5GOmtnOgtoOO44tuGtvjcEv8MhzxV/brLPph2Ns+PSXyTDzXXYoHsF8yAy5ztQZ62oLrtQT/txrpqfMHTvndW5INhOt5OUZwQyYEcPSfxW8ch1nMs9mtssY3lQsy/Q9oaZdj3RUSEWRbvvWt8Pof3qwjzxxaB97RhlEqTMoJ8sI361feaY35slIGJfEjX5amvtlHWev84hom+CQ2NOxsGWHZHsoplmrnqn+hslPZqZ/4j3yEidafXib/G4yWriOv++Ld3FOUiuYZWIygrRpg0iRNm9erFAr1rfmolOZBsttdMN5XNQOCaTZAmyDtgHbrbjUNh/v+8xzE2yt0r1RzJAc/zJMfrwz40ii9NP0fuX5abg3tHtoNRk4D9T6DfT1b4XPXT1VwqnZZseuSuxN0qG4TOFvgWSjG5pcOMvHQvmGhXEZI/D6kemHwCHZZNiyh2L10WW3uzEmvftwA8w2MVFsJzM9jdFr9vD/7ei7MRlzp9mmtQlRIz1nITvHyQq9DLr3c6oqgBHGczbTFPeXo52adO/Ye/1wfkJAZQ8ebozADJlx+a2huIVd4ZU6xZ4rvl71i6itYxSceo7CcqkvjnOnGvVmEkKeVZExONZrHj0+TB+CzQCzo90VFw//zL1kB81R9HHlq3Er2bo3XmyGBktn1vAChWaYfIX6KHyD2dCs072Ifh7Qy+rTcc3qlE7ruwdu/VFhD70Us+MYe0jWljFUQ/lecHld8X88QqImT63frHP0p+RzUdzalXvIibJngrMHxWurUZRto7Ruks8p6GvImCtrSDamlIH5WR23NCHKTuDOJ3v+QydZ/fmHuVk2MrSwYmJVYgwNxRW9SzRLs8ws+nVeSEyD2vYyZRtIR+mPetcpYD3YyJRp5kbNDEHDaBKW5SrXkBVCGG3KMyreqh19OmqHkXXhXZeKZAzaKv17ey9BJTMbq3N6TUTdoVgd2asacKE/47VO2PlgwuuV6Uyb6Nm9hmW6SM4dvEtnd5Ofs6sE2tOoKMBk1Pah6YU6NbrkFdoa+5AmXlL6PT+70idcXqUGkDGJYEPWmljkzFiRPg1t0Vcvo83AA0h3sn+RLXf2/jgrP4AboqVtxQq2wKNap5lGpdm0GYp1lJGUFPPCipU+CP99mjQM7y/3kHrKRIgHUZq4uExW8bA3Wu/te/SrwKd35i9DvRb2Iq/YdJOCs1nsrVXhvPoNSUNyH14DtKxPR3BH8WjwLJfhq6TcOYePOdNsOOYUu9HHhiox/e4kYxClnMzJOSrTvVOjYi+zxfY+7xau0d7BZ1/389+wiYZ23PQ1mrnnQfjtdCsztGg1zjxL2SdnW2OF3JiF3Pe0d/wsNmRaF73Jn2DVA9CQmd7zXeE5XPXeAG4T2kScrAHu65SVG3L10uow3c4KeUuwFb4fK+b4oOv19bjERBNzhefO0byyqHu2ReSnaXreDpVbEARBEARBEARhLjSLtvvxcWofu+OJZPsrriJcR540iiKvvr6CBrA1f4KGZj6/96Vp5BbHR8S2sF7P6wFc51nSaybRfKmHCzv1orH3Tu+gzKaWqQ8k/P3rS6h8hunvx+dTeMWdyWHyB9V751rB4hnyJF3hKSubsQTQsbyCRRYBmlmT5eKkLFKvDs2M1cpa1pmwh0Wx4SbkCRIdZ+xRjYQQyIiqYk9jclBt6hHNBthhVBbi2H1YjWeBKEIN9F4ums+s0lDY5JXewWP2CxFq6bU3M/cCqGho8vYpRA/Wvx/B0XH2PfU2XvtJwdylebVkp6psvHx6Qev0apD/CtjojeW9BjKIP59mNynZarYEXk/NRKipEzR0H0M+oo8Cg9pwWbvgpbVh5m9OIzXd7/FbqE8AF5PpI+iy3kghP39aDwazYvV+GicREcIyVGbtmaLTtsLfxy85UKivcKXHck4oxBM3g3vcTCyIPoJ76gGu9jyhj1mlsXprrXYaCb5Wexn3t7rlyseo4HPT8yf1oNXz9B7kt2klNKiJCKEH1qvsyu/1MsMM6z9K2WvkQ5j2XsZbKO1xyfHh29c9e/ik++ESJzW4VY6me+DpJr1ndE4mqnGc1/tQGD9kyqThKTREhNBDtJ6bdTXLRZ/RpAcFQ8UfmJbrnACXOj5YPpJRuC1UE6bHP96HJmSiAvn813mfSVr/T+oBe0hoiAhhGcpy/6KJgdafo+Cpt7zVV4Od5ysYpveEk9JZ5lXBP3ETqlC2c6/abVTuS1YBMvqv2ex84xN50tNLMKuzsAhhGZc9GiKzje6M6JtxUqL1hnX9UoeNQkRcnVQhl0ATiaPk+Kv6w3IUj/zc4XkzNJ70OGk513/wiznlSylCWELialbmLsZCSU6iLeVvITezeXDNceGxgA+jDGO1YBujcQM78rqT0YuJs+hpBFGEsAZG98OZIM5WybfR3Ricv2UI00ARcTE9XT28TrE7PPdoWln6GjsA1x5GeWJEk6V4pk4vJvkm5pNPXTWf/IgQesA3emi2eMVPJFw0W6VeIWkMUHlDfLUAudCZ2eVmmY7lEPQR1CSaycbHo6G6enad1IGlAxuBHNMMfodNVUYYYxrriKsohOmb6elVCjlWXMFIl1ZmBqUPnTcyS4rZaLZp6OdWa8oMyxSXnPwMzcNV+9wbxnVUo9fFZ4/r4coT1ZiP226YtWLuQhjEGxC7PlVvjMLTG59vReRxSrisrsbn5JN3uiPiRtnrFHWoqGfYrLhOJdFseJTejwzLxXIbg7a1zKb1O2iIuZeqFwNksMNcfTPrn9NjmntptxTo5IF0BMpR4uOcc8nsl5y/WXr+Bb/Vx5m/FYOGKEXcThIrcq43we6xPBFxNHRx5F8iZBrNERu/JEKuJxtRNGB0nRkj5KiHyiyPucqtrHJTLE8x7qYOnDaPn6WO+kBtlEQ1DiLzzAcOf1WT+/hSbGaC3KZ4MeYrhAsgiojLRpbFUXwFcMa7Dq+8WQ76aJrIrpsOkwpXmWi+MZsxZik3RcT9hOW271de7uezZWcgfbY6gRFn2Xg4OMitzmyTU0QhiSfqhtO8GA2F0DJT+KbqHC3mjUQrHptHJyl/q/FkmSJPDtOgk3281s/F2SReX8E7dvM6Ay9RD/kkSmC+m8lvE5efMlCslyQzb1AfFfcL2YEizrB6VnU1654BnpsrXSpc1lDqKxf1nD8Njj31acrVgyM7JLcJ0y81dQjWAyNledaosiQvX8CXCmHOxPdbpmi4NutTEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARhKfgvUfxCOwNyazQAAAAASUVORK5CYII="},87625:function(e,t,n){"use strict";e.exports=n.p+"static/media/no-background.534408bd5060c2be49e4.png"},66025:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARMAAABhCAYAAAD1NEXGAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAACUgSURBVHgB7Z0JuFVVFcf3LctAQsQgQJQhUBSMBEVFAiEwxSHKAVAccoQSSgpLU0wj0RS1ItTMEU0MBUrIEBzAmJQABSfEgUlBIkVFTZPd/m3fOt9+l3Pv2ffec9+7+Pb/+85337v3nLPntdf6r7X3zqxbt04rg0wmo8oBrbX6/Oc/r3baaSe1yy67qC9+8YtK0vvkk0/sb9zD/5/73OdUOfG///1Pffzxx2rz5s02vXxlJk9cDRs2VF/+8pfLVj9uemDbtm1qy5Yt6r333rN15vMcZdpjjz3s/eXMJ+1FHW7atMmrrcgbz1CHu+66a9nzJu/n8+2331Zr1qxRzz77rFqyZIn9XL16tXrnnXfUf//736jPfelLX7L5a9y4sWrTpo36+te/rvbff3/VoUMHW6fSP6Uflwu8nzYn30ljQfKz++67q3r16qlSwHvoc1yk+/rrr9vvpO/lazN5DjRv3lxlTCVqOoj78lIHtQwMwRe+8AU7IJs0aWIbqH379qpv377qoIMOigaqpFnODkfBN2zYoDp27Bh1vuz03Lzz2zXXXKPOPvvssgsTSZu2IE0uaai4tCWffCKgZ8+erTp37pzz/jRAftauXWvbjQEpyFeH5O2+++5TvXv3jr23VIhQoN4+/PBD9fTTT6s///nPas6cOeqFF16I7sl+Jhv0P+n7MlA7deqkvvWtb6mBAweqPffcs5qwLkc5Fi9erI466ig7OQgknew877zzzuqee+6x46iUvIjAB0899ZQ64YQT1Pvvv+/V92T8HHPMMeqPf/yjzZQ2X1S7uL/UK+598r9pMHuZBtPnnHOOnj9/vv7ggw8QatoUTJuC2M+0wTvRxEg7VzndfHPfH/7wh7LkJReoAzM7aKPFRfXkk89LL73U5rOceeXdV1xxhTaDKm9/cX/r1q2bNp1Tpwn6h/QR6svM6Hr8+PG6S5cuNm9Sb0aTqJbHuPzG/S/Py99Ge9Hf+9739MyZM/VHH31Ulj7K+xYsWBClmzR++Hz44Yftc6VA6nD58uW6WbNmts7cPMT1Palb6vr444/XRpO2+UBr2K4DpHnlEzhkivTJVL9+/bSRjFHhuMqBbGGSlH+ESakNVgik7EOGDInqxiev7dq1s40qHb0c4N0Ih7gOnqvzjx07NvW2pHxm9rZCZMKECdpoDdWESBqTYbaAkcHTo0cP/cwzz9j0ESxplmnhwoUFjalShYlMPv/61790ixYtqtVdvjalX6KEGC3G9jmjpdr3VRMmaTdC0iVSUCQdmsq4cePsTFZTwiRJs6ppYULj0lEffPDBaIAkCWTqjnakc/Fs2tqJaAJLly6NBpXPAGzUqJHeuHFjavlxNRIG3sEHH2zzwkX5fSawUgQKdU1aDRo00CNGjNCG34jylEbZXGHik6dShAnPMcYMl6Rbt26tRQ7kK798GtNVG/NPG+7M9jfpcxE5omPsyHIDW01XkUn8/Z///EcZdV1dffXV0W+1hdpKGxsUou+QQw5Re++9d/RdLggJBmcAV1AOEpu24Lr33nvt+4WsywXuoQx9+vRRu+22m0oDuooohE+466671HHHHaeWLVsWkcIuz1AOuP0UbubGG29UxvRRr7zyijIaSsQxVDqkHOQXsnXo0KGWmE6qP9ob7hPeCC6JvkDb0s5ctt8lSaSavpB8SH9sYNFO0tQMfDUTyUtNayYC0jQkbKS9JeWTe4xXQr/66qup5lc0AdTZpk2b2vwIF6EStKXHH3/czlppaJnkA7Pm3HPPtSq2aGNxJlc5+6bLqZC+cSjoWbNmlVznNaWZiCZFe3bv3j2xLd3+hUbyzW9+U7/xxhuW48zWOCtSmAjpZdjtamp7GoNkRxAm0uDGtamNt8s7rwhhw6qnypvwHriBqVOnViMlk/JhtKpqZGUx6conwsi4dPWJJ55YjfxlINRmPxWTr379+nrGjBlReYut55oQJtQl5tkRRxzhNQ5cItt4C22flDbNTrtsgR2ZhDiOXNBVahiuxwsvvDD6rq6BMhtSzJoKvnXJM7fccov9O5Oy6/K2226rpiIn5WPYsGFW/S22H7jvIvbCeP3UtGnTIlewdlya+VBq+vnyRT2IKxm3aqbKRV2pIL+YZBdccIF69NFHo/bMBak7LuJvcPHTJylzbL36aiZxLitf5tlVD31nWWGNH3rooVQJxR3JzGEWYcYTN3FSnplBUEVXrVpln02LGMRtiIbk00/I46677qr//e9/l9RuMvtRjuHDh0fmVaEem0yCtymTKdwL6T5PHz3llFMip0ElaiZiquJ1IRTDx3SW/kb59ttvP71+/frIZM2VZnKIZZWEQhoRgKSdmSHXvUBXBWAJkQpxo51ZTeeRiJIGz95///3KqGSqrkHqB83ENKaN4nS/j4PM1LfffrsaPXp0amTsE088YQOZhHzNBYkQJfCKYERdgkYp/YfZ8NZbb60WIZwE6Z9uICT9z3A+yrjQ1Ve+8hXblyFSzSBRr732mjLCz94n5HI+B4DMyryfoDECDAkiK5cWVAq0o02OGjVK3X333V51SH1xH1HBf/3rX9VXv/rVSCPJCR/NBClFpOybb75ZTSqJ3ZTrws5lVjOdQQ8cOFAb9tfOnL6uWe5r27Zt5MdOAzuKZiIuYuzwX//6115uYpnVDNtu66xUjY7nIdqIAfJJnxkPcnTOnDlRvFChkL5D2Yl/gPQVl6xPe7kX2pQRxvraa6/Vzz//fBRXIXlz3Zr00zFjxtg4knr16kVljdNaRAM89NBDoxm7UglYft+6dau+4YYbIu0uV1u6FgT3dezY0dYLfZAyJsHbzMFTIMLE53I7hjQeEX4QcxQmOzoxrmDcg8oMe5zWgN5RhImAtI3rTkuksk9bQQj+4x//KNnMoAPRZphZSZ1cBjwqsUQzF+NpkHSN1qC//e1vVyNck9pK+hWfxKBMmTJlOxI4Lk/ST8kz5gqRrqQt7xKzwP1s3ry5fvHFF1OLOk5bmIhA5rr++utt/3Eje3O1IfKAq3379laQZI/pfPDWg3VWPH7S5d6LesR1wAEHqL/85S92UZD2WAPEPaZjqnfffVfVZbRs2dLGVfiaLZBsxAHoBILNB5gZmDg+7+L3M844w5oQQr4WCl1FrJoBbUlC9/tccPsZC/cuvvhiZdy16thjj41Mr0yeNTXub5grmJZGEKmbb75Z7bXXXlF8Be+XBauY35hM0rcrCdoxCTF5cWQIMZyvHaUeWZc0adIku4bO/T4RvpoJKiOaSSmSF8mP+n3ZZZclxv+rKrWZi/DltLAjaibMfI888ojXLC1qapMmTSwJKs8Xky5thZnpM1uSJms7IH9LjcpEmzATjxfRmnHiPtBi77zzTptvd52Xb36krtzrlVdesetPZGkDGvpdd92VeqRxmpqJlAN3vuGHovrJZ9qIJWCEp547d25kBhbSlgWJ1FLIpUxVZCdSvmfPnl7vEtebUdvrpHsYCJnYtWtX1aVLF6+l4fz21ltvqQcffNDO8tRjofXHM8aTZslJoD00A1aPtm7dWhULKROEH6t/k4hCV+uF8B07dqwynhXbxyQqsxBS1H2fPNeqVSsbcXv55Zfbd5qJ0KZR7u0eCoV2iFYuNLNTTz3VbrkAtjnbBQhcjYyysaKfEIDu3btHWlghZawV/axRo0benRu1lY5S14FqPXjwYC/zUEB4va7yjBUDmP+kZ93fZauGYtOTATF+/HjvZyS98847z8ai+MSeFPJe8oPp89Of/lRNnz7dxs+491QiiHk57bTTLEXgM5HQnxo0aKAMSat69epVdLlqTJi4ktMQql7PIBlx4yF8Mnnc0Z91yPoHo24nCmKpYwaVUVft/i2FdA55ng2k/va3v3nZ2LJeg/1UitGCJF0u1rrMmzfP+xnSx3U+cuRIOyjQStIc5FL3vJe9TZjcKo0jAbqKa1qxYoWddNBMRRuJaw9X6FMmNBI4JlczKxQ1UivaIYQoMBI+3wwmv3Fv//79vXYc+6yD+iD6kJkjCTIwWbzFBjo+cQUC7iX62HiDEhf0uc+gFbimRTHgucmTJ0dRpT73c7EwlEmnlLR981ep2ohM0ggSFvC532dDykB9sViPqGkhq0sRlN5PZjLxOz4lQSSjzHjz58+3Hh35P/t9bmEo3NFHH71dHuoqqJsf/vCHBT2DqeNbb9IWCG94Al9tkB304EtKHcxMHvA0SaaKcBvgG9/4RrTkoC5CxhCCBM1p5cqV1cZcNqTe+MR8I+DupJNOUmnAS5i49qOoTkmXu72ArnLxsrUb5BVrLeLIIFdi0qEPP/xwewV8CurxsMMOs3uU+gwe7n/++efVk08+qXzBMy+99JI1kXAn+pCgRCjjvi5WmGhnSTz5le/ypSnmx49+9KOyaySVikxVxC71NmjQIGsibqvajiJujZBLLPP3ddddZ0laMVVLrUPvcHoajpBjX9WXUOWtW7daSUnHfPzxx5Vx8UYbSueC2MHch/oqIfwBn4J2OPnkk20shQ9oL+PeVgcffLD934dQnThxYuJ+MjK5cEG8ljKgRWCx6bPEtCRpReSPeAg0V8lHXRMosrcKZCv7xwpy1Z2Q92gkV111lTr99NNT5X+8hAmNzcZFqJT5NlFxG9MtkFswOkvcc672w+evfvUrm172e+s6aAtmE+pH6jJJe2BtDYF/eISSgsmYADA18kFmNj733Xdfu8F0KYNZOjQzK/0rqTySFkGQeCHKuWt8pcEdK9QVgoTJOs71GweI5BEjRlhzOW0OqCCxlLS82jVrXE7EvZKAJvKb3/xGDR8+vKIJr9oCAweyEXNRjmHIB+oPj84DDzzgVf/s6o6p4VPvCAHaqVQPikwixLQUooUeeuihFelZKTdkXBDz8ve//91+51tvjEligdJyobsoqCXihEOuy2d1cDbwVhDGi+QMQmR7uLMSpo4PdNXqW+o11+zlCn7Cr932ywdW4eJtSwOU6c033/TuL9yHO7quQVzAtI9sW1nIGON+Vg8zYaS9NWrFiHUY+ccee6yaDRxQHSJI0EiIiOXKB1dILFy40C63zwcG8z//+U8vkwWNAO8B66yKXYfj5pMrzgTOlz6cSV324oijoxChwH3wLKyh4jPNsVYRwoTCPPLII3aD3jvuuCM61awQ86gugboh0Ehcej7mIKfFzZgxI5acE6GD9gI3lmR/u1GnaQxmORCNBYryfh/AlwT4Q9qd+l6+fLn6wQ9+UJQFkQsVo5lQGCkgK2RZMSpSNyAeAwYMsJvW+GyPyG9iwuTqONjfPkQez7Nzfrdu3VQ54NuxQ98oHG5ULGugiEOiHn2I7yQUFLRWbpVS7EHcXISO4xpmRg2ayfagLTiykohYX28Gwpq6jWtHfsMU8gVrVErtfALZwQ2XpS/oE3ieQt/4FC6flm+sSn3xO7FfHC1DCH4aY9s7aM0NePFJOPs+N1gm3/NCGGI///KXv7QxDLg1i13z8VkG9UjQFvWV1CaikbDPCbOQa2fzLGZmEmch6zYQYmzNmJZLVvpGoWaL7xqvugB3bPosa5DgtnXr1lk3MX3C5diKgbcwEVIuWygkXXKf7wKibLcy63h+9rOfpaKGfZYg9XnggQfaeAsfUJ9sdpTt4oeIc/dZzZcmwIPDcvW0+CzpK3iHfF293I82FfAp3Kjghg0bJgp6GUt8ssqYSUkiaosdZ15Ba3QY9hRBJWI7gDgSLxsiNOi4EGvEOixdutRGwULyuc/HdUoRXhQMUhZ+gLBtH09DXYGEQZ955pk23iMX3IhSPDYIaMhuMStZL0XAGAM5XywR95IeQXOlLgpzIZ0Xz5CUK6l/8TtR1ZKnugg30FPaGE2edVKEDsheJrnqUr7n884771Q9evRQQ4YMKX58FbrT2jbPPWDjLnbQ2rx5sz1Hl5203P01MzG7S2WcHaC4nx20St31bEfbaS0J7KjFoUqc6+tbpr59+9q6pD34HDx4sPfxBxzexHNp14mcryybOWc8dpPjoDZOMExjQ+faRjE7rcm+u3JxJAibuLN/7oUXXhjtYevbL1q2bGnrs9iD0wqeWnxMm0wOMojZjCXP2NvMhsyOsrdmHLTjGkaj4ZmA7WEGoCWsffgsfoeERTuk3jdt2mTje7SHucL9Z511VlnC18kXO8mhovvsDSykLXuxyvN1EbpKI2GdDSuA6QtEJLPcgm0FfPqEvAcOivB8nB7yXSGoMW+O8CY20arFRhz+3LhxYy+VFsjOYYGMrQ7qE1OHTuRDcNNZ2NJRiFeJPI2rU5fQY21P7969y1L3pIObG5ez9jCh5cByFiVKn6hLcM8EYlK+6aabqm3kTV9gMZ9sppU0fsVcWrRokbryyiujgLiC8uR7Y1odyNVW0FKIK/ERUhSOVaU+FVPXQMciGpYjHJOiUUUwIJgRKmzNCHQCmYoGiT1Nm4G061/aFF7Ml6TnIix8woQJ1ez/zzpcTR9Nka093Fgj+b1t27Z24yP4Tt/3IkDGjRunpk6dWrCQrvWgNbbc89lZi4ISDo6bOKnj1yVI52FWgnRL0tpkxiGmZPbs2XZFcT6472I3NR9ytBhIOVjA6Nu+ch8aLnt6lEtjlUHlBnzVZv8TYYEZgxaBxhh3DxfLU77//e97aaxuGVlEyHgrREjXujBhxvNdjcxMumXLlhrXTCpZcLl1wUBksWQ+iDDBHfyTn/zEetrylU/ejQuaTZmYAcvpPSGGhTU/Pp4iEWx4olgcKvuepgkxpwjwuuKKK6xnUSKzaysCVzgjhDuaYi5tVFzFCBy280jSWl2N78UXX7TLJRhvEpaRNA5qRZi4mX755Ze9hYM0bNBM4oF93K9fP/u3DxG7du3avPe637u7spcL0q4EURXSvtzLuiOCHNPqH+47mMTOP/98G5HNxtW4UWvTzBYhmkSEy7hCc8GchUfxBcIK1/v1119fjZ/JW6+FHg9aKOJcTBzwI4ctHXTQQYnuq4xzsBRHZRbrugKFuIa5Kt017AIX6bJly7yOX1WO610luB/btWunjdenRupBjgbt1q2bPfhKypFUBsrM/aNHj7Zn68ohWYUe3ylH2cohVIans2ctu0eDko4cxCXPlFo3xbiGfc4alvyR1/Hjx9tjQn3cxXJoF+73hx56KKqPfOdHF0zA6hKkvnaCa1CdkPBEMfqopjyDB4iQa3lHubGjkbzMIB07drQeEfk/H5LaUsqP2SHEazkheSHfeCIwp5I2gHL7FPdCHsIRbNy4MepXbmBXvndoJ7iPZzlHhgAwXOdyn+wlgqbCUSA7wmJD0VDg1E444QQvS8A1a4YOHRqFEug0NBOOXpTZaVsBRy5mH7eIZOPIRYJqRPoh7ZVHcA6HUaPN5JOOSfDVTEQbMi63VI+BjMO2qmMxS53dpH45IlNOuved5eLqnGc5tNyouzUSGCb1wMXh54ZgtFpA0oHbbh+RduNYTI6hpc8mHRPq9mmOVJ02bZo2HEOUZvbRmhJISSCnMR9SOby8nJqJW7fUR5cuXQoKZjPkvu7fv7/VGPONPS8mDYmE1F+1apU9nEmkmnxqR1plSzwkHOQVwVHPPfecXQeApOf/jMdaAHkf97DkvaaPZWSZNvkulxdDQLAQa2xKKZtoIuzoz8ZB1HGxkJke4pWrpjRBKQPtTBAW4QBr1qyx3+XTArL7EZufjxkzxu7RQmwMGgblICjOXZ1M34RkZEd+9r5F24DHc3fm1zFLPciLcCncyxIDub8St5IUbcQoBer3v/+9dcFDvifFk1BWrAjikdhO9aKLLsptGfhoJm7YrqtN5LtEwrqHJsvzPrawyrKJeca4MWssnF7SdMvsU+5iLt5rOnFqMz+zpCExi9JM3PrmmjhxYqTx1BS2VR28jTZE+vXr1/fuL245pM/Ks2gShIyjdXTt2lUbk1Dvscce2pjOUdvKM4Wm8cADD5SkoZRbM5E0hKu8/PLLI63Pp5zcx1KHWbNm5Syjt5mTcU5LL+aKe5dvuhTEzCp2HUmpKHRtTrFmQqED2HgjUhMmdJglS5ZY9bQUM8doN3YtVW0Q0JImHfeSSy6J1HJ3LVchbVhKf83XL0XoIqRWrlwZrVsqtM5qQphIOlyYkZguvuaOCFvKuX79elvObKFSEAGbfRXyXNJ3+YBaShBNTR9pUGg+Kwn77LOPOuSQQ1QpILoSd3Ntg3gYIqUxfQptj7h+63P5vht1nzoi0nSvvfaKfqtU8l7MHdzEHBDP4Wk+hKw8y+p/tivQMQ6Zkoy7tBolV8Zlzw7WHhx55JE7nHeltpCpiohFGMhCykLqjvvlea1rZ8sHl5dj2wsCxvAqFLIbW7kg9SnHjhCB27dv38j7tCOA/CP8rr32WuupSwpElPEMxwKPyGmA7ncWvmZOTV/CIrPk3UhDq7qn4VUpNM6kpso6ffr01MwJ4RwwUfDCFWIbSxwF2xSkVedpgDLBoYwaNaogzi3tdso4MS1t2rTRCxYssF4Oabti27CmzJzsNGlj+LVCTGLKjwk8d+5cSz2Ip69iaOdMzLYF3/nOd2wsCtJf7gnwgzD3rpfBB7oqVHvgwIEVFUMh3jRCw++55x5rWohnr9z9wk1D8oGHiLVNeBjFKym/70ggv2gnlMNXg+U+Nl4i3F7iTyxEM6kpslElzIhIvebNm2ujRkV+7TQJwLqgmbhYvHhx5DXyyQv137RpU23cpUURieWE5AdtiVilk08+OdJShCAspl3z9X3XK0lazZo108ZFqo1buGiyNVfZkjST7N9K1UwkXTSLFStWWG1DPFo+6XPfoEGDrHZCm9SoMMnHnpMPOvHIkSNtR5HgpbQ7dF0SJqLGdu/ePTJzkrwY3EdAYaWYN3FwQ7unTp2qe/XqZcPEs8MS0uiXEtKAW/TMM8/Uzz33nBUicqVpmtamMEEgTJkyxQYpYvIkpe8qACw5oS1UrgfTHixuFKH8zyex//Ait99+u16zZk0U4ZoUtVhMpfFO0si3VWRNCxG52LIw7QEsZZ40aVK16NC4ASN/0x5PPfVURQsTN2KVfKJFUUaEZnbEbHZ53bpPEib0E4QIs++iRYuspiz9Mo2oVxe8C/4lrn2y+42Ub+bMmamMDykLQoWy+gpk4Y/QaJYvX653YkOdctvG2LZcsPLsrGZURdW6dWvVuXNnu1Ufm7fIxsCFeh58kana+IVt7dhISFeI21dscFZ2pp0fKXPPnj2tC5Bt+fItJafuOabVd7f72kJ2/6Bf4fHjWrlypZo8ebKaN2+eeuGFF6wrE1DuTFYUc/Z7ZDc5NrZmnx32AmEn/iZNmkSrdDNZ0d9plgmOi77p5jOurYSjoNxpwF1zY7QMy4NwZRKivt06gHfJWPVElZc4yn63dhZUZVdcxgmpThO6KgTa3TqyUuDmLW1CUcLM2Z9Czh/K9/5WrVrZ7RPLJdTLBV3lopQ8U5+E1FPuV199Va1evdqG5bMchDBy7mPyIryeyY2jO9hLpUOHDnaHMo5flffKZ7l3wZfQ9qSd/92yptmPt1WdpQMIDfCBjFl7dpOuhOk5oOzwbeYdSYBkI6mM8rs7gWU89nKpS0CgFCuggjAJqFOIc+G6WnJdRpKATUIQJgEBAamg8tZKBwQE7JAIwiQgICAVBGESEBCQCoIwCQgISAVBmAQEBKSCIEwCAgJSQRAmAQEBqSAIk4CAgFQQhElAQEAqCMIkICAgFQRhEhAQkAqCMAkICEgFQZgEBASkgiBMAgICUkEQJgEBAakgCJOAgIBUEIRJQEBAKgjCJCAgIBUEYRIQEJAKgjAJCAhIBUGYBNQ4wh7mn02U91ShgO0gJwkmHbblnjgon74HY3GQk3ufnEaXVv7ce+TvfHmTQ6Pck+PkmVz3uQdqxR3iJkj70LKA4hGESS2AgfLee+/ZE+eyIQOUE+U4/rFBgwbRKW8+4NmPP/5YLViwIHquR48e3oKIk9nIH6ff5TugihPfyFujRo1sOtnHZ2Zj06ZN6p133rF/77777vYozLjDnkSgcHFEJSfykRfASYP77ruvatGiRbUTEAMqBDqgRiGHXnNINQdEyyHqfHIItHzHAeKNGzfWAwYM0NOnT7en1HOUq7wj17u5OASdA+nllPoZM2ZEh1MnHXTN4dVvvPGGbtiwYbW8yd9y7bzzzrpJkya6f//++v7779fvvvtu7GHeUt7zzz/f5oXrhhtuiD30m3sp44YNG+z9vN89fJxPI8DsAeU333yzfuuttyr6gPW6hiBMahgy4OfNmxedJO8OUhk4MoARMEZD0RdccIH+8MMP7WDLNYD4nnt69epln5NB36dPHyuMfIQJ2Lhxo95ll12ivEle+N/9jjR4P9e5555r00AYZafB/8OHD4/KNm7cuJz5f+2113SXLl2s0EEguvVBevI9nz179tSbN2+OTTOg5hHMnAoAh2aPHj064hFQ8deuXatmzZqlli5dqoyAsKfTY/ZceumleVV77jeCyv6N2YHZsnjxYmW0G3XccccVbBqQ5mWXXWZNGnmW/BmBY99Jevx/6623qqZNm6pLLrmk6AO+efeYMWPUihUrbL47d+6sfvzjH6vDDz/cmm4rV65URgtSU6ZMUR988IEyQtMePC5cTDB5ahk6oEYRp5nss88+1UwEueftt9+2M7poBq1bt9ZbtmyJzJ3s9zJDn3jiidEsjrbADM7f/fr10x999FHss9lAM6lfv77Nm+Ep9Pr167fThvjfcBp62LBhVjMhzU6dOmkzyGPz5qOZbN26Vbdr186+C+1j/vz51dIVk2nRokVWU3v//feDmVNBCK7hCkGcV8KYGuqiiy6yxKNpK6utmIGdk7h84okn1MMPP2z/N7yCuuaaa1Tbtm3tb3PmzFFPPvlkdK/2dM/qHDM+eYBENYM60kTQVuJIZfdd+WDMJGUERKSh7bbbbtXyKnV04IEHqquuusqSwHF1EVA7CC1RgXBdombWtxdgUKH+x4HfDClpByMYMWKE9QgNHTrU/o/3g99d92whyH5GhAx5k78xq7iKeT/AZDGkq30X+TValhWOmDi6yssj8PVuBdQcgjCpAIjwkAHDQOLib/gP0UbQVJo1a1ZtsIob9ZlnnrFcAr917NhRHXnkkVZjOOuss5TxCtl777vvPutqlTR88ybagXZiRHiHMUushmDMJ/t9mzZtorSKxciRI5UxsWwacCTf/e53lTEDrWCZMGGCWrJkSSRQixVaAeVBIGArBIYLsZ8yaImxgIC98sorowAuBhaqv8RYACFEf/e730XmAaYHWgn/16tXT40aNUpdfPHF9v+xY8daDQVBo/OQlvI97zauZjvA3fSMF0XNnDlTPfroo/Z73lcK+Sp5HzRokBVO1113nXr55ZdtWuvWrbMm3rRp05ThgNQBBxygTjvtNCtgiFkJqBDogBqFS8BCRtIEEI7Go6ObN29urxYtWmgjNCL3LiSqGUDWbRpHhBIXAlEq7yH+QtKBlH3ppZfs97wLYtUM0rzuVCFgleO6Ftew67ImX/xNTIrxNuUkeIWAFddyLgJWysNFHm677TZ9zDHH6JYtW0bpStrE4ZxxxhmWtCXN4BqufQTNpAKApvH666/bWd913QoHMWTIEOsyFT4BaMfk+O1vf2s1BV2lifziF7/Y7h4iVSFImfWvvvpqdeONN+Z1pQrZqZ2wd/d+NAbMLuMxstfXvva1VMhQSQNzCe2DsoNVq1ZZTWjixInWpCNf9957r+rWrZs15QIRW/sIwqQWoavMDFT1008/vZrXgsG/9957q8MOO8zGb8jgzh7QCCGEiRCgq1evtoJCO+t5RCBIenArP//5z5VxNSfGZjCoMS8wr3gHywBOOeUUZbQky10Q7wFX4pLGuoiYD3mGMrnPY9bwXYcOHWx9nHPOOZZX+dOf/mRNKjxY5513ngqofQRhUgFAmEBkZgsKERAge3AK8XrTTTdFA3DPPfe075L/gXzyHngYhI0xg2yQGQFwDMi4QDZ5jsHcvn17K9AAAgThZUwM+55bbrnFBpe52kExgkRXkbqQzXBFp556qn1f9hoc8tu7d2+bf+5HmLlCOKD2EIRJhSBb80iKVOU3tBLUfgY4hCtEqcSVZGsKXE8//bQdiNx/991321ne8BEFaRLcd8QRR1iXM2QugODt1KmTjW0pRisRUJ4BAwao5cuXW88Tph3vFTIZEA08fvz4SIvBcxVWDlcGgqFZS8geACI84syZOEgI+4YNG+yzZ599tjUDGHh4XuBOuIgD4Tuurl27qqOOOsq+Gw/JHXfcsZ3LN3uW11nL/UWTIcR+2LBhkYsYUwOPlM4REKeztjXQWe5t/p89e7b12oDHHnvMrnZGWBx99NFWUzn22GOtabZw4UL7TKtWrWy5dQFBeAHlQxAmtQBR6bOFRiEDguX8cB+AAT548OBYt6z7fv5mrYsQvcRt8J7se3TW/iSuIHDzjAt6//33t/8Tv4Lpg9YTVw7el4sklTQhXCdPnqz69u0b3YvQI3Bt0qRJ9hPOhnvhaeBNWNeUXc6A2kEwc2oYMtAIRT/++OPt38YdXG0zIB+wGI5Ze7/99rMzNFpHLrgCgNke7wth7/ARLNTD9HHzx73GJWsjT+FgCFvP1lj4JF04G2JCRCDMnTtX9enTZ7s8tGvXzsbJAPYkyTaHhBti8R6k87PPPmsX9S1btswKFLgRtCz4G+456aSTIh4nICAgIOAzhP8DO4MYLp8ifxQAAAAASUVORK5CYII="},24110:function(e,t,n){"use strict";e.exports=n.p+"static/media/blvck-big2.30616cb6c1673348f94d.png"},37065:function(e,t,n){"use strict";e.exports=n.p+"static/media/by_mastering-outsourcing.5a343c8aaa621197ba73.png"},24565:function(e,t,n){"use strict";e.exports=n.p+"static/media/circles.f32f8360c5c974a8da3d.png"},17948:function(e,t,n){"use strict";e.exports=n.p+"static/media/e-book.ff1f805eaafa15680b3a.png"},1778:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAARCAYAAADQWvz5AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACBSURBVHgBndTdDYAgDATgiwvICOz/5AaOoBs4ikr4CQLSay/p430pgQDEONjS9a40Hnx81SvZ37kVWEZC50Sz4kFiLdIdj8FEhMFoZIapkT/MhIwwEVkEqC6uMGzj8T0O+zSmSN5MhY2QHBqbITTGIBSmfSctVrIh/gCa63WpEwYPzHhO3FMw/lcAAAAASUVORK5CYII="},42912:function(e,t,n){"use strict";e.exports=n.p+"static/media/feelsgood.995dfb2c8735c5b10682.png"},34993:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEdSURBVHgBzVJBUsIwFP0/rbitNygn6HASewS6Yc8OWDiZOqPu1JUzwky9gXADOYH1BhwBl0XMM3EarKHVGWDBWyU/778k7z+iPcFuQcosKMSqy+RFtqZA7wTv7kYmiz8FhpeTmICs3AYOd3mq/LaUybJaFHYxkA+hbn4GaGaItI1gJVTc+IJBOp4yIbq+6H03D9MxqA6gnIHkSvZys/UrSucgfhulkwxAWNfLxE8ghGA23+z8EihFIk2Itq3dMOYMNYdg69OPB7vimAS0u/+y1WfeKGBGo3OwaGg14enb0VWxmUJ52B7Jx65xWYfpzE1dHXy30KKTaUHr20J8vOpMvLjnesyxyQO5X7Awt0KtO4CYUQ101O9byuvTofAFi3tuiK//7pEAAAAASUVORK5CYII="},74280:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJEAAAAkCAYAAACJ39jlAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA1VSURBVHgB7ZsJdFXVFYb/FxKSkBqgggMVCSoWFAdEI1SLgAOKoqhVcaqgrZ0stagd1Kq1rdVW2lpBXNZlF2qhVqkWUBwoxQmLiAUBRUUQEBwAwUAGMnZ/OefCzeM9krwh8Fj51/rzXu4799xz795n7332PldqRSuSRKT+73l/OUC12dnKVOQUrNfjF25RK3YJ6hUnq6rtjEgkcoAyFZVlV9ZIT8b5tZcxN+rYW8Yexs3GtUovvtpC19llcNYnEimwvx2Uqaity4/zS6HxFeOXQ8c+Nh5lnG0ca7xb6UOev84k43XaQ5G5LqwBInWNNPiDGgoxy3i+caWcoI83LjUeKWc13jBWG7sbe/r2b8op4EFySon7PMS4wPiR7/dAY29jpZzyVPrrcF47Y7H/3s34kvErxsON5cZ5xk3KQHglqosE4dEeCoQ93H9/R055pshZoceM/za+ayyRU6grjS8YZxk/NXaSUzZc0yXG0cYVxv2MbeQUoYvxeeMaOWVCKS7y18ESocj/MW40YjlRronGt+VcK2M60VijDEOLWKJOhZu1vmQv7UL0kxMsuF9OeGGgCCjUX+XipWOMTxi/ZfzceJ7xplAfPLehcpYKZcE6fVcu7hno//+asSB0jWCWPmK8T045L5VTqu8Yz/XtS5RhSLkSRcyz1NW555WXU6UhRy7S0D4LNO65U7VoddeY7VoAk40/899xU7Hu+xP/WSqnVFgZYiZcZRAUB26zzPiFnOuT76+jnDuqkHON7/t+ovG0nNUb6PsP95ORyFIK0a3Tep12xOJt/2+tztaAXkt1Tt/5Kqtsu+14bna1rho0Wy0IXESFZ3UTzxkk5wYvME5TbH8fPrbIeKyca7pWLvbpHuOcKv95mnFf41nK8JVbyixRh4JSjR81UUccuEoX33uN5rzXo97STJ7TX/c8O0Ql5W4BtVd+he6+dJIuOP511da20UOzByjN+FCxA9bgeLX/HsQiCBQXQ5xE/PSica5csE0aZL1cPARK/bngXrl0wizf5098u+A6FaG24B/GYXLu81XjOjlrlnHurH4mZZ09cUVEkSIliSsGvKwvmzKNe/5UVdW0idsOBeq69wY9+caxWvFZZyWNutpLaqaNnKzUg0lGjqm0GeeQVmC1VdWEtphnvEGFMhhJW6L27cr0RVm7+u8Pv3xivfWJNLLifnxucf1n0C47q1b5bSu1uSJPuxmq1XT3F6A5lqRSewASjokQfO+uq801TVbxwcuVZf8HgXJTA2badTTL9cMhz+vKQS+pS8eNakXmwStR81dJ1bVZOqb7hxp10ovqXFhi8U1i+rjFrA9B9oj+c7Sx9EtKCJG6xpKNrUgjknJn85d3V48xY5Wfk7hVJnYadf/VVrmIqHoncVSC4P76acf7ZCW1QS0LEpLc4FtKL8iYYxWWGPvLLRRWKI1ISomWfJSamu285QcpTcC0sTznPsNV/h/JrY5aEr/04zld6cX1cvd7tfE2udXib5VGJKxEOW1qlWvJxC0VuUoV2rcrtyA9X2nAg8afh/4nWC6Sm7XT5Z4D+ZrXjbVypQ+W8vvIJQfbGwf7316Tq5VR9zraSGLs63Iz/3++/+OMh8klEkkRRAd75KBwwUH9bKDcao6+V0a1HezHggVjtvXyYyr290HhvLPvi9wU2XAy36wQx/pj8tcZ7K9Dlv0DpQgJKVGhCXvo0Qvql/MzFh6V9DKdoLx/j2Ua0e+/um/mKXpnTRelGCfIzUqA76WOhUX4vZF6DCaVrSRnytXIKHkgeOpg5IeeMebI5Xsovp4hpyiPymWnETLF26H+97/5Pk4yLtf2uh0YY7zdeJlcGYX+URBuGsEPlFM+gHwo0fzLeI3xm/48lOhWPwbORWFRbGpvN8rFunP9/U3z/T3n74k+Uby+oeskBRcNVzUnDWKZ6MocXdRvrq4785lty/ukYPHQgJ5LNWrgi2rXNoH4qnR9Yy0wb/t6Yl0KGmlPTDHKSCaU6j8K1N8TJfuxb0eMc7acQi6Tq7X19G1Y6uNGvm3c6tujaHcabzE+JVdqQcGwkrgdLGNhI2MLLyKwJqcYbzYeKrdTILoN37FGI+Xqe1is7k24TpORkCWinDHeEopbq7K1KQXuh6B69tu9NOX14sTcWV77xlowC6+PcbxN1GcYc+Qsz/5yMxYikA/llDEAgSvJQjLOWKEJcgJCOb4nZ6WKfVtMNjW1bxj/LFdWwcoslIvZatRQAQIEy+foJfDn/rPMt4m3RMYNkoxdZfzMXyNlK9qEY6KZiw9XKvHa+z2UMNrkNNYivBUEEL/w4LEYCLhvjHOCJCPbO/4kV6JAUfoYbwi1o072gj9OPEJlnoeDa8T1YI0CLScWQbEoc7AzoEjOneKqsHxD1DDfQgxGcfYI48HGk6PGWKumATd3gB8TlnO4Urj3J+mMNe4nXFxNBGSuqfiXJ9pPbdbOZhX7ddgEdmvoGHUuYgWET1yDiUewxAy4OjaaBbU0tocQlLK6YhXBlhG2cwzzvxPosv9opvEeuRXYcN83FooaGlV7LBZxC1bnd3JK9As5oRKPEYAvVsOtvCjJHcafylkS4p8gUMaqBL6/zI8Zt7lGO1omLPEr/jp8zjfubVytFMDVzs6YsCKSU1DUnBPJWHfp+LlGn/6CJswcrBXrOieUcNwrv1zDj52vGjv3uYVHasOWBBKOtXUjaqZf8VicX2PVUoJyBvePJWC2o8GBUBAkAgkrZzvfPgggR8gJNt+fG66X8SC4kZpQ+8Bc0qaN/7/CXyvXjyFXsUstBX4sjC/bnxeuu2WHjgfXGSmngFjR34TGtNm3qVXzSzoxkbAlImM9rO8CXXvGDM1ddpA++HTfRLqpl8ot5z5VXzd7dsFRSgN2VtxEMEGta2sj55RF/U+yEqtSox3rZbUxjoULsjXabum2avu14401vPIJBF8Zdaw66jrfl4vfHo0xppTW7JJyZ6++20PH33x7UhEaW0RGT7xcWebSSirSkiNKF3BXR2v3RR+1EJJSogUruzX4P79tleWOtmjNxo6Nnntol4/13tr967+Ta2pF5iJlm9KCanxPU447pg7T4lXbt8KiXOWVzlWzdeTSE+bU73a8a9owzVpymNIIYg82xBM4B9tfWYazIntWzQMJuvDmNnJIWCJiITLdC9WyCMaDxWGpv7IZ5xJPXaiG8sfd/VNuEUL8Ny/0G6vGcFDfACnbHruxtEAdCsp06P4fa7mPj1Ce3l0/0g3Dpm/b5kFyEoXr1nmD1m5K+6tu+MfxcgFmEGDzxsYYNQ8kEB/w3wnjWJ39Wu7BM1uIOwap5YAJH++/8yZKc1cjTKTb5Ma+n2dQdgjSAGHwkkK3eJ2ldKP+H585Xbc9cZ5qarxuWrB04zlTdXLvJfVB81rv5h6YNUhjnx6qvLZN2fyXNAhW2fvMknpS1G/MSEoJCIXSBktfHiAzjplIWYEHzMPm7Q1mZFAmIVMcBKgzjJfLvRIUq09yPJQ4SPoxw1jVUVnnQZFLKvLnvuz7Js9EdptaGlt0L5ZbkmPtyHSf78dD3oigPAiY2bFwqtybJA/JBdusIlf7tstCz4BZTW0tesHQ2F7yHZDSjfqrN+xdHyiT0QblVTmaMu84XXTPNfrgs322tVtXUqgK+21TaQpKJiCy0zwRgqb0wNse+4WOc+/j5Iqt5HDIIGNNKCXwWtEh/hi5HTLQZJQRGPmhib5fHi4WjsLrmDh9UvSkLobioEwoIQlMlvN3yZVMEDJ5KIrAnXxbwH1RgyuSy/9Q8+vnxwKxtOfITZIhflwoVB9/HqDEQq3uE/95lj+OQEiMjvQ8UztH3GecUiWKhSlzj9Psd3ppw+YEN5ylBu/Jzcz7QsdQKB4cwsHSYH142ZBsNu6J5CPCREEoeFIumC0nuGApjnWY4UmM1T1Gn1f7tlgBiqMoDiUUhHihP46rQJEu822xOBRPsYYs1R+WUxoy5lg4rBZKOj10P5yL2yHh+QM/FiYCMxoFxx2jZAf79qQYOoTYaO0oHlrk5cVdiLAZJulGJvkS/3+wXSIIuPkMtkcEAfSWUD/BTKSmxtaPv8vVxXjpEIWcKqdg0X0Gr1gHLgfh4WZy/fe1Mdqu85/I5xF/fKka7omKRl7ousRqlf4ajDuosYWTi4x9nB9vGCh4dNKPOCRuvi3tlmg3w1VyJhywRQPBEhuwKiFeKfKfVMVRNupcuCKEjZBwa5RLcHujtb32Rb8I7f0YfcbbuYcQKV1U+bYEtodEteFcrB2WZLLvL0im8Rlemczy48UCYeGyfP/xQOx2oL+HgMQXWDnetSv2Y7rc31vc3ZF7uhIhINxSkBHG0rCNg2AXxcB9EaQSAKMklE5wC9S7eO+MGAJ3wgPE3dzk++DFQ9wCgsUiMZuH+utE98neIlzhotCYsGYIBkUd6Nvi0rA6KOCbvi3XneTHhSvErWEV1/t2v5ILvLE0uOvlvi1KQBy42V+rNNTfKj9e7gfrPCFEaoTU+cb4vnHRxFAoUty3WFztbMi4OyN5hYnVLXYDROqyHqyeetmrakUrWpGZ+D8cdbtJOd59FQAAAABJRU5ErkJggg=="},47080:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHoAAAAqCAYAAAB8108TAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAkgSURBVHgB7VsLdBTVGf52s3lBlASIhIcQTJSHKLTWc5SWImKfYmuxtEq1pVDKoaVFaWk5altLCn3AgdpqsbzKsSjSyrG+6hNBRcXXUYkaNYrZAAES8tIkm93N7vp/e+8ks5PNullDDMx853wnO/feuTOZf/7nveN6q9+YYejDSMsKNZ1Z9+4HSQ7PFTbAQSd4ghmh99GHEYxg7y5cNH0adrclMXyWcAMcdIIHLmSgb6M79+eCg7hww4Et4AjaJvDAvvim8Ko47ZXC3wkvEC4QXgmlEMuFXpygMYCdNfoc4eXCagsZtYeERcLv6rF8TtOFn8UJCjtrNOET/hw2gN0FnSacZGljutmIkwx2F/QpwucsbRcJn8dJBrsLmv74dEubDych7C5oogk2gCPo7oEp118sbX8U1qOPw86Cflv4UIJ+BmX36t8R4S7heOFZlnH94Ai6T+O/ml1hpybBvPp6nMBwSqA2gSNom8DOpvurmmYcFG4W1lna5winCU8THhbeI7zf1D9BOFd4k9C8SWKU8Drhaj23gZnCGcICqBTvAT2nkdplCv+M+OD97UM3YWeN/pxwoXC0JoMsLmY8Kxyix6QLnxBuFA4VviMcCxWkbUXH+nex8GfCUy3X4DmLdT9BxfqbcIe+3nvCQcLboQo3BabrLtb3ONrC/kgBdk+vWqBWsQxQM1+G2qlyi3ClcLLwW+jQYAr3e8ItUIJfjuRB4f1YOB/q5TEwVXgzlJab22kJ/ocegOOjY9EKlUplQ9XB5wm3IdZMs5/a/LDwGiQPzjdHuAexwiSehHqhrO35UFpuMAcpwu4anQXlVwluWaLvPAQlXNbB86Dy53h4Vfh1KAEmA843WHi3qe1PUObZQEDPaeAfUKbewK3CXyIF2F3Q/P8v0L/HQAnjUqjAiX6Spn1sF+fSX3KVK6xJk+6OMz9BK9Cs5xtp6qePztK/v4bOPp5LqE+bjmuQIuxuulnnNqJv+l0K2qh8BaGCLu4yKbKc9xko374dSogUGHepftky7hIoAVfp+Wi2r9HnE9ytcq2eZ6DwUcv5jPBfN/EoUoRT6+4Ao16aSgZArIhROEuEL+q+TcL9wjOFPxKWCn+tzy2DCt5IvihMfyZCaeQKYbket0i30yfTJFfq+ebrua1mmS/fBEvbfUghvbKzoPlgzWvR1MwSYSHUA14lPAIlGAqcJn0AVI69XvhbKJ9K0HTfAGXyuQ/t21DbkijAraZrfCj8PFQqxsieMUAtOiL8Fj2OJdfdUD59uuW+X0IKgnaV5hVH0Lex91j9iClJbuBn6rIeDjrBSa9sgoSm290vGxlFhV32t74hK33hMDJGj4Q7J7ZgE2luQaDiACLhcPwLDxqIrAnjotdoq6mFv/xdhBo/hIPjg4SCzpn2BZy+cW2X/WWF5yHs92Pkv9chs2hUTF/EH4Dv5X2o+tVN8L9X0d7uzszEsDUlyLlkCtJE2C63O/oyBCsqUb3qVjRs75FCUHdQCFWxYtpDH8niCIsh8T7sY57ND/lYsjS7Eq5J00ebc2qjJl6pj1kQYRS+Bmpdeya6BuODWtP9Mfj7q/CYZRzbGdVvw8cgoaBdnjS4RDDVf1iLltde79QfaVP/qzszA4H9Xhz5/WpEQqFoW/a543HakoUYsWEt3r90NsI+H1zpHoy8az1ypk5Gw5070HD3/aLFHyBrTDEGL5qH4TevjF6v/vbt6CV8R3gbVOrDIIfVJwrxGag0qMo0lvnu36GqVQziykx9TI1+ASVcQxj8SpVRNsunfHjnQi1wMIYoREeQxZeEgudGCMOkMe0yBM0XiAJlCvcvxIIfFzBF/GSCNtD6djmadj6VcAw1u3nXHoSDwegxx6cPK8DAubORPnQI/PsrkHvlzKiQD9+wArXrtrSf63ulFA07HkBBybLe/EqOhRI+UG4++KnQr9vPh1p0YPmzxDSex9RmRt0/EC6LMycFaZgkliv5ZQdr4Vbt/Y8mQS1/DCqXr7CM48bF2bqd97IFKjvoNpISdPZ5ExFu9ce0tb5airbarnfQpA04BRmjRiAigg83q6whd9ZlCDc1o37znZ3Gc9zhZSXoRTD1odnjClbQ1M68mbmt+R+m1lHDaWpY+mRuzPJlom+xWTc/AFU3TxV8majll0Hl3vxy5C6kgKQEPXjhD4VzYtq8Vy1A0+5n2o8zRhdixG2rOo7HnoWsscWo3bQVwaPV0ba03DwEKg+J9gfQB3AG1L6wYJw+v+V4CtTnONR8+lxqLlM560ZBrkLl6t8XCsdB+dZUwLVvlkXXQZn+F6BMOC1BuLuTJSXoI8tXo3nP3pi2QLnl+3kJqBhcRSIRpA8vQGbxGTh2y0ZUr+z4P0O1dciedLb4fk+7f/8UwWBrXJJjWTChD+eCBwMuvuF86PTZ5n3g9Mdf0r/pq1l42YHUQHPPdXFuSmDswA0HFPLFwsfRTSQl6GDlQbSWliUcE/BWwjtrXtRHewbmoeip+9B/8vnR9Mkw+40PPor+Uy9E/rULUL1mXfTlMMD0bOiK69H87Iu9FXmzlEi/yCqWeUWJ1S9uBKSp/D9UEHWx7jPeboYS3AXyfeE/Teeybt0TN8/5l0K5jD2WPlqT4yPo7qKtrh5V192IUds2YMhvluLQkhvFCUdQt+kOnPqVachfugiZEmnXSXQdqm9E1jnjMWj+1cieeDZa972JXgI1ZLr+y7Ik69vD0bHoYOwApS9mXZvaaQ6EuJ+badlG9DyYDTAQ44voNbV/A6pUyhjCqJ9zweUnlvOZ1h02Nxy3WneTROCN9zwokfblqNu8FT5aBBG2d/YCDFu9HLlXzMCAK2a0j2+rrsGBuYvReO9D6CVQaFdDRcUUIoVG08P04otQO03oJ/lQGSVaTRrNNhc66Lv5UCuQ+KsPBlUMzqwBSkCf22pqY9p0h/ARy1gKl+6BLyNr7Vy2pKCXWsbtg0XQCWvd7qxMeAYPQqiuAaGWlq6GwTMkHy6XS4Kumqgw288Xs00zHpKoO1QfG6CyL3vSBKTl5SLoFddQ9k57Dm6BU+vuASTUaPrWwMEqfBzajsZfDw+3+BBo8XXZR3/soHfgLGrYBJ5IxLUTfRguV7i8BvnJVoO8cBAXHwErGZV5gzLdvwAAAABJRU5ErkJggg=="},83438:function(e,t,n){"use strict";e.exports=n.p+"static/media/google-partner.a21ca9c8d90c38aa1635.jpg"},45790:function(e,t,n){"use strict";e.exports=n.p+"static/media/gruntek.3573da9c347eca456a06.png"},17276:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMEAAAApCAYAAACMVU1zAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAB/RSURBVHgB7V15kFXllf/d++57vdHQQG80WwMuLKIioIAolNFMNI7GKVeMRhPLTM1MVSr5Z2omVZOaVGr+mKlKTFKmaowTnbLGiTIm7kYji+ICuCAogiDN0g3d9L53v+W+O+f33XceX19eI0RI/nkHr/e9++791rP8zjnfd9sJguBHABpRpD8PZcd+9d00fARIICa/yRGEt6T8LGIxFzEni343hVh2AJU9w0jv3IOOP74ONExDw7fuxVBpJfq8BEpcFxVSUkKedfNVOfLZDQuUcllFkcaS4zj3e3JemzuKdC4pyJ2dsZdj8s8V5jW/y29Z4dmRtAhA3IHjJ+FkAkwKfDjNXejZsBltL72CzqbDmLxoAeqvuBqlFy1G0g1ECMKyHHJ8rqxQGOS7y4IdFKkgGSEo0p+DxuPBwIVDznfDe2gVshhBIpOFl0wjfbAZAy+9icHX3kBf0+eoFoGoE61//L1P0fbYU2j4l7monFIJl1aDBUh5eYET4TCXcp8dFAWhEBWF4FyTZQEC65Kyo5/j2xg1dyCM76cwYWQYmaYmtG/YguNvvIuy3c2oGUljokAnL0jJ4aAuFsfhN95CxaaNmPi1tUB8ihQawTtBWEvW1C1lF4WgIBWF4FxSMParQvNA/rnUy0GADK87DjyBPRgaRerAAXSsX4+urduRaD6KhqSPsrTc52SQ9HykHcH9yQClwuAVA33Y89snsXh6FSpWXgk/UUZgRaBrJtYNKzNGJlPk/3GpKARnkSTIkP8sDpdezCnknFYWOGMEQLiTeD/O88AQRnd8io6Nb2Nw8xuIt7aiPjOM8kwapX4GKfoJJcCoR1c3A0E+5nq1wKjkpwfQ/sR6zJxaB2fB+UhJvVm31DjIJaw1a2SiaAVOQUUhOIuUZ3yMFQjf9yXSEwu5kTA9oADkYje9A2h/8WU0Pf0cKg61om50BGWpYbk1LczsYyiGULuLJMV9PuEJHBLHOZvFBIkgNSYzOPb6FnTMmYtp0+5DYmIFko4nMMs7AbsoCLGiEIxHLop01oiMT4YnUSAy6TTaRat/tncv+vv7DUN6jjA+mVLc2CCVxdGNm7H1l79E94fbMNVhNGgQfiyFVCwrFsAR+MMp8pDwPZSnPREQur8eRiV6NBIPpJQ0akUg2l94Fckt7yMhvkPCHx0bDXVOQmZFsqhoCc4ikfGp8ZPJJI4ePYqOjg6MDo8gmUob7H9hRQUSEtlxRJNDwqD7Xt+I53/6H2hoP4LS9DCODWcxrWoiRkZTiIs3W5JxJUrkGg+CkCoW8JwVAQgw5GbgVMTEl0ijRGDRxLYONP3qN5g/owHx+fOQrfDF14gZ42NsgO2NF2kMFS3Bl6B0RhhNmMuX//E8JAx/+EgLdny0Cy1HWzEwOISMcK+TKEFHbz+aW9vgZ5IIBrpw/I8vYOtPfoj6wwfF8RXd7pagaziFToE36ViJwJe4hPfpOaSFeTMCjeSTSwdZIJEwfbkfR+loTIQkLj/HMEXKdffvxbH/XS8QaxiB+Bv90sYRWgGRQGc0WzQH41DREnwJckWrZwWKuAJbmptb0NLSgtHRUfM9nc7IOUa/WJhZ0mGi+dsk2lNXmkDvtu3Y9NOfI9F0CJMDATRuAr5o+YxAqU4Rlkn1dciK9UgFaVR4cl3qoDVQTe5ImV6gaj10sj1xuCfLpZZ3tyF+/kuouecuxGMinK6HjEcY5sApWoKCVLQEX4LU+T0qWn/Txo3YK9ifPgEve57kb0VIqM2Fu1Ei0MTvH8bB93fhpcefROe+Q6h1ygUGeYapQ2mJYTSVxLH2dqPxERcGjomD637RegeJCDExLDCq9PhxtDz7LJLvvoUJo4Pw0kPiWwQYiJ+0YqNIOSoKwZchYdxDhw7h7bffFugzaHwBOsAqCBDsnyATC1aiwAQuw5cOGs8/HxOrqzEo96UZMjVa2gmXN8j9Q8lR9EuUKCswakS0vO+ceppMVV5cIkYBpvkBKvcfwOH/fBQ4dBilIlSu1JFEkcajohCcIRH+8CC1HD2G9957H8dF+9IhJqO3ixYnJOJ3RyxBWphQnhABEFiT8NAnju3sK5Zg6iUL0FHmYLjcEwc2tCi+lMsMckYSAe19veiXZzOeZwTHCJGGXSO4hlfTck88HkdFKiUJNvEjduxCzwt/AHoGER9JobzoFY9LRSE4Q6IfwOPYsWPYsmULOjs7kUgkkMlk8r93dLQjJcxoMrfxmFnXM5rNYEiyvYMJBwMTElh0/VpUXHQ+umN+XqiI/H0XBgqNCMN3DgmUEZ/AFzjkiVBRsMy9QcTDFf4elfhTkk501kdc/JGJ0pzPn38F7W9sRUycgpJRvzjZ41BxXM6AqInJhGTwd999F32iral9eU0tAT8PDQ0bi+CLYGQlV+AJxHFcQh4JeZaUIiVMCnFYp9bXy/V4WLiTzS2pgDjEIgxSXq9YlE4pi4vqaCXSUhaFLAhODvN4ct0XizIq9QxLm4ZEMHuknl3iKGd6e0xyrkiFqSgEZ0BODrt7AlFmz56N0tJSw5hkSrUQtAgUiIGBAfT39QlzCizi3gDhwRKJ/Q+0deLY3ia88/IGtOzYi5KUHy6hMBWE64gCavwYmdpBL62BMDOFjXWzjpMpMFloph9SiTj6S0rQKs+3ihWZd81qxCZXSpko0jhUDJGeAZHZVRAuvfRStLYeF9/ziGFgOsMKWVRT93R1Y0IsgfiECRgSq9F6+DBGJIwaP9wMf89nqOruR8KEOsP7nXDls4FPabE2MbEgaSm3baAPFVOnwi2Jm9ArE27G2ebSa4Zp+axYkmxpCdrFMT6UHMYBJ4HrHrgfM69aLQ42w7BnabJzSbfAuuDkLuZE2axXCj+c2MbgWI/zcHNjqWP6l6SiEOSIMEYnY7xJsa/TGlxxxRUmGtTT03NCQ+cEgPemxEq0He9ET2uLJNH2o7K7D7Pa+1Gyez8SvV0S/x9CNi4Ro3RYLld9mpWfhFdc+xOETH5cssMjqR7MqapGab+EW2lZhK1GRBCSCRECgT5DIwNoHR7AhxKlaq+twTf+6R8x/47bEZSVGYuSOJuMFoTM7ZvshQh/yNbgth7yfyyTuy8eMnw2CP0ds5QkfFysYtYoDSoPtXB/DmEoJHRFIciRavgzoZqaaiMIr732mnGOGSLlIJvIkJTl+xm0tLXiaF+HjH4Sk2WiWw4exEwRnHL6Co7qxS/AKsJxg/0j6I0No668AgOjSRN5YrSpPTmC5uNtGJRI0hHxIYIZM3Hb93+A5XevgzTKhGUpTWcL99L66JJwT3V/NtwUYZZoyNGeCIyQVlGYk/wsPo0nPo3nms9cOxVjEi+Tyfs451oAbCsepbMuBIGlCU/n3nPR+TNpg1KY+T3hdBbG3mOJxc+Z04hly5aZXAF9BH2WzvOgaOXWrg6kJGqzZOEC/NXFl2JDazdGWtsxOSYhzVQmDKM6pxaCBAG9MFpP7yBKS8rgVkjWeWgQR4914qich6TN/QK7PBGA23/4z1i87m5kM2k44huYHFzOZ4Dz5UUhmzuo813dEJ118itkWUM1KCyMegmkS3AZrAiD+D6xwYxZMwVp22hZAomJE3PKwj8nlkCt+xcpuHNiCU6Xuf8UZj2b9dukAqATcjplsPncDH/RRYtMyJTLJmgF6CwTJnV1d6Nu+jRcvfZqXHzh+ZjklaLs29/GHyTBNtzSjKkUNG6scYI8ni5EfsCFeaUSNk2jfXgYHYM9Ev4fwLB4wikRpqRoVX/GLNzwvR9g0S1/EzrqFRWGN8Ndm45J3J0dCsw+ZiNO2ZxnwDyGk9/IJpreN7mRLJdt+KIC2rrQt+MzDL69E937DqJLnP2ZP3wQ81YsM7DyXAiA5lXU2rCe8ch78cUXzU0rV67E5MmT8xrRJpr5d955xxR61VVXmQKjjdZKyQwff/wxvvKVr5j7lNHNenqLWM+2bduEgS7CBHEcxxsEPk+mGpbJPyhQYsmSJSfdo3F2/fz6668bmDJRNE20Xi1TzyMjI6bcffv25ZNcmhArEU26YMECNDQ0oKqqqkCfwzOh0LJlS9Hb22vaOSpwpba2Ftd99auYI8w/he3gzckMaq9YhivW3YlNv3gIkySsHwyPhJni8Uge43LqrGEWDy39fRI2HRAGl9yDE1oRb9Jk/PXf/QNWfHMdXPEBAi+GjBvuKHa0EO0zwnmikG7fvt20l/POvvOgNZszZw6mT5+OChEkHSsqB87Dhk1/RNWkSqxcvlLGKm4SfUnxC5KSleYrA8xmHknWueKgp460YO+WdzDQ3YO6hnpMumopJi5ZAH/bdsyY25iHjTpv+vnTTz/F559/bsafB9vIdkyaNAnz5s0zY6uKKipAvHf//v3meVpj+/e6ujqcL9l6nm2+iNXX198nGc/Gyy67bFxmpBA8+eSTJvZN089JL0R89q233jKDy/vKZEJIhSSdg7pp0yZznjlz5riaV6+//PLLxgFduHDhuHWzLC5jeOGFFzBt2jQzkYXKVSbnYPFeDvoFF1xgBHLRokWGCSorK9HV1WXq5fMc/Khy0LJpDTh2yWTKXLvssiW48sor0dg4G4myUnhmI41j9gC7cRcTqydjpLsT+z7ciarS8pPi/kahIPQtKCDMBgflZegT5u8R+ONLOSlhwFEulZhSi+sf/C4uu/suxGtqTHiVW89841yrIAQGruT330s/usVKPfvss2hra8OKFSsMgzEMyzFhEpAMxDGxx5eC8/jjvxEn28PFiy+VKJZnhG3IDcfBk4RgXPwgv60HTVu2Yu+bb2H6eXOx6GvXYOplC1B+3gyUzJuO6sXz4UwSKCTPazRNx1aVI9tAZj3vvPOMMqNG37x5Mz788EMjBPxN26XEzP3vfvc77N6927SdCmzx4sWGF8rLy83arjfffNPw5VRG26TOH//4x//qUdrVO1dtHp1sDg4PFsRzISIDDomZ27FjhxGWTz75xDCCdiyqkalV+iSOzg6zsdRGhUiXInz00UdGiscjreP99983MXpaLgp2IeJ9TU1NeOqpp4yGf/DBBw3T24PKQaLAzZo1K/9MYdKF+g6WL18q52VGKIJ8KNE3G2jU/81Icix+3hxc/q17cejDXeg7fAwTzBuC7KCjCAC1fC455pRJ7H90CN1DfQLrBW4J8yRFQ3aK9l33tw9iybe+CXdavUSSpJRsuKE+7mJMmdo33eWmBxls/vz5eYGmEnjkkUcME1599dVGODQJSOXnc0uoJPxisUSuraGgJbLc+yyWtC+J3b99Hp293Vh23+1IzKnFsPRhOJMUwetAtyiW/r4hxA6KxfASxsqSoTn+OoeqPKl4VBDZBuZmHn30UdM2zg3bq89w/wYVNcfr/vvvz1tuHvwsyh4XXnihQQnPP/+8UexENSRXM562eYkSO8/fNPpRiPgcGZ+Sx47RUaRQjOdgcoL5+4EDB4x0U9ILaUROGrOzvJeSHiXdycWBICbnMgZCIZZ7WOLyhdpLIXnllVfM5zvuuMOYXGV+nXBlGlq0iy++uKCVOvmSm2O0bL4/jkIR+S8l9/cJE/eXJFCxbAmu/9734YsFCSIFka3oMHNuEhL77+3vQXt3mxGOpGjbtOQLJgvMeuDf/w2rf/D3SDVMQTIW4n+P0MoXpzh7Yls/iWKWDbJj8hhurg7tNw9atMbGRuPUEx7pWCh2F4ZBRhx1EyUKuyUQKECZOLux1l7s+9kjGJX2XvWduzGhfiqGhGd2fb4P+48cRdyrxNzZC7DskhVonDXHjBGhKBWSYndti9Zp2p6z3BQWMjTnWIn9oYWixeb833nnnXmFqkKvS1rIx9deey3mzp1rrCCtXjhrOBEetLG1TaoliBft5QE2EYvRCixduhTLL78crRIaPHLkSH5wo8xIc6swg0JAbV+IYYnVKeWcGNZht8kWWn7etWuXqV/9hg8++MC00972yM8UEA4A76WmizpNuk9An8uv2TkFuW64Xp9nHlxK7eTgiG7vCiPpITRKyVF/zRrMv+VmDDBClHNe46LdS+XZdCYlOFsyxiMpDPgSIhXN2ycMWnvVKtz8kx/hgcd/jSXiA6RFSOCVCQKKhXuXzT9b8TgnjgD5uHzMSuwFVuKKyomws7q62lgJmy9UEIwP44Z94i65Un8EzsAwmte/iKMy5xfceSPS9RNwtKcLx5qacWHNDCybswCNk+tRXzoJ1YkJmC0WtlasF/dQ9PX1Gyip5AnM46HWV4MVZGYqMPUJlFpbW818UllRAdvIhmT3kwqP97FP7733Xjh37JhGNFRqeNZDNTYfUktgD1qIX4G9+z5DWUU5aqSBzKaWC8x674P3kSSzx9wT79zJPUMoRMlevXq1GXQKkP6uDMj6KCBk1ilTpph22AJoO7jEuGRuQiZKOttAISCuV8bWe+kDsAxCHWoH/c0OpekEqPNWyKJFQ2+u64y5brK/DMA5IfdT1CbJMVEwdUmJ+AJ1tVh4zzrUrFqJAWlHXOBBXGBFUpJeJeJ8dkuVe8QHaBFGn3vd9bj7Fz/DPf/9X7jou/cjMf8CZGSMPRGOMm7Ch9UW40uYl67kBcC1xkAVAsfAhrfU/MTMZKq77rorjwBUEExARDA/E2SBGwp3zBUGzQ4juXETjrz4CqavWo7ErBnY33wUPRIZmr1wPiZPqUaJ+DCx3DgEgqTcRBxTq2skhFqClPAcd+Upj7Bexwrnsl4qzQ0bNpjP5BlY/MRgDH/nvNshUY0KqdBr/+kj0OLRec6V75m9sIwSken0IZsZ2SgymR0hsTUEnyMWX7Vqlbl3ytQpBuczStS6utVo8ejKR0ZSiAMvueQSw6x0pi8XC0INpJ3Ys2ePmTDeQ0FhR2n6VEPZbWFdxIz6PGGMRhnUiVLLwf5SI3AgbHgQJbUCp5MzOG3KO+oySVJ25YXnYel37sX/STvbWztQHZM8QPkkHBgYwjFJLjVeuwZr770PjasuR0lttWEivlbF7EEg/DqBeM54DzHbQYYnNKRSam5uNmN76623GoZSxrfHx6g8J1zi4epmILFWu3//HOiIzFuzyrzpYkJFFaqn1SERT4S74tR1yr09w2SNhVc4D8ncbjy7+VS+1O6cbwonUQWRwA033GB4y45isu0k8ufpEAWffocqSI+an84xnVgWYk+4CgIbxMFSDUJSBuE9hwTXmaUDIr179u4RjRbHjBkzjBbf9fEuw5wmk2ppTQoBBYYHJfuJJ57Axo0bcdttt5k2MHRJeENHTb15lsGGE8LYRCGk40xh+eyzz8zEqYDSwhAe0alXjKiQQIV9PGI72AbWR6txNoThpCiZTH71mtW48sEHsPlXv0Z6SMKBpXHMvHoFrrvpBsxduwaeCHZWJi4dMIwYC/fe6EsVT+yy/JOITE/nk+PFM5UGIyyMlF133XUnQUWzwC8H7QwnZ7IY/mQ/2vc1YfayFfAaauBJJKtxQqWJHJlcms59LttMLjKGJDeeDALY9WjWnZaf/iB9u69//esmikVeGM93PdVcRonPKz+bmtkAes+c7GjhGr/VVZJ2ZSyEv5MBqdW3bd+WN0G8hw3mb2vXrDWCpozJ52hZVENz8Om50yLQY6e5IjNTYulo835qDJZNYdM2qKneuXOnGTCGR+kcqfASO9Lpol9BATEDLoNLC0DBpobJvxNoHHr66aeNANx77735qMXZJJd7EaStC75xMz75eDdKBQ6tvPlG1F+yCI5ofl80aVKgBOENMb9HZs/4ZpGdLmQLHFg5gTMjKgeGIcPdcIGBkXQyX3rpJYOvoxG2QEOtym8iBHtffwvlIxmUVU9BUBEP/YVA4WAosNBncm01/pb0g6+l8QQa2WF31fLE7mzfww8/bPiISCFmrTdS3lRIxzk9HdK5Jx+QPPUB7GypTfqdZ7sSlaSDOStw++23o0Ywnh2X3/zGZjOYO3ftxOorVxsTzobTrPEZmjWFW7REhC+MBd9yyy149dVXcc899xhnnOVxQnivRohsZ5uRqBtvvNEIjF6nINLZfuihh4xwUbPxGtvM8Bo1PE2sHYLTs91nPmP7DWebGD6NJyqAhjLc/fDPpdKMZFodsxNNemFerV6SYyLz5joT6PB07UL4Gkf5Fze/fjHZAq8aV0nHh2PCHA7j6rSi9gI3+ncxN65LQQUKDaFCwrxuSpSO+DjipJh8iAqA4XuZ88xoSjR+YF66GouFgYFBUVxp4T8qUPoAfGtHTAQodJJDPmLOhnzA8CcVEqN5VKhm7HLWnEiD7abCW758+RiorArR9vuIJhj9ouI146q4X8+FKCogCiM4gJTQWtHoUyZPMXjRSGguRb9o4SJUirmlv6BONcugFPJ72PmwLEaJ6NSSOWmONSGinaEW5rPsgP2CK3acxMHSzmo76UyzTFoCFR62mYNWI4klQiViTjvyo5Eh23mMMss5IWr2hCTBuCFGtP6wMDr3grlZx+xF4OFo1PMskIYdORem+lwETJUd/S9qWDvRyetZLuHOhKier4HhK2QyxzshQBrZtJ97+W+Q1/hubhlpTMLGTkoiQYdb0LX/oLgPMcOIjKJNlXkqKTnhoCts1XkhJF6zZo3x+6gk7cAID1pqJlyJCBg9smFu9DOVPlEG+0XLQnJ5UU3LeNpOcbQOnjIaIQid10WiWe0wIg1hKp0y8drFooFpLZqbj+Qbzs6T+RReaJlr16413+lLEI/a7eG91Mh8VmPKGuai5qLZtNPwag0oBPy8devWfB8oAIRddJDph9D/sC2YPfE8h5N/bnZmmTU3lK9ctCXn7ub0upNfj5MbWL6By1pzHYZcvdO0AjapoCuz2ZZQ4+d0jm0yuQ9h5mzKN2+3SIUbQpFIZVCSCpCSCA+1fmBhM4ZQHcIXea6/7Ti2rH8GfcdC/5Lx/kmTJJEl8Deqve0oIOeRy3powWmhaNlVKfMezj2X6fA7I0h2FFMhk/aRvEhhItRSFODyAR2QUyW2eA8HQRMPJGp4alsuTzAdthgnbmK9nkjxReYas3yafKG0UtOw8aYROaajRBOfMoNJK6ATo6E8+gV8VpmZ+J8QiiY7GvPWewiR6O/QYnGJgMaKOajXXHONEeL169ebXASFgf1jfzkujJbwM+8/V8TRpC420y3/i0uzy6XbpbSanETztgk//Is25uDnbH5zPmUhFuBPEgKShsA5NwxWcJ7IZNS8hAtqMfJ5GSbdTCJQnuVCOolglVdNFsHIoGefhBx7B8I37HEeAv7xEREYySS37tyFLU/8DxY2zsO8RRfjuIRQDZSROS+V8aWF0SVU5I1Mxh/Dawza3HTTTSbgQqjMeVPi3BPu3nzzzSZhSwgeDeSwf4xAPvfcc8ayED6rL+GR2Uw6POds2BpRiQNFZ5UPsWEaMWJcnkxmYA1vDE5kUZ2cA1UnWvfSSy7FiPgBZEIyOstgeTa2Y73E//QNKDysK5ozoIDQEtCnYJsZNWBIlIIYbbfCFzr7HCAKASERfQvWz7quv/56Yyk4cI899pipk30h01MgWAcFjFpDoxeFxkcpCiujYVz7fOKhrNmLPEqL7AeGwbK5t074IbCQ8jI5iOHk/hiHZ9rjmUiRazan6G/jtQ0W42siiZCTjM/sqTI752TdunVmrLXP2g+O/axpDRKpqzJtKiNcK61E/PKl+HzHJyj7ZDcyT/weiVtvAeh0xjwMHGzC9ne2GQi1VHy9etG+o0MDaDp0EHMvvABTGZEMK8nzWnl5qSjWhrymV01OZUaEwJAuYTND73RuVbFxpQBhEdevPfPMM/lQKOebQsBIGBUfLQrnPz9PUvgmqXgtHzBbBMdZcmprWW2YYuVCERY7o8uO2VBFsVmhuuyJipbDjkSXOGibT7UzzF5Xbpen/WG5uilG1+twPNhmjXRF1z9p8pBai2d9VpOOtlIxyx+YDIuH1lHHQhlPMbgmJ22oYgcA1FHXMvSzhpo5sXa7CwlEFPrYc6DtiV6zmdFEc0T7Z4NwjwJXi2ZbjuGjn/8CfVu2ooorPhcvQqqh3uxzqJg+A7NEsTWIdRcJQ29yBHv3H8D0aTWiCOvHKBedS37WFaCap4lifOWfQn3U51ke50XHg2Nk82GuPMeRmzfJ57XjLYyzmchmBGX8tBkU75QaKGX2y8byz47nbEaZ1WroWJOc80nsSbMFNArrlKH0Oa3bFjg77xGFVNEYNg8KDi2SQglaDn5nX1UYSCxToZyelYm1b6xHw7V8XmGjWl1tj5alE6rladkUgqhARMfBFn57bKPKx17VqWMdXgj7FZgxEQalsPP1Ml2dGNy9WzT/QYxUTECZWNx6CXY4kt+hk0DL1iWWpLmjE9W1NZhVX3dKCGfPtz2/2o+oAJ+qDNvXi5IRArlpkxxr9eZCiYhog/SarYULMbSWqYedpNIJKER2W6JlFoJs0YktNBh2fbZmteuKll/IGul3ZRxqGjKtavMQz2bGRLASucyobQVI9tIUlqOflfnHswSqUJTh9VBhUEH5ooRS1Nm3AwK2Qhozln5KeJqb/MPoldlNZhwE8S0D/pVNH12S+S6fWIUygZajohy4AWhkVDSytLFKwujlkkyjeHruWMuqbYsqWlsJ2xHKUwVzor8VCoHnynG8qFYYj5G0Yfb9ugJ1PJNUCIJ8EWaNtsEWBnthm82s9rkQpLOXiUejEIX8CP3NbkO0TcrMxKTq4GsfooyWj7FHyrGDDbrqVM9R2GJbAy3HhkP6/VRzGCWbocb7zWYm89lYy1A4mQWmqHM1acaT4IETx6AIw76uPqCjx4xLaVmpOL4J1IoPWJlLmNK5jkUgjtYZVW6F5iM6j1Gy2xzlw0LP0BKslXMjilSk0yLD9jAxXf+E0iBI4tchsYoMcZOmVk3B3NmNwvzh3utY/vkT3/7SJELx+P8DK70XY7dj/EAAAAAASUVORK5CYII="},4943:function(e,t,n){"use strict";e.exports=n.p+"static/media/impress.4c661be51c068731f14d.png"},67580:function(e,t,n){"use strict";e.exports=n.p+"static/media/lightfilm-big.00ac1585ce260bc9e11f.png"},77353:function(e,t,n){"use strict";e.exports=n.p+"static/media/paint-waves.1ffd7d359f9963eb443f.png"},45257:function(e,t,n){"use strict";e.exports=n.p+"static/media/ana.041d4750929032a2704a.png"},73910:function(e,t,n){"use strict";e.exports=n.p+"static/media/anamarija.17f53fddeb7213c2e657.png"},60879:function(e,t,n){"use strict";e.exports=n.p+"static/media/goran.e6444ae0e4bd74e0aa8a.png"},86475:function(e,t,n){"use strict";e.exports=n.p+"static/media/iva.aa65a40aa661c462a5d0.png"},81078:function(e,t,n){"use strict";e.exports=n.p+"static/media/ivan.7eea499d6eebe6492ab6.png"},57093:function(e,t,n){"use strict";e.exports=n.p+"static/media/katarina-c.652d3bdb8b609533710e.png"},34346:function(e,t,n){"use strict";e.exports=n.p+"static/media/katarina-ms.a43585d7f52a9e080362.png"},44249:function(e,t,n){"use strict";e.exports=n.p+"static/media/kathryn.9d2ffd49fc60e6f084d2.png"},7917:function(e,t,n){"use strict";e.exports=n.p+"static/media/lara.bff43d61e2248babcc8f.png"},10693:function(e,t,n){"use strict";e.exports=n.p+"static/media/lee.5382d0c3046310d4f7c5.png"},2038:function(e,t,n){"use strict";e.exports=n.p+"static/media/lovro.63109172443ce66a3c2f.png"},14987:function(e,t,n){"use strict";e.exports=n.p+"static/media/mihael.aa751beffe243a1b8591.png"},2342:function(e,t,n){"use strict";e.exports=n.p+"static/media/mihovil.4cad37e99ea5a71431fa.png"},95975:function(e,t,n){"use strict";e.exports=n.p+"static/media/mladena.bebb8dc94beb89e493d3.png"},34545:function(e,t,n){"use strict";e.exports=n.p+"static/media/nika-ub.12303fb89e8a759aa8e7.png"},11977:function(e,t,n){"use strict";e.exports=n.p+"static/media/nikola.7be92c82e8ce67cc9ccf.png"},75911:function(e,t,n){"use strict";e.exports=n.p+"static/media/nikolina.77e9c3b44e32cbe73ef7.png"},12553:function(e,t,n){"use strict";e.exports=n.p+"static/media/slaven.b3ba1af97c838df48b52.png"},26324:function(e,t,n){"use strict";e.exports=n.p+"static/media/stela.1ae5bde9870e8fca7b4d.png"},19453:function(e,t,n){"use strict";e.exports=n.p+"static/media/tomislav.46cf09637b6a64fa558c.png"},31978:function(e,t,n){"use strict";e.exports=n.p+"static/media/tyler.ae3a2349365a5e7dc7c0.png"},44708:function(e,t,n){"use strict";e.exports=n.p+"static/media/work-with-us-nika.e6278f373c6687160ad4.png"},86777:function(e,t,n){"use strict";e.exports=n.p+"static/media/work-with-us-tihor.73c17f063f39d04925d6.png"},19425:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHYAAACCCAYAAACTpDweAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABIZSURBVHgB7Z17cFRXHcd/d3cDSSBkISGQwpINIKENStJaa0udJjM8tFYC2nZadUoLnfqqBVHpOE6bpP7hsy3YUceKlNaOWLVC0NEqzDQ409coNDhCCdJmISmhJSmbhPBIyF7P99y9m93s3d27996zu7m5n5lll/tINvvd3+/8zu/8zjkSiWXTtAJfxZySj9eQg27qljRSWXE1Nb8g1ZNBPCSWJzd/awM56Kf1n610tPOPXFgziBTWy6DGRxvJIQ0eI3r5T2QaF4nD6y32kkN2ECmsgwGCwSDlTzJvEI6wOUawjwmb5wjrkABHWJviCGtTHGFtiiOsTXGEtSmOsDbFEdamOMLaFEdYm+IIa1McYW2KI6xNcYS1KY6wNsUR1qaILmbTRA4RXRggGrlCExbJTVQ4lcgtSAFhwt664g7v0eP/0jw3ECS6OEgTnitDRNPLSAhCXHH3/+S6pu/+4OVE54cukwNjeDj5+fc75HVkEMuFxZthbuZlyeVKWLgDF+RAVDAl+fmQTDuNimupK8abwJtJdV1hEfvFk1gbO0ITFjdrYydNTn2dLNPWruPy4bmLpDZKA8uEfa9DbmSiNum9Xs8f5cCEJfJ6PLS74025trJWCuq9zxJXDFHlNER1SBt/gZd2p3ODaWEdUTOETHVn3pY36b3clLBoUx1RM4ckUWP3W7Jfz7WGhX3/uFyDhp0cMgbaWymfntFzraHgCd+akIf7fENzES5fJOr/gIXzIbINCAa9M7lViYW5ZOQJyj8ktSa7zJDFSpMJyQc/GWSwz16iAiRdLp6njCB5KOXc1LSFZe3qk2RCVCDZdOghY38XrPaEfG+yS9J6K/hhrK+qOzJLRJFXXPI7W+RNTp1JshKW3UuakdL98aJdZd9IS6anI+tUWk4OZkjR1uq2WNckLqqfHHKGZG2tLmHhgmWJ7iWH3IJZLcsja67Ik1JYK12wg/WwwYQ1WsdTCuu44NzGJdFGreNJgydYqygXfPkCH2+Mw8W+apMLEt+HsppLF2lcg79xUr41yQxko7SCqKTCuvLpSVkmyxk4R3QhSWce3YZpM+KPo0bq3Fl71EohU2VVWYzs4u64NfpYQleMbwETdQ0J4PKl5OcTlc5gYN4uBXBWlge5pfg+bUJh9aStDL8Rd/Lznjzt43l5ihuzA1YmaOCOuzpio2PNHw9rRShNJhjov0BDfaX0xGMtkWPVS31UXVNBc3wlNJig/NTNxJuSoCYKKbsZsxQ3HhrHZTUut/V1X54Q1ytSPqMpLLOKdWaaVoj68JefJVfwI/Tk9/bGnZ9bUUqfXF1DGzauZK9LKB3wTS9yVvKLx0UN7N+to/8dgxWRcOu+N6m7qyfh+a6TPbT9qf1048It9IfnXiEH80gyxbjiOGHD/VZDQND6mq9T87d36L5n84YdTOhecjDH2HY2TlhmrXVkALhfCIrndHmp5RA5mCfcznJihH33hIzujZ8McPytU4ZEBf1BY/c5xMKCy6Xq65jgSas/pJfTXcbc6aKrfbTy1pvp3Ps04UASxtJx6ah2NvJjOzpkLwlKSCTijnuWUYXfRzNnlUzI+Tyo+7JyUhZrZ+Pb2Ekj5vqt6TDNW8if0dWZXCi6+it3CQlI1547LVfgOSKsR+L9IMNcNbdU13UQ9cjZp+jGW6p421oys8Bw25wOx4920sHX2ymXmJxPlnPpAvGdPyKu2Gg0rIK2Mh0aH7+birnlyhQ40UmVVVUkkud3HOKjKavWiv096SCk7ktSgl/+o8Oj8H4yQdG0Qrruhio6+EZyq1i1upZeO9DOLRbAak93tbM/UtwHfuRwJ91Ut5g/262Ibiwsazjqit0usmTDowc2pfbmGx5azsWEuACuub9PrCs+evhU+IskoFHLNcKRMReWjcLfQhYAi8UjERCxeuk8WtVQG7FYUBwOpkTRGejh1nqUPTAoYed+sxyencGFZe2rZVuUNf14PRUVaQuF0R0VfNCZ4LUDx/gXqdhbQJsfbaD7H1pBv7d3ftqPf9QWxzJhy1l0/MtdW+hLd/+IBgZiLQP9VhW4Rx/r7sCKj/2nh94TpPPBVzvpwe+siDlWkF8o7PfpAe38lGniCszR5fEkKl80w6JrfPSTpx+kn/5gF831l5JvXgmtbLg2xv1CZAwAwIrKdXaVjKBVP5XtAArj0Fg5R5Swg5dpuoflF/0kgKvmlPAuTbSYY7njnpto/dqn6Ec/+zqJAH3XJbXz4o735UAbK7ISJG+E/C6Xhe1rNAP9yUsJMQ577qxEv2lpYhab3mC7XtrZwER0u65yZTi72S6IigVWRBHCuhVqh9ZqTr/bQ5/6bPK+6a23C04WuC5E0pcqGOQvKy+gWenlU8YXTFMXy8ZUkADebj8V96FmnljLhKjoP0cHcXaErzRDAkBZTM0N8yj7jCYk/t7yJk+E2F1UwBJOxR72t/vJYt78dzutWL046TUiAxj0kSEkhD3Cu1Wl1Hmyl/Vhl9NEgQ3qkNeqRNvB14/xuqd1X7s5ZfVhF8sGvfy3Y3TdxxaT1ex94RD9/MdKdWR0leRHahbR4mpznmRyYfIpKLkA09PvkQ0uEKKiivmXF1+NDL+V+wp5mjCRuEjp/X1vG/36qf2RwYNbVtbSR29YbEmE/MY/tQci/nOokyoqzQl7kf2JZXMzsIiISQy3sRD06W17NUdznnhsL3+gD4saYlVgVCMi4wS3qOZr8WXAFwMP8JnPLaMHNjaYEhj9V5EMD+X4koGseU1bWARGTd/ekXJ4DigjOOkNbv/5xVf4w6jAB984FpfKtBJkrfImUc6TlrC7ntnHrTQTFQ+qwF+8fzlteqRBd9fppb2vJjzHZ/GZ9PT5+bnvhoFuYVEzjA860zy/fT9z0220/cUHNbNI0aCfuntX4vdYWlZIBdnuWmeIlBlLWOfnb2vKiqgqEOyTH21iEW5L0uvQricj+wmTjJG6jYWlig5G9ALhEHRteCh+MhdEd+YBjZJU2Ke3tUSi1Vxh+0/300stbTziVkeOIKhaapMMn1/c8GCuAWEDpFHIdvzoKR4o5SJwzX94ridtC013yuZ4JmEb+80v/4zsRKrAy25oCotAKdn81vHINUtzYVAic0DYuA0EctUFmyFZJYcdcbEhyxhh7Wit4MZbrB9syGU8FGLCRmVSkF2yGxiDFRU4YaETdQFqpBq11qfKBh5Zoj5VV1hqrvRZrQKDEKiEtBJMf+z7QBkMwOovqpgQ+J23lOPzFrAUZvZ2BAt4JHnUYnOtz2oFTY/fZam1QrhClnP2LYw/B5FLZiuvO08Qr8zxLYi9Bl8K0VbNfm0Q47FB1WJb/2EfYZE+hKiYBWAVEHW2b3SNpt4zRD3vKf+HleJROksRF8LDTbcfJlpwNdGpt5XzsOol1yuLcYuCeeEgSmMCqsXqGYrLBHfft5wPwCNPjTmtx99Kr3lABPzErzdYbqmqqBAHQkHEqqWx10FsiFnuU4TFVqI9ZxTLRRsMcbs74y3ZSkIy9XlCzGKxAh7GMXOBqz/so+9+/+6YY+fZ+CrEbWft/0DfIHW/28uzTypoR6dOK+BlL7fdXmt5sr/z7VhRIdRYQcdyholXySx19pjuMxdX9LIMzFg9cohZrCt1gXemQDF18RhDKy4ppDn+Kqr/VHb6orA8WBisr/sU0fxrYs/j+Bl2fGiYvdfpqUUvniG2rWUfYcDlzlP6scgN5wJ9wdxajBiuFS4XwFJVC4THwDlYM0SdxY7Pv3o0eBoL8trqQmW4Bm2zKCRYbHmlFHjvHTl4uqs3ZVEbJlvBsu2YwEhE3zlFMPV1KRNl9/PH6MzpXiqZ2Ul33hcbnEHAzkAvC9pq+FxgoDYb0W0+2lpRDLuZxeIFIuPzOspdEs17tRLRs9vTJlybC+vkQRPrxly81Etf2bKM+gfiv+CYZH3nupvYuPGo59m+bV9MoTp+FtraKwLERVdnbqXU5gm/+TYWgfpT3YSVYU6/K3bdQwyk9xv8FXn51k5NRBKiN+wyYak1yxTrGy1mU7oTfNFPJl51zTwm6s1M3LORc7Dg+zeu5CIiksa96AerXsBqWFeHL22rDrSf1HtjJtzwRYNGi/tQRWimNFQVQO2TXl8fe/73z74SyWT1Bwf5Myo7Nj+6mg/2w90qwiqz6YcvFdJgsIRO4VJJbDcHhEJ0GM9cWFkmXft/i5ruOBb0X9GPNYJscjNEeF5YVSKLwlIHKmhDm7+5iwsNQe+4R6nQwJfi8Bs9POr9+LJlkSi5/TAJxy0rewNwYUdC+oQ1ul5iupxnAZoRYbG/nNlCboiabCOK6D6yukgKjkVbus83j/79Wjut+2pDREy0z+gKiebCQJSww3kU4MsFpMg8FU3LzKSV0qsoq/NX1cBGT9oPrvado8prpBGV9reQWzG6Qqrr5dmnhSQWiVorayXefeVRcWWlFBy5MhJIdZ9R9zjegBjdSbKYEL3rhNKHBUhY4BE9Q4AP5cmj2aqMEKJIfW6kSpG5vwOUYnW27q6JsRJ4orQfuil94T2DkD1KFAjx6z4YzVCJzg2ryC7ao76OCDssX0E7a3i9YivpY9FmtisK1bQfLE5tO2Gp1dcr5yEcBgb4tdNHzw8OKtG0Kqo6eCB6vg8LuNtms2ST+v+IsFPz8ltT3Tw1Q21ssTeDO+wmAGm/I/9iz7NGR2YgptpuQvjicK4XFoxPJnrLFTWYwv1Wb8WiBevmbIv+f0TYnfu+1jaX1qPh1UwtIjkxUVyximqdKhASAiPShVgYmkOApSUo2tfRYEosyDbJ7tgt0GJmAnhLitqCvQN1WjeXzynJyCy7XAciol8KK8VIz/Cwclwda7VK0KJ0ukYS7SmPcsMgRtj+3gFEVXVa9yIizrWFnLMJBC4U0H0JnAxQxZT0FvJhOZnmscdiCsbXb/rMnkQ3I+skckJxNBNpKoZZJIl2jrVWECNs09a17AK5lbLIBJrqaBq0rVrWCuKmeNz22ZsOUBbxOdaqm5BM27SsFcRNo3z48fu3Hth3uDFTbncsV+g87XxuJ01UgsEgVegrmQmUL5CaEp2MExbpxeaNe1p/tW1vnXoMGzlkqpC8uMxFL/01q04jq1QtrKHln/DTvDnJr2PjrvXJzmtOfH7gwYbmQ6+316nlqOjDZioifuSRhzM2PDheYcOszeXztV2wiuY0Smzk/ugP7wuqpTCZioirF62gGaWOqCloTeaCVRJOfL7KN3Pb5kfuokwxdUopXbtkNQ3lVpFirhFgLvg+PRcmXIPikou2rr592UaWmPAeEDynB6J+un4LTcorpKFL5KANRK1PFAWPJaHF8jFa5svrVtbSwjmr+Ycvgtkzq2jtqkb28xUXfNmx2DjQX3VJtFavqOF7khM4Inc885gyTtv9fjv9r+MV6j7bTucHzRW1QdBrlzRQeVlsdX/97USLryOHMBCVZZfqyyolXeVLKinXefrzDvoGe9qN1xBBFQIif3Cukz0f40IPDacOrmZ4ffz+ijnXxgnqoEmAibo2XVFBSmHPdlKN1tqBqsjVVcrizhB24Hwvf+aPIUVouHA8iqboi3YHzpGDAm9Ty9Jwv9GkFFbSuT0aAp+S6ebzvJed4AkltM9ectMmxDlkED27v7RQBpnIUTHaUzae+43yhdK9ZkQFKYVtfkHayqy2mTLEBO7HtoYkqp29QNpKFqBrv6am30lNmRJ3onV3VCudPV+qLzfYnmqheyMuLq6bMGcwQAIZMOWAxg+8TonlCS5IVGmVlUaT1g5rTb+V2tCnYm/oWXIwRLSgyPmabUuT/B5jNN0l+0Mhgou2tBYZG9KvbyTbwasd2MA4UrWixBzz+8whQuCvfJ/sRKs8wobZ2IgZZRDLti1oWiN7KZ/WMDcDgevIBLBYWO44ppUFRC0XXbQzE9aphZD9KP72C9l/uovWDPRTg9tNdT3dad1OX9ySZl1t9kHqrzU0QgdYYmFPtsSMRvhGIx0dsve/+6nmeBvV9J3l6UlksvzJ7rnzIaKScspJePDDhGTt5QEJE8bdbODbwm6KVWRlB5mw265hbhubEkNoTCupCT/Tqi9Q6/wPE4U3VPRTdgiQMrLSxmKIk3wFuxwVUYusCJsILngh+dGtij4Oq8+H6FfCIkuxz9ifD1trRt3iHbtnn6QsuB1xkSMhvuprMNz9QH1uMM9NgRH2PF7ES8b/AUSMeEf+1omHAAAAAElFTkSuQmCC"},17557:function(e,t,n){"use strict";e.exports=n.p+"static/media/how-to-hire-1.8413a3968465ee3f2f03.png"},38175:function(e,t,n){"use strict";e.exports=n.p+"static/media/how-to-hire-2.2e17bf68c34603c19849.png"},74266:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJIAAABRCAYAAAA5B/+UAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABwkSURBVHgB7V3NbxzJdX81nOF8cJofosiVJlyJEKR1QnphJzJswDa8RGLE8CHxiYucDB8MB0ic/QuSaIgAOeQUwDkke7OBwMHyEDhIYifwGtzDOtgksmHY5MaSQpBa7kjiNznDGc5wOJX3q4/u6mYPOZTW0UrbTxp219erV1WvX7169UWUQAIJJJBAAgmcAiLyIyml4J8Jk6JcLqdOxpP+O+IbNwV+2sFPYX86jrRhKp7GLQ0OnQ7vJk8K0pJN67hdf+nTbtzk0OjSFSprmF5bBo3P0hTgDcVTeWh63LqgUFo3zOK19RnQqukIxw3T6taZ40/O8/8dRLhSbMGjTCJ9JrIVEzCUdBgAKKTbmIJsBflZOhVrfhRiQLfRwo3pNJp2y6BBpJNWUkBH8CMfV5hZA/rcchjaSIY+FIdGl64YesP5Ok8ZfDDOx6QZNESbzScoZziNjK2fKAM6bXw6I9DjAdJJm4EQQhfDtLaw5HHw3FyZCw5XWc7Ozqbmp6cl1zh+KlbZ/OyLLN+Sc2WuLJoLcgMC/vlx3XTRZxxu49B03CLglhxvrgzaOD4hflk3f3lOuHkG8QwOB2/Z5uVkFM7Tz5Qohu6oZ5lpC7zmVFlQpSp/B6fUNStOIgoD6lKgqUx9GDfKbOuKyLRauO2EalthGhLS0r6TqqSTcG5GcphH6vSqqMLSZRpLar8yt4NpVBDPv8XFRTE/P81MtSimwVQOIMx1I7xsEDMTqjAw4qyJ5+JZnJoS7MG+swhRaYHPPufn50GLjxtvPh6TT9nkM2/p4vBZE9/mZekiJ34crdaNPMzHQzZ/t5wqngkrmwo8QZcluGzwcVnc+rDBFvd0xG/WrQdTf/Y57eRRdirHVtWtW+UON7WIsMoJZuqZkQxXCudd4SvzF1xmTsfTVpAlOvq+sTEtxsYWJRp7fn5JNQwaiIvPOKaR3hComcF9B4/Mzlp3AFyp9MYbs+oZgHaH47s4gngbG0tM05TU+Z3M141r3RpPgPe0uAGdNo2mY2bG1oUGridIvY5lVgtundny2qyRZnHRpT0IjyurGy9Kn8toZce/7P+5JS27OBLKp/9MRnJFnE4nyEohcK3LMHi6EsdWBNECv83E4l9YWOBKnTnT7zyApIzCh5deuizu3Hlw4iuqVivC80ryrPy6pbfpFkxmFofFG6UjCmAQ1E+3/BcWFiUYLvp+GsThitKD8ty+fZvg59Ji30NtqaSpDdECQ0spnxEUnEqYGW2xnjOXgj6wuLg3Mnxh8DX2nWFEr1ACzzTIDv2s3Tr61te+9pfftn5gWCs5LQTd9i2fcQKdSqs4ZzGSkkZgqNVHh5MZyv2IvScpgecNVt57sPa7f/z1v1iBIyypdNc57XZ5Zd3Nlc1gRZ41rLN6EZ6VR7RMCRM9t8BtvPqf//HzT//pd/9xd2m5Im8a/9u377CE+iOth7Gkmn91SeoxgR7lGskkU6fgBg+B48R7leOvUcJEzzVwU1/9rU9P/cnV2paYauz4AubmzZfE8vIPU2osw3/8ga+SRnNKfQafdGMkHxFGZH3pvtcogece+vr6vtBojIrx8YHU+Hg21bjmMtRICgMDd4AFMLMHFMtIUoN6VfYgSZ+kBJ57SAnxhWZzT6DzeffdqrhauyTGP/txZqiSI1heUTwDG1SZAi07lpGEBvV6lvU0gecLLl4cEmCmy5dHRKNRFY2f/0SwCKJGoyRgRlhYeEvFg1FU93NC2ZROMJKrgCurtDPkS+D5h2azJg68vlSLGarq9adWVojQ1U1P63AwE7q4mZlyCtZ18AgYJB2PTmvjmP8oq6mOW73QQJ0O0c4eUb3Bv0PqGXL9RCNDRIMeJfCUodUqigv8rG5VJJVK9PLLlKpWqVNjJZx1Jsovj0gw07VrOx1IJTYLqLnALjoSjJBkZ7R7IuCozcaINaLNnfMxEeCwRfRgg2j5PuM5ogSeIjQaW6lGfivleenUKEunivF/l7u5pUWE75gZiw1h5/sAUYkk7ByaXgVRDkU+Dd6raGZ6EkD69x6wqjfByluKEngK4F0piEZFdo5Uh1SjUfbb8oqpy5sjMn3VE7Q6KhvXSHgbd/xpFFjCQ81lp0RciM7Qx8F+7cmZyALwoHtM4OlA+6gp8nmRag82xLrxqxixNMFSqXV1Synf1epLwk4ALy0tyZBEctackF3+0Qts73YPazYlNQ5P8mI+Jyibjc8COtboCCXwNIDbsk1N0aYCefl6aq1R73yqVJSbm2jLA3Ej78n1/Ihq0JGRnVSpNH2M9xAj2eUBemmIXpOyuDh1JkM1W93DfvBmnX62eFJp+sTHc/SVLw/EpjmvjpXABwfZ7HBq87ihmIO2mVnSRR72r/Mort3xqgMdeF9ju9IiLdKdOw86OztTYn7+VRk7aguYCBZM1rAia4B6gXduH9I7/91gRVrSx67305d+Z4DeepuZ6hdNFf7Le016/dtH9JmbeWaqLD0OYJS4V9XPBLoD9M1igSiTOTvuPu2R15Yina5L8khkXhilxvs1WaISVWmFYFtCvOnitFx+qSLGdqaUdDqla9MLo/R6ovPBIXdn//ajA2aSHD1aP6bV947o39884FFdMCR7YSxNl8b7VLxfv9HftZvrBk3mx/sPEibqFTCavnIZEuf0eIV8SxznM9y9FUS6VpeZal2ypqHsS7AredVSp1jU65Bu37kjby/sqBWhZ46NsD6FzgmHRif6zKfyNDTYpxjrf+61fH/A8FCfkkYIazTPb/OEuSBhot4BdbW+dXa8wnFOtI/Mr1gQj44agsbGVVj/5oBcYakEmxLcN1nhtqsw4yzb6mnNR72syotCjhVp/Pb2Tm9pSCrA8OD5x/qn6WUJxEMvume93i8HCjm/zS9cYAMAf7QP+b118UBM8jwcuref1t5xVsDGMNLc3FxoYfrjSKQcd1OfmM7R975fpb3949g4e3vH9NaP66r7S+BDBJhd2N8ja4HZ3oaRuC4usMX7qDl4QqjYJboxo7a5UMTZ8+vZCl75HLqtjq9cR2GFpdEnWcl+5XMFSuDDA8fHLUH5Fg0dZRWDeNy1NUZZJ9pnZX1rXzb7SyKbneSwR9y3sUS6gzXn5U5Mn1I2W21Obg86D0AqfeXLRXrtGyNKH3Lh0niaXvvDEfp9Ds9lHy+LQiLIzg3Z/h4iVfFnkAYKbEti42QQwObJEpT1fbm2tqV7qds65ISyrUdtdrOgZqjHGbW5MDyUYmYapi/9trYZvfLZAn31DwYfSy9yYWw0mUY5D6CuLo/1EBFdGzPTQT0r05msrGbysu0VDA+UCMr2jRvahYVvVvWJsSNZiaQs26wjPfl+8F1Wui+Naak0eSXzgWwwz2X1nFztIBm9nQVgoiGvxw8PEsl0IEoisY6UztQVTxyxCQDPu3d5BPebRZkfgYV7R20e7bKMJJgecfc7PS68/p1df+j/7X/YU10dpNSTQiatl58k8MGB53m02dqTbEgSjXy2k70QDr/cHBHDN9qSapfEKo/lzEbPExJJTfvbof/U1BR2v56ZOfSV04aW0JMOHVvRWXpRT315Ar8yKLRzop4+lPjUx4o5UamwRMqMs7JdkVmvJO/eZYPUjXs0NPKihGkAEBV2Qm/D1g5s/52f7yHj/OnhYBzoRPZ3FiNdSKTM0wXuBvuYkdC17XDXpVcCrNPo6KBahjsxMSpu0HVf2QZEGUlGN9/2YpBE95JJ0wcCwJOslHx6UK1WlZ6UzaRSStmu5WV6Py9h24ZRMpsdkvn8lrxL99Tw36o+0fVI7nptLKOUvWzBhxL3YunJmQnpX7xMCTxNMB9xvdEvsTpIqUhY3cbTJBke+kMiKWV7tSgbOzvmVJh5GTP8B0Pp42jMMTQ9KdtggmtXYCM6v44DHQvrjzAK62WGOoFfNeyrv9CRjjDXBthYp0rlAU1MvEjo2q5evSSwftuah2JliBD6YCkYms5rRxoq6l8CzyagaxvuC77mDNuRGlt1fmErUukyra29x7bFtuzvf8hdXLD6sKtlQe/tTuCjBh76NqVs6ykSJZFGg3DoSBMTWHLLNiVzQMCpy0jsUtsPwo6UwDMESkfSUyTkLKFed6Lk857sLxYlzliKVbZdsBLpSadIEnjGoGp+DAMDOYGuDe/jhHFbiZrNQYHzAVq1mpi6dk2cqiNB2cYhonjtxSCZwPMFMEb2qbm2Q9lo5gyTQCa1scJSDf/hgymSMVqUsDXGLmwTIpFIH12oKsv2cVvP/mMZiZ20ja5HssN/LDU6IZHsCoBgGck09QL5rF4PLBK2+9ABFr22Wr2tkPS8kpprqx0cyitXhqizk5Ppal1CHqXpEc/9b9Jkg8SN/HX5/eUfy3Hv99RhqTGWbQ1gpF42RwJgB8rlEib6sALaBR95voc1XFWjIJUu58RB/VCus0TaNGu9M9m8xFLbOIiZawvWa/e6778/mWR9JqAXQ7FH4fkpWIoujhKNG3dzbFCsrXl6isSBrrP/mod6s2wnkujZgF7aqap0pBZLI7XKS6QpKwePCqIxVpB0WKHsxr6EZXuN7smbN2/S2M6imkqLlUgAc+CkOhScEvjIwTEr3HaF5H6GdaQNbUnSJ7qtEGb/oWxjMAZdOlZHcru2cvlsiSQTk+UzAb22Uz3dL7GMBO8YtdFW0LVZQNeGuTa71LaLjhRMj/SyjOQw2WP2TECrl7Onqrpr4xlT5RwZGaHoFMna2iN54/p1tWYb/BHXtRkoizfeUKsjRS9TJIeHmpkSyfThBLRLo6lPeTkboGwP0t6e3tm2s7ND7SNzxE1Fd20TEy8I6NpWIoFPuq3Zlq++ai8emRV//a0zc6dGQ/8SeMYBfFTXrwNHOdFkNkyznjTeqFG1xJ6bLxIW/KNr679WFDMeeqxFGXesjbQ3LuoLaiiBjxD0se0onfbkUG6IDniKJN1kAxTsSBmtJWFfm427tLzMBslptbAt7jSSkE70uDttE3hWYZDSrGgPDWFvG/PPC3nZbnHvtKHn2tQuSTZK3mDRBYm0ML/YiV1GAqlkR23Wss1eb1ECzz0cd9q/wOrINs+zwaoNv+3tLbU6slod7/TnBpTf2Bh1VosP5edHvuhf/XXiDEkz1ybdLduy00kY6SMAu3vVv4OOdJDOyt3dXcL5SNCPjgaLYnS0JlqHQ4ofLl26oJbZ4g47fXtShJGCg7bKwp0d+fn/Lv8Nbs+hBJ5b4Pa9//Vv/tl3m0deJ53JyeFhvYF1Z78mM/sFbVOqrnTW1t6R9+7dJbs6EnBi8T9pg6S0EsnCX/353+882t78YsJMzyeAif7rJ+9+xTPTbCyMqFrLypXqgRw5Kort/prcYiV7xcRHt+buaYPhOmpsdNx69K93kywK3I6Dw7r/+V+/89X+XO6bHPETlMAzDe12++1mq/n29/7l7b/9wZv/tK+lEY/UanpqZHf/vrxcuiK391gqbe3L/v4BllTtTrE4KpdHKtK7c4d1pBl18kKIkZz7a9WlgDh0C9u2seN2eXlESS91/VKjKprNEYH7KmCk8rz1VCPfp8K9YkEUj/Li6OhQbLPSNmiJzueEOnuH/AMvKPquIRqiPxOv6PFXUo3Ei+6kDPzqrCwWCkcCs9nV2LhusioKEaGnSuG0J3F4Xaitdonj+lFMefrqGXkMmoslP8yl52ROQVrrb2muMy6UH/4Y0h+rU9iCdH1GmU5f6Jf7+zxW44ZqHsmOZiJ9aAT0I+7NOpmrRelVqYM5NqzXXl1VO0ik5wWMFDv7726UxGHczEfiG9/AbYIs1lZHZat1jyYmJtk4tUct0gpYvjHawdUDmRpzcmNXLdNl+6TsG2gKTAAONg5ha5BtNr/D3jXsDXL77Svbl3t6UqHgiboqJFZhYVvMIaFC+hpY/umSqsMs1E1lecZP8UU1I+vs7vMylG50VN7Rqte1mlGrvuxBHH0q/aihL0OeQwsx3VTV+75c2vHeZBr6mAb4pXm+ypa1z+T3AoeBTlWMPqbLBpjyIA0Q1esbAV7s6Kja8oKwQ5TLL7uHekRY9ZDnyAZkX/tQZPEkLiszUzrdkZTup3qrIwv5jFDpqno+zTJUo5mV2SPoRLsEJgIDQTcabxRYsWZDZG5PNnMkNmpep99horGxMXtyjezStdkrJAjXAyhJg7sncNo7urclds+MD6SaYyPi4iGuZWKNvlVnKVRU6duDBQGzOpZrGp1NWUlhdIef3eoSB7BfvF85lL82oONjxqetvqY9dWYP3Pf5VyrwEPUBM9xQ94MCsBMCM9h7kZsEaqxMFlliksG/F5MOefk0mTjIaq/LrQSWir1IWbBctWLotvHuW5yMbMihf4Drhs04ZPPWZde0RGmI0u3i1YTsmfhDfvh2pO6VUk3qjHaWgA21EhJba7FFeydTk+n+gsTuWpxki/j5l7fk6puWkUoS02fWRHRiQlZLI/VfzjkWbjASrlxfqFbEl7l7g4l8ovEZlb7qUQpn57SZmeAe4eEi1vlu3duiSQ+nfo1Qu5gXSosDZ/ETxNtC4Kl3LOTkCodhxKDCnHhk4pJxI45ymzjkxGszrvQBM5nJSwcG7yqtQwvio6IfPtzu8NA2dXBgzuCJS+PQ7EKVG8HjMseFuWUtcl41g3/Ypc/JI4qjbdJE40dpDNHm+O8a3JYG6z82lpX3a/Xgo74wSvn31zswPea9dgdqC/SibHZHxVlfP+hYJoJ7ZoY6kEbQo+Nm9n2phBsA9BVbc4aZptXlbwiFroQntqbgFK9Rrz812rwhHtIj+thQUSyyEeuYJdRFVMRkQRAbttpHWES+Q5ASOMAJF6hgUhAzzHjq9XjBwU5BHB2UNoVWeIwbOhnC7ddk3XvsHnUqCPlT5Kwf4LHpkJeKx/MBHvtbPcHGwyR4lfPzy1DN+un04nhNJPDBjZJUHdxtLoeKYsoHSYV6AL0r95nWC1p6Aa+tF4XP0LG1HZqE5zx1ek2f+85lsvgZF2ixOGx5tV9eok4uXB+l1fepMzKohcDAYaezxYo1DNg4Dhmz/b5uxKO18Y3pjmZCPZk/D4lUpq6Hp7ldHOlbkhbVJSYbG0s+M+GKytZP39Gzwag4b1Ir3DlKbf+yJtsXNHGYpbHdXiZTYAMXS6et8KHPm+Z50VZUuyGsmEVXmd7nCnD83HQXTfx0OuzvwkUH5wVukm2XsbZHCSfdq3CAYSgwwC7jHB5sCKTZ3w/iKH8/vqHTug3spg/kRc4Z/ogPGnZ2avxF88DEMDdoRvlACvCTW34ismWy5RzkuKAdxxZresDEBo+pA1tOXbYAhwJVtE2C9PdXGY1xNB6ZXUJQtij1AGpFd2d5LKvFoRHhLg1hYCK1AJLK8de127O29RAOZqU52AGUCFtYoBSWDsAcoO+kIMLNzPpqgUl1xuBlM6IbHa6Jrd19abex4IhdvT9qnM4Hbpre06+vr7PkHI+4KSa9xRnGzdFVfBcP3hWG8XB8njZgqR3Or5cyRXHb5GNj4/zRnl6e03AF/roclubtbWaYS06UF9jgvKQnYj9VKtHm5l5ICsF/lYf7+eVKiIkAWhqptWuyq0Ryr9wS5uztMn5sUzLHvamTKKAz4XpvnE6B406wnhdEAHCbDvuo91ZLj+7UnF/wIHuxXMm8h/0r6j8OeEKBcSJvlr+YSqVCpVLJp6/iUm7CKpXAV7kjYYEfwvHQuZccVBhE2PwUZaWKimH9dXInHyqpK6ksaQhzMcI9OjzIH1dR4lK9LYODTpSn4uOCy4b5/hTUV5C3LT7nMTUospxHgCdcbgAYRrfLgei/xnNoa3rRGtpujRkI541imM8TrrQ0v9DBte24NRJpoGCX+Slv3ZJK1DAbdV39aE0ARiZxxLkTV3VbnUld682iCcxkw+zlJ5BSmrEmHeeKaagD7hYnUAbKbuz4ltPLPBp8wG48u9Fnw914wKHwnpLOxmuatJMmfhw+m4+NY9NZWt20kyb+iqE/mjbk5nJnswOyeUo5bV7n9bO02bKQ8z5pyzHADGPawLaPL32YeXC96DxLIBzJdpP/WeXa79LmtV6kpZHmjlMr3Egln6G08m3WKTFXzhqmmp/fEOBYvKurKs1Nui3u8vpZQcO132As29/eIJfRiLB0U73cuK4ul1Px7sJW9YJ6V3EnJxUDrvAv/Rsvyzb7TTq0ujjIpF0hn33Jpkc8ixd5ANx88DWChlBaCn0KPg71buI7UcmnOeKH51315x61Ob2L39LnlycG72lg80T9TAKXgydaVxh92Y9e6T/cdaHF1PZ8tB0/oQ/dvq0Mjvo+mrJub8VEpBlIX8dWltI1PHYBdYvyLSXChL4wWehzuOHvSifsNmH9Sd3CDAJmZ2dSy4qrtVKuIllCDSxx+BTCjP9Vc1mKLZyKgzAuFOIhXIlbA6gM9N+aYUelxYccajxDvfpwO+ifnbyB8zqntXm4gLApS6M99+AUmkPp7DsuxuMPCnis/5IpA9K1bN4RHN0gRFO0PIZGi9PWhQ0Hvdd5hO2WVdUP6tLEy5uL/Czcvq27MKvC6CrQ3Zn64Q/56/qlWjVCZ0DQxdl5t1uSyo7OxL9Zs5ISd5vaUR32PL3++g+ZoA0VFxIL0ipKdKgAFJpU7gpQ8i2ThiuARfHNmz4uC/ABM0NhjNKgDKzsvhnCc0dOTY2lovHwjKMf+XLGPu3I6/Mjl9WxL+Tk3a2c3coTVza3jMBr9Rd6DLBdlgW0m1aosTQkWBqL2X1MzN5SFmw7kg9W1KqpNeodIhO6YKI5sTjLc3HTS4pbAa6UcpkrSuwCi6+ZLgdU2ji9+ltcWhruKObVInlBhdt8IKLxlXXD4+bhxumGJ8g/cLu0YBoBSQNaxvx4bj0ALDN0o0tv+9HlcmmzHy3WBsXRbk01tl7ccpxkmGBF7EkJBLgl42zY+POYjBTg0N2dtjVFd3j3epeJPfHEEaOi17MrT8MJfLZygBN79E5bOmzTuH5I74p4fJ1YWupW+mkQTd8tDgDxwDBOY/o02zpx842W0cVXLtv4mt74PFnvmdVtZKc6FjFJz/OrioMU4/ggzdDLPClUnnMxknSWB8SDFnuzs2+k5ueXwhVXNl2gtj34952qRrGHVQR7xf24s1yw6aVA4uludF7hsHHKTgWUyTmzoIezC/QmUI0LbpcWhdelz6XB8XPdPn0WNwUqgI/X+Me5o7jdPEL0ReMbPG6ZyObr1Kut82ljTKQT9cE/1okdzpDuZu9gFS090YduAZiUrUnrUPandSq9C8X9ScwAG3/9zhSnrNv+jM4mXD+yaRRemVJu/EzcsnXbuDKcthwKc/DbuJL8d+njlCqNS580z8CPRJR+9ZOmfNH4Pm2k8pHRdA6toTKF6oGErQty45g6x0+FSSeOnn0XIXxOPkYHdstlWcZfBSI1PpK/wo2LfkbO0zKZIc6N44eTqswIE0YbxRrYnTQn4tg8NL4YRvTdbn7ROE4DO3nYD8X+HH8RlN/3j7g1ngjNbnliyxzUH/l1EM3fLYspP50sV9SPQn7h+vKXDkWfTw8cZnIqgJyK95++9TxCtF8Q5+f7n4KbopVBoQbTYtm1jcX4RWmN0k1d8g/RcAq+bulOa0y3rnwcMelCNMcwQlzZorhPlCeBBBJIIIEEPqLwfyi26uwFZ0F8AAAAAElFTkSuQmCC"},15595:function(e,t,n){"use strict";e.exports=n.p+"static/media/new-project-graphic.8d5b15854bbb19dd9c1f.png"},98106:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},17358:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},34102:function(e,t,n){var r=n(98106);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},93231:function(e,t,n){var r=n(74040);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},73119:function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},73203:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},68:function(e){e.exports=function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},40608:function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},56894:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},91282:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},22412:function(e){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},21337:function(e,t,n){var r=n(7501).default;function o(){"use strict";e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(A){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),s=new E(r||[]);return a(i,"_invoke",{value:S(e,n,s)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(A){return{type:"throw",arg:A}}}t.wrap=p;var h={};function m(){}function v(){}function g(){}var y={};d(y,l,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(D([])));x&&x!==n&&i.call(x,l)&&(y=x);var w=g.prototype=m.prototype=Object.create(y);function C(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function n(o,a,s,l){var c=f(e[o],e,a);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==r(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,l)}))}l(c.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function S(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=f(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function k(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,h;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function Z(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Z,this),this.reset(!0)}function D(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(i.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=g,a(w,"constructor",{value:g,configurable:!0}),a(g,"constructor",{value:v,configurable:!0}),v.displayName=d(g,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,d(e,u,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},C(j.prototype),d(j.prototype,c,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new j(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(w),d(w,u,"Generator"),d(w,l,(function(){return this})),d(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=D,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=i.call(o,"catchLoc"),l=i.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:D(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},40131:function(e,t,n){var r=n(17358),o=n(40608),i=n(35068),a=n(56894);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},9833:function(e,t,n){var r=n(34102),o=n(68),i=n(35068),a=n(91282);e.exports=function(e){return r(e)||o(e)||i(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},56027:function(e,t,n){var r=n(7501).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},74040:function(e,t,n){var r=n(7501).default,o=n(56027);e.exports=function(e){var t=o(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},7501:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},35068:function(e,t,n){var r=n(98106);e.exports=function(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},50824:function(e,t,n){var r=n(21337)();e.exports=r;try{regeneratorRuntime=r}catch(o){"object"===typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},1793:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},66470:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:function(){return r}})},47169:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},22951:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return r}})},91976:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(55217);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.Z)(o.key),o)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},99616:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(27597),o=n(98119),i=n(33940),a=n(47169);function s(e,t){if(t&&("object"===(0,i.Z)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,a.Z)(e)}function l(e){var t=(0,o.Z)();return function(){var n,o=(0,r.Z)(e);if(t){var i=(0,r.Z)(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return s(this,n)}}},64649:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(55217);function o(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},25773:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:function(){return r}})},27597:function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:function(){return r}})},67591:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(6983);function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.Z)(e,t)}},93219:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(6983);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},98119:function(e,t,n){"use strict";function r(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{Z:function(){return r}})},55181:function(e,t,n){"use strict";function r(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:function(){return r}})},53764:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},50189:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(64649);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 i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},30808:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},6983:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})},11026:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(66470);var o=n(64013),i=n(53764);function a(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||(0,o.Z)(e,t)||(0,i.Z)()}},50669:function(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{Z:function(){return r}})},649:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(1793);var o=n(55181),i=n(64013);function a(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,o.Z)(e)||(0,i.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},55217:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(33940);function o(e){var t=function(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==(0,r.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,r.Z)(t)?t:String(t)}},33940:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:function(){return r}})},64013:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(1793);function o(e,t){if(e){if("string"===typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},37373:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(27597),o=n(6983);var i=n(98119);function a(e,t,n){return a=(0,i.Z)()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&(0,o.Z)(i,n.prototype),i},a.apply(null,arguments)}function s(e){var t="function"===typeof Map?new Map:void 0;return s=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;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,i)}function i(){return a(e,arguments,(0,r.Z)(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),(0,o.Z)(i,e)},s(e)}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.m=e,n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){a[e]=function(){return r[e]}}));return a.default=function(){return r},n.d(i,a),i}}(),n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,r){return n.f[r](e,t),t}),[]))},n.u=function(e){return"static/js/"+e+".22d6cd1d.chunk.js"},n.miniCssF=function(e){},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="tdc-web-frontend:";n.l=function(r,o,i,a){if(e[r])e[r].push(o);else{var s,l;if(void 0!==i)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+i){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+i),s.src=r),e[r]=[o];var p=function(t,n){s.onerror=s.onload=null,clearTimeout(f);var o=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((function(e){return e(n)})),t)return t(n)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),l&&document.head.appendChild(s)}}}(),n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},n.p="/",function(){var e={179:0};n.f.j=function(t,r){var o=n.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else{var i=new Promise((function(n,r){o=e[t]=[n,r]}));r.push(o[2]=i);var a=n.p+n.u(t),s=new Error;n.l(a,(function(r){if(n.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var i=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",s.name="ChunkLoadError",s.type=i,s.request=a,o[1](s)}}),"chunk-"+t,t)}};var t=function(t,r){var o,i,a=r[0],s=r[1],l=r[2],c=0;if(a.some((function(t){return 0!==e[t]}))){for(o in s)n.o(s,o)&&(n.m[o]=s[o]);if(l)l(n)}for(t&&t(r);c<a.length;c++)i=a[c],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0},r=self.webpackChunktdc_web_frontend=self.webpackChunktdc_web_frontend||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}(),function(){"use strict";var e={};n.r(e),n.d(e,{scaleBand:function(){return Die},scaleDiverging:function(){return _ue},scaleDivergingLog:function(){return zue},scaleDivergingPow:function(){return Wue},scaleDivergingSqrt:function(){return Vue},scaleDivergingSymlog:function(){return Hue},scaleIdentity:function(){return Ese},scaleImplicit:function(){return Oie},scaleLinear:function(){return Ose},scaleLog:function(){return Bse},scaleOrdinal:function(){return Eie},scalePoint:function(){return Aie},scalePow:function(){return qse},scaleQuantile:function(){return ile},scaleQuantize:function(){return ale},scaleRadial:function(){return Jse},scaleSequential:function(){return Mue},scaleSequentialLog:function(){return Tue},scaleSequentialPow:function(){return Rue},scaleSequentialQuantile:function(){return Bue},scaleSequentialSqrt:function(){return Fue},scaleSequentialSymlog:function(){return Iue},scaleSqrt:function(){return Gse},scaleSymlog:function(){return zse},scaleThreshold:function(){return sle},scaleTime:function(){return Eue},scaleUtc:function(){return Due},tickFormat:function(){return kse}});var t=n(64649),r=n(25773),o=n(30303),i=n.t(o,2);var a=o.createContext(null);function s(){return o.useContext(a)}var l=n(50189),c="function"===typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",u=n(27241);var d=function(e){var t=e.children,n=e.theme,r=s(),i=o.useMemo((function(){var e=null===r?n:function(e,t){return"function"===typeof t?t(e):(0,l.Z)((0,l.Z)({},e),t)}(r,n);return null!=e&&(e[c]=null!==r),e}),[n,r]);return(0,u.jsx)(a.Provider,{value:i,children:t})},p=n(3665),f=n(2964),h={};function m(e,n,i){var a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return o.useMemo((function(){var o=e&&n[e]||n;if("function"===typeof i){var s=i(o),l=e?(0,r.Z)({},n,(0,t.Z)({},e,s)):s;return a?function(){return l}:l}return e?(0,r.Z)({},n,(0,t.Z)({},e,i)):(0,r.Z)({},n,i)}),[e,n,i,a])}var v=function(e){var t=e.children,n=e.theme,r=e.themeId,o=(0,f.Z)(h),i=s()||h,a=m(r,o,n),l=m(r,i,n,!0);return(0,u.jsx)(d,{theme:l,children:(0,u.jsx)(p.T.Provider,{value:a,children:t})})},g=n(93715),y=n(21792),b=n(30808),x=n(95895),w=n(38542),C=n(26605),j=n(99227),S=n(14813),k=n(71539),Z=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function O(e,t,n){var r,o=function(e,t,n){var r,o=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),a=(0,k.Z)(t);if(t.fakeTransform)r=t.fakeTransform;else{var s=a.getComputedStyle(t);r=s.getPropertyValue("-webkit-transform")||s.getPropertyValue("transform")}var l=0,c=0;if(r&&"none"!==r&&"string"===typeof r){var u=r.split("(")[1].split(")")[0].split(",");l=parseInt(u[4],10),c=parseInt(u[5],10)}return"left"===e?"translateX(".concat(i?i.right+l-o.left:a.innerWidth+l-o.left,"px)"):"right"===e?"translateX(-".concat(i?o.right-i.left-l:o.left+o.width-l,"px)"):"up"===e?"translateY(".concat(i?i.bottom+c-o.top:a.innerHeight+c-o.top,"px)"):"translateY(-".concat(i?o.top-i.top+o.height-c:o.top+o.height-c,"px)")}(e,t,"function"===typeof(r=n)?r():r);o&&(t.style.webkitTransform=o,t.style.transform=o)}var E=o.forwardRef((function(e,t){var n=(0,j.Z)(),i={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},s=e.addEndListener,l=e.appear,c=void 0===l||l,d=e.children,p=e.container,f=e.direction,h=void 0===f?"down":f,m=e.easing,v=void 0===m?i:m,g=e.in,y=e.onEnter,E=e.onEntered,D=e.onEntering,P=e.onExit,A=e.onExited,M=e.onExiting,T=e.style,I=e.timeout,R=void 0===I?a:I,F=e.TransitionComponent,B=void 0===F?x.ZP:F,L=(0,b.Z)(e,Z),N=o.useRef(null),_=(0,C.Z)(d.ref,N,t),z=function(e){return function(t){e&&(void 0===t?e(N.current):e(N.current,t))}},H=z((function(e,t){O(h,e,p),(0,S.n)(e),y&&y(e,t)})),W=z((function(e,t){var o=(0,S.C)({timeout:R,style:T,easing:v},{mode:"enter"});e.style.webkitTransition=n.transitions.create("-webkit-transform",(0,r.Z)({},o)),e.style.transition=n.transitions.create("transform",(0,r.Z)({},o)),e.style.webkitTransform="none",e.style.transform="none",D&&D(e,t)})),V=z(E),U=z(M),q=z((function(e){var t=(0,S.C)({timeout:R,style:T,easing:v},{mode:"exit"});e.style.webkitTransition=n.transitions.create("-webkit-transform",t),e.style.transition=n.transitions.create("transform",t),O(h,e,p),P&&P(e)})),G=z((function(e){e.style.webkitTransition="",e.style.transition="",A&&A(e)})),Y=o.useCallback((function(){N.current&&O(h,N.current,p)}),[h,p]);return o.useEffect((function(){if(!g&&"down"!==h&&"right"!==h){var e=(0,w.Z)((function(){N.current&&O(h,N.current,p)})),t=(0,k.Z)(N.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}}),[h,g,p]),o.useEffect((function(){g||Y()}),[g,Y]),(0,u.jsx)(B,(0,r.Z)({nodeRef:N,onEnter:H,onEntered:V,onEntering:W,onExit:q,onExited:G,onExiting:U,addEndListener:function(e){s&&s(N.current,e)},appear:c,in:g,timeout:R},L,{children:function(e,t){return o.cloneElement(d,(0,r.Z)({ref:_,style:(0,r.Z)({visibility:"exited"!==e||g?void 0:"hidden"},T,d.props.style)},t))}}))})),D=E,P=n(52492),A=n(92939),M=n(96148),T=n(72188),I=n(82231),R=n(13839),F=n(22997);function B(e){return(0,F.Z)("MuiCollapse",e)}(0,R.Z)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);var L=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],N=(0,P.ZP)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})((function(e){var t=e.theme,n=e.ownerState;return(0,r.Z)({height:0,overflow:"hidden",transition:t.transitions.create("height")},"horizontal"===n.orientation&&{height:"auto",width:0,transition:t.transitions.create("width")},"entered"===n.state&&(0,r.Z)({height:"auto",overflow:"visible"},"horizontal"===n.orientation&&{width:"auto"}),"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&{visibility:"hidden"})})),_=(0,P.ZP)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:function(e,t){return t.wrapper}})((function(e){var t=e.ownerState;return(0,r.Z)({display:"flex",width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})})),z=(0,P.ZP)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:function(e,t){return t.wrapperInner}})((function(e){var t=e.ownerState;return(0,r.Z)({width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})})),H=o.forwardRef((function(e,n){var i=(0,T.Z)({props:e,name:"MuiCollapse"}),a=i.addEndListener,s=i.children,l=i.className,c=i.collapsedSize,d=void 0===c?"0px":c,p=i.component,f=i.easing,h=i.in,m=i.onEnter,v=i.onEntered,g=i.onEntering,w=i.onExit,k=i.onExited,Z=i.onExiting,O=i.orientation,E=void 0===O?"vertical":O,D=i.style,P=i.timeout,A=void 0===P?I.x9.standard:P,R=i.TransitionComponent,F=void 0===R?x.ZP:R,H=(0,b.Z)(i,L),W=(0,r.Z)({},i,{orientation:E,collapsedSize:d}),V=function(e){var t=e.orientation,n=e.classes,r={root:["root","".concat(t)],entered:["entered"],hidden:["hidden"],wrapper:["wrapper","".concat(t)],wrapperInner:["wrapperInner","".concat(t)]};return(0,M.Z)(r,B,n)}(W),U=(0,j.Z)(),q=o.useRef(),G=o.useRef(null),Y=o.useRef(),K="number"===typeof d?"".concat(d,"px"):d,J="horizontal"===E,X=J?"width":"height";o.useEffect((function(){return function(){clearTimeout(q.current)}}),[]);var Q=o.useRef(null),$=(0,C.Z)(n,Q),ee=function(e){return function(t){if(e){var n=Q.current;void 0===t?e(n):e(n,t)}}},te=function(){return G.current?G.current[J?"clientWidth":"clientHeight"]:0},ne=ee((function(e,t){G.current&&J&&(G.current.style.position="absolute"),e.style[X]=K,m&&m(e,t)})),re=ee((function(e,t){var n=te();G.current&&J&&(G.current.style.position="");var r=(0,S.C)({style:D,timeout:A,easing:f},{mode:"enter"}),o=r.duration,i=r.easing;if("auto"===A){var a=U.transitions.getAutoHeightDuration(n);e.style.transitionDuration="".concat(a,"ms"),Y.current=a}else e.style.transitionDuration="string"===typeof o?o:"".concat(o,"ms");e.style[X]="".concat(n,"px"),e.style.transitionTimingFunction=i,g&&g(e,t)})),oe=ee((function(e,t){e.style[X]="auto",v&&v(e,t)})),ie=ee((function(e){e.style[X]="".concat(te(),"px"),w&&w(e)})),ae=ee(k),se=ee((function(e){var t=te(),n=(0,S.C)({style:D,timeout:A,easing:f},{mode:"exit"}),r=n.duration,o=n.easing;if("auto"===A){var i=U.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(i,"ms"),Y.current=i}else e.style.transitionDuration="string"===typeof r?r:"".concat(r,"ms");e.style[X]=K,e.style.transitionTimingFunction=o,Z&&Z(e)}));return(0,u.jsx)(F,(0,r.Z)({in:h,onEnter:ne,onEntered:oe,onEntering:re,onExit:ie,onExited:ae,onExiting:se,addEndListener:function(e){"auto"===A&&(q.current=setTimeout(e,Y.current||0)),a&&a(Q.current,e)},nodeRef:Q,timeout:"auto"===A?null:A},H,{children:function(e,n){return(0,u.jsx)(N,(0,r.Z)({as:p,className:(0,y.default)(V.root,l,{entered:V.entered,exited:!h&&"0px"===K&&V.hidden}[e]),style:(0,r.Z)((0,t.Z)({},J?"minWidth":"minHeight",K),D),ownerState:(0,r.Z)({},W,{state:e}),ref:$},n,{children:(0,u.jsx)(_,{ownerState:(0,r.Z)({},W,{state:e}),className:V.wrapper,ref:G,children:(0,u.jsx)(z,{ownerState:(0,r.Z)({},W,{state:e}),className:V.wrapperInner,children:s})})}))}}))}));H.muiSupportAuto=!0;var W=H,V=n(59129),U=n(555),q=n(20703),G=n.n(q);function Y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function K(){return K=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K.apply(this,arguments)}function J(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function X(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Q=o.createContext(),$={containerRoot:{},containerAnchorOriginTopCenter:{},containerAnchorOriginBottomCenter:{},containerAnchorOriginTopRight:{},containerAnchorOriginBottomRight:{},containerAnchorOriginTopLeft:{},containerAnchorOriginBottomLeft:{}},ee={default:20,dense:4},te={default:6,dense:2},ne={maxSnack:3,dense:!1,hideIconVariant:!1,variant:"default",autoHideDuration:5e3,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:D,transitionDuration:{enter:225,exit:195}},re=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},oe=function(e){return Object.keys(e).filter((function(e){return!$[e]})).reduce((function(t,n){var r;return K({},t,((r={})[n]=e[n],r))}),{})},ie={TIMEOUT:"timeout",CLICKAWAY:"clickaway",MAXSNACK:"maxsnack",INSTRUCTED:"instructed"},ae=function(e){return"containerAnchorOrigin"+e},se=function(e){var t=e.vertical,n=e.horizontal;return"anchorOrigin"+re(t)+re(n)},le=function(e){return"variant"+re(e)},ce=function(e){return!!e||0===e},ue=function(e){return"number"===typeof e||null===e};function de(e,t,n){return void 0===e&&(e={}),void 0===t&&(t={}),void 0===n&&(n={}),K({},n,{},t,{},e)}var pe={root:"SnackbarContent-root"},fe=(0,P.ZP)("div")((function(e){var t,n,r=e.theme;return(n={})["&."+pe.root]=((t={display:"flex",flexWrap:"wrap",flexGrow:1})[r.breakpoints.up("sm")]={flexGrow:"initial",minWidth:288},t),n})),he=(0,o.forwardRef)((function(e,t){var n=e.className,r=J(e,["className"]);return o.createElement(fe,Object.assign({ref:t,className:(0,y.default)(pe.root,n)},r))})),me={right:"left",left:"right",bottom:"up",top:"down"},ve=function(e){return"center"!==e.horizontal?me[e.horizontal]:me[e.vertical]},ge=function(e){return o.createElement(V.Z,Object.assign({},e),o.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n        10.59L10 14.17L17.59 6.58L19 8L10 17Z"}))},ye=function(e){return o.createElement(V.Z,Object.assign({},e),o.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},be=function(e){return o.createElement(V.Z,Object.assign({},e),o.createElement("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n        6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n        13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"}))},xe=function(e){return o.createElement(V.Z,Object.assign({},e),o.createElement("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n        0 22,12A10,10 0 0,0 12,2Z"}))},we={fontSize:20,marginInlineEnd:8},Ce={default:void 0,success:o.createElement(ge,{style:we}),warning:o.createElement(ye,{style:we}),error:o.createElement(be,{style:we}),info:o.createElement(xe,{style:we})};function je(e,t){return e.reduce((function(e,n){return null==n?e:function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=[].concat(o);t&&-1===a.indexOf(t)&&a.push(t),e.apply(this,a),n.apply(this,a)}}),(function(){}))}var Se="undefined"!==typeof window?o.useLayoutEffect:o.useEffect;function ke(e){var t=(0,o.useRef)(e);return Se((function(){t.current=e})),(0,o.useCallback)((function(){return t.current.apply(void 0,arguments)}),[])}var Ze=(0,o.forwardRef)((function(e,t){var n=e.children,r=e.autoHideDuration,i=e.ClickAwayListenerProps,a=e.disableWindowBlurListener,s=void 0!==a&&a,l=e.onClose,c=e.onMouseEnter,u=e.onMouseLeave,d=e.open,p=e.resumeHideDuration,f=J(e,["children","autoHideDuration","ClickAwayListenerProps","disableWindowBlurListener","onClose","onMouseEnter","onMouseLeave","open","resumeHideDuration"]),h=(0,o.useRef)(),m=ke((function(){l&&l.apply(void 0,arguments)})),v=ke((function(e){l&&null!=e&&(clearTimeout(h.current),h.current=setTimeout((function(){m(null,ie.TIMEOUT)}),e))}));(0,o.useEffect)((function(){return d&&v(r),function(){clearTimeout(h.current)}}),[d,r,v]);var g=function(){clearTimeout(h.current)},y=(0,o.useCallback)((function(){null!=r&&v(null!=p?p:.5*r)}),[r,p,v]);return(0,o.useEffect)((function(){if(!s&&d)return window.addEventListener("focus",y),window.addEventListener("blur",g),function(){window.removeEventListener("focus",y),window.removeEventListener("blur",g)}}),[s,y,d]),(0,o.createElement)(U.Z,K({onClickAway:function(e){l&&l(e,ie.CLICKAWAY)}},i),(0,o.createElement)("div",K({onMouseEnter:function(e){c&&c(e),g()},onMouseLeave:function(e){u&&u(e),y()},ref:t},f),n))})),Oe={contentRoot:"SnackbarItem-contentRoot",lessPadding:"SnackbarItem-lessPadding",variantSuccess:"SnackbarItem-variantSuccess",variantError:"SnackbarItem-variantError",variantInfo:"SnackbarItem-variantInfo",variantWarning:"SnackbarItem-variantWarning",message:"SnackbarItem-message",action:"SnackbarItem-action",wrappedRoot:"SnackbarItem-wrappedRoot"},Ee=(0,P.ZP)(Ze)((function(e){var t,n=e.theme,r=n.palette.mode||n.palette.type,o=(0,A._4)(n.palette.background.default,"light"===r?.8:.98);return(t={})["&."+Oe.wrappedRoot]={position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0},t["."+Oe.contentRoot]=K({},n.typography.body2,{backgroundColor:o,color:n.palette.getContrastText(o),alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"}),t["."+Oe.lessPadding]={paddingLeft:20},t["."+Oe.variantSuccess]={backgroundColor:"#43a047",color:"#fff"},t["."+Oe.variantError]={backgroundColor:"#d32f2f",color:"#fff"},t["."+Oe.variantInfo]={backgroundColor:"#2196f3",color:"#fff"},t["."+Oe.variantWarning]={backgroundColor:"#ff9800",color:"#fff"},t["."+Oe.message]={display:"flex",alignItems:"center",padding:"8px 0"},t["."+Oe.action]={display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8},t})),De=function(e){var t=e.classes,n=J(e,["classes"]),r=(0,o.useRef)(),i=(0,o.useState)(!0),a=i[0],s=i[1];(0,o.useEffect)((function(){return function(){r.current&&clearTimeout(r.current)}}),[]);var l=je([n.snack.onClose,n.onClose],n.snack.key),c=n.style,u=n.ariaAttributes,d=n.className,p=n.hideIconVariant,f=n.iconVariant,h=n.snack,m=n.action,v=n.content,g=n.TransitionComponent,b=n.TransitionProps,x=n.transitionDuration,w=J(n,["style","dense","ariaAttributes","className","hideIconVariant","iconVariant","snack","action","content","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),C=h.key,j=h.open,S=h.className,k=h.variant,Z=h.content,O=h.action,E=h.ariaAttributes,D=h.anchorOrigin,P=h.message,A=h.TransitionComponent,M=h.TransitionProps,T=h.transitionDuration,I=J(h,["persist","key","open","entered","requestClose","className","variant","content","action","ariaAttributes","anchorOrigin","message","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),R=K({},Ce,{},f)[k],F=K({"aria-describedby":"notistack-snackbar"},de(E,u)),B=A||g||ne.TransitionComponent,L=de(T,x,ne.transitionDuration),N=K({direction:ve(D)},de(M,b)),_=O||m;"function"===typeof _&&(_=_(C));var z=Z||v;"function"===typeof z&&(z=z(C,h.message));var H=["onEnter","onEntering","onEntered","onExit","onExiting","onExited"].reduce((function(e,t){var r;return K({},e,((r={})[t]=je([n.snack[t],n[t]],n.snack.key),r))}),{});return o.createElement(W,{unmountOnExit:!0,timeout:175,in:a,onExited:H.onExited},o.createElement(Ee,Object.assign({},w,I,{open:j,className:(0,y.default)(t.root,Oe.wrappedRoot,t[se(D)]),onClose:l}),o.createElement(B,Object.assign({appear:!0,in:j,timeout:L},N,{onExit:H.onExit,onExiting:H.onExiting,onExited:function(){r.current=setTimeout((function(){s(!a)}),125)},onEnter:H.onEnter,onEntering:H.onEntering,onEntered:je([H.onEntered,function(){n.snack.requestClose&&l(null,ie.INSTRCUTED)}])}),z||o.createElement(he,Object.assign({},F,{role:"alert",style:c,className:(0,y.default)(Oe.contentRoot,Oe[le(k)],t[le(k)],d,S,!p&&R&&Oe.lessPadding)}),o.createElement("div",{id:F["aria-describedby"],className:Oe.message},p?null:R,P),_&&o.createElement("div",{className:Oe.action},_)))))},Pe="& > .MuiCollapse-container, & > .MuiCollapse-root",Ae="& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper",Me="SnackbarContainer",Te={root:Me+"-root",rootDense:Me+"-rootDense",top:Me+"-top",bottom:Me+"-bottom",left:Me+"-left",right:Me+"-right",center:Me+"-center"},Ie=(0,P.ZP)("div")((function(e){var t,n,r,o,i,a,s=e.theme;return(a={})["&."+Te.root]=((t={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:s.zIndex.snackbar,height:"auto",width:"auto",transition:"top 300ms ease 0ms, right 300ms ease 0ms, bottom 300ms ease 0ms, left 300ms ease 0ms, margin 300ms ease 0ms, max-width 300ms ease 0ms",pointerEvents:"none"})[Pe]={pointerEvents:"all"},t[Ae]={padding:te.default+"px 0px",transition:"padding 300ms ease 0ms"},t.maxWidth="calc(100% - "+2*ee.default+"px)",t[s.breakpoints.down("sm")]={width:"100%",maxWidth:"calc(100% - 32px)"},t),a["&."+Te.rootDense]=((n={})[Ae]={padding:te.dense+"px 0px"},n),a["&."+Te.top]={top:ee.default-te.default,flexDirection:"column"},a["&."+Te.bottom]={bottom:ee.default-te.default,flexDirection:"column-reverse"},a["&."+Te.left]=((r={left:ee.default})[s.breakpoints.up("sm")]={alignItems:"flex-start"},r[s.breakpoints.down("sm")]={left:"16px"},r),a["&."+Te.right]=((o={right:ee.default})[s.breakpoints.up("sm")]={alignItems:"flex-end"},o[s.breakpoints.down("sm")]={right:"16px"},o),a["&."+Te.center]=((i={left:"50%",transform:"translateX(-50%)"})[s.breakpoints.up("sm")]={alignItems:"center"},i),a})),Re=function(e){var t=e.className,n=e.anchorOrigin,r=e.dense,i=J(e,["className","anchorOrigin","dense"]),a=(0,y.default)(Te[n.vertical],Te[n.horizontal],Te.root,t,r&&Te.rootDense);return o.createElement(Ie,Object.assign({className:a},i))},Fe=o.memo(Re),Be=function(e){var t,n,r,i,a;function s(t){var n;return(n=e.call(this,t)||this).enqueueSnackbar=function(e,t){void 0===t&&(t={});var r=t,o=r.key,i=r.preventDuplicate,a=J(r,["key","preventDuplicate"]),s=ce(o),l=s?o:(new Date).getTime()+Math.random(),c=function(e,t,n){return function(r){return"autoHideDuration"===r?ue(e.autoHideDuration)?e.autoHideDuration:ue(t.autoHideDuration)?t.autoHideDuration:ne.autoHideDuration:e[r]||t[r]||n[r]}}(a,n.props,ne),u=K({key:l},a,{message:e,open:!0,entered:!1,requestClose:!1,variant:c("variant"),anchorOrigin:c("anchorOrigin"),autoHideDuration:c("autoHideDuration")});return a.persist&&(u.autoHideDuration=void 0),n.setState((function(t){if(void 0===i&&n.props.preventDuplicate||i){var r=function(t){return s?t.key===o:t.message===e},a=t.queue.findIndex(r)>-1,l=t.snacks.findIndex(r)>-1;if(a||l)return t}return n.handleDisplaySnack(K({},t,{queue:[].concat(t.queue,[u])}))})),l},n.handleDisplaySnack=function(e){return e.snacks.length>=n.maxSnack?n.handleDismissOldest(e):n.processQueue(e)},n.processQueue=function(e){var t=e.queue,n=e.snacks;return t.length>0?K({},e,{snacks:[].concat(n,[t[0]]),queue:t.slice(1,t.length)}):e},n.handleDismissOldest=function(e){if(e.snacks.some((function(e){return!e.open||e.requestClose})))return e;var t=!1,r=!1;e.snacks.reduce((function(e,t){return e+(t.open&&t.persist?1:0)}),0)===n.maxSnack&&(r=!0);var o=e.snacks.map((function(e){return t||e.persist&&!r?K({},e):(t=!0,e.entered?(e.onClose&&e.onClose(null,ie.MAXSNACK,e.key),n.props.onClose&&n.props.onClose(null,ie.MAXSNACK,e.key),K({},e,{open:!1})):K({},e,{requestClose:!0}))}));return K({},e,{snacks:o})},n.handleEnteredSnack=function(e,t,r){if(!ce(r))throw new Error("handleEnteredSnack Cannot be called with undefined key");n.setState((function(e){return{snacks:e.snacks.map((function(e){return e.key===r?K({},e,{entered:!0}):K({},e)}))}}))},n.handleCloseSnack=function(e,t,r){if(n.props.onClose&&n.props.onClose(e,t,r),t!==ie.CLICKAWAY){var o=void 0===r;n.setState((function(e){var t=e.snacks,n=e.queue;return{snacks:t.map((function(e){return o||e.key===r?e.entered?K({},e,{open:!1}):K({},e,{requestClose:!0}):K({},e)})),queue:n.filter((function(e){return e.key!==r}))}}))}},n.closeSnackbar=function(e){var t=n.state.snacks.find((function(t){return t.key===e}));ce(e)&&t&&t.onClose&&t.onClose(null,ie.INSTRUCTED,e),n.handleCloseSnack(null,ie.INSTRUCTED,e)},n.handleExitedSnack=function(e,t,r){var o=t||r;if(!ce(o))throw new Error("handleExitedSnack Cannot be called with undefined key");n.setState((function(e){var t=n.processQueue(K({},e,{snacks:e.snacks.filter((function(e){return e.key!==o}))}));return 0===t.queue.length?t:n.handleDismissOldest(t)}))},n.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:n.enqueueSnackbar.bind(X(n)),closeSnackbar:n.closeSnackbar.bind(X(n))}},n}return n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,s.prototype.render=function(){var e=this,t=this.state.contextValue,n=this.props,r=n.iconVariant,i=n.dense,a=void 0===i?ne.dense:i,s=n.hideIconVariant,l=void 0===s?ne.hideIconVariant:s,c=n.domRoot,u=n.children,d=n.classes,p=void 0===d?{}:d,f=J(n,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),h=this.state.snacks.reduce((function(e,t){var n,r,o=(r=t.anchorOrigin,""+re(r.vertical)+re(r.horizontal)),i=e[o]||[];return K({},e,((n={})[o]=[].concat(i,[t]),n))}),{}),m=Object.keys(h).map((function(t){var n=h[t];return o.createElement(Fe,{key:t,dense:a,anchorOrigin:n[0].anchorOrigin,className:(0,y.default)(p.containerRoot,p[ae(t)])},n.map((function(t){return o.createElement(De,Object.assign({},f,{key:t.key,snack:t,dense:a,iconVariant:r,hideIconVariant:l,classes:oe(p),onClose:e.handleCloseSnack,onExited:je([e.handleExitedSnack,e.props.onExited]),onEntered:je([e.handleEnteredSnack,e.props.onEntered])}))})))}));return o.createElement(Q.Provider,{value:t},u,c?(0,g.createPortal)(m,c):m)},r=s,(i=[{key:"maxSnack",get:function(){return this.props.maxSnack||ne.maxSnack}}])&&Y(r.prototype,i),a&&Y(r,a),s}(o.Component),Le=n(11026),Ne=n(64013);function _e(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,Ne.Z)(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}var ze=n(41098),He=n(95136);function We(){return We=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},We.apply(this,arguments)}function Ve(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Ue(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((function(t,n){var r=e[n];return t.concat(Array.isArray(r)?r.map((function(e){return[n,e]})):[[n,r]])}),[]))}var qe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function Ge(e){var t=e.basename,n=e.children,r=e.window,i=o.useRef();null==i.current&&(i.current=(0,He.lX)({window:r,v5Compat:!0}));var a=i.current,s=o.useState({action:a.action,location:a.location}),l=(0,Le.Z)(s,2),c=l[0],u=l[1];return o.useLayoutEffect((function(){return a.listen(u)}),[a]),o.createElement(ze.F0,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:a})}var Ye=o.forwardRef((function(e,t){var n=e.onClick,r=e.relative,i=e.reloadDocument,a=e.replace,s=e.state,l=e.target,c=e.to,u=e.preventScrollReset,d=Ve(e,qe),p=(0,ze.oQ)(c,{relative:r}),f=function(e,t){var n=void 0===t?{}:t,r=n.target,i=n.replace,a=n.state,s=n.preventScrollReset,l=n.relative,c=(0,ze.s0)(),u=(0,ze.TH)(),d=(0,ze.WU)(e,{relative:l});return o.useCallback((function(t){if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,r)){t.preventDefault();var n=void 0!==i?i:(0,He.Ep)(u)===(0,He.Ep)(d);c(e,{replace:n,state:a,preventScrollReset:s,relative:l})}}),[u,c,d,i,a,r,e,s,l])}(c,{replace:a,state:s,target:l,preventScrollReset:u,relative:r});return o.createElement("a",We({},d,{href:p,onClick:i?n:function(e){n&&n(e),e.defaultPrevented||f(e)},ref:t,target:l}))}));var Ke,Je;function Xe(e){var t=o.useRef(Ue(e)),n=(0,ze.TH)(),r=o.useMemo((function(){return function(e,t){var n,r=Ue(e),o=_e(t.keys());try{var i=function(){var e=n.value;r.has(e)||t.getAll(e).forEach((function(t){r.append(e,t)}))};for(o.s();!(n=o.n()).done;)i()}catch(a){o.e(a)}finally{o.f()}return r}(n.search,t.current)}),[n.search]),i=(0,ze.s0)(),a=o.useCallback((function(e,t){var n=Ue("function"===typeof e?e(r):e);i("?"+n,t)}),[i,r]);return[r,a]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(Ke||(Ke={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Je||(Je={}));var Qe=n(25262),$e=n.n(Qe),et=n(90551),tt=n.n(et),nt=n(3095),rt=n.n(nt),ot=n(38297),it=n.n(ot);function at(){return at=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},at.apply(this,arguments)}function st(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,lt(e,t)}function lt(e,t){return lt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},lt(e,t)}function ct(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}var ut={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},dt={rel:["amphtml","canonical","alternate"]},pt={type:["application/ld+json"]},ft={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},ht=Object.keys(ut).map((function(e){return ut[e]})),mt={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},vt=Object.keys(mt).reduce((function(e,t){return e[mt[t]]=t,e}),{}),gt=function(e,t){for(var n=e.length-1;n>=0;n-=1){var r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},yt=function(e){var t=gt(e,ut.TITLE),n=gt(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(function(){return t}));var r=gt(e,"defaultTitle");return t||r||void 0},bt=function(e){return gt(e,"onChangeClientState")||function(){}},xt=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return at({},e,t)}),{})},wt=function(e,t){return t.filter((function(e){return void 0!==e[ut.BASE]})).map((function(e){return e[ut.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o+=1){var i=r[o].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}return t}),[])},Ct=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&console&&"function"==typeof console.warn&&console.warn("Helmet: "+e+' should be of type "Array". Instead found type "'+typeof t[e]+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n,i=Object.keys(e),a=0;a<i.length;a+=1){var s=i[a],l=s.toLowerCase();-1===t.indexOf(l)||"rel"===n&&"canonical"===e[n].toLowerCase()||"rel"===l&&"stylesheet"===e[l].toLowerCase()||(n=l),-1===t.indexOf(s)||"innerHTML"!==s&&"cssText"!==s&&"itemprop"!==s||(n=s)}if(!n||!e[n])return!1;var c=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][c]&&(o[n][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(o),a=0;a<i.length;a+=1){var s=i[a],l=at({},r[s],o[s]);r[s]=l}return e}),[]).reverse()},jt=function(e,t){if(Array.isArray(e)&&e.length)for(var n=0;n<e.length;n+=1)if(e[n][t])return!0;return!1},St=function(e){return Array.isArray(e)?e.join(""):e},kt=function(e,t){return Array.isArray(e)?e.reduce((function(e,n){return function(e,t){for(var n=Object.keys(e),r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1}(n,t)?e.priority.push(n):e.default.push(n),e}),{priority:[],default:[]}):{default:e}},Zt=function(e,t){var n;return at({},e,((n={})[t]=void 0,n))},Ot=[ut.NOSCRIPT,ut.SCRIPT,ut.STYLE],Et=function(e,t){return void 0===t&&(t=!0),!1===t?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},Dt=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},Pt=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce((function(t,n){return t[mt[n]||n]=e[n],t}),t)},At=function(e,t){return t.map((function(t,n){var r,i=((r={key:n})["data-rh"]=!0,r);return Object.keys(t).forEach((function(e){var n=mt[e]||e;"innerHTML"===n||"cssText"===n?i.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:i[n]=t[e]})),o.createElement(e,i)}))},Mt=function(e,t,n){switch(e){case ut.TITLE:return{toComponent:function(){return n=t.titleAttributes,(r={key:e=t.title})["data-rh"]=!0,i=Pt(n,r),[o.createElement(ut.TITLE,i,e)];var e,n,r,i},toString:function(){return function(e,t,n,r){var o=Dt(n),i=St(t);return o?"<"+e+' data-rh="true" '+o+">"+Et(i,r)+"</"+e+">":"<"+e+' data-rh="true">'+Et(i,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return Pt(t)},toString:function(){return Dt(t)}};default:return{toComponent:function(){return At(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!("innerHTML"===e||"cssText"===e)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+Et(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===Ot.indexOf(e);return t+"<"+e+' data-rh="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,n)}}}},Tt=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,i=e.noscriptTags,a=e.styleTags,s=e.title,l=void 0===s?"":s,c=e.titleAttributes,u=e.linkTags,d=e.metaTags,p=e.scriptTags,f={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var h=function(e){var t=e.linkTags,n=e.scriptTags,r=e.encode,o=kt(e.metaTags,ft),i=kt(t,dt),a=kt(n,pt);return{priorityMethods:{toComponent:function(){return[].concat(At(ut.META,o.priority),At(ut.LINK,i.priority),At(ut.SCRIPT,a.priority))},toString:function(){return Mt(ut.META,o.priority,r)+" "+Mt(ut.LINK,i.priority,r)+" "+Mt(ut.SCRIPT,a.priority,r)}},metaTags:o.default,linkTags:i.default,scriptTags:a.default}}(e);f=h.priorityMethods,u=h.linkTags,d=h.metaTags,p=h.scriptTags}return{priority:f,base:Mt(ut.BASE,t,r),bodyAttributes:Mt("bodyAttributes",n,r),htmlAttributes:Mt("htmlAttributes",o,r),link:Mt(ut.LINK,u,r),meta:Mt(ut.META,d,r),noscript:Mt(ut.NOSCRIPT,i,r),script:Mt(ut.SCRIPT,p,r),style:Mt(ut.STYLE,a,r),title:Mt(ut.TITLE,{title:l,titleAttributes:c},r)}},It=[],Rt=function(e,t){var n=this;void 0===t&&(t="undefined"!=typeof document),this.instances=[],this.value={setHelmet:function(e){n.context.helmet=e},helmetInstances:{get:function(){return n.canUseDOM?It:n.instances},add:function(e){(n.canUseDOM?It:n.instances).push(e)},remove:function(e){var t=(n.canUseDOM?It:n.instances).indexOf(e);(n.canUseDOM?It:n.instances).splice(t,1)}}},this.context=e,this.canUseDOM=t,t||(e.helmet=Tt({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},Ft=o.createContext({}),Bt=$e().shape({setHelmet:$e().func,helmetInstances:$e().shape({get:$e().func,add:$e().func,remove:$e().func})}),Lt="undefined"!=typeof document,Nt=function(e){function t(n){var r;return(r=e.call(this,n)||this).helmetData=new Rt(r.props.context,t.canUseDOM),r}return st(t,e),t.prototype.render=function(){return o.createElement(Ft.Provider,{value:this.helmetData.value},this.props.children)},t}(o.Component);Nt.canUseDOM=Lt,Nt.propTypes={context:$e().shape({helmet:$e().shape()}),children:$e().node.isRequired},Nt.defaultProps={context:{}},Nt.displayName="HelmetProvider";var _t=function(e,t){var n,r=document.head||document.querySelector(ut.HEAD),o=r.querySelectorAll(e+"[data-rh]"),i=[].slice.call(o),a=[];return t&&t.length&&t.forEach((function(t){var r=document.createElement(e);for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&("innerHTML"===o?r.innerHTML=t.innerHTML:"cssText"===o?r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText)):r.setAttribute(o,void 0===t[o]?"":t[o]));r.setAttribute("data-rh","true"),i.some((function(e,t){return n=t,r.isEqualNode(e)}))?i.splice(n,1):a.push(r)})),i.forEach((function(e){return e.parentNode.removeChild(e)})),a.forEach((function(e){return r.appendChild(e)})),{oldTags:i,newTags:a}},zt=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute("data-rh"),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(t),s=0;s<a.length;s+=1){var l=a[s],c=t[l]||"";n.getAttribute(l)!==c&&n.setAttribute(l,c),-1===o.indexOf(l)&&o.push(l);var u=i.indexOf(l);-1!==u&&i.splice(u,1)}for(var d=i.length-1;d>=0;d-=1)n.removeAttribute(i[d]);o.length===i.length?n.removeAttribute("data-rh"):n.getAttribute("data-rh")!==a.join(",")&&n.setAttribute("data-rh",a.join(","))}},Ht=function(e,t){var n=e.baseTag,r=e.htmlAttributes,o=e.linkTags,i=e.metaTags,a=e.noscriptTags,s=e.onChangeClientState,l=e.scriptTags,c=e.styleTags,u=e.title,d=e.titleAttributes;zt(ut.BODY,e.bodyAttributes),zt(ut.HTML,r),function(e,t){void 0!==e&&document.title!==e&&(document.title=St(e)),zt(ut.TITLE,t)}(u,d);var p={baseTag:_t(ut.BASE,n),linkTags:_t(ut.LINK,o),metaTags:_t(ut.META,i),noscriptTags:_t(ut.NOSCRIPT,a),scriptTags:_t(ut.SCRIPT,l),styleTags:_t(ut.STYLE,c)},f={},h={};Object.keys(p).forEach((function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(f[e]=n),r.length&&(h[e]=p[e].oldTags)})),t&&t(),s(e,f,h)},Wt=null,Vt=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).rendered=!1,t}st(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return!it()(e,this.props)},n.componentDidUpdate=function(){this.emitChange()},n.componentWillUnmount=function(){this.props.context.helmetInstances.remove(this),this.emitChange()},n.emitChange=function(){var e,t,n=this.props.context,r=n.setHelmet,o=null,i=(e=n.helmetInstances.get().map((function(e){var t=at({},e.props);return delete t.context,t})),{baseTag:wt(["href"],e),bodyAttributes:xt("bodyAttributes",e),defer:gt(e,"defer"),encode:gt(e,"encodeSpecialCharacters"),htmlAttributes:xt("htmlAttributes",e),linkTags:Ct(ut.LINK,["rel","href"],e),metaTags:Ct(ut.META,["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Ct(ut.NOSCRIPT,["innerHTML"],e),onChangeClientState:bt(e),scriptTags:Ct(ut.SCRIPT,["src","innerHTML"],e),styleTags:Ct(ut.STYLE,["cssText"],e),title:yt(e),titleAttributes:xt("titleAttributes",e),prioritizeSeoTags:jt(e,"prioritizeSeoTags")});Nt.canUseDOM?(t=i,Wt&&cancelAnimationFrame(Wt),t.defer?Wt=requestAnimationFrame((function(){Ht(t,(function(){Wt=null}))})):(Ht(t),Wt=null)):Tt&&(o=Tt(i)),r(o)},n.init=function(){this.rendered||(this.rendered=!0,this.props.context.helmetInstances.add(this),this.emitChange())},n.render=function(){return this.init(),null},t}(o.Component);Vt.propTypes={context:Bt.isRequired},Vt.displayName="HelmetDispatcher";var Ut=["children"],qt=["children"],Gt=function(e){function t(){return e.apply(this,arguments)||this}st(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return!tt()(Zt(this.props,"helmetData"),Zt(e,"helmetData"))},n.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case ut.SCRIPT:case ut.NOSCRIPT:return{innerHTML:t};case ut.STYLE:return{cssText:t};default:throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")}},n.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren;return at({},r,((t={})[n.type]=[].concat(r[n.type]||[],[at({},e.newChildProps,this.mapNestedChildrenToProps(n,e.nestedChildren))]),t))},n.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case ut.TITLE:return at({},o,((t={})[r.type]=a,t.titleAttributes=at({},i),t));case ut.BODY:return at({},o,{bodyAttributes:at({},i)});case ut.HTML:return at({},o,{htmlAttributes:at({},i)});default:return at({},o,((n={})[r.type]=at({},i),n))}},n.mapArrayTypeChildrenToProps=function(e,t){var n=at({},t);return Object.keys(e).forEach((function(t){var r;n=at({},n,((r={})[t]=e[t],r))})),n},n.warnOnInvalidChildren=function(e,t){return rt()(ht.some((function(t){return e.type===t})),"function"==typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+ht.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),rt()(!t||"string"==typeof t||Array.isArray(t)&&!t.some((function(e){return"string"!=typeof e})),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``}</"+e.type+"> ) Refer to our API for more information."),!0},n.mapChildrenToProps=function(e,t){var n=this,r={};return o.Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=ct(o,Ut),s=Object.keys(a).reduce((function(e,t){return e[vt[t]||t]=a[t],e}),{}),l=e.type;switch("symbol"==typeof l?l=l.toString():n.warnOnInvalidChildren(e,i),l){case ut.FRAGMENT:t=n.mapChildrenToProps(i,t);break;case ut.LINK:case ut.META:case ut.NOSCRIPT:case ut.SCRIPT:case ut.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:s,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:i})}}})),this.mapArrayTypeChildrenToProps(r,t)},n.render=function(){var e=this.props,t=e.children,n=ct(e,qt),r=at({},n),i=n.helmetData;return t&&(r=this.mapChildrenToProps(t,r)),!i||i instanceof Rt||(i=new Rt(i.context,i.instances)),i?o.createElement(Vt,at({},r,{context:i.value,helmetData:void 0})):o.createElement(Ft.Consumer,null,(function(e){return o.createElement(Vt,at({},r,{context:e}))}))},t}(o.Component);Gt.propTypes={base:$e().object,bodyAttributes:$e().object,children:$e().oneOfType([$e().arrayOf($e().node),$e().node]),defaultTitle:$e().string,defer:$e().bool,encodeSpecialCharacters:$e().bool,htmlAttributes:$e().object,link:$e().arrayOf($e().object),meta:$e().arrayOf($e().object),noscript:$e().arrayOf($e().object),onChangeClientState:$e().func,script:$e().arrayOf($e().object),style:$e().arrayOf($e().object),title:$e().string,titleAttributes:$e().object,titleTemplate:$e().string,prioritizeSeoTags:$e().bool,helmetData:$e().object},Gt.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},Gt.displayName="Helmet";var Yt=n(58929),Kt=n(53549),Jt=n(4513),Xt=n(21590),Qt=n(82322),$t=n(45503),en=(0,Qt.Z)(),tn=(0,Jt.Z)({themeId:$t.Z,defaultTheme:en,defaultClassName:"MuiBox-root",generateClassName:Xt.Z.generate}),nn=n(37646),rn=n(38697),on=n(36777),an=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],sn=(0,P.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((function(e){var t=e.theme,n=e.ownerState;return(0,r.Z)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},n.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},n.light&&{borderColor:t.vars?"rgba(".concat(t.vars.palette.dividerChannel," / 0.08)"):(0,A.Fq)(t.palette.divider,.08)},"inset"===n.variant&&{marginLeft:72},"middle"===n.variant&&"horizontal"===n.orientation&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},"middle"===n.variant&&"vertical"===n.orientation&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},"vertical"===n.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},n.flexItem&&{alignSelf:"stretch",height:"auto"})}),(function(e){var t=e.ownerState;return(0,r.Z)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})}),(function(e){var t=e.theme,n=e.ownerState;return(0,r.Z)({},n.children&&"vertical"!==n.orientation&&{"&::before, &::after":{width:"100%",borderTop:"thin solid ".concat((t.vars||t).palette.divider)}})}),(function(e){var t=e.theme,n=e.ownerState;return(0,r.Z)({},n.children&&"vertical"===n.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:"thin solid ".concat((t.vars||t).palette.divider)}})}),(function(e){var t=e.ownerState;return(0,r.Z)({},"right"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})})),ln=(0,P.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:function(e,t){var n=e.ownerState;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((function(e){var t=e.theme,n=e.ownerState;return(0,r.Z)({display:"inline-block",paddingLeft:"calc(".concat(t.spacing(1)," * 1.2)"),paddingRight:"calc(".concat(t.spacing(1)," * 1.2)")},"vertical"===n.orientation&&{paddingTop:"calc(".concat(t.spacing(1)," * 1.2)"),paddingBottom:"calc(".concat(t.spacing(1)," * 1.2)")})})),cn=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiDivider"}),o=n.absolute,i=void 0!==o&&o,a=n.children,s=n.className,l=n.component,c=void 0===l?a?"div":"hr":l,d=n.flexItem,p=void 0!==d&&d,f=n.light,h=void 0!==f&&f,m=n.orientation,v=void 0===m?"horizontal":m,g=n.role,x=void 0===g?"hr"!==c?"separator":void 0:g,w=n.textAlign,C=void 0===w?"center":w,j=n.variant,S=void 0===j?"fullWidth":j,k=(0,b.Z)(n,an),Z=(0,r.Z)({},n,{absolute:i,component:c,flexItem:p,light:h,orientation:v,role:x,textAlign:C,variant:S}),O=function(e){var t=e.absolute,n=e.children,r=e.classes,o=e.flexItem,i=e.light,a=e.orientation,s=e.textAlign,l={root:["root",t&&"absolute",e.variant,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]};return(0,M.Z)(l,on.V,r)}(Z);return(0,u.jsx)(sn,(0,r.Z)({as:c,className:(0,y.default)(O.root,s),role:x,ref:t,ownerState:Z},k,{children:a?(0,u.jsx)(ln,{className:O.wrapper,ownerState:Z,children:a}):null}))})),un=cn,dn=n(649),pn=n(75497),fn=n(41461);var hn=o.createContext();function mn(e){return(0,F.Z)("MuiGrid",e)}var vn=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],gn=(0,R.Z)("MuiGrid",["root","container","item","zeroMinWidth"].concat((0,dn.Z)([0,1,2,3,4,5,6,7,8,9,10].map((function(e){return"spacing-xs-".concat(e)}))),(0,dn.Z)(["column-reverse","column","row-reverse","row"].map((function(e){return"direction-xs-".concat(e)}))),(0,dn.Z)(["nowrap","wrap-reverse","wrap"].map((function(e){return"wrap-xs-".concat(e)}))),(0,dn.Z)(vn.map((function(e){return"grid-xs-".concat(e)}))),(0,dn.Z)(vn.map((function(e){return"grid-sm-".concat(e)}))),(0,dn.Z)(vn.map((function(e){return"grid-md-".concat(e)}))),(0,dn.Z)(vn.map((function(e){return"grid-lg-".concat(e)}))),(0,dn.Z)(vn.map((function(e){return"grid-xl-".concat(e)}))))),yn=gn,bn=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function xn(e){var t=parseFloat(e);return"".concat(t).concat(String(e).replace(String(t),"")||"px")}function wn(e){var t=e.breakpoints,n=e.values,r="";Object.keys(n).forEach((function(e){""===r&&0!==n[e]&&(r=e)}));var o=Object.keys(t).sort((function(e,n){return t[e]-t[n]}));return o.slice(0,o.indexOf(r))}var Cn=(0,P.ZP)("div",{name:"MuiGrid",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState,r=n.container,o=n.direction,i=n.item,a=n.spacing,s=n.wrap,l=n.zeroMinWidth,c=n.breakpoints,u=[];r&&(u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[n["spacing-xs-".concat(String(e))]];var r=[];return t.forEach((function(t){var o=e[t];Number(o)>0&&r.push(n["spacing-".concat(t,"-").concat(String(o))])})),r}(a,c,t));var d=[];return c.forEach((function(e){var r=n[e];r&&d.push(t["grid-".concat(e,"-").concat(String(r))])})),[t.root,r&&t.container,i&&t.item,l&&t.zeroMinWidth].concat((0,dn.Z)(u),["row"!==o&&t["direction-xs-".concat(String(o))],"wrap"!==s&&t["wrap-xs-".concat(String(s))]],d)}})((function(e){var t=e.ownerState;return(0,r.Z)({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},"wrap"!==t.wrap&&{flexWrap:t.wrap})}),(function(e){var t=e.theme,n=e.ownerState,r=(0,pn.P$)({values:n.direction,breakpoints:t.breakpoints.values});return(0,pn.k9)({theme:t},r,(function(e){var t={flexDirection:e};return 0===e.indexOf("column")&&(t["& > .".concat(yn.item)]={maxWidth:"none"}),t}))}),(function(e){var n=e.theme,r=e.ownerState,o=r.container,i=r.rowSpacing,a={};if(o&&0!==i){var s,l=(0,pn.P$)({values:i,breakpoints:n.breakpoints.values});"object"===typeof l&&(s=wn({breakpoints:n.breakpoints.values,values:l})),a=(0,pn.k9)({theme:n},l,(function(e,r){var o,i=n.spacing(e);return"0px"!==i?(0,t.Z)({marginTop:"-".concat(xn(i))},"& > .".concat(yn.item),{paddingTop:xn(i)}):null!=(o=s)&&o.includes(r)?{}:(0,t.Z)({marginTop:0},"& > .".concat(yn.item),{paddingTop:0})}))}return a}),(function(e){var n=e.theme,r=e.ownerState,o=r.container,i=r.columnSpacing,a={};if(o&&0!==i){var s,l=(0,pn.P$)({values:i,breakpoints:n.breakpoints.values});"object"===typeof l&&(s=wn({breakpoints:n.breakpoints.values,values:l})),a=(0,pn.k9)({theme:n},l,(function(e,r){var o,i=n.spacing(e);return"0px"!==i?(0,t.Z)({width:"calc(100% + ".concat(xn(i),")"),marginLeft:"-".concat(xn(i))},"& > .".concat(yn.item),{paddingLeft:xn(i)}):null!=(o=s)&&o.includes(r)?{}:(0,t.Z)({width:"100%",marginLeft:0},"& > .".concat(yn.item),{paddingLeft:0})}))}return a}),(function(e){var t,n=e.theme,o=e.ownerState;return n.breakpoints.keys.reduce((function(e,i){var a={};if(o[i]&&(t=o[i]),!t)return e;if(!0===t)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===t)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{var s=(0,pn.P$)({values:o.columns,breakpoints:n.breakpoints.values}),l="object"===typeof s?s[i]:s;if(void 0===l||null===l)return e;var c="".concat(Math.round(t/l*1e8)/1e6,"%"),u={};if(o.container&&o.item&&0!==o.columnSpacing){var d=n.spacing(o.columnSpacing);if("0px"!==d){var p="calc(".concat(c," + ").concat(xn(d),")");u={flexBasis:p,maxWidth:p}}}a=(0,r.Z)({flexBasis:c,flexGrow:0,maxWidth:c},u)}return 0===n.breakpoints.values[i]?Object.assign(e,a):e[n.breakpoints.up(i)]=a,e}),{})}));var jn=function(e){var t=e.classes,n=e.container,r=e.direction,o=e.item,i=e.spacing,a=e.wrap,s=e.zeroMinWidth,l=e.breakpoints,c=[];n&&(c=function(e,t){if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return["spacing-xs-".concat(String(e))];var n=[];return t.forEach((function(t){var r=e[t];if(Number(r)>0){var o="spacing-".concat(t,"-").concat(String(r));n.push(o)}})),n}(i,l));var u=[];l.forEach((function(t){var n=e[t];n&&u.push("grid-".concat(t,"-").concat(String(n)))}));var d={root:["root",n&&"container",o&&"item",s&&"zeroMinWidth"].concat((0,dn.Z)(c),["row"!==r&&"direction-xs-".concat(String(r)),"wrap"!==a&&"wrap-xs-".concat(String(a))],u)};return(0,M.Z)(d,mn,t)},Sn=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiGrid"}),i=(0,j.Z)().breakpoints,a=(0,fn.Z)(n),s=a.className,l=a.columns,c=a.columnSpacing,d=a.component,p=void 0===d?"div":d,f=a.container,h=void 0!==f&&f,m=a.direction,v=void 0===m?"row":m,g=a.item,x=void 0!==g&&g,w=a.rowSpacing,C=a.spacing,S=void 0===C?0:C,k=a.wrap,Z=void 0===k?"wrap":k,O=a.zeroMinWidth,E=void 0!==O&&O,D=(0,b.Z)(a,bn),P=w||S,A=c||S,M=o.useContext(hn),I=h?l||12:M,R={},F=(0,r.Z)({},D);i.keys.forEach((function(e){null!=D[e]&&(R[e]=D[e],delete F[e])}));var B=(0,r.Z)({},a,{columns:I,container:h,direction:v,item:x,rowSpacing:P,columnSpacing:A,wrap:Z,zeroMinWidth:E,spacing:S},R,{breakpoints:i.keys}),L=jn(B);return(0,u.jsx)(hn.Provider,{value:I,children:(0,u.jsx)(Cn,(0,r.Z)({ownerState:B,className:(0,y.default)(L.root,s),as:p,ref:t},F))})})),kn=Sn,Zn=n(85961);function On(e){return(0,F.Z)("MuiIcon",e)}(0,R.Z)("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var En=["baseClassName","className","color","component","fontSize"],Dn=(0,P.ZP)("span",{name:"MuiIcon",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"inherit"!==n.color&&t["color".concat((0,Zn.Z)(n.color))],t["fontSize".concat((0,Zn.Z)(n.fontSize))]]}})((function(e){var t=e.theme,n=e.ownerState;return{userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:t.typography.pxToRem(20),medium:t.typography.pxToRem(24),large:t.typography.pxToRem(36)}[n.fontSize],color:{primary:(t.vars||t).palette.primary.main,secondary:(t.vars||t).palette.secondary.main,info:(t.vars||t).palette.info.main,success:(t.vars||t).palette.success.main,warning:(t.vars||t).palette.warning.main,action:(t.vars||t).palette.action.active,error:(t.vars||t).palette.error.main,disabled:(t.vars||t).palette.action.disabled,inherit:void 0}[n.color]}})),Pn=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiIcon"}),o=n.baseClassName,i=void 0===o?"material-icons":o,a=n.className,s=n.color,l=void 0===s?"inherit":s,c=n.component,d=void 0===c?"span":c,p=n.fontSize,f=void 0===p?"medium":p,h=(0,b.Z)(n,En),m=(0,r.Z)({},n,{baseClassName:i,color:l,component:d,fontSize:f}),v=function(e){var t=e.color,n=e.fontSize,r=e.classes,o={root:["root","inherit"!==t&&"color".concat((0,Zn.Z)(t)),"fontSize".concat((0,Zn.Z)(n))]};return(0,M.Z)(o,On,r)}(m);return(0,u.jsx)(Dn,(0,r.Z)({as:d,className:(0,y.default)(i,"notranslate",v.root,a),ownerState:m,"aria-hidden":!0,ref:t},h))}));Pn.muiName="Icon";var An=Pn,Mn=n(24002),Tn=n(33850);function In(e,t,n,r,i){var a=o.useState((function(){return i&&n?n(e).matches:r?r(e).matches:t})),s=(0,Le.Z)(a,2),l=s[0],c=s[1];return(0,Tn.Z)((function(){var t=!0;if(n){var r=n(e),o=function(){t&&c(r.matches)};return o(),r.addListener(o),function(){t=!1,r.removeListener(o)}}}),[e,n]),l}var Rn=i.useSyncExternalStore;function Fn(e,t,n,r,i){var a=o.useCallback((function(){return t}),[t]),s=o.useMemo((function(){if(i&&n)return function(){return n(e).matches};if(null!==r){var t=r(e).matches;return function(){return t}}return a}),[a,e,r,i,n]),l=o.useMemo((function(){if(null===n)return[a,function(){return function(){}}];var t=n(e);return[function(){return t.matches},function(e){return t.addListener(e),function(){t.removeListener(e)}}]}),[a,n,e]),c=(0,Le.Z)(l,2),u=c[0],d=c[1];return Rn(d,u,s)}function Bn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,f.Z)(),r="undefined"!==typeof window&&"undefined"!==typeof window.matchMedia,o=(0,Mn.Z)({name:"MuiUseMediaQuery",props:t,theme:n}),i=o.defaultMatches,a=void 0!==i&&i,s=o.matchMedia,l=void 0===s?r?window.matchMedia:null:s,c=o.ssrMatchMedia,u=void 0===c?null:c,d=o.noSsr,p=void 0!==d&&d;var h="function"===typeof e?e(n):e;h=h.replace(/^@media( ?)/m,"");var m=void 0!==Rn?Fn:In,v=m(h,a,l,u,p);return v}var Ln=n.p+"static/media/spona-purple.c86d251f9e9cebb413e0052fd5df1b2f.svg";function Nn(e,t){if(null==e)return{};var n,r,o=(0,b.Z)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var _n=n(4027);function zn(e){return(0,F.Z)("MuiLink",e)}var Hn,Wn,Vn=(0,R.Z)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Un=n(94259),qn={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Gn=function(e){var t=e.theme,n=e.ownerState,r=function(e){return qn[e]||e}(n.color),o=(0,Un.DW)(t,"palette.".concat(r),!1)||n.color,i=(0,Un.DW)(t,"palette.".concat(r,"Channel"));return"vars"in t&&i?"rgba(".concat(i," / 0.4)"):(0,A.Fq)(o,.4)},Yn=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Kn=(0,P.ZP)(rn.Z,{name:"MuiLink",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["underline".concat((0,Zn.Z)(n.underline))],"button"===n.component&&t.button]}})((function(e){var n=e.theme,o=e.ownerState;return(0,r.Z)({},"none"===o.underline&&{textDecoration:"none"},"hover"===o.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===o.underline&&(0,r.Z)({textDecoration:"underline"},"inherit"!==o.color&&{textDecorationColor:Gn({theme:n,ownerState:o})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===o.component&&(0,t.Z)({position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"}},"&.".concat(Vn.focusVisible),{outline:"auto"}))})),Jn=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiLink"}),i=n.className,a=n.color,s=void 0===a?"primary":a,l=n.component,c=void 0===l?"a":l,d=n.onBlur,p=n.onFocus,f=n.TypographyClasses,h=n.underline,m=void 0===h?"always":h,v=n.variant,g=void 0===v?"inherit":v,x=n.sx,w=(0,b.Z)(n,Yn),j=(0,_n.Z)(),S=j.isFocusVisibleRef,k=j.onBlur,Z=j.onFocus,O=j.ref,E=o.useState(!1),D=(0,Le.Z)(E,2),P=D[0],A=D[1],I=(0,C.Z)(t,O),R=(0,r.Z)({},n,{color:s,component:c,focusVisible:P,underline:m,variant:g}),F=function(e){var t=e.classes,n=e.component,r=e.focusVisible,o=e.underline,i={root:["root","underline".concat((0,Zn.Z)(o)),"button"===n&&"button",r&&"focusVisible"]};return(0,M.Z)(i,zn,t)}(R);return(0,u.jsx)(Kn,(0,r.Z)({color:s,className:(0,y.default)(F.root,i),classes:f,component:c,onBlur:function(e){k(e),!1===S.current&&A(!1),d&&d(e)},onFocus:function(e){Z(e),!0===S.current&&A(!0),p&&p(e)},ref:I,ownerState:R,variant:g,sx:[].concat((0,dn.Z)(Object.keys(qn).includes(s)?[]:[{color:s}]),(0,dn.Z)(Array.isArray(x)?x:[x]))},w))})),Xn=Jn,Qn=["underline","color","variant","children","to","sx"],$n=function(e){var t=e.underline,n=e.color,r=e.variant,o=e.children,i=e.to,a=e.sx,s=Nn(e,Qn);return(0,u.jsx)(Xn,(0,l.Z)((0,l.Z)({component:Ye,underline:null!==t&&void 0!==t?t:"none",color:null!==n&&void 0!==n?n:"primary",variant:null!==r&&void 0!==r?r:"inherit",to:i,sx:(0,l.Z)({},a)},s),{},{children:o}))},er=n(18105),tr=n(97189),nr=n(41584),rr=function(){return(0,u.jsx)(nr.Z,{sx:{fontSize:"inherit",opacity:.3}})},or=(0,er.Z)({}),ir=(0,Qt.Z)({components:{MuiTooltip:{styleOverrides:{tooltip:{textTransform:"uppercase",py:.5,px:1.25,borderRadius:"3px",boxShadow:"5px 15px 25px rgba(0, 0, 0, 0.08)",background:tr.IV[600],whiteSpace:"normal",border:"none"},arrow:{color:tr.IV[600]}}},MuiButton:{styleOverrides:{root:{borderRadius:"8px"}}},MuiTypography:{defaultProps:{variant:"body2"}},MuiTextField:{defaultProps:{variant:"standard"}},MuiOutlinedInput:{styleOverrides:{root:{paddingRight:2,"&:hover":{".MuiInputAdornment-outlined":{borderLeftColor:"#212121"}},"&.Mui-focused":{".MuiInputAdornment-outlined":{borderLeftColor:"#212121",borderLeftWidth:"2px"}}}}},MuiAccordionSummary:{styleOverrides:{root:{minHeight:"56px"}}},MuiChip:{styleOverrides:{root:{fontWeight:500}}},MuiDataGrid:{defaultProps:{disableColumnMenu:!0,components:{ColumnUnsortedIcon:rr}},styleOverrides:{root:{"&>.MuiDataGrid-main":{border:"none !important",borderBottom:"5px solid red","&>.MuiDataGrid-columnHeaders":{borderBottom:"none"},"& div div div div >.MuiDataGrid-cell":{borderBottom:"none"}},".MuiDataGrid-columnHeader":{paddingLeft:1,border:"none"},".MuiDataGrid-root":{outline:"none !important"},"&.MuiDataGrid-root .MuiDataGrid-cell:focus-within":{outline:"none !important"},"&.MuiDataGrid-root .MuiDataGrid-columnHeader:focus-within":{outline:"none !important"},".MuiDataGrid-row":{borderRadius:"6px",transition:"all 120ms ease-out","&:hover":{cursor:"pointer",background:"#FFFFFF",boxShadow:"6px 6px 15px rgba(56, 69, 114, 0.1)"}},".MuiDataGrid-columnHeaderTitle":{fontFamily:"Outfit",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:"0.05em",textTransform:"uppercase",color:"#79829B"},"& .MuiTypography-root":(0,t.Z)({},or.down("lg"),{fontSize:"0.875rem !important"}),".MuiDataGrid-columnSeparator":{display:"none !important"}}}}},breakpoints:{values:{xs:or.values.xs,sm:or.values.sm,md:or.values.md,bg:1024,lg:or.values.lg,gr:1440,xl:or.values.xl,xxl:1920}},palette:{primary:{main:"#27004F",light:"#6324FF",dark:"rgba(98, 36, 255, 0.8)",contrastText:"#F6F6F6"},secondary:{main:"#7F57FF"},primaryLight:{main:tr.E4[300],50:tr.E4[50],100:tr.E4[100],200:tr.E4[200],300:tr.E4[300],400:tr.E4[400],500:tr.E4[500],600:tr.E4[600],700:tr.E4[700],800:tr.E4[800],900:tr.E4[900],contrastText:"#fff"},primaryDark:{main:tr.IV[300],100:tr.IV[100],150:tr.IV[150],200:tr.IV[200],250:tr.IV[250],300:tr.IV[300],400:tr.IV[400],500:tr.IV[500],600:tr.IV[600],700:tr.IV[700],800:tr.IV[800],900:tr.IV[900],contrastText:"#fff"},secondaryPink:{main:tr.Us[200],100:tr.Us[100],200:tr.Us[200],500:tr.Us[500],700:tr.Us[700],contrastText:"#fff"},secondaryGreen:{main:tr.so[200],100:tr.so[100],200:tr.so[200],301:tr.so[301],401:tr.so[401],500:tr.so[500],601:tr.so[601],700:tr.so[700],701:tr.so[701],801:tr.so[801],901:tr.so[901],contrastText:"#fff"},secondaryBlue:{main:tr.dx[200],50:tr.dx[50],100:tr.dx[100],101:tr.dx[101],200:tr.dx[200],201:tr.dx[201],301:tr.dx[301],401:tr.dx[401],500:tr.dx[500],501:tr.dx[501],601:tr.dx[601],700:tr.dx[700],701:tr.dx[701],801:tr.dx[801],901:tr.dx[901],contrastText:"#fff"},secondaryYellow:{main:tr.oq[200],100:tr.oq[100],200:tr.oq[200],301:tr.oq[301],401:tr.oq[401],500:tr.oq[500],601:tr.oq[601],700:tr.oq[700],701:tr.oq[701],801:tr.oq[801],901:tr.oq[901],contrastText:"#fff"},secondaryGray:{main:tr.aK[300],100:tr.aK[100],200:tr.aK[200],300:tr.aK[300],400:tr.aK[400],500:tr.aK[500],600:tr.aK[600],700:tr.aK[700],800:tr.aK[800],900:tr.aK[900],contrastText:"#fff"},secondaryOrange:{main:tr.NP[101],50:tr.NP[50],101:tr.NP[101],201:tr.NP[201],301:tr.NP[301],401:tr.NP[401],501:tr.NP[501],601:tr.NP[601],701:tr.NP[701],801:tr.NP[801],901:tr.NP[901],contrastText:"#fff"},gradient:{main:tr.FL[1],1:tr.FL[1],2:tr.FL[2],3:tr.FL[3],4:tr.FL[4],5:tr.FL[5],6:tr.FL[6],7:tr.FL[7],8:tr.FL[8],9:tr.FL[9],10:tr.FL[10],11:tr.FL[11],12:tr.FL[12],contrastText:"#fff"}},typography:{fontFamily:["Gellix-Regular","CooperBT","sans-serif","cursive"].join(","),button:{textTransform:"none",fontSize:"0.95rem"},h1:{fontSize:"3rem",fontWeight:400,fontFamily:"CooperBT"},h2:{fontSize:"2.25rem",fontWeight:400,fontFamily:"CooperBT"},h3:{fontSize:"2.25rem",fontWeight:500},h4:{fontSize:"1.6rem",fontWeight:400},h5:{fontSize:"1.15rem",fontWeight:400},h6:{fontSize:"1.2",fontWeight:600},subtitle1:{fontWeight:300,fontSize:"0.85rem"},subtitle2:{fontWeight:700,fontSize:"0.92rem"},headline1:{fontFamily:"CooperBT",fontWeight:400,fontSize:"3rem"},headline2:{fontFamily:"CooperBT",fontWeight:400,fontSize:"2.25rem"},headline3:{fontFamily:"CooperBT",fontWeight:400,fontSize:"1.75rem"},headline4:(0,t.Z)({fontFamily:"CooperBT",fontWeight:400,fontSize:"1.375rem"},or.down("xl"),{fontSize:"1.25rem"}),headline5:(0,t.Z)({fontFamily:"CooperBT",fontWeight:400,fontSize:"1.25rem"},or.down("xl"),{fontSize:"1.125rem"}),headline6:(0,t.Z)({fontFamily:"CooperBT",fontWeight:400,fontSize:"1.125rem"},or.down("xl"),{fontSize:"1rem"}),headline7:(0,t.Z)({fontFamily:"CooperBT",fontWeight:400,fontSize:"1rem"},or.down("xl"),{fontSize:"0.875rem"}),heading1:{fontFamily:"Gellix-SemiBold",fontWeight:600,fontSize:"1.75rem",textTransform:"uppercase",letterSpacing:"0.02rem"},heading2:(0,t.Z)({fontFamily:"Gellix-SemiBold",fontWeight:600,textTransform:"uppercase",letterSpacing:"0.02rem",lineHeight:"1.3125rem",fontSize:"1.375rem"},or.down("xl"),{fontSize:"1.25rem"}),heading3:{fontFamily:"Gellix-SemiBold",fontWeight:600,textTransform:"uppercase",letterSpacing:"0.02rem",lineHeight:"1.3125rem",fontSize:"1rem"},heading4:{fontFamily:"Gellix-SemiBold",fontWeight:600,textTransform:"uppercase",letterSpacing:"0.05rem",lineHeight:"1rem",fontSize:"0.875rem"},heading5:(0,t.Z)({fontFamily:"Gellix-SemiBold",fontWeight:600,textTransform:"uppercase",letterSpacing:"0.05em",lineHeight:"1rem",fontSize:"0.75rem"},or.down("xl"),{fontSize:"0.6875rem"}),body1:{fontFamily:"Gellix-Regular",fontWeight:400,lineHeight:"1.3125rem",letterSpacing:"0.03rem",fontSize:"1.125rem"},body2:{fontFamily:"Gellix-Regular",fontWeight:400,lineHeight:"1.3125rem",letterSpacing:"0.03rem",fontSize:"1rem"},body3:{fontFamily:"Gellix-Regular",fontWeight:400,lineHeight:"1rem",fontSize:"0.875rem"},body4:{fontFamily:"Gellix-Regular",fontWeight:400,lineHeight:"1rem",fontSize:"0.75rem"},bodyMedium1:{fontFamily:"Gellix-Medium",lineHeight:"1.3125rem",fontSize:"1.125rem"},bodyMedium2:{fontFamily:"Gellix-Medium",lineHeight:"1.3125rem",fontSize:"1rem"},bodyMedium3:{fontFamily:"Gellix-Medium",lineHeight:"1.125rem",fontSize:"0.875rem"},bodyMedium4:{fontFamily:"Gellix-Medium",lineHeight:"1rem",fontSize:"0.75rem"},bodySemiBold1:{fontFamily:"Gellix-SemiBold",lineHeight:"1.3125rem",fontSize:"1.125rem"},bodySemiBold2:{fontFamily:"Gellix-SemiBold",lineHeight:"1.3125rem",fontSize:"1rem"},bodySemiBold3:{fontFamily:"Gellix-SemiBold",lineHeight:"1rem",fontSize:"0.875rem"},bodySemiBold4:{fontFamily:"Gellix-SemiBold",lineHeight:"1rem",fontSize:"0.75rem"},publicHeadline1:{fontFamily:"Gellix-SemiBold",fontWeight:600,fontStyle:"normal",fontSize:"10.3rem",letterSpacing:"0.04rem",lineHeight:"106%"},publicHeadline2:{fontFamily:"Gellix-SemiBold",fontWeight:600,fontStyle:"normal",fontSize:"8.5rem",letterSpacing:"0.45rem",lineHeight:"111%"},publicHeadline3:{fontFamily:"Gellix-SemiBold",fontWeight:600,fontStyle:"normal",fontSize:"8.3rem",letterSpacing:"0.3325rem",lineHeight:"130%"},publicHeadline4:{fontFamily:"Gellix-SemiBold",fontWeight:600,fontSize:"7.9rem",letterSpacing:"0.04rem",lineHeight:"116%"},publicHeadline5:{fontFamily:"Gellix-SemiBold",fontWeight:600,fontStyle:"normal",fontSize:"7.4rem",letterSpacing:"0.2975rem",lineHeight:"114%"},publicHeadline6:{fontFamily:"Gellix-SemiBold",fontWeight:600,fontStyle:"normal",fontSize:"5.8rem",letterSpacing:"0.2325rem",lineHeight:"120%"},publicHeadline7:{fontFamily:"Gellix-SemiBold",fontWeight:600,fontStyle:"normal",fontSize:"4.3rem",letterSpacing:"0.1725rem",lineHeight:"121%"},publicHeadline8:{fontFamily:"Gellix-SemiBold",fontWeight:600,fontStyle:"normal",fontSize:"3.9rem",letterSpacing:"0.1575rem",lineHeight:"121%"},publicHeadline9:{fontFamily:"Gellix-SemiBold",fontWeight:600,fontStyle:"normal",fontSize:"3rem",letterSpacing:"0.12rem",lineHeight:"121%"},publicHeadline10:{fontFamily:"Gellix-SemiBold",fontSize:"2rem",fontWeight:600,fontStyle:"normal",letterSpacing:"0.08rem",lineHeight:"121%"},publicHeadline10Medium:{fontFamily:"Gellix-SemiBold",fontSize:"2rem",fontWeight:500,fontStyle:"normal",letterSpacing:"0.08rem",lineHeight:"121%"},publicHeading1:{fontFamily:"CooperBT",fontWeight:400,fontStyle:"normal",fontSize:"6rem",letterSpacing:"0.24rem",lineHeight:"normal"},publicHeading2:{fontFamily:"CooperBT",fontWeight:400,fontStyle:"normal",fontSize:"4rem",letterSpacing:"0.16rem",lineHeight:"120%"},publicHeading3:{fontFamily:"CooperBT",fontWeight:400,fontStyle:"normal",fontSize:"3rem",letterSpacing:"0.12rem",lineHeight:"128%"},publicHeading4:{fontFamily:"CooperBT",fontWeight:400,fontStyle:"normal",fontSize:"2rem",letterSpacing:"0.08rem",lineHeight:"103%"},publicHeading5:{fontFamily:"CooperBT",fontWeight:400,fontStyle:"normal",fontSize:"1.5rem",letterSpacing:"0.059375rem",lineHeight:"140%"},publicBody1:{fontFamily:"Gellix-SemiBold",fontWeight:600,fontStyle:"normal",letterSpacing:"0.08rem",fontSize:"2rem",lineHeight:"125%"},publicBody1Regular:{fontFamily:"Gellix-Regular",fontWeight:400,fontStyle:"normal",letterSpacing:"0.08rem",fontSize:"2rem",lineHeight:"100%"},publicBody1Light:{fontFamily:"Gellix-Light",fontWeight:300,fontStyle:"normal",letterSpacing:"0.08rem",fontSize:"2rem",lineHeight:"180%"},publicBody2:{fontFamily:"Gellix-SemiBold",fontWeight:550,fontStyle:"normal",letterSpacing:"0.03rem",fontSize:"1.5rem",lineHeight:"normal"},publicBody2Regular:{fontFamily:"Gellix-Regular",fontWeight:350,fontStyle:"normal",letterSpacing:"0.059375rem",fontSize:"1.5rem",lineHeight:"normal"},publicBody2Light:{fontFamily:"Gellix-Light",fontWeight:300,fontStyle:"normal",letterSpacing:"0.059375rem",fontSize:"1.5rem",lineHeight:"normal"},publicBody3:{fontFamily:"Gellix-SemiBold",fontWeight:600,fontStyle:"normal",letterSpacing:"0.05rem",fontSize:"1.25rem",lineHeight:"180%"},publicBody3Regular:{fontFamily:"Gellix-Regular",fontWeight:400,fontStyle:"normal",letterSpacing:"0.05rem",fontSize:"1.25rem",lineHeight:"145%"},publicBody3Light:{fontFamily:"Gellix-Light",fontWeight:300,fontStyle:"normal",letterSpacing:"0.05rem",fontSize:"1.25rem",lineHeight:"180%"},publicBody4:{fontFamily:"Gellix-SemiBold",fontWeight:600,fontStyle:"normal",letterSpacing:"0.04rem",fontSize:"1rem",lineHeight:"180%"},publicBody4Regular:{fontFamily:"Gellix-Regular",fontWeight:400,fontStyle:"normal",letterSpacing:"0.04rem",fontSize:"1rem",lineHeight:"150%"},publicBody4Light:{fontFamily:"Gellix-Light",fontWeight:300,fontStyle:"normal",letterSpacing:"0.04rem",fontSize:"1rem",lineHeight:"180%"},publicBody5:{fontFamily:"Gellix-SemiBold",fontWeight:600,fontStyle:"normal",letterSpacing:"0.0375rem",fontSize:"0.9375rem",lineHeight:"180%"},publicBody5Regular:{fontFamily:"Gellix-Regular",fontWeight:400,fontStyle:"normal",letterSpacing:"0.0375rem",fontSize:"0.9375rem",lineHeight:"180%"},publicBody5Light:{fontFamily:"Gellix-Light",fontWeight:300,fontStyle:"normal",letterSpacing:"0.0375rem",fontSize:"0.9375rem",lineHeight:"180%"},publicBody6:{fontFamily:"Gellix-SemiBold",fontWeight:600,fontStyle:"normal",letterSpacing:"0.0375rem",fontSize:"0.875rem",lineHeight:"128%"},publicBody6Regular:{fontFamily:"Gellix-Regular",fontWeight:400,fontStyle:"normal",letterSpacing:"0.0375rem",fontSize:"0.875rem",lineHeight:"128%"},publicBody6Light:{fontFamily:"Gellix-Light",fontWeight:300,fontStyle:"normal",letterSpacing:"0.0375rem",fontSize:"0.875rem",lineHeight:"128%"}}}),ar={mx:{xs:"".concat(24,"px !important"),sm:"".concat(40,"px !important"),lg:"".concat(80,"px !important"),xxl:"".concat(320,"px !important")}},sr=["title","titleId"];function lr(){return lr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lr.apply(this,arguments)}function cr(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ur(e,t){var n=e.title,r=e.titleId,i=cr(e,sr);return o.createElement("svg",lr({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,Hn||(Hn=o.createElement("g",{clipPath:"url(#clip0_3724_5329)"},o.createElement("rect",{width:24,height:24,rx:6,fill:"black"}),o.createElement("g",{clipPath:"url(#clip1_3724_5329)"},o.createElement("path",{d:"M5 6.86777C5 6.41732 5.15766 6.04569 5.47297 5.75291C5.78828 5.46011 6.1982 5.31372 6.7027 5.31372C7.1982 5.31372 7.59909 5.45786 7.90541 5.74615C8.22072 6.04345 8.37838 6.43083 8.37838 6.90832C8.37838 7.34075 8.22523 7.7011 7.91892 7.9894C7.60361 8.28669 7.18919 8.43534 6.67568 8.43534H6.66216C6.16666 8.43534 5.76577 8.28669 5.45946 7.9894C5.15315 7.6921 5 7.31822 5 6.86777ZM5.17568 18.6921V9.66507H8.17568V18.6921H5.17568ZM9.83784 18.6921H12.8378V13.6516C12.8378 13.3362 12.8739 13.093 12.9459 12.9218C13.0721 12.6155 13.2635 12.3565 13.5203 12.1448C13.777 11.9331 14.0991 11.8272 14.4865 11.8272C15.4955 11.8272 16 12.5074 16 13.8678V18.6921H19V13.5164C19 12.1831 18.6847 11.1718 18.0541 10.4826C17.4234 9.79345 16.5901 9.44886 15.5541 9.44886C14.3919 9.44886 13.4865 9.94886 12.8378 10.9489V10.9759H12.8243L12.8378 10.9489V9.66507H9.83784C9.85585 9.95336 9.86486 10.8497 9.86486 12.3543C9.86486 13.8588 9.85585 15.9714 9.83784 18.6921Z",fill:"white"})))),Wn||(Wn=o.createElement("defs",null,o.createElement("clipPath",{id:"clip0_3724_5329"},o.createElement("rect",{width:24,height:24,rx:12,fill:"white"})),o.createElement("clipPath",{id:"clip1_3724_5329"},o.createElement("rect",{width:14,height:14,fill:"white",transform:"translate(5 5)"})))))}var dr,pr,fr=o.forwardRef(ur),hr=(n.p,["title","titleId"]);function mr(){return mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mr.apply(this,arguments)}function vr(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function gr(e,t){var n=e.title,r=e.titleId,i=vr(e,hr);return o.createElement("svg",mr({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,dr||(dr=o.createElement("g",{clipPath:"url(#clip0_3724_5331)"},o.createElement("path",{d:"M6.08577 23.9151C4.65848 23.8502 3.88314 23.6127 3.36743 23.4115C2.6841 23.1455 2.19693 22.8288 1.68407 22.3166C1.17122 21.8045 0.853806 21.3173 0.589176 20.634C0.388029 20.1183 0.150504 19.3429 0.0855946 17.9157C0.0142658 16.3728 0 15.9099 0 12.0011C0 8.09225 0.0156923 7.63004 0.0848813 6.08577C0.14979 4.65848 0.388742 3.88457 0.588463 3.36743C0.854519 2.6841 1.17193 2.19693 1.68336 1.68336C2.1955 1.17122 2.68268 0.853092 3.36672 0.588463C3.88243 0.387315 4.65777 0.14979 6.08506 0.0848813C7.62861 0.0142658 8.09225 0 11.9996 0C15.9085 0 16.3707 0.0156923 17.9149 0.0848813C19.3422 0.14979 20.1161 0.388742 20.6333 0.588463C21.3166 0.853092 21.8038 1.17122 22.3166 1.68336C22.8295 2.1955 23.1455 2.68339 23.4115 3.36672C23.6127 3.88243 23.8502 4.65777 23.9151 6.08506C23.9857 7.62933 24 8.09154 24 12.0004C24 15.9077 23.9857 16.3714 23.9151 17.9157C23.8502 19.3429 23.6113 20.1183 23.4115 20.634C23.1455 21.3173 22.8288 21.8045 22.3166 22.3166C21.8045 22.8288 21.3166 23.1455 20.6333 23.4115C20.1176 23.6127 19.3422 23.8502 17.9149 23.9151C16.3721 23.9857 15.9085 24 11.9996 24C8.09225 24 7.62862 23.9864 6.08577 23.9151Z",fill:"black"}),o.createElement("path",{d:"M9.27709 11.915C9.27709 10.4579 10.4579 9.27645 11.915 9.27645C13.3721 9.27645 14.5535 10.4579 14.5535 11.915C14.5535 13.3721 13.3721 14.5535 11.915 14.5535C10.4579 14.5535 9.27709 13.3721 9.27709 11.915ZM7.85074 11.915C7.85074 14.1597 9.67031 15.9793 11.915 15.9793C14.1597 15.9793 15.9793 14.1597 15.9793 11.915C15.9793 9.67031 14.1597 7.85074 11.915 7.85074C9.67031 7.85074 7.85081 9.67018 7.85081 11.915M15.1904 7.68959C15.1903 7.87745 15.246 8.0611 15.3503 8.21734C15.4546 8.37357 15.6029 8.49537 15.7764 8.56733C15.9499 8.63929 16.1409 8.65817 16.3251 8.6216C16.5094 8.58502 16.6787 8.49463 16.8116 8.36185C16.9444 8.22907 17.035 8.05987 17.0717 7.87564C17.1084 7.69141 17.0897 7.50043 17.0179 7.32685C16.946 7.15327 16.8244 7.00488 16.6682 6.90045C16.5121 6.79603 16.3285 6.74025 16.1406 6.74017H16.1402C15.8884 6.74029 15.647 6.84034 15.4689 7.01836C15.2908 7.19637 15.1906 7.43779 15.1904 7.68959ZM8.71734 18.3577C7.94566 18.3225 7.52623 18.194 7.24749 18.0854C6.87796 17.9415 6.61429 17.7702 6.33708 17.4934C6.05986 17.2165 5.88827 16.9531 5.74504 16.5836C5.63638 16.305 5.50784 15.8854 5.47276 15.1137C5.43439 14.2794 5.42673 14.0288 5.42673 11.9151C5.42673 9.80144 5.43502 9.55152 5.47276 8.71652C5.5079 7.94484 5.63739 7.5261 5.74504 7.24667C5.8889 6.87713 6.06024 6.61347 6.33708 6.33625C6.61391 6.05904 6.87732 5.88744 7.24749 5.74421C7.5261 5.63556 7.94566 5.50702 8.71734 5.47194C9.55164 5.43356 9.80227 5.4259 11.915 5.4259C14.0277 5.4259 14.2786 5.43407 15.1136 5.47206C15.8853 5.50721 16.304 5.6367 16.5835 5.74434C16.953 5.88757 17.2167 6.05955 17.4939 6.33638C17.7711 6.61322 17.942 6.87726 18.0859 7.2468C18.1946 7.5254 18.3231 7.94496 18.3582 8.71664C18.3966 9.55164 18.4042 9.80157 18.4042 11.9153C18.4042 14.0289 18.3966 14.2789 18.3582 15.1139C18.323 15.8855 18.1939 16.305 18.0859 16.5837C17.942 16.9532 17.7707 17.2169 17.4939 17.4935C17.217 17.7701 16.953 17.9417 16.5835 18.0855C16.3048 18.1942 15.8853 18.3227 15.1136 18.3578C14.2793 18.3962 14.0287 18.4038 11.915 18.4038C9.80132 18.4038 9.55139 18.3962 8.71734 18.3578M8.6518 4.04793C7.8092 4.08631 7.23344 4.21991 6.73061 4.41557C6.21018 4.61762 5.76903 4.8887 5.32852 5.32852C4.888 5.76834 4.61762 6.20955 4.41557 6.73061C4.21991 7.23375 4.08631 7.8092 4.04793 8.6518C4.00893 9.49573 4 9.76554 4 11.915C4 14.0645 4.00893 14.3343 4.04793 15.1782C4.08631 16.0209 4.21991 16.5962 4.41557 17.0994C4.61762 17.6198 4.88806 18.0619 5.32852 18.5015C5.76897 18.9411 6.20955 19.2118 6.73061 19.4144C7.23439 19.6101 7.8092 19.7437 8.6518 19.7821C9.49618 19.8204 9.76554 19.83 11.915 19.83C14.0645 19.83 14.3343 19.8211 15.1782 19.7821C16.0209 19.7437 16.5962 19.6101 17.0994 19.4144C17.6198 19.2118 18.061 18.9413 18.5015 18.5015C18.942 18.0617 19.2118 17.6198 19.4144 17.0994C19.6101 16.5962 19.7443 16.0208 19.7821 15.1782C19.8204 14.3336 19.8294 14.0645 19.8294 11.915C19.8294 9.76554 19.8204 9.49573 19.7821 8.6518C19.7437 7.80914 19.6101 7.23344 19.4144 6.73061C19.2118 6.21018 18.9413 5.76903 18.5015 5.32852C18.0617 4.888 17.6198 4.61762 17.1 4.41557C16.5962 4.21991 16.0208 4.08567 15.1788 4.04793C14.3348 4.00937 14.0651 4 11.916 4C9.76681 4 9.49649 4.00893 8.65212 4.04793",fill:"white"}))),pr||(pr=o.createElement("defs",null,o.createElement("clipPath",{id:"clip0_3724_5331"},o.createElement("rect",{width:24,height:24,rx:12,fill:"white"})))))}var yr,br,xr=o.forwardRef(gr),wr=(n.p,["title","titleId"]);function Cr(){return Cr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cr.apply(this,arguments)}function jr(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Sr(e,t){var n=e.title,r=e.titleId,i=jr(e,wr);return o.createElement("svg",Cr({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,yr||(yr=o.createElement("rect",{width:24,height:24,rx:12,fill:"black"})),br||(br=o.createElement("path",{d:"M5.03413 5L10.4394 12.7218L5 19H6.22419L10.9864 13.5034L14.834 19H19L13.2906 10.8438L18.3536 5H17.1294L12.7437 10.0623L9.20008 5H5.03413ZM6.83439 5.96344H8.74824L17.1995 18.0364H15.2856L6.83439 5.96344Z",fill:"white"})))}var kr,Zr,Or=o.forwardRef(Sr),Er=(n.p,["title","titleId"]);function Dr(){return Dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dr.apply(this,arguments)}function Pr(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ar(e,t){var n=e.title,r=e.titleId,i=Pr(e,Er);return o.createElement("svg",Dr({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,kr||(kr=o.createElement("rect",{width:24,height:24,rx:12,fill:"black"})),Zr||(Zr=o.createElement("path",{d:"M16.6711 15.4688L17.2031 12H13.875V9.75C13.875 8.80078 14.3391 7.875 15.8297 7.875H17.3438V4.92188C17.3438 4.92188 15.9703 4.6875 14.6578 4.6875C11.9156 4.6875 10.125 6.34922 10.125 9.35625V12H7.07812V15.4688H10.125V23.8547C10.7367 23.9508 11.3625 24 12 24C12.6375 24 13.2633 23.9508 13.875 23.8547V15.4688H16.6711Z",fill:"white"})))}var Mr,Tr,Ir=o.forwardRef(Ar),Rr=(n.p,["title","titleId"]);function Fr(){return Fr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fr.apply(this,arguments)}function Br(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Lr(e,t){var n=e.title,r=e.titleId,i=Br(e,Rr);return o.createElement("svg",Fr({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,Mr||(Mr=o.createElement("rect",{width:24,height:24,rx:12,fill:"black"})),Tr||(Tr=o.createElement("path",{d:"M10.9373 16.4303C12.1888 16.4303 13.2034 15.5342 13.2034 14.1641V4H15.9212C15.7687 5.85365 17.6114 7.64423 19.6436 7.60328V10.1589C17.9057 10.1589 16.4278 9.42401 15.9134 9.01618V14.1641C15.9134 16.4303 14.1307 19 10.9373 19C7.74384 19 6 16.4303 6 14.1641C6 10.9656 9.38478 9.11065 11.6266 9.56403V12.1671C11.5138 12.1272 11.223 12.0682 10.9753 12.0682C9.71331 12.0217 8.67112 13.0452 8.67112 14.1641C8.67112 15.4157 9.68571 16.4303 10.9373 16.4303Z",fill:"white"})))}var Nr,_r,zr=o.forwardRef(Lr),Hr=(n.p,["title","titleId"]);function Wr(){return Wr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wr.apply(this,arguments)}function Vr(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ur(e,t){var n=e.title,r=e.titleId,i=Vr(e,Hr);return o.createElement("svg",Wr({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,Nr||(Nr=o.createElement("rect",{width:24,height:24,rx:12,fill:"black"})),_r||(_r=o.createElement("path",{d:"M16.0924 7H7.90762C6.30178 7 5 8.37974 5 10.0817V14.4183C5 16.1203 6.30178 17.5 7.90762 17.5H16.0924C17.6982 17.5 19 16.1203 19 14.4183V10.0817C19 8.37974 17.6982 7 16.0924 7ZM14.126 12.461L10.2977 14.3962C10.1957 14.4477 10.0779 14.3689 10.0779 14.2492V10.2578C10.0779 10.1363 10.1988 10.0576 10.301 10.1125L14.1293 12.1687C14.2431 12.2298 14.2411 12.4028 14.126 12.461Z",fill:"white"})))}var qr=o.forwardRef(Ur),Gr=(n.p,n(47080)),Yr=n(74280);var Kr=n.p+"static/media/esif.0d5d4df610e2051df649d9a3da52fbc8.svg",Jr=n(17276);var Xr=n.p+"static/media/eusif.b4cb85e50744ebd19255a7c5120bb370.svg";var Qr=n.p+"static/media/croai.52625472bb2116b3f5b22da13ab6c4ae.svg",$r=n(42912),eo={cursor:"pointer"},to=[{id:1,icon:(0,u.jsx)(fr,{style:(0,l.Z)({},eo)}),link:"https://www.linkedin.com/company/sponaglobal/"},{id:2,icon:(0,u.jsx)(xr,{style:(0,l.Z)({},eo)}),link:"https://www.instagram.com/spona.io/"},{id:3,icon:(0,u.jsx)(Or,{style:(0,l.Z)({},eo)}),link:"https://twitter.com/spona_global"},{id:4,icon:(0,u.jsx)(Ir,{style:(0,l.Z)({},eo)}),link:"https://www.facebook.com/spona.io"},{id:5,icon:(0,u.jsx)(zr,{style:(0,l.Z)({},eo)}),link:"https://www.tiktok.com/@spona.io"},{id:6,icon:(0,u.jsx)(qr,{style:(0,l.Z)({},eo)}),link:"https://www.youtube.com/channel/UCPFYUmbMBCmsT_3oz6h-2kw"}],no=[{id:1,src:Gr,width:"initial"},{id:2,src:Yr,width:"initial"},{id:3,src:Xr,width:140},{id:4,src:Jr,width:140},{id:5,src:Kr,width:"initial"},{id:6,src:Qr,width:"initial"},{id:7,src:$r,width:140}],ro={mx:(0,l.Z)((0,l.Z)({},ar.mx),{},{xxl:10})},oo=function(e){var t=e.columns,n=(e.subLinks,Bn(ir.breakpoints.down("lg")));return(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(nn.Z,{sx:(0,l.Z)({bgcolor:"common.white",mt:12,mb:6},ro),children:(0,u.jsxs)(nn.Z,{spacing:2,height:"100%",justifyContent:"center",children:[(0,u.jsxs)(nn.Z,{spacing:.1,alignItems:"start",justifyContent:"space-between",width:"100%",direction:n?"column":"row",children:[(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsx)($n,{to:"/",sx:{width:"fit-content"},children:(0,u.jsx)(tn,{component:"img",src:Ln,sx:{height:"30px"}})}),(0,u.jsxs)(nn.Z,{spacing:-2,children:[(0,u.jsx)(rn.Z,{variant:"publicHeadline9",color:"primaryLight.500",fontSize:"57px",fontFamily:"'Gellix-Regular'",children:"Keep it"}),(0,u.jsx)(rn.Z,{component:"span",variant:"publicHeading2",fontSize:"57px",sx:{position:"relative"},color:"primaryLight.500",children:"together."})]})]}),(0,u.jsx)(kn,{container:!0,rowSpacing:5,width:n?"100%":"60%",children:t.map((function(e){return(0,u.jsx)(kn,{item:!0,xs:6,lg:3,sx:{display:"flex",justifyContent:"end"},children:(0,u.jsxs)(nn.Z,{spacing:1,alignItems:"start",width:"100%",children:[(0,u.jsx)(rn.Z,{color:"primaryDark.500",variant:"publicHeading5",fontSize:"22px",children:e.title}),(0,u.jsx)(nn.Z,{children:e.links.map((function(e){return(0,u.jsx)(nn.Z,{mb:"6px",children:(0,u.jsx)($n,{to:e.link,children:(0,u.jsx)(rn.Z,{color:"common.black",sx:{typography:{xs:"bodyMedium3",sm:"bodyMedium2"}},children:e.title})})},e.title)}))})]})},e.id)}))})]}),(0,u.jsxs)(nn.Z,{spacing:7,children:[(0,u.jsxs)(nn.Z,{spacing:1,children:[(0,u.jsx)(nn.Z,{direction:"column",alignItems:"start",sx:{mt:5,flexWrap:"wrap"},children:(0,u.jsx)(tn,{sx:{color:"primaryDark.600",textAlign:"center",flex:{xs:"1 0 auto",md:"0 0 auto"}},children:to.map((function(e){return(0,u.jsx)("a",{style:{color:"#32009A",textDecoration:"none"},href:e.link,target:"_blank",rel:"noreferrer",children:(0,u.jsx)(An,{color:"inherit",sx:{mr:{xs:1,md:2}},children:e.icon},e.id)})}))})}),(0,u.jsx)(un,{light:!0,sx:{width:"100%",borderBottomWidth:"1px",borderColor:"primaryDark.400"}}),(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(rn.Z,{variant:"publicBody6Regular",color:"common.black",children:"\xa9 Top Digital Agency Limited"}),(0,u.jsx)(rn.Z,{variant:"publicBody6Regular",color:"common.black",children:"43 O'Connell Street Upper North City, Dublin, D01 DK81 Ireland"})]})]}),(0,u.jsxs)(nn.Z,{spacing:2,children:[n?(0,u.jsx)(kn,{container:!0,rowGap:4,columns:{xs:12,sm:12},sx:{width:{xs:"100%"}},children:no.map((function(e,t){return(0,u.jsx)(kn,{item:!0,xs:6,sm:4,lg:1,sx:{display:"flex",alignItems:"center",justifyContent:{xs:"space-between",lg:"start"}},children:(0,u.jsx)(tn,{component:"img",width:e.width,src:e.src})},e.id)}))}):(0,u.jsx)(nn.Z,{spacing:{xs:0,md:3},direction:"row",alignItems:"center",justifyContent:{xs:"space-between",md:"start"},flexWrap:"wrap",rowGap:2,children:no.map((function(e){return(0,u.jsx)(tn,{component:"img",width:100,src:e.src})}))}),(0,u.jsx)(rn.Z,{color:"primaryDark.500",fontSize:"0.7rem",children:"Recipient of co-financing from the European Fund for Regional Development, Competitiveness and Cohesion Program."}),(0,u.jsx)(rn.Z,{color:"primaryDark.600",fontSize:"1rem",children:"Copyright \xa9 2023 Spona"})]})]})]})})})},io=n(53802),ao=n(54386);function so(e){return(0,F.Z)("MuiAppBar",e)}(0,R.Z)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);var lo,co,uo=["className","color","enableColorOnDark","position"],po=function(e,t){return e?"".concat(null==e?void 0:e.replace(")",""),", ").concat(t,")"):t},fo=(0,P.ZP)(ao.Z,{name:"MuiAppBar",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["position".concat((0,Zn.Z)(n.position))],t["color".concat((0,Zn.Z)(n.color))]]}})((function(e){var t=e.theme,n=e.ownerState,o="light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[900];return(0,r.Z)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===n.position&&{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===n.position&&{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===n.position&&{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"static"===n.position&&{position:"static"},"relative"===n.position&&{position:"relative"},!t.vars&&(0,r.Z)({},"default"===n.color&&{backgroundColor:o,color:t.palette.getContrastText(o)},n.color&&"default"!==n.color&&"inherit"!==n.color&&"transparent"!==n.color&&{backgroundColor:t.palette[n.color].main,color:t.palette[n.color].contrastText},"inherit"===n.color&&{color:"inherit"},"dark"===t.palette.mode&&!n.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===n.color&&(0,r.Z)({backgroundColor:"transparent",color:"inherit"},"dark"===t.palette.mode&&{backgroundImage:"none"})),t.vars&&(0,r.Z)({},"default"===n.color&&{"--AppBar-background":n.enableColorOnDark?t.vars.palette.AppBar.defaultBg:po(t.vars.palette.AppBar.darkBg,t.vars.palette.AppBar.defaultBg),"--AppBar-color":n.enableColorOnDark?t.vars.palette.text.primary:po(t.vars.palette.AppBar.darkColor,t.vars.palette.text.primary)},n.color&&!n.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":n.enableColorOnDark?t.vars.palette[n.color].main:po(t.vars.palette.AppBar.darkBg,t.vars.palette[n.color].main),"--AppBar-color":n.enableColorOnDark?t.vars.palette[n.color].contrastText:po(t.vars.palette.AppBar.darkColor,t.vars.palette[n.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:"inherit"===n.color?"inherit":"var(--AppBar-color)"},"transparent"===n.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))})),ho=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiAppBar"}),o=n.className,i=n.color,a=void 0===i?"primary":i,s=n.enableColorOnDark,l=void 0!==s&&s,c=n.position,d=void 0===c?"fixed":c,p=(0,b.Z)(n,uo),f=(0,r.Z)({},n,{color:a,position:d,enableColorOnDark:l}),h=function(e){var t=e.color,n=e.position,r=e.classes,o={root:["root","color".concat((0,Zn.Z)(t)),"position".concat((0,Zn.Z)(n))]};return(0,M.Z)(o,so,r)}(f);return(0,u.jsx)(fo,(0,r.Z)({square:!0,component:"header",ownerState:f,elevation:4,className:(0,y.default)(h.root,o,"fixed"===d&&"mui-fixed"),ref:t},p))})),mo=ho,vo=n(9433),go=["title","titleId"];function yo(){return yo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yo.apply(this,arguments)}function bo(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function xo(e,t){var n=e.title,r=e.titleId,i=bo(e,go);return o.createElement("svg",yo({width:18,height:14,viewBox:"0 0 18 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,lo||(lo=o.createElement("g",{clipPath:"url(#clip0_16353_120703)"},o.createElement("path",{d:"M0.75 7H17.25",stroke:"black",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M0.75 1H17.25",stroke:"black",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M0.75 13H17.25",stroke:"black",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}))),co||(co=o.createElement("defs",null,o.createElement("clipPath",{id:"clip0_16353_120703"},o.createElement("rect",{width:18,height:14,fill:"white"})))))}var wo=o.forwardRef(xo),Co=(n.p,n(1778));var jo=n.p+"static/media/spona-black.cfda8bc185f3eb804128a7882a209403.svg",So=n(78411),ko=n(11240),Zo=n(3391);function Oo(e){return(0,F.Z)("MuiLoadingButton",e)}var Eo,Do=(0,R.Z)("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),Po=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],Ao=(0,P.ZP)(ko.Z,{shouldForwardProp:function(e){return function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e&&"classes"!==e}(e)||"classes"===e},name:"MuiLoadingButton",slot:"Root",overridesResolver:function(e,n){return[n.root,n.startIconLoadingStart&&(0,t.Z)({},"& .".concat(Do.startIconLoadingStart),n.startIconLoadingStart),n.endIconLoadingEnd&&(0,t.Z)({},"& .".concat(Do.endIconLoadingEnd),n.endIconLoadingEnd)]}})((function(e){var n=e.ownerState,o=e.theme;return(0,r.Z)((0,t.Z)({},"& .".concat(Do.startIconLoadingStart,", & .").concat(Do.endIconLoadingEnd),{transition:o.transitions.create(["opacity"],{duration:o.transitions.duration.short}),opacity:0}),"center"===n.loadingPosition&&(0,t.Z)({transition:o.transitions.create(["background-color","box-shadow","border-color"],{duration:o.transitions.duration.short})},"&.".concat(Do.loading),{color:"transparent"}),"start"===n.loadingPosition&&n.fullWidth&&(0,t.Z)({},"& .".concat(Do.startIconLoadingStart,", & .").concat(Do.endIconLoadingEnd),{transition:o.transitions.create(["opacity"],{duration:o.transitions.duration.short}),opacity:0,marginRight:-8}),"end"===n.loadingPosition&&n.fullWidth&&(0,t.Z)({},"& .".concat(Do.startIconLoadingStart,", & .").concat(Do.endIconLoadingEnd),{transition:o.transitions.create(["opacity"],{duration:o.transitions.duration.short}),opacity:0,marginLeft:-8}))})),Mo=(0,P.ZP)("div",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:function(e,t){var n=e.ownerState;return[t.loadingIndicator,t["loadingIndicator".concat((0,Zn.Z)(n.loadingPosition))]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,r.Z)({position:"absolute",visibility:"visible",display:"flex"},"start"===n.loadingPosition&&("outlined"===n.variant||"contained"===n.variant)&&{left:"small"===n.size?10:14},"start"===n.loadingPosition&&"text"===n.variant&&{left:6},"center"===n.loadingPosition&&{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled},"end"===n.loadingPosition&&("outlined"===n.variant||"contained"===n.variant)&&{right:"small"===n.size?10:14},"end"===n.loadingPosition&&"text"===n.variant&&{right:6},"start"===n.loadingPosition&&n.fullWidth&&{position:"relative",left:-10},"end"===n.loadingPosition&&n.fullWidth&&{position:"relative",right:-10})})),To=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiLoadingButton"}),o=n.children,i=n.disabled,a=void 0!==i&&i,s=n.id,l=n.loading,c=void 0!==l&&l,d=n.loadingIndicator,p=n.loadingPosition,f=void 0===p?"center":p,h=n.variant,m=void 0===h?"text":h,v=(0,b.Z)(n,Po),g=(0,So.Z)(s),y=null!=d?d:(0,u.jsx)(Zo.Z,{"aria-labelledby":g,color:"inherit",size:16}),x=(0,r.Z)({},n,{disabled:a,loading:c,loadingIndicator:y,loadingPosition:f,variant:m}),w=function(e){var t=e.loading,n=e.loadingPosition,o=e.classes,i={root:["root",t&&"loading"],startIcon:[t&&"startIconLoading".concat((0,Zn.Z)(n))],endIcon:[t&&"endIconLoading".concat((0,Zn.Z)(n))],loadingIndicator:["loadingIndicator",t&&"loadingIndicator".concat((0,Zn.Z)(n))]},a=(0,M.Z)(i,Oo,o);return(0,r.Z)({},o,a)}(x),C=c?(0,u.jsx)(Mo,{className:w.loadingIndicator,ownerState:x,children:y}):null;return(0,u.jsxs)(Ao,(0,r.Z)({disabled:a||c,id:g,ref:t},v,{variant:m,classes:w,ownerState:x,children:["end"===x.loadingPosition?o:C,"end"===x.loadingPosition?C:o]}))})),Io=To,Ro=["title","titleId"];function Fo(){return Fo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fo.apply(this,arguments)}function Bo(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Lo(e,t){var n=e.title,r=e.titleId,i=Bo(e,Ro);return o.createElement("svg",Fo({width:13,height:11,viewBox:"0 0 13 11",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,Eo||(Eo=o.createElement("path",{d:"M0.366455 5.48853C0.366455 4.93653 0.814455 4.48853 1.36646 4.48853H7.36646V0.488525L12.3665 5.48853L7.36646 10.4885V6.48853H1.36646C0.814455 6.48853 0.366455 6.04053 0.366455 5.48853Z",fill:"current"})))}var No=o.forwardRef(Lo),_o=(n.p,["children","variant","sx","withBackArrow","withNextArrow"]),zo=function(e){switch(e){case"primary":return"#fff";case"primaryText":case"primaryLight":case"secondary":case"secondaryText":default:return tr.E4[500];case"secondaryDark":return tr.IV[800]}},Ho=function(e){switch(e){case"primary":return"#fff";case"primaryText":return tr.E4[300];case"primaryLight":case"secondary":case"secondaryText":default:return tr.E4[200];case"secondaryDark":return tr.IV[200]}},Wo=function(e){var t=e.children,n=e.variant,r=void 0===n?"primary":n,o=e.sx,i=e.withBackArrow,a=void 0!==i&&i,s=e.withNextArrow,c=void 0!==s&&s,d=Nn(e,_o),p={primary:{bgcolor:"primaryLight.500",border:"3px solid",borderColor:"primaryLight.500","&:hover":{boxShadow:"none",borderColor:"primaryLight.100",bgcolor:"primaryLight.500"},"&:disabled":{color:Ho(r),border:"none",bgcolor:"primaryLight.100",svg:{color:Ho(r)}}},primaryText:{bgcolor:"transparent",minWidth:0,width:"fit-content",height:"fit-content",p:0,"&:hover":{bgcolor:"transparent",textDecoration:"underline"},"&:disabled":{bgcolor:"transparent",textDecoration:"underline",color:Ho(r),svg:{color:Ho(r)}}},primaryLight:{bgcolor:"common.white",border:"1px solid",borderColor:"primaryLight.200","&:hover":{boxShadow:"none",bgcolor:"primaryLight.50"},"&:disabled":{color:Ho(r),svg:{color:Ho(r)}}},secondary:{bgcolor:"common.white",border:"1px solid",borderColor:"primaryLight.500","&:hover":{bgcolor:"primaryLight.50"},"&:disabled":{boxShadow:"none",color:Ho(r),borderColor:"primaryLight.200",bgcolor:"common.white",svg:{color:Ho(r)}}},secondaryDark:{bgcolor:"common.white",border:"1px solid",borderColor:"primaryDark.250","&:hover":{bgcolor:"transparent",borderColor:"primaryLight.200"},"&:disabled":{boxShadow:"none",color:Ho(r),borderColor:"primaryDark.200",bgcolor:"primaryDark.50",svg:{color:Ho(r)}}},secondaryText:{bgcolor:"transparent",minWidth:0,width:"fit-content",height:"fit-content",p:"8px 12px","&:hover":{bgcolor:"transparent",textDecoration:"underline"},"&:disabled":{bgcolor:"transparent",textDecoration:"underline",color:Ho(r),svg:{color:Ho(r)}}}};return(0,u.jsx)(Io,(0,l.Z)((0,l.Z)({sx:(0,l.Z)((0,l.Z)({transition:"0.3s all ease",textTransform:"secondaryText"===r?"capitalize":"uppercase",borderRadius:"4px",px:"0.875rem",height:"2.8125rem",minWidth:"7.5rem",fontSize:"14px",fontFamily:"Gellix-SemiBold","&.MuiLoadingButton-loading":{".MuiLoadingButton-loadingIndicator":{color:zo(r)},".MuiButton-endIcon":{display:"none"}}},p[r]),{},{color:d.loading?"transparent !important":zo(r)},o),startIcon:a?(0,u.jsx)(No,{fill:d.disabled?Ho(r):zo(r),style:{transform:"scale(-1, -1)"}}):d.startIcon,endIcon:c?(0,u.jsx)(No,{fill:d.disabled?Ho(r):zo(r)}):d.endIcon},d),{},{children:t}))},Vo=n(76276),Uo=n(74723),qo=n(50669),Go=n(19471);function Yo(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function Ko(e){return parseFloat(e)}function Jo(e){return(0,F.Z)("MuiSkeleton",e)}(0,R.Z)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var Xo,Qo,$o,ei,ti,ni,ri,oi,ii,ai=["animation","className","component","height","style","variant","width"],si=(0,Go.F4)(ti||(ti=Xo||(Xo=(0,qo.Z)(["\n  0% {\n    opacity: 1;\n  }\n\n  50% {\n    opacity: 0.4;\n  }\n\n  100% {\n    opacity: 1;\n  }\n"])))),li=(0,Go.F4)(ni||(ni=Qo||(Qo=(0,qo.Z)(["\n  0% {\n    transform: translateX(-100%);\n  }\n\n  50% {\n    /* +0.5s of delay between each loop */\n    transform: translateX(100%);\n  }\n\n  100% {\n    transform: translateX(100%);\n  }\n"])))),ci=(0,P.ZP)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],!1!==n.animation&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})((function(e){var t=e.theme,n=e.ownerState,o=Yo(t.shape.borderRadius)||"px",i=Ko(t.shape.borderRadius);return(0,r.Z)({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:(0,A.Fq)(t.palette.text.primary,"light"===t.palette.mode?.11:.13),height:"1.2em"},"text"===n.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:"".concat(i).concat(o,"/").concat(Math.round(i/.6*10)/10).concat(o),"&:empty:before":{content:'"\\00a0"'}},"circular"===n.variant&&{borderRadius:"50%"},"rounded"===n.variant&&{borderRadius:(t.vars||t).shape.borderRadius},n.hasChildren&&{"& > *":{visibility:"hidden"}},n.hasChildren&&!n.width&&{maxWidth:"fit-content"},n.hasChildren&&!n.height&&{height:"auto"})}),(function(e){return"pulse"===e.ownerState.animation&&(0,Go.iv)(ri||(ri=$o||($o=(0,qo.Z)(["\n      animation: "," 1.5s ease-in-out 0.5s infinite;\n    "]))),si)}),(function(e){var t=e.ownerState,n=e.theme;return"wave"===t.animation&&(0,Go.iv)(oi||(oi=ei||(ei=(0,qo.Z)(["\n      position: relative;\n      overflow: hidden;\n\n      /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */\n      -webkit-mask-image: -webkit-radial-gradient(white, black);\n\n      &::after {\n        animation: "," 1.6s linear 0.5s infinite;\n        background: linear-gradient(\n          90deg,\n          transparent,\n          ",",\n          transparent\n        );\n        content: '';\n        position: absolute;\n        transform: translateX(-100%); /* Avoid flash during server-side hydration */\n        bottom: 0;\n        left: 0;\n        right: 0;\n        top: 0;\n      }\n    "]))),li,(n.vars||n).palette.action.hover)})),ui=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiSkeleton"}),o=n.animation,i=void 0===o?"pulse":o,a=n.className,s=n.component,l=void 0===s?"span":s,c=n.height,d=n.style,p=n.variant,f=void 0===p?"text":p,h=n.width,m=(0,b.Z)(n,ai),v=(0,r.Z)({},n,{animation:i,component:l,variant:f,hasChildren:Boolean(m.children)}),g=function(e){var t=e.classes,n=e.variant,r=e.animation,o=e.hasChildren,i=e.width,a=e.height,s={root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!a&&"heightAuto"]};return(0,M.Z)(s,Jo,t)}(v);return(0,u.jsx)(ci,(0,r.Z)({as:l,ref:t,className:(0,y.default)(g.root,a),ownerState:v},m,{style:(0,r.Z)({width:h,height:c},d)}))})),di=ui,pi=n(23571),fi=["resource"],hi=function(e){var t=e.resource,n=Nn(e,fi);return(0,Yt.useQuery)((0,l.Z)({queryKey:["".concat(t,"-many")],queryFn:function(){return pi.Z.get(t)}},n))},mi=["title","titleId"];function vi(){return vi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vi.apply(this,arguments)}function gi(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function yi(e,t){var n=e.title,r=e.titleId,i=gi(e,mi);return o.createElement("svg",vi({width:16,height:16,viewBox:"0 0 16 16",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,ii||(ii=o.createElement("path",{d:"M4.6652 0.445801C3.60854 0.445801 2.66854 1.11585 2.29521 2.14162L1.33187 2.11549C0.871868 2.11549 0.498535 2.48934 0.498535 2.95034C0.498535 3.41142 0.871868 3.78519 1.33187 3.78519H2.1652V5.45488H1.33187C0.871868 5.45488 0.498535 5.82872 0.498535 6.28972C0.498535 6.75081 0.871868 7.12457 1.33187 7.12457H2.1652V8.79426H1.33187C0.871868 8.79426 0.498535 9.1681 0.498535 9.62911C0.498535 10.0902 0.871868 10.464 1.33187 10.464H2.1652V12.1336H1.33187C0.871868 12.1336 0.498535 12.5075 0.498535 12.9685C0.498535 13.4296 0.871868 13.8034 1.33187 13.8033H2.32187C2.60604 14.7308 3.60854 15.4732 4.6652 15.473H12.9985C14.3794 15.473 15.4985 14.3519 15.4985 12.9685V2.95034C15.4985 1.56717 14.3794 0.445717 12.9985 0.445801H4.6652ZM6.33187 3.78519H11.3319C11.7919 3.78527 12.1652 4.15903 12.1652 4.62003C12.1652 5.08112 11.7919 5.45488 11.3319 5.45488H6.33187C5.87187 5.45488 5.49854 5.08112 5.49854 4.62003C5.49854 4.15903 5.87187 3.78519 6.33187 3.78519ZM6.33187 7.12457H11.3319C11.7919 7.12465 12.1652 7.49841 12.1652 7.95942C12.1652 8.4205 11.7919 8.79426 11.3319 8.79426H6.33187C5.87187 8.79426 5.49854 8.4205 5.49854 7.95942C5.49854 7.49841 5.87187 7.12457 6.33187 7.12457ZM6.33187 10.464H9.6652C10.1252 10.464 10.4985 10.8378 10.4985 11.2988C10.4985 11.7599 10.1252 12.1336 9.6652 12.1336H6.33187C5.87187 12.1336 5.49854 11.7599 5.49854 11.2988C5.49854 10.8378 5.87187 10.464 6.33187 10.464Z",fill:"current"})))}var bi,xi=o.forwardRef(yi),wi=(n.p,["title","titleId"]);function Ci(){return Ci=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ci.apply(this,arguments)}function ji(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Si(e,t){var n=e.title,r=e.titleId,i=ji(e,wi);return o.createElement("svg",Ci({width:18,height:16,viewBox:"0 0 18 16",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,bi||(bi=o.createElement("path",{d:"M5.47013 0.527543C5.26346 0.579209 5.09347 0.720871 4.97514 0.918371L2.73596 4.66836H1.5118C1.0518 4.66836 0.678467 5.0417 0.678467 5.5017V8.83502C0.678467 8.94752 0.711795 9.07003 0.756795 9.17336L2.65763 13.6008C3.1168 14.6725 4.35679 15.5017 5.52179 15.5017H12.5018C13.6668 15.5017 14.9068 14.6717 15.366 13.6008L17.2668 9.17336C17.3118 9.07003 17.3451 8.94836 17.3451 8.83502C17.3451 8.41836 17.3451 5.91836 17.3451 5.5017C17.3451 5.0417 16.9718 4.66836 16.5118 4.66836H15.2876L13.0485 0.918371C12.9301 0.720871 12.7601 0.579209 12.5535 0.527543C12.3468 0.475876 12.126 0.513376 11.9285 0.631709C11.5335 0.868376 11.4051 1.3567 11.6418 1.7517L13.3868 4.66836H4.6368L6.38179 1.7517C6.61846 1.3567 6.49013 0.868376 6.09513 0.631709C5.89763 0.513376 5.6768 0.475876 5.47013 0.527543ZM5.67846 8.00169C6.13846 8.00169 6.5118 8.37502 6.5118 8.83502V10.5017C6.5118 10.9617 6.13846 11.335 5.67846 11.335C5.21846 11.335 4.84513 10.9617 4.84513 10.5017V8.83502C4.84513 8.37502 5.21846 8.00169 5.67846 8.00169ZM9.01179 8.00169C9.47179 8.00169 9.84513 8.37502 9.84513 8.83502V11.335C9.84513 11.795 9.47179 12.1684 9.01179 12.1684C8.55179 12.1684 8.17846 11.795 8.17846 11.335V8.83502C8.17846 8.37502 8.55179 8.00169 9.01179 8.00169ZM12.3451 8.00169C12.8051 8.00169 13.1785 8.37502 13.1785 8.83502V10.5017C13.1785 10.9617 12.8051 11.335 12.3451 11.335C11.8851 11.335 11.5118 10.9617 11.5118 10.5017V8.83502C11.5118 8.37502 11.8851 8.00169 12.3451 8.00169Z",fill:"current"})))}var ki,Zi=o.forwardRef(Si),Oi=(n.p,["title","titleId"]);function Ei(){return Ei=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ei.apply(this,arguments)}function Di(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Pi(e,t){var n=e.title,r=e.titleId,i=Di(e,Oi);return o.createElement("svg",Ei({width:16,height:16,viewBox:"0 0 16 16",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,ki||(ki=o.createElement("path",{d:"M4.65885 0.441406C4.19885 0.441406 3.82552 0.81474 3.82552 1.27474V2.10807H3.12219C1.66386 2.10807 0.492188 3.27891 0.492188 4.73808V5.44141C0.492188 7.71557 1.91968 9.71892 4.64718 10.4364C5.22135 11.1939 6.13886 11.8047 7.15219 12.0189L7.15885 13.7747H5.49219C5.03219 13.7747 4.65885 14.1481 4.65885 14.6081C4.65885 15.0681 5.03219 15.4414 5.49219 15.4414H10.4922C10.9522 15.4414 11.3255 15.0681 11.3255 14.6081C11.3255 14.1481 10.9522 13.7747 10.4922 13.7747H8.82552L8.81968 12.0248C9.83302 11.8098 10.7364 11.2281 11.3314 10.4239C14.1089 9.69391 15.4922 7.71557 15.4922 5.44141V4.73808C15.4922 3.27974 14.3213 2.10807 12.8622 2.10807H12.1589V1.27474C12.1589 0.81474 11.7855 0.441406 11.3255 0.441406C10.4922 0.441406 5.49219 0.441406 4.65885 0.441406ZM6.32552 2.10807H7.15885C7.61885 2.10807 7.99219 2.48141 7.99219 2.94141C7.99219 3.40141 7.61885 3.77474 7.15885 3.77474H6.32552C5.86552 3.77474 5.49219 3.40141 5.49219 2.94141C5.49219 2.48141 5.86552 2.10807 6.32552 2.10807ZM3.12219 3.77474H3.82552C3.82552 3.77474 3.82219 8.26809 3.82636 8.34225C2.64553 7.67392 2.15885 6.61474 2.15885 5.44141V4.73808C2.15885 4.19974 2.58386 3.77474 3.12219 3.77474ZM12.1589 3.77474H12.8622C13.4005 3.77474 13.8255 4.19974 13.8255 4.73808V5.44141C13.8255 6.61474 13.2822 7.68223 12.1597 8.33223C12.1639 8.25807 12.1589 8.01641 12.1589 7.94141V3.77474Z",fill:"current"})))}var Ai,Mi,Ti=o.forwardRef(Pi),Ii=(n.p,["title","titleId"]);function Ri(){return Ri=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ri.apply(this,arguments)}function Fi(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Bi(e,t){var n=e.title,r=e.titleId,i=Fi(e,Ii);return o.createElement("svg",Ri({width:14,height:12,viewBox:"0 0 14 12",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,Ai||(Ai=o.createElement("path",{d:"M14 9.17636V2.17636C14 2.09511 13.9774 2.01547 13.9347 1.94636C13.8919 1.87724 13.8308 1.82139 13.7582 1.78505C13.6855 1.74872 13.6041 1.73333 13.5232 1.74063C13.4423 1.74793 13.365 1.77761 13.3 1.82636L10.1618 4.18011L7.35831 0.175675C7.31595 0.120993 7.26164 0.076732 7.19953 0.0462817C7.13742 0.0158314 7.06917 0 7 0C6.93083 0 6.86258 0.0158314 6.80047 0.0462817C6.73836 0.076732 6.68405 0.120993 6.64169 0.175675L3.83819 4.18011L0.7 1.82636C0.635001 1.77761 0.557711 1.74793 0.47679 1.74063C0.395869 1.73333 0.314515 1.74872 0.241844 1.78505C0.169173 1.82139 0.108055 1.87724 0.0653403 1.94636C0.0226252 2.01547 0 2.09511 0 2.17636L0 9.17636H14Z",fill:"current"})),Mi||(Mi=o.createElement("path",{d:"M0 10.0513V10.4888C0 10.8369 0.138281 11.1707 0.384422 11.4168C0.630564 11.663 0.964403 11.8013 1.3125 11.8013H12.6875C13.0356 11.8013 13.3694 11.663 13.6156 11.4168C13.8617 11.1707 14 10.8369 14 10.4888V10.0513H0Z",fill:"current"})))}var Li,Ni=o.forwardRef(Bi),_i=(n.p,["title","titleId"]);function zi(){return zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zi.apply(this,arguments)}function Hi(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Wi(e,t){var n=e.title,r=e.titleId,i=Hi(e,_i);return o.createElement("svg",zi({width:16,height:16,viewBox:"0 0 16 16",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,Li||(Li=o.createElement("path",{d:"M2.99854 0.492188C1.6177 0.492188 0.498535 1.61135 0.498535 2.99219V4.65885V12.1589C0.498535 13.9997 1.99103 15.4922 3.83187 15.4922H12.1652C14.006 15.4922 15.4985 13.9997 15.4985 12.1589V4.65885C15.4985 4.19885 15.1252 3.82552 14.6652 3.82552C14.6652 3.82552 12.246 3.82552 10.4985 3.82552C9.86937 3.82552 9.66687 3.62135 9.17021 2.62718C8.41771 1.12135 7.78604 0.492188 6.33187 0.492188H2.99854ZM2.99854 2.15885H6.33187C6.96103 2.15885 7.16353 2.36302 7.6602 3.35719C7.76853 3.57469 7.81354 3.64385 7.92021 3.82552C5.04854 3.82552 2.98604 3.82552 2.1652 3.82552V2.99219C2.1652 2.53219 2.53854 2.15885 2.99854 2.15885ZM10.4985 7.15885C10.7119 7.15885 10.9344 7.23053 11.0977 7.39303C11.4227 7.71886 11.4227 8.26552 11.0977 8.59135L7.76436 11.9247C7.43853 12.2497 6.89187 12.2497 6.56604 11.9247L4.89937 10.258C4.57437 9.93218 4.57437 9.38553 4.89937 9.05969C5.22521 8.73469 5.77186 8.73469 6.0977 9.05969L7.1652 10.1272L9.89937 7.39303C10.0627 7.23053 10.2852 7.15885 10.4985 7.15885Z",fill:"current"})))}var Vi,Ui,qi=o.forwardRef(Wi),Gi=(n.p,["title","titleId"]);function Yi(){return Yi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yi.apply(this,arguments)}function Ki(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ji(e,t){var n=e.title,r=e.titleId,i=Ki(e,Gi);return o.createElement("svg",Yi({width:22,height:20,viewBox:"0 0 22 20",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,Vi||(Vi=o.createElement("g",{clipPath:"url(#clip0_484_8839)"},o.createElement("path",{d:"M15.7069 18.8342C14.454 19.5042 13.0604 19.8996 11.5997 19.9867C6.07879 20.3217 1.32167 16.114 0.993362 10.6064C0.832558 7.93976 1.72368 5.36689 3.50593 3.37024C5.28147 1.37359 7.72703 0.180964 10.4004 0.0201603C15.9213 -0.314848 20.6718 3.89286 21.0001 9.3937C21.1609 12.0604 20.2697 14.6332 18.4875 16.6299C17.6835 17.5411 16.7388 18.2781 15.6935 18.8342H15.7069ZM6.5813 1.7086C5.60308 2.23122 4.71866 2.92133 3.96154 3.77225C2.29319 5.655 1.45567 8.06706 1.60308 10.5729C1.91129 15.7388 6.3736 19.6852 11.5595 19.3769C14.0654 19.2228 16.3702 18.1039 18.0386 16.2279C19.7069 14.3518 20.5445 11.9398 20.397 9.4339C20.0888 4.26137 15.6198 0.314968 10.4406 0.629876C9.06706 0.716978 7.76053 1.08549 6.5813 1.7086Z",fill:"current"}),o.createElement("path",{d:"M14.7956 17.1258C13.7839 17.6618 12.6582 17.9834 11.479 18.0571C7.0301 18.3251 3.19091 14.9348 2.9229 10.4926C2.7956 8.34187 3.51251 6.27152 4.94635 4.65678C6.38019 3.04204 8.35674 2.08392 10.5142 1.94991C14.9631 1.68191 18.8023 5.07219 19.0703 9.5144C19.1976 11.6652 18.4807 13.7355 17.0469 15.3502C16.3969 16.0806 15.6331 16.6769 14.7956 17.1258ZM7.43881 3.31005C6.64819 3.73216 5.93797 4.28827 5.32156 4.97839C3.97483 6.49263 3.29811 8.43568 3.41871 10.4591C3.66662 14.6266 7.27131 17.8092 11.4455 17.5613C13.469 17.4407 15.3249 16.5362 16.6716 15.0219C18.0184 13.5077 18.6951 11.5647 18.5745 9.5412C18.3266 5.3737 14.7219 2.19112 10.5477 2.43903C9.44216 2.50603 8.38354 2.80754 7.43881 3.31005Z",fill:"current"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.12219 8.40895H7.15067L7.17077 11.5312C7.17077 11.7121 7.13057 11.8461 7.05017 11.9332C6.96976 12.0203 6.86256 12.0672 6.73526 12.0672C6.60126 12.0672 6.49405 12.027 6.41365 11.9399C6.33325 11.8528 6.28635 11.7188 6.28635 11.5446L6.26625 8.42905H5.29472C5.14062 8.43575 5.03342 8.40225 4.95301 8.34195C4.87931 8.27494 4.83911 8.18784 4.83911 8.08064C4.83911 7.96674 4.87931 7.87964 4.95301 7.81933C5.02672 7.75233 5.14062 7.71883 5.28802 7.71883L8.11549 7.69873C8.2696 7.69873 8.3835 7.73223 8.4572 7.79923C8.5309 7.86624 8.57111 7.95334 8.57111 8.06054C8.57111 8.16774 8.5376 8.25484 8.4572 8.32185C8.3835 8.38885 8.2696 8.42235 8.11549 8.42235L8.12219 8.40895Z",fill:"current"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.9983 8.36851L10.0184 11.2831H10.6951C10.8425 11.2831 10.9564 11.2764 11.0435 11.263C11.1306 11.2563 11.2177 11.2362 11.3048 11.2027C11.3919 11.1692 11.4723 11.129 11.5393 11.0687C11.8341 10.8208 11.9815 10.3987 11.9748 9.79565C11.9748 9.37354 11.9011 9.05863 11.7738 8.84422C11.6398 8.63652 11.479 8.50251 11.2847 8.44221C11.0904 8.38861 10.8626 8.35511 10.5879 8.36181H9.9983V8.36851ZM9.64989 7.68509H10.809C11.1105 7.67839 11.3718 7.70519 11.5862 7.7588C11.8006 7.8124 11.9949 7.9129 12.1759 8.0603C12.6382 8.44221 12.866 9.01843 12.8727 9.80235C12.8727 10.057 12.8526 10.2915 12.8057 10.5059C12.7588 10.7203 12.6918 10.9146 12.598 11.0821C12.5042 11.2563 12.3836 11.4037 12.2295 11.5444C12.1089 11.6516 11.9815 11.732 11.8475 11.7923C11.7068 11.8526 11.5594 11.8995 11.3986 11.9263C11.2378 11.9531 11.0569 11.9665 10.8559 11.9665H9.69679C9.53599 11.9732 9.41539 11.9531 9.32828 11.9062C9.24788 11.8593 9.19428 11.7923 9.16748 11.7052C9.14068 11.6181 9.12728 11.5042 9.12728 11.3702L9.10718 8.22781C9.10718 8.0402 9.14738 7.9062 9.23448 7.8191C9.32158 7.73199 9.45559 7.69179 9.64989 7.69179V7.68509Z",fill:"current"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.9398 11.0956L15.8476 8.46241C15.794 8.32841 15.7538 8.22791 15.7203 8.14751C15.6868 8.0671 15.6466 7.9934 15.5997 7.9264C15.5528 7.8594 15.4858 7.7991 15.4121 7.7589C15.3317 7.7187 15.2379 7.69189 15.1173 7.69189C14.9967 7.69189 14.9029 7.712 14.8225 7.7589C14.7421 7.8058 14.6818 7.8594 14.6349 7.9331C14.588 8.0068 14.5411 8.0939 14.5009 8.20111C14.4607 8.30831 14.4205 8.40211 14.3937 8.47581L13.3284 11.1291C13.2815 11.2363 13.2547 11.3167 13.2346 11.377C13.2145 11.4373 13.2078 11.4909 13.2078 11.5512C13.2078 11.645 13.248 11.7321 13.3284 11.8125C13.4088 11.8862 13.5026 11.9264 13.6098 11.9264C13.7371 11.9264 13.8242 11.8929 13.8778 11.8192C13.9314 11.7455 13.9984 11.6115 14.0788 11.4038L14.5009 10.2581V10.2447L15.1173 8.57632L15.7404 10.238V10.2581L16.1759 11.3904C16.2027 11.4507 16.2362 11.5244 16.2697 11.6115C16.3099 11.6919 16.3434 11.7522 16.3702 11.7924C16.4037 11.8326 16.4439 11.8661 16.4908 11.8862C16.5377 11.9063 16.598 11.9197 16.6583 11.9197C16.7723 11.9197 16.8661 11.8795 16.9532 11.7991C17.0336 11.7187 17.0738 11.6316 17.0738 11.5378C17.0738 11.444 17.0336 11.3033 16.9465 11.1023",fill:"current"}))),Ui||(Ui=o.createElement("defs",null,o.createElement("clipPath",{id:"clip0_484_8839"},o.createElement("rect",{width:20.0536,height:20,fill:"current",transform:"translate(0.973145)"})))))}var Xi,Qi=o.forwardRef(Ji),$i=(n.p,["title","titleId"]);function ea(){return ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ea.apply(this,arguments)}function ta(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function na(e,t){var n=e.title,r=e.titleId,i=ta(e,$i);return o.createElement("svg",ea({width:16,height:17,viewBox:"0 0 16 17",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,Xi||(Xi=o.createElement("path",{d:"M7.99243 0.165771C5.03243 0.165771 2.99243 2.20578 2.99243 5.16579C2.99243 5.56995 2.99243 5.99912 2.99243 6.83246C2.99243 7.66579 2.85743 8.1158 2.39327 8.49913C2.34077 8.54246 2.12076 8.73163 2.05493 8.78579C1.00076 9.65746 0.483263 10.4741 0.492429 11.8325C0.499096 12.7308 1.2366 13.5083 2.1591 13.4991H5.65159C5.65159 13.4991 5.49243 14.0083 5.49243 14.3325C5.49243 15.7133 6.6116 16.8325 7.99243 16.8325C9.37326 16.8325 10.4924 15.7133 10.4924 14.3325C10.4924 14.0083 10.3399 13.4991 10.3399 13.4991H13.8258C14.7458 13.5016 15.4916 12.7358 15.4924 11.8325C15.4941 10.4841 14.9708 9.6533 13.9299 8.78579C13.8616 8.72829 13.6199 8.54413 13.5658 8.49913C13.1116 8.1208 12.9924 7.66579 12.9924 6.83246C12.9924 5.79079 12.9924 5.16579 12.9924 5.16579C12.9924 2.20578 10.9524 0.165771 7.99243 0.165771ZM7.99243 13.4991C8.45243 13.4991 8.82576 13.8725 8.82576 14.3325C8.82576 14.7925 8.45243 15.1658 7.99243 15.1658C7.53243 15.1658 7.1591 14.7925 7.1591 14.3325C7.1591 13.8725 7.53243 13.4991 7.99243 13.4991Z",fill:"current"})))}var ra=o.forwardRef(na),oa=(n.p,function(e){var t=e.resource;return(0,Yt.useQueryClient)().setMutationDefaults(["".concat(t,"-create")],{mutationFn:function(e){return pi.Z.post("".concat(t),e)}}),(0,Yt.useMutation)(["".concat(t,"-create")])}),ia=n(67865),aa=(0,o.lazy)((function(){return Promise.resolve().then(n.bind(n,67865))})),sa=new Map([[Kt.W6.Content,xi],[Kt.W6.Marketplace,Zi],[Kt.W6.E2EManagment,qi],[Kt.W6.Achievements,Ti],[Kt.W6.TDCNotifications,Qi],[Kt.W6.Premium,Ni]]),la={transition:"0.3s all ease",textDecoration:"underline",cursor:"pointer","&:hover":{color:"primaryLight.300"}},ca=function(){var e,t,n,r=(0,o.useState)(null),i=(0,Le.Z)(r,2),a=i[0],s=i[1],l=Boolean(a),c=hi({resource:"notifications?orderByCreatedOn=desc&limit=100"}),d=c.data,p=c.refetch,f=oa({resource:"/notifications/mark-all-as-seen"}).mutate,h=function(){s(null)},m=null===d||void 0===d?void 0:d.data.results,v=function(){return null===m||void 0===m?void 0:m.filter((function(e){return null===e.seen}))},g=null===m||void 0===m?void 0:m.slice(0,6);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Vo.Z,{color:"secondary",variant:"dot",overlap:"circular",invisible:0===(null===(e=v())||void 0===e?void 0:e.length),sx:{"& .MuiBadge-badge":{border:"2px solid #E3DBFC",borderRadius:"100%",width:"12px",height:"12px"}},children:(0,u.jsx)(io.Z,{size:"large",onClick:function(e){s(e.currentTarget)},"aria-controls":l?"account-menu":void 0,"aria-haspopup":"true","aria-expanded":l?"true":void 0,className:"react-joyride-step-4",sx:{border:"1px solid #BFC6D7",bgcolor:l?"secondaryBlue.100":"none"},children:(0,u.jsx)(ra,{fill:"#79829B"})})}),(0,u.jsx)(Uo.Z,{disableScrollLock:!0,anchorEl:a,id:"account-menu",open:l,onClose:h,onClick:h,PaperProps:{elevation:0,sx:{mt:.5,width:"25%",borderRadius:"12px",boxShadow:"6px 6px 15px rgba(56, 69, 114, 0.1)"}},transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},children:(0,u.jsxs)(nn.Z,{children:[(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",sx:{pb:1,px:1},alignItems:"end",children:[(0,u.jsx)(rn.Z,{variant:"body3",fontWeight:600,color:"primaryDark.500",sx:la,onClick:function(){f({},{onSuccess:function(){p()}})},children:"Mark all as read"}),(0,u.jsx)($n,{to:"../dashboard/notifications",children:(0,u.jsx)(rn.Z,{color:"primaryLight.500",variant:"heading4",children:"View all"})})]}),(0,u.jsxs)(nn.Z,{sx:{padding:0},children:[0===(null===m||void 0===m?void 0:m.length)?(0,u.jsx)(rn.Z,{color:"primary",variant:"body1",fontSize:14,sx:{p:3,textAlign:"center"},children:"0 notifications"}):null===g||void 0===g?void 0:g.map((function(e){return(0,u.jsx)(o.Suspense,{fallback:(0,u.jsx)(ua,{}),children:(0,u.jsx)(aa,{data:e,Icon:sa.get(e.category)})})})),(0,u.jsx)(ia.NotificationCardRemaining,{unread:null!==(t=null===(n=v())||void 0===n?void 0:n.slice(6).length)&&void 0!==t?t:0})]})]})})]})},ua=function(){return(0,u.jsxs)(nn.Z,{width:"100%",direction:"row",spacing:1,sx:{p:2},children:[(0,u.jsx)(di,{height:40,width:40,variant:"rectangular"}),(0,u.jsxs)(nn.Z,{flex:1,spacing:.5,children:[(0,u.jsx)(di,{variant:"text",sx:{fontSize:"14px"}}),(0,u.jsx)(di,{variant:"text",sx:{fontSize:"12px"},width:"100px"})]})]})},da=n(36774),pa=n(86162),fa=(0,pa.Z)((0,u.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function ha(e){return(0,F.Z)("MuiAvatar",e)}var ma=(0,R.Z)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),va=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],ga=(0,P.ZP)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})((function(e){var t=e.theme,n=e.ownerState;return(0,r.Z)({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},"rounded"===n.variant&&{borderRadius:(t.vars||t).shape.borderRadius},"square"===n.variant&&{borderRadius:0},n.colorDefault&&(0,r.Z)({color:(t.vars||t).palette.background.default},t.vars?{backgroundColor:t.vars.palette.Avatar.defaultBg}:{backgroundColor:"light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[600]}))})),ya=(0,P.ZP)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:function(e,t){return t.img}})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),ba=(0,P.ZP)(fa,{name:"MuiAvatar",slot:"Fallback",overridesResolver:function(e,t){return t.fallback}})({width:"75%",height:"75%"});var xa,wa=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiAvatar"}),i=n.alt,a=n.children,s=n.className,l=n.component,c=void 0===l?"div":l,d=n.imgProps,p=n.sizes,f=n.src,h=n.srcSet,m=n.variant,v=void 0===m?"circular":m,g=(0,b.Z)(n,va),x=null,w=function(e){var t=e.crossOrigin,n=e.referrerPolicy,r=e.src,i=e.srcSet,a=o.useState(!1),s=(0,Le.Z)(a,2),l=s[0],c=s[1];return o.useEffect((function(){if(r||i){c(!1);var e=!0,o=new Image;return o.onload=function(){e&&c("loaded")},o.onerror=function(){e&&c("error")},o.crossOrigin=t,o.referrerPolicy=n,o.src=r,i&&(o.srcset=i),function(){e=!1}}}),[t,n,r,i]),l}((0,r.Z)({},d,{src:f,srcSet:h})),C=f||h,j=C&&"error"!==w,S=(0,r.Z)({},n,{colorDefault:!j,component:c,variant:v}),k=function(e){var t=e.classes,n={root:["root",e.variant,e.colorDefault&&"colorDefault"],img:["img"],fallback:["fallback"]};return(0,M.Z)(n,ha,t)}(S);return x=j?(0,u.jsx)(ya,(0,r.Z)({alt:i,src:f,srcSet:h,sizes:p,ownerState:S,className:k.img},d)):null!=a?a:C&&i?i[0]:(0,u.jsx)(ba,{ownerState:S,className:k.fallback}),(0,u.jsx)(ga,(0,r.Z)({as:c,ownerState:S,className:(0,y.default)(k.root,s),ref:t},g,{children:x}))})),Ca=wa,ja=["title","titleId"];function Sa(){return Sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sa.apply(this,arguments)}function ka(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Za(e,t){var n=e.title,r=e.titleId,i=ka(e,ja);return o.createElement("svg",Sa({width:8,height:5,viewBox:"0 0 8 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,xa||(xa=o.createElement("path",{d:"M7.125 0.75L4 3.875L0.875 0.75",stroke:"black",strokeLinecap:"round",strokeLinejoin:"round"})))}var Oa,Ea=o.forwardRef(Za),Da=n.p+"static/media/ArrowDownThinIcon.5027aadd344361d2dac4d5e0da0bb004.svg",Pa=function(){var e=(0,o.useState)(JSON.parse(localStorage.getItem("userData"))||null),t=(0,Le.Z)(e,2),n=t[0],r=t[1];return(0,o.useEffect)((function(){r(JSON.parse(localStorage.getItem("userData")))}),[localStorage.getItem("userData")]),n},Aa=["ids","resource","enabled","queryFilters"],Ma=function(e){var t=e.ids,n=e.resource,r=e.enabled,o=e.queryFilters,i=Nn(e,Aa);return(0,Yt.useQuery)((0,l.Z)({queryKey:["".concat(n,"-many-reference")].concat((0,dn.Z)(t)),queryFn:function(){return new Promise((function(e,r){Ta({ids:t,resource:n,queryFilters:o,resolve:e,reject:r})}))},enabled:r},i))},Ta=function(e){var t=[],n=null;return function(r){t.push(r),n&&clearTimeout(n),n=setTimeout((function(){n=null,e((0,dn.Z)(t)),t=[]}),0)}}((function(e){var t,n={},r=_e(e);try{for(r.s();!(t=r.n()).done;){var o,i,a=t.value;null!==(i=n[o=a.resource])&&void 0!==i||(n[o]=[]),n[a.resource].push(a)}}catch(c){r.e(c)}finally{r.f()}var s=function(e){var t,r=new URLSearchParams,o=new Set,i=_e(n[e]);try{var a=function(){var e=t.value;e.queryFilters&&Object.keys(e.queryFilters).map((function(t){return r.append(t,"".concat(e.queryFilters[t]))}));var n,i=_e(e.ids);try{for(i.s();!(n=i.n()).done;){var a=n.value;o.add(a)}}catch(c){i.e(c)}finally{i.f()}};for(i.s();!(t=i.n()).done;)a()}catch(c){i.e(c)}finally{i.f()}o.forEach((function(e){e&&r.append("id",e)})),pi.Z.get("/".concat(e,"?").concat(r.toString())).then((function(t){var r,o,i=new Map,a=_e(null===(r=t.data)||void 0===r?void 0:r.results);try{for(a.s();!(o=a.n()).done;){var s=o.value;i.set(s.id,s)}}catch(c){a.e(c)}finally{a.f()}var l,u=_e(n[e]);try{for(u.s();!(l=u.n()).done;){var d,p=l.value,f=[],h=_e(p.ids);try{for(h.s();!(d=h.n()).done;){var m=d.value,v=i.get(m);f.push(v)}}catch(c){h.e(c)}finally{h.f()}p.resolve(f)}}catch(c){u.e(c)}finally{u.f()}})).catch((function(t){var r,o=_e(n[e]);try{for(o.s();!(r=o.n()).done;){r.value.reject(t)}}catch(c){o.e(c)}finally{o.f()}}))};for(var l in n)s(l)})),Ia=["resource","id","queryFilters"],Ra=function(e){var t=e.resource,n=e.id,r=e.queryFilters,o=Nn(e,Ia),i=Ma((0,l.Z)({ids:[n],resource:t,queryFilters:r},o)),a=i.data,s=null===a||void 0===a?void 0:a[0];return(0,l.Z)((0,l.Z)({},i),{},{data:s})},Fa=["title","titleId"];function Ba(){return Ba=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ba.apply(this,arguments)}function La(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Na(e,t){var n=e.title,r=e.titleId,i=La(e,Fa);return o.createElement("svg",Ba({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,Oa||(Oa=o.createElement("path",{d:"M8.00741 1.34277C7.42408 1.34277 6.84808 1.56477 6.40275 2.00944L1.52808 6.86343C1.26741 7.12409 1.26741 7.56142 1.52808 7.82208L2.67408 8.96807V11.3427C2.67408 12.8154 3.86808 14.0094 5.34075 14.0094H10.6741C12.1468 14.0094 13.3408 12.8154 13.3408 11.3427V8.96807L14.4861 7.82208C14.7468 7.56142 14.7468 7.12409 14.4861 6.86343C14.2601 6.63743 13.4321 5.80543 12.6741 5.05077V3.34277C12.6741 2.97477 12.3754 2.6761 12.0074 2.6761C11.6388 2.6761 11.3408 2.97477 11.3408 3.34277V3.73876C10.6274 3.02876 9.82742 2.22544 9.61142 2.00944C9.16609 1.56477 8.59008 1.34277 8.00741 1.34277Z",fill:"#6D51F6"})))}var _a,za=o.forwardRef(Na),Ha=(n.p,["title","titleId"]);function Wa(){return Wa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wa.apply(this,arguments)}function Va(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ua(e,t){var n=e.title,r=e.titleId,i=Va(e,Ha);return o.createElement("svg",Wa({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,_a||(_a=o.createElement("path",{d:"M3.33223 1.9939C2.59557 1.9939 1.9989 2.59056 1.9989 3.32723V12.6606C1.9989 13.3972 2.59557 13.9939 3.33223 13.9939H5.9989C6.73557 13.9939 7.33223 13.3972 7.33223 12.6606V3.32723C7.33223 2.59056 6.73557 1.9939 5.9989 1.9939H3.33223ZM9.9989 1.9939C9.26223 1.9939 8.66556 2.59056 8.66556 3.32723V5.9939C8.66556 6.73056 9.26223 7.32723 9.9989 7.32723H12.6656C13.4022 7.32723 13.9989 6.73056 13.9989 5.9939V3.32723C13.9989 2.59056 13.4022 1.9939 12.6656 1.9939H9.9989ZM9.9989 8.66056C9.26223 8.66056 8.66556 9.25723 8.66556 9.9939V12.6606C8.66556 13.3972 9.26223 13.9939 9.9989 13.9939H12.6656C13.4022 13.9939 13.9989 13.3972 13.9989 12.6606V9.9939C13.9989 9.25723 13.4022 8.66056 12.6656 8.66056H9.9989Z",fill:"#6D51F6"})))}var qa,Ga=o.forwardRef(Ua),Ya=(n.p,["title","titleId"]);function Ka(){return Ka=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ka.apply(this,arguments)}function Ja(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Xa(e,t){var n=e.title,r=e.titleId,i=Ja(e,Ya);return o.createElement("svg",Ka({width:15,height:14,viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,qa||(qa=o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.40294 7.51335C9.6946 7.51335 9.92522 7.28669 9.92522 7.00002C9.92522 6.72002 9.6946 6.48669 9.40294 6.48669H5.33317V3.30002C5.33317 1.66669 6.68298 0.333353 8.35158 0.333353H11.6549C13.3167 0.333353 14.6665 1.66002 14.6665 3.29335V10.7C14.6665 12.34 13.3099 13.6667 11.6481 13.6667H8.33802C6.68298 13.6667 5.33317 12.34 5.33317 10.7067V7.51335H9.40294ZM2.91304 9.30655L0.966371 7.36655C0.86637 7.26655 0.813037 7.13989 0.813037 6.99989C0.813037 6.86655 0.86637 6.73322 0.966371 6.63989L2.91304 4.69989C3.01304 4.59989 3.14637 4.54655 3.27304 4.54655C3.40637 4.54655 3.5397 4.59989 3.6397 4.69989C3.8397 4.89989 3.8397 5.22655 3.6397 5.42655L2.57304 6.48655H5.33304V7.51322H2.57304L3.6397 8.57322C3.8397 8.77322 3.8397 9.09989 3.6397 9.29989C3.4397 9.50655 3.11304 9.50655 2.91304 9.30655Z",fill:"#6D51F6"})))}var Qa,$a=o.forwardRef(Xa),es=(n.p,n(31792)),ts=["title","children"],ns=function(e){var t=e.title,n=e.children,r=Nn(e,ts);return(0,u.jsx)(es.Z,(0,l.Z)((0,l.Z)({arrow:!0,title:t,PopperProps:{sx:{textTransform:"none","& .MuiTooltip-tooltip":{textTransform:"none",fontWeight:400,lineHeight:"1.25rem",fontSize:"0.75rem"}}}},r),{},{children:n}))},rs=n(19049),is=["title","titleId"];function as(){return as=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},as.apply(this,arguments)}function ss(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ls(e,t){var n=e.title,r=e.titleId,i=ss(e,is);return o.createElement("svg",as({width:14,height:15,viewBox:"0 0 14 15",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,Qa||(Qa=o.createElement("path",{d:"M10.331 0.727295C10.1544 0.727295 9.97703 0.789966 9.85169 0.914633C9.48102 1.2853 8.14703 2.61931 7.85103 2.91598L1.84749 8.91933L1.1805 9.586C1.08736 9.67933 1.03956 9.81132 1.01376 9.94065L0.346695 13.276C0.253362 13.7427 0.651227 14.14 1.11796 14.0473C1.53483 13.9633 4.03623 13.4633 4.45309 13.38C4.58223 13.354 4.71436 13.306 4.80743 13.2133L5.47449 12.546L11.4777 6.54265C11.7744 6.24665 13.1084 4.91196 13.479 4.54196C13.6037 4.41663 13.6664 4.2393 13.6664 4.06263C13.6664 2.97129 13.3884 2.19129 12.8117 1.60262C12.2297 1.00862 11.4524 0.727295 10.331 0.727295ZM10.5937 2.07329C11.1957 2.10862 11.5857 2.24665 11.853 2.51998C12.1264 2.79865 12.299 3.18531 12.3364 3.77532C11.971 4.13998 11.4364 4.66662 10.9984 5.10462C10.4697 4.57596 9.81769 3.92398 9.28902 3.39531C9.72769 2.95731 10.229 2.43795 10.5937 2.07329ZM2.32696 10.3573L4.03623 12.0666L3.97369 12.1293C3.53369 12.2173 2.64516 12.4033 1.8267 12.5673L2.26443 10.42L2.32696 10.3573Z",fill:"#6D51F6"})))}var cs=o.forwardRef(ls);n.p;function us(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}function ds(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){us(i,r,o,a,s,"next",e)}function s(e){us(i,r,o,a,s,"throw",e)}a(void 0)}))}}var ps,fs=n(50824),hs=n.n(fs),ms=(0,n(71613).Z)(),vs=n(77442),gs=["children","width","paperStyleProps","sx"],ys=function(e){var t=e.children,n=e.width,r=void 0===n?"45%":n,o=e.paperStyleProps,i=e.sx,a=Nn(e,gs);return(0,u.jsx)(vs.Z,(0,l.Z)((0,l.Z)({disableAutoFocus:!0,disableEnforceFocus:!0,disableScrollLock:!0},a),{},{BackdropProps:{style:{background:"linear-gradient(240.98deg, #E6E8FF 0%, #FFEAE1 68.46%, #FFFBEA 99.58%)",opacity:.9}},children:(0,u.jsx)(nn.Z,{sx:(0,l.Z)((0,l.Z)({width:r},bs),i),children:(0,u.jsx)(ao.Z,{sx:(0,l.Z)({padding:"2rem",borderRadius:"0.5rem",boxShadow:"none"},o),children:t})})}))},bs={boxShadow:"6px 6px 15px rgba(56, 69, 114, 0.1)",border:"2px solid #FFFFFF",borderRadius:"1rem",p:"1.3rem",position:"absolute",top:"50%",left:"50%",background:"transparent",transform:"translate(-50%, -50%)"},xs=["title","titleId"];function ws(){return ws=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ws.apply(this,arguments)}function Cs(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function js(e,t){var n=e.title,r=e.titleId,i=Cs(e,xs);return o.createElement("svg",ws({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,ps||(ps=o.createElement("path",{d:"M3.83199 0.49231C1.99116 0.49231 0.498657 1.98481 0.498657 3.82564V12.159C0.498657 13.9998 1.99116 15.4923 3.83199 15.4923H12.1653C14.0061 15.4923 15.4986 13.9998 15.4986 12.159V3.82564C15.4986 1.98481 14.0061 0.49231 12.1653 0.49231H3.83199ZM11.332 2.99231C12.2528 2.99231 12.9986 3.73814 12.9986 4.65898C12.9986 5.57981 12.2528 6.32564 11.332 6.32564C10.4111 6.32564 9.66531 5.57981 9.66531 4.65898C9.66531 3.73814 10.4111 2.99231 11.332 2.99231ZM5.08199 7.15898C5.56699 7.15981 6.30366 7.9148 7.00866 9.21647C7.28866 9.73147 7.53948 10.299 7.76448 10.8573C7.89948 11.1906 8.00366 11.4457 8.05033 11.5857C8.27783 12.2665 9.20115 12.3631 9.56115 11.7423C9.59698 11.6806 9.66198 11.5623 9.76948 11.404C9.94948 11.1373 10.1545 10.8673 10.3686 10.6223C10.9036 10.009 11.4203 9.65898 11.7486 9.65898C12.0811 9.66731 12.5945 10.0165 13.1286 10.6223C13.3453 10.8681 13.5453 11.1373 13.7278 11.404C13.7853 11.4873 13.7936 11.5265 13.832 11.5857V12.159C13.832 13.0798 13.0861 13.8256 12.1653 13.8256H3.83199C2.91115 13.8256 2.16532 13.0798 2.16532 12.159V11.4556C2.21782 11.3073 2.28783 11.1315 2.39949 10.8573C2.62699 10.299 2.87365 9.7323 3.15531 9.21647C3.86614 7.9123 4.59782 7.15814 5.08199 7.15898Z",fill:"#6D51F6"})))}var Ss,ks=o.forwardRef(js),Zs=(n.p,["title","titleId"]);function Os(){return Os=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Os.apply(this,arguments)}function Es(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ds(e,t){var n=e.title,r=e.titleId,i=Es(e,Zs);return o.createElement("svg",Os({width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,Ss||(Ss=o.createElement("path",{d:"M1.45374 0.592529C1.25115 0.592529 1.0393 0.660617 0.884691 0.814992C0.575546 1.12453 0.575546 1.64386 0.884691 1.9534L5.85739 6.92586L0.884691 11.8983C0.575546 12.2079 0.575546 12.7272 0.884691 13.0367C1.19392 13.3455 1.71357 13.3455 2.02279 13.0367L6.99541 8.06428L11.968 13.0367C12.2773 13.3455 12.7969 13.3455 13.1061 13.0367C13.4153 12.7272 13.4153 12.2079 13.1061 11.8983L8.13343 6.92586L13.1061 1.9534C13.4153 1.64386 13.4153 1.12453 13.1061 0.814992C12.9515 0.660617 12.7396 0.592529 12.5371 0.592529C12.3345 0.592529 12.1227 0.660617 11.968 0.814992L6.99541 5.78744L2.02279 0.814992C1.86818 0.660617 1.65633 0.592529 1.45374 0.592529Z",fill:"#9EA8C2"})))}var Ps=o.forwardRef(Ds),As=(n.p,n(36823)),Ms=n(65540),Ts=n(76121),Is=n(82284),Rs=n(98403),Fs=n(23487),Bs=n(32911),Ls=n(86193),Ns=n(66430),_s=n(22270),zs=n(7969);function Hs(e,t){return e-t}function Ws(e,t,n){return null==e?t:Math.min(Math.max(t,e),n)}function Vs(e,t){var n,r=null!=(n=e.reduce((function(e,n,r){var o=Math.abs(t-n);return null===e||o<e.distance||o===e.distance?{distance:o,index:r}:e}),null))?n:{};return r.index}function Us(e,t){if(void 0!==t.current&&e.changedTouches){for(var n=e,r=0;r<n.changedTouches.length;r+=1){var o=n.changedTouches[r];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function qs(e,t,n){return 100*(e-t)/(n-t)}function Gs(e,t,n){var r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(function(e){if(Math.abs(e)<1){var t=e.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}var r=e.toString().split(".")[1];return r?r.length:0}(t)))}function Ys(e){var t=e.values,n=e.newValue,r=e.index,o=t.slice();return o[r]=n,o.sort(Hs)}function Ks(e){var t,n,r,o=e.sliderRef,i=e.activeIndex,a=e.setActive,s=(0,Rs.Z)(o.current);null!=(t=o.current)&&t.contains(s.activeElement)&&Number(null==s||null==(n=s.activeElement)?void 0:n.getAttribute("data-index"))===i||(null==(r=o.current)||r.querySelector('[type="range"][data-index="'.concat(i,'"]')).focus());a&&a(i)}function Js(e,t){return"number"===typeof e&&"number"===typeof t?e===t:"object"===typeof e&&"object"===typeof t&&function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e,t){return e===t};return e.length===t.length&&e.every((function(e,r){return n(e,t[r])}))}(e,t)}var Xs,Qs={horizontal:{offset:function(e){return{left:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},"horizontal-reverse":{offset:function(e){return{right:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},vertical:{offset:function(e){return{bottom:"".concat(e,"%")}},leap:function(e){return{height:"".concat(e,"%")}}}},$s=function(e){return e};function el(){return void 0===Xs&&(Xs="undefined"===typeof CSS||"function"!==typeof CSS.supports||CSS.supports("touch-action","none")),Xs}function tl(e){var t=e["aria-labelledby"],n=e.defaultValue,i=e.disabled,a=void 0!==i&&i,s=e.disableSwap,l=void 0!==s&&s,c=e.isRtl,u=void 0!==c&&c,d=e.marks,p=void 0!==d&&d,f=e.max,h=void 0===f?100:f,m=e.min,v=void 0===m?0:m,g=e.name,y=e.onChange,b=e.onChangeCommitted,x=e.orientation,w=void 0===x?"horizontal":x,C=e.rootRef,j=e.scale,S=void 0===j?$s:j,k=e.step,Z=void 0===k?1:k,O=e.tabIndex,E=e.value,D=o.useRef(),P=o.useState(-1),A=(0,Le.Z)(P,2),M=A[0],T=A[1],I=o.useState(-1),R=(0,Le.Z)(I,2),F=R[0],B=R[1],L=o.useState(!1),N=(0,Le.Z)(L,2),_=N[0],z=N[1],H=o.useRef(0),W=(0,Fs.Z)({controlled:E,default:null!=n?n:v,name:"Slider"}),V=(0,Le.Z)(W,2),U=V[0],q=V[1],G=y&&function(e,t,n){var r=e.nativeEvent||e,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:t,name:g}}),y(o,t,n)},Y=Array.isArray(U),K=Y?U.slice().sort(Hs):[U];K=K.map((function(e){return Ws(e,v,h)}));var J=!0===p&&null!==Z?(0,dn.Z)(Array(Math.floor((h-v)/Z)+1)).map((function(e,t){return{value:v+Z*t}})):p||[],X=J.map((function(e){return e.value})),Q=(0,Bs.Z)(),$=Q.isFocusVisibleRef,ee=Q.onBlur,te=Q.onFocus,ne=Q.ref,re=o.useState(-1),oe=(0,Le.Z)(re,2),ie=oe[0],ae=oe[1],se=o.useRef(),le=(0,Ls.Z)(ne,se),ce=(0,Ls.Z)(C,le),ue=function(e){return function(t){var n,r=Number(t.currentTarget.getAttribute("data-index"));te(t),!0===$.current&&ae(r),B(r),null==e||null==(n=e.onFocus)||n.call(e,t)}},de=function(e){return function(t){var n;ee(t),!1===$.current&&ae(-1),B(-1),null==e||null==(n=e.onBlur)||n.call(e,t)}};(0,Ns.Z)((function(){var e;a&&se.current.contains(document.activeElement)&&(null==(e=document.activeElement)||e.blur())}),[a]),a&&-1!==M&&T(-1),a&&-1!==ie&&ae(-1);var pe=function(e){return function(t){var n;null==(n=e.onChange)||n.call(e,t);var r=Number(t.currentTarget.getAttribute("data-index")),o=K[r],i=X.indexOf(o),a=t.target.valueAsNumber;if(J&&null==Z&&(a=a<o?X[i-1]:X[i+1]),a=Ws(a,v,h),J&&null==Z){var s=X.indexOf(K[r]);a=a<K[r]?X[s-1]:X[s+1]}if(Y){l&&(a=Ws(a,K[r-1]||-1/0,K[r+1]||1/0));var c=a;a=Ys({values:K,newValue:a,index:r});var u=r;l||(u=a.indexOf(c)),Ks({sliderRef:se,activeIndex:u})}q(a),ae(r),G&&!Js(a,U)&&G(t,a,r),b&&b(t,a)}},fe=o.useRef(),he=w;u&&"horizontal"===w&&(he+="-reverse");var me=function(e){var t,n,r=e.finger,o=e.move,i=void 0!==o&&o,a=se.current.getBoundingClientRect(),s=a.width,c=a.height,u=a.bottom,d=a.left;if(t=0===he.indexOf("vertical")?(u-r.y)/c:(r.x-d)/s,-1!==he.indexOf("-reverse")&&(t=1-t),n=function(e,t,n){return(n-t)*e+t}(t,v,h),Z)n=Gs(n,Z,v);else{var p=Vs(X,n);n=X[p]}n=Ws(n,v,h);var f=0;if(Y){f=i?fe.current:Vs(K,n),l&&(n=Ws(n,K[f-1]||-1/0,K[f+1]||1/0));var m=n;n=Ys({values:K,newValue:n,index:f}),l&&i||(f=n.indexOf(m),fe.current=f)}return{newValue:n,activeIndex:f}},ve=(0,_s.Z)((function(e){var t=Us(e,D);if(t)if(H.current+=1,"mousemove"!==e.type||0!==e.buttons){var n=me({finger:t,move:!0}),r=n.newValue,o=n.activeIndex;Ks({sliderRef:se,activeIndex:o,setActive:T}),q(r),!_&&H.current>2&&z(!0),G&&!Js(r,U)&&G(e,r,o)}else ge(e)})),ge=(0,_s.Z)((function(e){var t=Us(e,D);if(z(!1),t){var n=me({finger:t,move:!0}).newValue;T(-1),"touchend"===e.type&&B(-1),b&&b(e,n),D.current=void 0,be()}})),ye=(0,_s.Z)((function(e){if(!a){el()||e.preventDefault();var t=e.changedTouches[0];null!=t&&(D.current=t.identifier);var n=Us(e,D);if(!1!==n){var r=me({finger:n}),o=r.newValue,i=r.activeIndex;Ks({sliderRef:se,activeIndex:i,setActive:T}),q(o),G&&!Js(o,U)&&G(e,o,i)}H.current=0;var s=(0,Rs.Z)(se.current);s.addEventListener("touchmove",ve),s.addEventListener("touchend",ge)}})),be=o.useCallback((function(){var e=(0,Rs.Z)(se.current);e.removeEventListener("mousemove",ve),e.removeEventListener("mouseup",ge),e.removeEventListener("touchmove",ve),e.removeEventListener("touchend",ge)}),[ge,ve]);o.useEffect((function(){var e=se.current;return e.addEventListener("touchstart",ye,{passive:el()}),function(){e.removeEventListener("touchstart",ye,{passive:el()}),be()}}),[be,ye]),o.useEffect((function(){a&&be()}),[a,be]);var xe=function(e){return function(t){var n;if(null==(n=e.onMouseDown)||n.call(e,t),!a&&!t.defaultPrevented&&0===t.button){t.preventDefault();var r=Us(t,D);if(!1!==r){var o=me({finger:r}),i=o.newValue,s=o.activeIndex;Ks({sliderRef:se,activeIndex:s,setActive:T}),q(i),G&&!Js(i,U)&&G(t,i,s)}H.current=0;var l=(0,Rs.Z)(se.current);l.addEventListener("mousemove",ve),l.addEventListener("mouseup",ge)}}},we=qs(Y?K[0]:v,v,h),Ce=qs(K[K.length-1],v,h)-we,je=function(e){return function(t){var n;null==(n=e.onMouseOver)||n.call(e,t);var r=Number(t.currentTarget.getAttribute("data-index"));B(r)}},Se=function(e){return function(t){var n;null==(n=e.onMouseLeave)||n.call(e,t),B(-1)}};return{active:M,axis:he,axisProps:Qs,dragging:_,focusedThumbIndex:ie,getHiddenInputProps:function(){var n,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i={onChange:pe(o||{}),onFocus:ue(o||{}),onBlur:de(o||{})},s=(0,r.Z)({},o,i);return(0,r.Z)({tabIndex:O,"aria-labelledby":t,"aria-orientation":w,"aria-valuemax":S(h),"aria-valuemin":S(v),name:g,type:"range",min:e.min,max:e.max,step:null!=(n=e.step)?n:void 0,disabled:a},s,{style:(0,r.Z)({},zs.Z,{direction:u?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={onMouseDown:xe(e||{})},n=(0,r.Z)({},e,t);return(0,r.Z)({ref:ce},n)},getThumbProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={onMouseOver:je(e||{}),onMouseLeave:Se(e||{})};return(0,r.Z)({},e,t)},marks:J,open:F,range:Y,rootRef:ce,trackLeap:Ce,trackOffset:we,values:K}}var nl=function(e){return!e||!(0,Is.Z)(e)};function rl(e){return(0,F.Z)("MuiSlider",e)}var ol=(0,R.Z)("MuiSlider",["root","active","colorPrimary","colorSecondary","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);var il=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function al(e){return e}var sl,ll=(0,P.ZP)("span",{name:"MuiSlider",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["color".concat((0,Zn.Z)(n.color))],"medium"!==n.size&&t["size".concat((0,Zn.Z)(n.size))],n.marked&&t.marked,"vertical"===n.orientation&&t.vertical,"inverted"===n.track&&t.trackInverted,!1===n.track&&t.trackFalse]}})((function(e){var n,o=e.theme,i=e.ownerState;return(0,r.Z)({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(o.vars||o).palette[i.color].main,WebkitTapHighlightColor:"transparent"},"horizontal"===i.orientation&&(0,r.Z)({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},"small"===i.size&&{height:2},i.marked&&{marginBottom:20}),"vertical"===i.orientation&&(0,r.Z)({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},"small"===i.size&&{width:2},i.marked&&{marginRight:44}),(n={"@media print":{colorAdjust:"exact"}},(0,t.Z)(n,"&.".concat(ol.disabled),{pointerEvents:"none",cursor:"default",color:(o.vars||o).palette.grey[400]}),(0,t.Z)(n,"&.".concat(ol.dragging),(0,t.Z)({},"& .".concat(ol.thumb,", & .").concat(ol.track),{transition:"none"})),n))})),cl=(0,P.ZP)("span",{name:"MuiSlider",slot:"Rail",overridesResolver:function(e,t){return t.rail}})((function(e){var t=e.ownerState;return(0,r.Z)({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},"horizontal"===t.orientation&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===t.orientation&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},"inverted"===t.track&&{opacity:1})})),ul=(0,P.ZP)("span",{name:"MuiSlider",slot:"Track",overridesResolver:function(e,t){return t.track}})((function(e){var t=e.theme,n=e.ownerState,o="light"===t.palette.mode?(0,A.$n)(t.palette[n.color].main,.62):(0,A._j)(t.palette[n.color].main,.5);return(0,r.Z)({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:t.transitions.create(["left","width","bottom","height"],{duration:t.transitions.duration.shortest})},"small"===n.size&&{border:"none"},"horizontal"===n.orientation&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===n.orientation&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},!1===n.track&&{display:"none"},"inverted"===n.track&&{backgroundColor:t.vars?t.vars.palette.Slider["".concat(n.color,"Track")]:o,borderColor:t.vars?t.vars.palette.Slider["".concat(n.color,"Track")]:o})})),dl=(0,P.ZP)("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:function(e,t){var n=e.ownerState;return[t.thumb,t["thumbColor".concat((0,Zn.Z)(n.color))],"medium"!==n.size&&t["thumbSize".concat((0,Zn.Z)(n.size))]]}})((function(e){var n,o=e.theme,i=e.ownerState;return(0,r.Z)({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:o.transitions.create(["box-shadow","left","bottom"],{duration:o.transitions.duration.shortest})},"small"===i.size&&{width:12,height:12},"horizontal"===i.orientation&&{top:"50%",transform:"translate(-50%, -50%)"},"vertical"===i.orientation&&{left:"50%",transform:"translate(-50%, 50%)"},(n={"&:before":(0,r.Z)({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(o.vars||o).shadows[2]},"small"===i.size&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"}},(0,t.Z)(n,"&:hover, &.".concat(ol.focusVisible),{boxShadow:"0px 0px 0px 8px ".concat(o.vars?"rgba(".concat(o.vars.palette[i.color].mainChannel," / 0.16)"):(0,A.Fq)(o.palette[i.color].main,.16)),"@media (hover: none)":{boxShadow:"none"}}),(0,t.Z)(n,"&.".concat(ol.active),{boxShadow:"0px 0px 0px 14px ".concat(o.vars?"rgba(".concat(o.vars.palette[i.color].mainChannel," / 0.16)"):(0,A.Fq)(o.palette[i.color].main,.16))}),(0,t.Z)(n,"&.".concat(ol.disabled),{"&:hover":{boxShadow:"none"}}),n))})),pl=(0,P.ZP)((function(e){var t=e.children,n=e.className,r=e.value,i=function(e){var t=e.open;return{offset:(0,y.default)(t&&ol.valueLabelOpen),circle:ol.valueLabelCircle,label:ol.valueLabelLabel}}(e);return t?o.cloneElement(t,{className:(0,y.default)(t.props.className)},(0,u.jsxs)(o.Fragment,{children:[t.props.children,(0,u.jsx)("span",{className:(0,y.default)(i.offset,n),"aria-hidden":!0,children:(0,u.jsx)("span",{className:i.circle,children:(0,u.jsx)("span",{className:i.label,children:r})})})]})):null}),{name:"MuiSlider",slot:"ValueLabel",overridesResolver:function(e,t){return t.valueLabel}})((function(e){var n,o=e.theme,i=e.ownerState;return(0,r.Z)((n={},(0,t.Z)(n,"&.".concat(ol.valueLabelOpen),{transform:"".concat("vertical"===i.orientation?"translateY(-50%)":"translateY(-100%)"," scale(1)")}),(0,t.Z)(n,"zIndex",1),(0,t.Z)(n,"whiteSpace","nowrap"),n),o.typography.body2,{fontWeight:500,transition:o.transitions.create(["transform"],{duration:o.transitions.duration.shortest}),transform:"".concat("vertical"===i.orientation?"translateY(-50%)":"translateY(-100%)"," scale(0)"),position:"absolute",backgroundColor:(o.vars||o).palette.grey[600],borderRadius:2,color:(o.vars||o).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},"horizontal"===i.orientation&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},"vertical"===i.orientation&&{right:"small"===i.size?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},"small"===i.size&&{fontSize:o.typography.pxToRem(12),padding:"0.25rem 0.5rem"})})),fl=(0,P.ZP)("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:function(e){return(0,P.Dz)(e)&&"markActive"!==e},overridesResolver:function(e,t){var n=e.markActive;return[t.mark,n&&t.markActive]}})((function(e){var t=e.theme,n=e.ownerState,o=e.markActive;return(0,r.Z)({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},"horizontal"===n.orientation&&{top:"50%",transform:"translate(-1px, -50%)"},"vertical"===n.orientation&&{left:"50%",transform:"translate(-50%, 1px)"},o&&{backgroundColor:(t.vars||t).palette.background.paper,opacity:.8})})),hl=(0,P.ZP)("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:function(e){return(0,P.Dz)(e)&&"markLabelActive"!==e},overridesResolver:function(e,t){return t.markLabel}})((function(e){var t=e.theme,n=e.ownerState,o=e.markLabelActive;return(0,r.Z)({},t.typography.body2,{color:(t.vars||t).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},"horizontal"===n.orientation&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},"vertical"===n.orientation&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},o&&{color:(t.vars||t).palette.text.primary})})),ml=function(e){return e.children},vl=o.forwardRef((function(e,t){var n,i,a,s,l,c,d,p,f,h,m,v,g,x,w,C,S,k,Z,O,E,D,P,A,I=(0,T.Z)({props:e,name:"MuiSlider"}),R="rtl"===(0,j.Z)().direction,F=I["aria-label"],B=I["aria-valuetext"],L=I["aria-labelledby"],N=I.component,_=void 0===N?"span":N,z=I.components,H=void 0===z?{}:z,W=I.componentsProps,V=void 0===W?{}:W,U=I.color,q=void 0===U?"primary":U,G=I.classes,Y=I.className,K=I.disableSwap,J=void 0!==K&&K,X=I.disabled,Q=void 0!==X&&X,$=I.getAriaLabel,ee=I.getAriaValueText,te=I.marks,ne=void 0!==te&&te,re=I.max,oe=void 0===re?100:re,ie=I.min,ae=void 0===ie?0:ie,se=I.orientation,le=void 0===se?"horizontal":se,ce=I.size,ue=void 0===ce?"medium":ce,de=I.step,pe=void 0===de?1:de,fe=I.scale,he=void 0===fe?al:fe,me=I.slotProps,ve=I.slots,ge=I.track,ye=void 0===ge?"normal":ge,be=I.valueLabelDisplay,xe=void 0===be?"off":be,we=I.valueLabelFormat,Ce=void 0===we?al:we,je=(0,b.Z)(I,il),Se=(0,r.Z)({},I,{isRtl:R,max:oe,min:ae,classes:G,disabled:Q,disableSwap:J,orientation:le,marks:ne,color:q,size:ue,step:pe,scale:he,track:ye,valueLabelDisplay:xe,valueLabelFormat:Ce}),ke=tl((0,r.Z)({},Se,{rootRef:t})),Ze=ke.axisProps,Oe=ke.getRootProps,Ee=ke.getHiddenInputProps,De=ke.getThumbProps,Pe=ke.open,Ae=ke.active,Me=ke.axis,Te=ke.focusedThumbIndex,Ie=ke.range,Re=ke.dragging,Fe=ke.marks,Be=ke.values,Le=ke.trackOffset,Ne=ke.trackLeap;Se.marked=Fe.length>0&&Fe.some((function(e){return e.label})),Se.dragging=Re,Se.focusedThumbIndex=Te;var _e=function(e){var t=e.disabled,n=e.dragging,r=e.marked,o=e.orientation,i=e.track,a=e.classes,s=e.color,l=e.size,c={root:["root",t&&"disabled",n&&"dragging",r&&"marked","vertical"===o&&"vertical","inverted"===i&&"trackInverted",!1===i&&"trackFalse",s&&"color".concat((0,Zn.Z)(s)),l&&"size".concat((0,Zn.Z)(l))],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&"thumbSize".concat((0,Zn.Z)(l)),s&&"thumbColor".concat((0,Zn.Z)(s))],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return(0,M.Z)(c,rl,a)}(Se),ze=null!=(n=null!=(i=null==ve?void 0:ve.root)?i:H.Root)?n:ll,He=null!=(a=null!=(s=null==ve?void 0:ve.rail)?s:H.Rail)?a:cl,We=null!=(l=null!=(c=null==ve?void 0:ve.track)?c:H.Track)?l:ul,Ve=null!=(d=null!=(p=null==ve?void 0:ve.thumb)?p:H.Thumb)?d:dl,Ue=null!=(f=null!=(h=null==ve?void 0:ve.valueLabel)?h:H.ValueLabel)?f:pl,qe=null!=(m=null!=(v=null==ve?void 0:ve.mark)?v:H.Mark)?m:fl,Ge=null!=(g=null!=(x=null==ve?void 0:ve.markLabel)?x:H.MarkLabel)?g:hl,Ye=null!=(w=null!=(C=null==ve?void 0:ve.input)?C:H.Input)?w:"input",Ke=null!=(S=null==me?void 0:me.root)?S:V.root,Je=null!=(k=null==me?void 0:me.rail)?k:V.rail,Xe=null!=(Z=null==me?void 0:me.track)?Z:V.track,Qe=null!=(O=null==me?void 0:me.thumb)?O:V.thumb,$e=null!=(E=null==me?void 0:me.valueLabel)?E:V.valueLabel,et=null!=(D=null==me?void 0:me.mark)?D:V.mark,tt=null!=(P=null==me?void 0:me.markLabel)?P:V.markLabel,nt=null!=(A=null==me?void 0:me.input)?A:V.input,rt=(0,Ts.Z)({elementType:ze,getSlotProps:Oe,externalSlotProps:Ke,externalForwardedProps:je,additionalProps:(0,r.Z)({},nl(ze)&&{as:_}),ownerState:(0,r.Z)({},Se,null==Ke?void 0:Ke.ownerState),className:[_e.root,Y]}),ot=(0,Ts.Z)({elementType:He,externalSlotProps:Je,ownerState:Se,className:_e.rail}),it=(0,Ts.Z)({elementType:We,externalSlotProps:Xe,additionalProps:{style:(0,r.Z)({},Ze[Me].offset(Le),Ze[Me].leap(Ne))},ownerState:(0,r.Z)({},Se,null==Xe?void 0:Xe.ownerState),className:_e.track}),at=(0,Ts.Z)({elementType:Ve,getSlotProps:De,externalSlotProps:Qe,ownerState:(0,r.Z)({},Se,null==Qe?void 0:Qe.ownerState),className:_e.thumb}),st=(0,Ts.Z)({elementType:Ue,externalSlotProps:$e,ownerState:(0,r.Z)({},Se,null==$e?void 0:$e.ownerState),className:_e.valueLabel}),lt=(0,Ts.Z)({elementType:qe,externalSlotProps:et,ownerState:Se,className:_e.mark}),ct=(0,Ts.Z)({elementType:Ge,externalSlotProps:tt,ownerState:Se,className:_e.markLabel}),ut=(0,Ts.Z)({elementType:Ye,getSlotProps:Ee,externalSlotProps:nt,ownerState:Se});return(0,u.jsxs)(ze,(0,r.Z)({},rt,{children:[(0,u.jsx)(He,(0,r.Z)({},ot)),(0,u.jsx)(We,(0,r.Z)({},it)),Fe.filter((function(e){return e.value>=ae&&e.value<=oe})).map((function(e,t){var n,i=qs(e.value,ae,oe),a=Ze[Me].offset(i);return n=!1===ye?-1!==Be.indexOf(e.value):"normal"===ye&&(Ie?e.value>=Be[0]&&e.value<=Be[Be.length-1]:e.value<=Be[0])||"inverted"===ye&&(Ie?e.value<=Be[0]||e.value>=Be[Be.length-1]:e.value>=Be[0]),(0,u.jsxs)(o.Fragment,{children:[(0,u.jsx)(qe,(0,r.Z)({"data-index":t},lt,!(0,Is.Z)(qe)&&{markActive:n},{style:(0,r.Z)({},a,lt.style),className:(0,y.default)(lt.className,n&&_e.markActive)})),null!=e.label?(0,u.jsx)(Ge,(0,r.Z)({"aria-hidden":!0,"data-index":t},ct,!(0,Is.Z)(Ge)&&{markLabelActive:n},{style:(0,r.Z)({},a,ct.style),className:(0,y.default)(_e.markLabel,ct.className,n&&_e.markLabelActive),children:e.label})):null]},t)})),Be.map((function(e,t){var n=qs(e,ae,oe),o=Ze[Me].offset(n),i="off"===xe?ml:Ue;return(0,u.jsx)(i,(0,r.Z)({},!(0,Is.Z)(i)&&{valueLabelFormat:Ce,valueLabelDisplay:xe,value:"function"===typeof Ce?Ce(he(e),t):Ce,index:t,open:Pe===t||Ae===t||"on"===xe,disabled:Q},st,{children:(0,u.jsx)(Ve,(0,r.Z)({"data-index":t},at,{className:(0,y.default)(_e.thumb,at.className,Ae===t&&_e.active,Te===t&&_e.focusVisible),style:(0,r.Z)({},o,{pointerEvents:J&&Ae!==t?"none":void 0},at.style),children:(0,u.jsx)(Ye,(0,r.Z)({"data-index":t,"aria-label":$?$(t):F,"aria-valuenow":he(e),"aria-labelledby":L,"aria-valuetext":ee?ee(he(e),t):B,value:Be[t]},ut))}))}),t)}))]}))})),gl=vl,yl=n(56999),bl=n.n(yl),xl=n(87625),wl=(0,o.forwardRef)((function(e){var t=e.avatar,n=e.image,r=e.cropRef,i=e.withOpenFileExplorerButton,a=void 0!==i&&i,s=(0,o.useRef)(null),l=(0,o.useState)(11),c=(0,Le.Z)(l,2),d=c[0],p=c[1],f=(0,o.useState)(null),h=(0,Le.Z)(f,2),m=h[0],v=h[1];return(0,u.jsxs)(ms,{alignItems:"center",spacing:2,children:[(0,u.jsx)(ms,{alignItems:"center",bgcolor:"primaryDark.800",width:"100%",children:(0,u.jsx)(bl(),{ref:r,image:a?m||t:n||t,style:{borderRadius:"50%",border:"2px solid #FFF",cursor:"move",background:"url(".concat(xl,") lightgray 0px 0px / 100% 108% no-repeat")},width:150,height:150,crossOrigin:"anonymous",border:0,borderRadius:100,color:[38,47,70,1],scale:d/10})}),(0,u.jsxs)(ms,{alignItems:"center",direction:"row",spacing:3,width:"100%",children:[(0,u.jsx)(rn.Z,{variant:"body2",children:"Size"}),(0,u.jsx)(gl,{min:10,max:40,defaultValue:d,value:d,onChange:function(e){var t;return p(null===(t=e.target)||void 0===t?void 0:t.value)},sx:{color:"primaryLight.500",width:"100%",height:"5px",".MuiSlider-thumb":{border:"5px solid ".concat(tr.dx[100]),boxShadow:"6px 6px 15px rgba(".concat(tr.IV[500],", 0.1)")},".MuiSlider-rail":{backgroundColor:"primaryDark.300"}}})]}),a&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Wo,{onClick:function(){var e;return null===s||void 0===s||null===(e=s.current)||void 0===e?void 0:e.click()},type:"button",variant:"secondary",sx:{alignSelf:"end"},children:"Change photo"}),(0,u.jsx)("input",{ref:s,type:"file",hidden:!0,onChange:function(e){var t;v(null===(t=e.target.files)||void 0===t?void 0:t[0])}})]})]})})),Cl=wl,jl=function(e){var t,n=e.open,r=e.setOpen,i=e.userDropdown,a=void 0!==i&&i,s=(0,o.useState)(null),l=(0,Le.Z)(s,2),c=l[0],d=l[1],p=(0,Ms.J)(),f=Pa(),h=Ra({resource:a?"users":"companies",id:null===f||void 0===f||null===(t=f.membership)||void 0===t?void 0:t.company,enabled:!!f}).data,m=(0,As.Z)({resource:a?"/users":"/companies"}),v=m.mutate,g=m.isLoading,y=(0,o.useRef)(null),b=function(){var e=ds(hs().mark((function e(){var t,n;return hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:y&&(n=null===y||void 0===y||null===(t=y.current)||void 0===t?void 0:t.getImage().toDataURL(),v({data:{avatar:n},id:null===h||void 0===h?void 0:h.id},{onSuccess:function(){p(),r(!1),d(null)}}));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,u.jsx)(ys,{open:n,onClose:function(){return r(!1)},width:"50%",children:(0,u.jsxs)(ms,{spacing:2,children:[(0,u.jsxs)(ms,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,u.jsxs)(ms,{direction:"row",alignItems:"center",children:[(0,u.jsx)(ms,{width:40,height:40,mr:2,bgcolor:"secondaryBlue.100",borderRadius:1,justifyContent:"center",alignItems:"center",children:(0,u.jsx)(ks,{width:"18px",fill:tr.dx[700],height:"18px"})}),a?(0,u.jsx)(rn.Z,{variant:"heading5",children:"Edit profile photo"}):(0,u.jsx)(rn.Z,{variant:"heading5",children:"Edit company logo"})]}),(0,u.jsx)(io.Z,{sx:{p:0},disableRipple:!0,onClick:function(){return r(!1)},children:(0,u.jsx)(Ps,{width:"18px",fill:tr.dx[700],height:"18px"})})]}),(0,u.jsx)(un,{}),(0,u.jsx)(Cl,{cropRef:y,image:c,avatar:null===h||void 0===h?void 0:h.avatar}),(0,u.jsx)(un,{}),(0,u.jsxs)(ms,{direction:"row",sx:{justifyContent:"right"},spacing:2,children:[(0,u.jsx)(Wo,{type:"button",variant:"secondary",children:a?(0,u.jsxs)("label",{children:["Change photo",(0,u.jsx)("input",{type:"file",hidden:!0,onChange:function(e){var t;d(null===(t=e.target.files)||void 0===t?void 0:t[0])}})]}):(0,u.jsxs)("label",{children:["Change Logo",(0,u.jsx)("input",{type:"file",hidden:!0,onChange:function(e){var t;d(null===(t=e.target.files)||void 0===t?void 0:t[0])}})]})}),(0,u.jsx)(Wo,{onClick:b,type:"button",loading:g,children:"Apply"})]})]})})},Sl=function(){var e,t,n,r,i,a,s,l,c=(0,ze.s0)(),d=Pa(),p=null===d||void 0===d?void 0:d.membership,f=null===d||void 0===d||null===(e=d.membership)||void 0===e?void 0:e.company,h=null===d||void 0===d?void 0:d.id,m=(0,o.useState)(null),v=(0,Le.Z)(m,2),g=v[0],y=v[1],b=Boolean(g),x=(0,o.useState)(!1),w=(0,Le.Z)(x,2),C=w[0],j=w[1],S=function(){y(null)},k=function(e){c(e),y(null)},Z=Ra({resource:"companies",id:f,enabled:!!f,refetchOnWindowFocus:!1}).data,O=Ra({resource:"users",id:h,enabled:!!h,refetchOnWindowFocus:!1}).data,E="".concat(null!==(t=null===d||void 0===d?void 0:d.firstName)&&void 0!==t?t:""," ").concat(null!==(n=null===d||void 0===d?void 0:d.lastName)&&void 0!==n?n:"").trim();return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(nn.Z,{direction:"row",spacing:1,onClick:function(e){y(e.currentTarget)},sx:{cursor:"pointer"},children:[(0,u.jsx)(io.Z,{size:"large","aria-controls":b?"account-menu":void 0,"aria-haspopup":"true","aria-expanded":b?"true":void 0,sx:{gap:1,p:0,boxShadow:b?"6px 6px 15px 0px #9747FF40":"none"},children:(0,u.jsx)(Ca,{src:null===O||void 0===O?void 0:O.avatar,alt:"Company logo",sx:{border:"1px solid #BFC6D7",height:"45px",width:"45px"}})}),(0,u.jsx)(da.Z,{component:"img",src:Da,width:"10px",sx:{transform:b?"rotate(180deg)":"rotate(0)",transition:"all 0.5s ease"}})]}),(0,u.jsxs)(Uo.Z,{anchorEl:g,disableScrollLock:!0,id:"account-menu",open:b,onClose:S,onClick:S,PaperProps:{elevation:0,sx:{mt:2,width:{md:"260px",lg:"20%",xl:"19%",xxl:"300px"},borderRadius:"8px",overflow:"visible",boxShadow:"6px 6px 15px 4px #3845721A",color:tr.IV[500],px:2}},transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},children:[(0,u.jsxs)(nn.Z,{pb:2,pt:1,gap:1,direction:"column",alignItems:"center",children:[(0,u.jsx)(Vo.Z,{overlap:"circular",anchorOrigin:{vertical:"bottom",horizontal:"right"},badgeContent:(0,u.jsx)(io.Z,{onClick:function(){return j(!0)},sx:{width:"25px",height:"25px",bgcolor:"primaryLight.50",borderRadius:"4px",padding:"2px","&:hover":{bgcolor:"primaryLight.100"}},children:(0,u.jsx)(cs,{fill:tr.E4[500]})}),children:(0,u.jsx)(Ca,{src:null===O||void 0===O?void 0:O.avatar,alt:"Company logo",sx:{border:"1px solid #BFC6D7",boxShadow:"6px 6px 15px 0px #9747FF40",height:"60px",width:"60px"}})}),(0,u.jsxs)(nn.Z,{mt:2,direction:"column",alignItems:"center",spacing:1,children:[Z&&(null===Z||void 0===Z?void 0:Z.name.length)>20?(0,u.jsx)(ns,{placement:"top",title:null!==(r=null===Z||void 0===Z?void 0:Z.name)&&void 0!==r?r:"",children:(0,u.jsx)(rn.Z,{variant:"body2",sx:{fontWeight:600,lineHeight:"21px",color:tr.IV[500],fontSize:"1.17rem"},children:(0,rs.$G)(null!==(i=null===Z||void 0===Z?void 0:Z.name)&&void 0!==i?i:"",20)})}):(0,u.jsxs)(rn.Z,{variant:"body2",sx:{fontWeight:600,lineHeight:"21px",color:tr.IV[500],fontSize:"1.17rem"},children:[" ",null===Z||void 0===Z?void 0:Z.name]}),Z&&E.length>20?(0,u.jsx)(ns,{placement:"top",title:E,children:(0,u.jsx)(rn.Z,{variant:"body2",sx:{fontWeight:400,lineHeight:"21px",color:tr.IV[500],paddingTop:"10px"},children:(0,rs.$G)(E,20)})}):(0,u.jsx)(rn.Z,{variant:"body2",sx:{fontWeight:400,lineHeight:"21px",color:tr.IV[500],paddingTop:"10px"},children:E}),d&&(null===d||void 0===d?void 0:d.email.length)>35?(0,u.jsx)(ns,{placement:"top",title:null!==(a=null===d||void 0===d?void 0:d.email)&&void 0!==a?a:"",children:(0,u.jsx)(rn.Z,{variant:"body2",sx:{fontWeight:400,lineHeight:"21px",color:tr.IV[500]},children:(0,rs.$G)(null!==(s=null===d||void 0===d?void 0:d.email)&&void 0!==s?s:"",35)})}):(0,u.jsx)(rn.Z,{variant:"body2",sx:{fontWeight:400,lineHeight:"21px",color:tr.IV[500]},children:null===d||void 0===d?void 0:d.email})]})]}),(0,u.jsx)(un,{sx:{borderColor:"#E5E8FF"}}),(0,u.jsxs)(nn.Z,{mt:2,mb:1,pl:2,pr:2,direction:"column",children:[(0,u.jsx)(Wo,{sx:{py:"4px",fontWeight:400,fontSize:"1rem"},variant:"secondaryText",startIcon:(0,u.jsx)(za,{}),onClick:function(){return k(null===p?"../dashboard/create-company":"../dashboard")},children:"Dashboard"}),(null===d||void 0===d||null===(l=d.roles)||void 0===l?void 0:l.includes(Kt.vX.Admin))&&(0,u.jsx)(Wo,{sx:{py:"4px",fontWeight:400,fontSize:"1rem"},variant:"secondaryText",startIcon:(0,u.jsx)(Ga,{}),onClick:function(){return k("../admin/end-to-end/projects")},children:"Admin dashboard"}),(0,u.jsx)(Wo,{sx:{py:"4px",fontWeight:400,fontSize:"1rem"},variant:"secondaryText",startIcon:(0,u.jsx)($a,{}),onClick:function(){localStorage.removeItem("AccessToken"),localStorage.removeItem("userData"),c("../"),y(null)},children:"Log out"})]})]}),(0,u.jsx)(jl,{userDropdown:!0,open:C,setOpen:j})]})},kl=["title","titleId"];function Zl(){return Zl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zl.apply(this,arguments)}function Ol(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function El(e,t){var n=e.title,r=e.titleId,i=Ol(e,kl);return o.createElement("svg",Zl({width:16,height:17,viewBox:"0 0 16 17",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,sl||(sl=o.createElement("path",{d:"M4.67167 0.678467C4.21142 0.678467 3.83834 1.0518 3.83834 1.5118C1.99742 1.5118 0.504922 3.0043 0.505005 4.84513V5.73014L15.505 5.67847V4.84513C15.505 3.0043 14.0126 1.5118 12.1717 1.5118C12.1717 1.0518 11.7986 0.678467 11.3383 0.678467C10.8781 0.678467 10.505 1.0518 10.505 1.5118H5.505C5.505 1.0518 5.13192 0.678467 4.67167 0.678467ZM0.505005 7.34513V13.1785C0.505005 15.0193 1.99742 16.5118 3.83834 16.5118H12.1717C14.0126 16.5118 15.5051 15.0193 15.505 13.1785V7.34513H0.505005ZM4.67167 9.0118C5.13192 9.0118 5.505 9.38513 5.505 9.84513C5.505 10.3051 5.13192 10.6785 4.67167 10.6785C4.21142 10.6785 3.83834 10.3051 3.83834 9.84513C3.83834 9.38513 4.21142 9.0118 4.67167 9.0118ZM8.005 9.0118C8.46525 9.0118 8.83834 9.38513 8.83834 9.84513C8.83834 10.3051 8.46525 10.6785 8.005 10.6785C7.54475 10.6785 7.17167 10.3051 7.17167 9.84513C7.17167 9.38513 7.54475 9.0118 8.005 9.0118ZM11.3383 9.0118C11.7986 9.0118 12.1717 9.38513 12.1717 9.84513C12.1717 10.3051 11.7986 10.6785 11.3383 10.6785C10.8781 10.6785 10.505 10.3051 10.505 9.84513C10.505 9.38513 10.8781 9.0118 11.3383 9.0118ZM4.67167 11.5118C5.13192 11.5118 5.505 11.8851 5.505 12.3451C5.505 12.8051 5.13192 13.1785 4.67167 13.1785C4.21142 13.1785 3.83834 12.8051 3.83834 12.3451C3.83834 11.8851 4.21142 11.5118 4.67167 11.5118ZM8.005 11.5118C8.46525 11.5118 8.83834 11.8851 8.83834 12.3451C8.83834 12.8051 8.46525 13.1785 8.005 13.1785C7.54475 13.1785 7.17167 12.8051 7.17167 12.3451C7.17167 11.8851 7.54475 11.5118 8.005 11.5118ZM11.3383 11.5118C11.7986 11.5118 12.1717 11.8851 12.1717 12.3451C12.1717 12.8051 11.7986 13.1785 11.3383 13.1785C10.8781 13.1785 10.505 12.8051 10.505 12.3451C10.505 11.8851 10.8781 11.5118 11.3383 11.5118Z",fill:"current"})))}var Dl,Pl=o.forwardRef(El),Al=(n.p,["title","titleId"]);function Ml(){return Ml=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ml.apply(this,arguments)}function Tl(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Il(e,t){var n=e.title,r=e.titleId,i=Tl(e,Al);return o.createElement("svg",Ml({width:18,height:18,viewBox:"0 0 18 18",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,Dl||(Dl=o.createElement("path",{d:"M9.01178 0.665771C4.40927 0.665771 0.678436 4.39661 0.678436 8.99911C0.678436 9.92578 0.905936 10.8416 1.19927 11.7074L0.912608 12.9574C0.210108 15.7674 2.18427 17.8024 5.00178 17.0983L6.22511 16.8116C7.12011 17.1241 8.08261 17.3324 9.01178 17.3324C13.6143 17.3324 17.3451 13.6016 17.3451 8.99911C17.3451 4.39661 13.6143 0.665771 9.01178 0.665771ZM5.67844 8.16578C6.13844 8.16578 6.51177 8.53911 6.51177 8.99911C6.51177 9.45911 6.13844 9.83244 5.67844 9.83244C5.21844 9.83244 4.84511 9.45911 4.84511 8.99911C4.84511 8.53911 5.21844 8.16578 5.67844 8.16578ZM9.01178 8.16578C9.47178 8.16578 9.84511 8.53911 9.84511 8.99911C9.84511 9.45911 9.47178 9.83244 9.01178 9.83244C8.55177 9.83244 8.17844 9.45911 8.17844 8.99911C8.17844 8.53911 8.55177 8.16578 9.01178 8.16578ZM12.3451 8.16578C12.8051 8.16578 13.1784 8.53911 13.1784 8.99911C13.1784 9.45911 12.8051 9.83244 12.3451 9.83244C11.8851 9.83244 11.5118 9.45911 11.5118 8.99911C11.5118 8.53911 11.8851 8.16578 12.3451 8.16578Z",fill:"current"})))}var Rl=o.forwardRef(Il),Fl=(n.p,function(){var e,t,n=(0,ze.s0)(),r=(0,ze.TH)(),o=Pa(),i=Ra({resource:"companies",id:null===o||void 0===o||null===(e=o.membership)||void 0===e?void 0:e.company,enabled:!(null===o||void 0===o||null===(t=o.membership)||void 0===t||!t.company)||!1}).data,a=r.pathname;return(0,u.jsxs)(nn.Z,{spacing:"15px",direction:"row",sx:{pr:a.includes("dashboard")?"24px":0},children:["approved"===(null===i||void 0===i?void 0:i.status)&&(0,u.jsx)(io.Z,{className:"react-joyride-step-2",size:"large",sx:{border:"1px solid #BFC6D7"},onClick:function(){return n("/dashboard/chat")},children:(0,u.jsx)(Rl,{fill:"#79829B"})}),"approved"===(null===i||void 0===i?void 0:i.status)&&(0,u.jsx)(io.Z,{className:"react-joyride-step-3",size:"large",sx:{border:"1px solid #BFC6D7"},onClick:function(){return n("/dashboard/calendar")},children:(0,u.jsx)(Pl,{fill:"#79829B"})}),"approved"===(null===i||void 0===i?void 0:i.status)&&(0,u.jsx)(ca,{}),(0,u.jsx)(Sl,{})]})}),Bl=n(47148),Ll=n(98087),Nl=n(55488),_l=n(3602),zl=n(56943),Hl=function(e){var t=e.pages,n=(0,o.useState)({}),r=(0,Le.Z)(n,2),i=r[0],a=r[1],s=(0,o.useState)(null),c=(0,Le.Z)(s,2),d=c[0],p=c[1],f=(0,ze.s0)(),h=function(e){var t=(0,l.Z)({},i);t[e]=!1,a(t)};return(0,u.jsx)(u.Fragment,{children:t.map((function(e){var t,n;return"dropdown"===e.type?(0,u.jsxs)(tn,{children:[(0,u.jsx)(ko.Z,{onClick:function(t){return function(e,t){var n=(0,l.Z)({},i);n[t]=!n[t],a(n),p(null===e||void 0===e?void 0:e.currentTarget)}(t,e.id)},endIcon:i[e.id]?(0,u.jsx)(_l.Z,{}):(0,u.jsx)(zl.Z,{}),sx:{ml:2},children:(0,u.jsx)(rn.Z,{variant:"bodyMedium1",color:"common.black",children:e.title})}),(0,u.jsx)(Bl.Z,{open:null!==(t=i[e.id])&&void 0!==t&&t,anchorEl:d||null,placement:"bottom-start",disablePortal:!0,children:(0,u.jsx)(U.Z,{onClickAway:function(){return h(e.id)},children:(0,u.jsx)(Ll.Z,{sx:{background:"white",borderRadius:"8px",boxShadow:"1px 10px 30px rgba(56, 69, 114, 0.2)",p:0,minWidth:"145px"},id:e.id,children:null===(n=e.links)||void 0===n?void 0:n.filter((function(e){return"link"===e.type})).map((function(t){return t.to?(0,u.jsx)(Xn,{underline:"none",onClick:function(){return f(t.to)},color:"inherit",children:(0,u.jsx)(Nl.Z,{onClick:function(){return h(e.id)},sx:{py:1.5,pr:8},children:(0,u.jsx)(rn.Z,{variant:"bodyMedium2",color:"primaryDark.500",children:t.title})})},t.id):(0,u.jsx)(u.Fragment,{})}))})})})]},e.id):(0,u.jsx)(tn,{children:(0,u.jsx)(ko.Z,{sx:{ml:2},children:(0,u.jsx)(Xn,{underline:"none",onClick:function(){return f(e.to)},color:"inherit",children:(0,u.jsx)(rn.Z,{variant:"bodyMedium1",color:"common.black",children:e.title})})})},e.id)}))})},Wl=[{type:"link",id:"100",title:"Manage your project",to:"/how-to-manage-buyer"},{type:"dropdown",id:"200",title:"Marketplace",links:[{type:"subtitle",id:"201",title:"For Buyers",to:""},{type:"link",id:"202",title:"Hire a seller",to:"/how-to-hire"},{type:"subtitle",id:"203",title:"For Sellers",to:""},{type:"link",id:"204",title:"Find work",to:"/how-to-find-work"},{type:"link",id:"205",title:"Seller archive",to:"/seller-archive"},{type:"link",id:"206",title:"Case study archive",to:"/case-study-archive"}]},{type:"dropdown",id:"500",title:"About Spona",links:[{type:"link",id:"503",title:"About us",to:"/about-us"},{type:"link",id:"501",title:"Spona Media",to:"/spona-media"},{type:"link",id:"502",title:"Work with us",to:"/work-with-us"}]},{type:"dropdown",id:"600",title:"News & Updates",links:[{type:"link",id:"601",title:"Blogs",to:"/blog-archive"}]}];function Vl(e){return(0,F.Z)("MuiDrawer",e)}(0,R.Z)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);var Ul=["BackdropProps"],ql=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],Gl=function(e,t){var n=e.ownerState;return[t.root,("permanent"===n.variant||"persistent"===n.variant)&&t.docked,t.modal]},Yl=(0,P.ZP)(vs.Z,{name:"MuiDrawer",slot:"Root",overridesResolver:Gl})((function(e){var t=e.theme;return{zIndex:(t.vars||t).zIndex.drawer}})),Kl=(0,P.ZP)("div",{shouldForwardProp:P.FO,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Gl})({flex:"0 0 auto"}),Jl=(0,P.ZP)(ao.Z,{name:"MuiDrawer",slot:"Paper",overridesResolver:function(e,t){var n=e.ownerState;return[t.paper,t["paperAnchor".concat((0,Zn.Z)(n.anchor))],"temporary"!==n.variant&&t["paperAnchorDocked".concat((0,Zn.Z)(n.anchor))]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,r.Z)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(t.vars||t).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===n.anchor&&{left:0},"top"===n.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===n.anchor&&{right:0},"bottom"===n.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===n.anchor&&"temporary"!==n.variant&&{borderRight:"1px solid ".concat((t.vars||t).palette.divider)},"top"===n.anchor&&"temporary"!==n.variant&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider)},"right"===n.anchor&&"temporary"!==n.variant&&{borderLeft:"1px solid ".concat((t.vars||t).palette.divider)},"bottom"===n.anchor&&"temporary"!==n.variant&&{borderTop:"1px solid ".concat((t.vars||t).palette.divider)})})),Xl={left:"right",right:"left",top:"down",bottom:"up"};var Ql,$l=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiDrawer"}),i=(0,j.Z)(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},s=n.anchor,l=void 0===s?"left":s,c=n.BackdropProps,d=n.children,p=n.className,f=n.elevation,h=void 0===f?16:f,m=n.hideBackdrop,v=void 0!==m&&m,g=n.ModalProps,x=(g=void 0===g?{}:g).BackdropProps,w=n.onClose,C=n.open,S=void 0!==C&&C,k=n.PaperProps,Z=void 0===k?{}:k,O=n.SlideProps,E=n.TransitionComponent,P=void 0===E?D:E,A=n.transitionDuration,I=void 0===A?a:A,R=n.variant,F=void 0===R?"temporary":R,B=(0,b.Z)(n.ModalProps,Ul),L=(0,b.Z)(n,ql),N=o.useRef(!1);o.useEffect((function(){N.current=!0}),[]);var _=function(e,t){return"rtl"===e.direction&&function(e){return-1!==["left","right"].indexOf(e)}(t)?Xl[t]:t}(i,l),z=l,H=(0,r.Z)({},n,{anchor:z,elevation:h,open:S,variant:F},L),W=function(e){var t=e.classes,n=e.anchor,r=e.variant,o={root:["root"],docked:[("permanent"===r||"persistent"===r)&&"docked"],modal:["modal"],paper:["paper","paperAnchor".concat((0,Zn.Z)(n)),"temporary"!==r&&"paperAnchorDocked".concat((0,Zn.Z)(n))]};return(0,M.Z)(o,Vl,t)}(H),V=(0,u.jsx)(Jl,(0,r.Z)({elevation:"temporary"===F?h:0,square:!0},Z,{className:(0,y.default)(W.paper,Z.className),ownerState:H,children:d}));if("permanent"===F)return(0,u.jsx)(Kl,(0,r.Z)({className:(0,y.default)(W.root,W.docked,p),ownerState:H,ref:t},L,{children:V}));var U=(0,u.jsx)(P,(0,r.Z)({in:S,direction:Xl[_],timeout:I,appear:N.current},O,{children:V}));return"persistent"===F?(0,u.jsx)(Kl,(0,r.Z)({className:(0,y.default)(W.root,W.docked,p),ownerState:H,ref:t},L,{children:U})):(0,u.jsx)(Yl,(0,r.Z)({BackdropProps:(0,r.Z)({},c,x,{transitionDuration:I}),className:(0,y.default)(W.root,W.modal,p),open:S,ownerState:H,onClose:w,hideBackdrop:v,ref:t},L,B,{children:U}))})),ec=$l,tc=300,nc=function(e){var n=e.isMobileMenuOpen,r=e.setIsMobileMenuOpen,i=e.pages,a=(0,ze.s0)(),s=(0,ze.TH)(),c=(0,o.useRef)(null),d=(0,o.useState)({}),p=(0,Le.Z)(d,2),f=p[0],h=p[1],m=function(e){return s.pathname===e},v=function(e,n){if(!f[n]){var o=(0,l.Z)({},f);o[n]=!o[n],h(o),setTimeout((function(){h((0,t.Z)({},n,!1)),a(e),r(!1)}),tc)}};return(0,o.useEffect)((function(){n&&null!==c.current&&(c.current.scrollIntoView(!1),console.log("scrolling",c.current))}),[n]),(0,u.jsx)(da.Z,{sx:{zIndex:1e6,position:"relative"},children:(0,u.jsx)(ec,{anchor:"bottom",variant:"persistent",open:n,onClose:function(){return r(!1)},sx:{".MuiPaper-root":{border:"none !important"}},children:(0,u.jsxs)(ms,{spacing:3,justifyContent:"start",alignItems:"start",sx:(0,l.Z)({height:"100vh",pt:"100px"},ar),children:[i.map((function(e,t){var n;return"dropdown"===e.type?(0,u.jsxs)(ms,{spacing:"6px",children:[(0,u.jsx)(rn.Z,{variant:"headline5",color:"primaryLight.500",children:e.title}),null===(n=e.links)||void 0===n?void 0:n.map((function(e){return"link"===e.type?(0,u.jsx)(da.Z,{sx:{pl:2},children:(0,u.jsx)(Xn,{underline:"none",onClick:function(){return v(e.to,e.id)},sx:{display:"inline-block",width:"fit-content","&.MuiLink-root:after":{display:"block",content:'""',borderBottom:"2px solid",borderColor:f[e.id]||m(e.to)?"black":"transparent",transformOrigin:"left",transform:f[e.id]||m(e.to)?"scaleX(1)":"scaleX(0)",transition:"transform ".concat(tc,"ms ease-in")}},children:(0,u.jsx)(Nl.Z,{disableRipple:!0,disableTouchRipple:!0,sx:{p:0,minHeight:"fit-content",width:"fit-content"},children:(0,u.jsx)(rn.Z,{variant:"publicHeadline10",fontSize:"1.25rem !important",fontFamily:"Gellix-Regular",fontWeight:600,lineHeight:"181%",children:e.title})})},e.id)}):(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryLight.500",sx:{textTransform:"none"},children:e.title})}))]}):(0,u.jsx)(da.Z,{sx:{pl:2},ref:0===t?c:null,children:(0,u.jsx)(Xn,{underline:"none",onClick:function(){return v(e.to,e.id)},sx:{display:"inline-block",width:"fit-content","&.MuiLink-root:after":{display:"block",content:'""',borderBottom:"2px solid",borderColor:f[e.id]||m(e.to)?"black":"transparent",transformOrigin:"left",transform:f[e.id]||m(e.to)?"scaleX(1)":"scaleX(0)",transition:"transform ".concat(tc,"ms ease-in")}},children:(0,u.jsx)(Nl.Z,{disableRipple:!0,disableTouchRipple:!0,sx:{p:0,minHeight:"fit-content",width:"fit-content"},children:(0,u.jsx)(rn.Z,{variant:"publicHeadline10",fontSize:"1.25rem !important",fontFamily:"Gellix-Regular",fontWeight:600,lineHeight:"181%",children:e.title})})},e.id)})})),(0,u.jsx)(un,{sx:{width:"100%",borderColor:"primaryLight.100"}}),(0,u.jsxs)(ms,{spacing:"6px",children:[(0,u.jsx)(Xn,{underline:"none",onClick:function(){return v("/login","-1")},sx:{pl:2,display:"inline-block",width:"fit-content","&.MuiLink-root:after":{display:"block",content:'""',borderBottom:"2px solid",borderColor:f[-1]||m("/login")?"black":"transparent",transformOrigin:"left",transform:f[-1]||m("/login")?"scaleX(1)":"scaleX(0)",transition:"transform ".concat(tc,"ms ease-in")}},children:(0,u.jsx)(rn.Z,{variant:"publicHeadline10",fontSize:"1.25rem !important",fontFamily:"Gellix-Regular",fontWeight:600,color:"common.black",lineHeight:"181%",children:"Log in"})},"login"),(0,u.jsx)(Xn,{underline:"none",onClick:function(){return v("/register","-2")},sx:{pl:2,display:"inline-block",width:"fit-content","&.MuiLink-root:after":{display:"block",content:'""',borderBottom:"2px solid",borderColor:f[-2]||m("/register")?"black":"transparent",transformOrigin:"left",transform:f[-2]||m("/register")?"scaleX(1)":"scaleX(0)",transition:"transform ".concat(tc,"ms ease-in")}},children:(0,u.jsx)(rn.Z,{variant:"publicHeadline10",fontSize:"1.25rem !important",fontFamily:"Gellix-Regular",fontWeight:600,color:"common.black",lineHeight:"181%",children:"Sign up"})},"register")]})]})})})},rc=77,oc={mx:(0,l.Z)((0,l.Z)({},ar.mx),{},{xxl:10})},ic=function(){return null!==localStorage.getItem("AccessToken")?(0,u.jsx)(Fl,{}):(0,u.jsxs)(nn.Z,{direction:"row",spacing:2,children:[(0,u.jsx)(Wo,{variant:"secondary",href:"/login",children:"Log in"}),(0,u.jsx)(Wo,{href:"/register",children:"Sign up"})]})},ac=function(){var e,t=Bn(ir.breakpoints.up("lg")),n=(0,o.useState)(!1),r=(0,Le.Z)(n,2),i=r[0],a=r[1];return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(nn.Z,{children:(0,u.jsx)(mo,{color:"inherit",sx:{display:"flex",justifyContent:"center",width:"100%",height:rc,position:"fixed",boxShadow:"1px 10px 30px 0px rgba(56, 69, 114, 0.10)",zIndex:1000001},children:(0,u.jsx)(vo.Z,{disableGutters:!0,sx:(0,l.Z)({py:{xs:1,sm:2,lg:2}},oc),children:(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",width:"100%",children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",justifyContent:{xs:"space-between",lg:"start"},width:"100%",children:[(0,u.jsx)($n,{to:"/",onClick:function(){return a(!1)},children:(0,u.jsx)(tn,{src:jo,sx:{mr:{xs:0,lg:5}},component:"img"})}),t&&(0,u.jsx)(Hl,{pages:Wl}),!t&&(0,u.jsx)(io.Z,{sx:{p:0},onClick:function(){return a(!i)},children:(e=i,e?(0,u.jsx)(tn,{component:"img",src:Co}):(0,u.jsx)(wo,{fill:tr.IV[700]}))})]}),t&&(0,u.jsx)(ic,{})]})})})}),!t&&(0,u.jsx)(nc,{isMobileMenuOpen:i,setIsMobileMenuOpen:a,pages:Wl})]})},sc=function(){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(ac,{}),(0,u.jsx)(ze.j3,{}),(0,u.jsx)(oo,{columns:[{id:1,title:"About",links:[{id:"1.1",title:"About us",link:"about-us"},{id:"1.2",title:"Work with us",link:"work-with-us"},{id:"1.3",title:"Spona Media",link:"spona-media"},{id:"1.4",title:"Contact us ",link:"/contact-us"}]},{id:2,title:"Buyers",links:[{id:"2.1",title:"Hire",link:"how-to-hire"},{id:"2.2",title:"Manage",link:"how-to-manage-buyer"},{id:"2.3",title:"Pricing",link:"how-to-manage-buyer/pricing"}]},{id:3,title:"Sellers",links:[{id:"3.1",title:"Find work",link:"how-to-find-work"},{id:"3.2",title:"Manage",link:"how-to-manage-seller"},{id:"3.3",title:"Pricing",link:"how-to-manage-seller/pricing"}]},{id:4,title:"Help & Support",links:[{id:"4.1",title:"Terms & Conditions",link:"terms-of-service"},{id:"4.2",title:"Blogs",link:"blog-archive"}]}]})]})},lc=function(){var e=(0,o.useState)(1),t=(0,Le.Z)(e,2)[1],n=(0,ze.TH)(),r=["/add-new","/published","/pending"];return(0,o.useEffect)((function(){var e=window.location.pathname.split("/").pop(),n=r.findIndex((function(t){return t.split("/").pop()===e}));t(n)}),[n]),(0,u.jsx)(tn,{sx:{width:"100%"},children:(0,u.jsx)(ze.j3,{})})},cc=["title","titleId"];function uc(){return uc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uc.apply(this,arguments)}function dc(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function pc(e,t){var n=e.title,r=e.titleId,i=dc(e,cc);return o.createElement("svg",uc({width:12,height:14,viewBox:"0 0 12 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,Ql||(Ql=o.createElement("path",{d:"M5.34686 0.350708C4.89686 0.254875 4.45354 0.525708 4.35687 0.975708L3.78437 3.6582H1.83104C1.37104 3.6582 0.997708 4.03153 0.997708 4.49153C0.997708 4.95153 1.37104 5.32486 1.83104 5.32486H3.41938L2.71605 8.65819H0.997708C0.537708 8.65819 0.164375 9.03152 0.164375 9.49152C0.164375 9.95152 0.537708 10.3249 0.997708 10.3249H2.35187L1.85688 12.6424C1.76104 13.0924 2.03188 13.5357 2.48188 13.6323C2.93188 13.729 3.3752 13.4573 3.47187 13.0073L4.04438 10.3249H6.51853L6.02354 12.6424C5.92771 13.0924 6.19854 13.5357 6.64854 13.6323C7.09854 13.729 7.54186 13.4573 7.63853 13.0073L8.21104 10.3249H10.1644C10.6244 10.3249 10.9977 9.95152 10.9977 9.49152C10.9977 9.03152 10.6244 8.65819 10.1644 8.65819H8.57603L9.27935 5.32486H10.9977C11.4577 5.32486 11.831 4.95153 11.831 4.49153C11.831 4.03153 11.4577 3.6582 10.9977 3.6582H9.64353L10.1385 1.3407C10.2344 0.890698 9.96352 0.447375 9.51353 0.350708C9.06353 0.254875 8.6202 0.525708 8.52354 0.975708L7.95103 3.6582H5.47687L5.97186 1.3407C6.0677 0.890698 5.79686 0.447375 5.34686 0.350708ZM5.11269 5.32486H7.58604L6.88271 8.65819H4.40936L5.11269 5.32486Z",fill:"#79829B"})))}var fc,hc=o.forwardRef(pc),mc=(n.p,function(){var e=(0,ze.s0)();return{currentChannelId:(0,ze.UO)().channelId,navigateTo:function(t){return e("/dashboard/chat/".concat(t))}}}),vc=["title","titleId"];function gc(){return gc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gc.apply(this,arguments)}function yc(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function bc(e,t){var n=e.title,r=e.titleId,i=yc(e,vc);return o.createElement("svg",gc({width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,fc||(fc=o.createElement("path",{d:"M9.01155 0.627686C4.40922 0.627686 0.678223 4.35852 0.678223 8.96101C0.678223 13.5635 4.40922 17.2943 9.01155 17.2943C13.6139 17.2943 17.3449 13.5635 17.3449 8.96101C17.3449 4.35852 13.6139 0.627686 9.01155 0.627686ZM9.01155 4.79435C9.4718 4.79435 9.84488 5.16768 9.84488 5.62768V8.12768H12.3449C12.8051 8.12768 13.1782 8.50101 13.1782 8.96101C13.1782 9.42101 12.8051 9.79435 12.3449 9.79435H9.84488V12.2943C9.84488 12.7543 9.4718 13.1277 9.01155 13.1277C8.5513 13.1277 8.17822 12.7543 8.17822 12.2943V9.79435H5.67822C5.21797 9.79435 4.84489 9.42101 4.84489 8.96101C4.84489 8.50101 5.21797 8.12768 5.67822 8.12768H8.17822V5.62768C8.17822 5.16768 8.5513 4.79435 9.01155 4.79435Z",fill:"#79829B"})))}var xc=o.forwardRef(bc),wc=(n.p,["children"]),Cc=["name"],jc=["_f"],Sc=["_f"],kc=function(e){return"checkbox"===e.type},Zc=function(e){return e instanceof Date},Oc=function(e){return null==e},Ec=function(e){return"object"===typeof e},Dc=function(e){return!Oc(e)&&!Array.isArray(e)&&Ec(e)&&!Zc(e)},Pc=function(e){return Dc(e)&&e.target?kc(e.target)?e.target.checked:e.target.value:e},Ac=function(e,t){return e.has(function(e){return e.substring(0,e.search(/\.\d+(\.|$)/))||e}(t))},Mc=function(e){return Array.isArray(e)?e.filter(Boolean):[]},Tc=function(e){return void 0===e},Ic=function(e,t,n){if(!t||!Dc(e))return n;var r=Mc(t.split(/[,[\].]+?/)).reduce((function(e,t){return Oc(e)?e:e[t]}),e);return Tc(r)||r===e?Tc(e[t])?n:e[t]:r},Rc="blur",Fc="focusout",Bc="change",Lc="onBlur",Nc="onChange",_c="onSubmit",zc="onTouched",Hc="all",Wc="max",Vc="min",Uc="maxLength",qc="minLength",Gc="pattern",Yc="required",Kc="validate",Jc=o.createContext(null),Xc=function(){return o.useContext(Jc)},Qc=function(e){e.children;var t=Nn(e,wc);return o.createElement(Jc.Provider,{value:t},e.children)},$c=function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o={},i=function(i){Object.defineProperty(o,i,{get:function(){var o=i;return t[o]!==Hc&&(t[o]=!r||Hc),n&&(n[o]=!0),e[o]}})};for(var a in e)i(a);return o},eu=function(e){return Dc(e)&&!Object.keys(e).length},tu=function(e,t,n){e.name;var r=Nn(e,Cc);return eu(r)||Object.keys(r).length>=Object.keys(t).length||Object.keys(r).find((function(e){return t[e]===(!n||Hc)}))},nu=function(e){return Array.isArray(e)?e:[e]},ru=function(e,t,n){return n&&t?e===t:!e||!t||e===t||nu(e).some((function(e){return e&&(e.startsWith(t)||t.startsWith(e))}))};function ou(e){var t=o.useRef(e);t.current=e,o.useEffect((function(){var n=!e.disabled&&t.current.subject.subscribe({next:t.current.callback});return function(){return function(e){e&&e.unsubscribe()}(n)}}),[e.disabled])}var iu=function(e){return"string"===typeof e},au=function(e,t,n,r){var o=Array.isArray(e);return iu(e)?(r&&t.watch.add(e),Ic(n,e)):o?e.map((function(e){return r&&t.watch.add(e),Ic(n,e)})):(r&&(t.watchAll=!0),n)},su=function(e){return"function"===typeof e},lu=function(e){for(var t in e)if(su(e[t]))return!0;return!1};function cu(e){var t=Xc(),n=e||{},r=n.control,i=void 0===r?t.control:r,a=n.name,s=n.defaultValue,c=n.disabled,u=n.exact,d=o.useRef(a);d.current=a;var p=o.useCallback((function(e){if(ru(d.current,e.name,u)){var t=au(d.current,i._names,e.values||i._formValues);v(Tc(d.current)||Dc(t)&&!lu(t)?(0,l.Z)({},t):Array.isArray(t)?(0,dn.Z)(t):Tc(t)?s:t)}}),[i,u,s]);ou({disabled:c,subject:i._subjects.watch,callback:p});var f=o.useState(Tc(s)?i._getWatch(a):s),h=(0,Le.Z)(f,2),m=h[0],v=h[1];return o.useEffect((function(){i._removeUnmounted()})),m}function uu(e){var t=Xc(),n=e.name,r=e.control,i=void 0===r?t.control:r,a=e.shouldUnregister,s=Ac(i._names.array,n),c=cu({control:i,name:n,defaultValue:Ic(i._formValues,n,Ic(i._defaultValues,n,e.defaultValue)),exact:!0}),u=function(e){var t=Xc(),n=e||{},r=n.control,i=void 0===r?t.control:r,a=n.disabled,s=n.name,c=n.exact,u=o.useState(i._formState),d=(0,Le.Z)(u,2),p=d[0],f=d[1],h=o.useRef({isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),m=o.useRef(s),v=o.useRef(!0);m.current=s;var g=o.useCallback((function(e){return v.current&&ru(m.current,e.name,c)&&tu(e,h.current)&&f((0,l.Z)((0,l.Z)({},i._formState),e))}),[i,c]);return ou({disabled:a,callback:g,subject:i._subjects.state}),o.useEffect((function(){return v.current=!0,function(){v.current=!1}}),[]),$c(p,i._proxyFormState,h.current,!1)}({control:i,name:n}),d=o.useRef(i.register(n,(0,l.Z)((0,l.Z)({},e.rules),{},{value:c})));return o.useEffect((function(){var e=function(e,t){var n=Ic(i._fields,e);n&&(n._f.mount=t)};return e(n,!0),function(){var t=i._options.shouldUnregister||a;(s?t&&!i._stateFlags.action:t)?i.unregister(n):e(n,!1)}}),[n,i,s,a]),{field:{name:n,value:c,onChange:o.useCallback((function(e){d.current.onChange({target:{value:Pc(e),name:n},type:Bc})}),[n]),onBlur:o.useCallback((function(){d.current.onBlur({target:{value:Ic(i._formValues,n),name:n},type:Rc})}),[n,i]),ref:o.useCallback((function(e){var t=Ic(i._fields,n);e&&t&&e.focus&&(t._f.ref={focus:function(){return e.focus()},setCustomValidity:function(t){return e.setCustomValidity(t)},reportValidity:function(){return e.reportValidity()}})}),[n,i._fields])},formState:u,fieldState:i.getFieldState(n,u)}}var du=function(e){return e.render(uu(e))},pu=function(e,n,r,o,i){return n?(0,l.Z)((0,l.Z)({},r[e]),{},{types:(0,l.Z)((0,l.Z)({},r[e]&&r[e].types?r[e].types:{}),{},(0,t.Z)({},o,i||!0))}):{}},fu=function(e){return/^\w*$/.test(e)},hu=function(e){return Mc(e.replace(/["|']|\]/g,"").split(/\.|\[/))};function mu(e,t,n){for(var r=-1,o=fu(t)?[t]:hu(t),i=o.length,a=i-1;++r<i;){var s=o[r],l=n;if(r!==a){var c=e[s];l=Dc(c)||Array.isArray(c)?c:isNaN(+o[r+1])?{}:[]}e[s]=l,e=e[s]}return e}var vu=function e(t,n,r){var o,i=_e(r||Object.keys(t));try{for(i.s();!(o=i.n()).done;){var a=o.value,s=Ic(t,a);if(s){var l=s._f,c=Nn(s,jc);if(l&&n(l.name)){if(l.ref.focus&&Tc(l.ref.focus()))break;if(l.refs){l.refs[0].focus();break}}else Dc(c)&&e(c,n)}}}catch(u){i.e(u)}finally{i.f()}},gu=function(){var e="undefined"===typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(16*Math.random()+e)%16|0;return("x"==t?n:3&n|8).toString(16)}))},yu=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.shouldFocus||Tc(n.shouldFocus)?n.focusName||"".concat(e,".").concat(Tc(n.focusIndex)?t:n.focusIndex,"."):""},bu=function(e,t,n){return!n&&(t.watchAll||t.watch.has(e)||(0,dn.Z)(t.watch).some((function(t){return e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))})))};function xu(e,t){return[].concat((0,dn.Z)(e),(0,dn.Z)(nu(t)))}function wu(e){var t,n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(!n&&!Dc(e))return e;for(var r in t=n?[]:{},e){if(su(e[r])){t=e;break}t[r]=wu(e[r])}}return t}var Cu=function(e){return Array.isArray(e)?e.map((function(){})):void 0};function ju(e,t,n){return[].concat((0,dn.Z)(e.slice(0,t)),(0,dn.Z)(nu(n)),(0,dn.Z)(e.slice(t)))}var Su=function(e,t,n){return Array.isArray(e)?(Tc(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[]};function ku(e,t){return[].concat((0,dn.Z)(nu(t)),(0,dn.Z)(nu(e)))}var Zu=function(e,t){return Tc(t)?[]:function(e,t){var n,r=0,o=(0,dn.Z)(e),i=_e(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;o.splice(a-r,1),r++}}catch(s){i.e(s)}finally{i.f()}return Mc(o).length?o:[]}(e,nu(t).sort((function(e,t){return e-t})))},Ou=function(e,t,n){e[t]=[e[n],e[n]=e[t]][0]},Eu=function(e,t,n){return e[t]=n,e};function Du(e){var n=Xc(),r=e.control,i=void 0===r?n.control:r,a=e.name,s=e.keyName,c=void 0===s?"id":s,u=e.shouldUnregister,d=o.useState(i._getFieldArray(a)),p=(0,Le.Z)(d,2),f=p[0],h=p[1],m=o.useRef(i._getFieldArray(a).map(gu)),v=o.useRef(f),g=o.useRef(a),y=o.useRef(!1);g.current=a,v.current=f,i._names.array.add(a);var b=o.useCallback((function(e){var t=e.values,n=e.name;if(n===g.current||!n){var r=Ic(t,g.current,[]);h(r),m.current=r.map(gu)}}),[]);ou({callback:b,subject:i._subjects.array});var x=o.useCallback((function(e){y.current=!0,i._updateFieldArray(a,e)}),[i,a]);return o.useEffect((function(){i._stateFlags.action=!1,bu(a,i._names)&&i._subjects.state.next({}),y.current&&i._executeSchema([a]).then((function(e){var t=Ic(e.errors,a);t&&t.type&&!Ic(i._formState.errors,a)&&(mu(i._formState.errors,a,t),i._subjects.state.next({errors:i._formState.errors}))})),i._subjects.watch.next({name:a,values:i._formValues}),i._names.focus&&vu(i._fields,(function(e){return e.startsWith(i._names.focus)})),i._names.focus="",i._proxyFormState.isValid&&i._updateValid()}),[f,a,i]),o.useEffect((function(){return!Ic(i._formValues,a)&&i._updateFieldArray(a),function(){(i._options.shouldUnregister||u)&&i.unregister(a)}}),[a,i,c,u]),{swap:o.useCallback((function(e,t){var n=i._getFieldArray(a);Ou(n,e,t),Ou(m.current,e,t),x(n),h(n),i._updateFieldArray(a,n,Ou,{argA:e,argB:t},!1)}),[x,a,i]),move:o.useCallback((function(e,t){var n=i._getFieldArray(a);Su(n,e,t),Su(m.current,e,t),x(n),h(n),i._updateFieldArray(a,n,Su,{argA:e,argB:t},!1)}),[x,a,i]),prepend:o.useCallback((function(e,t){var n=nu(wu(e)),r=ku(i._getFieldArray(a),n);i._names.focus=yu(a,0,t),m.current=ku(m.current,n.map(gu)),x(r),h(r),i._updateFieldArray(a,r,ku,{argA:Cu(e)})}),[x,a,i]),append:o.useCallback((function(e,t){var n=nu(wu(e)),r=xu(i._getFieldArray(a),n);i._names.focus=yu(a,r.length-1,t),m.current=xu(m.current,n.map(gu)),x(r),h(r),i._updateFieldArray(a,r,xu,{argA:Cu(e)})}),[x,a,i]),remove:o.useCallback((function(e){var t=Zu(i._getFieldArray(a),e);m.current=Zu(m.current,e),x(t),h(t),i._updateFieldArray(a,t,Zu,{argA:e})}),[x,a,i]),insert:o.useCallback((function(e,t,n){var r=nu(wu(t)),o=ju(i._getFieldArray(a),e,r);i._names.focus=yu(a,e,n),m.current=ju(m.current,e,r.map(gu)),x(o),h(o),i._updateFieldArray(a,o,ju,{argA:e,argB:Cu(t)})}),[x,a,i]),update:o.useCallback((function(e,t){var n=wu(t),r=Eu(i._getFieldArray(a),e,n);m.current=(0,dn.Z)(r).map((function(t,n){return t&&n!==e?m.current[n]:gu()})),x(r),h((0,dn.Z)(r)),i._updateFieldArray(a,r,Eu,{argA:e,argB:n},!0,!1)}),[x,a,i]),replace:o.useCallback((function(e){var t=nu(wu(e));m.current=t.map(gu),x((0,dn.Z)(t)),h((0,dn.Z)(t)),i._updateFieldArray(a,(0,dn.Z)(t),(function(e){return e}),{},!0,!1)}),[x,a,i]),fields:o.useMemo((function(){return f.map((function(e,n){return(0,l.Z)((0,l.Z)({},e),{},(0,t.Z)({},c,m.current[n]||gu()))}))}),[f,c])}}function Pu(){var e=[];return{get observers(){return e},next:function(t){var n,r=_e(e);try{for(r.s();!(n=r.n()).done;){n.value.next(t)}}catch(o){r.e(o)}finally{r.f()}},subscribe:function(t){return e.push(t),{unsubscribe:function(){e=e.filter((function(e){return e!==t}))}}},unsubscribe:function(){e=[]}}}var Au=function(e){return Oc(e)||!Ec(e)};function Mu(e,t){if(Au(e)||Au(t))return e===t;if(Zc(e)&&Zc(t))return e.getTime()===t.getTime();var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0,i=n;o<i.length;o++){var a=i[o],s=e[a];if(!r.includes(a))return!1;if("ref"!==a){var l=t[a];if(Zc(s)&&Zc(l)||Dc(s)&&Dc(l)||Array.isArray(s)&&Array.isArray(l)?!Mu(s,l):s!==l)return!1}}return!0}var Tu=function(e){return{isOnSubmit:!e||e===_c,isOnBlur:e===Lc,isOnChange:e===Nc,isOnAll:e===Hc,isOnTouch:e===zc}},Iu=function(e){return"boolean"===typeof e},Ru=function(e){return"file"===e.type},Fu=function(e){return e instanceof HTMLElement},Bu=function(e){return"select-multiple"===e.type},Lu=function(e){return"radio"===e.type},Nu=function(e){return Lu(e)||kc(e)},_u="undefined"!==typeof window&&"undefined"!==typeof window.HTMLElement&&"undefined"!==typeof document,zu=function(e){return Fu(e)&&e.isConnected};function Hu(e,t){var n,r=fu(t)?[t]:hu(t),o=1==r.length?e:function(e,t){for(var n=t.slice(0,-1).length,r=0;r<n;)e=Tc(e)?r++:e[t[r++]];return e}(e,r),i=r[r.length-1];o&&delete o[i];for(var a=0;a<r.slice(0,-1).length;a++){var s=-1,l=void 0,c=r.slice(0,-(a+1)),u=c.length-1;for(a>0&&(n=e);++s<c.length;){var d=c[s];l=l?l[d]:e[d],u===s&&(Dc(l)&&eu(l)||Array.isArray(l)&&!l.filter((function(e){return!Tc(e)})).length)&&(n?delete n[d]:delete e[d]),n=l}}return e}function Wu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Array.isArray(e);if(Dc(e)||n)for(var r in e)Array.isArray(e[r])||Dc(e[r])&&!lu(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Wu(e[r],t[r])):Oc(e[r])||(t[r]=!0);return t}function Vu(e,t,n){var r=Array.isArray(e);if(Dc(e)||r)for(var o in e)Array.isArray(e[o])||Dc(e[o])&&!lu(e[o])?Tc(t)||Au(n[o])?n[o]=Array.isArray(e[o])?Wu(e[o],[]):(0,l.Z)({},Wu(e[o])):Vu(e[o],Oc(t)?{}:t[o],n[o]):n[o]=!Mu(e[o],t[o]);return n}var Uu=function(e,t){return Vu(e,t,Wu(t))},qu={value:!1,isValid:!1},Gu={value:!0,isValid:!0},Yu=function(e){if(Array.isArray(e)){if(e.length>1){var t=e.filter((function(e){return e&&e.checked&&!e.disabled})).map((function(e){return e.value}));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Tc(e[0].attributes.value)?Tc(e[0].value)||""===e[0].value?Gu:{value:e[0].value,isValid:!0}:Gu:qu}return qu},Ku=function(e,t){var n=t.valueAsNumber,r=t.valueAsDate,o=t.setValueAs;return Tc(e)?e:n?""===e?NaN:+e:r&&iu(e)?new Date(e):o?o(e):e},Ju={isValid:!1,value:null},Xu=function(e){return Array.isArray(e)?e.reduce((function(e,t){return t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e}),Ju):Ju};function Qu(e){var t=e.ref;if(!(e.refs?e.refs.every((function(e){return e.disabled})):t.disabled))return Ru(t)?t.files:Lu(t)?Xu(e.refs).value:Bu(t)?(0,dn.Z)(t.selectedOptions).map((function(e){return e.value})):kc(t)?Yu(e.refs).value:Ku(Tc(t.value)?e.ref.value:t.value,e)}var $u=function(e,t,n,r){var o,i={},a=_e(e);try{for(a.s();!(o=a.n()).done;){var s=o.value,l=Ic(t,s);l&&mu(i,s,l._f)}}catch(c){a.e(c)}finally{a.f()}return{criteriaMode:n,names:(0,dn.Z)(e),fields:i,shouldUseNativeValidation:r}},ed=function(e){return e instanceof RegExp},td=function(e){return Tc(e)?void 0:ed(e)?e.source:Dc(e)?ed(e.value)?e.value.source:e.value:e},nd=function(e){return e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate)};function rd(e,t,n){var r=Ic(e,n);if(r||fu(n))return{error:r,name:n};for(var o=n.split(".");o.length;){var i=o.join("."),a=Ic(t,i),s=Ic(e,i);if(a&&!Array.isArray(a)&&n!==i)return{name:n};if(s&&s.type)return{name:i,error:s};o.pop()}return{name:n}}var od=function(e,t,n,r,o){return!o.isOnAll&&(!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:!(n?r.isOnChange:o.isOnChange)||e)},id=function(e,t){return!Mc(Ic(e,t)).length&&Hu(e,t)},ad=function(e){return iu(e)||o.isValidElement(e)};function sd(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"validate";if(ad(e)||Array.isArray(e)&&e.every(ad)||Iu(e)&&!e)return{type:n,message:ad(e)?e:"",ref:t}}var ld,cd=function(e){return Dc(e)&&!ed(e)?e:{value:e,message:""}},ud=function(){var e=ds(fs.mark((function e(t,n,r,o){var i,a,s,c,u,d,p,f,h,m,v,g,y,b,x,w,C,j,S,k,Z,O,E,D,P,A,M,T,I,R,F,B,L,N,_,z,H,W,V,U,q,G,Y,K;return fs.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t._f,a=i.ref,s=i.refs,c=i.required,u=i.maxLength,d=i.minLength,p=i.min,f=i.max,h=i.pattern,m=i.validate,v=i.name,g=i.valueAsNumber,y=i.mount,b=i.disabled,y&&!b){e.next=3;break}return e.abrupt("return",{});case 3:if(x=s?s[0]:a,w=function(e){o&&x.reportValidity&&(x.setCustomValidity(Iu(e)?"":e||" "),x.reportValidity())},C={},j=Lu(a),S=kc(a),k=j||S,Z=(g||Ru(a))&&!a.value||""===n||Array.isArray(n)&&!n.length,O=pu.bind(null,v,r,C),E=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Uc,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:qc,i=e?t:n;C[v]=(0,l.Z)({type:e?r:o,message:i,ref:a},O(e?r:o,i))},!c||!(!k&&(Z||Oc(n))||Iu(n)&&!n||S&&!Yu(s).isValid||j&&!Xu(s).isValid)){e.next=19;break}if(D=ad(c)?{value:!!c,message:c}:cd(c),P=D.value,A=D.message,!P){e.next=19;break}if(C[v]=(0,l.Z)({type:Yc,message:A,ref:x},O(Yc,A)),r){e.next=19;break}return w(A),e.abrupt("return",C);case 19:if(Z||Oc(p)&&Oc(f)){e.next=28;break}if(I=cd(f),R=cd(p),isNaN(n)?(B=a.valueAsDate||new Date(n),iu(I.value)&&(M=B>new Date(I.value)),iu(R.value)&&(T=B<new Date(R.value))):(F=a.valueAsNumber||+n,Oc(I.value)||(M=F>I.value),Oc(R.value)||(T=F<R.value)),!M&&!T){e.next=28;break}if(E(!!M,I.message,R.message,Wc,Vc),r){e.next=28;break}return w(C[v].message),e.abrupt("return",C);case 28:if(!u&&!d||Z||!iu(n)){e.next=38;break}if(L=cd(u),N=cd(d),_=!Oc(L.value)&&n.length>L.value,z=!Oc(N.value)&&n.length<N.value,!_&&!z){e.next=38;break}if(E(_,L.message,N.message),r){e.next=38;break}return w(C[v].message),e.abrupt("return",C);case 38:if(!h||Z||!iu(n)){e.next=45;break}if(H=cd(h),W=H.value,V=H.message,!ed(W)||n.match(W)){e.next=45;break}if(C[v]=(0,l.Z)({type:Gc,message:V,ref:a},O(Gc,V)),r){e.next=45;break}return w(V),e.abrupt("return",C);case 45:if(!m){e.next=79;break}if(!su(m)){e.next=58;break}return e.next=49,m(n);case 49:if(U=e.sent,!(q=sd(U,x))){e.next=56;break}if(C[v]=(0,l.Z)((0,l.Z)({},q),O(Kc,q.message)),r){e.next=56;break}return w(q.message),e.abrupt("return",C);case 56:e.next=79;break;case 58:if(!Dc(m)){e.next=79;break}G={},e.t0=fs.keys(m);case 61:if((e.t1=e.t0()).done){e.next=75;break}if(Y=e.t1.value,eu(G)||r){e.next=65;break}return e.abrupt("break",75);case 65:return e.t2=sd,e.next=68,m[Y](n);case 68:e.t3=e.sent,e.t4=x,e.t5=Y,(K=(0,e.t2)(e.t3,e.t4,e.t5))&&(G=(0,l.Z)((0,l.Z)({},K),O(Y,K.message)),w(K.message),r&&(C[v]=G)),e.next=61;break;case 75:if(eu(G)){e.next=79;break}if(C[v]=(0,l.Z)({ref:x},G),r){e.next=79;break}return e.abrupt("return",C);case 79:return w(!0),e.abrupt("return",C);case 81:case"end":return e.stop()}}),e)})));return function(t,n,r,o){return e.apply(this,arguments)}}(),dd={mode:_c,reValidateMode:Nc,shouldFocusError:!0};function pd(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,l.Z)((0,l.Z)({},dd),n),o={isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touchedFields:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,errors:{}},i={},a=wu(r.defaultValues)||{},s=r.shouldUnregister?{}:wu(a),c={action:!1,mount:!1,watch:!1},u={mount:new Set,unMount:new Set,array:new Set,watch:new Set},d=0,p={},f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={watch:Pu(),array:Pu(),state:Pu()},m=Tu(r.mode),v=Tu(r.reValidateMode),g=r.criteriaMode===Hc,y=function(e,t){return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];clearTimeout(d),d=window.setTimeout((function(){return e.apply(void 0,r)}),t)}},b=function(){var e=ds(fs.mark((function e(t){var n;return fs.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=!1,!f.isValid){e.next=15;break}if(!r.resolver){e.next=10;break}return e.t1=eu,e.next=6,k();case 6:e.t2=e.sent.errors,e.t0=(0,e.t1)(e.t2),e.next=13;break;case 10:return e.next=12,O(i,!0);case 12:e.t0=e.sent;case 13:n=e.t0,t||n===o.isValid||(o.isValid=n,h.state.next({isValid:n}));case 15:return e.abrupt("return",n);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,l=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],u=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(r&&n){if(c.action=!0,u&&Array.isArray(Ic(i,e))){var d=n(Ic(i,e),r.argA,r.argB);l&&mu(i,e,d)}if(f.errors&&u&&Array.isArray(Ic(o.errors,e))){var p=n(Ic(o.errors,e),r.argA,r.argB);l&&mu(o.errors,e,p),id(o.errors,e)}if(f.touchedFields&&u&&Array.isArray(Ic(o.touchedFields,e))){var m=n(Ic(o.touchedFields,e),r.argA,r.argB);l&&mu(o.touchedFields,e,m)}f.dirtyFields&&(o.dirtyFields=Uu(a,s)),h.state.next({isDirty:D(e,t),dirtyFields:o.dirtyFields,errors:o.errors,isValid:o.isValid})}else mu(s,e,t)},w=function(e,t){return mu(o.errors,e,t),h.state.next({errors:o.errors})},C=function(e,t,n,r){var o=Ic(i,e);if(o){var l=Ic(s,e,Tc(n)?Ic(a,e):n);Tc(l)||r&&r.defaultChecked||t?mu(s,e,t?l:Qu(o._f)):M(e,l),c.mount&&b()}},j=function(e,t,n,r,i){var s=!1,l={name:e},c=Ic(o.touchedFields,e);if(f.isDirty){var u=o.isDirty;o.isDirty=l.isDirty=D(),s=u!==l.isDirty}if(f.dirtyFields&&(!n||r)){var d=Ic(o.dirtyFields,e);Mu(Ic(a,e),t)?Hu(o.dirtyFields,e):mu(o.dirtyFields,e,!0),l.dirtyFields=o.dirtyFields,s=s||d!==Ic(o.dirtyFields,e)}return n&&!c&&(mu(o.touchedFields,e,n),l.touchedFields=o.touchedFields,s=s||f.touchedFields&&c!==n),s&&i&&h.state.next(l),s?l:{}},S=function(){var t=ds(fs.mark((function t(r,i,a,s,c){var u,m,v;return fs.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:u=Ic(o.errors,i),m=f.isValid&&o.isValid!==a,n.delayError&&s?(e=e||y(w,n.delayError))(i,s):(clearTimeout(d),s?mu(o.errors,i,s):Hu(o.errors,i)),(s?Mu(u,s):!u)&&eu(c)&&!m||r||(v=(0,l.Z)((0,l.Z)((0,l.Z)({},c),m?{isValid:a}:{}),{},{errors:o.errors,name:i}),o=(0,l.Z)((0,l.Z)({},o),v),h.state.next(v)),p[i]--,f.isValidating&&!Object.values(p).some((function(e){return e}))&&(h.state.next({isValidating:!1}),p={});case 6:case"end":return t.stop()}}),t)})));return function(e,n,r,o,i){return t.apply(this,arguments)}}(),k=function(){var e=ds(fs.mark((function e(t){return fs.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r.resolver){e.next=6;break}return e.next=3,r.resolver((0,l.Z)({},s),r.context,$u(t||u.mount,i,r.criteriaMode,r.shouldUseNativeValidation));case 3:e.t0=e.sent,e.next=7;break;case 6:e.t0={};case 7:return e.abrupt("return",e.t0);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Z=function(){var e=ds(fs.mark((function e(t){var n,r,i,a,s,l;return fs.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k();case 2:if(n=e.sent,r=n.errors,t){i=_e(t);try{for(i.s();!(a=i.n()).done;)s=a.value,(l=Ic(r,s))?mu(o.errors,s,l):Hu(o.errors,s)}catch(c){i.e(c)}finally{i.f()}}else o.errors=r;return e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),O=function(){var e=ds(fs.mark((function e(t,n){var i,a,l,c,u,d,p=arguments;return fs.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=p.length>2&&void 0!==p[2]?p[2]:{valid:!0},e.t0=fs.keys(t);case 2:if((e.t1=e.t0()).done){e.next=22;break}if(a=e.t1.value,!(l=t[a])){e.next=20;break}if(c=l._f,u=Nn(l,Sc),!c){e.next=16;break}return e.next=10,ud(l,Ic(s,c.name),g,r.shouldUseNativeValidation);case 10:if(!(d=e.sent)[c.name]){e.next=15;break}if(i.valid=!1,!n){e.next=15;break}return e.abrupt("break",22);case 15:n||(d[c.name]?mu(o.errors,c.name,d[c.name]):Hu(o.errors,c.name));case 16:if(e.t2=u,!e.t2){e.next=20;break}return e.next=20,O(u,n,i);case 20:e.next=2;break;case 22:return e.abrupt("return",i.valid);case 23:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),E=function(){var e,t=_e(u.unMount);try{for(t.s();!(e=t.n()).done;){var n=e.value,r=Ic(i,n);r&&(r._f.refs?r._f.refs.every((function(e){return!zu(e)})):!zu(r._f.ref))&&H(n)}}catch(o){t.e(o)}finally{t.f()}u.unMount=new Set},D=function(e,t){return e&&t&&mu(s,e,t),!Mu(B(),a)},P=function(e,n,r){var o=(0,l.Z)({},c.mount?s:Tc(n)?a:iu(e)?(0,t.Z)({},e,n):n);return au(e,u,o,r)},A=function(e){return Mc(Ic(c.mount?s:a,e,n.shouldUnregister?Ic(a,e,[]):[]))},M=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Ic(i,e),o=t;if(r){var a=r._f;a&&(!a.disabled&&mu(s,e,Ku(t,a)),o=_u&&Fu(a.ref)&&Oc(t)?"":t,Bu(a.ref)?(0,dn.Z)(a.ref.options).forEach((function(e){return e.selected=o.includes(e.value)})):a.refs?kc(a.ref)?a.refs.length>1?a.refs.forEach((function(e){return!e.disabled&&(e.checked=Array.isArray(o)?!!o.find((function(t){return t===e.value})):o===e.value)})):a.refs[0]&&(a.refs[0].checked=!!o):a.refs.forEach((function(e){return e.checked=e.value===o})):Ru(a.ref)?a.ref.value="":(a.ref.value=o,a.ref.type||h.watch.next({name:e})))}(n.shouldDirty||n.shouldTouch)&&j(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&F(e)},T=function e(t,n,r){for(var o in n){var a=n[o],s="".concat(t,".").concat(o),l=Ic(i,s);!u.array.has(t)&&Au(a)&&(!l||l._f)||Zc(a)?M(s,a,r):e(s,a,r)}},I=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Ic(i,e),l=u.array.has(e),c=wu(t);mu(s,e,c),l?(h.array.next({name:e,values:s}),(f.isDirty||f.dirtyFields)&&n.shouldDirty&&(o.dirtyFields=Uu(a,s),h.state.next({name:e,dirtyFields:o.dirtyFields,isDirty:D(e,c)}))):!r||r._f||Oc(c)?M(e,c,n):T(e,c,n),bu(e,u)&&h.state.next({}),h.watch.next({name:e})},R=function(){var e=ds(fs.mark((function e(t){var n,a,c,d,f,y,x,w,C,Z,O,E,D,P,A;return fs.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.target,a=n.name,!(c=Ic(i,a))){e.next=39;break}if(y=n.type?Qu(c._f):Pc(t),x=t.type===Rc||t.type===Fc,w=!nd(c._f)&&!r.resolver&&!Ic(o.errors,a)&&!c._f.deps||od(x,Ic(o.touchedFields,a),o.isSubmitted,v,m),C=bu(a,u,x),mu(s,a,y),x?c._f.onBlur&&c._f.onBlur(t):c._f.onChange&&c._f.onChange(t),Z=j(a,y,x,!1),O=!eu(Z)||C,!x&&h.watch.next({name:a,type:t.type}),!w){e.next=15;break}return e.abrupt("return",O&&h.state.next((0,l.Z)({name:a},C?{}:Z)));case 15:if(!x&&C&&h.state.next({}),p[a]=(p[a],1),h.state.next({isValidating:!0}),!r.resolver){e.next=30;break}return e.next=21,k([a]);case 21:E=e.sent,D=E.errors,P=rd(o.errors,i,a),A=rd(D,i,P.name||a),d=A.error,a=A.name,f=eu(D),e.next=37;break;case 30:return e.next=32,ud(c,Ic(s,a),g,r.shouldUseNativeValidation);case 32:return e.t0=a,d=e.sent[e.t0],e.next=36,b(!0);case 36:f=e.sent;case 37:c._f.deps&&F(c._f.deps),S(!1,a,f,d,Z);case 39:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),F=function(){var e=ds(fs.mark((function e(n){var a,s,c,d,p,m=arguments;return fs.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=m.length>1&&void 0!==m[1]?m[1]:{},d=nu(n),h.state.next({isValidating:!0}),!r.resolver){e.next=11;break}return e.next=6,Z(Tc(n)?n:d);case 6:p=e.sent,s=eu(p),c=n?!d.some((function(e){return Ic(p,e)})):s,e.next=21;break;case 11:if(!n){e.next=18;break}return e.next=14,Promise.all(d.map(function(){var e=ds(fs.mark((function e(n){var r;return fs.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Ic(i,n),e.next=3,O(r&&r._f?(0,t.Z)({},n,r):r);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 14:((c=e.sent.every(Boolean))||o.isValid)&&b(),e.next=21;break;case 18:return e.next=20,O(i);case 20:c=s=e.sent;case 21:return h.state.next((0,l.Z)((0,l.Z)((0,l.Z)({},!iu(n)||f.isValid&&s!==o.isValid?{}:{name:n}),r.resolver?{isValid:s}:{}),{},{errors:o.errors,isValidating:!1})),a.shouldFocus&&!c&&vu(i,(function(e){return Ic(o.errors,e)}),n?d:u.mount),e.abrupt("return",c);case 24:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),B=function(e){var t=(0,l.Z)((0,l.Z)({},a),c.mount?s:{});return Tc(e)?t:iu(e)?Ic(t,e):e.map((function(e){return Ic(t,e)}))},L=function(e,t){return{invalid:!!Ic((t||o).errors,e),isDirty:!!Ic((t||o).dirtyFields,e),isTouched:!!Ic((t||o).touchedFields,e),error:Ic((t||o).errors,e)}},N=function(e){e?nu(e).forEach((function(e){return Hu(o.errors,e)})):o.errors={},h.state.next({errors:o.errors})},_=function(e,t,n){var r=(Ic(i,e,{_f:{}})._f||{}).ref;mu(o.errors,e,(0,l.Z)((0,l.Z)({},t),{},{ref:r})),h.state.next({name:e,errors:o.errors,isValid:!1}),n&&n.shouldFocus&&r&&r.focus&&r.focus()},z=function(e,t){return su(e)?h.watch.subscribe({next:function(n){return e(P(void 0,t),n)}}):P(e,t,!0)},H=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=_e(e?nu(e):u.mount);try{for(c.s();!(t=c.n()).done;){var d=t.value;u.mount.delete(d),u.array.delete(d),Ic(i,d)&&(n.keepValue||(Hu(i,d),Hu(s,d)),!n.keepError&&Hu(o.errors,d),!n.keepDirty&&Hu(o.dirtyFields,d),!n.keepTouched&&Hu(o.touchedFields,d),!r.shouldUnregister&&!n.keepDefaultValue&&Hu(a,d))}}catch(p){c.e(p)}finally{c.f()}h.watch.next({}),h.state.next((0,l.Z)((0,l.Z)({},o),n.keepDirty?{isDirty:D()}:{})),!n.keepIsValid&&b()},W=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=Ic(i,t),d=Iu(n.disabled);return mu(i,t,{_f:(0,l.Z)((0,l.Z)({},o&&o._f?o._f:{ref:{name:t}}),{},{name:t,mount:!0},n)}),u.mount.add(t),o?d&&mu(s,t,n.disabled?void 0:Ic(s,t,Qu(o._f))):C(t,!0,n.value),(0,l.Z)((0,l.Z)((0,l.Z)({},d?{disabled:n.disabled}:{}),r.shouldUseNativeValidation?{required:!!n.required,min:td(n.min),max:td(n.max),minLength:td(n.minLength),maxLength:td(n.maxLength),pattern:td(n.pattern)}:{}),{},{name:t,onChange:R,onBlur:R,ref:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(s){if(s){e(t,n),o=Ic(i,t);var d=Tc(s.value)&&s.querySelectorAll&&s.querySelectorAll("input,select,textarea")[0]||s,p=Nu(d),f=o._f.refs||[];if(p?f.find((function(e){return e===d})):d===o._f.ref)return;mu(i,t,{_f:(0,l.Z)((0,l.Z)({},o._f),p?{refs:[].concat((0,dn.Z)(f.filter(zu)),[d],(0,dn.Z)(Array.isArray(Ic(a,t))?[{}]:[])),ref:{type:d.type,name:t}}:{ref:d})}),C(t,!1,void 0,d)}else(o=Ic(i,t,{}))._f&&(o._f.mount=!1),(r.shouldUnregister||n.shouldUnregister)&&(!Ac(u.array,t)||!c.action)&&u.unMount.add(t)}))})},V=function(e,t){return function(){var n=ds(fs.mark((function n(a){var c,d,p,f,m;return fs.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(a&&(a.preventDefault&&a.preventDefault(),a.persist&&a.persist()),c=!0,d=wu(s),h.state.next({isSubmitting:!0}),n.prev=4,!r.resolver){n.next=15;break}return n.next=8,k();case 8:p=n.sent,f=p.errors,m=p.values,o.errors=f,d=m,n.next=17;break;case 15:return n.next=17,O(i);case 17:if(!eu(o.errors)||!Object.keys(o.errors).every((function(e){return Ic(d,e)}))){n.next=23;break}return h.state.next({errors:{},isSubmitting:!0}),n.next=21,e(d,a);case 21:n.next=27;break;case 23:if(!t){n.next=26;break}return n.next=26,t((0,l.Z)({},o.errors),a);case 26:r.shouldFocusError&&vu(i,(function(e){return Ic(o.errors,e)}),u.mount);case 27:n.next=33;break;case 29:throw n.prev=29,n.t0=n.catch(4),c=!1,n.t0;case 33:return n.prev=33,o.isSubmitted=!0,h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:eu(o.errors)&&c,submitCount:o.submitCount+1,errors:o.errors}),n.finish(33);case 37:case"end":return n.stop()}}),n,null,[[4,29,33,37]])})));return function(e){return n.apply(this,arguments)}}()},U=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ic(i,e)&&(Tc(t.defaultValue)?I(e,Ic(a,e)):(I(e,t.defaultValue),mu(a,e,t.defaultValue)),t.keepTouched||Hu(o.touchedFields,e),t.keepDirty||(Hu(o.dirtyFields,e),o.isDirty=t.defaultValue?D(e,Ic(a,e)):D()),t.keepError||(Hu(o.errors,e),f.isValid&&b()),h.state.next((0,l.Z)({},o)))},q=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d=e||a,p=wu(d),m=e&&!eu(e)?p:a;if(r.keepDefaultValues||(a=d),!r.keepValues){if(_u&&Tc(e)){var v,g=_e(u.mount);try{for(g.s();!(v=g.n()).done;){var y=v.value,b=Ic(i,y);if(b&&b._f){var x=Array.isArray(b._f.refs)?b._f.refs[0]:b._f.ref;try{Fu(x)&&x.closest("form").reset();break}catch(w){}}}}catch(C){g.e(C)}finally{g.f()}}s=n.shouldUnregister?r.keepDefaultValues?wu(a):{}:p,i={},h.array.next({values:m}),h.watch.next({values:m})}u={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},c.mount=!f.isValid||!!r.keepIsValid,c.watch=!!n.shouldUnregister,h.state.next({submitCount:r.keepSubmitCount?o.submitCount:0,isDirty:r.keepDirty?o.isDirty:!!r.keepDefaultValues&&!Mu(e,a),isSubmitted:!!r.keepIsSubmitted&&o.isSubmitted,dirtyFields:r.keepDirty?o.dirtyFields:r.keepDefaultValues&&e?Object.entries(e).reduce((function(e,n){var r=(0,Le.Z)(n,2),o=r[0],i=r[1];return(0,l.Z)((0,l.Z)({},e),{},(0,t.Z)({},o,i!==Ic(a,o)))}),{}):{},touchedFields:r.keepTouched?o.touchedFields:{},errors:r.keepErrors?o.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},G=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ic(i,e)._f,r=n.refs?n.refs[0]:n.ref;t.shouldSelect?r.select():r.focus()};return{control:{register:W,unregister:H,getFieldState:L,_executeSchema:k,_getWatch:P,_getDirty:D,_updateValid:b,_removeUnmounted:E,_updateFieldArray:x,_getFieldArray:A,_subjects:h,_proxyFormState:f,get _fields(){return i},get _formValues(){return s},get _stateFlags(){return c},set _stateFlags(e){c=e},get _defaultValues(){return a},get _names(){return u},set _names(e){u=e},get _formState(){return o},set _formState(e){o=e},get _options(){return r},set _options(e){r=(0,l.Z)((0,l.Z)({},r),e)}},trigger:F,register:W,handleSubmit:V,watch:z,setValue:I,getValues:B,reset:q,resetField:U,clearErrors:N,unregister:H,setError:_,setFocus:G,getFieldState:L}}function fd(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o.useRef(),n=o.useState({isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touchedFields:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,errors:{}}),r=(0,Le.Z)(n,2),i=r[0],a=r[1];t.current?t.current.control._options=e:t.current=(0,l.Z)((0,l.Z)({},pd(e)),{},{formState:i});var s=t.current.control,c=o.useCallback((function(e){tu(e,s._proxyFormState,!0)&&(s._formState=(0,l.Z)((0,l.Z)({},s._formState),e),a((0,l.Z)({},s._formState)))}),[s]);return ou({subject:s._subjects.state,callback:c}),o.useEffect((function(){s._stateFlags.mount||(s._proxyFormState.isValid&&s._updateValid(),s._stateFlags.mount=!0),s._stateFlags.watch&&(s._stateFlags.watch=!1,s._subjects.state.next({})),s._removeUnmounted()})),t.current.formState=$c(i,s._proxyFormState),t.current}var hd=["title","titleId"];function md(){return md=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},md.apply(this,arguments)}function vd(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function gd(e,t){var n=e.title,r=e.titleId,i=vd(e,hd);return o.createElement("svg",md({width:20,height:20,viewBox:"0 0 20 20",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,ld||(ld=o.createElement("g",{id:"chat3-fill"},o.createElement("path",{id:"Vector",d:"M10.0116 1.66577C5.40906 1.66577 1.67822 5.39661 1.67822 9.99911C1.67822 10.9258 1.90572 11.8416 2.19906 12.7074L1.91239 13.9574C1.20989 16.7674 3.18406 18.8024 6.00156 18.0983L7.2249 17.8116C8.1199 18.1241 9.08239 18.3324 10.0116 18.3324C14.6141 18.3324 18.3449 14.6016 18.3449 9.99911C18.3449 5.39661 14.6141 1.66577 10.0116 1.66577ZM6.67823 9.16578C7.13823 9.16578 7.51156 9.53911 7.51156 9.99911C7.51156 10.4591 7.13823 10.8324 6.67823 10.8324C6.21823 10.8324 5.84489 10.4591 5.84489 9.99911C5.84489 9.53911 6.21823 9.16578 6.67823 9.16578ZM10.0116 9.16578C10.4716 9.16578 10.8449 9.53911 10.8449 9.99911C10.8449 10.4591 10.4716 10.8324 10.0116 10.8324C9.55156 10.8324 9.17823 10.4591 9.17823 9.99911C9.17823 9.53911 9.55156 9.16578 10.0116 9.16578ZM13.3449 9.16578C13.8049 9.16578 14.1782 9.53911 14.1782 9.99911C14.1782 10.4591 13.8049 10.8324 13.3449 10.8324C12.8849 10.8324 12.5116 10.4591 12.5116 9.99911C12.5116 9.53911 12.8849 9.16578 13.3449 9.16578Z",fill:"current"}))))}var yd,bd=o.forwardRef(gd),xd=(n.p,n(33267)),wd=n(56121),Cd=function(e){var t=e.text,n=(e.required,e.sx),r=e.adornment,o=void 0===r?null:r,i=e.textVariant,a=void 0===i?"heading5":i,s=e.color,c=void 0===s?"primaryDark.500":s;return(0,u.jsxs)(rn.Z,{variant:a,color:c,sx:(0,l.Z)({whiteSpace:"nowrap",display:"flex",alignItems:"center",mb:1},n),children:[null===t||void 0===t?void 0:t.toUpperCase(),o]})},jd=["name","required","label","field","icon","textFieldBackground","params","onIconClick","labelAdornment","showErrorAlways"],Sd=function(e){var t,n,r,o,i=e.name,a=void 0===i?"":i,s=e.required,c=e.label,d=e.field,p=e.icon,f=(e.textFieldBackground,e.params),h=e.onIconClick,m=e.labelAdornment,v=e.showErrorAlways,g=Nn(e,jd),y=(0,Xc().getFieldState)(a),b=y.error&&(v||y.isTouched),x={".MuiButtonBase-root":{display:"none"},".MuiInputBase-formControl":{border:"1px solid ".concat(b?tr.Us[100]:tr.dx[100]),color:g.disabled?"primaryDark.300":"primaryDark.600",backgroundColor:b?"secondaryPink.100":"transparent",paddingRight:p?4:0,fontSize:"14px","&:not(.Mui-disabled)":{"&:hover":{borderColor:"primaryLight.200"}}},input:{fontSize:"14px",padding:"0.844rem 0.75rem",pointerEvents:g.disabled?"none":"all"},".Mui-focused":{borderColor:"primaryLight.500"},".MuiFormHelperText-root":{marginLeft:0,boxShadow:"none !important",color:"secondaryPink.500",marginTop:"0 !important",lineHeight:1},fieldset:{border:"0 !important"},".Mui-disabled":{backgroundColor:"primaryDark.200",color:"primaryDark.300",border:"none"}};return(0,u.jsxs)(tn,{sx:(0,l.Z)((0,l.Z)({},g.sx),g.sxBox),children:[c&&(0,u.jsx)(Cd,{text:c,adornment:m,required:s,sx:{color:g.disabled?"primaryDark.300":"primaryDark.500"}}),(0,u.jsx)(nn.Z,{sx:(0,l.Z)((0,l.Z)({position:"relative"},x),g.sx),children:(0,u.jsx)(xd.Z,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({label:"",variant:"outlined",required:s,name:a,fullWidth:!0,onChange:g.onChange,InputProps:(0,l.Z)({readOnly:g.disabled,endAdornment:p?(0,u.jsx)(io.Z,{onClick:h,sx:{position:"absolute",display:"flex !important",right:8,top:"50%",transform:"translateY(-50%)"},children:p}):b?(0,u.jsx)(wd.Z,{sx:{color:"secondaryPink.500",mr:1}}):null},g.InputProps)},f),g),d),{},{helperText:(0,u.jsx)(u.Fragment,{children:b?(0,u.jsx)(rn.Z,{color:"secondaryPink.500",variant:"body4",sx:{position:"absolute",mt:1},children:(null!==(t=null===y||void 0===y||null===(n=y.error)||void 0===n||null===(r=n.message)||void 0===r?void 0:r.length)&&void 0!==t?t:0)>0?null===y||void 0===y||null===(o=y.error)||void 0===o?void 0:o.message:"This field is required"}):""})}))})]})},kd=["name","required","labelAdornment","sx","type"],Zd=function(e){var t=e.name,n=e.required,r=e.labelAdornment,o=e.sx,i=e.type,a=Nn(e,kd),s=Xc().control,c="number"===i;return(0,u.jsx)(du,{control:s,name:t,rules:n?{required:"This field is required"}:{required:!1},render:function(e){var i=e.field;return(0,u.jsx)(Sd,(0,l.Z)({onChange:function(e){var t=e.target.value;return i.onChange(c?+t:t)},field:i,name:t,required:n,labelAdornment:r,sx:(0,l.Z)({},o)},a))}})},Od=n(23492),Ed=n(31853),Dd=n.n(Ed),Pd=["title","titleId"];function Ad(){return Ad=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ad.apply(this,arguments)}function Md(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Td(e,t){var n=e.title,r=e.titleId,i=Md(e,Pd);return o.createElement("svg",Ad({width:12,height:8,viewBox:"0 0 12 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,yd||(yd=o.createElement("path",{d:"M10.1891 0.399902C9.88305 0.399902 9.56262 0.503112 9.32862 0.73712L4.87648 5.23726C4.56807 5.54686 4.25845 5.48924 4.01604 5.12563L2.81963 3.32558C2.45242 2.77356 1.68557 2.61998 1.13596 2.98719C0.586339 3.3556 0.432727 4.12363 0.798739 4.67445L1.9964 6.4745C3.07643 8.09935 5.18371 8.30573 6.56016 6.92568L11.0495 2.46276C11.5163 1.99354 11.5163 1.20633 11.0495 0.73712C10.8155 0.503112 10.4951 0.399902 10.1891 0.399902Z",fill:"current"})))}var Id,Rd=o.forwardRef(Td),Fd=(n.p,n(48227)),Bd=["sx","styleVariant","tooltipTitle"],Ld={borderRadius:"6px",height:"34px",bgcolor:"primaryDark.150",color:"primaryDark.600",fontSize:12,fontWeight:600,fontStyle:"normal",textTransform:"uppercase",letterSpacing:"0.55px",lineHeight:"16px","&:hover":{boxShadow:"6px 6px 15px 0px rgba(56, 69, 114, 0.10)"},".MuiSvgIcon-root":{color:"primaryDark.300",fontSize:20},"&.Mui-disabled":{bgcolor:"primaryDark.200",color:"primaryDark.400"}},Nd={bgcolor:"transparent",borderRadius:"999px",border:"1px solid",borderColor:"primaryDark.300",height:"31px",padding:"5px 3px"},_d=function(e){var t=e.sx,n=e.styleVariant,r=void 0===n?"default":n,o=e.tooltipTitle,i=Nn(e,Bd);return(0,u.jsx)(es.Z,{title:o,children:(0,u.jsx)(Fd.Z,(0,l.Z)((0,l.Z)({},i),{},{sx:(0,l.Z)((0,l.Z)((0,l.Z)({},Ld),"rounded"===r&&Nd),t)}))})},zd=["name","required","choices","shrink","displayElementsExternally","displayEntityNames","arrayPropName","renderCustomSelectedValue","arrayPropId","label","renderCustomMenuItem","withChips","placeholder","transformLabelFn"],Hd=function(e){var t,n,r,o,i=e.name,a=e.required,s=e.choices,c=(e.shrink,e.displayElementsExternally),d=(e.displayEntityNames,e.arrayPropName),p=void 0===d?"name":d,f=e.renderCustomSelectedValue,h=e.arrayPropId,m=void 0===h?"id":h,v=e.label,g=e.renderCustomMenuItem,y=e.withChips,b=e.placeholder,x=e.transformLabelFn,w=Nn(e,zd),C=Xc(),j=C.register,S=C.control,k=C.getFieldState,Z=C.formState,O=C.getValues,E=C.setValue,D=C.trigger,P=k(i),A=Dd().get(Z.errors,i)&&P.isTouched,M=O(i),T={margin:"0 0 24px 0",".MuiModal-root":{position:"absolute",zIndex:1,".MuiPaper-root":{top:"48px !important",left:"0 !important"}},".MuiOutlinedInput-root":{border:"1px solid ".concat(A?tr.Us[100]:tr.dx[100]),color:w.disabled||y?"primaryDark.300":"primaryDark.600",backgroundColor:A?"secondaryPink.100":"transparent",fontSize:"14px","&:not(.Mui-disabled)":{"&:hover":{backgroundColor:"primaryDark.150"}}},".MuiSelect-select":{padding:"0.844rem 0.75rem"},".Mui-focused":{borderColor:"secondaryYellow.500",boxShadow:"6px 6px 15px rgba(56, 69, 114, 0.1)"},".MuiFormHelperText-root":{marginTop:0,marginLeft:0,boxShadow:"none !important"},fieldset:{border:"0 !important"},".MuiMenuItem-root":{display:"flex",justifyContent:"space-between",fontSize:"16px",color:"primaryDark.500",fontFamily:"Gellix-SemiBold",padding:"8px 16px","&:hover":{color:"primaryDark.600 !important"},svg:{display:"none"}},".Mui-selected":{backgroundColor:"transparent !important",color:"primaryDark.600","&:hover":{backgroundColor:"primaryDark.200 !important"},svg:{display:"block"}},".Mui-disabled":{backgroundColor:"primaryDark.200",color:"primaryDark.300",border:"none"}};return(0,u.jsxs)(nn.Z,{sx:(0,l.Z)((0,l.Z)({},w.sx),T),children:[v&&(0,u.jsx)(Cd,{sx:{color:w.disabled?"primaryDark.300":"primaryDark.500"},text:v,required:a}),(0,u.jsx)(Od.Z,(0,l.Z)((0,l.Z)((0,l.Z)({},j(i,a?{required:"This field is required"}:{required:!1})),{},{variant:"outlined",displayEmpty:!0,value:cu({control:S,name:i}),IconComponent:zl.Z,endAdornment:A?(0,u.jsx)(wd.Z,{sx:{color:"secondaryPink.500",mr:3.5}}):null,MenuProps:{disablePortal:!0,disableScrollLock:!0,keepMounted:!1,PaperProps:{style:{maxHeight:224,width:250,boxShadow:"1px 10px 30px rgba(56, 69, 114, 0.1)",borderRadius:"8px"}}},renderValue:function(e){var t,n=null!==x&&void 0!==x?x:function(e){return e};return!e&&b||(null===e||void 0===e||!e.length)&&b?(0,u.jsx)("div",{style:{color:tr.IV[400]},children:b}):c?null:s instanceof Array&&p?w.multiple?e.map((function(e){var t;return n(null===(t=s[s.findIndex((function(t){return t[m]===e}))])||void 0===t?void 0:t[p])})).join(", "):f?f(s[s.findIndex((function(t){return t[m]===e}))]):n(null===(t=s[s.findIndex((function(t){return t[m]===e}))])||void 0===t?void 0:t[p]):s instanceof Map?w.multiple?n(e.map((function(e){return s.get(e)})).join(", ")):n(s.get(e)):void 0}},w),{},{children:s instanceof Map?Array.from(s,(function(e){var t=(0,Le.Z)(e,2),n=t[0],r=t[1];return(0,u.jsxs)(Nl.Z,{value:n,children:[x?x(r):r,(0,u.jsx)(Rd,{fill:tr.so[700]})]},n)})):s instanceof Array&&p?s.map((function(e){return g?g(e):(0,u.jsx)(Nl.Z,{value:e[m],children:e[p]})})):null})),(0,u.jsx)(u.Fragment,{children:A?(0,u.jsx)(nn.Z,{position:"relative",sx:{mb:1},children:(0,u.jsx)(rn.Z,{color:"secondaryPink.500",variant:"body4",sx:{position:"absolute",mt:1},children:(null!==(t=null===P||void 0===P||null===(n=P.error)||void 0===n||null===(r=n.message)||void 0===r?void 0:r.length)&&void 0!==t?t:0)>0?null===P||void 0===P||null===(o=P.error)||void 0===o?void 0:o.message:"This field is required"})}):""}),y&&null!==M&&void 0!==M&&M.length?(0,u.jsx)(nn.Z,{direction:"row",sx:{flexWrap:"wrap",gap:"10px",mt:"16px"},children:M.map((function(e){var t=s instanceof Map?s.get(e):"";return(0,u.jsx)(_d,{label:x?x(t):t,onDelete:function(){E(i,M.filter((function(t){return t!==e}))),D(i)}},e)}))}):null]})},Wd=function(e){var t,n=e.name,r=e.resource,o=e.multiple,i=e.filter,a=e.choiceLabel,s=e.label,l=e.placeholder,c=e.choiceFilter,d=hi({resource:"".concat(r,"?").concat(new URLSearchParams(i).toString())}).data,p=null!==(t=null===d||void 0===d?void 0:d.data.results)&&void 0!==t?t:[];c&&(p=c(p));var f=new Map(p.map((function(e){return[e.id,e]})));return(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(Hd,{multiple:o,choices:f,defaultValue:o?[]:null,label:s,placeholder:l,name:n,withChips:o,transformLabelFn:a,renderCustomMenuItem:function(e){return(0,u.jsx)(Nl.Z,{value:e.id,children:a(e)},e.id)}})})},Vd={pink:{background:tr.Us[100],foreground:tr.Us[700]},blue:{background:tr.dx[100],foreground:tr.dx[700]}},Ud=function(e){var t=e.Icon,n=e.variant,r=Vd[n],o=r.background,i=r.foreground;return(0,u.jsx)(tn,{display:"flex",alignItems:"center",justifyContent:"center",sx:{backgroundColor:o,width:"40px",height:"40px",borderRadius:"4px"},children:(0,u.jsx)(t,{fill:i,style:{width:20,height:20}})})},qd=function(e){var t=e.open,n=e.onClose,r=e.spaceId,o=Pa(),i=(0,Ms.J)(),a=fd({defaultValues:{name:"",users:[]}}),s=oa({resource:"channels"}).mutate;return(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(ys,{open:t,onClose:n,children:(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},a),{},{children:(0,u.jsx)("form",{onSubmit:a.handleSubmit((function(e){s({name:e.name,users:e.users,space:r},{onSuccess:function(){i(),a.reset(),null===n||void 0===n||n()}})})),children:(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",spacing:2,width:"100%",children:[(0,u.jsx)(Ud,{Icon:bd,variant:"blue"}),(0,u.jsx)(rn.Z,{variant:"heading3",children:"Create a new channel"})]}),(0,u.jsx)(un,{}),(0,u.jsx)(nn.Z,{direction:"column",spacing:3,children:(0,u.jsx)(nn.Z,{direction:"row",children:(0,u.jsxs)(nn.Z,{direction:"column",sx:{width:"100%"},spacing:3,children:[(0,u.jsx)(Zd,{placeholder:"New channel",name:"name",required:!0,label:"Channel name"}),(0,u.jsx)(Wd,{name:"users",resource:"users",multiple:!0,filter:{space:r},choiceFilter:function(e){return e.filter((function(e){return e.id!==(null===o||void 0===o?void 0:o.id)}))},choiceLabel:function(e){return"".concat(e.firstName," ").concat(e.lastName)},label:"Participants",placeholder:"Add Participants"})]})})}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",sx:{justifyContent:"right"},children:[(0,u.jsx)(Wo,{variant:"secondary",onClick:n,children:"Cancel"}),(0,u.jsx)(Wo,{type:"submit",children:"Create"})]})]})})}))})})},Gd=function(e){var t=e.spaceId,n=(0,o.useState)(!1),r=(0,Le.Z)(n,2),i=r[0],a=r[1];return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(io.Z,{sx:{p:0},disableRipple:!0,onClick:function(){return a(!0)},children:(0,u.jsx)(xc,{})}),(0,u.jsx)(qd,{spaceId:t,open:i,onClose:function(){return a(!1)}})]})},Yd=function(){var e,t,n=Pa(),r=(0,o.useState)(null),i=(0,Le.Z)(r,2),a=i[0],s=i[1],l=Ra({resource:"companies",id:null===n||void 0===n||null===(e=n.membership)||void 0===e?void 0:e.company,enabled:!!n&&!(null===(t=n.membership)||void 0===t||!t.company),refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1}).data;return(0,o.useEffect)((function(){s(null===l||void 0===l?void 0:l.roles)}),[l]),a},Kd=function(e){var t,n,r,o,i,a,s,l=e.space,c=Pa(),d=mc(),p=null===(t=Yd())||void 0===t?void 0:t.includes(Kt.ks.Buyer),f=null===(n=Pa())||void 0===n?void 0:n.roles.includes(Kt.vX.Admin);if(l.project)i=p?null===(a=l.project)||void 0===a?void 0:a.seller:null===(s=l.project)||void 0===s?void 0:s.buyer;else if(l.pitch){var h,m;i=p?null===(h=l.pitch)||void 0===h?void 0:h.seller:null===(m=l.pitch)||void 0===m?void 0:m.buyer}else l.supportCompany&&f&&(i=l.supportCompany);var v=hi({resource:"channels?space=".concat(l.id)}).data,g=null!==(r=null===v||void 0===v?void 0:v.data.results)&&void 0!==r?r:[],y=hi({resource:"users?space=".concat(l.id)}).data,b=null!==(o=null===y||void 0===y?void 0:y.data.results)&&void 0!==o?o:[],x=g.some((function(e){return e.id===d.currentChannelId}));return(0,u.jsxs)(nn.Z,{direction:"column",sx:{backgroundColor:x?"secondaryBlue.50":null},children:[(0,u.jsxs)(nn.Z,{padding:3,spacing:1,direction:"column",children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{px:3.5,variant:"heading4",color:x?"secondaryBlue.700":"primaryDark.600",children:l.name}),(l.pitch||l.project)&&(0,u.jsx)(Gd,{spaceId:l.id})]}),i&&(0,u.jsxs)(nn.Z,{direction:"row",gap:1,alignItems:"center",children:[(0,u.jsx)(Ca,{variant:"rounded",sx:{width:20,height:20},src:i.avatar}),(0,u.jsx)(rn.Z,{variant:"bodyMedium3",color:"primaryDark.500",children:i.name})]}),(0,u.jsx)(nn.Z,{direction:"column",children:g.map((function(e){return(0,u.jsx)(nn.Z,{direction:"row",children:(0,u.jsx)(ko.Z,{onClick:function(){d.navigateTo(e.id)},fullWidth:!0,sx:{height:"40px",px:4.5,backgroundColor:e.id===d.currentChannelId?"secondaryBlue.100":"transparent",borderRadius:"4px",justifyContent:"flex-start"},startIcon:(0,u.jsx)(hc,{}),children:(0,u.jsx)(rn.Z,{variant:e.id===d.currentChannelId?"bodySemiBold3":"body3",children:e.name})})})}))}),(0,u.jsx)(nn.Z,{direction:"column",children:b.filter((function(e){return e.id!==(null===c||void 0===c?void 0:c.id)})).map((function(e){return(0,u.jsx)(nn.Z,{direction:"row",children:(0,u.jsx)(ko.Z,{onClick:ds(hs().mark((function t(){var n;return hs().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.channel){t.next=7;break}return t.next=3,pi.Z.post("/channels/direct",{user:e.id,space:l.id});case 3:n=t.sent,d.navigateTo(n.data.id),t.next=8;break;case 7:d.navigateTo(e.channel);case 8:case"end":return t.stop()}}),t)}))),fullWidth:!0,sx:{height:"40px",px:4.5,backgroundColor:e.channel===d.currentChannelId?"secondaryBlue.100":"transparent",borderRadius:"4px",justifyContent:"flex-start"},startIcon:(0,u.jsx)(Ca,{sx:{width:"24px",height:"24px"},children:e.firstName[0]}),children:(0,u.jsxs)(rn.Z,{variant:e.channel===d.currentChannelId?"bodySemiBold3":"body3",children:[e.firstName," ",e.lastName]})})})}))})]}),(0,u.jsx)(un,{color:"secondaryBlue.100"})]})},Jd=["title","titleId"];function Xd(){return Xd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xd.apply(this,arguments)}function Qd(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function $d(e,t){var n=e.title,r=e.titleId,i=Qd(e,Jd);return o.createElement("svg",Xd({width:20,height:21,viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,Id||(Id=o.createElement("path",{d:"M10 0.5C4.477 0.5 0 4.977 0 10.5C0 16.023 4.477 20.5 10 20.5C15.523 20.5 20 16.023 20 10.5C20 4.977 15.523 0.5 10 0.5ZM10 5.5C11.655 5.5 12.994 6.844 13 8.5C13.004 9.609 12.484 10.544 11.625 11.406C11.445 11.587 11.272 11.761 11.062 11.938C10.963 12.022 10.686 12.225 10.656 12.25C10.234 12.606 9.606 12.579 9.25 12.156C8.894 11.734 8.953 11.075 9.375 10.719C9.421 10.68 9.666 10.477 9.75 10.406C9.918 10.265 10.085 10.134 10.219 10C10.738 9.478 11.002 8.978 11 8.5C10.998 7.944 10.551 7.5 10 7.5C9.543 7.5 9.14601 7.816 9.03101 8.25C8.89001 8.784 8.346 9.10999 7.812 8.96899C7.279 8.82799 6.95299 8.25299 7.09399 7.71899C7.43899 6.41199 8.63 5.5 10 5.5ZM10 13.5C10.552 13.5 11 13.948 11 14.5C11 15.052 10.552 15.5 10 15.5C9.448 15.5 9 15.052 9 14.5C9 13.948 9.448 13.5 10 13.5Z",fill:"#384572"})))}var ep,tp=o.forwardRef($d),np=(n.p,["title","titleId"]);function rp(){return rp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rp.apply(this,arguments)}function op(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ip(e,t){var n=e.title,r=e.titleId,i=op(e,np);return o.createElement("svg",rp({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,ep||(ep=o.createElement("g",{id:"x"},o.createElement("path",{id:"Vector",d:"M3.32972 2.604C3.15912 2.604 2.98072 2.66134 2.85052 2.79134C2.59019 3.05201 2.59019 3.48933 2.85052 3.75L7.03806 7.93734L2.85052 12.1247C2.59019 12.3853 2.59019 12.8227 2.85052 13.0833C3.11092 13.3433 3.54852 13.3433 3.80892 13.0833L7.99639 8.89601L12.1839 13.0833C12.4443 13.3433 12.8819 13.3433 13.1423 13.0833C13.4026 12.8227 13.4026 12.3853 13.1423 12.1247L8.95472 7.93734L13.1423 3.75C13.4026 3.48933 13.4026 3.05201 13.1423 2.79134C13.0121 2.66134 12.8336 2.604 12.6631 2.604C12.4925 2.604 12.3141 2.66134 12.1839 2.79134L7.99639 6.97867L3.80892 2.79134C3.67872 2.66134 3.50032 2.604 3.32972 2.604Z",fill:"black"}))))}var ap,sp=o.forwardRef(ip),lp=(n.p,["title","titleId"]);function cp(){return cp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cp.apply(this,arguments)}function up(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function dp(e,t){var n=e.title,r=e.titleId,i=up(e,lp);return o.createElement("svg",cp({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,ap||(ap=o.createElement("g",{id:"life-preserver-2-fill"},o.createElement("path",{id:"Vector",d:"M11.999 1.95312C10.618 1.95312 9.49902 3.07212 9.49902 4.45312C9.49902 5.83413 10.618 6.95312 11.999 6.95312C13.705 6.95312 15.316 7.88712 16.061 9.04712C16.875 8.05412 18.761 6.90713 21.061 7.73413C19.473 4.31313 16.019 1.95312 11.999 1.95312ZM7.78003 2.85913C4.35903 4.44813 1.99902 7.93313 1.99902 11.9531C1.99902 13.3341 3.11802 14.4531 4.49902 14.4531C5.88002 14.4531 6.99902 13.3341 6.99902 11.9531C6.99902 10.2471 7.78602 8.84711 9.09302 7.89111C7.59802 6.69011 7.12703 4.50213 7.78003 2.85913ZM19.499 9.45312C18.118 9.45312 16.999 10.5721 16.999 11.9531C16.999 13.6591 16.136 15.1151 14.905 16.0151C16.131 17.0211 16.947 18.9191 16.218 21.0151C19.639 19.4271 21.999 15.9731 21.999 11.9531C21.999 10.5721 20.88 9.45312 19.499 9.45312ZM7.93604 14.8911C6.84304 16.1541 4.88903 16.9071 2.90503 16.1721C4.49403 19.5931 7.97902 21.9531 11.999 21.9531C13.38 21.9531 14.499 20.8341 14.499 19.4531C14.499 18.0721 13.38 16.9531 11.999 16.9531C10.293 16.9531 8.90204 16.1601 7.93604 14.8911Z",fill:"#384572"}))))}var pp,fp=o.forwardRef(dp),hp=(n.p,["title","titleId"]);function mp(){return mp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mp.apply(this,arguments)}function vp(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function gp(e,t){var n=e.title,r=e.titleId,i=vp(e,hp);return o.createElement("svg",mp({width:20,height:24,viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,pp||(pp=o.createElement("g",{id:"cash2-fill"},o.createElement("path",{id:"Vector",d:"M3.31397 4.99707C1.93313 4.99707 0.813965 6.34017 0.813965 7.99707V15.9971C0.813965 17.6541 1.93313 18.9971 3.31397 18.9971H16.6473C18.0281 18.9971 19.1473 17.6541 19.1473 15.9971V7.99707C19.1473 6.34017 18.0281 4.99707 16.6473 4.99707H3.31397ZM3.31397 6.99707H4.98063C5.44063 6.99707 5.81397 7.44477 5.81397 7.99707C5.81397 8.54937 5.44063 8.99707 4.98063 8.99707H4.1473C4.1473 9.54937 3.77397 9.99707 3.31397 9.99707C2.85397 9.99707 2.48063 9.54937 2.48063 8.99707V7.99707C2.48063 7.44477 2.85397 6.99707 3.31397 6.99707ZM14.9806 6.99707H16.6473C17.1073 6.99707 17.4806 7.44477 17.4806 7.99707V8.99707C17.4806 9.54937 17.1073 9.99707 16.6473 9.99707C16.1873 9.99707 15.814 9.54937 15.814 8.99707H14.9806C14.5206 8.99707 14.1473 8.54937 14.1473 7.99707C14.1473 7.44477 14.5206 6.99707 14.9806 6.99707ZM9.98064 8.99707C11.3615 8.99707 12.4806 10.3401 12.4806 11.9971C12.4806 13.6541 11.3615 14.9971 9.98064 14.9971C8.5998 14.9971 7.48064 13.6541 7.48064 11.9971C7.48064 10.3401 8.5998 8.99707 9.98064 8.99707ZM9.98064 10.9971C9.52064 10.9971 9.1473 11.4451 9.1473 11.9971C9.1473 12.5491 9.52064 12.9971 9.98064 12.9971C10.4406 12.9971 10.814 12.5491 10.814 11.9971C10.814 11.4451 10.4406 10.9971 9.98064 10.9971ZM3.31397 13.9971C3.77397 13.9971 4.1473 14.4451 4.1473 14.9971H4.98063C5.44063 14.9971 5.81397 15.4451 5.81397 15.9971C5.81397 16.5491 5.44063 16.9971 4.98063 16.9971H3.31397C2.85397 16.9971 2.48063 16.5491 2.48063 15.9971V14.9971C2.48063 14.4451 2.85397 13.9971 3.31397 13.9971ZM16.6473 13.9971C17.1073 13.9971 17.4806 14.4451 17.4806 14.9971V15.9971C17.4806 16.5491 17.1073 16.9971 16.6473 16.9971H14.9806C14.5206 16.9971 14.1473 16.5491 14.1473 15.9971C14.1473 15.4451 14.5206 14.9971 14.9806 14.9971H15.814C15.814 14.4451 16.1873 13.9971 16.6473 13.9971Z",fill:"#4051EC"}))))}var yp,bp,xp=o.forwardRef(gp),wp=(n.p,["title","titleId"]);function Cp(){return Cp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cp.apply(this,arguments)}function jp(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Sp(e,t){var n=e.title,r=e.titleId,i=jp(e,wp);return o.createElement("svg",Cp({width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,yp||(yp=o.createElement("rect",{width:40,height:40,rx:4,fill:"#E5E8FF"})),bp||(bp=o.createElement("path",{d:"M11.9985 12.4922C11.4462 12.4922 10.9985 12.8655 10.9985 13.3255V24.1589C10.9985 25.9997 12.7894 27.4922 14.9985 27.4922H27.9985C28.5505 27.4922 28.9985 27.1189 28.9985 26.6589C28.9985 26.1989 28.5505 25.8255 27.9985 25.8255H14.9985C13.8939 25.8255 12.9985 25.0797 12.9985 24.1589V13.3255C12.9985 12.8655 12.5508 12.4922 11.9985 12.4922ZM21.9985 14.1589V15.8255H25.5605L22.7795 18.143C22.6895 18.2189 22.4085 18.3255 22.2795 18.3255H20.7175C20.0585 18.3255 19.2455 18.588 18.7795 18.9764L15.2797 21.893C14.8892 22.2189 14.8892 22.7655 15.2797 23.0913C15.475 23.2538 15.7426 23.3255 15.9985 23.3255C16.2544 23.3255 16.522 23.2538 16.7173 23.0913L20.2175 20.1747C20.3075 20.0988 20.5885 19.9922 20.7175 19.9922H22.2795C22.9385 19.9922 23.7515 19.7297 24.2175 19.3413L26.9985 17.0238V19.9922H28.9985V14.9922C28.9985 14.5322 28.5505 14.1589 27.9985 14.1589H21.9985Z",fill:"#4051EC"})))}var kp,Zp=o.forwardRef(Sp),Op=(n.p,["title","titleId"]);function Ep(){return Ep=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ep.apply(this,arguments)}function Dp(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Pp(e,t){var n=e.title,r=e.titleId,i=Dp(e,Op);return o.createElement("svg",Ep({width:24,height:20,viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,kp||(kp=o.createElement("g",{id:"Icons"},o.createElement("g",{id:"Group 55"},o.createElement("path",{id:"Vector",d:"M21.3721 11.5032C20.9805 11.3453 20.4244 10.9963 19.3019 10.2835C18.2466 9.61335 16.8021 8.6957 16.1082 8.42723C14.8335 7.9336 12.9115 7.0753 12.2429 6.77416C11.2149 6.78989 10.1399 6.80859 9.54556 6.8221C9.52384 6.85697 9.50228 6.892 9.48269 6.92361C9.05151 7.62534 8.39966 8.68562 7.32288 9.04463C6.95421 9.16708 6.5063 9.23505 6.06194 9.23505C5.35597 9.23505 4.8243 9.05917 4.52511 8.72687C4.3187 8.49756 4.24051 8.21333 4.30338 7.93312C4.39848 7.15659 4.65281 5.61769 5.23271 4.60072C4.71678 4.40318 3.89892 4.05899 3.25901 3.78577C2.72383 3.55691 2.36155 3.78399 2.36155 3.78399C2.10009 3.90644 1.97507 4.18799 1.97507 4.18799L0.133676 8.57106C0.133676 8.57106 -0.0342729 9.01837 0.00633281 9.24812C0.0383906 9.42934 0.0875442 9.61694 0.505902 9.87162C1.00958 10.1771 1.65267 10.6067 2.04236 11.0132C2.33872 11.3218 2.41139 11.7212 2.55438 12.159C2.93516 11.7872 3.46092 11.5224 4.07338 11.5224C4.20072 11.5224 4.32824 11.534 4.45131 11.5576C5.09869 11.6805 5.55946 12.0755 5.81041 12.555C6.03072 12.4889 6.25851 12.4502 6.48574 12.4502C6.80828 12.4502 7.12405 12.522 7.39866 12.6574C7.78407 12.8475 8.03948 13.1338 8.17216 13.4749C8.30004 13.4528 8.42969 13.4376 8.56273 13.4376C8.92 13.4376 9.27709 13.5227 9.59698 13.6831C10.2041 13.9903 10.477 14.5494 10.41 15.2482C10.7062 15.26 10.9828 15.3241 11.214 15.4409C12.0063 15.8439 12.199 16.8754 11.9786 17.6421L11.9659 17.6871L11.9486 17.7272C12.0792 17.8222 12.2126 17.9149 12.3075 17.9424C13.9135 18.5108 14.7965 17.3339 14.5813 16.7561C15.1432 17.0908 16.2857 16.925 16.8289 16.4546C17.3723 15.9851 17.1082 15.1597 17.1082 15.1597C17.1082 15.1597 18.6046 15.8729 19.6889 14.9838C20.3933 14.4071 19.834 13.6904 19.834 13.6904C19.834 13.6904 21.2526 14.1655 21.918 13.3781C22.5486 12.6333 22.1502 12.0534 21.3721 11.5032Z",fill:"#4051EC"}),o.createElement("path",{id:"Vector_2",d:"M10.3256 18.062C10.1457 18.0511 9.9678 18.0036 9.80575 17.9163C9.29478 17.6396 9.17865 17.146 9.5101 16.7199L9.60396 16.5743C9.93612 16.1484 10.7215 15.9738 11.0922 16.1613C11.4001 16.3179 11.5479 16.9325 11.4001 17.4461L11.3622 17.5341C11.0241 18.0457 10.7142 18.0858 10.3257 18.0621L10.3256 18.062Z",fill:"#4051EC"}),o.createElement("path",{id:"Vector_3",d:"M5.30373 8.06577C5.30373 8.06577 5.6537 5.12889 6.51871 4.48967C7.38303 3.85044 8.06105 3.66461 9.23705 3.49854C10.4123 3.33231 12.9588 2.61649 13.8374 2.82991C14.7155 3.04363 16.1736 3.37369 17.0438 3.51632C17.9148 3.65984 18.9471 4.19517 19.4634 4.22458C19.7559 4.2409 20.4743 3.95446 21.0541 3.72514C21.3492 3.60848 21.6117 3.68699 21.796 3.7894C22.0836 3.94925 22.1675 4.23497 22.1675 4.23497L23.9332 8.81371C23.9332 8.81371 24.0251 9.06899 23.9929 9.26592C23.9685 9.41686 23.9122 9.58784 23.5646 9.77797C22.9419 10.1189 22.0571 10.6195 21.9641 10.7645C21.819 10.9889 18.0547 8.25108 16.5344 7.66273C15.0143 7.07442 12.4901 5.92698 12.4901 5.92698C12.4901 5.92698 9.25257 5.97581 8.9988 5.99644C8.74483 6.01663 8.05114 7.89394 6.94709 8.26142C6.29615 8.4784 5.17536 8.43195 5.30357 8.06581L5.30373 8.06577Z",fill:"#4051EC"}),o.createElement("path",{id:"Vector_4",d:"M3.87384 14.6922C3.81827 14.6891 3.7636 14.6824 3.70821 14.6719C3.1139 14.5592 2.74113 14.0668 2.87558 13.5708L2.93988 13.3366C3.07434 12.8407 3.63217 12.2662 4.22667 12.3797C4.82116 12.4927 5.12249 13.1843 4.98753 13.6802L4.92645 14.0094C4.80427 14.4586 4.40941 14.7252 3.87387 14.6923L3.87384 14.6922Z",fill:"#4051EC"}),o.createElement("path",{id:"Vector_5",d:"M5.71822 15.9249C5.55401 15.9148 5.43878 15.922 5.28633 15.847C4.762 15.5883 4.53868 14.9758 4.84963 14.5384L5.36451 13.9028C5.67601 13.465 6.35868 13.1243 6.88406 13.3832C7.40893 13.6419 7.31399 14.2513 7.07926 14.7053L6.66535 15.4358C6.44504 15.7461 6.1227 15.9493 5.71824 15.925L5.71822 15.9249Z",fill:"#4051EC"}),o.createElement("path",{id:"Vector_6",d:"M8.23967 16.9599C8.07065 16.9493 7.9027 16.9067 7.74776 16.8288C7.22662 16.5652 7.0603 15.9996 7.3766 15.5649L8.06014 14.7513C8.3768 14.3171 8.95546 14.142 9.47673 14.405C9.99769 14.6681 9.82314 15.4182 9.60176 15.9013L9.26426 16.5191C9.04235 16.8251 8.63989 16.9837 8.23967 16.9599Z",fill:"#4051EC"})))))}var Ap,Mp=o.forwardRef(Pp),Tp=(n.p,["title","titleId"]);function Ip(){return Ip=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ip.apply(this,arguments)}function Rp(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Fp(e,t){var n=e.title,r=e.titleId,i=Rp(e,Tp);return o.createElement("svg",Ip({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,Ap||(Ap=o.createElement("g",{id:"Icons"},o.createElement("path",{id:"Vector",d:"M9.60699 4.94L6.55366 8L9.60699 11.06L8.66699 12L4.66699 8L8.66699 4L9.60699 4.94Z",fill:"#384572"}))))}var Bp=o.forwardRef(Fp),Lp=(n.p,function(){var e=(0,Ms.J)(),t=mc(),n=(0,o.useState)(""),r=(0,Le.Z)(n,2),i=r[0],a=r[1],s=Xe(),c=(0,Le.Z)(s,2),d=c[0],p=c[1],f=function(){d.delete("showSupport"),p(d)},h=fd({defaultValues:{body:""}}),m=oa({resource:"messages/support"}).mutate;return i?(0,u.jsxs)(nn.Z,{gap:3,children:[(0,u.jsxs)(nn.Z,{px:3,py:1,direction:"row",alignItems:"center",borderBottom:"1px solid",borderColor:"secondaryBlue.100",gap:1.5,children:[(0,u.jsx)(io.Z,{disableRipple:!0,onClick:function(){return a("")},sx:{p:0},children:(0,u.jsx)(Bp,{})}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.600",children:i})]}),(0,u.jsxs)(nn.Z,{px:3,gap:1,children:[(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.500",children:"how can we help you?"}),(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},h),{},{children:(0,u.jsx)("form",{onSubmit:h.handleSubmit((function(n){m({body:n.body,topic:i},{onSuccess:function(n){t.navigateTo(n.data.channel),e(),h.reset(),f()}})})),children:(0,u.jsxs)(nn.Z,{gap:1.5,children:[(0,u.jsx)(Zd,{name:"body",multiline:!0,sx:{backgroundColor:"#fff"}}),(0,u.jsx)(nn.Z,{direction:"row",justifyContent:"right",children:(0,u.jsx)(Wo,{type:"submit",children:"Send"})})]})})}))]})]}):(0,u.jsxs)(nn.Z,{gap:3,children:[(0,u.jsxs)(nn.Z,{px:3,py:1,direction:"row",alignItems:"center",justifyContent:"space-between",borderBottom:"1px solid",borderColor:"secondaryBlue.100",children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.600",children:"support"}),(0,u.jsx)(io.Z,{disableRipple:!0,onClick:function(){return f()},sx:{p:0},children:(0,u.jsx)(sp,{})})]}),(0,u.jsxs)(nn.Z,{gap:1.5,children:[(0,u.jsxs)(nn.Z,{direction:"row",px:3,gap:1,alignItems:"center",children:[(0,u.jsx)(fp,{}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.600",children:"help topics"})]}),(0,u.jsx)(ko.Z,{sx:{borderRadius:0,px:3,justifyContent:"flex-start"},fullWidth:!0,disableRipple:!0,onClick:function(){return a("hire")},children:(0,u.jsxs)(nn.Z,{direction:"row",gap:2,alignItems:"center",children:[(0,u.jsx)(Ud,{variant:"blue",Icon:Mp}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.600",children:"hire"})]})}),(0,u.jsx)(ko.Z,{sx:{borderRadius:0,px:3,justifyContent:"flex-start"},fullWidth:!0,disableRipple:!0,onClick:function(){return a("manage")},children:(0,u.jsxs)(nn.Z,{direction:"row",gap:2,alignItems:"center",children:[(0,u.jsx)(Ud,{variant:"blue",Icon:Zp}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.600",children:"manage"})]})}),(0,u.jsx)(ko.Z,{sx:{borderRadius:0,px:3,justifyContent:"flex-start"},fullWidth:!0,disableRipple:!0,onClick:function(){return a("manage")},children:(0,u.jsxs)(nn.Z,{direction:"row",gap:2,alignItems:"center",children:[(0,u.jsx)(Ud,{variant:"blue",Icon:xp}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.600",children:"finance"})]})})]}),(0,u.jsx)(nn.Z,{direction:"row",justifyContent:"space-between"})]})}),Np=function(){var e,t,n=null===(e=Pa())||void 0===e?void 0:e.roles.includes(Kt.vX.Admin),r=Xe(),o=(0,Le.Z)(r,2),i=o[0],a=o[1],s=hi({resource:"spaces"}).data,l=null!==(t=null===s||void 0===s?void 0:s.data.results)&&void 0!==t?t:[];return(0,u.jsx)(nn.Z,{width:"375px",direction:"column",overflow:"auto",sx:{backgroundColor:"primaryDark.150"},children:"true"===i.get("showSupport")?(0,u.jsx)(Lp,{}):(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(nn.Z,{px:3,py:1,direction:"row",alignItems:"center",justifyContent:"space-between",children:(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.600",children:"Spaces"})}),(0,u.jsx)(un,{color:"secondaryBlue.100"}),(0,u.jsx)(nn.Z,{direction:"row",justifyContent:"space-between"}),l.map((function(e){return(0,u.jsx)(Kd,{space:e})})),!n&&(0,u.jsx)(nn.Z,{direction:"row",px:3,py:2,children:(0,u.jsx)(Wo,{variant:"primaryText",disableRipple:!0,onClick:function(){a(Ue({showSupport:"true"}).toString())},children:(0,u.jsxs)(nn.Z,{direction:"row",gap:1,alignItems:"center",children:[(0,u.jsx)(tp,{}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.600",children:"support"})]})})})]})})},_p=["resource"],zp=function(e){var t=e.resource,n=Nn(e,_p);return(0,Yt.useQuery)((0,l.Z)({queryKey:["".concat(t)],queryFn:function(){return pi.Z.get(t)}},n))};function Hp(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){e.done?o(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function Wp(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(s){i=[6,s],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}Object.create;function Vp(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}Object.create;var Up=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function qp(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=Up.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!==typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"===typeof t?t:"string"===typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var Gp=[".DS_Store","Thumbs.db"];function Yp(e){return"object"===typeof e&&null!==e}function Kp(e){return $p(e.target.files).map((function(e){return qp(e)}))}function Jp(e){return Hp(this,void 0,void 0,(function(){return Wp(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return qp(e)}))]}}))}))}function Xp(e,t){return Hp(this,void 0,void 0,(function(){var n;return Wp(this,(function(r){switch(r.label){case 0:return null===e?[2,[]]:e.items?(n=$p(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(ef))]):[3,2];case 1:return[2,Qp(tf(r.sent()))];case 2:return[2,Qp($p(e.files).map((function(e){return qp(e)})))]}}))}))}function Qp(e){return e.filter((function(e){return-1===Gp.indexOf(e.name)}))}function $p(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function ef(e){if("function"!==typeof e.webkitGetAsEntry)return nf(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?of(t):nf(e)}function tf(e){return e.reduce((function(e,t){return function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Vp(arguments[t]));return e}(e,Array.isArray(t)?tf(t):[t])}),[])}function nf(e){var t=e.getAsFile();if(!t)return Promise.reject(e+" is not a File");var n=qp(t);return Promise.resolve(n)}function rf(e){return Hp(this,void 0,void 0,(function(){return Wp(this,(function(t){return[2,e.isDirectory?of(e):af(e)]}))}))}function of(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var i=this;t.readEntries((function(t){return Hp(i,void 0,void 0,(function(){var i,a,s;return Wp(this,(function(l){switch(l.label){case 0:if(t.length)return[3,5];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return i=l.sent(),e(i),[3,4];case 3:return a=l.sent(),n(a),[3,4];case 4:return[3,6];case 5:s=Promise.all(t.map(rf)),r.push(s),o(),l.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function af(e){return Hp(this,void 0,void 0,(function(){return Wp(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=qp(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var sf=n(31147);function lf(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 cf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lf(Object(n),!0).forEach((function(t){uf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function uf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function df(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(l){s=!0,o=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return pf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pf(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ff="file-invalid-type",hf="file-too-large",mf="file-too-small",vf="too-many-files",gf=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:ff,message:"File type must be ".concat(t)}},yf=function(e){return{code:hf,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},bf=function(e){return{code:mf,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},xf={code:vf,message:"Too many files"};function wf(e,t){var n="application/x-moz-file"===e.type||(0,sf.Z)(e,t);return[n,n?null:gf(t)]}function Cf(e,t,n){if(jf(e.size))if(jf(t)&&jf(n)){if(e.size>n)return[!1,yf(n)];if(e.size<t)return[!1,bf(t)]}else{if(jf(t)&&e.size<t)return[!1,bf(t)];if(jf(n)&&e.size>n)return[!1,yf(n)]}return[!0,null]}function jf(e){return void 0!==e&&null!==e}function Sf(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles;return!(!i&&t.length>1||i&&a>=1&&t.length>a)&&t.every((function(e){var t=df(wf(e,n),1)[0],i=df(Cf(e,r,o),1)[0];return t&&i}))}function kf(e){return"function"===typeof e.isPropagationStopped?e.isPropagationStopped():"undefined"!==typeof e.cancelBubble&&e.cancelBubble}function Zf(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function Of(e){e.preventDefault()}function Ef(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function Df(e){return-1!==e.indexOf("Edge/")}function Pf(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return Ef(e)||Df(e)}function Af(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return!kf(e)&&t&&t.apply(void 0,[e].concat(r)),kf(e)}))}}function Mf(){return"showOpenFilePicker"in window}function Tf(e){return e="string"===typeof e?e.split(","):e,[{description:"everything",accept:Array.isArray(e)?e.filter((function(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)})).reduce((function(e,t){return cf(cf({},e),{},uf({},t,[]))}),{}):{}}]}var If=["children"],Rf=["open"],Ff=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Bf=["refKey","onChange","onClick"];function Lf(e){return function(e){if(Array.isArray(e))return zf(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_f(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(l){s=!0,o=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||_f(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _f(e,t){if(e){if("string"===typeof e)return zf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zf(e,t):void 0}}function zf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hf(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 Wf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hf(Object(n),!0).forEach((function(t){Vf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uf(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var qf=(0,o.forwardRef)((function(e,t){var n=e.children,r=Qf(Uf(e,If)),i=r.open,a=Uf(r,Rf);return(0,o.useImperativeHandle)(t,(function(){return{open:i}}),[i]),o.createElement(o.Fragment,null,n(Wf(Wf({},a),{},{open:i})))}));qf.displayName="Dropzone";var Gf={disabled:!1,getFilesFromEvent:function(e){return Hp(this,void 0,void 0,(function(){return Wp(this,(function(t){return Yp(e)&&function(e){return Yp(e.dataTransfer)}(e)?[2,Xp(e.dataTransfer,e.type)]:function(e){return Yp(e)&&Yp(e.target)}(e)?[2,Kp(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"===typeof e.getFile}))?[2,Jp(e)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1};qf.defaultProps=Gf,qf.propTypes={children:$e().func,accept:$e().oneOfType([$e().string,$e().arrayOf($e().string)]),multiple:$e().bool,preventDropOnDocument:$e().bool,noClick:$e().bool,noKeyboard:$e().bool,noDrag:$e().bool,noDragEventsBubbling:$e().bool,minSize:$e().number,maxSize:$e().number,maxFiles:$e().number,disabled:$e().bool,getFilesFromEvent:$e().func,onFileDialogCancel:$e().func,onFileDialogOpen:$e().func,useFsAccessApi:$e().bool,onDragEnter:$e().func,onDragLeave:$e().func,onDragOver:$e().func,onDrop:$e().func,onDropAccepted:$e().func,onDropRejected:$e().func,validator:$e().func};var Yf,Kf,Jf=qf,Xf={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function Qf(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Wf(Wf({},Gf),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,a=t.maxSize,s=t.minSize,l=t.multiple,c=t.maxFiles,u=t.onDragEnter,d=t.onDragLeave,p=t.onDragOver,f=t.onDrop,h=t.onDropAccepted,m=t.onDropRejected,v=t.onFileDialogCancel,g=t.onFileDialogOpen,y=t.useFsAccessApi,b=t.preventDropOnDocument,x=t.noClick,w=t.noKeyboard,C=t.noDrag,j=t.noDragEventsBubbling,S=t.validator,k=(0,o.useMemo)((function(){return"function"===typeof g?g:eh}),[g]),Z=(0,o.useMemo)((function(){return"function"===typeof v?v:eh}),[v]),O=(0,o.useRef)(null),E=(0,o.useRef)(null),D=(0,o.useReducer)($f,Xf),P=Nf(D,2),A=P[0],M=P[1],T=A.isFocused,I=A.isFileDialogActive,R=A.draggedFiles,F=function(){I&&setTimeout((function(){E.current&&(E.current.files.length||(M({type:"closeDialog"}),Z()))}),300)};(0,o.useEffect)((function(){return y&&Mf()?function(){}:(window.addEventListener("focus",F,!1),function(){window.removeEventListener("focus",F,!1)})}),[E,I,Z,y]);var B=(0,o.useRef)([]),L=function(e){O.current&&O.current.contains(e.target)||(e.preventDefault(),B.current=[])};(0,o.useEffect)((function(){return b&&(document.addEventListener("dragover",Of,!1),document.addEventListener("drop",L,!1)),function(){b&&(document.removeEventListener("dragover",Of),document.removeEventListener("drop",L))}}),[O,b]);var N=(0,o.useCallback)((function(e){e.preventDefault(),e.persist(),Q(e),B.current=[].concat(Lf(B.current),[e.target]),Zf(e)&&Promise.resolve(i(e)).then((function(t){kf(e)&&!j||(M({draggedFiles:t,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e))}))}),[i,u,j]),_=(0,o.useCallback)((function(e){e.preventDefault(),e.persist(),Q(e);var t=Zf(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(n){}return t&&p&&p(e),!1}),[p,j]),z=(0,o.useCallback)((function(e){e.preventDefault(),e.persist(),Q(e);var t=B.current.filter((function(e){return O.current&&O.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),B.current=t,t.length>0||(M({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),Zf(e)&&d&&d(e))}),[O,d,j]),H=(0,o.useCallback)((function(e,t){var r=[],o=[];e.forEach((function(e){var t=Nf(wf(e,n),2),i=t[0],l=t[1],c=Nf(Cf(e,s,a),2),u=c[0],d=c[1],p=S?S(e):null;if(i&&u&&!p)r.push(e);else{var f=[l,d];p&&(f=f.concat(p)),o.push({file:e,errors:f.filter((function(e){return e}))})}})),(!l&&r.length>1||l&&c>=1&&r.length>c)&&(r.forEach((function(e){o.push({file:e,errors:[xf]})})),r.splice(0)),M({acceptedFiles:r,fileRejections:o,type:"setFiles"}),f&&f(r,o,t),o.length>0&&m&&m(o,t),r.length>0&&h&&h(r,t)}),[M,l,n,s,a,c,f,h,m,S]),W=(0,o.useCallback)((function(e){e.preventDefault(),e.persist(),Q(e),B.current=[],Zf(e)&&Promise.resolve(i(e)).then((function(t){kf(e)&&!j||H(t,e)})),M({type:"reset"})}),[i,H,j]),V=(0,o.useCallback)((function(){if(y&&Mf()){M({type:"openDialog"}),k();var e={multiple:l,types:Tf(n)};window.showOpenFilePicker(e).then((function(e){return i(e)})).then((function(e){return H(e,null)})).catch((function(e){return Z(e)})).finally((function(){return M({type:"closeDialog"})}))}else E.current&&(M({type:"openDialog"}),k(),E.current.value=null,E.current.click())}),[M,k,Z,y,H,n,l]),U=(0,o.useCallback)((function(e){O.current&&O.current.isEqualNode(e.target)&&(32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),V()))}),[O,E,V]),q=(0,o.useCallback)((function(){M({type:"focus"})}),[]),G=(0,o.useCallback)((function(){M({type:"blur"})}),[]),Y=(0,o.useCallback)((function(){x||(Pf()?setTimeout(V,0):V())}),[E,x,V]),K=function(e){return r?null:e},J=function(e){return w?null:K(e)},X=function(e){return C?null:K(e)},Q=function(e){j&&e.stopPropagation()},$=(0,o.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,o=e.role,i=e.onKeyDown,a=e.onFocus,s=e.onBlur,l=e.onClick,c=e.onDragEnter,u=e.onDragOver,d=e.onDragLeave,p=e.onDrop,f=Uf(e,Ff);return Wf(Wf(Vf({onKeyDown:J(Af(i,U)),onFocus:J(Af(a,q)),onBlur:J(Af(s,G)),onClick:K(Af(l,Y)),onDragEnter:X(Af(c,N)),onDragOver:X(Af(u,_)),onDragLeave:X(Af(d,z)),onDrop:X(Af(p,W)),role:"string"===typeof o&&""!==o?o:"button"},n,O),r||w?{}:{tabIndex:0}),f)}}),[O,U,q,G,Y,N,_,z,W,w,C,r]),ee=(0,o.useCallback)((function(e){e.stopPropagation()}),[]),te=(0,o.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=void 0===t?"ref":t,o=e.onChange,i=e.onClick,a=Uf(e,Bf),s=Vf({accept:n,multiple:l,type:"file",style:{display:"none"},onChange:K(Af(o,W)),onClick:K(Af(i,ee)),autoComplete:"off",tabIndex:-1},r,E);return Wf(Wf({},s),a)}}),[E,n,l,W,r]),ne=R.length,re=ne>0&&Sf({files:R,accept:n,minSize:s,maxSize:a,multiple:l,maxFiles:c}),oe=ne>0&&!re;return Wf(Wf({},A),{},{isDragAccept:re,isDragReject:oe,isFocused:T&&!r,getRootProps:$,getInputProps:te,rootRef:O,inputRef:E,open:K(V)})}function $f(e,t){switch(t.type){case"focus":return Wf(Wf({},e),{},{isFocused:!0});case"blur":return Wf(Wf({},e),{},{isFocused:!1});case"openDialog":return Wf(Wf({},Xf),{},{isFileDialogActive:!0});case"closeDialog":return Wf(Wf({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return Wf(Wf({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return Wf(Wf({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Wf({},Xf);default:return e}}function eh(){}var th=["title","titleId"];function nh(){return nh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nh.apply(this,arguments)}function rh(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function oh(e,t){var n=e.title,r=e.titleId,i=rh(e,th);return o.createElement("svg",nh({fill:"none",id:"svg8",xmlns:"http://www.w3.org/2000/svg",viewBox:"6.22 2.08 27.85 36.03",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,Yf||(Yf=o.createElement("path",{d:"M16.5264 20.5584C16.3028 20.5584 16.1516 20.5724 16.0724 20.5944V22.0276C16.166 22.0492 16.2812 22.056 16.44 22.056C17.0232 22.056 17.3832 21.7612 17.3832 21.2712C17.3836 20.8252 17.0812 20.5584 16.5264 20.5584ZM28.0484 10.0472H34.0436L26.0984 2.10199V8.09759C26.0985 8.61469 26.304 9.11058 26.6697 9.47619C27.0354 9.8418 27.5313 10.0472 28.0484 10.0472Z",fill:"#8F9AFE",id:"path4"})),Kf||(Kf=o.createElement("path",{opacity:.6,d:"M28.0484 10.0472H34.0436L26.0984 2.10199V8.09759C26.0985 8.61469 26.304 9.11058 26.6697 9.47619C27.0354 9.8418 27.5313 10.0472 28.0484 10.0472Z",fill:"white",id:"path6"})),o.createElement("path",{id:"rect1725",style:{fill:"#8f9afe",fillOpacity:1},d:"m 12.307608,18.574218 v 8.242187 H 30.118155 V 18.574218 Z M 28.0484,10.0472 C 27.5313,10.0471 27.0355,9.84172 26.6698,9.47613 26.3042,9.11055 26.0986,8.61472 26.0984,8.09765 V 2.10205 H 8.18602 C 7.66902,2.10216 7.17323,2.30761 6.8077,2.67322 6.44217,3.03883 6.23682,3.53465 6.23682,4.05165 V 36.1524 c 0,0.517 0.20535,1.0129 0.57088,1.3785 0.36553,0.3656 0.86132,0.571 1.37832,0.5711 H 32.0944 c 0.517,-10e-5 1.0128,-0.2055 1.3783,-0.5711 0.3656,-0.3656 0.5709,-0.8615 0.5709,-1.3785 V 10.0472 Z M 13.5672,24.6924 H 13.56 c -0.3676,0 -0.634,-0.2808 -0.634,-0.6628 0,-0.396 0.2664,-0.6696 0.648,-0.6696 0.3748,0 0.637502,0.266353 0.6412,0.6696 0.0035,0.381984 -0.2588,0.6628 -0.648,0.6628 z M 18.032,22.388 c -0.3752,0.3456 -0.9368,0.5112 -1.5848,0.5112 -0.144,0 -0.274,-0.0072 -0.3748,-0.0288 v 1.7428 H 14.9848 V 19.824 c 0.3388,-0.0576 0.814,-0.1008 1.4836,-0.1008 0.6772,0 1.1672,0.1296 1.4912,0.396 0.3096,0.2376 0.5112,0.6412 0.5112,1.1164 4e-4,0.4824 -0.1508,0.8856 -0.4388,1.1524 z m 4.7016,1.6492 c -0.5116,0.4252 -1.2964,0.6264 -2.2472,0.6264 -0.5692,0 -0.9792,-0.036 -1.2456,-0.0724 v -4.76 c 0.4032,-0.072 0.9288,-0.108 1.476,-0.108 0.9292,0 1.534,0.1512 1.9948,0.504 0.5044,0.3744 0.8212,0.9796 0.8212,1.844 0,0.9288 -0.3384,1.57 -0.7992,1.966 z m 4.5572,-3.378 H 25.426 v 1.1088 h 1.7424 v 0.8932 H 25.426 v 1.9516 h -1.0948 v -4.854 h 2.9596 z"}))}var ih,ah=o.forwardRef(oh),sh=(n.p,function(e){var t=e.attachment;return(0,u.jsxs)(tn,{sx:{display:"flex",alignItems:"center",justifyContent:"center",px:1,minWidth:56,minHeight:56,borderRadius:"8px",borderWidth:1,borderStyle:"dashed",borderColor:"primaryDark.300",backgroundColor:"primaryDark.200"},children:[(0,u.jsx)(tn,{height:"40px",width:"40px",sx:{position:"relative",display:"inline-flex"},children:t.attachmentId?(0,u.jsx)(tn,{component:"img",sx:{width:30,height:40,objectFit:"cover"},src:(0,rs.wQ)(t.name)}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(tn,{sx:{filter:"grayscale(100%) brightness(130%)"},children:(0,u.jsx)(ah,{})}),(0,u.jsx)(tn,{sx:{top:2,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,u.jsx)(Zo.Z,{size:15,variant:"determinate",thickness:7,sx:{color:"secondaryBlue.500",borderRadius:"50%",boxShadow:"inset 0 0 0 2.3px #fff"},value:100*t.progress})})]})}),(0,u.jsx)(rn.Z,{variant:"bodySemiBold3",color:"primaryDark.600",textOverflow:"ellipsis",whiteSpace:"nowrap",children:t.name})]})}),lh=function(e){var t=e.attachments;return(0,u.jsx)(nn.Z,{width:"100%",direction:"row",flexWrap:"wrap",gap:1,mt:t.length?2:0,children:t.map((function(e){return(0,u.jsx)(sh,{attachment:e})}))})},ch=["title","titleId"];function uh(){return uh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uh.apply(this,arguments)}function dh(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ph(e,t){var n=e.title,r=e.titleId,i=dh(e,ch);return o.createElement("svg",uh({width:21,height:19,viewBox:"0 0 21 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,ih||(ih=o.createElement("path",{d:"M2.03017 6.10294C3.36017 5.64094 17.4832 0.818954 18.2032 0.569954C18.4832 0.472954 18.7642 0.417954 19.0222 0.431954C19.2582 0.444954 19.4752 0.515955 19.6562 0.664955C19.9212 0.882955 20.0052 1.15195 20.0122 1.43995C20.0192 1.70395 19.9622 1.98495 19.9202 2.25895C19.7542 3.35095 18.1702 15.6439 18.0402 16.4609C17.8872 17.4269 17.2382 18.4469 16.0422 18.4279C15.4342 18.4179 14.9692 18.278 14.2302 17.546C13.1092 16.435 10.6962 13.8739 9.60317 12.6519C9.06017 12.0439 9.10518 11.201 9.52718 10.717C9.80118 10.403 11.9402 8.31197 12.9302 7.26197C13.1472 7.03197 13.0182 6.68296 12.8992 6.56196C12.7842 6.44496 12.4602 6.36695 12.2662 6.52195C10.8882 7.62295 8.10617 9.70094 7.73717 9.94794C7.29117 10.2469 6.60117 10.3679 6.02517 10.2549C5.44917 10.1419 1.17617 9.40595 1.17617 9.40595C0.741168 9.32595 0.0201807 8.84994 0.0141807 7.90094C0.00918066 6.90794 0.919172 6.48894 2.03017 6.10294Z",fill:"white"})))}var fh,hh=o.forwardRef(ph),mh=(n.p,["title","titleId"]);function vh(){return vh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vh.apply(this,arguments)}function gh(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function yh(e,t){var n=e.title,r=e.titleId,i=gh(e,mh);return o.createElement("svg",vh({width:13,height:13,viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,fh||(fh=o.createElement("path",{d:"M6.99384 0.453171C6.62584 0.453171 6.32717 0.751837 6.32717 1.11984V5.7865H1.6605C1.2925 5.7865 0.993835 6.08517 0.993835 6.45317C0.993835 6.82117 1.2925 7.11984 1.6605 7.11984H6.32717V11.7865C6.32717 12.1545 6.62584 12.4532 6.99384 12.4532C7.36184 12.4532 7.6605 12.1545 7.6605 11.7865V7.11984H12.3272C12.6952 7.11984 12.9938 6.82117 12.9938 6.45317C12.9938 6.08517 12.6952 5.7865 12.3272 5.7865H7.6605V1.11984C7.6605 0.751837 7.36184 0.453171 6.99384 0.453171Z",fill:"#6D51F6"})))}var bh,xh=o.forwardRef(yh),wh=(n.p,["title","titleId"]);function Ch(){return Ch=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ch.apply(this,arguments)}function jh(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Sh(e,t){var n=e.title,r=e.titleId,i=jh(e,wh);return o.createElement("svg",Ch({width:14,height:11,viewBox:"0 0 14 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,bh||(bh=o.createElement("path",{d:"M2.99928 0.836594C1.52661 0.836594 0.332611 2.03059 0.332611 3.50326V7.50326C0.332611 8.97593 1.52661 10.1699 2.99928 10.1699H7.66594C9.1386 10.1699 10.3326 8.97593 10.3326 7.50326V7.12859L12.5199 9.31592C12.9399 9.73592 13.6659 9.43059 13.6659 8.83659V2.16993C13.6659 1.87326 13.4813 1.64127 13.2493 1.5446C13.0173 1.4486 12.7299 1.4806 12.5199 1.6906C12.2466 1.96393 11.2226 2.98793 10.3326 3.87793V3.50326C10.3326 2.03059 9.1386 0.836594 7.66594 0.836594H2.99928Z",fill:"#6D51F6"})))}var kh=o.forwardRef(Sh),Zh=(n.p,["localeText"]),Oh=o.createContext(null);var Eh=function(e){var t,n=e.localeText,i=(0,b.Z)(e,Zh),a=null!=(t=o.useContext(Oh))?t:{utils:void 0,localeText:void 0},s=a.utils,l=a.localeText,c=(0,T.Z)({props:i,name:"MuiLocalizationProvider"}),d=c.children,p=c.dateAdapter,f=c.dateFormats,h=c.dateLibInstance,m=c.adapterLocale,v=c.localeText,g=o.useMemo((function(){return(0,r.Z)({},v,l,n)}),[v,l,n]),y=o.useMemo((function(){if(!p)return s||null;var e=new p({locale:m,formats:f,instance:h});if(!e.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join("\n"));return e}),[p,m,f,h,s]),x=o.useMemo((function(){return y?{minDate:y.date("1900-01-01T00:00:00.000"),maxDate:y.date("2099-12-31T00:00:00.000")}:null}),[y]),w=o.useMemo((function(){return{utils:y,defaultDates:x,localeText:g}}),[x,y,g]);return(0,u.jsx)(Oh.Provider,{value:w,children:d})},Dh=n(91976),Ph=n(22951),Ah=n(47624),Mh=n(22053),Th=n(96851);function Ih(e,t){(0,Th.Z)(2,arguments);var n=(0,Mh.Z)(e),r=(0,Ah.Z)(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}var Rh=n(14677);function Fh(e,t){(0,Th.Z)(2,arguments);var n=(0,Ah.Z)(t);return(0,Rh.Z)(e,1e3*n)}function Bh(e,t){(0,Th.Z)(2,arguments);var n=(0,Ah.Z)(t);return(0,Rh.Z)(e,6e4*n)}var Lh=36e5;function Nh(e,t){(0,Th.Z)(2,arguments);var n=(0,Ah.Z)(t);return(0,Rh.Z)(e,n*Lh)}function _h(e,t){(0,Th.Z)(2,arguments);var n=(0,Ah.Z)(t),r=7*n;return Ih(e,r)}function zh(e,t){(0,Th.Z)(2,arguments);var n=(0,Mh.Z)(e),r=(0,Ah.Z)(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var a=i.getDate();return o>=a?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function Hh(e,t){(0,Th.Z)(2,arguments);var n=(0,Ah.Z)(t);return zh(e,12*n)}function Wh(e,t){(0,Th.Z)(2,arguments);var n=(0,Mh.Z)(e),r=(0,Mh.Z)(t);return n.getFullYear()-r.getFullYear()}function Vh(e,t){(0,Th.Z)(2,arguments);var n=(0,Mh.Z)(e),r=(0,Mh.Z)(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}function Uh(e,t){(0,Th.Z)(2,arguments);var n=(0,Mh.Z)(e),r=(0,Mh.Z)(t),o=Vh(n,r),i=Math.abs(Wh(n,r));n.setFullYear(1584),r.setFullYear(1584);var a=Vh(n,r)===-o,s=o*(i-Number(a));return 0===s?0:s}function qh(e,t){(0,Th.Z)(2,arguments);var n=(0,Mh.Z)(e),r=(0,Mh.Z)(t),o=n.getFullYear()-r.getFullYear(),i=n.getMonth()-r.getMonth();return 12*o+i}function Gh(e){(0,Th.Z)(1,arguments);var t=(0,Mh.Z)(e);return t.setHours(23,59,59,999),t}function Yh(e){(0,Th.Z)(1,arguments);var t=(0,Mh.Z)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function Kh(e){(0,Th.Z)(1,arguments);var t=(0,Mh.Z)(e);return Gh(t).getTime()===Yh(t).getTime()}function Jh(e,t){(0,Th.Z)(2,arguments);var n,r=(0,Mh.Z)(e),o=(0,Mh.Z)(t),i=Vh(r,o),a=Math.abs(qh(r,o));if(a<1)n=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-i*a);var s=Vh(r,o)===-i;Kh((0,Mh.Z)(e))&&1===a&&1===Vh(e,o)&&(s=!1),n=i*(a-Number(s))}return 0===n?0:n}var Xh={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function Qh(e){return e?Xh[e]:Xh.trunc}function $h(e,t,n){(0,Th.Z)(2,arguments);var r=Jh(e,t)/3;return Qh(null===n||void 0===n?void 0:n.roundingMethod)(r)}var em=n(14903);function tm(e){(0,Th.Z)(1,arguments);var t=(0,Mh.Z)(e);return t.setHours(0,0,0,0),t}var nm=864e5;function rm(e,t){(0,Th.Z)(2,arguments);var n=tm(e),r=tm(t),o=n.getTime()-(0,em.Z)(n),i=r.getTime()-(0,em.Z)(r);return Math.round((o-i)/nm)}function om(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function im(e,t){(0,Th.Z)(2,arguments);var n=(0,Mh.Z)(e),r=(0,Mh.Z)(t),o=om(n,r),i=Math.abs(rm(n,r));n.setDate(n.getDate()-o*i);var a=Number(om(n,r)===-o),s=o*(i-a);return 0===s?0:s}function am(e,t,n){(0,Th.Z)(2,arguments);var r=im(e,t)/7;return Qh(null===n||void 0===n?void 0:n.roundingMethod)(r)}Math.pow(10,8);var sm=6e4,lm=36e5;function cm(e,t){return(0,Th.Z)(2,arguments),(0,Mh.Z)(e).getTime()-(0,Mh.Z)(t).getTime()}function um(e,t,n){(0,Th.Z)(2,arguments);var r=cm(e,t)/lm;return Qh(null===n||void 0===n?void 0:n.roundingMethod)(r)}function dm(e,t,n){(0,Th.Z)(2,arguments);var r=cm(e,t)/sm;return Qh(null===n||void 0===n?void 0:n.roundingMethod)(r)}function pm(e,t,n){(0,Th.Z)(2,arguments);var r=cm(e,t)/1e3;return Qh(null===n||void 0===n?void 0:n.roundingMethod)(r)}function fm(e,t){(0,Th.Z)(1,arguments);var n=e||{},r=(0,Mh.Z)(n.start),o=(0,Mh.Z)(n.end),i=o.getTime();if(!(r.getTime()<=i))throw new RangeError("Invalid interval");var a=[],s=r;s.setHours(0,0,0,0);var l=t&&"step"in t?Number(t.step):1;if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");for(;s.getTime()<=i;)a.push((0,Mh.Z)(s)),s.setDate(s.getDate()+l),s.setHours(0,0,0,0);return a}function hm(e,t){(0,Th.Z)(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.weekStartsOn,i=null==o?0:(0,Ah.Z)(o),a=null==n.weekStartsOn?i:(0,Ah.Z)(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=(0,Mh.Z)(e),l=s.getDay(),c=6+(l<a?-7:0)-(l-a);return s.setDate(s.getDate()+c),s.setHours(23,59,59,999),s}function mm(e){(0,Th.Z)(1,arguments);var t=(0,Mh.Z)(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}var vm=n(15006);function gm(e){(0,Th.Z)(1,arguments);var t=(0,Mh.Z)(e),n=t.getDate();return n}function ym(e){(0,Th.Z)(1,arguments);var t=(0,Mh.Z)(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function bm(e){(0,Th.Z)(1,arguments);var t=(0,Mh.Z)(e),n=t.getHours();return n}function xm(e){(0,Th.Z)(1,arguments);var t=(0,Mh.Z)(e),n=t.getMinutes();return n}function wm(e){(0,Th.Z)(1,arguments);var t=(0,Mh.Z)(e),n=t.getMonth();return n}function Cm(e){(0,Th.Z)(1,arguments);var t=(0,Mh.Z)(e),n=t.getSeconds();return n}function jm(e,t){(0,Th.Z)(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.weekStartsOn,i=null==o?0:(0,Ah.Z)(o),a=null==n.weekStartsOn?i:(0,Ah.Z)(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=(0,Mh.Z)(e),l=s.getDay(),c=(l<a?7:0)+l-a;return s.setDate(s.getDate()-c),s.setHours(0,0,0,0),s}function Sm(e,t){var n,r;(0,Th.Z)(1,arguments);var o=(0,Mh.Z)(e),i=o.getFullYear(),a=null===t||void 0===t||null===(n=t.locale)||void 0===n||null===(r=n.options)||void 0===r?void 0:r.firstWeekContainsDate,s=null==a?1:(0,Ah.Z)(a),l=null==(null===t||void 0===t?void 0:t.firstWeekContainsDate)?s:(0,Ah.Z)(t.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=new Date(0);c.setFullYear(i+1,0,l),c.setHours(0,0,0,0);var u=jm(c,t),d=new Date(0);d.setFullYear(i,0,l),d.setHours(0,0,0,0);var p=jm(d,t);return o.getTime()>=u.getTime()?i+1:o.getTime()>=p.getTime()?i:i-1}function km(e,t){(0,Th.Z)(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.firstWeekContainsDate,i=null==o?1:(0,Ah.Z)(o),a=null==n.firstWeekContainsDate?i:(0,Ah.Z)(n.firstWeekContainsDate),s=Sm(e,t),l=new Date(0);l.setFullYear(s,0,a),l.setHours(0,0,0,0);var c=jm(l,t);return c}var Zm=6048e5;function Om(e,t){(0,Th.Z)(1,arguments);var n=(0,Mh.Z)(e),r=jm(n,t).getTime()-km(n,t).getTime();return Math.round(r/Zm)+1}function Em(e){return(0,Th.Z)(1,arguments),(0,Mh.Z)(e).getFullYear()}function Dm(e,t){(0,Th.Z)(2,arguments);var n=(0,Mh.Z)(e),r=(0,Mh.Z)(t);return n.getTime()>r.getTime()}function Pm(e,t){(0,Th.Z)(2,arguments);var n=(0,Mh.Z)(e),r=(0,Mh.Z)(t);return n.getTime()<r.getTime()}function Am(e,t){(0,Th.Z)(2,arguments);var n=(0,Mh.Z)(e),r=(0,Mh.Z)(t);return n.getTime()===r.getTime()}function Mm(e,t){(0,Th.Z)(2,arguments);var n=tm(e),r=tm(t);return n.getTime()===r.getTime()}function Tm(e,t){(0,Th.Z)(2,arguments);var n=(0,Mh.Z)(e),r=(0,Mh.Z)(t);return n.getFullYear()===r.getFullYear()}function Im(e,t){(0,Th.Z)(2,arguments);var n=(0,Mh.Z)(e),r=(0,Mh.Z)(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function Rm(e){(0,Th.Z)(1,arguments);var t=(0,Mh.Z)(e);return t.setMinutes(0,0,0),t}function Fm(e,t){(0,Th.Z)(2,arguments);var n=Rm(e),r=Rm(t);return n.getTime()===r.getTime()}var Bm=n(3111),Lm=n(22765),Nm=n(15350);function _m(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}var zm=n(95973),Hm=n(9504),Wm=n(80972);function Vm(e,t,n){(0,Th.Z)(2,arguments);var r=n||{},o=r.locale,i=o&&o.options&&o.options.weekStartsOn,a=null==i?0:(0,Ah.Z)(i),s=null==r.weekStartsOn?a:(0,Ah.Z)(r.weekStartsOn);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=(0,Mh.Z)(e),c=(0,Ah.Z)(t),u=l.getUTCDay(),d=c%7,p=(d+7)%7,f=(p<s?7:0)+c-u;return l.setUTCDate(l.getUTCDate()+f),l}var Um=n(48605);var qm=n(42640);var Gm=n(11022),Ym=n(39656),Km=/^(1[0-2]|0?\d)/,Jm=/^(3[0-1]|[0-2]?\d)/,Xm=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Qm=/^(5[0-3]|[0-4]?\d)/,$m=/^(2[0-3]|[0-1]?\d)/,ev=/^(2[0-4]|[0-1]?\d)/,tv=/^(1[0-1]|0?\d)/,nv=/^(1[0-2]|0?\d)/,rv=/^[0-5]?\d/,ov=/^[0-5]?\d/,iv=/^\d/,av=/^\d{1,2}/,sv=/^\d{1,3}/,lv=/^\d{1,4}/,cv=/^-?\d+/,uv=/^-?\d/,dv=/^-?\d{1,2}/,pv=/^-?\d{1,3}/,fv=/^-?\d{1,4}/,hv=/^([+-])(\d{2})(\d{2})?|Z/,mv=/^([+-])(\d{2})(\d{2})|Z/,vv=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,gv=/^([+-])(\d{2}):(\d{2})|Z/,yv=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function bv(e,t,n){var r=t.match(e);if(!r)return null;var o=parseInt(r[0],10);return{value:n?n(o):o,rest:t.slice(r[0].length)}}function xv(e,t){var n=t.match(e);return n?"Z"===n[0]?{value:0,rest:t.slice(1)}:{value:("+"===n[1]?1:-1)*(36e5*(n[2]?parseInt(n[2],10):0)+6e4*(n[3]?parseInt(n[3],10):0)+1e3*(n[5]?parseInt(n[5],10):0)),rest:t.slice(n[0].length)}:null}function wv(e,t){return bv(cv,e,t)}function Cv(e,t,n){switch(e){case 1:return bv(iv,t,n);case 2:return bv(av,t,n);case 3:return bv(sv,t,n);case 4:return bv(lv,t,n);default:return bv(new RegExp("^\\d{1,"+e+"}"),t,n)}}function jv(e,t,n){switch(e){case 1:return bv(uv,t,n);case 2:return bv(dv,t,n);case 3:return bv(pv,t,n);case 4:return bv(fv,t,n);default:return bv(new RegExp("^-?\\d{1,"+e+"}"),t,n)}}function Sv(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function kv(e,t){var n,r=t>0,o=r?t:1-t;if(o<=50)n=e||100;else{var i=o+50;n=e+100*Math.floor(i/100)-(e>=i%100?100:0)}return r?n:1-n}var Zv=[31,28,31,30,31,30,31,31,30,31,30,31],Ov=[31,29,31,30,31,30,31,31,30,31,30,31];function Ev(e){return e%400===0||e%4===0&&e%100!==0}var Dv={G:{priority:140,parse:function(e,t,n,r){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}},set:function(e,t,n,r){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(e,t,n,r){var o=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return Cv(4,e,o);case"yo":return n.ordinalNumber(e,{unit:"year",valueCallback:o});default:return Cv(t.length,e,o)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var o=e.getUTCFullYear();if(n.isTwoDigitYear){var i=kv(n.year,o);return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(e,t,n,r){var o=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return Cv(4,e,o);case"Yo":return n.ordinalNumber(e,{unit:"year",valueCallback:o});default:return Cv(t.length,e,o)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var o=(0,Wm.Z)(e,r);if(n.isTwoDigitYear){var i=kv(n.year,o);return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,Ym.Z)(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,Ym.Z)(e,r)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(e,t,n,r){return jv("R"===t?4:t.length,e)},set:function(e,t,n,r){var o=new Date(0);return o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0),(0,Gm.Z)(o)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(e,t,n,r){return jv("u"===t?4:t.length,e)},set:function(e,t,n,r){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(e,t,n,r){switch(t){case"Q":case"QQ":return Cv(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(e,t,n,r){switch(t){case"q":case"qq":return Cv(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(e,t,n,r){var o=function(e){return e-1};switch(t){case"M":return bv(Km,e,o);case"MM":return Cv(2,e,o);case"Mo":return n.ordinalNumber(e,{unit:"month",valueCallback:o});case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(e,t,n,r){var o=function(e){return e-1};switch(t){case"L":return bv(Km,e,o);case"LL":return Cv(2,e,o);case"Lo":return n.ordinalNumber(e,{unit:"month",valueCallback:o});case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(e,t,n,r){switch(t){case"w":return bv(Qm,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return Cv(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return(0,Ym.Z)(function(e,t,n){(0,Th.Z)(2,arguments);var r=(0,Mh.Z)(e),o=(0,Ah.Z)(t),i=(0,qm.Z)(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*i),r}(e,n,r),r)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(e,t,n,r){switch(t){case"I":return bv(Qm,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return Cv(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return(0,Gm.Z)(function(e,t){(0,Th.Z)(2,arguments);var n=(0,Mh.Z)(e),r=(0,Ah.Z)(t),o=(0,Um.Z)(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(e,n,r),r)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(e,t,n,r){switch(t){case"d":return bv(Jm,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return Cv(t.length,e)}},validate:function(e,t,n){var r=Ev(e.getUTCFullYear()),o=e.getUTCMonth();return r?t>=1&&t<=Ov[o]:t>=1&&t<=Zv[o]},set:function(e,t,n,r){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(e,t,n,r){switch(t){case"D":case"DD":return bv(Xm,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return Cv(t.length,e)}},validate:function(e,t,n){return Ev(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365},set:function(e,t,n,r){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(e,t,n,r){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=Vm(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return Cv(t.length,e,o);case"eo":return n.ordinalNumber(e,{unit:"day",valueCallback:o});case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=Vm(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return Cv(t.length,e,o);case"co":return n.ordinalNumber(e,{unit:"day",valueCallback:o});case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=Vm(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(e,t,n,r){var o=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return Cv(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return n.day(e,{width:"abbreviated",context:"formatting",valueCallback:o})||n.day(e,{width:"short",context:"formatting",valueCallback:o})||n.day(e,{width:"narrow",context:"formatting",valueCallback:o});case"iiiii":return n.day(e,{width:"narrow",context:"formatting",valueCallback:o});case"iiiiii":return n.day(e,{width:"short",context:"formatting",valueCallback:o})||n.day(e,{width:"narrow",context:"formatting",valueCallback:o});default:return n.day(e,{width:"wide",context:"formatting",valueCallback:o})||n.day(e,{width:"abbreviated",context:"formatting",valueCallback:o})||n.day(e,{width:"short",context:"formatting",valueCallback:o})||n.day(e,{width:"narrow",context:"formatting",valueCallback:o})}},validate:function(e,t,n){return t>=1&&t<=7},set:function(e,t,n,r){return e=function(e,t){(0,Th.Z)(2,arguments);var n=(0,Ah.Z)(t);n%7===0&&(n-=7);var r=1,o=(0,Mh.Z)(e),i=o.getUTCDay(),a=((n%7+7)%7<r?7:0)+n-i;return o.setUTCDate(o.getUTCDate()+a),o}(e,n,r),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(e,t,n,r){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(Sv(n),0,0,0),e},incompatibleTokens:["b","B","H","k","t","T"]},b:{priority:80,parse:function(e,t,n,r){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(Sv(n),0,0,0),e},incompatibleTokens:["a","B","H","k","t","T"]},B:{priority:80,parse:function(e,t,n,r){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(Sv(n),0,0,0),e},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(e,t,n,r){switch(t){case"h":return bv(nv,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return Cv(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=12},set:function(e,t,n,r){var o=e.getUTCHours()>=12;return o&&n<12?e.setUTCHours(n+12,0,0,0):o||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(e,t,n,r){switch(t){case"H":return bv($m,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return Cv(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=23},set:function(e,t,n,r){return e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(e,t,n,r){switch(t){case"K":return bv(tv,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return Cv(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e},incompatibleTokens:["h","H","k","t","T"]},k:{priority:70,parse:function(e,t,n,r){switch(t){case"k":return bv(ev,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return Cv(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=24},set:function(e,t,n,r){var o=n<=24?n%24:n;return e.setUTCHours(o,0,0,0),e},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(e,t,n,r){switch(t){case"m":return bv(rv,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return Cv(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCMinutes(n,0,0),e},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(e,t,n,r){switch(t){case"s":return bv(ov,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return Cv(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCSeconds(n,0),e},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(e,t,n,r){return Cv(t.length,e,(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))},set:function(e,t,n,r){return e.setUTCMilliseconds(n),e},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(e,t,n,r){switch(t){case"X":return xv(hv,e);case"XX":return xv(mv,e);case"XXXX":return xv(vv,e);case"XXXXX":return xv(yv,e);default:return xv(gv,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(e,t,n,r){switch(t){case"x":return xv(hv,e);case"xx":return xv(mv,e);case"xxxx":return xv(vv,e);case"xxxxx":return xv(yv,e);default:return xv(gv,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(e,t,n,r){return wv(e)},set:function(e,t,n,r){return[new Date(1e3*n),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(e,t,n,r){return wv(e)},set:function(e,t,n,r){return[new Date(n),{timestampIsSet:!0}]},incompatibleTokens:"*"}},Pv=Dv,Av=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Mv=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Tv=/^'([^]*?)'?$/,Iv=/''/g,Rv=/\S/,Fv=/[a-zA-Z]/;function Bv(e,t,n,r){(0,Th.Z)(3,arguments);var o=String(e),i=String(t),a=r||{},s=a.locale||Lm.Z;if(!s.match)throw new RangeError("locale must contain match property");var l=s.options&&s.options.firstWeekContainsDate,c=null==l?1:(0,Ah.Z)(l),u=null==a.firstWeekContainsDate?c:(0,Ah.Z)(a.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=s.options&&s.options.weekStartsOn,p=null==d?0:(0,Ah.Z)(d),f=null==a.weekStartsOn?p:(0,Ah.Z)(a.weekStartsOn);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===i)return""===o?(0,Mh.Z)(n):new Date(NaN);var h,m={firstWeekContainsDate:u,weekStartsOn:f,locale:s},v=[{priority:10,subPriority:-1,set:Lv,index:0}],g=i.match(Mv).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,zm.Z[t])(e,s.formatLong,m):e})).join("").match(Av),y=[];for(h=0;h<g.length;h++){var b=g[h];!a.useAdditionalWeekYearTokens&&(0,Hm.Do)(b)&&(0,Hm.qp)(b,i,e),!a.useAdditionalDayOfYearTokens&&(0,Hm.Iu)(b)&&(0,Hm.qp)(b,i,e);var x=b[0],w=Pv[x];if(w){var C=w.incompatibleTokens;if(Array.isArray(C)){for(var j=void 0,S=0;S<y.length;S++){var k=y[S].token;if(-1!==C.indexOf(k)||k===x){j=y[S];break}}if(j)throw new RangeError("The format string mustn't contain `".concat(j.fullToken,"` and `").concat(b,"` at the same time"))}else if("*"===w.incompatibleTokens&&y.length)throw new RangeError("The format string mustn't contain `".concat(b,"` and any other token at the same time"));y.push({token:x,fullToken:b});var Z=w.parse(o,b,s.match,m);if(!Z)return new Date(NaN);v.push({priority:w.priority,subPriority:w.subPriority||0,set:w.set,validate:w.validate,value:Z.value,index:v.length}),o=Z.rest}else{if(x.match(Fv))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");if("''"===b?b="'":"'"===x&&(b=Nv(b)),0!==o.indexOf(b))return new Date(NaN);o=o.slice(b.length)}}if(o.length>0&&Rv.test(o))return new Date(NaN);var O=v.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return v.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),E=(0,Mh.Z)(n);if(isNaN(E))return new Date(NaN);var D=(0,Nm.Z)(E,(0,em.Z)(E)),P={};for(h=0;h<O.length;h++){var A=O[h];if(A.validate&&!A.validate(D,A.value,m))return new Date(NaN);var M=A.set(D,P,A.value,m);M[0]?(D=M[0],_m(P,M[1])):D=M}return D}function Lv(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}function Nv(e){return e.match(Tv)[1].replace(Iv,"'")}function _v(e,t){(0,Th.Z)(2,arguments);var n=(0,Mh.Z)(e),r=(0,Ah.Z)(t);return n.setDate(r),n}function zv(e,t){(0,Th.Z)(2,arguments);var n=(0,Mh.Z)(e),r=(0,Ah.Z)(t);return n.setHours(r),n}function Hv(e,t){(0,Th.Z)(2,arguments);var n=(0,Mh.Z)(e),r=(0,Ah.Z)(t);return n.setMinutes(r),n}function Wv(e,t){(0,Th.Z)(2,arguments);var n=(0,Mh.Z)(e),r=(0,Ah.Z)(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var s=ym(a);return n.setMonth(r,Math.min(i,s)),n}function Vv(e,t){(0,Th.Z)(2,arguments);var n=(0,Mh.Z)(e),r=(0,Ah.Z)(t);return n.setSeconds(r),n}function Uv(e,t){(0,Th.Z)(2,arguments);var n=(0,Mh.Z)(e),r=(0,Ah.Z)(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function qv(e){(0,Th.Z)(1,arguments);var t=(0,Mh.Z)(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Gv(e){(0,Th.Z)(1,arguments);var t=(0,Mh.Z)(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Yv(e,t){(0,Th.Z)(1,arguments);var n=t||{},r=null==n.additionalDigits?2:(0,Ah.Z)(n.additionalDigits);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!==typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o,i=$v(e);if(i.date){var a=eg(i.date,r);o=tg(a.restDateString,a.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var s,l=o.getTime(),c=0;if(i.time&&(c=rg(i.time),isNaN(c)))return new Date(NaN);if(!i.timezone){var u=new Date(l+c),d=new Date(0);return d.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),d.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),d}return s=ig(i.timezone),isNaN(s)?new Date(NaN):new Date(l+c+s)}var Kv={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Jv=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Xv=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Qv=/^([+-])(\d{2})(?::?(\d{2}))?$/;function $v(e){var t,n={},r=e.split(Kv.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],Kv.timeZoneDelimiter.test(n.date)&&(n.date=e.split(Kv.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var o=Kv.timezone.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}function eg(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:null===i?o:100*i,restDateString:e.slice((r[1]||r[2]).length)}}function tg(e,t){if(null===t)return new Date(NaN);var n=e.match(Jv);if(!n)return new Date(NaN);var r=!!n[4],o=ng(n[1]),i=ng(n[2])-1,a=ng(n[3]),s=ng(n[4]),l=ng(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,l)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}(t,s,l):new Date(NaN);var c=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(ag[t]||(sg(e)?29:28))}(t,i,a)&&function(e,t){return t>=1&&t<=(sg(e)?366:365)}(t,o)?(c.setUTCFullYear(t,i,Math.max(o,a)),c):new Date(NaN)}function ng(e){return e?parseInt(e):1}function rg(e){var t=e.match(Xv);if(!t)return NaN;var n=og(t[1]),r=og(t[2]),o=og(t[3]);return function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,o)?n*lm+r*sm+1e3*o:NaN}function og(e){return e&&parseFloat(e.replace(",","."))||0}function ig(e){if("Z"===e)return 0;var t=e.match(Qv);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,o)?n*(r*lm+o*sm):NaN}var ag=[31,null,31,30,31,30,31,31,30,31,30,31];function sg(e){return e%400===0||e%4===0&&e%100!==0}var lg=n(83806);function cg(e,t){(0,Th.Z)(1,arguments);var n=(0,Mh.Z)(e);if(isNaN(n.getTime()))throw new RangeError("Invalid time value");var r=null!==t&&void 0!==t&&t.format?String(t.format):"extended",o=null!==t&&void 0!==t&&t.representation?String(t.representation):"complete";if("extended"!==r&&"basic"!==r)throw new RangeError("format must be 'extended' or 'basic'");if("date"!==o&&"time"!==o&&"complete"!==o)throw new RangeError("representation must be 'date', 'time', or 'complete'");var i="",a="",s="extended"===r?"-":"",l="extended"===r?":":"";if("time"!==o){var c=(0,lg.Z)(n.getDate(),2),u=(0,lg.Z)(n.getMonth()+1,2),d=(0,lg.Z)(n.getFullYear(),4);i="".concat(d).concat(s).concat(u).concat(s).concat(c)}if("date"!==o){var p=n.getTimezoneOffset();if(0!==p){var f=Math.abs(p),h=(0,lg.Z)(Math.floor(f/60),2),m=(0,lg.Z)(f%60,2),v=p<0?"+":"-";a="".concat(v).concat(h,":").concat(m)}else a="Z";var g=(0,lg.Z)(n.getHours(),2),y=(0,lg.Z)(n.getMinutes(),2),b=(0,lg.Z)(n.getSeconds(),2),x=""===i?"":"T",w=[g,y,b].join(l);i="".concat(i).concat(x).concat(w).concat(a)}return i}function ug(e,t){(0,Th.Z)(2,arguments);var n=(0,Mh.Z)(e).getTime(),r=(0,Mh.Z)(t.start).getTime(),o=(0,Mh.Z)(t.end).getTime();if(!(r<=o))throw new RangeError("Invalid interval");return n>=r&&n<=o}var dg,pg=n(17515),fg=n.n(pg),hg={y:{sectionType:"year",contentType:"digit",maxLength:4},yy:"year",yyy:{sectionType:"year",contentType:"digit",maxLength:4},yyyy:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMMM:{sectionType:"month",contentType:"letter"},MMM:{sectionType:"month",contentType:"letter"},L:{sectionType:"month",contentType:"digit",maxLength:2},LL:"month",LLL:{sectionType:"month",contentType:"letter"},LLLL:{sectionType:"month",contentType:"letter"},d:{sectionType:"day",contentType:"digit",maxLength:2},dd:"day",do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"letter"},EE:{sectionType:"weekDay",contentType:"letter"},EEE:{sectionType:"weekDay",contentType:"letter"},EEEE:{sectionType:"weekDay",contentType:"letter"},EEEEE:{sectionType:"weekDay",contentType:"letter"},i:{sectionType:"weekDay",contentType:"digit",maxLength:1},ii:"weekDay",iii:{sectionType:"weekDay",contentType:"letter"},iiii:{sectionType:"weekDay",contentType:"letter"},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},ee:"weekDay",eee:{sectionType:"weekDay",contentType:"letter"},eeee:{sectionType:"weekDay",contentType:"letter"},eeeee:{sectionType:"weekDay",contentType:"letter"},eeeeee:{sectionType:"weekDay",contentType:"letter"},c:{sectionType:"weekDay",contentType:"digit",maxLength:1},cc:"weekDay",ccc:{sectionType:"weekDay",contentType:"letter"},cccc:{sectionType:"weekDay",contentType:"letter"},ccccc:{sectionType:"weekDay",contentType:"letter"},cccccc:{sectionType:"weekDay",contentType:"letter"},a:"meridiem",aa:"meridiem",aaa:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},mg={dayOfMonth:"d",fullDate:"PP",fullDateWithWeekday:"PPPP",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aa",fullDateTime24h:"PP HH:mm",fullTime:"p",fullTime12h:"hh:mm aa",fullTime24h:"HH:mm",hours12h:"hh",hours24h:"HH",keyboardDate:"P",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aa",keyboardDateTime24h:"P HH:mm",minutes:"mm",month:"LLLL",monthAndDate:"MMMM d",monthAndYear:"LLLL yyyy",monthShort:"MMM",weekday:"EEEE",weekdayShort:"EEE",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",seconds:"ss",shortDate:"MMM d",year:"yyyy"},vg=(0,Dh.Z)((function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=n.locale,i=n.formats;(0,Ph.Z)(this,e),this.isMUIAdapter=!0,this.lib="date-fns",this.locale=void 0,this.formats=void 0,this.formatTokenMap=hg,this.escapedCharacters={start:"'",end:"'"},this.date=function(e){return"undefined"===typeof e?new Date:null===e?null:new Date(e)},this.toJsDate=function(e){return e},this.parseISO=function(e){return Yv(e)},this.toISO=function(e){return cg(e,{format:"extended"})},this.parse=function(e,n){return""===e?null:Bv(e,n,new Date,{locale:t.locale})},this.getCurrentLocaleCode=function(){var e;return(null==(e=t.locale)?void 0:e.code)||"en-US"},this.is12HourCycleInCurrentLocale=function(){return!t.locale||/a/.test(t.locale.formatLong.time())},this.expandFormat=function(e){return e.match(/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g).map((function(e){var n=e[0];return"p"===n||"P"===n?(0,fg()[n])(e,(t.locale||Lm.Z).formatLong,{}):e})).join("")},this.getFormatHelperText=function(e){return t.expandFormat(e).replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase()},this.isNull=function(e){return null===e},this.isValid=function(e){return(0,Bm.Z)(t.date(e))},this.format=function(e,n){return t.formatByString(e,t.formats[n])},this.formatByString=function(e,n){return(0,vm.Z)(e,n,{locale:t.locale})},this.formatNumber=function(e){return e},this.getDiff=function(e,n,r){switch(r){case"years":return Uh(e,t.date(n));case"quarters":return $h(e,t.date(n));case"months":return Jh(e,t.date(n));case"weeks":return am(e,t.date(n));case"days":return im(e,t.date(n));case"hours":return um(e,t.date(n));case"minutes":return dm(e,t.date(n));case"seconds":return pm(e,t.date(n));default:return cm(e,t.date(n))}},this.isEqual=function(e,t){return null===e&&null===t||Am(e,t)},this.isSameYear=function(e,t){return Tm(e,t)},this.isSameMonth=function(e,t){return Im(e,t)},this.isSameDay=function(e,t){return Mm(e,t)},this.isSameHour=function(e,t){return Fm(e,t)},this.isAfter=function(e,t){return Dm(e,t)},this.isAfterYear=function(e,t){return Dm(e,mm(t))},this.isAfterDay=function(e,t){return Dm(e,Gh(t))},this.isBefore=function(e,t){return Pm(e,t)},this.isBeforeYear=function(e,t){return Pm(e,Gv(t))},this.isBeforeDay=function(e,t){return Pm(e,tm(t))},this.isWithinRange=function(e,t){var n=(0,Le.Z)(t,2);return ug(e,{start:n[0],end:n[1]})},this.startOfYear=function(e){return Gv(e)},this.startOfMonth=function(e){return qv(e)},this.startOfWeek=function(e){return jm(e,{locale:t.locale})},this.startOfDay=function(e){return tm(e)},this.endOfYear=function(e){return mm(e)},this.endOfMonth=function(e){return Yh(e)},this.endOfWeek=function(e){return hm(e,{locale:t.locale})},this.endOfDay=function(e){return Gh(e)},this.addYears=function(e,t){return Hh(e,t)},this.addMonths=function(e,t){return zh(e,t)},this.addWeeks=function(e,t){return _h(e,t)},this.addDays=function(e,t){return Ih(e,t)},this.addHours=function(e,t){return Nh(e,t)},this.addMinutes=function(e,t){return Bh(e,t)},this.addSeconds=function(e,t){return Fh(e,t)},this.getYear=function(e){return Em(e)},this.getMonth=function(e){return wm(e)},this.getDate=function(e){return gm(e)},this.getHours=function(e){return bm(e)},this.getMinutes=function(e){return xm(e)},this.getSeconds=function(e){return Cm(e)},this.setYear=function(e,t){return Uv(e,t)},this.setMonth=function(e,t){return Wv(e,t)},this.setDate=function(e,t){return _v(e,t)},this.setHours=function(e,t){return zv(e,t)},this.setMinutes=function(e,t){return Hv(e,t)},this.setSeconds=function(e,t){return Vv(e,t)},this.getDaysInMonth=function(e){return ym(e)},this.getNextMonth=function(e){return zh(e,1)},this.getPreviousMonth=function(e){return zh(e,-1)},this.getMonthArray=function(e){for(var n=[Gv(e)];n.length<12;){var r=n[n.length-1];n.push(t.getNextMonth(r))}return n},this.mergeDateAndTime=function(e,n){return t.setSeconds(t.setMinutes(t.setHours(e,t.getHours(n)),t.getMinutes(n)),t.getSeconds(n))},this.getWeekdays=function(){var e=new Date;return fm({start:jm(e,{locale:t.locale}),end:hm(e,{locale:t.locale})}).map((function(e){return t.formatByString(e,"EEEEEE")}))},this.getWeekArray=function(e){for(var n=jm(qv(e),{locale:t.locale}),r=hm(Yh(e),{locale:t.locale}),o=0,i=n,a=[];Pm(i,r);){var s=Math.floor(o/7);a[s]=a[s]||[],a[s].push(i),i=Ih(i,1),o+=1}return a},this.getWeekNumber=function(e){return Om(e,{locale:t.locale})},this.getYearRange=function(e,t){for(var n=Gv(e),r=mm(t),o=[],i=n;Pm(i,r);)o.push(i),i=Hh(i,1);return o},this.getMeridiemText=function(e){return"am"===e?"AM":"PM"},this.locale=o,this.formats=(0,r.Z)({},mg,i)})),gg=n(47329),yg=function(e){var t=e.date,n=e.disableFuture,r=e.disablePast,o=e.maxDate,i=e.minDate,a=e.isDateDisabled,s=e.utils,l=s.startOfDay(s.date());r&&s.isBefore(i,l)&&(i=l),n&&s.isAfter(o,l)&&(o=l);var c=t,u=t;for(s.isBefore(t,i)&&(c=i,u=null),s.isAfter(t,o)&&(u&&(u=o),c=null);c||u;){if(c&&s.isAfter(c,o)&&(c=null),u&&s.isBefore(u,i)&&(u=null),c){if(!a(c))return c;c=s.addDays(c,1)}if(u){if(!a(u))return u;u=s.addDays(u,-1)}}return null},bg=function(e,t,n,r){return e.isBefore(t,n)?n:e.isAfter(t,r)?r:t},xg=function(e,t,n){return null!=t&&e.isValid(t)?t:n},wg=function(e,t){for(var n=[e.startOfYear(t)];n.length<12;){var r=n[n.length-1];n.push(e.addMonths(r,1))}return n},Cg=function(e,t){var n=e.formatTokenMap[t];if(null==n)throw new Error(['MUI: The token "'.concat(t,'" is not supported by the Date and Time Pickers.'),"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join("\n"));return"string"===typeof n?{type:n,contentType:"meridiem"===n?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},jg=function(e,t){for(var n=[],r=e.date(),o=e.startOfWeek(r),i=e.endOfWeek(r),a=o;e.isBefore(a,i);)n.push(a),a=e.addDays(a,1);return n.map((function(n){return e.formatByString(n,t)}))},Sg=function(e,t,n){switch(t){case"month":return wg(e,e.date()).map((function(t){return e.formatByString(t,n)}));case"weekDay":return jg(e,n);case"meridiem":var r=e.date();return[e.startOfDay(r),e.endOfDay(r)].map((function(t){return e.formatByString(t,n)}));default:return[]}},kg=function(e,t,n){var r=t;for(r=Number(r).toString();r.length<n;)r="0".concat(r);return r},Zg=function(e,t,n,r){if("day"===r.type&&"digit-with-letter"===r.contentType){var o=e.setDate(n.longestMonth,t);return e.formatByString(o,r.format)}var i=t.toString();return r.hasLeadingZerosInInput?kg(0,i,r.maxLength):i},Og=function(e,t){var n=e.value||e.placeholder,r="non-input"===t?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return"non-input"===t&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString()),["input-rtl","input-ltr"].includes(t)&&"digit"===e.contentType&&!r&&1===n.length&&(n="".concat(n,"\u200e")),"input-rtl"===t&&(n="\u2068".concat(n,"\u2069")),n},Eg=function(e){return e.replace(/[\u2066\u2067\u2068\u2069]/g,"")},Dg=function(e,t){for(var n=0,o=t?1:0,i=[],a=0;a<e.length;a+=1){var s=e[a],l=Og(s,t?"input-rtl":"input-ltr"),c="".concat(s.startSeparator).concat(l).concat(s.endSeparator),u=Eg(c).length,d=c.length,p=Eg(l),f=o+l.indexOf(p[0])+s.startSeparator.length,h=f+p.length;i.push((0,r.Z)({},s,{start:n,end:n+u,startInInput:f,endInInput:h})),n+=u,o+=d}return i},Pg=function(e,t,n,r){switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(),r).length});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType});case"day":return t.fieldDayPlaceholder();case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType});case"hours":return t.fieldHoursPlaceholder();case"minutes":return t.fieldMinutesPlaceholder();case"seconds":return t.fieldSecondsPlaceholder();case"meridiem":return t.fieldMeridiemPlaceholder();default:return r}},Ag=function(e,t,n,r){return e.formatByString(e.parse(t,n),r)},Mg=function(e,t){return 4===e.formatByString(e.date(),t).length},Tg=function(e,t,n,r){if("digit"!==t)return!1;switch(n){case"year":return Mg(e,r)?"0001"===e.formatByString(e.setYear(e.date(),1),r):"01"===e.formatByString(e.setYear(e.date(),2001),r);case"month":return e.formatByString(e.startOfYear(e.date()),r).length>1;case"day":return e.formatByString(e.startOfMonth(e.date()),r).length>1;case"weekDay":return e.formatByString(e.startOfWeek(e.date()),r).length>1;case"hours":return e.formatByString(e.setHours(e.date(),1),r).length>1;case"minutes":case"seconds":return e.formatByString(e.setMinutes(e.date(),1),r).length>1;default:throw new Error("Invalid section type")}},Ig=function(e,t,n,o,i,a,s){for(var l="",c=[],u=e.date(),d=function(n){if(""===n)return null;var i=Cg(e,n),s=Tg(e,i.contentType,i.type,n),d=a?s:"digit"===i.contentType,p=null!=o&&e.isValid(o),f=p?e.formatByString(o,n):"",h=null;if(d)if(s)h=""===f?e.formatByString(u,n).length:f.length;else{if(null==i.maxLength)throw new Error("MUI: The token ".concat(n," should have a 'maxDigitNumber' property on it's adapter"));h=i.maxLength,p&&(f=kg(0,f,h))}return c.push((0,r.Z)({},i,{format:n,maxLength:h,value:f,placeholder:Pg(e,t,i,n),hasLeadingZeros:s,hasLeadingZerosInFormat:s,hasLeadingZerosInInput:d,startSeparator:0===c.length?l:"",endSeparator:"",modified:!1})),null},p=10,f=n,h=e.expandFormat(n);h!==f;)if(f=h,h=e.expandFormat(f),(p-=1)<0)throw new Error("MUI: The format expansion seems to be  enter in an infinite loop. Please open an issue with the format passed to the picker component");for(var m=h,v=function(e,t){for(var n=[],r=e.escapedCharacters,o=r.start,i=r.end,a=new RegExp("(\\".concat(o,"[^\\").concat(i,"]*\\").concat(i,")+"),"g"),s=null;s=a.exec(t);)n.push({start:s.index,end:a.lastIndex-1});return n}(e,m),g=new RegExp("^(".concat(Object.keys(e.formatTokenMap).join("|"),")")),y="",b=function(e){var t=v.find((function(t){return t.start<=e&&t.end>=e})),n=m[e],r=null!=t,o="".concat(y).concat(m.slice(e));!r&&n.match(/([A-Za-z]+)/)&&g.test(o)?y+=n:r&&(null==t?void 0:t.start)===e||(null==t?void 0:t.end)===e||(d(y),y="",0===c.length?l+=n:c[c.length-1].endSeparator+=n)},x=0;x<m.length;x+=1)b(x);return d(y),c.map((function(e){var t=function(e){var t=e;return s&&null!==t&&t.includes(" ")&&(t="\u2069".concat(t,"\u2066")),"spacious"===i&&["/",".","-"].includes(t)&&(t=" ".concat(t," ")),t};return e.startSeparator=t(e.startSeparator),e.endSeparator=t(e.endSeparator),e}))},Rg=function(e,t){for(var n=t.some((function(e){return"day"===e.type})),r=[],o=[],i=0;i<t.length;i+=1){var a=t[i];n&&"weekDay"===a.type||(r.push(a.format),o.push(Og(a,"non-input")))}var s=r.join(" "),l=o.join(" ");return e.parse(l,s)},Fg={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},Bg=function(e,t,n,r,o){return(0,dn.Z)(n).sort((function(e,t){return Fg[e.type]-Fg[t.type]})).reduce((function(n,r){return!o||r.modified?function(e,t,n,r){switch(t.type){case"year":return e.setYear(r,e.getYear(n));case"month":return e.setMonth(r,e.getMonth(n));case"weekDay":var o=jg(e,t.format),i=e.formatByString(n,t.format),a=o.indexOf(i),s=o.indexOf(t.value)-a;return e.addDays(n,s);case"day":return e.setDate(r,e.getDate(n));case"meridiem":var l=e.getHours(n)<12,c=e.getHours(r);return l&&c>=12?e.addHours(r,-12):!l&&c<12?e.addHours(r,12):r;case"hours":return e.setHours(r,e.getHours(n));case"minutes":return e.setMinutes(r,e.getMinutes(n));case"seconds":return e.setSeconds(r,e.getSeconds(n));default:return r}}(e,r,t,n):n}),r)},Lg={emptyValue:null,getTodayValue:function(e,t){return"date"===t?e.startOfDay(e.date()):e.date()},cleanValue:function(e,t){return null!=t&&e.isValid(t)?t:null},areValuesEqual:function(e,t,n){return!e.isValid(t)&&null!=t&&!e.isValid(n)&&null!=n||e.isEqual(t,n)},isSameError:function(e,t){return e===t},hasError:function(e){return null!=e},defaultErrorState:null},Ng={updateReferenceValue:function(e,t,n){return null!=t&&e.isValid(t)?t:n},getSectionsFromValue:function(e,t,n,r,o){return!e.isValid(t)&&!!n?n:Dg(o(t),r)},getValueStrFromSections:function(e,t){var n=e.map((function(e){var n=Og(e,t?"input-rtl":"input-ltr");return"".concat(e.startSeparator).concat(n).concat(e.endSeparator)})).join("");return t?"\u2066".concat(n,"\u2069"):n},getActiveDateManager:function(e,t){return{date:t.value,referenceDate:t.referenceValue,getSections:function(e){return e},getNewValuesFromNewActiveDate:function(n){return{value:n,referenceValue:null!=n&&e.isValid(n)?n:t.referenceValue}}}},parseValueStr:function(e,t,n){return n(e.trim(),t)}},_g={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:function(e){return"year"===e?"year view is open, switch to calendar view":"calendar view is open, switch to year view"},start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:function(e,t,n){return"Select ".concat(e,". ").concat(null===t?"No time selected":"Selected time is ".concat(n.format(t,"fullTime")))},hoursClockNumberText:function(e){return"".concat(e," hours")},minutesClockNumberText:function(e){return"".concat(e," minutes")},secondsClockNumberText:function(e){return"".concat(e," seconds")},selectViewText:function(e){return"Select ".concat(e)},calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:function(e){return"Week ".concat(e)},calendarWeekNumberText:function(e){return"".concat(e)},openDatePickerDialogue:function(e,t){return null!==e&&t.isValid(e)?"Choose date, selected date is ".concat(t.format(e,"fullDate")):"Choose date"},openTimePickerDialogue:function(e,t){return null!==e&&t.isValid(e)?"Choose time, selected time is ".concat(t.format(e,"fullTime")):"Choose time"},timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:function(e){return"Y".repeat(e.digitAmount)},fieldMonthPlaceholder:function(e){return"letter"===e.contentType?"MMMM":"MM"},fieldDayPlaceholder:function(){return"DD"},fieldWeekDayPlaceholder:function(e){return"letter"===e.contentType?"EEEE":"EE"},fieldHoursPlaceholder:function(){return"hh"},fieldMinutesPlaceholder:function(){return"mm"},fieldSecondsPlaceholder:function(){return"ss"},fieldMeridiemPlaceholder:function(){return"aa"}},zg=_g,Hg=(dg=_g,(0,r.Z)({},dg),function(){var e=o.useContext(Oh);if(null===e)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join("\n"));if(null===e.utils)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join("\n"));var t=o.useMemo((function(){return(0,r.Z)({},zg,e.localeText)}),[e.localeText]);return o.useMemo((function(){return(0,r.Z)({},e,{localeText:t})}),[e,t])}),Wg=function(){return Hg().utils},Vg=function(){return Hg().defaultDates},Ug=function(){return Hg().localeText},qg=function(){var e=Wg();return o.useRef(e.date()).current},Gg=function(e){return 1===e.length&&"year"===e[0]},Yg=function(e){return 2===e.length&&-1!==e.indexOf("month")&&-1!==e.indexOf("year")},Kg=function(e){var t,n=e.openTo,r=e.defaultOpenTo,o=e.views,i=e.defaultViews,a=null!=o?o:i;if(null!=n)t=n;else if(a.includes(r))t=r;else{if(!(a.length>0))throw new Error("MUI: The `views` prop must contain at least one view");t=a[0]}return{views:a,openTo:t}};function Jg(e){return(0,F.Z)("MuiPickersToolbar",e)}var Xg=(0,R.Z)("MuiPickersToolbar",["root","content","penIconButton","penIconButtonLandscape"]),Qg=(0,P.ZP)("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme,n=e.ownerState;return(0,r.Z)({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:t.spacing(2,3)},n.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})})),$g=(0,P.ZP)(kn,{name:"MuiPickersToolbar",slot:"Content",overridesResolver:function(e,t){return t.content}})((function(e){var t=e.ownerState;return(0,r.Z)({flex:1},!t.isLandscape&&{alignItems:"center"})})),ey=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiPickersToolbar"}),r=n.children,o=n.className,i=n.isLandscape,a=n.landscapeDirection,s=void 0===a?"column":a,l=n.toolbarTitle,c=n.hidden,d=n.titleId,p=n,f=function(e){var t=e.classes,n={root:["root"],content:["content"],penIconButton:["penIconButton",e.isLandscape&&"penIconButtonLandscape"]};return(0,M.Z)(n,Jg,t)}(p);return c?null:(0,u.jsxs)(Qg,{ref:t,className:(0,y.default)(f.root,o),ownerState:p,children:[(0,u.jsx)(rn.Z,{color:"text.secondary",variant:"overline",id:d,children:l}),(0,u.jsx)($g,{container:!0,justifyContent:i?"flex-start":"space-between",className:f.content,ownerState:p,direction:i?s:"row",alignItems:i?"flex-start":"flex-end",children:r})]})}));function ty(e){return(0,F.Z)("MuiDatePickerToolbar",e)}(0,R.Z)("MuiDatePickerToolbar",["root","title"]);var ny=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],ry=(0,P.ZP)(ey,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),oy=(0,P.ZP)(rn.Z,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:function(e,t){return t.title}})((function(e){var t=e.ownerState;return(0,r.Z)({},t.isLandscape&&{margin:"auto 16px auto auto"})})),iy=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiDatePickerToolbar"}),i=n.value,a=n.isLandscape,s=n.toolbarFormat,l=n.toolbarPlaceholder,c=void 0===l?"\u2013\u2013":l,d=n.views,p=(0,b.Z)(n,ny),f=Wg(),h=Ug(),m=function(e){var t=e.classes;return(0,M.Z)({root:["root"],title:["title"]},ty,t)}(n),v=o.useMemo((function(){return i?s?f.formatByString(i,s):Gg(d)?f.format(i,"year"):Yg(d)?f.format(i,"month"):/en/.test(f.getCurrentLocaleCode())?f.format(i,"normalDateWithWeekday"):f.format(i,"normalDate"):c}),[i,s,c,f,d]),g=n;return(0,u.jsx)(ry,(0,r.Z)({ref:t,toolbarTitle:h.datePickerToolbarTitle,isLandscape:a,className:m.root},p,{children:(0,u.jsx)(oy,{variant:"h4",align:a?"left":"center",ownerState:g,className:m.title,children:v})}))})),ay=function(e){if(void 0!==e)return Object.keys(e).reduce((function(n,o){return(0,r.Z)({},n,(0,t.Z)({},"".concat(o.slice(0,1).toLowerCase()).concat(o.slice(1)),e[o]))}),{})},sy=function(e,t){var n=t.format,r=t.views;return null!=n?n:Gg(r)?e.formats.year:Yg(r)?e.formats.monthAndYear:void 0};var ly=function(e){var t=e.props,n=e.value,r=e.adapter;if(null===n)return null;var o=r.utils.date(),i=xg(r.utils,t.minDate,r.defaultDates.minDate),a=xg(r.utils,t.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(n):return"invalidDate";case Boolean(t.shouldDisableDate&&t.shouldDisableDate(n)):return"shouldDisableDate";case Boolean(t.shouldDisableMonth&&t.shouldDisableMonth(n)):return"shouldDisableMonth";case Boolean(t.shouldDisableYear&&t.shouldDisableYear(n)):return"shouldDisableYear";case Boolean(t.disableFuture&&r.utils.isAfterDay(n,o)):return"disableFuture";case Boolean(t.disablePast&&r.utils.isBeforeDay(n,o)):return"disablePast";case Boolean(i&&r.utils.isBeforeDay(n,i)):return"minDate";case Boolean(a&&r.utils.isAfterDay(n,a)):return"maxDate";default:return null}},cy=n(60533),uy=n(64784);function dy(e){return(0,F.Z)("MuiInputAdornment",e)}var py,fy=(0,R.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),hy=["children","className","component","disablePointerEvents","disableTypography","position","variant"],my=(0,P.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["position".concat((0,Zn.Z)(n.position))],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((function(e){var n=e.theme,o=e.ownerState;return(0,r.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(n.vars||n).palette.action.active},"filled"===o.variant&&(0,t.Z)({},"&.".concat(fy.positionStart,"&:not(.").concat(fy.hiddenLabel,")"),{marginTop:16}),"start"===o.position&&{marginRight:8},"end"===o.position&&{marginLeft:8},!0===o.disablePointerEvents&&{pointerEvents:"none"})})),vy=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiInputAdornment"}),i=n.children,a=n.className,s=n.component,l=void 0===s?"div":s,c=n.disablePointerEvents,d=void 0!==c&&c,p=n.disableTypography,f=void 0!==p&&p,h=n.position,m=n.variant,v=(0,b.Z)(n,hy),g=(0,uy.Z)()||{},x=m;m&&g.variant,g&&!x&&(x=g.variant);var w=(0,r.Z)({},n,{hiddenLabel:g.hiddenLabel,size:g.size,disablePointerEvents:d,position:h,variant:x}),C=function(e){var t=e.classes,n=e.disablePointerEvents,r=e.hiddenLabel,o=e.position,i=e.size,a=e.variant,s={root:["root",n&&"disablePointerEvents",o&&"position".concat((0,Zn.Z)(o)),a,r&&"hiddenLabel",i&&"size".concat((0,Zn.Z)(i))]};return(0,M.Z)(s,dy,t)}(w);return(0,u.jsx)(cy.Z.Provider,{value:null,children:(0,u.jsx)(my,(0,r.Z)({as:l,ownerState:w,className:(0,y.default)(C.root,a),ref:t},v,{children:"string"!==typeof i||f?(0,u.jsxs)(o.Fragment,{children:["start"===h?py||(py=(0,u.jsx)("span",{className:"notranslate",children:"\u200b"})):null,i]}):(0,u.jsx)(rn.Z,{color:"text.secondary",children:i})}))})})),gy=vy,yy=n(76666),by=n(31972),xy=n(8023),wy=n(44884);function Cy(e){return(0,F.Z)("MuiPickersPopper",e)}(0,R.Z)("MuiPickersPopper",["root","paper"]);function jy(e,t){return Array.isArray(t)?t.every((function(t){return-1!==e.indexOf(t)})):-1!==e.indexOf(t)}var Sy=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,n=t.activeElement;return n?n.shadowRoot?e(n.shadowRoot):n:null},ky=(0,P.ZP)(Bl.Z,{name:"MuiPickersPopper",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){return{zIndex:e.theme.zIndex.modal}})),Zy=(0,P.ZP)(ao.Z,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:function(e,t){return t.paper}})((function(e){var t=e.ownerState;return(0,r.Z)({transformOrigin:"top center",outline:0},"top"===t.placement&&{transformOrigin:"bottom center"})}));function Oy(e){var t,n,i,a,s=(0,T.Z)({props:e,name:"MuiPickersPopper"}),l=s.anchorEl,c=s.children,d=s.containerRef,p=void 0===d?null:d,f=s.shouldRestoreFocus,h=s.onBlur,m=s.onDismiss,v=s.open,g=s.role,y=s.placement,b=s.slots,x=s.slotProps;o.useEffect((function(){function e(e){!v||"Escape"!==e.key&&"Esc"!==e.key||m()}return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}}),[m,v]);var w=o.useRef(null);o.useEffect((function(){"tooltip"===g||f&&!f()||(v?w.current=Sy(document):w.current&&w.current instanceof HTMLElement&&setTimeout((function(){w.current instanceof HTMLElement&&w.current.focus()})))}),[v,g,f]);var C=function(e,t){var n=o.useRef(!1),r=o.useRef(!1),i=o.useRef(null),a=o.useRef(!1);o.useEffect((function(){if(e)return document.addEventListener("mousedown",t,!0),document.addEventListener("touchstart",t,!0),function(){document.removeEventListener("mousedown",t,!0),document.removeEventListener("touchstart",t,!0),a.current=!1};function t(){a.current=!0}}),[e]);var s=(0,_s.Z)((function(e){if(a.current){var o=r.current;r.current=!1;var s=(0,Rs.Z)(i.current);!i.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,s)||(n.current?n.current=!1:(e.composedPath?e.composedPath().indexOf(i.current)>-1:!s.documentElement.contains(e.target)||i.current.contains(e.target))||o||t(e))}})),l=function(){r.current=!0};return o.useEffect((function(){if(e){var t=(0,Rs.Z)(i.current),r=function(){n.current=!0};return t.addEventListener("touchstart",s),t.addEventListener("touchmove",r),function(){t.removeEventListener("touchstart",s),t.removeEventListener("touchmove",r)}}}),[e,s]),o.useEffect((function(){if(e){var t=(0,Rs.Z)(i.current);return t.addEventListener("click",s),function(){t.removeEventListener("click",s),r.current=!1}}}),[e,s]),[i,l,l]}(v,null!=h?h:m),j=(0,Le.Z)(C,3),S=j[0],k=j[1],Z=j[2],O=o.useRef(null),E=(0,Ls.Z)(O,p),D=(0,Ls.Z)(E,S),P=s,A=function(e){var t=e.classes;return(0,M.Z)({root:["root"],paper:["paper"]},Cy,t)}(P),I=null!=(t=null==b?void 0:b.desktopTransition)?t:xy.Z,R=null!=(n=null==b?void 0:b.desktopTrapFocus)?n:wy.Z,F=null!=(i=null==b?void 0:b.desktopPaper)?i:Zy,B=(0,Ts.Z)({elementType:F,externalSlotProps:null==x?void 0:x.desktopPaper,additionalProps:{tabIndex:-1,elevation:8,ref:D},className:A.paper,ownerState:{}}),L=null!=(a=null==b?void 0:b.popper)?a:ky,N=(0,Ts.Z)({elementType:L,externalSlotProps:null==x?void 0:x.popper,additionalProps:{transition:!0,role:g,open:v,anchorEl:l,placement:y,onKeyDown:function(e){"Escape"===e.key&&(e.stopPropagation(),m())}},className:A.root,ownerState:s});return(0,u.jsx)(L,(0,r.Z)({},N,{children:function(e){var t=e.TransitionProps,n=e.placement;return(0,u.jsx)(R,(0,r.Z)({open:v,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:"tooltip"===g,isEnabled:function(){return!0}},null==x?void 0:x.desktopTrapFocus,{children:(0,u.jsx)(I,(0,r.Z)({},t,null==x?void 0:x.desktopTransition,{children:(0,u.jsx)(F,(0,r.Z)({},B,{onClick:function(e){var t;k(e),null==(t=B.onClick)||t.call(B,e)},onTouchStart:function(e){var t;Z(e),null==(t=B.onTouchStart)||t.call(B,e)},ownerState:(0,r.Z)({},P,{placement:n}),children:c}))}))}))}}))}var Ey=n(35915);function Dy(e,t,n,r){var i=e.value,a=e.onError,s=Hg(),l=o.useRef(r),c=t({adapter:s,value:i,props:e});return o.useEffect((function(){a&&!n(c,l.current)&&a(c,i),l.current=c}),[n,a,l,c,i]),c}var Py=function(e){var t=e.props,n=e.valueManager,i=e.valueType,a=e.wrapperVariant,s=e.validator,l=t.onAccept,c=t.onChange,u=t.value,d=t.defaultValue,p=t.closeOnSelect,f=void 0===p?"desktop"===a:p,h=t.selectedSections,m=t.onSelectedSectionsChange,v=o.useRef(d).current,g=o.useRef(void 0!==u).current;var y=Wg(),b=Hg(),x=(0,Fs.Z)({controlled:h,default:null,name:"usePickerValue",state:"selectedSections"}),w=(0,Le.Z)(x,2),C=w[0],j=w[1],S=function(e){var t=e.open,n=e.onOpen,r=e.onClose,i=o.useRef("boolean"===typeof t).current,a=o.useState(!1),s=(0,Le.Z)(a,2),l=s[0],c=s[1];return o.useEffect((function(){if(i){if("boolean"!==typeof t)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");c(t)}}),[i,t]),{isOpen:l,setIsOpen:o.useCallback((function(e){i||c(e),e&&n&&n(),!e&&r&&r()}),[i,n,r])}}(t),k=S.isOpen,Z=S.setIsOpen,O=o.useState((function(){var e;return{draft:e=void 0!==u?u:void 0!==v?v:n.emptyValue,lastPublishedValue:e,lastCommittedValue:e,lastControlledValue:u,hasBeenModifiedSinceMount:!1}})),E=(0,Le.Z)(O,2),D=E[0],P=E[1];Dy((0,r.Z)({},t,{value:D.draft}),s,n.isSameError,n.defaultErrorState);var A=(0,Ey.Z)((function(e){var o={action:e,dateState:D,hasChanged:function(t){return!n.areValuesEqual(y,e.value,t)},isControlled:g,closeOnSelect:f},i=function(e){var t=e.action,n=e.hasChanged,r=e.dateState,o=!e.isControlled&&!r.hasBeenModifiedSinceMount;return"setValueFromField"===t.name||("setValueFromAction"===t.name?!(!o||!["accept","today","clear"].includes(t.pickerAction))||n(r.lastPublishedValue):"setValueFromView"===t.name&&"shallow"!==t.selectionState&&(!!o||n(r.lastPublishedValue)))}(o),a=function(e){var t=e.action,n=e.hasChanged,r=e.dateState,o=e.isControlled,i=e.closeOnSelect,a=!o&&!r.hasBeenModifiedSinceMount;return"setValueFromAction"===t.name?!(!a||!["accept","today","clear"].includes(t.pickerAction))||n(r.lastCommittedValue):!("setValueFromView"!==t.name||"finish"!==t.selectionState||!i)&&(!!a||n(r.lastCommittedValue))}(o),u=function(e){var t=e.action,n=e.closeOnSelect;return"setValueFromAction"===t.name||"setValueFromView"===t.name&&"finish"===t.selectionState&&n}(o);if(P((function(t){return(0,r.Z)({},t,{draft:e.value,lastPublishedValue:i?e.value:t.lastPublishedValue,lastCommittedValue:a?e.value:t.lastCommittedValue,hasBeenModifiedSinceMount:!0})})),i&&c){var d={validationError:"setValueFromField"===e.name?e.context.validationError:s({adapter:b,value:e.value,props:(0,r.Z)({},t,{value:e.value})})};c(e.value,d)}a&&l&&l(e.value),u&&Z(!1)}));if(void 0!==u&&(void 0===D.lastControlledValue||!n.areValuesEqual(y,D.lastControlledValue,u))){var M=n.areValuesEqual(y,D.draft,u);P((function(e){return(0,r.Z)({},e,{lastControlledValue:u},M?{}:{lastCommittedValue:u,lastPublishedValue:u,draft:u,hasBeenModifiedSinceMount:!0})}))}var T=(0,Ey.Z)((function(){A({value:n.emptyValue,name:"setValueFromAction",pickerAction:"clear"})})),I=(0,Ey.Z)((function(){A({value:D.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})})),R=(0,Ey.Z)((function(){A({value:D.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})})),F=(0,Ey.Z)((function(){A({value:D.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})})),B=(0,Ey.Z)((function(){A({value:n.getTodayValue(y,i),name:"setValueFromAction",pickerAction:"today"})})),L=(0,Ey.Z)((function(){return Z(!0)})),N=(0,Ey.Z)((function(){return Z(!1)})),_=(0,Ey.Z)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"partial";return A({name:"setValueFromView",value:e,selectionState:t})})),z=(0,Ey.Z)((function(e,t){return A({name:"setValueFromField",value:e,context:t})})),H=(0,Ey.Z)((function(e){j(e),null==m||m(e)})),W={onClear:T,onAccept:I,onDismiss:R,onCancel:F,onSetToday:B,onOpen:L,onClose:N},V={value:D.draft,onChange:z,selectedSections:C,onSelectedSectionsChange:H},U=o.useMemo((function(){return n.cleanValue(y,D.draft)}),[y,n,D.draft]);return{open:k,fieldProps:V,viewProps:{value:U,onChange:_,onClose:N,open:k,onSelectedSectionsChange:H},layoutProps:(0,r.Z)({},W,{value:U,onChange:_,isValid:function(e){var o=s({adapter:b,value:e,props:(0,r.Z)({},t,{value:e})});return!n.hasError(o)}}),actions:W}},Ay=n(99300);function My(e){var t,n,r=e.onChange,i=e.onViewChange,a=e.openTo,s=e.view,l=e.views,c=e.autoFocus,u=e.focusedView,d=e.onFocusedViewChange;var p=o.useRef(a),f=o.useRef(l),h=o.useRef(l.includes(a)?a:l[0]),m=(0,Fs.Z)({name:"useViews",state:"view",controlled:s,default:h.current}),v=(0,Le.Z)(m,2),g=v[0],y=v[1],b=o.useRef(c?g:null),x=(0,Fs.Z)({name:"useViews",state:"focusedView",controlled:u,default:b.current}),w=(0,Le.Z)(x,2),C=w[0],j=w[1];o.useEffect((function(){(p.current&&p.current!==a||f.current&&f.current.some((function(e){return!l.includes(e)})))&&(y(l.includes(a)?a:l[0]),f.current=l,p.current=a)}),[a,y,g,l]);var S=l.indexOf(g),k=null!=(t=l[S-1])?t:null,Z=null!=(n=l[S+1])?n:null,O=(0,Ey.Z)((function(e){e!==g&&(y(e),i&&i(e))})),E=(0,Ey.Z)((function(e,t){j(t?e:function(t){return e===t?null:t}),null==d||d(e,t)})),D=(0,Ey.Z)((function(){Z&&O(Z),E(Z,!0)})),P=(0,Ey.Z)((function(e,t,n){var o="finish"===t,i=n?l.indexOf(n)<l.length-1:Boolean(Z);r(e,o&&i?"partial":t),o&&D()})),A=(0,Ey.Z)((function(e,t,n){r(e,t?"partial":"finish",n),t&&(O(t),E(t,!0))}));return{view:g,setView:O,focusedView:C,setFocusedView:E,nextView:Z,previousView:k,defaultView:h.current,goToNextView:D,setValueAndGoToNextView:P,setValueAndGoToView:A}}var Ty=["hours","minutes","seconds"],Iy=function(e){return Ty.includes(e)},Ry=function(e,t,n){if(n&&(e>=12?"pm":"am")!==t)return"am"===t?e-12:e+12;return e},Fy=function(e,t){return 3600*t.getHours(e)+60*t.getMinutes(e)+t.getSeconds(e)},By=function(e,t){return function(n,r){return e?t.isAfter(n,r):Fy(n,t)>Fy(r,t)}},Ly=["className","sx"];function Ny(){return"undefined"===typeof window?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?90===Math.abs(window.screen.orientation.angle)?"landscape":"portrait":window.orientation&&90===Math.abs(Number(window.orientation))?"landscape":"portrait"}var _y=function(e){var t=e.props,n=e.propsFromPickerValue,i=e.propsFromPickerViews,a=e.wrapperVariant,s=t.orientation,l=function(e,t){var n=o.useState(Ny),r=(0,Le.Z)(n,2),i=r[0],a=r[1];return(0,Ns.Z)((function(){var e=function(){a(Ny())};return window.addEventListener("orientationchange",e),function(){window.removeEventListener("orientationchange",e)}}),[]),!jy(e,["hours","minutes","seconds"])&&"landscape"===(t||i)}(i.views,s);return{layoutProps:(0,r.Z)({},i,n,{isLandscape:l,wrapperVariant:a,disabled:t.disabled,readOnly:t.readOnly})}},zy=(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"warning",n=!1,r=Array.isArray(e)?e.join("\n"):e}(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]),function(e){var t=e.props,n=e.valueManager,i=e.valueType,a=e.wrapperVariant,s=e.inputRef,l=e.additionalViewProps,c=e.validator,u=e.autoFocusView;var d=Py({props:t,valueManager:n,valueType:i,wrapperVariant:a,validator:c}),p=function(e){var t=e.props,n=e.propsFromPickerValue,i=e.additionalViewProps,a=e.inputRef,s=e.autoFocusView,l=n.onChange,c=n.open,u=n.onSelectedSectionsChange,d=n.onClose,p=t.views,f=t.openTo,h=t.onViewChange,m=t.disableOpenPicker,v=t.viewRenderers,g=(0,b.Z)(t,Ly),y=My({view:void 0,views:p,openTo:f,onChange:l,onViewChange:h,autoFocus:s}),x=y.view,w=y.setView,C=y.defaultView,j=y.focusedView,S=y.setFocusedView,k=y.setValueAndGoToNextView,Z=o.useMemo((function(){return p.reduce((function(e,t){var n;return n=m?"field":null!=v[t]?"UI":"field",e.viewModeLookup[t]=n,"UI"===n&&(e.hasUIView=!0),e}),{hasUIView:!1,viewModeLookup:{}})}),[m,v,p]),O=Z.hasUIView,E=Z.viewModeLookup,D=o.useMemo((function(){return p.reduce((function(e,t){return null!=v[t]&&Iy(t)?e+1:e}),0)>1}),[v,p]),P=E[x],A=(0,Ey.Z)((function(){return"UI"===P})),M=o.useState("UI"===P?x:null),T=(0,Le.Z)(M,2),I=T[0],R=T[1];return I!==x&&"UI"===E[x]&&R(x),(0,Ay.default)((function(){"field"===P&&c&&(d(),u("hours"),setTimeout((function(){null==a||a.current.focus()})))}),[x]),(0,Ay.default)((function(){if(c){var e=x;"field"===P&&null!=I&&(e=I),e!==C&&"UI"===E[e]&&"UI"===E[C]&&(e=C),e!==x&&w(e),S(e,!0)}}),[c]),{hasUIView:O,shouldRestoreFocus:A,layoutProps:{views:p,view:I,onViewChange:w},renderCurrentView:function(){if(null==I)return null;var e=v[I];return null==e?null:e((0,r.Z)({},g,i,n,{views:p,onChange:k,view:I,onViewChange:w,focusedView:j,onFocusedViewChange:S,showViewSwitcher:D}))}}}({props:t,inputRef:s,additionalViewProps:l,autoFocusView:u,propsFromPickerValue:d.viewProps}),f=_y({props:t,wrapperVariant:a,propsFromPickerValue:d.layoutProps,propsFromPickerViews:p.layoutProps});return{open:d.open,actions:d.actions,fieldProps:d.fieldProps,renderCurrentView:p.renderCurrentView,hasUIView:p.hasUIView,shouldRestoreFocus:p.shouldRestoreFocus,layoutProps:f.layoutProps}});function Hy(e){return(0,F.Z)("MuiPickersLayout",e)}var Wy=(0,R.Z)("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]);function Vy(e){return(0,F.Z)("MuiDialogActions",e)}(0,R.Z)("MuiDialogActions",["root","spacing"]);var Uy=["className","disableSpacing"],qy=(0,P.ZP)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,!n.disableSpacing&&t.spacing]}})((function(e){var t=e.ownerState;return(0,r.Z)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})})),Gy=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiDialogActions"}),o=n.className,i=n.disableSpacing,a=void 0!==i&&i,s=(0,b.Z)(n,Uy),l=(0,r.Z)({},n,{disableSpacing:a}),c=function(e){var t=e.classes,n={root:["root",!e.disableSpacing&&"spacing"]};return(0,M.Z)(n,Vy,t)}(l);return(0,u.jsx)(qy,(0,r.Z)({className:(0,y.default)(c.root,o),ownerState:l,ref:t},s))})),Yy=Gy,Ky=["onAccept","onClear","onCancel","onSetToday","actions"];function Jy(e){var t=e.onAccept,n=e.onClear,o=e.onCancel,i=e.onSetToday,a=e.actions,s=(0,b.Z)(e,Ky),l=Ug();if(null==a||0===a.length)return null;var c=null==a?void 0:a.map((function(e){switch(e){case"clear":return(0,u.jsx)(ko.Z,{onClick:n,children:l.clearButtonLabel},e);case"cancel":return(0,u.jsx)(ko.Z,{onClick:o,children:l.cancelButtonLabel},e);case"accept":return(0,u.jsx)(ko.Z,{onClick:t,children:l.okButtonLabel},e);case"today":return(0,u.jsx)(ko.Z,{onClick:i,children:l.todayButtonLabel},e);default:return null}}));return(0,u.jsx)(Yy,(0,r.Z)({},s,{children:c}))}var Xy=n(3679),Qy=n(99287),$y=n(29728),eb=n(1124);function tb(e){return(0,F.Z)("MuiListItem",e)}var nb=(0,R.Z)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function rb(e){return(0,F.Z)("MuiListItemButton",e)}var ob=(0,R.Z)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function ib(e){return(0,F.Z)("MuiListItemSecondaryAction",e)}(0,R.Z)("MuiListItemSecondaryAction",["root","disableGutters"]);var ab=["className"],sb=(0,P.ZP)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.disableGutters&&t.disableGutters]}})((function(e){var t=e.ownerState;return(0,r.Z)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},t.disableGutters&&{right:0})})),lb=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiListItemSecondaryAction"}),i=n.className,a=(0,b.Z)(n,ab),s=o.useContext(eb.Z),l=(0,r.Z)({},n,{disableGutters:s.disableGutters}),c=function(e){var t=e.disableGutters,n=e.classes,r={root:["root",t&&"disableGutters"]};return(0,M.Z)(r,ib,n)}(l);return(0,u.jsx)(sb,(0,r.Z)({className:(0,y.default)(c.root,i),ownerState:l,ref:t},a))}));lb.muiName="ListItemSecondaryAction";var cb=lb,ub=["className"],db=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],pb=(0,P.ZP)("div",{name:"MuiListItem",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((function(e){var n,o=e.theme,i=e.ownerState;return(0,r.Z)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!i.disablePadding&&(0,r.Z)({paddingTop:8,paddingBottom:8},i.dense&&{paddingTop:4,paddingBottom:4},!i.disableGutters&&{paddingLeft:16,paddingRight:16},!!i.secondaryAction&&{paddingRight:48}),!!i.secondaryAction&&(0,t.Z)({},"& > .".concat(ob.root),{paddingRight:48}),(n={},(0,t.Z)(n,"&.".concat(nb.focusVisible),{backgroundColor:(o.vars||o).palette.action.focus}),(0,t.Z)(n,"&.".concat(nb.selected),(0,t.Z)({backgroundColor:o.vars?"rgba(".concat(o.vars.palette.primary.mainChannel," / ").concat(o.vars.palette.action.selectedOpacity,")"):(0,A.Fq)(o.palette.primary.main,o.palette.action.selectedOpacity)},"&.".concat(nb.focusVisible),{backgroundColor:o.vars?"rgba(".concat(o.vars.palette.primary.mainChannel," / calc(").concat(o.vars.palette.action.selectedOpacity," + ").concat(o.vars.palette.action.focusOpacity,"))"):(0,A.Fq)(o.palette.primary.main,o.palette.action.selectedOpacity+o.palette.action.focusOpacity)})),(0,t.Z)(n,"&.".concat(nb.disabled),{opacity:(o.vars||o).palette.action.disabledOpacity}),n),"flex-start"===i.alignItems&&{alignItems:"flex-start"},i.divider&&{borderBottom:"1px solid ".concat((o.vars||o).palette.divider),backgroundClip:"padding-box"},i.button&&(0,t.Z)({transition:o.transitions.create("background-color",{duration:o.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(o.vars||o).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},"&.".concat(nb.selected,":hover"),{backgroundColor:o.vars?"rgba(".concat(o.vars.palette.primary.mainChannel," / calc(").concat(o.vars.palette.action.selectedOpacity," + ").concat(o.vars.palette.action.hoverOpacity,"))"):(0,A.Fq)(o.palette.primary.main,o.palette.action.selectedOpacity+o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:o.vars?"rgba(".concat(o.vars.palette.primary.mainChannel," / ").concat(o.vars.palette.action.selectedOpacity,")"):(0,A.Fq)(o.palette.primary.main,o.palette.action.selectedOpacity)}}),i.hasSecondaryAction&&{paddingRight:48})})),fb=(0,P.ZP)("li",{name:"MuiListItem",slot:"Container",overridesResolver:function(e,t){return t.container}})({position:"relative"}),hb=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiListItem"}),i=n.alignItems,a=void 0===i?"center":i,s=n.autoFocus,l=void 0!==s&&s,c=n.button,d=void 0!==c&&c,p=n.children,f=n.className,h=n.component,m=n.components,v=void 0===m?{}:m,g=n.componentsProps,x=void 0===g?{}:g,w=n.ContainerComponent,j=void 0===w?"li":w,S=n.ContainerProps,k=(S=void 0===S?{}:S).className,Z=n.dense,O=void 0!==Z&&Z,E=n.disabled,D=void 0!==E&&E,P=n.disableGutters,A=void 0!==P&&P,I=n.disablePadding,R=void 0!==I&&I,F=n.divider,B=void 0!==F&&F,L=n.focusVisibleClassName,N=n.secondaryAction,_=n.selected,z=void 0!==_&&_,H=n.slotProps,W=void 0===H?{}:H,V=n.slots,U=void 0===V?{}:V,q=(0,b.Z)(n.ContainerProps,ub),G=(0,b.Z)(n,db),Y=o.useContext(eb.Z),K=o.useMemo((function(){return{dense:O||Y.dense||!1,alignItems:a,disableGutters:A}}),[a,Y.dense,O,A]),J=o.useRef(null);(0,Tn.Z)((function(){l&&J.current&&J.current.focus()}),[l]);var X=o.Children.toArray(p),Q=X.length&&(0,$y.Z)(X[X.length-1],["ListItemSecondaryAction"]),$=(0,r.Z)({},n,{alignItems:a,autoFocus:l,button:d,dense:K.dense,disabled:D,disableGutters:A,disablePadding:R,divider:B,hasSecondaryAction:Q,selected:z}),ee=function(e){var t=e.alignItems,n=e.button,r=e.classes,o=e.dense,i=e.disabled,a={root:["root",o&&"dense",!e.disableGutters&&"gutters",!e.disablePadding&&"padding",e.divider&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",e.hasSecondaryAction&&"secondaryAction",e.selected&&"selected"],container:["container"]};return(0,M.Z)(a,tb,r)}($),te=(0,C.Z)(J,t),ne=U.root||v.Root||pb,re=W.root||x.root||{},oe=(0,r.Z)({className:(0,y.default)(ee.root,re.className,f),disabled:D},G),ie=h||"li";return d&&(oe.component=h||"div",oe.focusVisibleClassName=(0,y.default)(nb.focusVisible,L),ie=Qy.Z),Q?(ie=oe.component||h?ie:"div","li"===j&&("li"===ie?ie="div":"li"===oe.component&&(oe.component="div")),(0,u.jsx)(eb.Z.Provider,{value:K,children:(0,u.jsxs)(fb,(0,r.Z)({as:j,className:(0,y.default)(ee.container,k),ref:te,ownerState:$},q,{children:[(0,u.jsx)(ne,(0,r.Z)({},re,!(0,Is.Z)(ne)&&{as:ie,ownerState:(0,r.Z)({},$,re.ownerState)},oe,{children:X})),X.pop()]}))})):(0,u.jsx)(eb.Z.Provider,{value:K,children:(0,u.jsxs)(ne,(0,r.Z)({},re,{as:ie,ref:te},!(0,Is.Z)(ne)&&{ownerState:(0,r.Z)({},$,re.ownerState)},oe,{children:[X,N&&(0,u.jsx)(cb,{children:N})]}))})})),mb=hb,vb=358,gb=["items","isLandscape","onChange","isValid"];function yb(e){var t=e.items,n=e.onChange,o=e.isValid,i=(0,b.Z)(e,gb);if(null==t||0===t.length)return null;var a=t.map((function(e){var t=e.getValue({isValid:o});return{label:e.label,onClick:function(){n(t)},disabled:!o(t)}}));return(0,u.jsx)(Xy.Z,(0,r.Z)({dense:!0,sx:[{maxHeight:vb,maxWidth:200,overflow:"auto"}].concat((0,dn.Z)(Array.isArray(i.sx)?i.sx:[i.sx]))},i,{children:a.map((function(e){return(0,u.jsx)(mb,{children:(0,u.jsx)(Fd.Z,(0,r.Z)({},e))},e.label)}))}))}var bb=function(e){var t,n,o=e.wrapperVariant,i=e.onAccept,a=e.onClear,s=e.onCancel,l=e.onSetToday,c=e.view,d=e.views,p=e.onViewChange,f=e.value,h=e.onChange,m=e.isValid,v=e.isLandscape,g=e.disabled,y=e.readOnly,b=e.children,x=e.components,w=e.componentsProps,C=e.slots,j=e.slotProps,S=null!=C?C:ay(x),k=null!=j?j:w,Z=function(e){var t=e.classes,n={root:["root",e.isLandscape&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]};return(0,M.Z)(n,Hy,t)}(e),O=null!=(t=null==S?void 0:S.actionBar)?t:Jy,E=(0,Ts.Z)({elementType:O,externalSlotProps:null==k?void 0:k.actionBar,additionalProps:{onAccept:i,onClear:a,onCancel:s,onSetToday:l,actions:"desktop"===o?[]:["cancel","accept"],className:Z.actionBar},ownerState:(0,r.Z)({},e,{wrapperVariant:o})}),D=(0,u.jsx)(O,(0,r.Z)({},E)),P=null==S?void 0:S.toolbar,A=(0,Ts.Z)({elementType:P,externalSlotProps:null==k?void 0:k.toolbar,additionalProps:{isLandscape:v,onChange:h,value:f,view:c,onViewChange:p,views:d,disabled:g,readOnly:y,className:Z.toolbar},ownerState:(0,r.Z)({},e,{wrapperVariant:o})}),T=function(e){return null!==e.view}(A)&&P?(0,u.jsx)(P,(0,r.Z)({},A)):null,I=b,R=null==S?void 0:S.tabs,F=c&&R?(0,u.jsx)(R,(0,r.Z)({view:c,onViewChange:p},null==k?void 0:k.tabs)):null,B=null!=(n=null==S?void 0:S.shortcuts)?n:yb,L=(0,Ts.Z)({elementType:B,externalSlotProps:null==k?void 0:k.shortcuts,additionalProps:{isValid:m,isLandscape:v,onChange:h,className:Z.shortcuts},ownerState:{isValid:m,isLandscape:v,onChange:h,className:Z.shortcuts,wrapperVariant:o}});return{toolbar:T,content:I,tabs:F,actionBar:D,shortcuts:c&&B?(0,u.jsx)(B,(0,r.Z)({},L)):null}},xb=(0,P.ZP)("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){var n,r=e.theme,o=e.ownerState;return n={display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content"},(0,t.Z)(n,"& .".concat(Wy.toolbar),o.isLandscape?{gridColumn:"rtl"===r.direction?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1}),(0,t.Z)(n,".".concat(Wy.shortcuts),o.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:"rtl"===r.direction?3:1,gridRow:"2 / 3"}),(0,t.Z)(n,"& .".concat(Wy.actionBar),{gridColumn:"1 / 4",gridRow:3}),n}));xb.propTypes={as:$e().elementType,ownerState:$e().shape({isLandscape:$e().bool.isRequired}).isRequired,sx:$e().oneOfType([$e().arrayOf($e().oneOfType([$e().func,$e().object,$e().bool])),$e().func,$e().object])};var wb=(0,P.ZP)("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:function(e,t){return t.contentWrapper}})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Cb=function(e){var t=(0,T.Z)({props:e,name:"MuiPickersLayout"}),n=bb(t),r=n.toolbar,i=n.content,a=n.tabs,s=n.actionBar,l=n.shortcuts,c=t.sx,d=t.className,p=t.isLandscape,f=t.ref,h=t.wrapperVariant,m=t,v=function(e){var t=e.isLandscape,n=e.classes,r={root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]};return(0,M.Z)(r,Hy,n)}(m);return(0,u.jsxs)(xb,{ref:f,sx:c,className:(0,y.default)(d,v.root),ownerState:m,children:[p?l:r,p?r:l,(0,u.jsx)(wb,{className:v.contentWrapper,children:"desktop"===h?(0,u.jsxs)(o.Fragment,{children:[i,a]}):(0,u.jsxs)(o.Fragment,{children:[a,i]})}),s]})},jb=["props","getOpenDialogAriaText"],Sb=["ownerState"],kb=["ownerState"],Zb=function(e){var n,i,a,s,l,c=e.props,d=e.getOpenDialogAriaText,p=(0,b.Z)(e,jb),f=c.slots,h=c.slotProps,m=c.className,v=c.sx,g=c.format,y=c.formatDensity,x=c.label,w=c.inputRef,C=c.readOnly,j=c.disabled,S=c.autoFocus,k=c.localeText,Z=Wg(),O=o.useRef(null),E=o.useRef(null),D=(0,by.Z)(),P=null!=(n=null==h||null==(i=h.toolbar)?void 0:i.hidden)&&n,A=zy((0,r.Z)({},p,{props:c,inputRef:O,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),M=A.open,T=A.actions,I=A.hasUIView,R=A.layoutProps,F=A.renderCurrentView,B=A.shouldRestoreFocus,L=A.fieldProps,N=null!=(a=f.inputAdornment)?a:gy,_=(0,Ts.Z)({elementType:N,externalSlotProps:null==h?void 0:h.inputAdornment,additionalProps:{position:"end"},ownerState:c}),z=(0,b.Z)(_,Sb),H=null!=(s=f.openPickerButton)?s:io.Z,W=(0,Ts.Z)({elementType:H,externalSlotProps:null==h?void 0:h.openPickerButton,additionalProps:{disabled:j||C,onClick:T.onOpen,"aria-label":d(L.value,Z),edge:z.position},ownerState:c}),V=(0,b.Z)(W,kb),U=f.openPickerIcon,q=f.field,G=(0,Ts.Z)({elementType:q,externalSlotProps:null==h?void 0:h.field,additionalProps:(0,r.Z)({},L,P&&{id:D},{readOnly:C,disabled:j,className:m,sx:v,format:g,formatDensity:y,label:x,autoFocus:S&&!c.open,focused:!!M||void 0}),ownerState:c});I&&(G.InputProps=(0,r.Z)({},G.InputProps,(0,t.Z)({ref:E},"".concat(z.position,"Adornment"),(0,u.jsx)(N,(0,r.Z)({},z,{children:(0,u.jsx)(H,(0,r.Z)({},V,{children:(0,u.jsx)(U,(0,r.Z)({},null==h?void 0:h.openPickerIcon))}))})))));var Y=(0,r.Z)({textField:f.textField},G.slots),K=null!=(l=f.layout)?l:Cb,J=(0,yy.Z)(O,G.inputRef,w),X=D;P&&(X=x?"".concat(D,"-label"):void 0);var Q=(0,r.Z)({},h,{toolbar:(0,r.Z)({},null==h?void 0:h.toolbar,{titleId:D}),popper:(0,r.Z)({"aria-labelledby":X},null==h?void 0:h.popper)});return{renderPicker:function(){return(0,u.jsxs)(Eh,{localeText:k,children:[(0,u.jsx)(q,(0,r.Z)({},G,{slots:Y,slotProps:Q,inputRef:J})),(0,u.jsx)(Oy,(0,r.Z)({role:"dialog",placement:"bottom-start",anchorEl:E.current},T,{open:M,slots:f,slotProps:Q,shouldRestoreFocus:B,children:(0,u.jsx)(K,(0,r.Z)({},R,null==Q?void 0:Q.layout,{slots:f,slotProps:Q,children:F()}))}))]})}}},Ob=(0,pa.Z)((0,u.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Eb=(0,pa.Z)((0,u.jsx)("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),Db=(0,pa.Z)((0,u.jsx)("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),Pb=(0,pa.Z)((0,u.jsx)("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),Ab=(0,pa.Z)((0,u.jsxs)(o.Fragment,{children:[(0,u.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,u.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),Mb=((0,pa.Z)((0,u.jsx)("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),(0,pa.Z)((0,u.jsxs)(o.Fragment,{children:[(0,u.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,u.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),n(48467)),Tb=function(e){var t,n=Wg(),i=Ug(),a=Hg(),s="rtl"===(0,j.Z)().direction,l=e.valueManager,c=e.fieldValueManager,u=e.valueType,d=e.validator,p=e.internalProps,f=e.internalProps,h=f.value,m=f.defaultValue,v=f.onChange,g=f.format,y=f.formatDensity,b=void 0===y?"dense":y,x=f.selectedSections,w=f.onSelectedSectionsChange,C=f.shouldRespectLeadingZeros,S=void 0!==C&&C,k=o.useRef(m),Z=null!=(t=null!=h?h:k.current)?t:l.emptyValue,O=o.useMemo((function(){return function(e){var t=e.date(),n=e.endOfYear(t),r=wg(e,t).reduce((function(t,n){var r=e.getDaysInMonth(n);return r>t.maxDaysInMonth?{maxDaysInMonth:r,longestMonth:n}:t}),{maxDaysInMonth:0,longestMonth:null}),o=r.maxDaysInMonth,i=r.longestMonth;return{year:function(t){var n=t.format;return{minimum:0,maximum:Mg(e,n)?9999:99}},month:function(){return{minimum:1,maximum:e.getMonth(n)+1}},day:function(t){var n=t.currentDate;return{minimum:1,maximum:null!=n&&e.isValid(n)?e.getDaysInMonth(n):o,longestMonth:i}},weekDay:function(t){var n=t.format;if("digit"===t.contentType){var r=jg(e,n).map(Number);return{minimum:Math.min.apply(Math,(0,dn.Z)(r)),maximum:Math.max.apply(Math,(0,dn.Z)(r))}}return{minimum:1,maximum:7}},hours:function(r){var o=r.format,i=e.getHours(n);return e.formatByString(e.endOfDay(t),o)!==i.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(t),o))}:{minimum:0,maximum:i}},minutes:function(){return{minimum:0,maximum:e.getMinutes(n)}},seconds:function(){return{minimum:0,maximum:e.getSeconds(n)}},meridiem:function(){return{minimum:0,maximum:0}}}}(n)}),[n]),E=o.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return c.getSectionsFromValue(n,e,t,s,(function(e){return Ig(n,i,g,e,b,S,s)}))}),[c,g,i,s,S,n,b]),D=o.useMemo((function(){return c.getValueStrFromSections(E(l.emptyValue),s)}),[c,E,l.emptyValue,s]),P=o.useState((function(){var e=E(Z);return{sections:e,value:Z,referenceValue:c.updateReferenceValue(n,Z,l.getTodayValue(n,u)),tempValueStrAndroid:null}})),A=(0,Le.Z)(P,2),M=A[0],T=A[1],I=(0,Mb.Z)({controlled:x,default:null,name:"useField",state:"selectedSectionIndexes"}),R=(0,Le.Z)(I,2),F=R[0],B=R[1],L=function(e){B(e),null==w||w(e),T((function(e){return(0,r.Z)({},e,{selectedSectionQuery:null})}))},N=o.useMemo((function(){if(null==F)return null;if("all"===F)return{startIndex:0,endIndex:M.sections.length-1,shouldSelectBoundarySelectors:!0};if("number"===typeof F)return{startIndex:F,endIndex:F};if("string"===typeof F){var e=M.sections.findIndex((function(e){return e.type===F}));return{startIndex:e,endIndex:e}}return F}),[F,M.sections]),_=function(e){var t=e.value,n=e.referenceValue,o=e.sections;if(T((function(e){return(0,r.Z)({},e,{sections:o,value:t,referenceValue:n,tempValueStrAndroid:null})})),v){var i={validationError:d({adapter:a,value:t,props:(0,r.Z)({},p,{value:t})})};v(t,i)}},z=function(e,t){var n=(0,dn.Z)(M.sections);return n[e]=(0,r.Z)({},n[e],{value:t,modified:!0}),Dg(n,s)};return o.useEffect((function(){l.areValuesEqual(n,M.value,Z)||T((function(e){return(0,r.Z)({},e,{value:Z,referenceValue:c.updateReferenceValue(n,Z,e.referenceValue),sections:E(Z)})}))}),[Z]),o.useEffect((function(){var e=E(M.value);T((function(t){return(0,r.Z)({},t,{sections:e})}))}),[g,n.locale]),{state:M,selectedSectionIndexes:N,setSelectedSections:L,clearValue:function(){l.areValuesEqual(n,M.value,l.emptyValue)||_({value:l.emptyValue,referenceValue:M.referenceValue,sections:E(l.emptyValue)})},clearActiveSection:function(){if(null!=N){var e=M.sections[N.startIndex];if(""!==e.value){var t=c.getActiveDateManager(n,M,e),o=1===t.getSections(M.sections).filter((function(e){return""!==e.value})).length,i=z(N.startIndex,""),a=o?null:n.date(new Date("")),s=t.getNewValuesFromNewActiveDate(a);(null!=a&&!n.isValid(a))!==(null!=t.date&&!n.isValid(t.date))?_((0,r.Z)({},s,{sections:i})):T((function(e){return(0,r.Z)({},e,s,{sections:i,tempValueStrAndroid:null})}))}}},updateSectionValue:function(e){var t=e.activeSection,o=e.newSectionValue;e.shouldGoToNextSection&&N&&N.startIndex<M.sections.length-1?L(N.startIndex+1):N&&N.startIndex!==N.endIndex&&L(N.startIndex);var i,a,s=c.getActiveDateManager(n,M,t),l=z(N.startIndex,o),u=s.getSections(l),d=Rg(n,u),p=!1;if(!n.isValid(d)){var f=function(e,t,n){if(!t.every((function(e){return"weekDay"===e.type||""!==e.value}))||!t.some((function(e){return"day"===e.type})))return null;var o=t.map((function(t){if("day"!==t.type)return t;var o=n.day({currentDate:null,format:t.format,contentType:t.contentType});return(0,r.Z)({},t,{value:Zg(e,o.minimum,o,t)})})),i=Rg(e,o);return null!=i&&e.isValid(i)?t.map((function(e){if("day"!==e.type)return e;var t=n.day({currentDate:i,format:e.format,contentType:e.contentType});return Number(e.value)<=t.maximum?e:(0,r.Z)({},e,{value:t.maximum.toString()})})):null}(n,u,O);null!=f&&(p=!0,d=Rg(n,f))}if(null!=d&&n.isValid(d)){var h=Bg(n,d,u,s.referenceDate,!0);i=s.getNewValuesFromNewActiveDate(h),a=!0}else i=s.getNewValuesFromNewActiveDate(d),a=(null!=d&&!n.isValid(d))!==(null!=s.date&&!n.isValid(s.date));var m=p?E(i.value,M.sections):l;return a?_((0,r.Z)({},i,{sections:m})):T((function(e){return(0,r.Z)({},e,i,{sections:m,tempValueStrAndroid:null})}))},updateValueFromValueStr:function(e){var t=c.parseValueStr(e,M.referenceValue,(function(e,t){var r=n.parse(e,g);if(null==r||!n.isValid(r))return null;var o=Ig(n,i,g,r,b,S,s);return Bg(n,r,o,t,!1)})),r=c.updateReferenceValue(n,t,M.referenceValue);_({value:t,referenceValue:r,sections:E(t,M.sections)})},setTempAndroidValueStr:function(e){return T((function(t){return(0,r.Z)({},t,{tempValueStrAndroid:e})}))},sectionsValueBoundaries:O,placeholder:D}},Ib=function(e){return null!=e.saveQuery},Rb=function(e){var t=e.sections,n=e.updateSectionValue,i=e.sectionsValueBoundaries,a=e.setTempAndroidValueStr,s=Wg(),l=o.useState(null),c=(0,Le.Z)(l,2),u=c[0],d=c[1],p=(0,Ey.Z)((function(){return d(null)}));o.useEffect((function(){var e;null!=u&&(null==(e=t[u.sectionIndex])?void 0:e.type)!==u.sectionType&&p()}),[t,u,p]),o.useEffect((function(){if(null!=u){var e=setTimeout((function(){return p()}),5e3);return function(){window.clearTimeout(e)}}return function(){}}),[u,p]);var f=function(e,n,r){var o=e.keyPressed,i=e.sectionIndex,a=o.toLowerCase(),s=t[i];if(null!=u&&(!r||r(u.value))&&u.sectionIndex===i){var l="".concat(u.value).concat(a),c=n(l,s);if(!Ib(c))return d({sectionIndex:i,value:l,sectionType:s.type}),c}var f=n(a,s);return Ib(f)&&!f.saveQuery?(p(),null):(d({sectionIndex:i,value:a,sectionType:s.type}),Ib(f)?null:f)},h=(0,Ey.Z)((function(e){var o=t[e.sectionIndex],l=!Number.isNaN(Number(e.keyPressed))?function(e){var t=function(e,t){var n=Number("".concat(e)),r=i[t.type]({currentDate:null,format:t.format,contentType:t.contentType});if(n>r.maximum)return{saveQuery:!1};if(n<r.minimum)return{saveQuery:!0};var o=Number("".concat(e,"0"))>r.maximum||e.length===r.maximum.toString().length;return{sectionValue:Zg(s,n,r,t),shouldGoToNextSection:o}};return f(e,(function(e,n){if("digit"===n.contentType||"digit-with-letter"===n.contentType)return t(e,n);if("month"===n.type){var o=Tg(s,"digit","month","MM"),i=t(e,{type:n.type,format:"MM",hasLeadingZerosInFormat:o,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(Ib(i))return i;var a=Ag(s,i.sectionValue,"MM",n.format);return(0,r.Z)({},i,{sectionValue:a})}if("weekDay"===n.type){var l=t(e,n);if(Ib(l))return l;var c=jg(s,n.format)[Number(l.sectionValue)-1];return(0,r.Z)({},l,{sectionValue:c})}return{saveQuery:!1}}),(function(e){return!Number.isNaN(Number(e))}))}(e):function(e){var t=function(e,t,n){var r=t.filter((function(e){return e.toLowerCase().startsWith(n)}));return 0===r.length?{saveQuery:!1}:{sectionValue:r[0],shouldGoToNextSection:1===r.length}},n=function(e,n,o,i){var a=function(e){return Sg(s,n.type,e)};if("letter"===n.contentType)return t(n.format,a(n.format),e);if(o&&null!=i&&"letter"===Cg(s,o).contentType){var l=a(o),c=t(0,l,e);return Ib(c)?{saveQuery:!1}:(0,r.Z)({},c,{sectionValue:i(c.sectionValue,l)})}return{saveQuery:!1}};return f(e,(function(e,t){switch(t.type){case"month":return n(e,t,s.formats.month,(function(e){return Ag(s,e,s.formats.month,t.format)}));case"weekDay":return n(e,t,s.formats.weekday,(function(e,t){return t.indexOf(e).toString()}));case"meridiem":return n(e,t);default:return{saveQuery:!1}}}))}(e);null==l?a(null):n({activeSection:o,newSectionValue:l.sectionValue,shouldGoToNextSection:l.shouldGoToNextSection})}));return{applyCharacterEditing:h,resetCharacterQuery:p}},Fb=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error"],Bb=function(e){var t=Wg(),n=Tb(e),i=n.state,a=n.selectedSectionIndexes,s=n.setSelectedSections,l=n.clearValue,c=n.clearActiveSection,u=n.updateSectionValue,d=n.updateValueFromValueStr,p=n.setTempAndroidValueStr,f=n.sectionsValueBoundaries,h=n.placeholder,m=e.inputRef,v=e.internalProps,g=e.internalProps,y=g.readOnly,x=void 0!==y&&y,w=g.unstableFieldRef,C=e.forwardedProps,S=C.onClick,k=C.onKeyDown,Z=C.onFocus,O=C.onBlur,E=C.onMouseUp,D=C.onPaste,P=C.error,A=e.fieldValueManager,M=e.valueManager,T=e.validator,I=(0,b.Z)(e.forwardedProps,Fb),R=Rb({sections:i.sections,updateSectionValue:u,sectionsValueBoundaries:f,setTempAndroidValueStr:p}),F=R.applyCharacterEditing,B=R.resetCharacterQuery,L=o.useRef(null),N=(0,yy.Z)(m,L),_=o.useRef(void 0),z="rtl"===(0,j.Z)().direction,H=o.useMemo((function(){return function(e,t){var n={};if(!t)return e.forEach((function(t,r){var o=0===r?null:r-1,i=r===e.length-1?null:r+1;n[r]={leftIndex:o,rightIndex:i}})),{neighbors:n,startIndex:0,endIndex:e.length-1};for(var r={},o={},i=0,a=0,s=e.length-1;s>=0;){a=e.findIndex((function(e,t){var n;return t>=i&&(null==(n=e.endSeparator)?void 0:n.includes(" "))&&" / "!==e.endSeparator})),-1===a&&(a=e.length-1);for(var l=a;l>=i;l-=1)o[l]=s,r[s]=l,s-=1;i=a+1}return e.forEach((function(t,i){var a=o[i],s=0===a?null:r[a-1],l=a===e.length-1?null:r[a+1];n[i]={leftIndex:s,rightIndex:l}})),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}}(i.sections,z)}),[i.sections,z]),W=function(){var e;if(x)s(null);else{var t,n=null!=(e=L.current.selectionStart)?e:0,r=-1===(t=n<=i.sections[0].startInInput||n>=i.sections[i.sections.length-1].endInInput?1:i.sections.findIndex((function(e){return e.startInInput-e.startSeparator.length>n})))?i.sections.length-1:t-1;s(r)}},V=(0,Ey.Z)((function(){null==S||S.apply(void 0,arguments),W()})),U=(0,Ey.Z)((function(e){null==E||E(e),e.preventDefault()})),q=(0,Ey.Z)((function(){null==Z||Z.apply(void 0,arguments);var e=L.current;clearTimeout(_.current),_.current=setTimeout((function(){e&&e===L.current&&(null!=a||x||(e.value.length&&Number(e.selectionEnd)-Number(e.selectionStart)===e.value.length?s("all"):W()))}))})),G=(0,Ey.Z)((function(){null==O||O.apply(void 0,arguments),s(null)})),Y=(0,Ey.Z)((function(e){if(null==D||D(e),x)e.preventDefault();else{var t=e.clipboardData.getData("text");if(a&&a.startIndex===a.endIndex){var n=i.sections[a.startIndex],r=/^[a-zA-Z]+$/.test(t),o=/^[0-9]+$/.test(t),s=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(t);if("letter"===n.contentType&&r||"digit"===n.contentType&&o||"digit-with-letter"===n.contentType&&s)return;if(r||o)return void e.preventDefault()}e.preventDefault(),d(t)}})),K=(0,Ey.Z)((function(e){if(!x){var t=e.target.value,n=Eg(t);if(null!=a){var r;if(0===a.startIndex&&a.endIndex===i.sections.length-1)r=n;else{for(var o=Eg(A.getValueStrFromSections(i.sections,z)),s=-1,l=-1,c=0;c<o.length;c+=1)-1===s&&o[c]!==n[c]&&(s=c),-1===l&&o[o.length-c-1]!==n[n.length-c-1]&&(l=c);var u=i.sections[a.startIndex];if(s<u.start||o.length-l-1>u.end)return;var f=n.length-o.length+u.end-Eg(u.endSeparator||"").length;r=n.slice(u.start,f)}navigator.userAgent.toLowerCase().indexOf("android")>-1&&0===r.length?p(t):F({keyPressed:r,sectionIndex:a.startIndex})}else d(n)}})),J=(0,Ey.Z)((function(e){switch(null==k||k(e),!0){case"a"===e.key&&(e.ctrlKey||e.metaKey):e.preventDefault(),s("all");break;case"ArrowRight"===e.key:if(e.preventDefault(),null==a)s(H.startIndex);else if(a.startIndex!==a.endIndex)s(a.endIndex);else{var n=H.neighbors[a.startIndex].rightIndex;null!==n&&s(n)}break;case"ArrowLeft"===e.key:if(e.preventDefault(),null==a)s(H.endIndex);else if(a.startIndex!==a.endIndex)s(a.startIndex);else{var r=H.neighbors[a.startIndex].leftIndex;null!==r&&s(r)}break;case["Backspace","Delete"].includes(e.key):if(e.preventDefault(),x)break;null==a||0===a.startIndex&&a.endIndex===i.sections.length-1?l():c(),B();break;case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(e.key):if(e.preventDefault(),x||null==a)break;var o=i.sections[a.startIndex],d=A.getActiveDateManager(t,i,o),p=function(e,t,n,r,o){var i=function(e){switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}}(n),a="Home"===n,s="End"===n,l=""===t.value||a||s;return"digit"===t.contentType||"digit-with-letter"===t.contentType?function(){var n=r[t.type]({currentDate:o,format:t.format,contentType:t.contentType}),c=function(r){return Zg(e,r,n,t)};if(l)return"year"!==t.type||s||a?c(i>0||a?n.minimum:n.maximum):e.formatByString(e.date(),t.format);var u=parseInt(t.value,10)+i;return u>n.maximum?c(n.minimum):u<n.minimum?c(n.maximum):c(u)}():function(){var n=Sg(e,t.type,t.format);if(0===n.length)return t.value;if(l)return i>0||a?n[0]:n[n.length-1];var r=n.indexOf(t.value);return n[(r+n.length+i)%n.length]}()}(t,o,e.key,f,d.date);u({activeSection:o,newSectionValue:p,shouldGoToNextSection:!1})}}));(0,Ay.default)((function(){if(null!=a){var e=i.sections[a.startIndex],t=i.sections[a.endIndex],n=e.startInInput,r=t.endInInput;if(a.shouldSelectBoundarySelectors&&(n-=e.startSeparator.length,r+=t.endSeparator.length),n!==L.current.selectionStart||r!==L.current.selectionEnd){var o=L.current.scrollTop;L.current.setSelectionRange(n,r),L.current.scrollTop=o}}else L.current.scrollLeft&&(L.current.scrollLeft=0)}));var X=Dy((0,r.Z)({},v,{value:i.value}),T,M.isSameError,M.defaultErrorState),Q=o.useMemo((function(){return void 0!==P?P:M.hasError(X)}),[M,X,P]);o.useEffect((function(){return L.current&&L.current===document.activeElement&&s("all"),function(){return window.clearTimeout(_.current)}}),[]),o.useEffect((function(){null!=i.tempValueStrAndroid&&null!=a&&(B(),c())}),[i.tempValueStrAndroid]);var $=o.useMemo((function(){var e;return null!=(e=i.tempValueStrAndroid)?e:A.getValueStrFromSections(i.sections,z)}),[i.sections,A,i.tempValueStrAndroid,z]),ee=o.useMemo((function(){return null==a||"letter"===i.sections[a.startIndex].contentType?"text":"tel"}),[a,i.sections]),te=!(L.current&&L.current===Sy(document))&&M.areValuesEqual(t,i.value,M.emptyValue);return o.useImperativeHandle(w,(function(){return{getSections:function(){return i.sections},getActiveSectionIndex:function(){var e,t,n=null!=(e=L.current.selectionStart)?e:0,r=null!=(t=L.current.selectionEnd)?t:0;if(0===n&&0===r)return null;var o=n<=i.sections[0].startInInput?1:i.sections.findIndex((function(e){return e.startInInput-e.startSeparator.length>n}));return-1===o?i.sections.length-1:o-1},setSelectedSections:function(e){return s(e)}}})),(0,r.Z)({placeholder:h,autoComplete:"off"},I,{value:te?"":$,inputMode:ee,readOnly:x,onClick:V,onFocus:q,onBlur:G,onPaste:Y,onChange:K,onKeyDown:J,onMouseUp:U,error:Q,ref:N})},Lb=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],Nb=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],_b=["minDateTime","maxDateTime"],zb=[].concat(Lb,Nb,_b),Hb=function(e){return zb.reduce((function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t}),{})},Wb=["value","defaultValue","format","formatDensity","onChange","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],Vb=function(e,t){var n=(0,r.Z)({},e),o={},i=function(e){n.hasOwnProperty(e)&&(o[e]=n[e],delete n[e])};return Wb.forEach(i),"date"===t?Lb.forEach(i):"time"===t?Nb.forEach(i):"date-time"===t&&(Lb.forEach(i),Nb.forEach(i),_b.forEach(i)),{forwardedProps:n,internalProps:o}},Ub=function(e){var t=e.props,n=e.inputRef,o=function(e){var t,n,o,i=Wg(),a=Vg();return(0,r.Z)({},e,{disablePast:null!=(t=e.disablePast)&&t,disableFuture:null!=(n=e.disableFuture)&&n,format:null!=(o=e.format)?o:i.formats.keyboardDate,minDate:xg(i,e.minDate,a.minDate),maxDate:xg(i,e.maxDate,a.maxDate)})}(t),i=Vb(o,"date"),a=i.forwardedProps,s=i.internalProps;return Bb({inputRef:n,forwardedProps:a,internalProps:s,valueManager:Lg,fieldValueManager:Ng,validator:ly,valueType:"date"})},qb=["components","componentsProps","slots","slotProps","InputProps","inputProps"],Gb=["inputRef"],Yb=["ref","onPaste","inputMode","readOnly"],Kb=o.forwardRef((function(e,t){var n,o,i,a=(0,T.Z)({props:e,name:"MuiDateField"}),s=a.components,l=a.componentsProps,c=a.slots,d=a.slotProps,p=a.InputProps,f=a.inputProps,h=(0,b.Z)(a,qb),m=a,v=null!=(n=null!=(o=null==c?void 0:c.textField)?o:null==s?void 0:s.TextField)?n:xd.Z,g=(0,Ts.Z)({elementType:v,externalSlotProps:null!=(i=null==d?void 0:d.textField)?i:null==l?void 0:l.textField,externalForwardedProps:h,ownerState:m}),y=g.inputRef,x=(0,b.Z)(g,Gb);x.inputProps=(0,r.Z)({},x.inputProps,f),x.InputProps=(0,r.Z)({},x.InputProps,p);var w=Ub({props:x,inputRef:y}),C=w.ref,j=w.onPaste,S=w.inputMode,k=w.readOnly,Z=(0,b.Z)(w,Yb);return(0,u.jsx)(v,(0,r.Z)({ref:t},Z,{InputProps:(0,r.Z)({},Z.InputProps,{readOnly:k}),inputProps:(0,r.Z)({},Z.inputProps,{inputMode:S,onPaste:j,ref:C})}))})),Jb=n(29372),Xb=function(e){var t=e.shouldDisableDate,n=e.shouldDisableMonth,r=e.shouldDisableYear,i=e.minDate,a=e.maxDate,s=e.disableFuture,l=e.disablePast,c=Hg();return o.useCallback((function(e){return null!==ly({adapter:c,value:e,props:{shouldDisableDate:t,shouldDisableMonth:n,shouldDisableYear:r,minDate:i,maxDate:a,disableFuture:s,disablePast:l}})}),[c,t,n,r,i,a,s,l])},Qb=function(e){var t,n=e.value,i=e.defaultCalendarMonth,a=e.disableFuture,s=e.disablePast,l=e.disableSwitchToMonthOnDayFocus,c=void 0!==l&&l,u=e.maxDate,d=e.minDate,p=e.onMonthChange,f=e.reduceAnimations,h=e.shouldDisableDate,m=qg(),v=Wg(),g=o.useRef(function(e,t,n){return function(o,i){switch(i.type){case"changeMonth":return(0,r.Z)({},o,{slideDirection:i.direction,currentMonth:i.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return(0,r.Z)({},o,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":if(null!=o.focusedDay&&null!=i.focusedDay&&n.isSameDay(i.focusedDay,o.focusedDay))return o;var a=null!=i.focusedDay&&!t&&!n.isSameMonth(o.currentMonth,i.focusedDay);return(0,r.Z)({},o,{focusedDay:i.focusedDay,isMonthSwitchingAnimating:a&&!e&&!i.withoutMonthSwitchingAnimation,currentMonth:a?n.startOfMonth(i.focusedDay):o.currentMonth,slideDirection:null!=i.focusedDay&&n.isAfterDay(i.focusedDay,o.currentMonth)?"left":"right"});default:throw new Error("missing support")}}}(Boolean(f),c,v)).current,y=o.useReducer(g,{isMonthSwitchingAnimating:!1,focusedDay:n||m,currentMonth:v.startOfMonth(null!=(t=null!=n?n:i)?t:bg(v,m,d,u)),slideDirection:"left"}),b=(0,Le.Z)(y,2),x=b[0],w=b[1],C=o.useCallback((function(e){w((0,r.Z)({type:"changeMonth"},e)),p&&p(e.newMonth)}),[p]),j=o.useCallback((function(e){var t=e;v.isSameMonth(t,x.currentMonth)||C({newMonth:v.startOfMonth(t),direction:v.isAfterDay(t,x.currentMonth)?"left":"right"})}),[x.currentMonth,C,v]),S=Xb({shouldDisableDate:h,minDate:d,maxDate:u,disableFuture:a,disablePast:s}),k=o.useCallback((function(){w({type:"finishMonthSwitchingAnimation"})}),[]),Z=(0,Ey.Z)((function(e,t){S(e)||w({type:"changeFocusedDay",focusedDay:e,withoutMonthSwitchingAnimation:t})}));return{calendarState:x,changeMonth:j,changeFocusedDay:Z,isDateDisabled:S,onMonthSwitchingAnimationEnd:k,handleChangeMonth:C}},$b=n(23187),ex=n(17238),tx=function(e){return(0,F.Z)("MuiPickersFadeTransitionGroup",e)},nx=((0,R.Z)("MuiPickersFadeTransitionGroup",["root"]),(0,P.ZP)(ex.Z,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:function(e,t){return t.root}})({display:"block",position:"relative"}));function rx(e){var t=(0,T.Z)({props:e,name:"MuiPickersFadeTransitionGroup"}),n=t.children,r=t.className,o=t.reduceAnimations,i=t.transKey,a=function(e){var t=e.classes;return(0,M.Z)({root:["root"]},tx,t)}(t);return o?n:(0,u.jsx)(nx,{className:(0,y.default)(a.root,r),children:(0,u.jsx)($b.Z,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:500,enter:250,exit:0},children:n},i)})}function ox(e){return(0,F.Z)("MuiPickersDay",e)}var ix=(0,R.Z)("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),ax=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],sx=function(e){var n,o=e.theme,i=e.ownerState;return(0,r.Z)({},o.typography.caption,(n={width:36,height:36,borderRadius:"50%",padding:0,backgroundColor:"transparent",color:(o.vars||o).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:o.vars?"rgba(".concat(o.vars.palette.primary.mainChannel," / ").concat(o.vars.palette.action.hoverOpacity,")"):(0,A.Fq)(o.palette.primary.main,o.palette.action.hoverOpacity)}},"&:focus":(0,t.Z)({backgroundColor:o.vars?"rgba(".concat(o.vars.palette.primary.mainChannel," / ").concat(o.vars.palette.action.focusOpacity,")"):(0,A.Fq)(o.palette.primary.main,o.palette.action.focusOpacity)},"&.".concat(ix.selected),{willChange:"background-color",backgroundColor:(o.vars||o).palette.primary.dark})},(0,t.Z)(n,"&.".concat(ix.selected),{color:(o.vars||o).palette.primary.contrastText,backgroundColor:(o.vars||o).palette.primary.main,fontWeight:o.typography.fontWeightMedium,transition:o.transitions.create("background-color",{duration:o.transitions.duration.short}),"&:hover":{willChange:"background-color",backgroundColor:(o.vars||o).palette.primary.dark}}),(0,t.Z)(n,"&.".concat(ix.disabled,":not(.").concat(ix.selected,")"),{color:(o.vars||o).palette.text.disabled}),(0,t.Z)(n,"&.".concat(ix.disabled,"&.").concat(ix.selected),{opacity:.6}),n),!i.disableMargin&&{margin:"0 ".concat(2,"px")},i.outsideCurrentMonth&&i.showDaysOutsideCurrentMonth&&{color:(o.vars||o).palette.text.secondary},!i.disableHighlightToday&&i.today&&(0,t.Z)({},"&:not(.".concat(ix.selected,")"),{border:"1px solid ".concat((o.vars||o).palette.text.secondary)}))},lx=function(e,t){var n=e.ownerState;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},cx=(0,P.ZP)(Qy.Z,{name:"MuiPickersDay",slot:"Root",overridesResolver:lx})(sx),ux=(0,P.ZP)("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:lx})((function(e){var t=e.theme,n=e.ownerState;return(0,r.Z)({},sx({theme:t,ownerState:n}),{opacity:0,pointerEvents:"none"})})),dx=function(){},px=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiPickersDay"}),i=n.autoFocus,a=void 0!==i&&i,s=n.className,l=n.day,c=n.disabled,d=void 0!==c&&c,p=n.disableHighlightToday,f=void 0!==p&&p,h=n.disableMargin,m=void 0!==h&&h,v=n.isAnimating,g=n.onClick,x=n.onDaySelect,w=n.onFocus,C=void 0===w?dx:w,j=n.onBlur,S=void 0===j?dx:j,k=n.onKeyDown,Z=void 0===k?dx:k,O=n.onMouseDown,E=void 0===O?dx:O,D=n.onMouseEnter,P=void 0===D?dx:D,A=n.outsideCurrentMonth,I=n.selected,R=void 0!==I&&I,F=n.showDaysOutsideCurrentMonth,B=void 0!==F&&F,L=n.children,N=n.today,_=void 0!==N&&N,z=(0,b.Z)(n,ax),H=(0,r.Z)({},n,{autoFocus:a,disabled:d,disableHighlightToday:f,disableMargin:m,selected:R,showDaysOutsideCurrentMonth:B,today:_}),W=function(e){var t=e.selected,n=e.disableMargin,r=e.disableHighlightToday,o=e.today,i=e.disabled,a=e.outsideCurrentMonth,s=e.showDaysOutsideCurrentMonth,l=e.classes,c={root:["root",t&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",a&&s&&"dayOutsideMonth",a&&!s&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]};return(0,M.Z)(c,ox,l)}(H),V=Wg(),U=o.useRef(null),q=(0,Ls.Z)(U,t);(0,Ns.Z)((function(){!a||d||v||A||U.current.focus()}),[a,d,v,A]);return A&&!B?(0,u.jsx)(ux,{className:(0,y.default)(W.root,W.hiddenDaySpacingFiller,s),ownerState:H,role:z.role}):(0,u.jsx)(cx,(0,r.Z)({className:(0,y.default)(W.root,s),ref:q,centerRipple:!0,disabled:d,tabIndex:R?0:-1,onKeyDown:function(e){return Z(e,l)},onFocus:function(e){return C(e,l)},onBlur:function(e){return S(e,l)},onMouseEnter:function(e){return P(e,l)},onClick:function(e){d||x(l),A&&e.currentTarget.focus(),g&&g(e)},onMouseDown:function(e){E(e),A&&e.preventDefault()}},z,{ownerState:H,children:L||V.format(l,"dayOfMonth")}))})),fx=o.memo(px),hx=n(93219);function mx(e,t){e.classList?e.classList.add(t):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(e,t)||("string"===typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function vx(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function gx(e,t){e.classList?e.classList.remove(t):"string"===typeof e.className?e.className=vx(e.className,t):e.setAttribute("class",vx(e.className&&e.className.baseVal||"",t))}var yx=n(55044),bx=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return gx(e,t)}))},xx=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"===typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}(0,hx.Z)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&(0,yx.Q)(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return mx(e,t)}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&bx(e,r),o&&bx(e,o),i&&bx(e,i)},n.render=function(){var e=this.props,t=(e.classNames,(0,b.Z)(e,["classNames"]));return o.createElement(x.ZP,(0,r.Z)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(o.Component);xx.defaultProps={classNames:""},xx.propTypes={};var wx=xx,Cx=function(e){return(0,F.Z)("MuiPickersSlideTransition",e)},jx=(0,R.Z)("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Sx=["children","className","reduceAnimations","slideDirection","transKey","classes"],kx=(0,P.ZP)(ex.Z,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:function(e,n){return[n.root,(0,t.Z)({},".".concat(jx["slideEnter-left"]),n["slideEnter-left"]),(0,t.Z)({},".".concat(jx["slideEnter-right"]),n["slideEnter-right"]),(0,t.Z)({},".".concat(jx.slideEnterActive),n.slideEnterActive),(0,t.Z)({},".".concat(jx.slideExit),n.slideExit),(0,t.Z)({},".".concat(jx["slideExitActiveLeft-left"]),n["slideExitActiveLeft-left"]),(0,t.Z)({},".".concat(jx["slideExitActiveLeft-right"]),n["slideExitActiveLeft-right"])]}})((function(e){var n,r=e.theme.transitions.create("transform",{duration:350,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return n={display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0}},(0,t.Z)(n,"& .".concat(jx["slideEnter-left"]),{willChange:"transform",transform:"translate(100%)",zIndex:1}),(0,t.Z)(n,"& .".concat(jx["slideEnter-right"]),{willChange:"transform",transform:"translate(-100%)",zIndex:1}),(0,t.Z)(n,"& .".concat(jx.slideEnterActive),{transform:"translate(0%)",transition:r}),(0,t.Z)(n,"& .".concat(jx.slideExit),{transform:"translate(0%)"}),(0,t.Z)(n,"& .".concat(jx["slideExitActiveLeft-left"]),{willChange:"transform",transform:"translate(-100%)",transition:r,zIndex:0}),(0,t.Z)(n,"& .".concat(jx["slideExitActiveLeft-right"]),{willChange:"transform",transform:"translate(100%)",transition:r,zIndex:0}),n}));var Zx=function(e){return(0,F.Z)("MuiDayCalendar",e)},Ox=((0,R.Z)("MuiDayCalendar",["header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]),["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"]),Ex=["ownerState"],Dx=function(e){return e.charAt(0).toUpperCase()},Px=(0,P.ZP)("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:function(e,t){return t.header}})({display:"flex",justifyContent:"center",alignItems:"center"}),Ax=(0,P.ZP)(rn.Z,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:function(e,t){return t.weekDayLabel}})((function(e){var t=e.theme;return{width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(t.vars||t).palette.text.secondary}})),Mx=(0,P.ZP)(rn.Z,{name:"MuiDayPicker",slot:"WeekNumberLabel",overridesResolver:function(e,t){return t.weekNumberLabel}})((function(e){return{width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.theme.palette.text.disabled}})),Tx=(0,P.ZP)(rn.Z,{name:"MuiDayPicker",slot:"WeekNumber",overridesResolver:function(e,t){return t.weekNumber}})((function(e){var t=e.theme;return(0,r.Z)({},t.typography.caption,{width:36,height:36,padding:0,margin:"0 ".concat(2,"px"),color:t.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})})),Ix=(0,P.ZP)("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:function(e,t){return t.loadingContainer}})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:240}),Rx=(0,P.ZP)((function(e){var t=(0,T.Z)({props:e,name:"MuiPickersSlideTransition"}),n=t.children,i=t.className,a=t.reduceAnimations,s=t.transKey,l=(0,b.Z)(t,Sx),c=function(e){var t=e.classes,n=e.slideDirection,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:["slideEnter-".concat(n)],exitActive:["slideExitActiveLeft-".concat(n)]};return(0,M.Z)(r,Cx,t)}(t);if(a)return(0,u.jsx)("div",{className:(0,y.default)(c.root,i),children:n});var d={exit:c.exit,enterActive:c.enterActive,enter:c.enter,exitActive:c.exitActive};return(0,u.jsx)(kx,{className:(0,y.default)(c.root,i),childFactory:function(e){return o.cloneElement(e,{classNames:d})},role:"presentation",children:(0,u.jsx)(wx,(0,r.Z)({mountOnEnter:!0,unmountOnExit:!0,timeout:350,classNames:d},l,{children:n}),s)})}),{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:function(e,t){return t.slideTransition}})({minHeight:240}),Fx=(0,P.ZP)("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:function(e,t){return t.monthContainer}})({overflow:"hidden"}),Bx=(0,P.ZP)("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:function(e,t){return t.weekContainer}})({margin:"".concat(2,"px 0"),display:"flex",justifyContent:"center"});function Lx(e){var t,n,i,a=e.parentProps,s=e.day,l=e.focusableDay,c=e.selectedDays,d=e.isDateDisabled,p=e.currentMonthNumber,f=e.isViewFocused,h=(0,b.Z)(e,Ox),m=Wg(),v=qg(),g=a.disabled,y=a.disableHighlightToday,x=a.isMonthSwitchingAnimating,w=a.showDaysOutsideCurrentMonth,C=a.components,j=a.componentsProps,S=a.slots,k=a.slotProps,Z=null!==l&&m.isSameDay(s,l),O=c.some((function(e){return m.isSameDay(e,s)})),E=m.isSameDay(s,v),D=null!=(t=null!=(n=null==S?void 0:S.day)?n:null==C?void 0:C.Day)?t:fx,P=(0,Ts.Z)({elementType:D,externalSlotProps:null!=(i=null==k?void 0:k.day)?i:null==j?void 0:j.day,additionalProps:(0,r.Z)({disableHighlightToday:y,showDaysOutsideCurrentMonth:w,role:"gridcell",isAnimating:x,"data-timestamp":m.toJsDate(s).valueOf()},h),ownerState:(0,r.Z)({},a,{day:s,selected:O})}),A=(0,b.Z)(P,Ex),M=o.useMemo((function(){return g||d(s)}),[g,d,s]),T=o.useMemo((function(){return m.getMonth(s)!==p}),[m,s,p]),I=o.useMemo((function(){var e=m.startOfMonth(m.setMonth(s,p));return w?m.isSameDay(s,m.startOfWeek(e)):m.isSameDay(s,e)}),[p,s,w,m]),R=o.useMemo((function(){var e=m.endOfMonth(m.setMonth(s,p));return w?m.isSameDay(s,m.endOfWeek(e)):m.isSameDay(s,e)}),[p,s,w,m]);return(0,u.jsx)(D,(0,r.Z)({},A,{day:s,disabled:M,autoFocus:f&&Z,today:E,outsideCurrentMonth:T,isFirstVisibleCell:I,isLastVisibleCell:R,selected:O,tabIndex:Z?0:-1,"aria-selected":O,"aria-current":E?"date":void 0}))}function Nx(e){var t=qg(),n=Wg(),i=(0,T.Z)({props:e,name:"MuiDayCalendar"}),a=function(e){var t=e.classes;return(0,M.Z)({header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},Zx,t)}(i),s="rtl"===(0,j.Z)().direction,l=i.onFocusedDayChange,c=i.className,d=i.currentMonth,p=i.selectedDays,f=i.focusedDay,h=i.loading,m=i.onSelectedDaysChange,v=i.onMonthSwitchingAnimationEnd,g=i.readOnly,b=i.reduceAnimations,x=i.renderLoading,w=void 0===x?function(){return(0,u.jsx)("span",{children:"..."})}:x,C=i.slideDirection,S=i.TransitionProps,k=i.disablePast,Z=i.disableFuture,O=i.minDate,E=i.maxDate,D=i.shouldDisableDate,P=i.shouldDisableMonth,A=i.shouldDisableYear,I=i.dayOfWeekFormatter,R=void 0===I?Dx:I,F=i.hasFocus,B=i.onFocusedViewChange,L=i.gridLabelId,N=i.displayWeekNumber,_=i.fixedWeekNumber,z=i.autoFocus,H=Xb({shouldDisableDate:D,shouldDisableMonth:P,shouldDisableYear:A,minDate:O,maxDate:E,disablePast:k,disableFuture:Z}),W=Ug(),V=(0,Fs.Z)({name:"DayCalendar",state:"hasFocus",controlled:F,default:null!=z&&z}),U=(0,Le.Z)(V,2),q=U[0],G=U[1],Y=o.useState((function(){return f||t})),K=(0,Le.Z)(Y,2),J=K[0],X=K[1],Q=(0,Ey.Z)((function(e){g||m(e)})),$=function(e){H(e)||(l(e),X(e),null==B||B(!0),G(!0))},ee=(0,Ey.Z)((function(e,t){switch(e.key){case"ArrowUp":$(n.addDays(t,-7)),e.preventDefault();break;case"ArrowDown":$(n.addDays(t,7)),e.preventDefault();break;case"ArrowLeft":var r=n.addDays(t,s?1:-1),o=n.addMonths(t,s?1:-1),i=yg({utils:n,date:r,minDate:s?r:n.startOfMonth(o),maxDate:s?n.endOfMonth(o):r,isDateDisabled:H});$(i||r),e.preventDefault();break;case"ArrowRight":var a=n.addDays(t,s?-1:1),l=n.addMonths(t,s?-1:1),c=yg({utils:n,date:a,minDate:s?n.startOfMonth(l):a,maxDate:s?a:n.endOfMonth(l),isDateDisabled:H});$(c||a),e.preventDefault();break;case"Home":$(n.startOfWeek(t)),e.preventDefault();break;case"End":$(n.endOfWeek(t)),e.preventDefault();break;case"PageUp":$(n.addMonths(t,1)),e.preventDefault();break;case"PageDown":$(n.addMonths(t,-1)),e.preventDefault()}})),te=(0,Ey.Z)((function(e,t){return $(t)})),ne=(0,Ey.Z)((function(e,t){q&&n.isSameDay(J,t)&&(null==B||B(!1))})),re=n.getMonth(d),oe=o.useMemo((function(){return p.filter((function(e){return!!e})).map((function(e){return n.startOfDay(e)}))}),[n,p]),ie=re,ae=o.useMemo((function(){return o.createRef()}),[ie]),se=n.startOfWeek(t),le=o.useMemo((function(){var e=n.startOfMonth(d),t=n.endOfMonth(d);return H(J)||n.isAfterDay(J,t)||n.isBeforeDay(J,e)?yg({utils:n,date:J,minDate:e,maxDate:t,disablePast:k,disableFuture:Z,isDateDisabled:H}):J}),[d,Z,k,J,H,n]),ce=o.useMemo((function(){for(var e=n.getWeekArray(d),t=n.addMonths(d,1);_&&e.length<_;){var r=n.getWeekArray(t),o=n.isSameDay(e[e.length-1][0],r[0][0]);r.slice(o?1:0).forEach((function(t){e.length<_&&e.push(t)})),t=n.addMonths(t,1)}return e}),[d,_,n]);return(0,u.jsxs)("div",{role:"grid","aria-labelledby":L,children:[(0,u.jsxs)(Px,{role:"row",className:a.header,children:[N&&(0,u.jsx)(Mx,{variant:"caption",role:"columnheader","aria-label":W.calendarWeekNumberHeaderLabel,className:a.weekNumberLabel,children:W.calendarWeekNumberHeaderText}),n.getWeekdays().map((function(e,t){var r;return(0,u.jsx)(Ax,{variant:"caption",role:"columnheader","aria-label":n.format(n.addDays(se,t),"weekday"),className:a.weekDayLabel,children:null!=(r=null==R?void 0:R(e))?r:e},e+t.toString())}))]}),h?(0,u.jsx)(Ix,{className:a.loadingContainer,children:w()}):(0,u.jsx)(Rx,(0,r.Z)({transKey:ie,onExited:v,reduceAnimations:b,slideDirection:C,className:(0,y.default)(c,a.slideTransition)},S,{nodeRef:ae,children:(0,u.jsx)(Fx,{ref:ae,role:"rowgroup",className:a.monthContainer,children:ce.map((function(e,t){return(0,u.jsxs)(Bx,{role:"row",className:a.weekContainer,"aria-rowindex":t+1,children:[N&&(0,u.jsx)(Tx,{className:a.weekNumber,role:"rowheader","aria-label":W.calendarWeekNumberAriaLabelText(n.getWeekNumber(e[0])),children:W.calendarWeekNumberText(n.getWeekNumber(e[0]))}),e.map((function(e,t){return(0,u.jsx)(Lx,{parentProps:i,day:e,selectedDays:oe,focusableDay:le,onKeyDown:ee,onFocus:te,onBlur:ne,onDaySelect:Q,isDateDisabled:H,currentMonthNumber:re,isViewFocused:q,"aria-colindex":t+1},e.toString())}))]},"week-".concat(e[0]))}))})}))]})}var _x=n(48);function zx(e){return(0,F.Z)("MuiPickersMonth",e)}var Hx=(0,R.Z)("MuiPickersMonth",["root","monthButton","disabled","selected"]),Wx=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","monthsPerRow"],Vx=(0,P.ZP)("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:function(e,t){return[t.root]}})((function(e){return{flexBasis:3===e.ownerState.monthsPerRow?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"}})),Ux=(0,P.ZP)("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:function(e,n){return[n.monthButton,(0,t.Z)({},"&.".concat(Hx.disabled),n.disabled),(0,t.Z)({},"&.".concat(Hx.selected),n.selected)]}})((function(e){var n,o=e.theme;return(0,r.Z)({color:"unset",backgroundColor:"transparent",border:0,outline:0},o.typography.subtitle1,(n={margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:o.vars?"rgba(".concat(o.vars.palette.action.activeChannel," / ").concat(o.vars.palette.action.hoverOpacity,")"):(0,A.Fq)(o.palette.action.active,o.palette.action.hoverOpacity)},"&:hover":{backgroundColor:o.vars?"rgba(".concat(o.vars.palette.action.activeChannel," / ").concat(o.vars.palette.action.hoverOpacity,")"):(0,A.Fq)(o.palette.action.active,o.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"}},(0,t.Z)(n,"&.".concat(Hx.disabled),{color:(o.vars||o).palette.text.secondary}),(0,t.Z)(n,"&.".concat(Hx.selected),{color:(o.vars||o).palette.primary.contrastText,backgroundColor:(o.vars||o).palette.primary.main,"&:focus, &:hover":{backgroundColor:(o.vars||o).palette.primary.dark}}),n))})),qx=o.memo((function(e){var t=(0,T.Z)({props:e,name:"MuiPickersMonth"}),n=t.autoFocus,i=t.children,a=t.disabled,s=t.value,l=t.tabIndex,c=t.onClick,d=t.onKeyDown,p=t.onFocus,f=t.onBlur,h=t["aria-current"],m=(0,b.Z)(t,Wx),v=o.useRef(null),g=function(e){var t=e.disabled,n=e.selected,r=e.classes,o={root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]};return(0,M.Z)(o,zx,r)}(t);return(0,Ns.Z)((function(){var e;n&&(null==(e=v.current)||e.focus())}),[n]),(0,u.jsx)(Vx,(0,r.Z)({className:g.root,ownerState:t},m,{children:(0,u.jsx)(Ux,{ref:v,disabled:a,type:"button",tabIndex:a?-1:l,"aria-current":h,onClick:function(e){return c(e,s)},onKeyDown:function(e){return d(e,s)},onFocus:function(e){return p(e,s)},onBlur:function(e){return f(e,s)},className:g.monthButton,ownerState:t,children:i})}))}));function Gx(e){return(0,F.Z)("MuiMonthCalendar",e)}(0,R.Z)("MuiMonthCalendar",["root"]);var Yx=["className","value","defaultValue","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow"];var Kx=(0,P.ZP)("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:function(e,t){return t.root}})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:320}),Jx=o.forwardRef((function(e,t){var n=qg(),i=(0,_x.Z)(),a=Wg(),s=function(e,t){var n=Wg(),o=Vg(),i=(0,T.Z)({props:e,name:t});return(0,r.Z)({disableFuture:!1,disablePast:!1},i,{minDate:xg(n,i.minDate,o.minDate),maxDate:xg(n,i.maxDate,o.maxDate)})}(e,"MuiMonthCalendar"),l=s.className,c=s.value,d=s.defaultValue,p=s.disabled,f=s.disableFuture,h=s.disablePast,m=s.maxDate,v=s.minDate,g=s.onChange,x=s.shouldDisableMonth,w=s.readOnly,C=s.disableHighlightToday,j=s.autoFocus,S=void 0!==j&&j,k=s.onMonthFocus,Z=s.hasFocus,O=s.onFocusedViewChange,E=s.monthsPerRow,D=void 0===E?3:E,P=(0,b.Z)(s,Yx),A=s,I=function(e){var t=e.classes;return(0,M.Z)({root:["root"]},Gx,t)}(A),R=(0,Fs.Z)({name:"MonthCalendar",state:"value",controlled:c,default:null!=d?d:null}),F=(0,Le.Z)(R,2),B=F[0],L=F[1],N=o.useMemo((function(){return a.getMonth(n)}),[a,n]),_=o.useMemo((function(){return null!=B?B:a.startOfMonth(n)}),[n,a,B]),z=o.useMemo((function(){return null!=B?a.getMonth(B):C?null:a.getMonth(n)}),[n,B,a,C]),H=o.useState((function(){return z||N})),W=(0,Le.Z)(H,2),V=W[0],U=W[1],q=(0,Fs.Z)({name:"MonthCalendar",state:"hasFocus",controlled:Z,default:null!=S&&S}),G=(0,Le.Z)(q,2),Y=G[0],K=G[1],J=(0,_s.Z)((function(e){K(e),O&&O(e)})),X=(0,_s.Z)((function(e){var t=a.startOfMonth(h&&a.isAfter(n,v)?n:v),r=a.startOfMonth(f&&a.isBefore(n,m)?n:m);return!!a.isBefore(e,t)||(!!a.isAfter(e,r)||!!x&&x(e))})),Q=(0,_s.Z)((function(e,t){if(!w){var n=a.setMonth(_,t);L(n),null==g||g(n)}})),$=(0,_s.Z)((function(e){X(a.setMonth(_,e))||(U(e),J(!0),k&&k(e))}));o.useEffect((function(){U((function(e){return null!==z&&e!==z?z:e}))}),[z]);var ee=(0,_s.Z)((function(e,t){var n=12;switch(e.key){case"ArrowUp":$((n+t-3)%n),e.preventDefault();break;case"ArrowDown":$((n+t+3)%n),e.preventDefault();break;case"ArrowLeft":$((n+t+("ltr"===i.direction?-1:1))%n),e.preventDefault();break;case"ArrowRight":$((n+t+("ltr"===i.direction?1:-1))%n),e.preventDefault()}})),te=(0,_s.Z)((function(e,t){$(t)})),ne=(0,_s.Z)((function(e,t){V===t&&J(!1)}));return(0,u.jsx)(Kx,(0,r.Z)({ref:t,className:(0,y.default)(I.root,l),ownerState:A},P,{children:wg(a,_).map((function(e){var t=a.getMonth(e),n=a.format(e,"monthShort"),r=t===z,o=p||X(e);return(0,u.jsx)(qx,{selected:r,value:t,onClick:Q,onKeyDown:ee,autoFocus:Y&&t===V,disabled:o,tabIndex:t===V?0:-1,onFocus:te,onBlur:ne,"aria-current":N===t?"date":void 0,monthsPerRow:D,children:n},n)}))}))}));function Xx(e){return(0,F.Z)("MuiPickersYear",e)}var Qx=(0,R.Z)("MuiPickersYear",["root","yearButton","selected","disabled"]),$x=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],ew=(0,P.ZP)("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:function(e,t){return[t.root]}})((function(e){return{flexBasis:3===e.ownerState.yearsPerRow?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"}})),tw=(0,P.ZP)("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:function(e,n){return[n.yearButton,(0,t.Z)({},"&.".concat(Qx.disabled),n.disabled),(0,t.Z)({},"&.".concat(Qx.selected),n.selected)]}})((function(e){var n,o=e.theme;return(0,r.Z)({color:"unset",backgroundColor:"transparent",border:0,outline:0},o.typography.subtitle1,(n={margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:o.vars?"rgba(".concat(o.vars.palette.action.activeChannel," / ").concat(o.vars.palette.action.focusOpacity,")"):(0,A.Fq)(o.palette.action.active,o.palette.action.focusOpacity)},"&:hover":{backgroundColor:o.vars?"rgba(".concat(o.vars.palette.action.activeChannel," / ").concat(o.vars.palette.action.hoverOpacity,")"):(0,A.Fq)(o.palette.action.active,o.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"}},(0,t.Z)(n,"&.".concat(Qx.disabled),{color:(o.vars||o).palette.text.secondary}),(0,t.Z)(n,"&.".concat(Qx.selected),{color:(o.vars||o).palette.primary.contrastText,backgroundColor:(o.vars||o).palette.primary.main,"&:focus, &:hover":{backgroundColor:(o.vars||o).palette.primary.dark}}),n))})),nw=o.memo((function(e){var t=(0,T.Z)({props:e,name:"MuiPickersYear"}),n=t.autoFocus,i=t.className,a=t.children,s=t.disabled,l=t.value,c=t.tabIndex,d=t.onClick,p=t.onKeyDown,f=t.onFocus,h=t.onBlur,m=t["aria-current"],v=(0,b.Z)(t,$x),g=o.useRef(null),x=function(e){var t=e.disabled,n=e.selected,r=e.classes,o={root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]};return(0,M.Z)(o,Xx,r)}(t);return o.useEffect((function(){n&&g.current.focus()}),[n]),(0,u.jsx)(ew,(0,r.Z)({className:(0,y.default)(x.root,i),ownerState:t},v,{children:(0,u.jsx)(tw,{ref:g,disabled:s,type:"button",tabIndex:s?-1:c,"aria-current":m,onClick:function(e){return d(e,l)},onKeyDown:function(e){return p(e,l)},onFocus:function(e){return f(e,l)},onBlur:function(e){return h(e,l)},className:x.yearButton,ownerState:t,children:a})}))}));function rw(e){return(0,F.Z)("MuiYearCalendar",e)}(0,R.Z)("MuiYearCalendar",["root"]);var ow=["autoFocus","className","value","defaultValue","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow"];var iw=(0,P.ZP)("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:function(e,t){return t.root}})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:320,maxHeight:304}),aw=o.forwardRef((function(e,t){var n=qg(),i=(0,_x.Z)(),a=Wg(),s=function(e,t){var n=Wg(),o=Vg(),i=(0,T.Z)({props:e,name:t});return(0,r.Z)({disablePast:!1,disableFuture:!1},i,{minDate:xg(n,i.minDate,o.minDate),maxDate:xg(n,i.maxDate,o.maxDate)})}(e,"MuiYearCalendar"),l=s.autoFocus,c=s.className,d=s.value,p=s.defaultValue,f=s.disabled,h=s.disableFuture,m=s.disablePast,v=s.maxDate,g=s.minDate,x=s.onChange,w=s.readOnly,C=s.shouldDisableYear,j=s.disableHighlightToday,S=s.onYearFocus,k=s.hasFocus,Z=s.onFocusedViewChange,O=s.yearsPerRow,E=void 0===O?3:O,D=(0,b.Z)(s,ow),P=s,A=function(e){var t=e.classes;return(0,M.Z)({root:["root"]},rw,t)}(P),I=(0,Fs.Z)({name:"YearCalendar",state:"value",controlled:d,default:null!=p?p:null}),R=(0,Le.Z)(I,2),F=R[0],B=R[1],L=o.useMemo((function(){return null!=F?F:a.startOfYear(n)}),[n,a,F]),N=o.useMemo((function(){return a.getYear(n)}),[a,n]),_=o.useMemo((function(){return null!=F?a.getYear(F):j?null:a.getYear(n)}),[n,F,a,j]),z=o.useState((function(){return _||N})),H=(0,Le.Z)(z,2),W=H[0],V=H[1],U=(0,Fs.Z)({name:"YearCalendar",state:"hasFocus",controlled:k,default:null!=l&&l}),q=(0,Le.Z)(U,2),G=q[0],Y=q[1],K=(0,_s.Z)((function(e){Y(e),Z&&Z(e)})),J=(0,_s.Z)((function(e){return!(!m||!a.isBeforeYear(e,n))||(!(!h||!a.isAfterYear(e,n))||(!(!g||!a.isBeforeYear(e,g))||(!(!v||!a.isAfterYear(e,v))||!(!C||!C(e)))))})),X=(0,_s.Z)((function(e,t){if(!w){var n=a.setYear(L,t);B(n),null==x||x(n)}})),Q=(0,_s.Z)((function(e){J(a.setYear(L,e))||(V(e),K(!0),null==S||S(e))}));o.useEffect((function(){V((function(e){return null!==_&&e!==_?_:e}))}),[_]);var $=(0,_s.Z)((function(e,t){switch(e.key){case"ArrowUp":Q(t-E),e.preventDefault();break;case"ArrowDown":Q(t+E),e.preventDefault();break;case"ArrowLeft":Q(t+("ltr"===i.direction?-1:1)),e.preventDefault();break;case"ArrowRight":Q(t+("ltr"===i.direction?1:-1)),e.preventDefault()}})),ee=(0,_s.Z)((function(e,t){Q(t)})),te=(0,_s.Z)((function(e,t){W===t&&K(!1)})),ne=o.useRef(null),re=(0,Ls.Z)(t,ne);return o.useEffect((function(){if(!l&&null!==ne.current){var e=ne.current.querySelector('[tabindex="0"]');if(e){var t=e.offsetHeight,n=e.offsetTop,r=ne.current.clientHeight,o=ne.current.scrollTop,i=n+t;t>r||n<o||(ne.current.scrollTop=i-r/2-t/2)}}}),[l]),(0,u.jsx)(iw,(0,r.Z)({ref:re,className:(0,y.default)(A.root,c),ownerState:P},D,{children:a.getYearRange(g,v).map((function(e){var t=a.getYear(e),n=t===_,r=f||J(e);return(0,u.jsx)(nw,{selected:n,value:t,onClick:X,onKeyDown:$,autoFocus:G&&t===W,disabled:r,tabIndex:t===W?0:-1,onFocus:ee,onBlur:te,"aria-current":N===t?"date":void 0,yearsPerRow:E,children:a.format(e,"year")},a.format(e,"year"))}))}))}));function sw(e){return(0,F.Z)("MuiPickersArrowSwitcher",e)}(0,R.Z)("MuiPickersArrowSwitcher",["root","spacer","button"]);var lw=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],cw=["ownerState"],uw=["ownerState"],dw=(0,P.ZP)("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:function(e,t){return t.root}})({display:"flex"}),pw=(0,P.ZP)("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:function(e,t){return t.spacer}})((function(e){return{width:e.theme.spacing(3)}})),fw=(0,P.ZP)(io.Z,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:function(e,t){return t.button}})((function(e){var t=e.ownerState;return(0,r.Z)({},t.hidden&&{visibility:"hidden"})})),hw=o.forwardRef((function(e,t){var n,o,i,a,s="rtl"===(0,j.Z)().direction,l=(0,T.Z)({props:e,name:"MuiPickersArrowSwitcher"}),c=l.children,d=l.className,p=l.slots,f=l.slotProps,h=l.isNextDisabled,m=l.isNextHidden,v=l.onGoToNext,g=l.nextLabel,x=l.isPreviousDisabled,w=l.isPreviousHidden,C=l.onGoToPrevious,S=l.previousLabel,k=(0,b.Z)(l,lw),Z=l,O=function(e){var t=e.classes;return(0,M.Z)({root:["root"],spacer:["spacer"],button:["button"]},sw,t)}(Z),E={isDisabled:h,isHidden:m,goTo:v,label:g},D={isDisabled:x,isHidden:w,goTo:C,label:S},P=s?[E,D]:[D,E],A=(0,Le.Z)(P,2),I=A[0],R=A[1],F=null!=(n=null==p?void 0:p.previousIconButton)?n:fw,B=(0,Ts.Z)({elementType:F,externalSlotProps:null==f?void 0:f.previousIconButton,additionalProps:{size:"medium",title:I.label,"aria-label":I.label,disabled:I.isDisabled,edge:"end",onClick:I.goTo},ownerState:(0,r.Z)({},Z,{hidden:I.isHidden}),className:O.button}),L=null!=(o=null==p?void 0:p.nextIconButton)?o:fw,N=(0,Ts.Z)({elementType:L,externalSlotProps:null==f?void 0:f.nextIconButton,additionalProps:{size:"medium",title:R.label,"aria-label":R.label,disabled:R.isDisabled,edge:"start",onClick:R.goTo},ownerState:(0,r.Z)({},Z,{hidden:R.isHidden}),className:O.button}),_=null!=(i=null==p?void 0:p.leftArrowIcon)?i:Eb,z=(0,Ts.Z)({elementType:_,externalSlotProps:null==f?void 0:f.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),H=(0,b.Z)(z,cw),W=null!=(a=null==p?void 0:p.rightArrowIcon)?a:Db,V=(0,Ts.Z)({elementType:W,externalSlotProps:null==f?void 0:f.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),U=(0,b.Z)(V,uw);return(0,u.jsxs)(dw,(0,r.Z)({ref:t,className:(0,y.default)(O.root,d),ownerState:Z},k,{children:[(0,u.jsx)(F,(0,r.Z)({},B,{children:s?(0,u.jsx)(W,(0,r.Z)({},U)):(0,u.jsx)(_,(0,r.Z)({},H))})),c?(0,u.jsx)(rn.Z,{variant:"subtitle1",component:"span",children:c}):(0,u.jsx)(pw,{className:O.spacer,ownerState:Z}),(0,u.jsx)(L,(0,r.Z)({},N,{children:s?(0,u.jsx)(_,(0,r.Z)({},H)):(0,u.jsx)(W,(0,r.Z)({},U))}))]}))}));function mw(e,t,n,r){var i=Wg(),a=function(e,t){return e?t.getHours(e)>=12?"pm":"am":null}(e,i),s=o.useCallback((function(o){var a=null==e?null:function(e,t,n,r){var o=Ry(r.getHours(e),t,n);return r.setHours(e,o)}(e,o,Boolean(t),i);n(a,null!=r?r:"partial")}),[t,e,n,r,i]);return{meridiemMode:a,handleMeridiemChange:s}}var vw=function(e){return(0,F.Z)("MuiPickersCalendarHeader",e)},gw=(0,R.Z)("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),yw=["ownerState"],bw=(0,P.ZP)("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:function(e,t){return t.root}})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),xw=(0,P.ZP)("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:function(e,t){return t.labelContainer}})((function(e){var t=e.theme;return(0,r.Z)({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},t.typography.body1,{fontWeight:t.typography.fontWeightMedium})})),ww=(0,P.ZP)("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:function(e,t){return t.label}})({marginRight:6}),Cw=(0,P.ZP)(io.Z,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:function(e,t){return t.switchViewButton}})((function(e){var n=e.ownerState;return(0,r.Z)({marginRight:"auto"},"year"===n.view&&(0,t.Z)({},".".concat(gw.switchViewIcon),{transform:"rotate(180deg)"}))})),jw=(0,P.ZP)(Ob,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:function(e,t){return t.switchViewIcon}})((function(e){return{willChange:"transform",transition:e.theme.transitions.create("transform"),transform:"rotate(0deg)"}}));function Sw(e){var t,n,i=Ug(),a=Wg(),s=(0,T.Z)({props:e,name:"MuiPickersCalendarHeader"}),l=s.slots,c=s.slotProps,d=s.currentMonth,p=s.disabled,f=s.disableFuture,h=s.disablePast,m=s.maxDate,v=s.minDate,g=s.onMonthChange,y=s.onViewChange,x=s.view,w=s.reduceAnimations,C=s.views,j=s.labelId,S=s,k=function(e){var t=e.classes;return(0,M.Z)({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},vw,t)}(s),Z=null!=(t=null==l?void 0:l.switchViewButton)?t:Cw,O=(0,Ts.Z)({elementType:Z,externalSlotProps:null==c?void 0:c.switchViewButton,additionalProps:{size:"small","aria-label":i.calendarViewSwitchingButtonAriaLabel(x)},ownerState:S,className:k.switchViewButton}),E=null!=(n=null==l?void 0:l.switchViewIcon)?n:jw,D=(0,Ts.Z)({elementType:E,externalSlotProps:null==c?void 0:c.switchViewIcon,ownerState:void 0,className:k.switchViewIcon}),P=(0,b.Z)(D,yw),A=function(e,t){var n=t.disableFuture,r=t.maxDate,i=Wg();return o.useMemo((function(){var t=i.date(),o=i.startOfMonth(n&&i.isBefore(t,r)?t:r);return!i.isAfter(o,e)}),[n,r,e,i])}(d,{disableFuture:f,maxDate:m}),I=function(e,t){var n=t.disablePast,r=t.minDate,i=Wg();return o.useMemo((function(){var t=i.date(),o=i.startOfMonth(n&&i.isAfter(t,r)?t:r);return!i.isBefore(o,e)}),[n,r,e,i])}(d,{disablePast:h,minDate:v});return 1===C.length&&"year"===C[0]?null:(0,u.jsxs)(bw,{ownerState:S,className:k.root,children:[(0,u.jsxs)(xw,{role:"presentation",onClick:function(){if(1!==C.length&&y&&!p)if(2===C.length)y(C.find((function(e){return e!==x}))||C[0]);else{var e=0!==C.indexOf(x)?0:1;y(C[e])}},ownerState:S,"aria-live":"polite",className:k.labelContainer,children:[(0,u.jsx)(rx,{reduceAnimations:w,transKey:a.format(d,"monthAndYear"),children:(0,u.jsx)(ww,{id:j,ownerState:S,className:k.label,children:a.format(d,"monthAndYear")})}),C.length>1&&!p&&(0,u.jsx)(Z,(0,r.Z)({},O,{children:(0,u.jsx)(E,(0,r.Z)({},P))}))]}),(0,u.jsx)($b.Z,{in:"day"===x,children:(0,u.jsx)(hw,{slots:l,slotProps:c,onGoToPrevious:function(){return g(a.addMonths(d,-1),"right")},isPreviousDisabled:I,previousLabel:i.previousMonth,onGoToNext:function(){return g(a.addMonths(d,1),"left")},isNextDisabled:A,nextLabel:i.nextMonth})})]})}var kw=(0,P.ZP)("div")({overflow:"hidden",width:320,maxHeight:vb,display:"flex",flexDirection:"column",margin:"0 auto"}),Zw="undefined"!==typeof navigator&&/(android)/i.test(navigator.userAgent),Ow=function(e){return(0,F.Z)("MuiDateCalendar",e)},Ew=((0,R.Z)("MuiDateCalendar",["root","viewTransitionContainer"]),["autoFocus","onViewChange","value","defaultValue","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow"]);var Dw,Pw=(0,P.ZP)(kw,{name:"MuiDateCalendar",slot:"Root",overridesResolver:function(e,t){return t.root}})({display:"flex",flexDirection:"column"}),Aw=(0,P.ZP)(rx,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:function(e,t){return t.viewTransitionContainer}})({}),Mw=o.forwardRef((function(e,t){var n=Wg(),i=(0,Jb.Z)(),a=function(e,t){var n=Wg(),o=Vg(),i=(0,T.Z)({props:e,name:t});return(0,r.Z)({loading:!1,disablePast:!1,disableFuture:!1,openTo:"day",views:["year","day"],reduceAnimations:Zw,renderLoading:function(){return(0,u.jsx)("span",{children:"..."})}},i,{minDate:xg(n,i.minDate,o.minDate),maxDate:xg(n,i.maxDate,o.maxDate)})}(e,"MuiDateCalendar"),s=a.autoFocus,l=a.onViewChange,c=a.value,d=a.defaultValue,p=a.disableFuture,f=a.disablePast,h=a.defaultCalendarMonth,m=a.onChange,v=a.onYearChange,g=a.onMonthChange,x=a.reduceAnimations,w=a.shouldDisableDate,C=a.shouldDisableMonth,j=a.shouldDisableYear,S=a.view,k=a.views,Z=a.openTo,O=a.className,E=a.disabled,D=a.readOnly,P=a.minDate,A=a.maxDate,I=a.disableHighlightToday,R=a.focusedView,F=a.onFocusedViewChange,B=a.showDaysOutsideCurrentMonth,L=a.fixedWeekNumber,N=a.dayOfWeekFormatter,_=a.components,z=a.componentsProps,H=a.slots,W=a.slotProps,V=a.loading,U=a.renderLoading,q=a.displayWeekNumber,G=a.yearsPerRow,Y=a.monthsPerRow,K=(0,b.Z)(a,Ew),J=(0,Fs.Z)({name:"DateCalendar",state:"value",controlled:c,default:null!=d?d:null}),X=(0,Le.Z)(J,2),Q=X[0],$=X[1],ee=My({view:S,views:k,openTo:Z,onChange:(0,_s.Z)((function(e,t){$(e),null==m||m(e,t)})),onViewChange:l,autoFocus:s,focusedView:R,onFocusedViewChange:F}),te=ee.view,ne=ee.setView,re=ee.focusedView,oe=ee.setFocusedView,ie=ee.goToNextView,ae=ee.setValueAndGoToNextView,se=Qb({value:Q,defaultCalendarMonth:h,reduceAnimations:x,onMonthChange:g,minDate:P,maxDate:A,shouldDisableDate:w,disablePast:f,disableFuture:p}),le=se.calendarState,ce=se.changeFocusedDay,ue=se.changeMonth,de=se.handleChangeMonth,pe=se.isDateDisabled,fe=se.onMonthSwitchingAnimationEnd,he=(0,_s.Z)((function(e){var t=n.startOfMonth(e),r=n.endOfMonth(e),o=pe(e)?yg({utils:n,date:e,minDate:n.isBefore(P,t)?t:P,maxDate:n.isAfter(A,r)?r:A,disablePast:f,disableFuture:p,isDateDisabled:pe}):e;o?(ae(o,"finish"),null==g||g(t)):(ie(),ue(t)),ce(o,!0)})),me=(0,_s.Z)((function(e){var t=n.startOfYear(e),r=n.endOfYear(e),o=pe(e)?yg({utils:n,date:e,minDate:n.isBefore(P,t)?t:P,maxDate:n.isAfter(A,r)?r:A,disablePast:f,disableFuture:p,isDateDisabled:pe}):e;o?(ae(o,"finish"),null==v||v(o)):(ie(),ue(t)),ce(o,!0)})),ve=(0,_s.Z)((function(e){return ae(Q&&e?function(e,t,n){var r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),e.setSeconds(r,e.getSeconds(n))}(n,e,Q):e,"finish")}));o.useEffect((function(){null!=Q&&n.isValid(Q)&&ue(Q)}),[Q]);var ge=a,ye=function(e){var t=e.classes;return(0,M.Z)({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},Ow,t)}(ge),be={disablePast:f,disableFuture:p,maxDate:A,minDate:P},xe=E&&Q||P,we=E&&Q||A,Ce={disableHighlightToday:I,readOnly:D,disabled:E},je="".concat(i,"-grid-label"),Se=null!==re,ke=o.useRef(te);o.useEffect((function(){ke.current!==te&&(re===ke.current&&oe(te,!0),ke.current=te)}),[re,oe,te]);var Ze=o.useMemo((function(){return[Q]}),[Q]);return(0,u.jsxs)(Pw,(0,r.Z)({ref:t,className:(0,y.default)(ye.root,O),ownerState:ge},K,{children:[(0,u.jsx)(Sw,{views:k,view:te,currentMonth:le.currentMonth,onViewChange:ne,onMonthChange:function(e,t){return de({newMonth:e,direction:t})},minDate:xe,maxDate:we,disabled:E,disablePast:f,disableFuture:p,reduceAnimations:x,labelId:je,slots:H,slotProps:W}),(0,u.jsx)(Aw,{reduceAnimations:x,className:ye.viewTransitionContainer,transKey:te,ownerState:ge,children:(0,u.jsxs)("div",{children:["year"===te&&(0,u.jsx)(aw,(0,r.Z)({},be,Ce,{value:Q,onChange:me,shouldDisableYear:j,hasFocus:Se,onFocusedViewChange:function(e){return oe("year",e)},yearsPerRow:G})),"month"===te&&(0,u.jsx)(Jx,(0,r.Z)({},be,Ce,{hasFocus:Se,className:O,value:Q,onChange:he,shouldDisableMonth:C,onFocusedViewChange:function(e){return oe("month",e)},monthsPerRow:Y})),"day"===te&&(0,u.jsx)(Nx,(0,r.Z)({},le,be,Ce,{onMonthSwitchingAnimationEnd:fe,onFocusedDayChange:ce,reduceAnimations:x,selectedDays:Ze,onSelectedDaysChange:ve,shouldDisableDate:w,shouldDisableMonth:C,shouldDisableYear:j,hasFocus:Se,onFocusedViewChange:function(e){return oe("day",e)},gridLabelId:je,showDaysOutsideCurrentMonth:B,fixedWeekNumber:L,dayOfWeekFormatter:N,displayWeekNumber:q,components:_,componentsProps:z,slots:H,slotProps:W,loading:V,renderLoading:U}))]})})]}))})),Tw=function(e){return"year"===e||"month"===e||"day"===e},Iw=function(e){var t=e.view,n=e.onViewChange,r=e.views,o=e.focusedView,i=e.onFocusedViewChange,a=e.value,s=e.defaultValue,l=e.onChange,c=e.className,d=e.classes,p=e.disableFuture,f=e.disablePast,h=e.minDate,m=e.maxDate,v=e.shouldDisableDate,g=e.shouldDisableMonth,y=e.shouldDisableYear,b=e.reduceAnimations,x=e.onMonthChange,w=e.monthsPerRow,C=e.onYearChange,j=e.yearsPerRow,S=e.defaultCalendarMonth,k=e.components,Z=e.componentsProps,O=e.slots,E=e.slotProps,D=e.loading,P=e.renderLoading,A=e.disableHighlightToday,M=e.readOnly,T=e.disabled,I=e.showDaysOutsideCurrentMonth,R=e.dayOfWeekFormatter,F=e.sx,B=e.autoFocus,L=e.fixedWeekNumber,N=e.displayWeekNumber;return(0,u.jsx)(Mw,{view:t,onViewChange:n,views:r.filter(Tw),focusedView:o,onFocusedViewChange:i,value:a,defaultValue:s,onChange:l,className:c,classes:d,disableFuture:p,disablePast:f,minDate:h,maxDate:m,shouldDisableDate:v,shouldDisableMonth:g,shouldDisableYear:y,reduceAnimations:b,onMonthChange:x,monthsPerRow:w,onYearChange:C,yearsPerRow:j,defaultCalendarMonth:S,components:k,componentsProps:Z,slots:O,slotProps:E,loading:D,renderLoading:P,disableHighlightToday:A,readOnly:M,disabled:T,showDaysOutsideCurrentMonth:I,dayOfWeekFormatter:R,sx:F,autoFocus:B,fixedWeekNumber:L,displayWeekNumber:N})},Rw=o.forwardRef((function(e,t){var n,i,a=Ug(),s=Wg(),l=function(e,t){var n,i,a,s,l=Wg(),c=Vg(),u=(0,T.Z)({props:e,name:t}),d=o.useMemo((function(){var e;return null==(null==(e=u.localeText)?void 0:e.toolbarTitle)?u.localeText:(0,r.Z)({},u.localeText,{datePickerToolbarTitle:u.localeText.toolbarTitle})}),[u.localeText]),p=null!=(n=u.slots)?n:ay(u.components);return(0,r.Z)({},u,{localeText:d},Kg({views:u.views,openTo:u.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:null!=(i=u.disableFuture)&&i,disablePast:null!=(a=u.disablePast)&&a,minDate:xg(l,u.minDate,c.minDate),maxDate:xg(l,u.maxDate,c.maxDate),slots:(0,r.Z)({toolbar:iy},p),slotProps:null!=(s=u.slotProps)?s:u.componentsProps})}(e,"MuiDesktopDatePicker"),c=(0,r.Z)({day:Iw,month:Iw,year:Iw},l.viewRenderers),u=(0,r.Z)({},l,{viewRenderers:c,format:sy(s,l),yearsPerRow:null!=(n=l.yearsPerRow)?n:4,slots:(0,r.Z)({openPickerIcon:Pb,field:Kb},l.slots),slotProps:(0,r.Z)({},l.slotProps,{field:function(e){var n;return(0,r.Z)({},(0,gg.Z)(null==(n=l.slotProps)?void 0:n.field,e),Hb(l),{ref:t})},toolbar:(0,r.Z)({hidden:!0},null==(i=l.slotProps)?void 0:i.toolbar)})});return(0,Zb({props:u,valueManager:Lg,valueType:"date",getOpenDialogAriaText:a.openDatePickerDialogue,validator:ly}).renderPicker)()}));Rw.propTypes={autoFocus:$e().bool,className:$e().string,closeOnSelect:$e().bool,components:$e().object,componentsProps:$e().object,dayOfWeekFormatter:$e().func,defaultCalendarMonth:$e().any,defaultValue:$e().any,disabled:$e().bool,disableFuture:$e().bool,disableHighlightToday:$e().bool,disableOpenPicker:$e().bool,disablePast:$e().bool,displayWeekNumber:$e().bool,fixedWeekNumber:$e().number,format:$e().string,formatDensity:$e().oneOf(["dense","spacious"]),inputRef:$e().oneOfType([$e().func,$e().shape({current:$e().object})]),label:$e().node,loading:$e().bool,localeText:$e().object,maxDate:$e().any,minDate:$e().any,monthsPerRow:$e().oneOf([3,4]),onAccept:$e().func,onChange:$e().func,onClose:$e().func,onError:$e().func,onMonthChange:$e().func,onOpen:$e().func,onSelectedSectionsChange:$e().func,onViewChange:$e().func,onYearChange:$e().func,open:$e().bool,openTo:$e().oneOf(["day","month","year"]),orientation:$e().oneOf(["landscape","portrait"]),readOnly:$e().bool,reduceAnimations:$e().bool,renderLoading:$e().func,selectedSections:$e().oneOfType([$e().oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),$e().number,$e().shape({endIndex:$e().number.isRequired,startIndex:$e().number.isRequired})]),shouldDisableDate:$e().func,shouldDisableMonth:$e().func,shouldDisableYear:$e().func,showDaysOutsideCurrentMonth:$e().bool,slotProps:$e().object,slots:$e().object,sx:$e().oneOfType([$e().arrayOf($e().oneOfType([$e().func,$e().object,$e().bool])),$e().func,$e().object]),value:$e().any,view:$e().oneOf(["day","month","year"]),viewRenderers:$e().shape({day:$e().func,month:$e().func,year:$e().func}),views:$e().arrayOf($e().oneOf(["day","month","year"]).isRequired),yearsPerRow:$e().oneOf([3,4])};var Fw=["title","titleId"];function Bw(){return Bw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bw.apply(this,arguments)}function Lw(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Nw(e,t){var n=e.title,r=e.titleId,i=Lw(e,Fw);return o.createElement("svg",Bw({width:16,height:17,viewBox:"0 0 16 17",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,Dw||(Dw=o.createElement("path",{d:"M4.67164 0.178711C4.21139 0.178711 3.83831 0.552044 3.83831 1.01204C1.99739 1.01204 0.504891 2.50454 0.504974 4.34538V5.23039L15.505 5.17871V4.34538C15.505 2.50454 14.0126 1.01204 12.1716 1.01204C12.1716 0.552044 11.7986 0.178711 11.3383 0.178711C10.8781 0.178711 10.505 0.552044 10.505 1.01204H5.50497C5.50497 0.552044 5.13189 0.178711 4.67164 0.178711ZM0.504974 6.84538V12.6787C0.504974 14.5195 1.99739 16.012 3.83831 16.012H12.1716C14.0126 16.012 15.5051 14.5195 15.505 12.6787V6.84538H0.504974ZM4.67164 8.51204C5.13189 8.51204 5.50497 8.88538 5.50497 9.34538C5.50497 9.80538 5.13189 10.1787 4.67164 10.1787C4.21139 10.1787 3.83831 9.80538 3.83831 9.34538C3.83831 8.88538 4.21139 8.51204 4.67164 8.51204ZM8.00497 8.51204C8.46522 8.51204 8.8383 8.88538 8.8383 9.34538C8.8383 9.80538 8.46522 10.1787 8.00497 10.1787C7.54472 10.1787 7.17164 9.80538 7.17164 9.34538C7.17164 8.88538 7.54472 8.51204 8.00497 8.51204ZM11.3383 8.51204C11.7986 8.51204 12.1716 8.88538 12.1716 9.34538C12.1716 9.80538 11.7986 10.1787 11.3383 10.1787C10.8781 10.1787 10.505 9.80538 10.505 9.34538C10.505 8.88538 10.8781 8.51204 11.3383 8.51204ZM4.67164 11.012C5.13189 11.012 5.50497 11.3854 5.50497 11.8454C5.50497 12.3054 5.13189 12.6787 4.67164 12.6787C4.21139 12.6787 3.83831 12.3054 3.83831 11.8454C3.83831 11.3854 4.21139 11.012 4.67164 11.012ZM8.00497 11.012C8.46522 11.012 8.8383 11.3854 8.8383 11.8454C8.8383 12.3054 8.46522 12.6787 8.00497 12.6787C7.54472 12.6787 7.17164 12.3054 7.17164 11.8454C7.17164 11.3854 7.54472 11.012 8.00497 11.012ZM11.3383 11.012C11.7986 11.012 12.1716 11.3854 12.1716 11.8454C12.1716 12.3054 11.7986 12.6787 11.3383 12.6787C10.8781 12.6787 10.505 12.3054 10.505 11.8454C10.505 11.3854 10.8781 11.012 11.3383 11.012Z",fill:"current"})))}var _w,zw=o.forwardRef(Nw),Hw=(n.p,["name","required","minDate","maxDate","onChange","openDatePicker","disabled","RenderInputElement","onClick"]),Ww=Rw,Vw=function(e){var t=e.name,n=e.required,r=e.minDate,i=e.maxDate,a=e.onChange,s=e.openDatePicker,c=void 0!==s&&s,d=e.disabled,p=e.RenderInputElement,f=e.onClick,h=Nn(e,Hw),m=Xc().control,v=(0,o.useState)(c),g=(0,Le.Z)(v,2),y=g[0],b=g[1];return(0,u.jsx)(du,{control:m,name:t,rules:{required:n},render:function(e){var n=e.field,o="string"===typeof n.value?Yv(n.value):n.value;return(0,u.jsx)(Ww,(0,l.Z)((0,l.Z)({},n),{},{open:y,minDate:r,maxDate:i,format:(0,rs.Ek)(),onChange:function(e){n.onChange((0,rs.pu)(new Date(e))),a&&a()},onClose:function(){return b(!1)},value:o||null,slots:{textField:p||Sd},slotProps:{textField:(0,l.Z)({name:t,disabled:d,onKeyDown:function(e){e.preventDefault()},onIconClick:function(){b(!0)},onClick:function(){b(!0),null===f||void 0===f||f()},icon:(0,u.jsx)(zw,{fill:tr.IV[500]})},h),popper:{placement:"bottom"},desktopPaper:{style:{borderRadius:"16px",boxShadow:"1px 10px 30px rgba(56, 69, 114, 0.1)"}}}},h))}})},Uw=["title","titleId"];function qw(){return qw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qw.apply(this,arguments)}function Gw(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Yw(e,t){var n=e.title,r=e.titleId,i=Gw(e,Uw);return o.createElement("svg",qw({width:21,height:21,viewBox:"0 0 21 21",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,_w||(_w=o.createElement("path",{d:"M15.5128 0.453133C15.141 0.453133 14.9226 0.642108 14.7757 0.790108L13.053 2.50312L12.199 1.75214C11.7282 1.28114 11.1075 1.04615 10.4904 1.04615C9.87332 1.04615 9.22272 1.31911 8.75182 1.79011L3.79412 6.74311C3.40412 7.13311 3.42082 7.77315 3.81092 8.16315C4.20092 8.55415 4.85262 8.53713 5.24272 8.14613L10.1855 3.19611C10.347 3.03411 10.5989 2.96215 10.795 3.16615L11.6261 3.92011L5.75542 9.79011C4.76342 10.7831 3.85122 12.1211 2.97752 13.6961C2.30882 14.9011 1.69012 16.1921 1.16722 17.4771C0.984423 17.9261 0.499023 19.2262 0.499023 19.4652C0.499023 19.7032 0.577524 19.9261 0.730324 20.1021C0.745424 20.1191 1.04022 20.4441 1.50042 20.4531L15.4624 20.4451C16.014 20.4451 16.4612 19.9981 16.4612 19.4451C16.4612 18.8931 16.014 18.4451 15.4624 18.4451L6.41592 18.4472C6.72302 18.2912 7.03502 18.1262 7.33302 17.9602C8.90562 17.0862 10.1906 16.1831 11.1811 15.1911L17.6785 8.72712L20.1755 6.19611C20.3173 6.05211 20.4973 5.90113 20.4978 5.44813C20.5002 3.47113 19.6934 2.26215 19.2013 1.75715C18.7092 1.25315 17.5105 0.455133 15.5128 0.453133ZM15.8793 2.49415C16.298 2.48115 17.3293 2.7231 17.7764 3.1471C18.2235 3.5721 18.4808 4.67511 18.4665 5.09211L17.2134 6.34412L14.5282 3.86512L15.8793 2.49415Z",fill:"current"})))}var Kw=o.forwardRef(Yw),Jw=(n.p,function(e){var t=e.adapter,n=e.value,r=e.props,o=r.minTime,i=r.maxTime,a=r.minutesStep,s=r.shouldDisableClock,l=r.shouldDisableTime,c=r.disableIgnoringDatePartForTimeValidation,u=void 0!==c&&c,d=r.disablePast,p=r.disableFuture,f=t.utils.date(),h=t.utils.date(n),m=By(u,t.utils);if(null===n)return null;switch(!0){case!t.utils.isValid(n):return"invalidDate";case Boolean(o&&m(o,n)):return"minTime";case Boolean(i&&m(n,i)):return"maxTime";case Boolean(p&&t.utils.isAfter(h,f)):return"disableFuture";case Boolean(d&&t.utils.isBefore(h,f)):return"disablePast";case Boolean(l&&l(n,"hours")):return"shouldDisableTime-hours";case Boolean(l&&l(n,"minutes")):return"shouldDisableTime-minutes";case Boolean(l&&l(n,"seconds")):return"shouldDisableTime-seconds";case Boolean(s&&s(t.utils.getHours(n),"hours")):return"shouldDisableClock-hours";case Boolean(s&&s(t.utils.getMinutes(n),"minutes")):return"shouldDisableClock-minutes";case Boolean(s&&s(t.utils.getSeconds(n),"seconds")):return"shouldDisableClock-seconds";case Boolean(a&&t.utils.getMinutes(n)%a!==0):return"minutesStep";default:return null}}),Xw=function(e){var t=e.props,n=e.inputRef,o=function(e){var t,n,o,i,a=Wg(),s=(null!=(t=e.ampm)?t:a.is12HourCycleInCurrentLocale())?a.formats.fullTime12h:a.formats.fullTime24h;return(0,r.Z)({},e,{disablePast:null!=(n=e.disablePast)&&n,disableFuture:null!=(o=e.disableFuture)&&o,format:null!=(i=e.format)?i:s})}(t),i=Vb(o,"time"),a=i.forwardedProps,s=i.internalProps;return Bb({inputRef:n,forwardedProps:a,internalProps:s,valueManager:Lg,fieldValueManager:Ng,validator:Jw,valueType:"time"})},Qw=["slots","slotProps","components","componentsProps","InputProps","inputProps"],$w=["inputRef"],eC=["ref","onPaste","inputMode","readOnly"],tC=o.forwardRef((function(e,t){var n,o,i,a=(0,T.Z)({props:e,name:"MuiTimeField"}),s=a.slots,l=a.slotProps,c=a.components,d=a.componentsProps,p=a.InputProps,f=a.inputProps,h=(0,b.Z)(a,Qw),m=a,v=null!=(n=null!=(o=null==s?void 0:s.textField)?o:null==c?void 0:c.TextField)?n:xd.Z,g=(0,Ts.Z)({elementType:v,externalSlotProps:null!=(i=null==l?void 0:l.textField)?i:null==d?void 0:d.textField,externalForwardedProps:h,ownerState:m}),y=g.inputRef,x=(0,b.Z)(g,$w);x.inputProps=(0,r.Z)({},x.inputProps,f),x.InputProps=(0,r.Z)({},x.InputProps,p);var w=Xw({props:x,inputRef:y}),C=w.ref,j=w.onPaste,S=w.inputMode,k=w.readOnly,Z=(0,b.Z)(w,eC);return(0,u.jsx)(v,(0,r.Z)({ref:t},Z,{InputProps:(0,r.Z)({},Z.InputProps,{readOnly:k}),inputProps:(0,r.Z)({},Z.inputProps,{inputMode:S,onPaste:j,ref:C})}))}));function nC(e){return(0,F.Z)("MuiPickersToolbarText",e)}var rC=(0,R.Z)("MuiPickersToolbarText",["root","selected"]),oC=["className","selected","value"],iC=(0,P.ZP)(rn.Z,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:function(e,n){return[n.root,(0,t.Z)({},"&.".concat(rC.selected),n.selected)]}})((function(e){var n=e.theme;return(0,t.Z)({transition:n.transitions.create("color"),color:(n.vars||n).palette.text.secondary},"&.".concat(rC.selected),{color:(n.vars||n).palette.text.primary})})),aC=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiPickersToolbarText"}),o=n.className,i=n.value,a=(0,b.Z)(n,oC),s=function(e){var t=e.classes,n={root:["root",e.selected&&"selected"]};return(0,M.Z)(n,nC,t)}(n);return(0,u.jsx)(iC,(0,r.Z)({ref:t,className:(0,y.default)(o,s.root),component:"span"},a,{children:i}))})),sC=["align","className","selected","typographyClassName","value","variant"],lC=(0,P.ZP)(ko.Z,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:function(e,t){return t.root}})({padding:0,minWidth:16,textTransform:"none"}),cC=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiPickersToolbarButton"}),o=n.align,i=n.className,a=n.selected,s=n.typographyClassName,l=n.value,c=n.variant,d=(0,b.Z)(n,sC),p=function(e){var t=e.classes;return(0,M.Z)({root:["root"]},Jg,t)}(n);return(0,u.jsx)(lC,(0,r.Z)({variant:"text",ref:t,className:(0,y.default)(i,p.root)},d,{children:(0,u.jsx)(aC,{align:o,className:s,variant:c,value:l,selected:a})}))}));function uC(e){return(0,F.Z)("MuiTimePickerToolbar",e)}var dC=(0,R.Z)("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),pC=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly"],fC=(0,P.ZP)(ey,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:function(e,t){return t.root}})((0,t.Z)({},"& .".concat(Xg.penIconButtonLandscape),{marginTop:"auto"})),hC=(0,P.ZP)(aC,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:function(e,t){return t.separator}})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),mC=(0,P.ZP)("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:function(e,n){var r;return[(r={},(0,t.Z)(r,"&.".concat(dC.hourMinuteLabelLandscape),n.hourMinuteLabelLandscape),(0,t.Z)(r,"&.".concat(dC.hourMinuteLabelReverse),n.hourMinuteLabelReverse),r),n.hourMinuteLabel]}})((function(e){var t=e.theme,n=e.ownerState;return(0,r.Z)({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},n.isLandscape&&{marginTop:"auto"},"rtl"===t.direction&&{flexDirection:"row-reverse"})}));mC.propTypes={as:$e().elementType,ownerState:$e().object.isRequired,sx:$e().oneOfType([$e().arrayOf($e().oneOfType([$e().func,$e().object,$e().bool])),$e().func,$e().object])};var vC=(0,P.ZP)("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:function(e,n){return[(0,t.Z)({},".".concat(dC.ampmLabel),n.ampmLabel),(0,t.Z)({},"&.".concat(dC.ampmLandscape),n.ampmLandscape),n.ampmSelection]}})((function(e){var n=e.ownerState;return(0,r.Z)({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},n.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},(0,t.Z)({},"& .".concat(dC.ampmLabel),{fontSize:17}))}));function gC(e){var t=(0,T.Z)({props:e,name:"MuiTimePickerToolbar"}),n=t.ampm,o=t.ampmInClock,i=t.value,a=t.isLandscape,s=t.onChange,l=t.view,c=t.onViewChange,d=t.views,p=t.disabled,f=t.readOnly,h=(0,b.Z)(t,pC),m=Wg(),v=Ug(),g=(0,j.Z)(),y=Boolean(n&&!o&&d.includes("hours")),x=mw(i,n,s),w=x.meridiemMode,C=x.handleMeridiemChange,S=t,k=function(e){var t=e.theme,n=e.isLandscape,r=e.classes,o={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape","rtl"===t.direction&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return(0,M.Z)(o,uC,r)}((0,r.Z)({},S,{theme:g})),Z=(0,u.jsx)(hC,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:k.separator});return(0,u.jsxs)(fC,(0,r.Z)({landscapeDirection:"row",toolbarTitle:v.timePickerToolbarTitle,isLandscape:a,ownerState:S,className:k.root},h,{children:[(0,u.jsxs)(mC,{className:k.hourMinuteLabel,ownerState:S,children:[jy(d,"hours")&&(0,u.jsx)(cC,{tabIndex:-1,variant:"h3",onClick:function(){return c("hours")},selected:"hours"===l,value:i?function(e){return n?m.format(e,"hours12h"):m.format(e,"hours24h")}(i):"--"}),jy(d,["hours","minutes"])&&Z,jy(d,"minutes")&&(0,u.jsx)(cC,{tabIndex:-1,variant:"h3",onClick:function(){return c("minutes")},selected:"minutes"===l,value:i?m.format(i,"minutes"):"--"}),jy(d,["minutes","seconds"])&&Z,jy(d,"seconds")&&(0,u.jsx)(cC,{variant:"h3",onClick:function(){return c("seconds")},selected:"seconds"===l,value:i?m.format(i,"seconds"):"--"})]}),y&&(0,u.jsxs)(vC,{className:k.ampmSelection,ownerState:S,children:[(0,u.jsx)(cC,{disableRipple:!0,variant:"subtitle2",selected:"am"===w,typographyClassName:k.ampmLabel,value:m.getMeridiemText("am"),onClick:f?void 0:function(){return C("am")},disabled:p}),(0,u.jsx)(cC,{disableRipple:!0,variant:"subtitle2",selected:"pm"===w,typographyClassName:k.ampmLabel,value:m.getMeridiemText("pm"),onClick:f?void 0:function(){return C("pm")},disabled:p})]})]}))}function yC(e,t){var n,i,a,s,l,c=Wg(),u=(0,T.Z)({props:e,name:t}),d=null!=(n=u.ampm)?n:c.is12HourCycleInCurrentLocale(),p=o.useMemo((function(){var e;return null==(null==(e=u.localeText)?void 0:e.toolbarTitle)?u.localeText:(0,r.Z)({},u.localeText,{timePickerToolbarTitle:u.localeText.toolbarTitle})}),[u.localeText]),f=null!=(i=u.slots)?i:ay(u.components),h=null!=(a=u.slotProps)?a:u.componentsProps;return(0,r.Z)({},u,{ampm:d,localeText:p},Kg({views:u.views,openTo:u.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:null!=(s=u.disableFuture)&&s,disablePast:null!=(l=u.disablePast)&&l,slots:(0,r.Z)({toolbar:gC},f),slotProps:(0,r.Z)({},h,{toolbar:(0,r.Z)({ampm:d,ampmInClock:u.ampmInClock},null==h?void 0:h.toolbar)})})}function bC(e){return(0,F.Z)("MuiTimeClock",e)}vC.propTypes={as:$e().elementType,ownerState:$e().object.isRequired,sx:$e().oneOfType([$e().arrayOf($e().oneOfType([$e().func,$e().object,$e().bool])),$e().func,$e().object])};(0,R.Z)("MuiTimeClock",["root","arrowSwitcher"]);var xC=220,wC=36,CC={x:110,y:110},jC=CC.x-CC.x,SC=0-CC.y,kC=function(e,t,n){var r=t-CC.x,o=n-CC.y,i=Math.atan2(jC,SC)-Math.atan2(r,o),a=i*(180/Math.PI);a=Math.round(a/e)*e,a%=360;var s=Math.floor(a/e)||0,l=Math.pow(r,2)+Math.pow(o,2);return{value:s,distance:Math.sqrt(l)}};function ZC(e){return(0,F.Z)("MuiClockPointer",e)}(0,R.Z)("MuiClockPointer",["root","thumb"]);var OC=["className","hasSelected","isInner","type","viewValue"],EC=(0,P.ZP)("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme,n=e.ownerState;return(0,r.Z)({width:2,backgroundColor:(t.vars||t).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},n.shouldAnimate&&{transition:t.transitions.create(["transform","height"])})})),DC=(0,P.ZP)("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:function(e,t){return t.thumb}})((function(e){var t=e.theme,n=e.ownerState;return(0,r.Z)({width:4,height:4,backgroundColor:(t.vars||t).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:"calc(50% - ".concat(18,"px)"),border:"".concat(16,"px solid ").concat((t.vars||t).palette.primary.main),boxSizing:"content-box"},n.hasSelected&&{backgroundColor:(t.vars||t).palette.primary.main})}));function PC(e){var t=(0,T.Z)({props:e,name:"MuiClockPointer"}),n=t.className,i=t.isInner,a=t.type,s=t.viewValue,l=(0,b.Z)(t,OC),c=o.useRef(a);o.useEffect((function(){c.current=a}),[a]);var d=(0,r.Z)({},t,{shouldAnimate:c.current!==a}),p=function(e){var t=e.classes;return(0,M.Z)({root:["root"],thumb:["thumb"]},ZC,t)}(d);return(0,u.jsx)(EC,(0,r.Z)({style:function(){var e=360/("hours"===a?12:60)*s;return"hours"===a&&s>12&&(e-=360),{height:Math.round((i?.26:.4)*xC),transform:"rotateZ(".concat(e,"deg)")}}(),className:(0,y.default)(n,p.root),ownerState:d},l,{children:(0,u.jsx)(DC,{ownerState:d,className:p.thumb})}))}function AC(e){return(0,F.Z)("MuiClock",e)}(0,R.Z)("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton"]);var MC=(0,P.ZP)("div",{name:"MuiClock",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){return{display:"flex",justifyContent:"center",alignItems:"center",margin:e.theme.spacing(2)}})),TC=(0,P.ZP)("div",{name:"MuiClock",slot:"Clock",overridesResolver:function(e,t){return t.clock}})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),IC=(0,P.ZP)("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:function(e,t){return t.wrapper}})({"&:focus":{outline:"none"}}),RC=(0,P.ZP)("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:function(e,t){return t.squareMask}})((function(e){var t=e.ownerState;return(0,r.Z)({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},t.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})})),FC=(0,P.ZP)("div",{name:"MuiClock",slot:"Pin",overridesResolver:function(e,t){return t.pin}})((function(e){var t=e.theme;return{width:6,height:6,borderRadius:"50%",backgroundColor:(t.vars||t).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})),BC=(0,P.ZP)(io.Z,{name:"MuiClock",slot:"AmButton",overridesResolver:function(e,t){return t.amButton}})((function(e){var t=e.theme,n=e.ownerState;return(0,r.Z)({zIndex:1,position:"absolute",bottom:8,left:8},"am"===n.meridiemMode&&{backgroundColor:(t.vars||t).palette.primary.main,color:(t.vars||t).palette.primary.contrastText,"&:hover":{backgroundColor:(t.vars||t).palette.primary.light}})})),LC=(0,P.ZP)(io.Z,{name:"MuiClock",slot:"PmButton",overridesResolver:function(e,t){return t.pmButton}})((function(e){var t=e.theme,n=e.ownerState;return(0,r.Z)({zIndex:1,position:"absolute",bottom:8,right:8},"pm"===n.meridiemMode&&{backgroundColor:(t.vars||t).palette.primary.main,color:(t.vars||t).palette.primary.contrastText,"&:hover":{backgroundColor:(t.vars||t).palette.primary.light}})}));function NC(e){var t=(0,T.Z)({props:e,name:"MuiClock"}),n=t.ampm,r=t.ampmInClock,i=t.autoFocus,a=t.children,s=t.value,l=t.handleMeridiemChange,c=t.isTimeDisabled,d=t.meridiemMode,p=t.minutesStep,f=void 0===p?1:p,h=t.onChange,m=t.selectedId,v=t.type,g=t.viewValue,b=t.disabled,x=t.readOnly,w=t.className,C=t,j=Wg(),S=Ug(),k=o.useRef(!1),Z=function(e){var t=e.classes;return(0,M.Z)({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"]},AC,t)}(C),O=c(g,v),E=!n&&"hours"===v&&(g<1||g>12),D=function(e,t){b||x||c(e,v)||h(e,t)},P=function(e,t){var r=e.offsetX,o=e.offsetY;if(void 0===r){var i=e.target.getBoundingClientRect();r=e.changedTouches[0].clientX-i.left,o=e.changedTouches[0].clientY-i.top}var a="seconds"===v||"minutes"===v?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=kC(6*n,e,t).value;return r*n%60}(r,o,f):function(e,t,n){var r=kC(30,e,t),o=r.value,i=r.distance,a=o||12;return n?a%=12:i<74&&(a+=12,a%=24),a}(r,o,Boolean(n));D(a,t)},A=o.useMemo((function(){return"hours"===v||g%5===0}),[v,g]),I="minutes"===v?f:1,R=o.useRef(null);(0,Ns.Z)((function(){i&&R.current.focus()}),[i]);return(0,u.jsxs)(MC,{className:(0,y.default)(w,Z.root),children:[(0,u.jsxs)(TC,{className:Z.clock,children:[(0,u.jsx)(RC,{onTouchMove:function(e){k.current=!0,P(e,"shallow")},onTouchEnd:function(e){k.current&&(P(e,"finish"),k.current=!1)},onMouseUp:function(e){k.current&&(k.current=!1),P(e.nativeEvent,"finish")},onMouseMove:function(e){e.buttons>0&&P(e.nativeEvent,"shallow")},ownerState:{disabled:b},className:Z.squareMask}),!O&&(0,u.jsxs)(o.Fragment,{children:[(0,u.jsx)(FC,{className:Z.pin}),null!=s&&(0,u.jsx)(PC,{type:v,viewValue:g,isInner:E,hasSelected:A})]}),(0,u.jsx)(IC,{"aria-activedescendant":m,"aria-label":S.clockLabelText(v,s,j),ref:R,role:"listbox",onKeyDown:function(e){if(!k.current)switch(e.key){case"Home":D(0,"partial"),e.preventDefault();break;case"End":D("minutes"===v?59:23,"partial"),e.preventDefault();break;case"ArrowUp":D(g+I,"partial"),e.preventDefault();break;case"ArrowDown":D(g-I,"partial"),e.preventDefault()}},tabIndex:0,className:Z.wrapper,children:a})]}),n&&r&&(0,u.jsxs)(o.Fragment,{children:[(0,u.jsx)(BC,{onClick:x?void 0:function(){return l("am")},disabled:b||null===d,ownerState:C,className:Z.amButton,children:(0,u.jsx)(rn.Z,{variant:"caption",children:"AM"})}),(0,u.jsx)(LC,{disabled:b||null===d,onClick:x?void 0:function(){return l("pm")},ownerState:C,className:Z.pmButton,children:(0,u.jsx)(rn.Z,{variant:"caption",children:"PM"})})]})]})}function _C(e){return(0,F.Z)("MuiClockNumber",e)}var zC=(0,R.Z)("MuiClockNumber",["root","selected","disabled"]),HC=["className","disabled","index","inner","label","selected"],WC=(0,P.ZP)("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:function(e,n){return[n.root,(0,t.Z)({},"&.".concat(zC.disabled),n.disabled),(0,t.Z)({},"&.".concat(zC.selected),n.selected)]}})((function(e){var n,o=e.theme,i=e.ownerState;return(0,r.Z)((n={height:wC,width:wC,position:"absolute",left:"calc((100% - ".concat(wC,"px) / 2)"),display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(o.vars||o).palette.text.primary,fontFamily:o.typography.fontFamily,"&:focused":{backgroundColor:(o.vars||o).palette.background.paper}},(0,t.Z)(n,"&.".concat(zC.selected),{color:(o.vars||o).palette.primary.contrastText}),(0,t.Z)(n,"&.".concat(zC.disabled),{pointerEvents:"none",color:(o.vars||o).palette.text.disabled}),n),i.inner&&(0,r.Z)({},o.typography.body2,{color:(o.vars||o).palette.text.secondary}))}));function VC(e){var t=(0,T.Z)({props:e,name:"MuiClockNumber"}),n=t.className,o=t.disabled,i=t.index,a=t.inner,s=t.label,l=t.selected,c=(0,b.Z)(t,HC),d=t,p=function(e){var t=e.classes,n={root:["root",e.selected&&"selected",e.disabled&&"disabled"]};return(0,M.Z)(n,_C,t)}(d),f=i%12/12*Math.PI*2-Math.PI/2,h=91*(a?.65:1),m=Math.round(Math.cos(f)*h),v=Math.round(Math.sin(f)*h);return(0,u.jsx)(WC,(0,r.Z)({className:(0,y.default)(n,p.root),"aria-disabled":!!o||void 0,"aria-selected":!!l||void 0,role:"option",style:{transform:"translate(".concat(m,"px, ").concat(v+92,"px")},ownerState:d},c,{children:s}))}var UC=function(e){for(var t=e.ampm,n=e.value,r=e.getClockNumberText,o=e.isDisabled,i=e.selectedId,a=e.utils,s=n?a.getHours(n):null,l=[],c=t?12:23,d=function(e){return null!==s&&(t?12===e?12===s||0===s:s===e||s-12===e:s===e)},p=t?1:0;p<=c;p+=1){var f=p.toString();0===p&&(f="00");var h=!t&&(0===p||p>12);f=a.formatNumber(f);var m=d(p);l.push((0,u.jsx)(VC,{id:m?i:void 0,index:p,inner:h,selected:m,disabled:o(p),label:f,"aria-label":r(f)},p))}return l},qC=function(e){var t=e.utils,n=e.value,r=e.isDisabled,o=e.getClockNumberText,i=e.selectedId,a=t.formatNumber;return[[5,a("05")],[10,a("10")],[15,a("15")],[20,a("20")],[25,a("25")],[30,a("30")],[35,a("35")],[40,a("40")],[45,a("45")],[50,a("50")],[55,a("55")],[0,a("00")]].map((function(e,t){var a=(0,Le.Z)(e,2),s=a[0],l=a[1],c=s===n;return(0,u.jsx)(VC,{label:l,id:c?i:void 0,index:t+1,inner:!1,disabled:r(s),selected:c,"aria-label":o(l)},s)}))},GC=["ampm","ampmInClock","autoFocus","components","componentsProps","slots","slotProps","value","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","showViewSwitcher","onChange","defaultValue","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly"],YC=(0,P.ZP)(kw,{name:"MuiTimeClock",slot:"Root",overridesResolver:function(e,t){return t.root}})({display:"flex",flexDirection:"column",position:"relative"}),KC=(0,P.ZP)(hw,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:function(e,t){return t.arrowSwitcher}})({position:"absolute",right:12,top:15}),JC=o.forwardRef((function(e,t){var n=Ug(),i=qg(),a=Wg(),s=(0,T.Z)({props:e,name:"MuiTimeClock"}),l=s.ampm,c=void 0===l?a.is12HourCycleInCurrentLocale():l,d=s.ampmInClock,p=void 0!==d&&d,f=s.autoFocus,h=s.components,m=s.componentsProps,v=s.slots,g=s.slotProps,x=s.value,w=s.disableIgnoringDatePartForTimeValidation,C=void 0!==w&&w,j=s.maxTime,S=s.minTime,k=s.disableFuture,Z=s.disablePast,O=s.minutesStep,E=void 0===O?1:O,D=s.shouldDisableClock,P=s.shouldDisableTime,A=s.showViewSwitcher,I=s.onChange,R=s.defaultValue,F=s.view,B=s.views,L=void 0===B?["hours","minutes"]:B,N=s.openTo,_=s.onViewChange,z=s.focusedView,H=s.onFocusedViewChange,W=s.className,V=s.disabled,U=s.readOnly,q=(0,b.Z)(s,GC),G=null!=v?v:ay(h),Y=null!=g?g:m,K=(0,Fs.Z)({name:"DateCalendar",state:"value",controlled:x,default:null!=R?R:null}),J=(0,Le.Z)(K,2),X=J[0],Q=J[1],$=(0,Ey.Z)((function(e,t){Q(e),null==I||I(e,t)})),ee=My({view:F,views:L,openTo:N,onViewChange:_,onChange:$,focusedView:z,onFocusedViewChange:H}),te=ee.view,ne=ee.setView,re=ee.previousView,oe=ee.nextView,ie=ee.setValueAndGoToNextView,ae=o.useMemo((function(){return X||a.setSeconds(a.setMinutes(a.setHours(i,0),0),0)}),[X,i,a]),se=mw(ae,c,ie),le=se.meridiemMode,ce=se.handleMeridiemChange,ue=o.useCallback((function(e,t){var n=By(C,a),r="hours"===t||"minutes"===t&&L.includes("seconds"),o=function(e){var t=e.start,o=e.end;return(!S||!n(S,o))&&((!j||!n(t,j))&&((!k||!n(t,i))&&(!Z||!n(i,r?o:t))))},s=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(e%n!==0)return!1;if(null!=D&&D(e,t))return!1;if(P)switch(t){case"hours":return!P(a.setHours(ae,e),"hours");case"minutes":return!P(a.setMinutes(ae,e),"minutes");case"seconds":return!P(a.setSeconds(ae,e),"seconds");default:return!1}return!0};switch(t){case"hours":var l=Ry(e,le,c),u=a.setHours(ae,l);return!o({start:a.setSeconds(a.setMinutes(u,0),0),end:a.setSeconds(a.setMinutes(u,59),59)})||!s(l);case"minutes":var d=a.setMinutes(ae,e);return!o({start:a.setSeconds(d,0),end:a.setSeconds(d,59)})||!s(e,E);case"seconds":var p=a.setSeconds(ae,e);return!o({start:p,end:p})||!s(e);default:throw new Error("not supported")}}),[c,ae,C,j,le,S,E,D,P,a,k,Z,i,L]),de=(0,Jb.Z)(),pe=o.useMemo((function(){switch(te){case"hours":var e=function(e,t){var n=Ry(e,le,c);ie(a.setHours(ae,n),t)};return{onChange:e,viewValue:a.getHours(ae),children:UC({value:X,utils:a,ampm:c,onChange:e,getClockNumberText:n.hoursClockNumberText,isDisabled:function(e){return V||ue(e,"hours")},selectedId:de})};case"minutes":var t=a.getMinutes(ae),r=function(e,t){ie(a.setMinutes(ae,e),t)};return{viewValue:t,onChange:r,children:qC({utils:a,value:t,onChange:r,getClockNumberText:n.minutesClockNumberText,isDisabled:function(e){return V||ue(e,"minutes")},selectedId:de})};case"seconds":var o=a.getSeconds(ae),i=function(e,t){ie(a.setSeconds(ae,e),t)};return{viewValue:o,onChange:i,children:qC({utils:a,value:o,onChange:i,getClockNumberText:n.secondsClockNumberText,isDisabled:function(e){return V||ue(e,"seconds")},selectedId:de})};default:throw new Error("You must provide the type for ClockView")}}),[te,a,X,c,n.hoursClockNumberText,n.minutesClockNumberText,n.secondsClockNumberText,le,ie,ae,ue,de,V]),fe=s,he=function(e){var t=e.classes;return(0,M.Z)({root:["root"],arrowSwitcher:["arrowSwitcher"]},bC,t)}(fe);return(0,u.jsxs)(YC,(0,r.Z)({ref:t,className:(0,y.default)(he.root,W),ownerState:fe},q,{children:[(0,u.jsx)(NC,(0,r.Z)({autoFocus:null!=f?f:!!z,ampmInClock:p&&L.includes("hours"),value:X,type:te,ampm:c,minutesStep:E,isTimeDisabled:ue,meridiemMode:le,handleMeridiemChange:ce,selectedId:de,disabled:V,readOnly:U},pe)),A&&(0,u.jsx)(KC,{className:he.arrowSwitcher,slots:G,slotProps:Y,onGoToPrevious:function(){return ne(re)},isPreviousDisabled:!re,previousLabel:n.openPreviousView,onGoToNext:function(){return ne(oe)},isNextDisabled:!oe,nextLabel:n.openNextView,ownerState:fe})]}))}));function XC(e){return(0,F.Z)("MuiDigitalClock",e)}(0,R.Z)("MuiDigitalClock",["root","list","item"]);var QC=["ampm","timeStep","autoFocus","components","componentsProps","slots","slotProps","value","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","defaultValue","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled"],$C=(0,P.ZP)(kw,{name:"MuiDigitalClock",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){return{overflowY:"auto",width:"100%",scrollBehavior:e.ownerState.alreadyRendered?"smooth":"auto",maxHeight:232}})),ej=(0,P.ZP)(Ll.Z,{name:"MuiDigitalClock",slot:"List",overridesResolver:function(e,t){return t.list}})({padding:0}),tj=(0,P.ZP)(Nl.Z,{name:"MuiDigitalClock",slot:"Item",overridesResolver:function(e,t){return t.item}})((function(e){var t=e.theme;return{padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,A.Fq)(t.palette.primary.main,t.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(t.vars||t).palette.primary.main,color:(t.vars||t).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(t.vars||t).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.focusOpacity,")"):(0,A.Fq)(t.palette.primary.main,t.palette.action.focusOpacity)}}})),nj=o.forwardRef((function(e,t){var n,i,a,s=qg(),l=Wg(),c=o.useRef(null),d=(0,yy.Z)(t,c),p=Ug(),f=(0,T.Z)({props:e,name:"MuiDigitalClock"}),h=f.ampm,m=void 0===h?l.is12HourCycleInCurrentLocale():h,v=f.timeStep,g=void 0===v?30:v,x=f.autoFocus,w=f.components,C=f.componentsProps,j=f.slots,S=f.slotProps,k=f.value,Z=f.disableIgnoringDatePartForTimeValidation,O=void 0!==Z&&Z,E=f.maxTime,D=f.minTime,P=f.disableFuture,A=f.disablePast,I=f.minutesStep,R=void 0===I?1:I,F=f.shouldDisableClock,B=f.shouldDisableTime,L=f.onChange,N=f.defaultValue,_=f.view,z=f.openTo,H=f.onViewChange,W=f.focusedView,V=f.onFocusedViewChange,U=f.className,q=f.disabled,G=f.readOnly,Y=f.views,K=void 0===Y?["hours"]:Y,J=f.skipDisabled,X=void 0!==J&&J,Q=(0,b.Z)(f,QC),$=o.useMemo((function(){return(0,r.Z)({},f,{alreadyRendered:!!c.current})}),[f]),ee=function(e){var t=e.classes;return(0,M.Z)({root:["root"],list:["list"],item:["item"]},XC,t)}($),te=null!=(n=null!=(i=null==j?void 0:j.digitalClockItem)?i:null==w?void 0:w.DigitalClockItem)?n:tj,ne=null!=(a=null==S?void 0:S.digitalClockItem)?a:null==C?void 0:C.digitalClockItem,re=(0,Mb.Z)({name:"DigitalClock",state:"value",controlled:k,default:null!=N?N:null}),oe=(0,Le.Z)(re,2),ie=oe[0],ae=oe[1],se=My({view:_,views:K,openTo:z,onViewChange:H,onChange:(0,Ey.Z)((function(e){ae(e),null==L||L(e,"finish")})),focusedView:W,onFocusedViewChange:V}).setValueAndGoToNextView,le=(0,Ey.Z)((function(e){se(e,"finish")}));o.useEffect((function(){if(null!==c.current){var e=c.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(e){var t=e.offsetTop;c.current.scrollTop=t-4}}}));var ce=o.useMemo((function(){return ie||l.setSeconds(l.setMinutes(l.setHours(s,0),0),0)}),[ie,s,l]),ue=o.useCallback((function(e){var t=By(O,l);return!((!D||!t(D,e))&&(!E||!t(e,E))&&(!P||!t(e,s))&&(!A||!t(s,e)))||!(l.getMinutes(e)%R===0&&(null==F||!F(l.toJsDate(e).getTime(),"hours"))&&(!B||!B(e,"hours")))}),[O,l,D,E,P,s,A,R,F,B]),de=o.useMemo((function(){var e=l.startOfDay(ce);return[e].concat((0,dn.Z)(Array.from({length:Math.ceil(1440/g)-1},(function(t,n){return l.addMinutes(e,g*(n+1))}))),[l.endOfDay(ce)])}),[ce,g,l]);return(0,u.jsx)($C,(0,r.Z)({ref:d,className:(0,y.default)(ee.root,U),ownerState:$},Q,{children:(0,u.jsx)(ej,{autoFocusItem:x||!!W,role:"listbox","aria-label":p.timePickerToolbarTitle,children:de.map((function(e){if(X&&ue(e))return null;var t=l.isEqual(e,ie);return(0,u.jsx)(te,(0,r.Z)({onClick:function(){return!G&&le(e)},selected:t,disabled:q||ue(e),disableRipple:G,role:"option","aria-disabled":G,"aria-selected":t},ne,{children:l.format(e,m?"fullTime12h":"fullTime24h")}),l.toISO(e))}))})}))}));function rj(e){return(0,F.Z)("MuiMultiSectionDigitalClock",e)}(0,R.Z)("MuiMultiSectionDigitalClock",["root"]);function oj(e){return(0,F.Z)("MuiMultiSectionDigitalClock",e)}(0,R.Z)("MuiMultiSectionDigitalClock",["root","item"]);var ij=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],aj=(0,P.ZP)(Ll.Z,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme;return{maxHeight:232,width:56,padding:0,overflow:"hidden",scrollBehavior:e.ownerState.alreadyRendered?"smooth":"auto","&:hover":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:"1px solid ".concat((t.vars||t).palette.divider)},"&:after":{display:"block",content:'""',height:188}}})),sj=(0,P.ZP)(Nl.Z,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:function(e,t){return t.item}})((function(e){var t=e.theme;return{padding:8,margin:"2px 4px",width:48,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,A.Fq)(t.palette.primary.main,t.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(t.vars||t).palette.primary.main,color:(t.vars||t).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(t.vars||t).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.focusOpacity,")"):(0,A.Fq)(t.palette.primary.main,t.palette.action.focusOpacity)}}})),lj=o.forwardRef((function(e,t){var n,i=o.useRef(null),a=(0,yy.Z)(t,i),s=(0,T.Z)({props:e,name:"MuiMultiSectionDigitalClockSection"}),l=s.autoFocus,c=s.onChange,d=s.className,p=s.disabled,f=s.readOnly,h=s.items,m=s.active,v=s.slots,g=s.slotProps,x=s.skipDisabled,w=(0,b.Z)(s,ij),C=o.useMemo((function(){return(0,r.Z)({},s,{alreadyRendered:!!i.current})}),[s]),j=function(e){var t=e.classes;return(0,M.Z)({root:["root"],item:["item"]},oj,t)}(C),S=null!=(n=null==v?void 0:v.digitalClockSectionItem)?n:sj;return o.useEffect((function(){if(null!==i.current){var e=i.current.querySelector('[role="option"][aria-selected="true"]');if(e){m&&l&&e.focus();var t=e.offsetTop;i.current.scrollTop=t-4}}})),(0,u.jsx)(aj,(0,r.Z)({ref:a,className:(0,y.default)(j.root,d),ownerState:C,autoFocusItem:l&&m,role:"listbox"},w,{children:h.map((function(e){var t,n;if(x&&null!=(t=e.isDisabled)&&t.call(e,e.value))return null;var o=e.isSelected(e.value);return(0,u.jsx)(S,(0,r.Z)({onClick:function(){return!f&&c(e.value)},selected:o,disabled:null!=p?p:null==(n=e.isDisabled)?void 0:n.call(e,e.value),disableRipple:f,role:"option","aria-disabled":f,"aria-label":e.ariaLabel,"aria-selected":o},null==g?void 0:g.digitalClockSectionItem,{children:e.label}),e.label)}))}))})),cj=function(e){for(var t=e.now,n=e.value,r=e.utils,o=e.ampm,i=e.isDisabled,a=e.resolveAriaLabel,s=e.timeStep,l=n?r.getHours(n):null,c=[],u=function(e){return null!==l&&(o?12===e?12===l||0===l:l===e||l-12===e:l===e)},d=o?11:23,p=0;p<=d;p+=s){var f=r.format(r.setHours(t,p),o?"hours12h":"hours24h"),h=a(parseInt(f,10).toString());f=r.formatNumber(f),c.push({value:p,label:f,isSelected:u,isDisabled:i,ariaLabel:h})}return c},uj=function(e){var t=e.value,n=e.isDisabled,r=e.timeStep,o=e.resolveLabel,i=e.resolveAriaLabel,a=e.hasValue,s=void 0===a||a,l=function(e){return null!==t&&(s&&t===e)};return(0,dn.Z)(Array.from({length:Math.ceil(60/r)},(function(e,t){var a=r*t;return{value:a,label:o(a),isDisabled:n,isSelected:l,ariaLabel:i(a.toString())}})))},dj=["ampm","timeSteps","autoFocus","components","componentsProps","slots","slotProps","value","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","defaultValue","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled"],pj=(0,P.ZP)(kw,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme;return{display:"flex",flexDirection:"row",width:"100%",borderBottom:"1px solid ".concat((t.vars||t).palette.divider)}})),fj=o.forwardRef((function(e,n){var i=qg(),a=Wg(),s=Ug(),l=(0,T.Z)({props:e,name:"MuiMultiSectionDigitalClock"}),c=l.ampm,d=void 0===c?a.is12HourCycleInCurrentLocale():c,p=l.timeSteps,f=l.autoFocus,h=l.components,m=l.componentsProps,v=l.slots,g=l.slotProps,x=l.value,w=l.disableIgnoringDatePartForTimeValidation,C=void 0!==w&&w,j=l.maxTime,S=l.minTime,k=l.disableFuture,Z=l.disablePast,O=l.minutesStep,E=void 0===O?1:O,D=l.shouldDisableClock,P=l.shouldDisableTime,A=l.onChange,I=l.defaultValue,R=l.view,F=l.views,B=void 0===F?["hours","minutes"]:F,L=l.openTo,N=l.onViewChange,_=l.focusedView,z=l.onFocusedViewChange,H=l.className,W=l.disabled,V=l.readOnly,U=l.skipDisabled,q=void 0!==U&&U,G=(0,b.Z)(l,dj),Y=o.useMemo((function(){return(0,r.Z)({hours:1,minutes:5,seconds:5},p)}),[p]),K=(0,Mb.Z)({name:"MultiSectionDigitalClock",state:"value",controlled:x,default:null!=I?I:null}),J=(0,Le.Z)(K,2),X=J[0],Q=J[1],$=(0,Ey.Z)((function(e,t,n){Q(e),null==A||A(e,t,n)})),ee=o.useMemo((function(){return d&&B.includes("hours")?B.includes("meridiem")?B:[].concat((0,dn.Z)(B),["meridiem"]):B}),[d,B]),te=My({view:R,views:ee,openTo:L,onViewChange:N,onChange:$,focusedView:_,onFocusedViewChange:z}),ne=te.view,re=te.setValueAndGoToView,oe=te.focusedView,ie=o.useMemo((function(){return X||a.setSeconds(a.setMinutes(a.setHours(i,0),0),0)}),[X,i,a]),ae=(0,Ey.Z)((function(e){re(e,null,"meridiem")})),se=mw(ie,d,ae,"finish"),le=se.meridiemMode,ce=se.handleMeridiemChange,ue=o.useCallback((function(e,t){var n=By(C,a),r="hours"===t||"minutes"===t&&ee.includes("seconds"),o=function(e){var t=e.start,o=e.end;return(!S||!n(S,o))&&((!j||!n(t,j))&&((!k||!n(t,i))&&(!Z||!n(i,r?o:t))))},s=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(e%n!==0)return!1;if(null!=D&&D(e,t))return!1;if(P)switch(t){case"hours":return!P(a.setHours(ie,e),"hours");case"minutes":return!P(a.setMinutes(ie,e),"minutes");case"seconds":return!P(a.setSeconds(ie,e),"seconds");default:return!1}return!0};switch(t){case"hours":var l=Ry(e,le,d),c=a.setHours(ie,l);return!o({start:a.setSeconds(a.setMinutes(c,0),0),end:a.setSeconds(a.setMinutes(c,59),59)})||!s(l);case"minutes":var u=a.setMinutes(ie,e);return!o({start:a.setSeconds(u,0),end:a.setSeconds(u,59)})||!s(e,E);case"seconds":var p=a.setSeconds(ie,e);return!o({start:p,end:p})||!s(e);default:throw new Error("not supported")}}),[d,ie,C,j,le,S,E,D,P,a,k,Z,i,ee]),de=(0,Ey.Z)((function(e,t){var n=ee.indexOf(e),r=ee[n+1];re(t,r,e)})),pe=o.useCallback((function(e){switch(e){case"hours":return{onChange:function(e){var t=Ry(e,le,d);de("hours",a.setHours(ie,t))},items:cj({now:i,value:X,ampm:d,utils:a,isDisabled:function(e){return W||ue(e,"hours")},timeStep:Y.hours,resolveAriaLabel:s.hoursClockNumberText})};case"minutes":return{onChange:function(e){de("minutes",a.setMinutes(ie,e))},items:uj({value:a.getMinutes(ie),isDisabled:function(e){return W||ue(e,"minutes")},resolveLabel:function(e){return a.format(a.setMinutes(i,e),"minutes")},timeStep:Y.minutes,hasValue:!!X,resolveAriaLabel:s.minutesClockNumberText})};case"seconds":return{onChange:function(e){de("seconds",a.setSeconds(ie,e))},items:uj({value:a.getSeconds(ie),isDisabled:function(e){return W||ue(e,"seconds")},resolveLabel:function(e){return a.format(a.setSeconds(i,e),"seconds")},timeStep:Y.seconds,hasValue:!!X,resolveAriaLabel:s.secondsClockNumberText})};case"meridiem":var t=a.getMeridiemText("am"),n=a.getMeridiemText("pm");return{onChange:ce,items:[{value:"am",label:t,isSelected:function(){return!!X&&"am"===le},ariaLabel:t},{value:"pm",label:n,isSelected:function(){return!!X&&"pm"===le},ariaLabel:n}]};default:throw new Error("Unknown view: ".concat(e," found."))}}),[i,X,d,a,Y.hours,Y.minutes,Y.seconds,s.hoursClockNumberText,s.minutesClockNumberText,s.secondsClockNumberText,le,de,ie,W,ue,ce]),fe=o.useMemo((function(){return ee.reduce((function(e,n){return(0,r.Z)({},e,(0,t.Z)({},n,pe(n)))}),{})}),[ee,pe]),he=l,me=function(e){var t=e.classes;return(0,M.Z)({root:["root"]},rj,t)}(he);return(0,u.jsx)(pj,(0,r.Z)({ref:n,className:(0,y.default)(me.root,H),ownerState:he,role:"group"},G,{children:Object.entries(fe).map((function(e){var t=(0,Le.Z)(e,2),n=t[0],r=t[1];return(0,u.jsx)(lj,{items:r.items,onChange:r.onChange,active:ne===n,autoFocus:null!=f?f:oe===n,disabled:W,readOnly:V,slots:null!=v?v:h,slotProps:null!=g?g:m,skipDisabled:q,"aria-label":s.selectViewText(n)},n)}))}))})),hj=function(e){var t=e.view,n=e.onViewChange,r=e.focusedView,o=e.onFocusedViewChange,i=e.views,a=e.value,s=e.defaultValue,l=e.onChange,c=e.className,d=e.classes,p=e.disableFuture,f=e.disablePast,h=e.minTime,m=e.maxTime,v=e.shouldDisableTime,g=e.shouldDisableClock,y=e.minutesStep,b=e.ampm,x=e.ampmInClock,w=e.components,C=e.componentsProps,j=e.slots,S=e.slotProps,k=e.readOnly,Z=e.disabled,O=e.sx,E=e.autoFocus,D=e.showViewSwitcher,P=e.disableIgnoringDatePartForTimeValidation;return(0,u.jsx)(JC,{view:t,onViewChange:n,focusedView:r,onFocusedViewChange:o,views:i.filter(Iy),value:a,defaultValue:s,onChange:l,className:c,classes:d,disableFuture:p,disablePast:f,minTime:h,maxTime:m,shouldDisableTime:v,shouldDisableClock:g,minutesStep:y,ampm:b,ampmInClock:x,components:w,componentsProps:C,slots:j,slotProps:S,readOnly:k,disabled:Z,sx:O,autoFocus:E,showViewSwitcher:D,disableIgnoringDatePartForTimeValidation:P})},mj=function(e){var t=e.view,n=e.onViewChange,r=e.focusedView,o=e.onFocusedViewChange,i=e.views,a=e.value,s=e.defaultValue,l=e.onChange,c=e.className,d=e.classes,p=e.disableFuture,f=e.disablePast,h=e.minTime,m=e.maxTime,v=e.shouldDisableTime,g=e.shouldDisableClock,y=e.minutesStep,b=e.ampm,x=e.components,w=e.componentsProps,C=e.slots,j=e.slotProps,S=e.readOnly,k=e.disabled,Z=e.sx,O=e.autoFocus,E=e.disableIgnoringDatePartForTimeValidation,D=e.timeSteps,P=e.skipDisabled;return(0,u.jsx)(nj,{view:t,onViewChange:n,focusedView:r,onFocusedViewChange:o,views:i.filter(Iy),value:a,defaultValue:s,onChange:l,className:c,classes:d,disableFuture:p,disablePast:f,minTime:h,maxTime:m,shouldDisableTime:v,shouldDisableClock:g,minutesStep:y,ampm:b,components:x,componentsProps:w,slots:C,slotProps:j,readOnly:S,disabled:k,sx:Z,autoFocus:O,disableIgnoringDatePartForTimeValidation:E,timeStep:null==D?void 0:D.minutes,skipDisabled:P})},vj=function(e){var t=e.view,n=e.onViewChange,r=e.focusedView,o=e.onFocusedViewChange,i=e.views,a=e.value,s=e.defaultValue,l=e.onChange,c=e.className,d=e.classes,p=e.disableFuture,f=e.disablePast,h=e.minTime,m=e.maxTime,v=e.shouldDisableTime,g=e.shouldDisableClock,y=e.minutesStep,b=e.ampm,x=e.components,w=e.componentsProps,C=e.slots,j=e.slotProps,S=e.readOnly,k=e.disabled,Z=e.sx,O=e.autoFocus,E=e.disableIgnoringDatePartForTimeValidation,D=e.timeSteps,P=e.skipDisabled;return(0,u.jsx)(fj,{view:t,onViewChange:n,focusedView:r,onFocusedViewChange:o,views:i.filter(Iy),value:a,defaultValue:s,onChange:l,className:c,classes:d,disableFuture:p,disablePast:f,minTime:h,maxTime:m,shouldDisableTime:v,shouldDisableClock:g,minutesStep:y,ampm:b,components:x,componentsProps:w,slots:C,slotProps:j,readOnly:S,disabled:k,sx:Z,autoFocus:O,disableIgnoringDatePartForTimeValidation:E,timeSteps:D,skipDisabled:P})},gj=o.forwardRef((function(e,t){var n,o,i,a,s,l=Ug(),c=yC(e,"MuiDesktopTimePicker"),u=null!=(n=c.thresholdToRenderTimeInASingleColumn)?n:24,d=(0,r.Z)({hours:1,minutes:5,seconds:5},c.timeSteps),p=1440/(d.hours*d.minutes)<=u,f=p?mj:vj,h=(0,r.Z)({hours:f,minutes:f,seconds:f,meridiem:f},c.viewRenderers),m=null==(o=c.ampmInClock)||o,v=p?[]:["accept"],g=(null==(i=h.hours)?void 0:i.name)===vj.name,y=c.ampm&&g?[].concat((0,dn.Z)(c.views),["meridiem"]):c.views,b=(0,r.Z)({},c,{ampmInClock:m,timeSteps:d,viewRenderers:h,views:p?["hours"]:y,slots:(0,r.Z)({field:tC,openPickerIcon:Ab},c.slots),slotProps:(0,r.Z)({},c.slotProps,{field:function(e){var n;return(0,r.Z)({},(0,gg.Z)(null==(n=c.slotProps)?void 0:n.field,e),Hb(c),{ref:t})},toolbar:(0,r.Z)({hidden:!0,ampmInClock:m},null==(a=c.slotProps)?void 0:a.toolbar),actionBar:(0,r.Z)({actions:v},null==(s=c.slotProps)?void 0:s.actionBar)})});return(0,Zb({props:b,valueManager:Lg,valueType:"time",getOpenDialogAriaText:l.openTimePickerDialogue,validator:Jw}).renderPicker)()}));function yj(e){return(0,F.Z)("MuiDialogContent",e)}gj.propTypes={ampm:$e().bool,ampmInClock:$e().bool,autoFocus:$e().bool,className:$e().string,closeOnSelect:$e().bool,components:$e().object,componentsProps:$e().object,defaultValue:$e().any,disabled:$e().bool,disableFuture:$e().bool,disableIgnoringDatePartForTimeValidation:$e().bool,disableOpenPicker:$e().bool,disablePast:$e().bool,format:$e().string,formatDensity:$e().oneOf(["dense","spacious"]),inputRef:$e().oneOfType([$e().func,$e().shape({current:$e().object})]),label:$e().node,localeText:$e().object,maxTime:$e().any,minTime:$e().any,minutesStep:$e().number,onAccept:$e().func,onChange:$e().func,onClose:$e().func,onError:$e().func,onOpen:$e().func,onSelectedSectionsChange:$e().func,onViewChange:$e().func,open:$e().bool,openTo:$e().oneOf(["hours","meridiem","minutes","seconds"]),orientation:$e().oneOf(["landscape","portrait"]),readOnly:$e().bool,selectedSections:$e().oneOfType([$e().oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),$e().number,$e().shape({endIndex:$e().number.isRequired,startIndex:$e().number.isRequired})]),shouldDisableClock:$e().func,shouldDisableTime:$e().func,skipDisabled:$e().bool,slotProps:$e().object,slots:$e().object,sx:$e().oneOfType([$e().arrayOf($e().oneOfType([$e().func,$e().object,$e().bool])),$e().func,$e().object]),thresholdToRenderTimeInASingleColumn:$e().number,timeSteps:$e().shape({hours:$e().number,minutes:$e().number,seconds:$e().number}),value:$e().any,view:$e().oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:$e().shape({hours:$e().func,meridiem:$e().func,minutes:$e().func,seconds:$e().func}),views:$e().arrayOf($e().oneOf(["hours","minutes","seconds"]).isRequired)};(0,R.Z)("MuiDialogContent",["root","dividers"]);function bj(e){return(0,F.Z)("MuiDialogTitle",e)}var xj=(0,R.Z)("MuiDialogTitle",["root"]),wj=["className","dividers"],Cj=(0,P.ZP)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.dividers&&t.dividers]}})((function(e){var n=e.theme,o=e.ownerState;return(0,r.Z)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},o.dividers?{padding:"16px 24px",borderTop:"1px solid ".concat((n.vars||n).palette.divider),borderBottom:"1px solid ".concat((n.vars||n).palette.divider)}:(0,t.Z)({},".".concat(xj.root," + &"),{paddingTop:0}))})),jj=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiDialogContent"}),o=n.className,i=n.dividers,a=void 0!==i&&i,s=(0,b.Z)(n,wj),l=(0,r.Z)({},n,{dividers:a}),c=function(e){var t=e.classes,n={root:["root",e.dividers&&"dividers"]};return(0,M.Z)(n,yj,t)}(l);return(0,u.jsx)(Cj,(0,r.Z)({className:(0,y.default)(c.root,o),ownerState:l,ref:t},s))})),Sj=jj;function kj(e){return(0,F.Z)("MuiDialog",e)}var Zj=(0,R.Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);var Oj,Ej=o.createContext({}),Dj=n(16317),Pj=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Aj=(0,P.ZP)(Dj.Z,{name:"MuiDialog",slot:"Backdrop",overrides:function(e,t){return t.backdrop}})({zIndex:-1}),Mj=(0,P.ZP)(vs.Z,{name:"MuiDialog",slot:"Root",overridesResolver:function(e,t){return t.root}})({"@media print":{position:"absolute !important"}}),Tj=(0,P.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:function(e,t){var n=e.ownerState;return[t.container,t["scroll".concat((0,Zn.Z)(n.scroll))]]}})((function(e){var t=e.ownerState;return(0,r.Z)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===t.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===t.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})})),Ij=(0,P.ZP)(ao.Z,{name:"MuiDialog",slot:"Paper",overridesResolver:function(e,t){var n=e.ownerState;return[t.paper,t["scrollPaper".concat((0,Zn.Z)(n.scroll))],t["paperWidth".concat((0,Zn.Z)(String(n.maxWidth)))],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((function(e){var n=e.theme,o=e.ownerState;return(0,r.Z)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===o.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===o.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!o.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===o.maxWidth&&(0,t.Z)({maxWidth:"px"===n.breakpoints.unit?Math.max(n.breakpoints.values.xs,444):"max(".concat(n.breakpoints.values.xs).concat(n.breakpoints.unit,", 444px)")},"&.".concat(Zj.paperScrollBody),(0,t.Z)({},n.breakpoints.down(Math.max(n.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})),o.maxWidth&&"xs"!==o.maxWidth&&(0,t.Z)({maxWidth:"".concat(n.breakpoints.values[o.maxWidth]).concat(n.breakpoints.unit)},"&.".concat(Zj.paperScrollBody),(0,t.Z)({},n.breakpoints.down(n.breakpoints.values[o.maxWidth]+64),{maxWidth:"calc(100% - 64px)"})),o.fullWidth&&{width:"calc(100% - 64px)"},o.fullScreen&&(0,t.Z)({margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0},"&.".concat(Zj.paperScrollBody),{margin:0,maxWidth:"100%"}))})),Rj=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiDialog"}),i=(0,j.Z)(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},s=n["aria-describedby"],l=n["aria-labelledby"],c=n.BackdropComponent,d=n.BackdropProps,p=n.children,f=n.className,h=n.disableEscapeKeyDown,m=void 0!==h&&h,v=n.fullScreen,g=void 0!==v&&v,x=n.fullWidth,w=void 0!==x&&x,C=n.maxWidth,S=void 0===C?"sm":C,k=n.onBackdropClick,Z=n.onClose,O=n.open,E=n.PaperComponent,D=void 0===E?ao.Z:E,P=n.PaperProps,A=void 0===P?{}:P,I=n.scroll,R=void 0===I?"paper":I,F=n.TransitionComponent,B=void 0===F?$b.Z:F,L=n.transitionDuration,N=void 0===L?a:L,_=n.TransitionProps,z=(0,b.Z)(n,Pj),H=(0,r.Z)({},n,{disableEscapeKeyDown:m,fullScreen:g,fullWidth:w,maxWidth:S,scroll:R}),W=function(e){var t=e.classes,n=e.scroll,r=e.maxWidth,o=e.fullWidth,i=e.fullScreen,a={root:["root"],container:["container","scroll".concat((0,Zn.Z)(n))],paper:["paper","paperScroll".concat((0,Zn.Z)(n)),"paperWidth".concat((0,Zn.Z)(String(r))),o&&"paperFullWidth",i&&"paperFullScreen"]};return(0,M.Z)(a,kj,t)}(H),V=o.useRef(),U=(0,Jb.Z)(l),q=o.useMemo((function(){return{titleId:U}}),[U]);return(0,u.jsx)(Mj,(0,r.Z)({className:(0,y.default)(W.root,f),closeAfterTransition:!0,components:{Backdrop:Aj},componentsProps:{backdrop:(0,r.Z)({transitionDuration:N,as:c},d)},disableEscapeKeyDown:m,onClose:Z,open:O,ref:t,onClick:function(e){V.current&&(V.current=null,k&&k(e),Z&&Z(e,"backdropClick"))},ownerState:H},z,{children:(0,u.jsx)(B,(0,r.Z)({appear:!0,in:O,timeout:N,role:"presentation"},_,{children:(0,u.jsx)(Tj,{className:(0,y.default)(W.container),onMouseDown:function(e){V.current=e.target===e.currentTarget},ownerState:H,children:(0,u.jsx)(Ij,(0,r.Z)({as:D,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":U},A,{className:(0,y.default)(W.paper,A.className),ownerState:H,children:(0,u.jsx)(Ej.Provider,{value:q,children:p})}))})}))}))})),Fj=Rj,Bj=(0,P.ZP)(Fj)((Oj={},(0,t.Z)(Oj,"& .".concat(Zj.container),{outline:0}),(0,t.Z)(Oj,"& .".concat(Zj.paper),{outline:0,minWidth:320}),Oj)),Lj=(0,P.ZP)(Sj)({"&:first-of-type":{padding:0}});function Nj(e){var t,n,o=e.children,i=e.onDismiss,a=e.open,s=e.slots,l=e.slotProps,c=null!=(t=null==s?void 0:s.dialog)?t:Bj,d=null!=(n=null==s?void 0:s.mobileTransition)?n:$b.Z;return(0,u.jsx)(c,(0,r.Z)({open:a,onClose:i},null==l?void 0:l.dialog,{TransitionComponent:d,TransitionProps:null==l?void 0:l.mobileTransition,PaperComponent:null==s?void 0:s.mobilePaper,PaperProps:null==l?void 0:l.mobilePaper,children:(0,u.jsx)(Lj,{children:o})}))}var _j=["props","getOpenDialogAriaText"],zj=o.forwardRef((function(e,t){var n,i,a=Ug(),s=yC(e,"MuiMobileTimePicker"),l=(0,r.Z)({hours:hj,minutes:hj,seconds:hj},s.viewRenderers),c=null!=(n=s.ampmInClock)&&n,d=function(e){var t,n,i,a,s,l=e.props,c=e.getOpenDialogAriaText,d=(0,b.Z)(e,_j),p=l.slots,f=l.slotProps,h=l.className,m=l.sx,v=l.format,g=l.formatDensity,y=l.label,x=l.inputRef,w=l.readOnly,C=l.disabled,j=l.localeText,S=Wg(),k=o.useRef(null),Z=(0,by.Z)(),O=null!=(t=null==f||null==(n=f.toolbar)?void 0:n.hidden)&&t,E=zy((0,r.Z)({},d,{props:l,inputRef:k,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),D=E.open,P=E.actions,A=E.layoutProps,M=E.renderCurrentView,T=E.fieldProps,I=p.field,R=(0,Ts.Z)({elementType:I,externalSlotProps:null==f?void 0:f.field,additionalProps:(0,r.Z)({},T,O&&{id:Z},!(C||w)&&{onClick:P.onOpen,onKeyDown:(a=P.onOpen,function(e){"Enter"!==e.key&&" "!==e.key||(a(e),e.preventDefault(),e.stopPropagation()),s&&s(e)})},{readOnly:null==w||w,disabled:C,className:h,sx:m,format:v,formatDensity:g,label:y}),ownerState:l});R.inputProps=(0,r.Z)({},R.inputProps,{"aria-label":c(T.value,S)});var F=(0,r.Z)({textField:p.textField},R.slots),B=null!=(i=p.layout)?i:Cb,L=(0,yy.Z)(k,R.inputRef,x),N=Z;O&&(N=y?"".concat(Z,"-label"):void 0);var _=(0,r.Z)({},f,{toolbar:(0,r.Z)({},null==f?void 0:f.toolbar,{titleId:Z}),mobilePaper:(0,r.Z)({"aria-labelledby":N},null==f?void 0:f.mobilePaper)});return{renderPicker:function(){return(0,u.jsxs)(Eh,{localeText:j,children:[(0,u.jsx)(I,(0,r.Z)({},R,{slots:F,slotProps:_,inputRef:L})),(0,u.jsx)(Nj,(0,r.Z)({},P,{open:D,slots:p,slotProps:_,children:(0,u.jsx)(B,(0,r.Z)({},A,null==_?void 0:_.layout,{slots:p,slotProps:_,children:M()}))}))]})}}}({props:(0,r.Z)({},s,{ampmInClock:c,viewRenderers:l,slots:(0,r.Z)({field:tC},s.slots),slotProps:(0,r.Z)({},s.slotProps,{field:function(e){var n;return(0,r.Z)({},(0,gg.Z)(null==(n=s.slotProps)?void 0:n.field,e),Hb(s),{ref:t})},toolbar:(0,r.Z)({hidden:!1,ampmInClock:c},null==(i=s.slotProps)?void 0:i.toolbar)})}),valueManager:Lg,valueType:"time",getOpenDialogAriaText:a.openTimePickerDialogue,validator:Jw});return(0,d.renderPicker)()}));zj.propTypes={ampm:$e().bool,ampmInClock:$e().bool,autoFocus:$e().bool,className:$e().string,closeOnSelect:$e().bool,components:$e().object,componentsProps:$e().object,defaultValue:$e().any,disabled:$e().bool,disableFuture:$e().bool,disableIgnoringDatePartForTimeValidation:$e().bool,disableOpenPicker:$e().bool,disablePast:$e().bool,format:$e().string,formatDensity:$e().oneOf(["dense","spacious"]),inputRef:$e().oneOfType([$e().func,$e().shape({current:$e().object})]),label:$e().node,localeText:$e().object,maxTime:$e().any,minTime:$e().any,minutesStep:$e().number,onAccept:$e().func,onChange:$e().func,onClose:$e().func,onError:$e().func,onOpen:$e().func,onSelectedSectionsChange:$e().func,onViewChange:$e().func,open:$e().bool,openTo:$e().oneOf(["hours","minutes","seconds"]),orientation:$e().oneOf(["landscape","portrait"]),readOnly:$e().bool,selectedSections:$e().oneOfType([$e().oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),$e().number,$e().shape({endIndex:$e().number.isRequired,startIndex:$e().number.isRequired})]),shouldDisableClock:$e().func,shouldDisableTime:$e().func,slotProps:$e().object,slots:$e().object,sx:$e().oneOfType([$e().arrayOf($e().oneOfType([$e().func,$e().object,$e().bool])),$e().func,$e().object]),value:$e().any,view:$e().oneOf(["hours","minutes","seconds"]),viewRenderers:$e().shape({hours:$e().func,minutes:$e().func,seconds:$e().func}),views:$e().arrayOf($e().oneOf(["hours","minutes","seconds"]).isRequired)};var Hj,Wj=["desktopModeMediaQuery"],Vj=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiTimePicker"}),o=n.desktopModeMediaQuery,i=void 0===o?"@media (pointer: fine)":o,a=(0,b.Z)(n,Wj);return Bn(i,{defaultMatches:!0})?(0,u.jsx)(gj,(0,r.Z)({ref:t},a)):(0,u.jsx)(zj,(0,r.Z)({ref:t},a))})),Uj=["title","titleId"];function qj(){return qj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qj.apply(this,arguments)}function Gj(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Yj(e,t){var n=e.title,r=e.titleId,i=Gj(e,Uj);return o.createElement("svg",qj({width:18,height:17,viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,Hj||(Hj=o.createElement("path",{d:"M9.0118 0.165771C4.40947 0.165771 0.678467 3.89661 0.678467 8.49911C0.678467 13.1016 4.40947 16.8324 9.0118 16.8324C13.6141 16.8324 17.3451 13.1016 17.3451 8.49911C17.3451 3.89661 13.6141 0.165771 9.0118 0.165771ZM9.0118 3.4991C9.47205 3.4991 9.84513 3.87244 9.84513 4.33244V8.13411L12.1108 10.3999C12.4362 10.7258 12.4362 11.2724 12.1108 11.5983C11.7853 11.9233 11.2383 11.9233 10.9128 11.5983L8.4128 9.09827C8.25655 8.9416 8.17847 8.71994 8.17847 8.49911V4.33244C8.17847 3.87244 8.55155 3.4991 9.0118 3.4991Z",fill:"#79829B"})))}var Kj=o.forwardRef(Yj),Jj=(n.p,["name","required","disabled","minTime","maxTime"]),Xj=Vj,Qj=function(e){var t=e.name,n=e.required,r=e.disabled,i=e.minTime,a=e.maxTime,s=Nn(e,Jj),c=Xc().control,d=(0,o.useState)(!1),p=(0,Le.Z)(d,2),f=p[0],h=p[1];return(0,u.jsx)(du,{control:c,name:t,rules:{required:n},render:function(e){var o=e.field;return(0,u.jsx)(Xj,(0,l.Z)((0,l.Z)({},o),{},{open:f,minTime:i,maxTime:a,onClose:function(){return h(!1)},value:o.value||null,slots:{textField:Sd},slotProps:{textField:(0,l.Z)({name:t,disabled:r,required:n,onKeyDown:function(e){return e.preventDefault()},onIconClick:function(){return h(!0)},icon:(0,u.jsx)(Kj,{})},s)}}))}})},$j={date:new Date,start:new Date,end:new Date,name:"",description:"",attendees:[]};function eS(e){var t=e.start,n=e.end,r=e.open,i=e.eventEditDetails,a=e.onCancel,s=e.meetingChannel,c=Pa(),d=fd({mode:"onChange",defaultValues:$j}),p=oa({resource:"/events"}).mutate,f=(0,As.Z)({resource:"/events"}).mutate,h=(0,Ms.J)(),m=d.setValue,v=d.reset,g=d.formState.isValid,y=d.handleSubmit,b=d.watch,x=hi({resource:"/users/?collaborating=true"}).data,w=(null===x||void 0===x?void 0:x.data.results)||[],C=c&&w.concat([c])||[],j=(0,o.useMemo)((function(){return new Map(C.map((function(e){return[e.id,e]})))}),[C.length]),S=function(e,t){var n=new Date(t),r=new Date(e);return new Date(n.getFullYear(),n.getMonth(),n.getDate(),r.getHours(),r.getMinutes(),r.getSeconds())};(0,o.useEffect)((function(){i||(m("date",t||new Date),m("start",t||new Date),m("end",n||new Date),m("name",""),m("description",""),m("attendees",[]))}),[t,n]),(0,o.useEffect)((function(){var e;i&&v({date:new Date(i.start),start:new Date(i.start),end:new Date(i.end),attendees:(null===(e=i.attendees)||void 0===e?void 0:e.map((function(e){return e.user.id})))||[],name:i.name,description:i.description})}),[i]);return(0,u.jsx)(ys,{open:r,onClose:function(){v((0,l.Z)({},$j)),a()},width:"44%",children:(0,u.jsx)(Eh,{dateAdapter:vg,children:(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},d),{},{children:(0,u.jsx)("form",{onSubmit:y((function(e){var t=S(e.start,e.date),n=S(e.end,e.date),r=e.attendees.map((function(e){return{id:e}})),o={name:e.name,description:e.description,start:t,end:n,attendees:r,meetingChannel:s};i?f({id:i.id,data:o},{onSuccess:function(){h(),a()}}):p(o,{onSuccess:function(){h(),a()}})})),children:(0,u.jsxs)(nn.Z,{direction:"column",spacing:2.5,children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",children:[(0,u.jsx)(nn.Z,{width:40,height:40,mr:2,bgcolor:"secondaryBlue.100",borderRadius:1,justifyContent:"center",alignItems:"center",children:(0,u.jsx)(Kw,{width:"20px",fill:tr.dx[700]})}),(0,u.jsx)(rn.Z,{variant:"heading5",children:i?"Edit Event":"New Event"})]}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{direction:"column",spacing:3,children:[(0,u.jsx)(nn.Z,{direction:"row",children:(0,u.jsx)(nn.Z,{direction:"column",sx:{width:"100%"},children:(0,u.jsx)(Zd,{placeholder:"Add  event name",name:"name",required:!0,label:"Event title"})})}),(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(Cd,{text:"When"}),(0,u.jsxs)(nn.Z,{direction:"row",spacing:2,justifyContent:"space-between",children:[(0,u.jsx)(Vw,{name:"date",placeholder:"Start date"}),(0,u.jsx)(Qj,{name:"start",placeholder:"Start time"}),(0,u.jsx)(Qj,{name:"end",placeholder:"End time",minTime:new Date(b("start"))})]})]}),(0,u.jsx)(Hd,{name:"attendees",label:"Participants",placeholder:"Add Participants",choices:j,transformLabelFn:function(e){return"".concat(e.firstName," ").concat(e.lastName)},multiple:!0,withChips:!0,required:!0}),(0,u.jsx)(Zd,{variant:"outlined",name:"description",placeholder:"DESCRIPTION",multiline:!0,minRows:2,maxRows:4,required:!0})]}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{direction:"row",spacing:2,justifyContent:"end",children:[(0,u.jsx)(Wo,{variant:"secondary",onClick:function(){a(),v((0,l.Z)({},$j))},children:"Cancel"}),(0,u.jsx)(Wo,{disabled:!g,type:"submit",children:"Submit"})]})]})})}))})})}var tS,nS=function(e){var t=e.channelId,n=fd({defaultValues:{message:"",attachments:[]}}),r=(0,o.useReducer)((function(e){return e+1}),0),i=(0,Le.Z)(r,2)[1],a=(0,o.useState)(!1),s=(0,Le.Z)(a,2),c=s[0],d=s[1],p=oa({resource:"/messages"}).mutate,f=function(){var e=ds(hs().mark((function e(){var r,o;return hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=n.getValues("message"),o=n.getValues("attachments").map((function(e){return e.attachmentId})),r||o.length){e.next=4;break}return e.abrupt("return");case 4:return e.next=6,p({body:r,channel:t,attachments:o});case 6:n.reset();case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),h=Qf({noClick:!0,noKeyboard:!0,getFilesFromEvent:function(){var e=ds(hs().mark((function e(t){var n,r,o,i;return hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=[],r=t.dataTransfer?t.dataTransfer.files:t.target.files,o=0;o<r.length;o++)i=r.item(o),n.push(i);return e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),onDrop:function(){var e=ds(hs().mark((function e(t){var r,o,a;return hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=_e(t);try{for(a=function(){var e=o.value;Object.defineProperty(e,"progress",{value:0,writable:!0}),Object.defineProperty(e,"attachmentId",{value:"",writable:!0});var t=e;n.setValue("attachments",n.getValues("attachments").concat([t]));var r=new FormData;r.append("file",e),pi.Z.post("/attachments",r,{onUploadProgress:function(e){t.progress=e.loaded/e.total,i()}}).then((function(e){t.attachmentId=e.data.id,i()}))},r.s();!(o=r.n()).done;)a()}catch(s){r.e(s)}finally{r.f()}case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}),m=h.getRootProps,v=h.getInputProps,g=h.open;return(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},n),{},{children:(0,u.jsxs)(nn.Z,(0,l.Z)((0,l.Z)({},m()),{},{px:2,direction:"row",alignItems:"end",children:[(0,u.jsx)("input",(0,l.Z)({},v())),(0,u.jsxs)(nn.Z,{direction:"row",gap:1,mt:"auto",mb:"13px",mr:1.5,children:[(0,u.jsx)(io.Z,{sx:{borderRadius:"3px",p:.6,backgroundColor:"secondaryBlue.100",height:"24px",width:"24x"},onClick:g,children:(0,u.jsx)(xh,{})}),(0,u.jsx)(io.Z,{sx:{borderRadius:"3px",p:.6,backgroundColor:"secondaryBlue.100",height:"24px",width:"24x"},onClick:function(){return d(!0)},children:(0,u.jsx)(kh,{})})]}),(0,u.jsx)(Zd,{name:"message",sx:{flex:1,"& .MuiInputBase-root":{flexDirection:"column",padding:"14px"},borderBottomRightRadius:0,borderTopRightRadius:0,padding:0},multiline:!0,fullWidth:!0,placeholder:"Your message...",InputProps:{endAdornment:(0,u.jsx)(lh,{attachments:n.watch("attachments")})},onKeyDown:function(e){"Enter"!==e.key||e.shiftKey||(f(),e.preventDefault())}}),(0,u.jsx)(io.Z,{sx:{backgroundColor:"primaryLight.500",borderRadius:0,borderTopRightRadius:4,height:50,width:50},disableRipple:!0,onClick:f,children:(0,u.jsx)(hh,{})}),(0,u.jsx)(eS,{onCancel:function(){return d(!1)},open:c,meetingChannel:t})]}))}))},rS=["children","onClose"],oS=function(e){var t=e.children,n=e.onClose,r=Nn(e,rS),i=(0,o.useRef)(null);return(0,u.jsx)("div",{ref:i,style:{top:0,left:0,right:0,bottom:0,pointerEvents:"none",position:"absolute",overflow:"hidden"},children:(0,u.jsx)(ec,(0,l.Z)((0,l.Z)({PaperProps:{sx:{pointerEvents:"initial",position:"absolute",zIndex:"auto",boxShadow:"1px 10px 30px rgba(56, 69, 114, 0.1)"}},ModalProps:{container:i.current,sx:{position:"absolute"}},variant:"persistent",hideBackdrop:!0},r),{},{children:r.open?(0,u.jsx)(U.Z,{onClickAway:function(){n()},children:(0,u.jsx)(tn,{children:t})}):(0,u.jsx)(tn,{children:t})}))})},iS=["title","titleId"];function aS(){return aS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aS.apply(this,arguments)}function sS(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function lS(e,t){var n=e.title,r=e.titleId,i=sS(e,iS);return o.createElement("svg",aS({width:16,height:17,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,tS||(tS=o.createElement("path",{d:"M7.99225 0.66571C7.53225 0.66571 7.15891 1.03879 7.15891 1.49904V9.83239H4.65891L7.99225 13.1657L11.3256 9.83239H8.82558V1.49904C8.82558 1.03879 8.45225 0.665627 7.99225 0.66571ZM1.32558 10.6657C0.865332 10.6657 0.492249 11.0391 0.492249 11.4991V13.1657C0.492249 15.0066 1.98466 16.4991 3.82558 16.4991H12.1589C13.9997 16.4991 15.4922 15.0066 15.4922 13.1657V11.4991C15.4922 11.0391 15.1189 10.6657 14.6589 10.6657C14.1989 10.6657 13.8256 11.0391 13.8256 11.4991V13.1657C13.8256 14.0866 13.0797 14.8324 12.1589 14.8324H3.82558C2.90508 14.8324 2.15891 14.0866 2.15891 13.1657V11.4991C2.15891 11.0391 1.78583 10.6657 1.32558 10.6657Z",fill:"#79829B"})))}var cS,uS=o.forwardRef(lS),dS=(n.p,["title","titleId"]);function pS(){return pS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pS.apply(this,arguments)}function fS(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function hS(e,t){var n=e.title,r=e.titleId,i=fS(e,dS);return o.createElement("svg",pS({width:13,height:13,viewBox:"0 0 13 13",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,cS||(cS=o.createElement("path",{d:"M8.99413 12.4939C10.4668 12.4939 11.6608 11.2999 11.6608 9.82722V7.82722C11.6608 7.45923 11.3621 7.16056 10.9941 7.16056C10.6261 7.16056 10.3275 7.45923 10.3275 7.82722V9.82722C10.3275 10.5639 9.7308 11.1606 8.99413 11.1606H3.66081C2.92414 11.1606 2.32747 10.5639 2.32747 9.82722V4.49389C2.32747 3.75723 2.92414 3.16056 3.66081 3.16056H5.6608C6.0288 3.16056 6.32747 2.86189 6.32747 2.4939C6.32747 2.1259 6.0288 1.82723 5.6608 1.82723H3.66081C2.18814 1.82723 0.994141 3.02123 0.994141 4.49389V9.82722C0.994141 11.2999 2.18814 12.4939 3.66081 12.4939H8.99413ZM6.32747 7.82722C6.49814 7.82722 6.67613 7.76989 6.8068 7.63989L11.6608 2.78524V5.16056H12.9941V1.16056C12.9941 0.792563 12.6955 0.493896 12.3275 0.493896H8.32747V1.82723H10.7021L5.84814 6.68123C5.58814 6.9419 5.58814 7.37922 5.84814 7.63989C5.97881 7.76989 6.1568 7.82722 6.32747 7.82722Z",fill:"current"})))}var mS,vS=o.forwardRef(hS),gS=(n.p,["title","titleId"]);function yS(){return yS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yS.apply(this,arguments)}function bS(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function xS(e,t){var n=e.title,r=e.titleId,i=bS(e,gS);return o.createElement("svg",yS({width:19,height:13,viewBox:"0 0 19 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,mS||(mS=o.createElement("path",{d:"M2.24266 11.6113C4.0445 8.71482 6.9869 8.0811 9.95994 8.32596C10.4586 8.36703 10.8282 8.79434 10.8282 9.29466V9.96673C10.8282 10.7805 11.7484 11.2535 12.4102 10.7799L18.3659 6.51768C18.9226 6.11925 18.9234 5.29179 18.3674 4.89234L12.445 0.637594C11.7834 0.162293 10.8616 0.635113 10.8616 1.44974V1.62027C10.8616 2.08285 10.54 2.48361 10.094 2.60635C3.62318 4.38719 1.23493 8.13046 0.652369 11.3795C0.466914 12.4138 1.68762 12.5036 2.24266 11.6113Z",fill:"#79829B"})))}var wS=o.forwardRef(xS),CS=(n.p,function(e){var t,n=e.open,r=e.onClose,o=e.attachmentId,i=mc(),a=null===(t=zp({resource:"channels/".concat(i.currentChannelId)}).data)||void 0===t?void 0:t.data,s=(0,Ms.J)(),c=fd(),d=oa({resource:"messages"}).mutate;return(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(ys,{open:n,onClose:r,children:(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},c),{},{children:(0,u.jsx)("form",{onSubmit:c.handleSubmit((function(e){d({body:"",attachments:[o],channel:e.channel},{onSuccess:function(){s(),c.reset(),null===r||void 0===r||r()}})})),children:(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",spacing:2,width:"100%",children:[(0,u.jsx)(Ud,{Icon:wS,variant:"blue"}),(0,u.jsx)(rn.Z,{variant:"heading3",children:"Forward this file"})]}),(0,u.jsx)(un,{}),(0,u.jsx)(nn.Z,{direction:"column",spacing:3,children:(0,u.jsx)(nn.Z,{direction:"row",children:(0,u.jsx)(nn.Z,{direction:"column",sx:{width:"100%"},spacing:3,children:(0,u.jsx)(Wd,{name:"channel",resource:"channels",filter:{space:null===a||void 0===a?void 0:a.space},choiceLabel:function(e){return"# ".concat(e.name)},label:"Channel",placeholder:"Search for channel"})})})}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",sx:{justifyContent:"right"},children:[(0,u.jsx)(Wo,{variant:"secondary",onClick:r,children:"Cancel"}),(0,u.jsx)(Wo,{type:"submit",children:"Forward"})]})]})})}))})})}),jS=function(e){var t,n,r=e.attachment,i=(0,o.useState)(!1),a=(0,Le.Z)(i,2),s=a[0],l=a[1],c=null!==(t=null===(n=hi({resource:"channels?attachment=".concat(null===r||void 0===r?void 0:r.id),enabled:!!r}).data)||void 0===n?void 0:n.data.results)&&void 0!==t?t:[];return(0,u.jsxs)(tn,{width:"440px",height:"100%",children:[r&&(0,u.jsxs)(nn.Z,{direction:"column",gap:2,m:2.5,children:[(0,u.jsxs)(nn.Z,{direction:"row",gap:1.5,alignItems:"center",children:[(0,u.jsx)(tn,{component:"img",sx:{width:30,height:40,objectFit:"cover"},src:(0,rs.wQ)(r.fileName)}),(0,u.jsxs)(nn.Z,{direction:"column",children:[(0,u.jsx)(rn.Z,{variant:"bodySemiBold3",color:"primaryDark.900",children:r.fileName}),(0,u.jsx)(rn.Z,{variant:"body4",color:"primaryDark.500",children:(0,rs.pu)(new Date(r.created))})]}),(0,u.jsxs)(nn.Z,{direction:"row",ml:"auto",children:[(0,u.jsx)(Xn,{sx:{p:1},href:r.file,target:"_blank",children:(0,u.jsx)(vS,{width:"12px",height:"12px"})}),(0,u.jsx)(Xn,{sx:{p:1},href:r.file,download:!0,target:"_blank",children:(0,u.jsx)(uS,{width:"12px",height:"12px"})}),(0,u.jsx)(io.Z,{disableRipple:!0,sx:{p:1},onClick:function(){return l(!0)},children:(0,u.jsx)(wS,{width:"19px",height:"12px"})})]})]}),(0,u.jsxs)(nn.Z,{spacing:1,children:[(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.500",children:"shared in"}),c.map((function(e){return(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",spacing:1,children:[(0,u.jsx)(hc,{}),(0,u.jsx)(rn.Z,{color:"primaryDark.600",variant:"bodySemiBold3",children:e.name})]})}))]})]}),r&&(0,u.jsx)(CS,{open:s,onClose:function(){return l(!1)},attachmentId:r.id})]})};function SS(e){var t,n=new Set,r=function(e,r){var o="function"===typeof e?e(t):e;if(o!==t){var i=t;t=r?o:Object.assign({},t,o),n.forEach((function(e){return e(t,i)}))}},o=function(){return t},i={setState:r,getState:o,subscribe:function(e,r,i){return r||i?function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object.is;console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");var a=r(t);function s(){var n=r(t);if(!i(a,n)){var o=a;e(a=n,o)}}return n.add(s),function(){return n.delete(s)}}(e,r,i):(n.add(e),function(){return n.delete(e)})},destroy:function(){return n.clear()}};return t=e(r,o,i),i}var kS="undefined"===typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?o.useEffect:o.useLayoutEffect;function ZS(e){var t="function"===typeof e?SS(e):e,n=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.getState,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.is,i=(0,o.useReducer)((function(e){return e+1}),0),a=(0,Le.Z)(i,2),s=a[1],l=t.getState(),c=(0,o.useRef)(l),u=(0,o.useRef)(n),d=(0,o.useRef)(r),p=(0,o.useRef)(!1),f=(0,o.useRef)();void 0===f.current&&(f.current=n(l));var h=!1;(c.current!==l||u.current!==n||d.current!==r||p.current)&&(e=n(l),h=!r(f.current,e)),kS((function(){h&&(f.current=e),c.current=l,u.current=n,d.current=r,p.current=!1}));var m=(0,o.useRef)(l);kS((function(){var e=function(){try{var e=t.getState(),n=u.current(e);d.current(f.current,n)||(c.current=e,f.current=n,s())}catch(r){p.current=!0,s()}},n=t.subscribe(e);return t.getState()!==m.current&&e(),n}),[]);var v=h?e:f.current;return(0,o.useDebugValue)(v),v};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");var e=[n,t];return{next:function(){var t=e.length<=0;return{value:e.shift(),done:t}}}},n}var OS,ES=ZS((function(e){return{selectedAttachment:null,selectAttachment:function(t){return e({selectedAttachment:t})}}})),DS=function(){var e=ES((function(e){return[e.selectedAttachment,e.selectAttachment]})),t=(0,Le.Z)(e,2),n=t[0],r=t[1];return(0,u.jsx)(oS,{onClose:function(){r(null)},open:!!n,anchor:"right",children:(0,u.jsx)(jS,{attachment:n})})},PS=n(35285),AS=["title","titleId"];function MS(){return MS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MS.apply(this,arguments)}function TS(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function IS(e,t){var n=e.title,r=e.titleId,i=TS(e,AS);return o.createElement("svg",MS({width:17,height:16,viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,OS||(OS=o.createElement("path",{d:"M2.99866 0.99231C1.65616 0.99231 0.510324 2.06481 0.498657 3.49231V12.659C0.498657 13.5873 0.87616 14.424 1.48866 15.029C1.78699 15.3231 2.13783 15.5665 2.53033 15.7323C2.93283 15.9015 3.37866 15.9923 3.83199 15.9923H5.49866H11.332C12.2103 15.9923 13.032 15.6548 13.6495 15.0548C13.9812 14.7331 14.3612 13.7865 15.0303 11.8256C15.0837 11.6673 16.2895 7.94815 16.3062 7.89315C16.4712 7.35731 16.0595 6.82564 15.4987 6.82564C15.3945 6.82564 14.8437 6.82564 14.6653 6.82564V5.99231C14.6653 4.61148 13.5462 3.49231 12.1653 3.49231H10.4987C9.79449 3.49231 9.60449 3.33648 9.11865 2.60731C8.35449 1.46148 7.71116 0.99231 6.33199 0.99231C5.60282 0.99231 3.72782 0.99231 2.99866 0.99231ZM2.99866 2.65898C3.72782 2.65898 5.60282 2.65898 6.33199 2.65898C7.03616 2.65898 7.22616 2.81481 7.712 3.54397C8.47616 4.68981 9.11949 5.15898 10.4987 5.15898H12.1653C12.6253 5.15898 12.9987 5.53231 12.9987 5.99231V6.82564C10.1078 6.82564 5.70699 6.82564 4.66532 6.82564C4.32032 6.82564 4.00782 7.04981 3.88365 7.37231C3.88365 7.37231 2.91866 9.89315 2.16532 11.8515V3.49231C2.16949 3.01148 2.54866 2.65898 2.99866 2.65898Z",fill:"#79829B"})))}var RS,FS=o.forwardRef(IS),BS=(n.p,function(e){var t,n,r=e.channelId,i=(0,o.useState)(null),a=(0,Le.Z)(i,2),s=a[0],c=a[1],d=ES((function(e){return[e.selectedAttachment,e.selectAttachment]})),p=(0,Le.Z)(d,2),f=(p[0],p[1]),h=Boolean(s),m=h?"files-popover":void 0,v=fd({defaultValues:{search:""}}),g=v.watch("search"),y=hi({resource:"attachments?channel=".concat(r,"&search=").concat(g)}),b=null!==(t=null===(n=y.data)||void 0===n?void 0:n.data.results)&&void 0!==t?t:[],x=function(){v.reset(),c(null)};return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Wo,{variant:"secondary",onClick:function(e){y.refetch(),c(e.currentTarget)},startIcon:(0,u.jsx)(FS,{}),sx:{minWidth:0},children:"Files"}),(0,u.jsx)(PS.ZP,{id:m,open:h,anchorEl:s,onClose:x,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},elevation:1,children:(0,u.jsxs)(nn.Z,{sx:{borderRadius:"12px",width:"300px",height:"500px"},children:[(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},v),{},{children:(0,u.jsx)(tn,{p:1.5,children:(0,u.jsx)(Zd,{name:"search",fullWidth:!0,placeholder:"Search files"})})})),(0,u.jsx)(nn.Z,{direction:"column",overflow:"scroll",children:b.map((function(e){return(0,u.jsx)(Xn,{href:"#",underline:"none",onClick:function(){f(e),x()},children:(0,u.jsx)(tn,{px:2.5,py:2,sx:{"&:hover":{backgroundColor:"secondaryBlue.50"}},children:(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",spacing:.5,children:[(0,u.jsx)(tn,{height:"40px",width:"40px",sx:{position:"relative",display:"inline-flex"},children:(0,u.jsx)(tn,{component:"img",sx:{width:30,height:40,objectFit:"cover"},src:(0,rs.wQ)(e.fileName)})}),(0,u.jsxs)(nn.Z,{direction:"column",children:[(0,u.jsx)(rn.Z,{variant:"bodySemiBold3",color:"primaryDark.600",textOverflow:"ellipsis",whiteSpace:"nowrap",children:e.fileName}),(0,u.jsx)(rn.Z,{variant:"body4",color:"primaryDark.500",children:(0,rs.td)(e.size)})]})]})})})}))})]})})]})}),LS=function(e){var t=e.attachment,n=ES((function(e){return e.selectAttachment}));return(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",gap:.5,children:[(0,u.jsx)(tn,{height:"40px",width:"40px",sx:{position:"relative",display:"inline-flex"},children:(0,u.jsx)(tn,{component:"img",sx:{width:30,height:40,objectFit:"cover"},src:(0,rs.wQ)(t.fileName)})}),(0,u.jsxs)(nn.Z,{direction:"column",children:[(0,u.jsx)(rn.Z,{variant:"bodySemiBold3",color:"primaryDark.600",children:(0,u.jsx)(Xn,{href:"#",underline:"hover",onClick:function(){return n(t)},children:t.fileName})}),(0,u.jsx)(rn.Z,{variant:"body4",color:"primaryDark.500",children:(0,rs.td)(t.size)})]}),(0,u.jsx)(Xn,{sx:{p:1,marginLeft:"auto"},href:t.file,download:!0,target:"_blank",children:(0,u.jsx)(uS,{})})]})},NS=function(e){var t=e.attachments;return(0,u.jsx)(nn.Z,{direction:"column",spacing:1,children:t.map((function(e){return(0,u.jsx)(LS,{attachment:e})}))})},_S=["title","titleId"];function zS(){return zS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zS.apply(this,arguments)}function HS(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function WS(e,t){var n=e.title,r=e.titleId,i=HS(e,_S);return o.createElement("svg",zS({width:21,height:20,viewBox:"0 0 21 20",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,RS||(RS=o.createElement("path",{d:"M7.99772 1.67847C6.71105 1.67847 5.66855 2.05705 4.87272 2.69413C4.49605 2.99555 4.06688 3.49055 3.90938 3.81388C3.85272 3.93013 3.83105 4.04905 3.83105 4.17847C3.83105 5.3243 3.83105 12.1993 3.83105 13.3451V17.5118C3.83105 17.9721 4.20439 18.3451 4.66439 18.3451C5.12439 18.3451 5.49772 17.9721 5.49772 17.5118L5.49604 13.5946C5.56854 13.4787 5.67022 13.3582 5.91439 13.1628C6.42022 12.7582 7.09689 12.5118 7.99772 12.5118C8.45522 12.5118 8.71272 12.5738 9.14355 12.7461C9.18855 12.7643 9.39939 12.8536 9.45605 12.8764C10.2769 13.2046 10.9952 13.3451 12.1644 13.3451C15.1244 13.3451 17.1644 11.3054 17.1644 8.34514C17.1644 6.7638 17.1644 5.11047 17.1644 4.17847C17.1644 2.88488 15.9577 1.67847 14.6644 1.67847C14.3636 1.67847 14.0819 1.74463 13.7527 1.8608C13.5761 1.92322 12.8786 2.19497 12.9977 2.14722C12.3844 2.39238 11.9219 2.5118 11.3311 2.5118C10.7644 2.5118 10.4352 2.42572 9.87272 2.1733C9.75522 2.12038 9.66854 2.09388 9.61271 2.06913C9.02188 1.80747 8.59189 1.67847 7.99772 1.67847Z",fill:"current"})))}var VS,US=o.forwardRef(WS),qS=(n.p,function(e){var t=e.entity,n=e.created,r=e.link,o=e.flaggedBy;return(0,u.jsxs)(nn.Z,{gap:3,alignItems:"flex-start",children:[(0,u.jsx)($n,{to:r,target:"_blank",children:(0,u.jsx)(nn.Z,{alignItems:"center",gap:3,children:(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",gap:3,children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",gap:1.5,children:[(0,u.jsx)(Ud,{Icon:US,variant:"pink"}),(0,u.jsxs)(rn.Z,{variant:"heading4",color:"primaryDark.600",children:[t," flagged"]})]}),(0,u.jsx)(vS,{fill:tr.dx[700],style:{width:16,height:16}})]})})}),(0,u.jsxs)(nn.Z,{direction:"row",gap:3,children:[(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.400",children:"date"}),(0,u.jsx)(rn.Z,{variant:"bodyMedium3",color:"primaryDark.600",children:(0,vm.Z)(new Date(n),"PPPP")})]}),(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.400",children:"flagged by"}),(0,u.jsx)(rn.Z,{variant:"bodyMedium3",color:"primaryDark.600",children:o})]})]})]})}),GS=["title","titleId"];function YS(){return YS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YS.apply(this,arguments)}function KS(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function JS(e,t){var n=e.title,r=e.titleId,i=KS(e,GS);return o.createElement("svg",YS({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,VS||(VS=o.createElement("g",{id:"Iconly/Bold/3 User"},o.createElement("g",{id:"3 User"},o.createElement("path",{id:"3 Friends",fillRule:"evenodd",clipRule:"evenodd",d:"M13.4652 6.86071C13.4652 8.81877 11.9042 10.3888 9.95744 10.3888C8.01069 10.3888 6.4497 8.81877 6.4497 6.86071C6.4497 4.90189 8.01069 3.33333 9.95744 3.33333C11.9042 3.33333 13.4652 4.90189 13.4652 6.86071ZM9.95744 16.6667C7.09812 16.6667 4.65666 16.2134 4.65666 14.4001C4.65666 12.5862 7.08245 12.1163 9.95744 12.1163C12.8168 12.1163 15.2582 12.5697 15.2582 14.3836C15.2582 16.1968 12.8324 16.6667 9.95744 16.6667ZM14.9642 6.92435C14.9642 7.92252 14.6664 8.8524 14.1441 9.62542C14.0904 9.70497 14.1382 9.81229 14.2329 9.8288C14.3635 9.85132 14.4986 9.86408 14.6358 9.86783C16.0051 9.90386 17.234 9.01751 17.5735 7.68311C18.0764 5.70102 16.5998 3.92157 14.7194 3.92157C14.515 3.92157 14.3195 3.94334 14.1292 3.98237C14.1031 3.98837 14.0755 4.00038 14.0606 4.02364C14.0426 4.05216 14.0561 4.09044 14.074 4.11521C14.6388 4.91149 14.9642 5.88265 14.9642 6.92435ZM17.2318 11.2605C18.1518 11.4413 18.7569 11.8106 19.0077 12.3472C19.2196 12.7877 19.2196 13.2988 19.0077 13.7386C18.6241 14.5709 17.3877 14.8381 16.9072 14.9072C16.8079 14.9222 16.7281 14.8359 16.7386 14.7361C16.984 12.4298 15.0313 11.3363 14.5262 11.0849C14.5045 11.0736 14.5 11.0563 14.5023 11.0458C14.5038 11.0383 14.5127 11.0263 14.5291 11.0241C15.6223 11.0038 16.7975 11.1539 17.2318 11.2605ZM5.36418 9.86776C5.50147 9.864 5.63578 9.852 5.76711 9.82873C5.86187 9.81222 5.90963 9.7049 5.8559 9.62534C5.33358 8.85232 5.03586 7.92245 5.03586 6.92427C5.03586 5.88257 5.36119 4.91142 5.92604 4.11513C5.94395 4.09036 5.95663 4.05209 5.93947 4.02357C5.92455 4.00105 5.8962 3.98829 5.87083 3.98229C5.67981 3.94326 5.48431 3.9215 5.27986 3.9215C3.39951 3.9215 1.92285 5.70095 2.42651 7.68303C2.76602 9.01743 3.99496 9.90378 5.36418 9.86776ZM5.49737 11.0454C5.49961 11.0566 5.49513 11.0731 5.47424 11.0852C4.96833 11.3366 3.01561 12.4301 3.2611 14.7356C3.27155 14.8362 3.19245 14.9217 3.09321 14.9075C2.61268 14.8384 1.37628 14.5712 0.992746 13.7389C0.780087 13.2984 0.780087 12.788 0.992746 12.3475C1.24346 11.8109 1.84786 11.4416 2.76788 11.26C3.2029 11.1542 4.37737 11.0041 5.47125 11.0244C5.48767 11.0266 5.49587 11.0386 5.49737 11.0454Z",fill:"#4051EC"})))))}var XS,QS=o.forwardRef(JS),$S=(n.p,["title","titleId"]);function ek(){return ek=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ek.apply(this,arguments)}function tk(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function nk(e,t){var n=e.title,r=e.titleId,i=tk(e,$S);return o.createElement("svg",ek({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,XS||(XS=o.createElement("g",{id:"Radiobutton"},o.createElement("circle",{id:"Ellipse 675",cx:8,cy:8,r:7,stroke:"#BFC6D7",strokeWidth:2}))))}var rk,ok=o.forwardRef(nk),ik=(n.p,["title","titleId"]);function ak(){return ak=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ak.apply(this,arguments)}function sk(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function lk(e,t){var n=e.title,r=e.titleId,i=sk(e,ik);return o.createElement("svg",ak({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,rk||(rk=o.createElement("g",{id:"Radiobutton"},o.createElement("circle",{id:"Ellipse 676",cx:8,cy:8,r:7,fill:"#ABEB4D",stroke:"#ABEB4D",strokeWidth:2}),o.createElement("circle",{id:"Ellipse 677",cx:8,cy:8,r:5,fill:"#34A854"}))))}var ck,uk=o.forwardRef(lk),dk=(n.p,["title","titleId"]);function pk(){return pk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pk.apply(this,arguments)}function fk(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function hk(e,t){var n=e.title,r=e.titleId,i=fk(e,dk);return o.createElement("svg",pk({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,ck||(ck=o.createElement("g",{id:"Radiobutton"},o.createElement("circle",{id:"Ellipse 676",cx:8,cy:8,r:7,fill:"#FF6174",stroke:"#FF6174",strokeWidth:2}),o.createElement("circle",{id:"Ellipse 677",cx:8,cy:8,r:5,fill:"#FF4085"}))))}var mk,vk=o.forwardRef(hk),gk=(n.p,n(34993)),yk=function(e){var t=e.text,n=(0,o.useState)(!1),r=(0,Le.Z)(n,2),i=r[0],a=r[1];return(0,u.jsx)(es.Z,{PopperProps:{disablePortal:!0},open:i,enterTouchDelay:1e3,disableTouchListener:!0,title:"Copied link",arrow:!0,children:(0,u.jsx)(ko.Z,{onClick:function(){a(!0),navigator.clipboard.writeText(t),setTimeout((function(){a(!1)}),1e3)},sx:{borderRadius:"50px",border:"1px solid #79829B",color:"#79829B",px:"1rem",py:"0.2rem",maxWidth:"fit-content"},endIcon:(0,u.jsx)(tn,{component:"img",src:gk}),children:t})})},bk=function(e){var t,n,r,o=e.title,i=e.eventId,a=e.buttons,s=zp({resource:"events/".concat(i)}),l=null===(t=s.data)||void 0===t?void 0:t.data,c=(0,As.Z)({resource:"/events"}).mutate;return l?(0,u.jsxs)(nn.Z,{gap:3,alignItems:"flex-start",children:[(0,u.jsx)(nn.Z,{alignItems:"center",gap:3,children:(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",gap:3,children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",gap:1.5,children:[(0,u.jsx)(Ud,{Icon:QS,variant:"blue"}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.600",children:o})]}),(null===l||void 0===l?void 0:l.link)&&(0,u.jsx)("a",{href:l.link,target:"_blank",rel:"noreferrer",children:(0,u.jsx)(vS,{fill:tr.dx[700],style:{width:16,height:16}})})]})}),(0,u.jsx)(nn.Z,{direction:"row",gap:1,children:(0,u.jsx)(yk,{text:l.link||""})}),(0,u.jsx)(rn.Z,{variant:"bodyMedium2",color:"primaryDark.600",children:l.name}),(0,u.jsxs)(nn.Z,{direction:"row",gap:3,children:[(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.400",children:"time"}),(0,u.jsxs)(rn.Z,{variant:"bodyMedium3",color:"primaryDark.600",children:[(0,vm.Z)(new Date(null===l||void 0===l?void 0:l.start),"p")," - ",(0,vm.Z)(new Date(null===l||void 0===l?void 0:l.end),"p")]})]}),(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.400",children:"date"}),(0,u.jsx)(rn.Z,{variant:"bodyMedium3",color:"primaryDark.600",children:(0,vm.Z)(new Date(null===l||void 0===l?void 0:l.start),"PPPP")})]}),(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.400",children:"created by"}),(0,u.jsxs)(rn.Z,{variant:"bodyMedium3",color:"primaryDark.600",children:[null===(n=l.owner)||void 0===n?void 0:n.firstName," ",null===(r=l.owner)||void 0===r?void 0:r.lastName]})]})]}),(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.600",children:l.description}),(0,u.jsxs)(nn.Z,{gap:1,children:[(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.500",children:"participants"}),(0,u.jsx)(nn.Z,{direction:"row",gap:1,children:l.attendees.map((function(e){return(0,u.jsx)(Fd.Z,{sx:{backgroundColor:"primaryDark.600",color:"#fff",fontSize:"12px",lineHeight:"16px",letterSpacing:"0.05em"},label:(0,u.jsxs)(nn.Z,{gap:1,direction:"row",justifyContent:"center",children:[(0,u.jsxs)(rn.Z,{variant:"bodySemiBold4",children:[e.user.firstName," ",e.user.lastName]}),!0===e.attending?(0,u.jsx)(uk,{}):!1===e.attending?(0,u.jsx)(vk,{}):(0,u.jsx)(ok,{})]})})}))})]}),a&&(0,u.jsxs)(nn.Z,{gap:3,direction:"row",justifyContent:"flex-end",alignItems:"center",alignSelf:"stretch",children:[(0,u.jsx)(Wo,{variant:"secondary",onClick:function(){c({id:i,suffix:"attendances",data:{attending:!1}},{onSuccess:function(){return s.refetch()}})},children:"decline"}),(0,u.jsx)(Wo,{variant:"primary",onClick:function(){c({id:i,suffix:"attendances",data:{attending:!0}},{onSuccess:function(){return s.refetch()}})},children:"accept"})]})]}):null},xk=function(e){var t=e.special;return null!==t&&void 0!==t&&t.milestoneFlag?(0,u.jsx)(qS,{entity:"milestone",flaggedBy:t.milestoneFlag.flaggedBy,created:t.milestoneFlag.created,link:"/dashboard/end-to-end/milestone/".concat(t.milestoneFlag.milestone)}):null!==t&&void 0!==t&&t.taskFlag?(0,u.jsx)(qS,{entity:"flag",flaggedBy:t.taskFlag.flaggedBy,created:t.taskFlag.created,link:"/dashboard/end-to-end/milestone/".concat(t.taskFlag.milestone)}):null!==t&&void 0!==t&&t.subtaskFlag?(0,u.jsx)(qS,{entity:"subtask",flaggedBy:t.subtaskFlag.flaggedBy,created:t.subtaskFlag.created,link:"/dashboard/end-to-end/milestone/".concat(t.subtaskFlag.milestone)}):null!==t&&void 0!==t&&t.meetingCreated?(0,u.jsx)(bk,{title:"a meeting has been created",eventId:t.meetingCreated.event,buttons:!0}):null!==t&&void 0!==t&&t.meetingStarted?(0,u.jsx)(bk,{title:"a meeting has been started",eventId:t.meetingStarted.event,buttons:!1}):null},wk=function(e){var t=e.name,n=e.body,r=e.created,o=e.ownMessage,i=e.collapse,a=e.attachments,s=e.special;return(0,u.jsxs)(nn.Z,{direction:"row",spacing:1.5,paddingTop:i?.5:2,children:[(0,u.jsx)(Ca,{sx:{visibility:i?"hidden":"visible"},children:t[0]}),(0,u.jsxs)(nn.Z,{direction:"column",spacing:1,children:[!i&&(0,u.jsxs)(nn.Z,{direction:"row",spacing:1.5,alignItems:"center",children:[(0,u.jsx)(rn.Z,{variant:"bodySemiBold2",color:o?"secondaryBlue.700":"primaryDark.600",children:t}),(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.500",children:new Date(r).toLocaleTimeString(void 0,{hour:"numeric",minute:"numeric"})})]}),(0,u.jsx)(nn.Z,{direction:"row",children:(0,u.jsx)(tn,{p:2,sx:{backgroundColor:o?"secondaryBlue.50":"primaryDark.150",borderRadius:"0px 8px 8px 8px"},children:(0,u.jsxs)(nn.Z,{direction:"column",spacing:3,children:[(0,u.jsx)(xk,{special:s}),n.length>0?(0,u.jsx)(rn.Z,{variant:"body3",color:"#384572",sx:{whiteSpace:"pre-wrap"},children:n}):null,a.length?(0,u.jsx)(NS,{attachments:a}):null]})})})]})]})},Ck=n(36985),jk=function(e){var t,n=e.handlers,r=new URL(null!==(t="/api/")?t:"",window.location.href);r.protocol="https:"===r.protocol?"wss:":"ws:",r=new URL("/api/ws",r),(0,Ck.ZP)(r.href,{share:!0,shouldReconnect:function(){return!0},onMessage:function(e){var t,r=JSON.parse(e.data);null===(t=n[r.type])||void 0===t||t.call(n,r.payload)}})},Sk=function(){return(0,u.jsx)(tn,{display:"flex",justifyContent:"center",p:1,children:(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.500",children:"Loading..."})})},kk=function(){return(0,u.jsx)(tn,{display:"flex",justifyContent:"center",p:1,children:(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.500",children:"This is the beginning of the channel."})})},Zk=function(e){var t=e.channelId,n=Pa(),r=(0,o.useState)(!1),i=(0,Le.Z)(r,2),a=i[0],s=i[1],l=(0,o.useState)(!1),c=(0,Le.Z)(l,2),d=c[0],p=c[1],f=(0,o.useState)([]),h=(0,Le.Z)(f,2),m=h[0],v=h[1],g=(0,o.useRef)(null);return jk({handlers:{"chat-message":function(e){e.channel===t&&v((function(t){return[e].concat((0,dn.Z)(t))}))}}}),(0,o.useEffect)((function(){var e;!a&&d&&pi.Z.get("messages",{params:{channel:t,beforeMessage:null===(e=m[m.length-1])||void 0===e?void 0:e.id}}).then((function(e){var t=e.data.results;0===t.length&&s(!0),v((function(e){return[].concat((0,dn.Z)(e),(0,dn.Z)(t))}))}))}),[a,d,m]),(0,o.useEffect)((function(){v([]),s(!1);var e=new IntersectionObserver((function(e){p(e[0].isIntersecting)}));return g.current&&e.observe(g.current),function(){g.current&&e.unobserve(g.current)}}),[t]),(0,u.jsxs)(tn,{px:2,height:"100%",width:"100%",overflow:"auto",display:"flex",flexDirection:"column-reverse",children:[m.map((function(e,t){var r;return(0,u.jsx)(wk,{name:"".concat(e.user.firstName," ").concat(e.user.lastName),created:e.created,ownMessage:(null===n||void 0===n?void 0:n.id)===e.user.id,body:e.body,collapse:(null===(r=m[t+1])||void 0===r?void 0:r.user.id)===e.user.id,attachments:e.attachments,special:e.special},e.id)})),(0,u.jsxs)(tn,{position:"relative",children:[a?(0,u.jsx)(kk,{}):(0,u.jsx)(Sk,{}),(0,u.jsx)(tn,{ref:g,sx:{position:"absolute",height:"600px",width:"100%",pointerEvents:"none"}})]})]})},Ok=n(77325),Ek=n(64401),Dk=function(e){var t=e.renderDropdownButtonElement,n=e.menuItemsContents,r=e.defaultValue,i=e.onClickAway,a=e.dropdownSx,s=e.dropdownOrientation,c=void 0===s?"vertical":s,d=e.classNames,p=(0,o.useState)(null),f=(0,Le.Z)(p,2),h=f[0],m=f[1],v=Boolean(h),g=function(e){e.stopPropagation(),m(h?null:e.currentTarget)};return(0,u.jsx)(U.Z,{onClickAway:function(){m(null),i&&i()},children:(0,u.jsxs)(tn,{className:d,children:[t?t({onClick:function(e){return g(e)}}):(0,u.jsx)(ko.Z,{onClick:function(e){g(e)},sx:{p:0,minWidth:"unset"},children:(0,u.jsx)(nn.Z,{alignItems:"center",justifyContent:"center",sx:{borderRadius:"6px",height:32,width:26,"&:hover":{bgcolor:"#E5E8FF","&>*":{color:"primaryLight.500"}}},children:"vertical"===c?(0,u.jsx)(Ok.Z,{sx:{color:"primaryDark.400"}}):(0,u.jsx)(Ek.Z,{sx:{color:"primaryDark.400"}})})}),(0,u.jsx)(Bl.Z,{anchorEl:h,open:v,placement:"bottom-start",children:(0,u.jsx)(ao.Z,{elevation:0,sx:(0,l.Z)({mt:.85,width:130,border:"none",borderColor:"#E5E8FF",borderRadius:"8px",overflowY:"auto",boxShadow:"1px 10px 30px rgba(56, 69, 114, 0.1)","& .MuiList-root":{py:0},"& .MuiList-root>*":{borderBottom:"none"}},a),children:n.map((function(e){var t=e.key,n=e.text,o=e.icon,i=e.disabled,a=e.onClick;return(0,u.jsx)(Nl.Z,{disabled:i,onClick:function(e){e.stopPropagation(),a(),setTimeout((function(){m(null)}),180)},sx:{height:40,bgcolor:r===t?"#E5E8FF":"transparent","&:hover":{bgcolor:"#E5E8FF","&>*>*:first-child>*":{fill:tr.E4[500]}}},children:(0,u.jsxs)(nn.Z,{spacing:1.5,alignItems:"center",direction:"row",children:[o,(0,u.jsx)(rn.Z,{color:"primaryDark.500",fontWeight:500,children:n})]})})}))})})]})})},Pk=["title","titleId"];function Ak(){return Ak=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ak.apply(this,arguments)}function Mk(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Tk(e,t){var n=e.title,r=e.titleId,i=Mk(e,Pk);return o.createElement("svg",Ak({width:16,height:16,viewBox:"0 0 16 16",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,mk||(mk=o.createElement("g",{id:"pencil-fill"},o.createElement("path",{id:"Vector",d:"M11.3305 1.30212C11.1539 1.30212 10.9765 1.36479 10.8512 1.48946C10.4805 1.86013 9.14654 3.19414 8.85054 3.49081L2.847 9.49416L2.18001 10.1608C2.08687 10.2542 2.03907 10.3861 2.01327 10.5155L1.34621 13.8508C1.25287 14.3175 1.65074 14.7148 2.11747 14.6221C2.53434 14.5381 5.03574 14.0382 5.4526 13.9548C5.58174 13.9288 5.71387 13.8808 5.80694 13.7882L6.474 13.1208L12.4772 7.11748C12.7739 6.82148 14.1079 5.48679 14.4785 5.11679C14.6032 4.99145 14.6659 4.81412 14.6659 4.63746C14.6659 3.54612 14.3879 2.76612 13.8112 2.17745C13.2292 1.58345 12.4519 1.30212 11.3305 1.30212ZM11.5932 2.64811C12.1952 2.68345 12.5852 2.82148 12.8525 3.09481C13.1259 3.37348 13.2985 3.76014 13.3359 4.35014C12.9705 4.71481 12.4359 5.24145 11.9979 5.67945C11.4692 5.15078 10.8172 4.49881 10.2885 3.97014C10.7272 3.53214 11.2285 3.01278 11.5932 2.64811ZM3.32647 10.9321L5.03574 12.6415L4.9732 12.7042C4.5332 12.7922 3.64467 12.9782 2.82621 13.1422L3.26394 10.9948L3.32647 10.9321Z",fill:"current"}))))}var Ik,Rk=o.forwardRef(Tk),Fk=(n.p,["title","titleId"]);function Bk(){return Bk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bk.apply(this,arguments)}function Lk(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Nk(e,t){var n=e.title,r=e.titleId,i=Lk(e,Fk);return o.createElement("svg",Bk({width:20,height:20,viewBox:"0 0 20 20",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,Ik||(Ik=o.createElement("g",{id:"trash2-fill"},o.createElement("path",{id:"Vector",d:"M9.99822 1.62769C9.07738 1.62769 8.33155 2.37352 8.33155 3.29435H4.16488C3.70488 3.29435 3.33154 3.66768 3.33154 4.12768C3.33154 4.58768 3.70488 4.96101 4.16488 4.96101H15.8316C16.2916 4.96101 16.6649 4.58768 16.6649 4.12768C16.6649 3.66768 16.2916 3.29435 15.8316 3.29435H11.6649C11.6649 2.37352 10.9191 1.62769 9.99822 1.62769ZM4.16488 6.62767V14.961C4.16488 16.786 5.66905 18.2685 7.49821 18.2685L12.5241 18.2943C14.3532 18.2943 15.8316 16.7901 15.8316 14.961V6.62767H4.16488ZM8.33155 9.12766C8.79155 9.12766 9.16488 9.501 9.16488 9.96099V14.961C9.16488 15.421 8.79155 15.7943 8.33155 15.7943C7.87155 15.7943 7.49821 15.421 7.49821 14.961V9.96099C7.49821 9.501 7.87155 9.12766 8.33155 9.12766ZM11.6649 9.12766C12.1249 9.12766 12.4982 9.501 12.4982 9.96099V14.961C12.4982 15.421 12.1249 15.7943 11.6649 15.7943C11.2049 15.7943 10.8316 15.421 10.8316 14.961V9.96099C10.8316 9.501 11.2049 9.12766 11.6649 9.12766Z",fill:"current"}))))}var _k=o.forwardRef(Nk),zk=(n.p,function(e){var t=e.resource;return(0,Yt.useMutation)((function(e){return n=e.id,pi.Z.delete("".concat(t,"/").concat(n));var n}),{})}),Hk=function(e){var t=e.open,n=e.onClose,r=e.channelId,o=(0,Ms.J)(),i=zk({resource:"channels"}).mutate;return(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(ys,{open:t,onClose:n,children:(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",spacing:2,width:"100%",children:[(0,u.jsx)(Ud,{Icon:_k,variant:"pink"}),(0,u.jsx)(rn.Z,{variant:"heading3",children:"Delete channel"})]}),(0,u.jsx)(un,{}),(0,u.jsx)(rn.Z,{variant:"body2",color:"primaryDark.600",children:"Are you sure you want to delete this channel?"}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",sx:{justifyContent:"right"},children:[(0,u.jsx)(Wo,{variant:"secondary",onClick:n,children:"Cancel"}),(0,u.jsx)(Wo,{onClick:function(){i({id:r},{onSuccess:function(){o(),null===n||void 0===n||n()}})},children:"Confirm"})]})]})})})},Wk=function(e){var t,n,r=e.open,i=e.onClose,a=e.channel,s=(0,Ms.J)(),c=fd({defaultValues:{name:a.name,users:[]}}),d=null!==(t=null===(n=hi({resource:"users?channel=".concat(a.id)}).data)||void 0===n?void 0:n.data.results)&&void 0!==t?t:[];(0,o.useEffect)((function(){c.reset({users:d.map((function(e){return e.id}))})}),[d]);var p=(0,As.Z)({resource:"channels"}).mutate;return(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(ys,{open:r,onClose:i,children:(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},c),{},{children:(0,u.jsx)("form",{onSubmit:c.handleSubmit((function(e){p({id:a.id,data:{name:e.name,users:e.users}},{onSuccess:function(){s(),c.reset(),null===i||void 0===i||i()}})})),children:(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",spacing:2,width:"100%",children:[(0,u.jsx)(Ud,{Icon:bd,variant:"blue"}),(0,u.jsx)(rn.Z,{variant:"heading3",children:"Edit channel"})]}),(0,u.jsx)(un,{}),(0,u.jsx)(nn.Z,{direction:"column",spacing:3,children:(0,u.jsx)(nn.Z,{direction:"row",children:(0,u.jsxs)(nn.Z,{direction:"column",width:"100%",spacing:3,children:[(0,u.jsx)(Zd,{placeholder:"New channel",name:"name",required:!0,label:"Channel name"}),(0,u.jsx)(Wd,{name:"users",resource:"users",multiple:!0,filter:{space:a.space},choiceLabel:function(e){return"".concat(null===e||void 0===e?void 0:e.firstName," ").concat(null===e||void 0===e?void 0:e.lastName)},label:"Participants",placeholder:"Add Participants"})]})})}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",justifyContent:"right",children:[(0,u.jsx)(Wo,{variant:"secondary",onClick:i,children:"Cancel"}),(0,u.jsx)(Wo,{type:"submit",children:"Save"})]})]})})}))})})},Vk=function(e){var t=e.channel,n=(0,o.useState)(!1),r=(0,Le.Z)(n,2),i=r[0],a=r[1],s=(0,o.useState)(!1),l=(0,Le.Z)(s,2),c=l[0],d=l[1],p=(0,o.useState)(!1),f=(0,Le.Z)(p,2),h=f[0],m=f[1];return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Dk,{menuItemsContents:[{key:"create",icon:(0,u.jsx)(bd,{fill:tr.IV[500],style:{width:18,height:18}}),text:"Create",onClick:function(){return a(!0)}},{key:"edit",icon:(0,u.jsx)(Rk,{fill:tr.IV[500],style:{width:18,height:18}}),text:"Edit",onClick:function(){return d(!0)},disabled:!t.admin},{key:"delete",icon:(0,u.jsx)(_k,{fill:tr.IV[500],style:{width:18,height:18}}),text:"Delete",onClick:function(){return m(!0)},disabled:!t.admin}]}),(0,u.jsx)(qd,{open:i,onClose:function(){return a(!1)},spaceId:t.space}),(0,u.jsx)(Wk,{open:c,onClose:function(){return d(!1)},channel:t}),(0,u.jsx)(Hk,{open:h,onClose:function(){return m(!1)},channelId:t.id})]})};n(34982);function Uk(e){return(0,F.Z)("MuiAvatarGroup",e)}var qk=(0,R.Z)("MuiAvatarGroup",["root","avatar"]),Gk=["children","className","component","componentsProps","max","slotProps","spacing","total","variant"],Yk={small:-16,medium:null},Kk=(0,P.ZP)("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:function(e,n){return(0,r.Z)((0,t.Z)({},"& .".concat(qk.avatar),n.avatar),n.root)}})((function(e){var n,r=e.theme;return n={},(0,t.Z)(n,"& .".concat(ma.root),{border:"2px solid ".concat((r.vars||r).palette.background.default),boxSizing:"content-box",marginLeft:-8,"&:last-child":{marginLeft:0}}),(0,t.Z)(n,"display","flex"),(0,t.Z)(n,"flexDirection","row-reverse"),n})),Jk=(0,P.ZP)(Ca,{name:"MuiAvatarGroup",slot:"Avatar",overridesResolver:function(e,t){return t.avatar}})((function(e){var t=e.theme;return{border:"2px solid ".concat((t.vars||t).palette.background.default),boxSizing:"content-box",marginLeft:-8,"&:last-child":{marginLeft:0}}})),Xk=o.forwardRef((function(e,t){var n,i=(0,T.Z)({props:e,name:"MuiAvatarGroup"}),a=i.children,s=i.className,l=i.component,c=void 0===l?"div":l,d=i.componentsProps,p=void 0===d?{}:d,f=i.max,h=void 0===f?5:f,m=i.slotProps,v=void 0===m?{}:m,g=i.spacing,x=void 0===g?"medium":g,w=i.total,C=i.variant,j=void 0===C?"circular":C,S=(0,b.Z)(i,Gk),k=h<2?2:h,Z=(0,r.Z)({},i,{max:h,spacing:x,component:c,variant:j}),O=function(e){var t=e.classes;return(0,M.Z)({root:["root"],avatar:["avatar"]},Uk,t)}(Z),E=o.Children.toArray(a).filter((function(e){return o.isValidElement(e)})),D=w||E.length;D===k&&(k+=1),k=Math.min(D+1,k);var P=Math.min(E.length,k-1),A=Math.max(D-k,D-P,0),I=x&&void 0!==Yk[x]?Yk[x]:-x,R=null!=(n=v.additionalAvatar)?n:p.additionalAvatar;return(0,u.jsxs)(Kk,(0,r.Z)({as:c,ownerState:Z,className:(0,y.default)(O.root,s),ref:t},S,{children:[A?(0,u.jsxs)(Jk,(0,r.Z)({ownerState:Z,variant:j},R,{className:(0,y.default)(O.avatar,null==R?void 0:R.className),style:(0,r.Z)({marginLeft:I},null==R?void 0:R.style),children:["+",A]})):null,E.slice(0,P).reverse().map((function(e,t){return o.cloneElement(e,{className:(0,y.default)(e.props.className,O.avatar),style:(0,r.Z)({marginLeft:t===P-1?void 0:I},e.props.style),variant:e.props.variant||j})}))]}))})),Qk=Xk,$k=function(e){var t,n,r,i=e.channelId,a=Pa(),s=(0,o.useState)(null),l=(0,Le.Z)(s,2),c=l[0],d=l[1],p=Boolean(c),f=p?"members-popover":void 0,h=hi({resource:"channels/".concat(i,"/memberships")}),m=null!==(t=null===(n=h.data)||void 0===n?void 0:n.data.results)&&void 0!==t?t:[],v=null===(r=zp({resource:"channels/".concat(i)}).data)||void 0===r?void 0:r.data,g=oa({resource:"channels/".concat(i,"/set-admin")}).mutate,y=function(e,t){g({user:e,admin:t},{onSuccess:function(){h.refetch()}})};return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(nn.Z,{direction:"row",gap:1,alignItems:"center",onClick:function(e){h.refetch(),d(e.currentTarget)},sx:{cursor:"pointer"},children:[(0,u.jsxs)(rn.Z,{color:"primaryDark.400",variant:"body3",children:[m.length," ",1===m.length?"member":"members"]}),(0,u.jsx)(Qk,{children:m.map((function(e){return(0,u.jsx)(Ca,{sx:{width:"24px",height:"24px"},children:e.user.firstName[0]})}))})]}),(0,u.jsx)(PS.ZP,{id:f,open:p,anchorEl:c,onClose:function(){d(null)},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},elevation:1,children:(0,u.jsx)(nn.Z,{sx:{borderRadius:"12px",width:"300px",height:"500px"},children:(0,u.jsx)(nn.Z,{direction:"column",overflow:"scroll",children:m.map((function(e){return(0,u.jsx)(tn,{px:2.5,py:2,sx:{"&:hover":{backgroundColor:"secondaryBlue.50"}},children:(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",gap:1,children:[(0,u.jsx)(Ca,{children:e.user.firstName[0]}),(0,u.jsx)(nn.Z,{direction:"column",children:(0,u.jsxs)(rn.Z,{variant:"bodySemiBold2",color:"primaryDark.600",textOverflow:"ellipsis",whiteSpace:"nowrap",children:[e.user.firstName," ",e.user.lastName]})}),null!==v&&void 0!==v&&v.admin&&e.user.id!==(null===a||void 0===a?void 0:a.id)?(0,u.jsx)(tn,{ml:"auto",children:e.admin?(0,u.jsx)(Wo,{variant:"secondary",onClick:function(){return y(e.user.id,!1)},children:"Dismiss Admin"}):(0,u.jsx)(Wo,{onClick:function(){return y(e.user.id,!0)},children:"Make Admin"})}):null]})})}))})})})]})},eZ=function(e){var t,n,r=e.channelId,o=e.floating,i=Pa(),a=null===(t=zp({resource:"channels/".concat(r)}).data)||void 0===t?void 0:t.data,s=null===(n=hi({resource:"users?channel=".concat(r)}).data)||void 0===n?void 0:n.data.results.find((function(e){return e.id!==(null===i||void 0===i?void 0:i.id)}));return(0,u.jsxs)(nn.Z,{flex:"1",justifyContent:"flex-end",height:"100%",direction:"column",children:[(0,u.jsxs)(nn.Z,{spacing:1,direction:"column",children:[(0,u.jsxs)(nn.Z,{px:3,pt:1,direction:"row",gap:2,alignItems:"center",children:[a&&s?a.type===Kt.ox.Public?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(hc,{width:28,height:28}),(0,u.jsx)(rn.Z,{color:"primaryDark.600",variant:o?"heading4":"heading2",children:a.name}),!o&&(0,u.jsx)(Vk,{channel:a})]}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Ca,{children:null===s||void 0===s?void 0:s.firstName[0]}),(0,u.jsxs)(rn.Z,{color:"primaryDark.600",variant:o?"heading4":"heading2",children:[null===s||void 0===s?void 0:s.firstName," ",null===s||void 0===s?void 0:s.lastName]})]}):null,!o&&(0,u.jsxs)(nn.Z,{direction:"row",ml:"auto",mr:2,gap:1,alignItems:"stretch",children:[(null===a||void 0===a?void 0:a.type)===Kt.ox.Public?(0,u.jsx)($k,{channelId:r}):null,(0,u.jsx)(BS,{channelId:r})]})]}),(0,u.jsx)(un,{color:"secondaryBlue.100"})]}),(0,u.jsxs)(nn.Z,{flex:"1",direction:"column",position:"relative",overflow:"hidden",children:[(0,u.jsxs)(nn.Z,{gap:2,justifyContent:"flex-end",direction:"column",height:"100%",overflow:"hidden",children:[(0,u.jsx)(Zk,{channelId:r}),(0,u.jsx)(nS,{channelId:r})]}),(0,u.jsx)(DS,{})]})]})};var tZ=n.p+"static/media/ArrowLeftMenuIcon.346a2c9064a08c8d5de37946296b1079.svg";var nZ=n.p+"static/media/MenuIconTablet.ed39458fa6d2195d28ac3cff825ac903.svg";var rZ=n.p+"static/media/sponaLogo.e2bac263ed53f5981d4abf75ec72c3b4.svg";var oZ=n.p+"static/media/sponaLogoLarge.b238d16ec38b7129f9de903600779978.svg",iZ=(0,pa.Z)((0,u.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),aZ=["slots","slotProps"],sZ=(0,P.ZP)(Qy.Z)((function(e){var t=e.theme;return(0,r.Z)({display:"flex",marginLeft:"calc(".concat(t.spacing(1)," * 0.5)"),marginRight:"calc(".concat(t.spacing(1)," * 0.5)")},"light"===t.palette.mode?{backgroundColor:t.palette.grey[100],color:t.palette.grey[700]}:{backgroundColor:t.palette.grey[700],color:t.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":(0,r.Z)({},"light"===t.palette.mode?{backgroundColor:t.palette.grey[200]}:{backgroundColor:t.palette.grey[600]}),"&:active":(0,r.Z)({boxShadow:t.shadows[0]},"light"===t.palette.mode?{backgroundColor:(0,A._4)(t.palette.grey[200],.12)}:{backgroundColor:(0,A._4)(t.palette.grey[600],.12)})})})),lZ=(0,P.ZP)(iZ)({width:24,height:16});var cZ=function(e){var t=e.slots,n=void 0===t?{}:t,o=e.slotProps,i=void 0===o?{}:o,a=(0,b.Z)(e,aZ),s=e;return(0,u.jsx)("li",{children:(0,u.jsx)(sZ,(0,r.Z)({focusRipple:!0},a,{ownerState:s,children:(0,u.jsx)(lZ,(0,r.Z)({as:n.CollapsedIcon,ownerState:s},i.collapsedIcon))}))})};function uZ(e){return(0,F.Z)("MuiBreadcrumbs",e)}var dZ=(0,R.Z)("MuiBreadcrumbs",["root","ol","li","separator"]),pZ=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],fZ=(0,P.ZP)(rn.Z,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:function(e,n){return[(0,t.Z)({},"& .".concat(dZ.li),n.li),n.root]}})({}),hZ=(0,P.ZP)("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:function(e,t){return t.ol}})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),mZ=(0,P.ZP)("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:function(e,t){return t.separator}})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function vZ(e,t,n,r){return e.reduce((function(o,i,a){return a<e.length-1?o=o.concat(i,(0,u.jsx)(mZ,{"aria-hidden":!0,className:t,ownerState:r,children:n},"separator-".concat(a))):o.push(i),o}),[])}var gZ,yZ=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiBreadcrumbs"}),i=n.children,a=n.className,s=n.component,l=void 0===s?"nav":s,c=n.slots,d=void 0===c?{}:c,p=n.slotProps,f=void 0===p?{}:p,h=n.expandText,m=void 0===h?"Show path":h,v=n.itemsAfterCollapse,g=void 0===v?1:v,x=n.itemsBeforeCollapse,w=void 0===x?1:x,C=n.maxItems,j=void 0===C?8:C,S=n.separator,k=void 0===S?"/":S,Z=(0,b.Z)(n,pZ),O=o.useState(!1),E=(0,Le.Z)(O,2),D=E[0],P=E[1],A=(0,r.Z)({},n,{component:l,expanded:D,expandText:m,itemsAfterCollapse:g,itemsBeforeCollapse:w,maxItems:j,separator:k}),I=function(e){var t=e.classes;return(0,M.Z)({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},uZ,t)}(A),R=(0,Ts.Z)({elementType:d.CollapsedIcon,externalSlotProps:f.collapsedIcon,ownerState:A}),F=o.useRef(null),B=o.Children.toArray(i).filter((function(e){return o.isValidElement(e)})).map((function(e,t){return(0,u.jsx)("li",{className:I.li,children:e},"child-".concat(t))}));return(0,u.jsx)(fZ,(0,r.Z)({ref:t,component:l,color:"text.secondary",className:(0,y.default)(I.root,a),ownerState:A},Z,{children:(0,u.jsx)(hZ,{className:I.ol,ref:F,ownerState:A,children:vZ(D||j&&B.length<=j?B:function(e){return w+g>=e.length?e:[].concat((0,dn.Z)(e.slice(0,w)),[(0,u.jsx)(cZ,{"aria-label":m,slots:{CollapsedIcon:d.CollapsedIcon},slotProps:{collapsedIcon:R},onClick:function(){P(!0);var e=F.current.querySelector("a[href],button,[tabindex]");e&&e.focus()}},"ellipsis")],(0,dn.Z)(e.slice(e.length-g,e.length)))}(B),I.separator,k,A)})}))})),bZ=yZ,xZ=function(e){var t,n=(0,ze.TH)(),r=(0,ze.UO)(),i=(0,o.useState)([]),a=(0,Le.Z)(i,2),s=a[0],l=a[1],c=Ra({resource:"tasks",id:r.taskId,queryFilters:{company:null===(t=Pa())||void 0===t?void 0:t.id},enabled:!!r.taskId,refetchOnWindowFocus:!1}).data,d=Ra({resource:"milestones",id:r.milestoneId?r.milestoneId:null===c||void 0===c?void 0:c.milestone,enabled:!!r.milestoneId||!!c,refetchOnWindowFocus:!1}).data,p=Ra({resource:"projects",id:r.projectId?r.projectId:r.milestoneId?null===d||void 0===d?void 0:d.project:null===c||void 0===c?void 0:c.project,enabled:!!r.projectId||!!d||!!c,refetchOnWindowFocus:!1}).data,f=n.pathname;return(0,o.useEffect)((function(){"/dashboard"===n.pathname&&l([]),"/dashboard/end-to-end"===n.pathname&&l([{id:"projects",title:"Projects",to:"./end-to-end"}]),r.projectId&&p&&l([{id:"projects",title:"Projects",to:"./end-to-end"},{id:p.id,title:p.name,to:null}]),r.contractId&&p&&l([{id:"projects",title:"Projects",to:"./end-to-end"},{id:null===r||void 0===r?void 0:r.projectId,title:p.name,to:"./end-to-end/project/".concat(p.id)},{id:"".concat(r.projectId,"/contract"),title:"Contract",to:null}]),!r.contractId&&n.pathname.includes("contract")&&p&&l([{id:"projects",title:"Projects",to:"./end-to-end"},{id:null===r||void 0===r?void 0:r.projectId,title:p.name,to:"./end-to-end/project/".concat(p.id)},{id:"".concat(r.projectId,"/contract"),title:"Contract",to:null}]),r.milestoneId&&p&&d&&l([{id:"projects",title:"Projects",to:"./end-to-end"},{id:p.id,title:p.name,to:"./end-to-end/project/".concat(p.id)},{id:d.id,title:d.name,to:null}]),r.taskId&&c&&d&&p&&l([{id:"projects",title:"Projects",to:"./end-to-end"},{id:p.id,title:p.name,to:"./end-to-end/project/".concat(p.id)},{id:d.id,title:d.name,to:"./end-to-end/milestone/".concat(d.id)},{id:c.id,title:c.name,to:null}]),f.includes("contracts")&&l([{id:"projects",title:"Projects",to:"./end-to-end"},{id:"all-contracts",title:"Contracts",to:"./end-to-end/contracts"}]),f.includes("contracts")&&r.projectId&&l([{id:"projects",title:"Projects",to:"./end-to-end"},{id:"all-contracts",title:"Contracts",to:"./end-to-end/contracts"},{id:"contract-detail-screen",title:"Individual Contract",to:null}]),f.includes("payments")&&l([{id:"projects",title:"Projects",to:"./end-to-end"},{id:"all-payments",title:"Payments",to:"./end-to-end/payments"}]),f.includes("payments")&&r.paymentId&&l([{id:"projects",title:"Projects",to:"./end-to-end"},{id:"all-payments",title:"Payments",to:"./end-to-end/payments"},{id:"payment-detail-screen",title:"Individual Payment",to:null}])}),[r,n,c,p,d]),(0,u.jsx)(bZ,{separator:"\u2022",color:"grey.600","aria-label":"breadcrumb",sx:{alignItems:"center"},children:null===s||void 0===s?void 0:s.map((function(e,t){var n;return t===s.length-1?(0,u.jsx)(rn.Z,{variant:"body2",className:0===t?"react-joyride-step-1":"",color:"grey.600",children:e.title},"./project/".concat(e.id)):(0,u.jsx)($n,{variant:"body2",color:"grey.600",to:null!==(n=e.to)&&void 0!==n?n:"",underline:"none",children:e.title},e.id)}))})},wZ=function(e){var t=e.isOpen,n=e.setIsOpen,r=e.drawerWidth,o=e.appbarHeight,i=(0,_x.Z)(),a=(0,ze.TH)(),s=Bn(i.breakpoints.down("bg")),l=t?r-36:i.spacing(7),c="width 0.5s, padding 0.5s";return(0,u.jsx)(mo,{sx:{background:"#FFF",zIndex:function(e){return e.zIndex.drawer+1},boxShadow:"none",height:o,display:"flex",direction:"row",borderBottom:"1px solid #DCDCFF"},children:(0,u.jsxs)(nn.Z,{width:"100%",height:"100%",direction:"row",alignItems:"center",children:[s&&!t?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(io.Z,{sx:{justifyContent:"center",alignItems:"center",width:"2.8rem",borderRadius:0,height:"100%",background:"linear-gradient(270deg, #5238D3 0%, rgb(109, 81, 246) 100%)",border:"none",transition:"all 0.5s"},onClick:function(){return n(!t)},children:(0,u.jsx)(da.Z,{component:"img",src:nZ,sx:{transform:t?null:"rotate(180deg)"}})}),(0,u.jsx)(nn.Z,{height:"100%",alignItems:"center",direction:"row",justifyContent:"center",sx:{background:"#6D51F6",width:"2.8rem",transition:c,transitionTiming:"ease-in-out"},children:(0,u.jsx)(da.Z,{component:"img",src:rZ,width:30,sx:{transition:c,transitionTiming:"ease-in-out"}})})]}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(nn.Z,{height:"100%",alignItems:"center",direction:"row",justifyContent:"space-between",sx:{background:"#6D51F6",width:l,pl:t?"28px":"13px",transition:c,transitionTiming:"ease-in-out"},children:(0,u.jsx)(da.Z,{component:"img",src:t?oZ:rZ,width:t?120:30,sx:{transition:c,transitionTiming:"ease-in-out"}})}),(0,u.jsx)(io.Z,{sx:{justifyContent:"center",alignItems:"center",width:36,borderRadius:0,height:"100%",background:"linear-gradient(90deg, #5238D3 0%, rgb(109, 81, 246) 100%)",border:"none",transition:"all 0.5s"},onClick:function(){return n(!t)},children:(0,u.jsx)(da.Z,{component:"img",src:tZ,sx:{transform:t?null:"rotate(180deg)"}})})]}),(0,u.jsxs)(nn.Z,{height:"100%",alignItems:"center",direction:"row",justifyContent:"space-between",flex:1,children:[(0,u.jsxs)(nn.Z,{height:"45px",alignItems:"center",direction:"row",children:[(0,u.jsx)(rn.Z,{variant:"headline3",sx:{px:"24px",pb:1,borderRight:"1px solid #E6E8FF"},color:"primaryDark.600",children:a.pathname.includes("end-to-end")?"End to End":a.pathname.includes("timed-projects")?"Projects":a.pathname.includes("calendar")?"Calendar":a.pathname.includes("notifications")?"Notifications":a.pathname.includes("pitches")?"Pitches":a.pathname.includes("case-studies")||a.pathname.includes("case-study")?"Case studies":a.pathname.includes("chat")?"Chat":a.pathname.includes("create-company")?"Register ":a.pathname.includes("dashboard")?"Homescreen ":a.pathname.includes("seller-archive")?"Seller Archive":a.pathname.includes("case-study-archive")?"Case Study Archive":a.pathname.includes("footer")?"Footer Edit ":"Add appropriate title for this case"}),(0,u.jsx)(nn.Z,{sx:{ml:"24px"},className:"react-joyride-step-1-project",children:(0,u.jsx)(xZ,{})})]}),(0,u.jsx)(Fl,{})]})]})})},CZ=["variant","size","color","children","setUpperCase","setBorderRadius","fontWeight","linkTo","minWidth","onButtonClick","target","href","startIcon","endIcon","disabled","sx"],jZ=function(e){var t=e.variant,n=e.size,r=e.color,o=e.children,i=e.setUpperCase,a=e.setBorderRadius,s=e.fontWeight,c=e.linkTo,d=e.minWidth,p=e.onButtonClick,f=e.target,h=e.href,m=e.startIcon,v=e.endIcon,g=e.disabled,y=e.sx,b=Nn(e,CZ),x=(0,ze.s0)();return(0,u.jsx)(ko.Z,(0,l.Z)((0,l.Z)({variant:t,size:n,onClick:function(){return f?f.scrollIntoView({behavior:"smooth",block:"start"}):c?x(c):p(c)},href:h,startIcon:null!==m&&void 0!==m?m:null,endIcon:null!==v&&void 0!==v?v:null,disabled:null!==g&&void 0!==g&&g,sx:(0,l.Z)({textTransform:i?"uppercase":"none",borderRadius:a?25:"none",fontWeight:s||"normal",minWidth:null!==d&&void 0!==d?d:64,borderWidth:"outlined"===t?2:1,"&:hover":{borderWidth:"outlined"===t?2:1},color:r},y)},b),{},{children:o}))},SZ=["title","titleId"];function kZ(){return kZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kZ.apply(this,arguments)}function ZZ(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function OZ(e,t){var n=e.title,r=e.titleId,i=ZZ(e,SZ);return o.createElement("svg",kZ({width:18,height:14,viewBox:"0 0 18 14",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,gZ||(gZ=o.createElement("path",{d:"M5.51641 0.878415C6.05641 0.527582 6.64723 0.324243 7.33973 0.331743H14.0064C15.8456 0.331743 17.3397 1.82424 17.3397 3.66508V10.3317C17.3397 12.1726 15.8447 13.6651 14.0064 13.6651H7.33973C6.61723 13.6592 6.0164 13.4426 5.46473 13.0659C5.13057 12.8384 4.87806 12.5876 4.78806 12.4668C4.68056 12.3551 3.04641 10.6234 3.01641 10.5918C2.17058 9.68592 1.5914 9.07425 1.3764 8.79508C0.519733 7.68508 0.374733 6.49007 1.3764 5.28007C1.50306 5.1259 4.72723 1.57174 4.81389 1.47758C4.95056 1.31424 5.19891 1.08508 5.51641 0.878415Z",fill:"current"})))}var EZ,DZ=o.forwardRef(OZ),PZ=(n.p,["title","titleId"]);function AZ(){return AZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},AZ.apply(this,arguments)}function MZ(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function TZ(e,t){var n=e.title,r=e.titleId,i=MZ(e,PZ);return o.createElement("svg",AZ({width:18,height:17,viewBox:"0 0 18 17",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,EZ||(EZ=o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.7539 9.14183C11.1184 9.14183 11.4067 8.8585 11.4067 8.50016C11.4067 8.15016 11.1184 7.8585 10.7539 7.8585H5.66665V3.87516C5.66665 1.8335 7.3539 0.166828 9.43966 0.166828H13.5688C15.6461 0.166828 17.3333 1.82516 17.3333 3.86683V13.1252C17.3333 15.1752 15.6376 16.8335 13.5603 16.8335H9.4227C7.3539 16.8335 5.66665 15.1752 5.66665 13.1335V9.14183H10.7539ZM2.64148 11.3833L0.208147 8.95833C0.083147 8.83333 0.0164795 8.675 0.0164795 8.5C0.0164795 8.33333 0.083147 8.16666 0.208147 8.05L2.64148 5.625C2.76648 5.5 2.93315 5.43333 3.09148 5.43333C3.25815 5.43333 3.42481 5.5 3.54981 5.625C3.79981 5.875 3.79981 6.28333 3.54981 6.53333L2.21648 7.85833H5.66648V9.14166H2.21648L3.54981 10.4667C3.79981 10.7167 3.79981 11.125 3.54981 11.375C3.29981 11.6333 2.89148 11.6333 2.64148 11.3833Z",fill:"current"})))}var IZ=o.forwardRef(TZ);n.p;function RZ(e){return(0,F.Z)("MuiCard",e)}(0,R.Z)("MuiCard",["root"]);var FZ=["className","raised"],BZ=(0,P.ZP)(ao.Z,{name:"MuiCard",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(){return{overflow:"hidden"}})),LZ=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiCard"}),o=n.className,i=n.raised,a=void 0!==i&&i,s=(0,b.Z)(n,FZ),l=(0,r.Z)({},n,{raised:a}),c=function(e){var t=e.classes;return(0,M.Z)({root:["root"]},RZ,t)}(l);return(0,u.jsx)(BZ,(0,r.Z)({className:(0,y.default)(c.root,o),elevation:a?8:void 0,ref:t,ownerState:l},s))})),NZ=LZ;function _Z(e){return function(t){return typeof t===e}}var zZ=_Z("function"),HZ=function(e){return"RegExp"===Object.prototype.toString.call(e).slice(8,-1)},WZ=function(e){return!VZ(e)&&!function(e){return null===e}(e)&&(zZ(e)||"object"===typeof e)},VZ=_Z("undefined"),UZ=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function qZ(e,t){if(e===t)return!0;if(e&&WZ(e)&&t&&WZ(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return function(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;0!==r--;)if(!qZ(e[r],t[r]))return!1;return!0}(e,t);if(e instanceof Map&&t instanceof Map)return function(e,t){var n,r,o,i;if(e.size!==t.size)return!1;try{for(var a=UZ(e.entries()),s=a.next();!s.done;s=a.next()){var l=s.value;if(!t.has(l[0]))return!1}}catch(d){n={error:d}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}try{for(var c=UZ(e.entries()),u=c.next();!u.done;u=c.next())if(!qZ((l=u.value)[1],t.get(l[0])))return!1}catch(p){o={error:p}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(o)throw o.error}}return!0}(e,t);if(e instanceof Set&&t instanceof Set)return function(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var o=UZ(e.entries()),i=o.next();!i.done;i=o.next()){var a=i.value;if(!t.has(a[0]))return!1}}catch(s){n={error:s}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!0}(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=new DataView(e.buffer),r=new DataView(t.buffer),o=e.byteLength;o--;)if(n.getUint8(o)!==r.getUint8(o))return!1;return!0}(e,t);if(HZ(e)&&HZ(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=n.length;0!==o--;)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(o=n.length;0!==o--;){var i=n[o];if(("_owner"!==i||!e.$$typeof)&&!qZ(e[i],t[i]))return!1}return!0}return!(!Number.isNaN(e)||!Number.isNaN(t))||e===t}var GZ=["innerHTML","ownerDocument","style","attributes","nodeValue"],YZ=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],KZ=["bigint","boolean","null","number","string","symbol","undefined"];function JZ(e){var t,n=Object.prototype.toString.call(e).slice(8,-1);return/HTML\w+Element/.test(n)?"HTMLElement":(t=n,YZ.includes(t)?n:void 0)}function XZ(e){return function(t){return JZ(t)===e}}function QZ(e){return function(t){return typeof t===e}}function $Z(e){if(null===e)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if($Z.array(e))return"Array";if($Z.plainFunction(e))return"Function";var t=JZ(e);return t||"Object"}$Z.array=Array.isArray,$Z.arrayOf=function(e,t){return!(!$Z.array(e)&&!$Z.function(t))&&e.every((function(e){return t(e)}))},$Z.asyncGeneratorFunction=function(e){return"AsyncGeneratorFunction"===JZ(e)},$Z.asyncFunction=XZ("AsyncFunction"),$Z.bigint=QZ("bigint"),$Z.boolean=function(e){return!0===e||!1===e},$Z.date=XZ("Date"),$Z.defined=function(e){return!$Z.undefined(e)},$Z.domElement=function(e){return $Z.object(e)&&!$Z.plainObject(e)&&1===e.nodeType&&$Z.string(e.nodeName)&&GZ.every((function(t){return t in e}))},$Z.empty=function(e){return $Z.string(e)&&0===e.length||$Z.array(e)&&0===e.length||$Z.object(e)&&!$Z.map(e)&&!$Z.set(e)&&0===Object.keys(e).length||$Z.set(e)&&0===e.size||$Z.map(e)&&0===e.size},$Z.error=XZ("Error"),$Z.function=QZ("function"),$Z.generator=function(e){return $Z.iterable(e)&&$Z.function(e.next)&&$Z.function(e.throw)},$Z.generatorFunction=XZ("GeneratorFunction"),$Z.instanceOf=function(e,t){return!(!e||!t)&&Object.getPrototypeOf(e)===t.prototype},$Z.iterable=function(e){return!$Z.nullOrUndefined(e)&&$Z.function(e[Symbol.iterator])},$Z.map=XZ("Map"),$Z.nan=function(e){return Number.isNaN(e)},$Z.null=function(e){return null===e},$Z.nullOrUndefined=function(e){return $Z.null(e)||$Z.undefined(e)},$Z.number=function(e){return QZ("number")(e)&&!$Z.nan(e)},$Z.numericString=function(e){return $Z.string(e)&&e.length>0&&!Number.isNaN(Number(e))},$Z.object=function(e){return!$Z.nullOrUndefined(e)&&($Z.function(e)||"object"===typeof e)},$Z.oneOf=function(e,t){return!!$Z.array(e)&&e.indexOf(t)>-1},$Z.plainFunction=XZ("Function"),$Z.plainObject=function(e){if("Object"!==JZ(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.getPrototypeOf({})},$Z.primitive=function(e){return $Z.null(e)||(t=typeof e,KZ.includes(t));var t},$Z.promise=XZ("Promise"),$Z.propertyOf=function(e,t,n){if(!$Z.object(e)||!t)return!1;var r=e[t];return $Z.function(n)?n(r):$Z.defined(r)},$Z.regexp=XZ("RegExp"),$Z.set=XZ("Set"),$Z.string=QZ("string"),$Z.symbol=QZ("symbol"),$Z.undefined=QZ("undefined"),$Z.weakMap=XZ("WeakMap"),$Z.weakSet=XZ("WeakSet");var eO=$Z;function tO(e,t,n){var r=n.actual,o=n.key,i=n.previous,a=n.type,s=cO(e,o),l=cO(t,o),c=[s,l].every(eO.number)&&("increased"===a?s<l:s>l);return eO.undefined(r)||(c=c&&l===r),eO.undefined(i)||(c=c&&s===i),c}function nO(e,t,n){var r=n.key,o=n.type,i=n.value,a=cO(e,r),s=cO(t,r),l="added"===o?a:s,c="added"===o?s:a;return eO.nullOrUndefined(i)?[a,s].every(eO.array)?!c.every(sO(l)):[a,s].every(eO.plainObject)?function(e,t){return t.some((function(t){return!e.includes(t)}))}(Object.keys(l),Object.keys(c)):![a,s].every((function(e){return eO.primitive(e)&&eO.defined(e)}))&&("added"===o?!eO.defined(a)&&eO.defined(s):eO.defined(a)&&!eO.defined(s)):eO.defined(l)?!(!eO.array(l)&&!eO.plainObject(l))&&function(e,t,n){return!!lO(e,t)&&([e,t].every(eO.array)?!e.some(iO(n))&&t.some(iO(n)):[e,t].every(eO.plainObject)?!Object.entries(e).some(oO(n))&&Object.entries(t).some(oO(n)):t===n)}(l,c,i):qZ(c,i)}function rO(e,t,n){var r=(void 0===n?{}:n).key,o=cO(e,r),i=cO(t,r);if(!lO(o,i))throw new TypeError("Inputs have different types");if(!function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every((function(e){return eO.string(e)||eO.array(e)||eO.plainObject(e)}))}(o,i))throw new TypeError("Inputs don't have length");return[o,i].every(eO.plainObject)&&(o=Object.keys(o),i=Object.keys(i)),[o,i]}function oO(e){return function(t){var n=t[0],r=t[1];return eO.array(e)?qZ(e,r)||e.some((function(e){return qZ(e,r)||eO.array(r)&&sO(r)(e)})):eO.plainObject(e)&&e[n]?!!e[n]&&qZ(e[n],r):qZ(e,r)}}function iO(e){return function(t){return eO.array(e)?e.some((function(e){return qZ(e,t)||eO.array(t)&&sO(t)(e)})):qZ(e,t)}}function aO(e,t){return eO.array(e)?e.some((function(e){return qZ(e,t)})):qZ(e,t)}function sO(e){return function(t){return e.some((function(e){return qZ(e,t)}))}}function lO(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(eO.array)||e.every(eO.number)||e.every(eO.plainObject)||e.every(eO.string)}function cO(e,t){return eO.plainObject(e)||eO.array(e)?eO.string(t)?t.split(".").reduce((function(e,t){return e&&e[t]}),e):eO.number(t)?e[t]:e:e}function uO(e,t){if([e,t].some(eO.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every((function(e){return eO.plainObject(e)||eO.array(e)})))throw new Error("Expected plain objects or array");var n=function(n,r,o){try{var i=cO(e,n),a=cO(t,n),s=eO.defined(r),l=eO.defined(o);if(s||l){var c=l?aO(o,i):!aO(r,i),u=aO(r,a);return c&&u}return[i,a].every(eO.array)||[i,a].every(eO.plainObject)?!qZ(i,a):i!==a}catch(d){return!1}};return{added:function(n,r){try{return nO(e,t,{key:n,type:"added",value:r})}catch(o){return!1}},changed:n,changedFrom:function(n,r,o){if(!eO.defined(n))return!1;try{var i=cO(e,n),a=cO(t,n),s=eO.defined(o);return aO(r,i)&&(s?aO(o,a):!s)}catch(l){return!1}},changedTo:function(e,t){return!!eO.defined(e)&&n(e,t)},decreased:function(n,r,o){if(!eO.defined(n))return!1;try{return tO(e,t,{key:n,actual:r,previous:o,type:"decreased"})}catch(i){return!1}},emptied:function(n){try{var r=rO(e,t,{key:n}),o=r[0],i=r[1];return!!o.length&&!i.length}catch(a){return!1}},filled:function(n){try{var r=rO(e,t,{key:n}),o=r[0],i=r[1];return!o.length&&!!i.length}catch(a){return!1}},increased:function(n,r,o){if(!eO.defined(n))return!1;try{return tO(e,t,{key:n,actual:r,previous:o,type:"increased"})}catch(i){return!1}},removed:function(n,r){try{return nO(e,t,{key:n,type:"removed",value:r})}catch(o){return!1}}}}var dO=["innerHTML","ownerDocument","style","attributes","nodeValue"],pO=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],fO=["bigint","boolean","null","number","string","symbol","undefined"];function hO(e){var t,n=Object.prototype.toString.call(e).slice(8,-1);return/HTML\w+Element/.test(n)?"HTMLElement":(t=n,pO.includes(t)?n:void 0)}function mO(e){return function(t){return hO(t)===e}}function vO(e){return function(t){return typeof t===e}}function gO(e){if(null===e)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(gO.array(e))return"Array";if(gO.plainFunction(e))return"Function";var t=hO(e);return t||"Object"}gO.array=Array.isArray,gO.arrayOf=function(e,t){return!(!gO.array(e)&&!gO.function(t))&&e.every((function(e){return t(e)}))},gO.asyncGeneratorFunction=function(e){return"AsyncGeneratorFunction"===hO(e)},gO.asyncFunction=mO("AsyncFunction"),gO.bigint=vO("bigint"),gO.boolean=function(e){return!0===e||!1===e},gO.date=mO("Date"),gO.defined=function(e){return!gO.undefined(e)},gO.domElement=function(e){return gO.object(e)&&!gO.plainObject(e)&&1===e.nodeType&&gO.string(e.nodeName)&&dO.every((function(t){return t in e}))},gO.empty=function(e){return gO.string(e)&&0===e.length||gO.array(e)&&0===e.length||gO.object(e)&&!gO.map(e)&&!gO.set(e)&&0===Object.keys(e).length||gO.set(e)&&0===e.size||gO.map(e)&&0===e.size},gO.error=mO("Error"),gO.function=vO("function"),gO.generator=function(e){return gO.iterable(e)&&gO.function(e.next)&&gO.function(e.throw)},gO.generatorFunction=mO("GeneratorFunction"),gO.instanceOf=function(e,t){return!(!e||!t)&&Object.getPrototypeOf(e)===t.prototype},gO.iterable=function(e){return!gO.nullOrUndefined(e)&&gO.function(e[Symbol.iterator])},gO.map=mO("Map"),gO.nan=function(e){return Number.isNaN(e)},gO.null=function(e){return null===e},gO.nullOrUndefined=function(e){return gO.null(e)||gO.undefined(e)},gO.number=function(e){return vO("number")(e)&&!gO.nan(e)},gO.numericString=function(e){return gO.string(e)&&e.length>0&&!Number.isNaN(Number(e))},gO.object=function(e){return!gO.nullOrUndefined(e)&&(gO.function(e)||"object"===typeof e)},gO.oneOf=function(e,t){return!!gO.array(e)&&e.indexOf(t)>-1},gO.plainFunction=mO("Function"),gO.plainObject=function(e){if("Object"!==hO(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.getPrototypeOf({})},gO.primitive=function(e){return gO.null(e)||(t=typeof e,fO.includes(t));var t},gO.promise=mO("Promise"),gO.propertyOf=function(e,t,n){if(!gO.object(e)||!t)return!1;var r=e[t];return gO.function(n)?n(r):gO.defined(r)},gO.regexp=mO("RegExp"),gO.set=mO("Set"),gO.string=vO("string"),gO.symbol=vO("symbol"),gO.undefined=vO("undefined"),gO.weakMap=mO("WeakMap"),gO.weakSet=mO("WeakSet");var yO=gO,bO=n(7035),xO=n.n(bO),wO=n(29746),CO=n.n(wO),jO=n(20906),SO=n.n(jO),kO=n(61983),ZO=n(60239),OO=n.n(ZO),EO=n(74484),DO="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,PO=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(DO&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var AO=DO&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),PO))}};function MO(e){return e&&"[object Function]"==={}.toString.call(e)}function TO(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function IO(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function RO(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=TO(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:RO(IO(e))}function FO(e){return e&&e.referenceNode?e.referenceNode:e}var BO=DO&&!(!window.MSInputMethodContext||!document.documentMode),LO=DO&&/MSIE 10/.test(navigator.userAgent);function NO(e){return 11===e?BO:10===e?LO:BO||LO}function _O(e){if(!e)return document.documentElement;for(var t=NO(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===TO(n,"position")?_O(n):n:e?e.ownerDocument.documentElement:document.documentElement}function zO(e){return null!==e.parentNode?zO(e.parentNode):e}function HO(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a=i.commonAncestorContainer;if(e!==a&&t!==a||r.contains(o))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||_O(e.firstElementChild)===e)}(a)?a:_O(a);var s=zO(e);return s.host?HO(s.host,t):HO(e,zO(t).host)}function WO(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var o=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||o;return i[n]}return e[n]}function VO(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=WO(t,"top"),o=WO(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}function UO(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function qO(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],NO(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function GO(e){var t=e.body,n=e.documentElement,r=NO(10)&&getComputedStyle(n);return{height:qO("Height",t,n,r),width:qO("Width",t,n,r)}}var YO=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},KO=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),JO=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},XO=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function QO(e){return XO({},e,{right:e.left+e.width,bottom:e.top+e.height})}function $O(e){var t={};try{if(NO(10)){t=e.getBoundingClientRect();var n=WO(e,"top"),r=WO(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(d){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?GO(e.ownerDocument):{},a=i.width||e.clientWidth||o.width,s=i.height||e.clientHeight||o.height,l=e.offsetWidth-a,c=e.offsetHeight-s;if(l||c){var u=TO(e);l-=UO(u,"x"),c-=UO(u,"y"),o.width-=l,o.height-=c}return QO(o)}function eE(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=NO(10),o="HTML"===t.nodeName,i=$O(e),a=$O(t),s=RO(e),l=TO(t),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=QO({top:i.top-a.top-c,left:i.left-a.left-u,width:i.width,height:i.height});if(d.marginTop=0,d.marginLeft=0,!r&&o){var p=parseFloat(l.marginTop),f=parseFloat(l.marginLeft);d.top-=c-p,d.bottom-=c-p,d.left-=u-f,d.right-=u-f,d.marginTop=p,d.marginLeft=f}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(d=VO(d,t)),d}function tE(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=eE(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:WO(n),s=t?0:WO(n,"left"),l={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:i};return QO(l)}function nE(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===TO(e,"position"))return!0;var n=IO(e);return!!n&&nE(n)}function rE(e){if(!e||!e.parentElement||NO())return document.documentElement;for(var t=e.parentElement;t&&"none"===TO(t,"transform");)t=t.parentElement;return t||document.documentElement}function oE(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?rE(e):HO(e,FO(t));if("viewport"===r)i=tE(a,o);else{var s=void 0;"scrollParent"===r?"BODY"===(s=RO(IO(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var l=eE(s,a,o);if("HTML"!==s.nodeName||nE(a))i=l;else{var c=GO(e.ownerDocument),u=c.height,d=c.width;i.top+=l.top-l.marginTop,i.bottom=u+l.top,i.left+=l.left-l.marginLeft,i.right=d+l.left}}var p="number"===typeof(n=n||0);return i.left+=p?n:n.left||0,i.top+=p?n:n.top||0,i.right-=p?n:n.right||0,i.bottom-=p?n:n.bottom||0,i}function iE(e){return e.width*e.height}function aE(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=oE(n,r,i,o),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map((function(e){return XO({key:e},s[e],{area:iE(s[e])})})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function sE(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=r?rE(t):HO(t,FO(n));return eE(n,o,r)}function lE(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function cE(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function uE(e,t,n){n=n.split("-")[0];var r=lE(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",s=i?"left":"top",l=i?"height":"width",c=i?"width":"height";return o[a]=t[a]+t[l]/2-r[l]/2,o[s]=n===s?t[s]-r[c]:t[cE(s)],o}function dE(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function pE(e,t,n){var r=void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=dE(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n));return r.forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&MO(n)&&(t.offsets.popper=QO(t.offsets.popper),t.offsets.reference=QO(t.offsets.reference),t=n(t,e))})),t}function fE(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=sE(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=aE(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=uE(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=pE(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function hE(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function mE(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],i=o?""+o+n:e;if("undefined"!==typeof document.body.style[i])return i}return null}function vE(){return this.state.isDestroyed=!0,hE(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[mE("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function gE(e){var t=e.ownerDocument;return t?t.defaultView:window}function yE(e,t,n,r){var o="BODY"===e.nodeName,i=o?e.ownerDocument.defaultView:e;i.addEventListener(t,n,{passive:!0}),o||yE(RO(i.parentNode),t,n,r),r.push(i)}function bE(e,t,n,r){n.updateBound=r,gE(e).addEventListener("resize",n.updateBound,{passive:!0});var o=RO(e);return yE(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function xE(){this.state.eventsEnabled||(this.state=bE(this.reference,this.options,this.state,this.scheduleUpdate))}function wE(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,gE(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function CE(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function jE(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&CE(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var SE=DO&&/Firefox/i.test(navigator.userAgent);function kE(e,t,n){var r=dE(e,(function(e){return e.name===t})),o=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!o){var i="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return o}var ZE=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],OE=ZE.slice(3);function EE(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=OE.indexOf(e),r=OE.slice(n+1).concat(OE.slice(0,n));return t?r.reverse():r}var DE="flip",PE="clockwise",AE="counterclockwise";function ME(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(dE(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return c=c.map((function(e,r){var o=(1===r?!i:i)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return e;if(0===a.indexOf("%")){return QO("%p"===a?n:r)[t]/100*i}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,o,t,n)}))})),c.forEach((function(e,t){e.forEach((function(n,r){CE(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var TE={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:JO({},l,i[l]),end:JO({},l,i[l]+i[c]-a[c])};e.offsets.popper=XO({},a,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,a=o.reference,s=r.split("-")[0],l=void 0;return l=CE(+n)?[+n,0]:ME(n,i,a,s),"left"===s?(i.top+=l[0],i.left-=l[1]):"right"===s?(i.top+=l[0],i.left+=l[1]):"top"===s?(i.left+=l[0],i.top-=l[1]):"bottom"===s&&(i.left+=l[0],i.top+=l[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||_O(e.instance.popper);e.instance.reference===n&&(n=_O(n));var r=mE("transform"),o=e.instance.popper.style,i=o.top,a=o.left,s=o[r];o.top="",o.left="",o[r]="";var l=oE(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),JO({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),JO({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=XO({},u,d[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<i(r[l])&&(e.offsets.popper[l]=i(r[l])-n[c]),n[l]>i(r[s])&&(e.offsets.popper[l]=i(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!kE(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"===typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,a=i.popper,s=i.reference,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),p=l?"left":"top",f=l?"bottom":"right",h=lE(r)[c];s[f]-h<a[d]&&(e.offsets.popper[d]-=a[d]-(s[f]-h)),s[d]+h>a[f]&&(e.offsets.popper[d]+=s[d]+h-a[f]),e.offsets.popper=QO(e.offsets.popper);var m=s[d]+s[c]/2-h/2,v=TO(e.instance.popper),g=parseFloat(v["margin"+u]),y=parseFloat(v["border"+u+"Width"]),b=m-e.offsets.popper[d]-g-y;return b=Math.max(Math.min(a[c]-h,b),0),e.arrowElement=r,e.offsets.arrow=(JO(n={},d,Math.round(b)),JO(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(hE(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=oE(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=cE(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case DE:a=[r,o];break;case PE:a=EE(r);break;case AE:a=EE(r,!0);break;default:a=t.behavior}return a.forEach((function(s,l){if(r!==s||a.length===l+1)return e;r=e.placement.split("-")[0],o=cE(r);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,p="left"===r&&d(c.right)>d(u.left)||"right"===r&&d(c.left)<d(u.right)||"top"===r&&d(c.bottom)>d(u.top)||"bottom"===r&&d(c.top)<d(u.bottom),f=d(c.left)<d(n.left),h=d(c.right)>d(n.right),m=d(c.top)<d(n.top),v=d(c.bottom)>d(n.bottom),g="left"===r&&f||"right"===r&&h||"top"===r&&m||"bottom"===r&&v,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===i&&f||y&&"end"===i&&h||!y&&"start"===i&&m||!y&&"end"===i&&v),x=!!t.flipVariationsByContent&&(y&&"start"===i&&h||y&&"end"===i&&f||!y&&"start"===i&&v||!y&&"end"===i&&m),w=b||x;(p||g||w)&&(e.flipped=!0,(p||g)&&(r=a[l+1]),w&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=XO({},e.offsets.popper,uE(e.instance.popper,e.offsets.reference,e.placement)),e=pE(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(s?o[a?"width":"height"]:0),e.placement=cE(t),e.offsets.popper=QO(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!kE(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=dE(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,o=e.offsets.popper,i=dE(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==i?i:t.gpuAcceleration,s=_O(e.instance.popper),l=$O(s),c={position:o.position},u=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,i=Math.round,a=Math.floor,s=function(e){return e},l=i(o.width),c=i(r.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),p=t?u||d||l%2===c%2?i:a:s,f=t?i:s;return{left:p(l%2===1&&c%2===1&&!d&&t?r.left-1:r.left),top:f(r.top),bottom:f(r.bottom),right:p(r.right)}}(e,window.devicePixelRatio<2||!SE),d="bottom"===n?"top":"bottom",p="right"===r?"left":"right",f=mE("transform"),h=void 0,m=void 0;if(m="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-l.height+u.bottom:u.top,h="right"===p?"HTML"===s.nodeName?-s.clientWidth+u.right:-l.width+u.right:u.left,a&&f)c[f]="translate3d("+h+"px, "+m+"px, 0)",c[d]=0,c[p]=0,c.willChange="transform";else{var v="bottom"===d?-1:1,g="right"===p?-1:1;c[d]=m*v,c[p]=h*g,c.willChange=d+", "+p}var y={"x-placement":e.placement};return e.attributes=XO({},y,e.attributes),e.styles=XO({},c,e.styles),e.arrowStyles=XO({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return jE(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&jE(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var i=sE(o,t,e,n.positionFixed),a=aE(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),jE(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},IE={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:TE},RE=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};YO(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=AO(this.update.bind(this)),this.options=XO({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(XO({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=XO({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return XO({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&MO(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return KO(e,[{key:"update",value:function(){return fE.call(this)}},{key:"destroy",value:function(){return vE.call(this)}},{key:"enableEventListeners",value:function(){return xE.call(this)}},{key:"disableEventListeners",value:function(){return wE.call(this)}}]),e}();RE.Utils=("undefined"!==typeof window?window:n.g).PopperUtils,RE.placements=ZE,RE.Defaults=IE;var FE=RE,BE=["innerHTML","ownerDocument","style","attributes","nodeValue"],LE=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],NE=["bigint","boolean","null","number","string","symbol","undefined"];function _E(e){var t,n=Object.prototype.toString.call(e).slice(8,-1);return/HTML\w+Element/.test(n)?"HTMLElement":(t=n,LE.includes(t)?n:void 0)}function zE(e){return function(t){return _E(t)===e}}function HE(e){return function(t){return typeof t===e}}function WE(e){if(null===e)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(WE.array(e))return"Array";if(WE.plainFunction(e))return"Function";var t=_E(e);return t||"Object"}WE.array=Array.isArray,WE.arrayOf=function(e,t){return!(!WE.array(e)&&!WE.function(t))&&e.every((function(e){return t(e)}))},WE.asyncGeneratorFunction=function(e){return"AsyncGeneratorFunction"===_E(e)},WE.asyncFunction=zE("AsyncFunction"),WE.bigint=HE("bigint"),WE.boolean=function(e){return!0===e||!1===e},WE.date=zE("Date"),WE.defined=function(e){return!WE.undefined(e)},WE.domElement=function(e){return WE.object(e)&&!WE.plainObject(e)&&1===e.nodeType&&WE.string(e.nodeName)&&BE.every((function(t){return t in e}))},WE.empty=function(e){return WE.string(e)&&0===e.length||WE.array(e)&&0===e.length||WE.object(e)&&!WE.map(e)&&!WE.set(e)&&0===Object.keys(e).length||WE.set(e)&&0===e.size||WE.map(e)&&0===e.size},WE.error=zE("Error"),WE.function=HE("function"),WE.generator=function(e){return WE.iterable(e)&&WE.function(e.next)&&WE.function(e.throw)},WE.generatorFunction=zE("GeneratorFunction"),WE.instanceOf=function(e,t){return!(!e||!t)&&Object.getPrototypeOf(e)===t.prototype},WE.iterable=function(e){return!WE.nullOrUndefined(e)&&WE.function(e[Symbol.iterator])},WE.map=zE("Map"),WE.nan=function(e){return Number.isNaN(e)},WE.null=function(e){return null===e},WE.nullOrUndefined=function(e){return WE.null(e)||WE.undefined(e)},WE.number=function(e){return HE("number")(e)&&!WE.nan(e)},WE.numericString=function(e){return WE.string(e)&&e.length>0&&!Number.isNaN(Number(e))},WE.object=function(e){return!WE.nullOrUndefined(e)&&(WE.function(e)||"object"===typeof e)},WE.oneOf=function(e,t){return!!WE.array(e)&&e.indexOf(t)>-1},WE.plainFunction=zE("Function"),WE.plainObject=function(e){if("Object"!==_E(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.getPrototypeOf({})},WE.primitive=function(e){return WE.null(e)||(t=typeof e,NE.includes(t));var t},WE.promise=zE("Promise"),WE.propertyOf=function(e,t,n){if(!WE.object(e)||!t)return!1;var r=e[t];return WE.function(n)?n(r):WE.defined(r)},WE.regexp=zE("RegExp"),WE.set=zE("Set"),WE.string=HE("string"),WE.symbol=HE("symbol"),WE.undefined=HE("undefined"),WE.weakMap=zE("WeakMap"),WE.weakSet=zE("WeakSet");var VE=WE;function UE(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 qE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UE(Object(n),!0).forEach((function(t){JE(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function GE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function KE(e,t,n){return t&&YE(e.prototype,t),n&&YE(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function JE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XE(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$E(e,t)}function QE(e){return QE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},QE(e)}function $E(e,t){return $E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$E(e,t)}function eD(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function tD(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nD(e,t){if(t&&("object"===typeof t||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return tD(e)}function rD(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=QE(e);if(t){var o=QE(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return nD(this,n)}}var oD={flip:{padding:20},preventOverflow:{padding:10}},iD={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing",ERROR:"error"},aD=xO().canUseDOM,sD=void 0!==g.createPortal;function lD(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function cD(e){var t=e.title,n=e.data,r=e.warn,o=void 0!==r&&r,i=e.debug,a=void 0!==i&&i,s=o?console.warn||console.error:console.log;a&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach((function(e){VE.plainObject(e)&&e.key?s.apply(console,[e.key,e.value]):s.apply(console,[e])})):s.apply(console,[n]),console.groupEnd())}function uD(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.addEventListener(t,n,r)}function dD(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.removeEventListener(t,n,r)}function pD(){}var fD=function(e){XE(n,e);var t=rD(n);function n(){return GE(this,n),t.apply(this,arguments)}return KE(n,[{key:"componentDidMount",value:function(){aD&&(this.node||this.appendNode(),sD||this.renderPortal())}},{key:"componentDidUpdate",value:function(){aD&&(sD||this.renderPortal())}},{key:"componentWillUnmount",value:function(){aD&&this.node&&(sD||g.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var e=this.props,t=e.id,n=e.zIndex;this.node||(this.node=document.createElement("div"),t&&(this.node.id=t),n&&(this.node.style.zIndex=n),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!aD)return null;var e=this.props,t=e.children,n=e.setRef;return this.node||this.appendNode(),sD?g.createPortal(t,this.node):(n(g.unstable_renderSubtreeIntoContainer(this,t.length>1?o.createElement("div",null,t):t[0],this.node)),null)}},{key:"renderReact16",value:function(){var e=this.props,t=e.hasChildren,n=e.placement,r=e.target;return t||r||"center"===n?this.renderPortal():null}},{key:"render",value:function(){return sD?this.renderReact16():null}}]),n}(o.Component);JE(fD,"propTypes",{children:$e().oneOfType([$e().element,$e().array]),hasChildren:$e().bool,id:$e().oneOfType([$e().string,$e().number]),placement:$e().string,setRef:$e().func.isRequired,target:$e().oneOfType([$e().object,$e().string]),zIndex:$e().number});var hD=function(e){XE(n,e);var t=rD(n);function n(){return GE(this,n),t.apply(this,arguments)}return KE(n,[{key:"parentStyle",get:function(){var e=this.props,t=e.placement,n=e.styles.arrow.length,r={pointerEvents:"none",position:"absolute",width:"100%"};return t.startsWith("top")?(r.bottom=0,r.left=0,r.right=0,r.height=n):t.startsWith("bottom")?(r.left=0,r.right=0,r.top=0,r.height=n):t.startsWith("left")?(r.right=0,r.top=0,r.bottom=0):t.startsWith("right")&&(r.left=0,r.top=0),r}},{key:"render",value:function(){var e,t=this.props,n=t.placement,r=t.setArrowRef,i=t.styles.arrow,a=i.color,s=i.display,l=i.length,c=i.margin,u=i.position,d=i.spread,p={display:s,position:u},f=d,h=l;return n.startsWith("top")?(e="0,0 ".concat(f/2,",").concat(h," ").concat(f,",0"),p.bottom=0,p.marginLeft=c,p.marginRight=c):n.startsWith("bottom")?(e="".concat(f,",").concat(h," ").concat(f/2,",0 0,").concat(h),p.top=0,p.marginLeft=c,p.marginRight=c):n.startsWith("left")?(h=d,e="0,0 ".concat(f=l,",").concat(h/2," 0,").concat(h),p.right=0,p.marginTop=c,p.marginBottom=c):n.startsWith("right")&&(h=d,e="".concat(f=l,",").concat(h," ").concat(f,",0 0,").concat(h/2),p.left=0,p.marginTop=c,p.marginBottom=c),o.createElement("div",{className:"__floater__arrow",style:this.parentStyle},o.createElement("span",{ref:r,style:p},o.createElement("svg",{width:f,height:h,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},o.createElement("polygon",{points:e,fill:a}))))}}]),n}(o.Component);JE(hD,"propTypes",{placement:$e().string.isRequired,setArrowRef:$e().func.isRequired,styles:$e().object.isRequired});var mD=["color","height","width"],vD=function(e){var t=e.handleClick,n=e.styles,r=n.color,i=n.height,a=n.width,s=eD(n,mD);return o.createElement("button",{"aria-label":"close",onClick:t,style:s,type:"button"},o.createElement("svg",{width:"".concat(a,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},o.createElement("g",null,o.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))};vD.propTypes={handleClick:$e().func.isRequired,styles:$e().object.isRequired};var gD=function(e){var t=e.content,n=e.footer,r=e.handleClick,i=e.open,a=e.positionWrapper,s=e.showCloseButton,l=e.title,c=e.styles,u={content:o.isValidElement(t)?t:o.createElement("div",{className:"__floater__content",style:c.content},t)};return l&&(u.title=o.isValidElement(l)?l:o.createElement("div",{className:"__floater__title",style:c.title},l)),n&&(u.footer=o.isValidElement(n)?n:o.createElement("div",{className:"__floater__footer",style:c.footer},n)),!s&&!a||VE.boolean(i)||(u.close=o.createElement(vD,{styles:c.close,handleClick:r})),o.createElement("div",{className:"__floater__container",style:c.container},u.close,u.title,u.content,u.footer)};gD.propTypes={content:$e().node.isRequired,footer:$e().node,handleClick:$e().func.isRequired,open:$e().bool,positionWrapper:$e().bool.isRequired,showCloseButton:$e().bool.isRequired,styles:$e().object.isRequired,title:$e().node};var yD=function(e){XE(n,e);var t=rD(n);function n(){return GE(this,n),t.apply(this,arguments)}return KE(n,[{key:"style",get:function(){var e=this.props,t=e.disableAnimation,n=e.component,r=e.placement,o=e.hideArrow,i=e.status,a=e.styles,s=a.arrow.length,l=a.floater,c=a.floaterCentered,u=a.floaterClosing,d=a.floaterOpening,p=a.floaterWithAnimation,f=a.floaterWithComponent,h={};return o||(r.startsWith("top")?h.padding="0 0 ".concat(s,"px"):r.startsWith("bottom")?h.padding="".concat(s,"px 0 0"):r.startsWith("left")?h.padding="0 ".concat(s,"px 0 0"):r.startsWith("right")&&(h.padding="0 0 0 ".concat(s,"px"))),-1!==[iD.OPENING,iD.OPEN].indexOf(i)&&(h=qE(qE({},h),d)),i===iD.CLOSING&&(h=qE(qE({},h),u)),i!==iD.OPEN||t||(h=qE(qE({},h),p)),"center"===r&&(h=qE(qE({},h),c)),n&&(h=qE(qE({},h),f)),qE(qE({},l),h)}},{key:"render",value:function(){var e=this.props,t=e.component,n=e.handleClick,r=e.hideArrow,i=e.setFloaterRef,a=e.status,s={},l=["__floater"];return s.content=t?o.isValidElement(t)?o.cloneElement(t,{closeFn:n}):t({closeFn:n}):o.createElement(gD,this.props),a===iD.OPEN&&l.push("__floater__open"),r||(s.arrow=o.createElement(hD,this.props)),o.createElement("div",{ref:i,className:l.join(" "),style:this.style},o.createElement("div",{className:"__floater__body"},s.content,s.arrow))}}]),n}(o.Component);JE(yD,"propTypes",{component:$e().oneOfType([$e().func,$e().element]),content:$e().node,disableAnimation:$e().bool.isRequired,footer:$e().node,handleClick:$e().func.isRequired,hideArrow:$e().bool.isRequired,open:$e().bool,placement:$e().string.isRequired,positionWrapper:$e().bool.isRequired,setArrowRef:$e().func.isRequired,setFloaterRef:$e().func.isRequired,showCloseButton:$e().bool,status:$e().string.isRequired,styles:$e().object.isRequired,title:$e().node});var bD=function(e){XE(n,e);var t=rD(n);function n(){return GE(this,n),t.apply(this,arguments)}return KE(n,[{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.handleClick,i=t.handleMouseEnter,a=t.handleMouseLeave,s=t.setChildRef,l=t.setWrapperRef,c=t.style,u=t.styles;if(n)if(1===o.Children.count(n))if(o.isValidElement(n)){var d=VE.function(n.type)?"innerRef":"ref";e=o.cloneElement(o.Children.only(n),JE({},d,s))}else e=o.createElement("span",null,n);else e=n;return e?o.createElement("span",{ref:l,style:qE(qE({},u),c),onClick:r,onMouseEnter:i,onMouseLeave:a},e):null}}]),n}(o.Component);JE(bD,"propTypes",{children:$e().node,handleClick:$e().func.isRequired,handleMouseEnter:$e().func.isRequired,handleMouseLeave:$e().func.isRequired,setChildRef:$e().func.isRequired,setWrapperRef:$e().func.isRequired,style:$e().object,styles:$e().object.isRequired});var xD={zIndex:100};var wD=["arrow","flip","offset"],CD=["position","top","right","bottom","left"],jD=function(e){XE(r,e);var t=rD(r);function r(e){var n;return GE(this,r),JE(tD(n=t.call(this,e)),"setArrowRef",(function(e){n.arrowRef=e})),JE(tD(n),"setChildRef",(function(e){n.childRef=e})),JE(tD(n),"setFloaterRef",(function(e){n.floaterRef=e})),JE(tD(n),"setWrapperRef",(function(e){n.wrapperRef=e})),JE(tD(n),"handleTransitionEnd",(function(){var e=n.state.status,t=n.props.callback;n.wrapperPopper&&n.wrapperPopper.instance.update(),n.setState({status:e===iD.OPENING?iD.OPEN:iD.IDLE},(function(){var e=n.state.status;t(e===iD.OPEN?"open":"close",n.props)}))})),JE(tD(n),"handleClick",(function(){var e=n.props,t=e.event,r=e.open;if(!VE.boolean(r)){var o=n.state,i=o.positionWrapper,a=o.status;("click"===n.event||"hover"===n.event&&i)&&(cD({title:"click",data:[{event:t,status:a===iD.OPEN?"closing":"opening"}],debug:n.debug}),n.toggle())}})),JE(tD(n),"handleMouseEnter",(function(){var e=n.props,t=e.event,r=e.open;if(!VE.boolean(r)&&!lD()){var o=n.state.status;"hover"===n.event&&o===iD.IDLE&&(cD({title:"mouseEnter",data:[{key:"originalEvent",value:t}],debug:n.debug}),clearTimeout(n.eventDelayTimeout),n.toggle())}})),JE(tD(n),"handleMouseLeave",(function(){var e=n.props,t=e.event,r=e.eventDelay,o=e.open;if(!VE.boolean(o)&&!lD()){var i=n.state,a=i.status,s=i.positionWrapper;"hover"===n.event&&(cD({title:"mouseLeave",data:[{key:"originalEvent",value:t}],debug:n.debug}),r?-1===[iD.OPENING,iD.OPEN].indexOf(a)||s||n.eventDelayTimeout||(n.eventDelayTimeout=setTimeout((function(){delete n.eventDelayTimeout,n.toggle()}),1e3*r)):n.toggle(iD.IDLE))}})),n.state={currentPlacement:e.placement,needsUpdate:!1,positionWrapper:e.wrapperOptions.position&&!!e.target,status:iD.INIT,statusWrapper:iD.INIT},n._isMounted=!1,n.hasMounted=!1,aD&&window.addEventListener("load",(function(){n.popper&&n.popper.instance.update(),n.wrapperPopper&&n.wrapperPopper.instance.update()})),n}return KE(r,[{key:"componentDidMount",value:function(){if(aD){var e=this.state.positionWrapper,t=this.props,n=t.children,r=t.open,o=t.target;this._isMounted=!0,cD({title:"init",data:{hasChildren:!!n,hasTarget:!!o,isControlled:VE.boolean(r),positionWrapper:e,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!n&&o&&VE.boolean(r)}}},{key:"componentDidUpdate",value:function(e,t){if(aD){var n,r=this.props,o=r.autoOpen,i=r.open,a=r.target,s=r.wrapperOptions,l=uO(t,this.state),c=l.changedFrom,u=l.changed;if(e.open!==i)VE.boolean(i)&&(n=i?iD.OPENING:iD.CLOSING),this.toggle(n);e.wrapperOptions.position===s.position&&e.target===a||this.changeWrapperPosition(this.props),(u("status",iD.IDLE)&&i||c("status",iD.INIT,iD.IDLE)&&o)&&this.toggle(iD.OPEN),this.popper&&u("status",iD.OPENING)&&this.popper.instance.update(),this.floaterRef&&(u("status",iD.OPENING)||u("status",iD.CLOSING))&&function(e,t,n){var r;uD(e,t,r=function(o){n(o),dD(e,t,r)},arguments.length>3&&void 0!==arguments[3]&&arguments[3])}(this.floaterRef,"transitionend",this.handleTransitionEnd),u("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){aD&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.target,n=this.state.positionWrapper,r=this.props,o=r.disableFlip,i=r.getPopper,a=r.hideArrow,s=r.offset,l=r.placement,c=r.wrapperOptions,u="top"===l||"bottom"===l?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if("center"===l)this.setState({status:iD.IDLE});else if(t&&this.floaterRef){var d=this.options,p=d.arrow,f=d.flip,h=d.offset,m=eD(d,wD);new FE(t,this.floaterRef,{placement:l,modifiers:qE({arrow:qE({enabled:!a,element:this.arrowRef},p),flip:qE({enabled:!o,behavior:u},f),offset:qE({offset:"0, ".concat(s,"px")},h)},m),onCreate:function(t){var n;e.popper=t,null!==(n=e.floaterRef)&&void 0!==n&&n.isConnected?(i(t,"floater"),e._isMounted&&e.setState({currentPlacement:t.placement,status:iD.IDLE}),l!==t.placement&&setTimeout((function(){t.instance.update()}),1)):e.setState({needsUpdate:!0})},onUpdate:function(t){e.popper=t;var n=e.state.currentPlacement;e._isMounted&&t.placement!==n&&e.setState({currentPlacement:t.placement})}})}if(n){var v=VE.undefined(c.offset)?0:c.offset;new FE(this.target,this.wrapperRef,{placement:c.placement||l,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(v,"px")},flip:{enabled:!1}},onCreate:function(t){e.wrapperPopper=t,e._isMounted&&e.setState({statusWrapper:iD.IDLE}),i(t,"wrapper"),l!==t.placement&&setTimeout((function(){t.instance.update()}),1)}})}}},{key:"rebuildPopper",value:function(){var e=this;this.floaterRefInterval=setInterval((function(){var t;null!==(t=e.floaterRef)&&void 0!==t&&t.isConnected&&(clearInterval(e.floaterRefInterval),e.setState({needsUpdate:!1}),e.initPopper())}),50)}},{key:"changeWrapperPosition",value:function(e){var t=e.target,n=e.wrapperOptions;this.setState({positionWrapper:n.position&&!!t})}},{key:"toggle",value:function(e){var t=this.state.status===iD.OPEN?iD.CLOSING:iD.OPENING;VE.undefined(e)||(t=e),this.setState({status:t})}},{key:"debug",get:function(){return this.props.debug||!!n.g.ReactFloaterDebug}},{key:"event",get:function(){var e=this.props,t=e.disableHoverToClick,n=e.event;return"hover"===n&&lD()&&!t?"click":n}},{key:"options",get:function(){var e=this.props.options;return OO()(oD,e||{})}},{key:"styles",get:function(){var e,t=this,n=this.state,r=n.status,o=n.positionWrapper,i=n.statusWrapper,a=this.props.styles,s=OO()(function(e){var t=OO()(xD,e.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t}}(a),a);o&&(e=-1===[iD.IDLE].indexOf(r)||-1===[iD.IDLE].indexOf(i)?s.wrapperPosition:this.wrapperPopper.styles,s.wrapper=qE(qE({},s.wrapper),e));if(this.target){var l=window.getComputedStyle(this.target);this.wrapperStyles?s.wrapper=qE(qE({},s.wrapper),this.wrapperStyles):-1===["relative","static"].indexOf(l.position)&&(this.wrapperStyles={},o||(CD.forEach((function(e){t.wrapperStyles[e]=l[e]})),s.wrapper=qE(qE({},s.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return s}},{key:"target",get:function(){if(!aD)return null;var e=this.props.target;return e?VE.domElement(e)?e:document.querySelector(e):this.childRef||this.wrapperRef}},{key:"render",value:function(){var e=this.state,t=e.currentPlacement,n=e.positionWrapper,r=e.status,i=this.props,a=i.children,s=i.component,l=i.content,c=i.disableAnimation,u=i.footer,d=i.hideArrow,p=i.id,f=i.open,h=i.showCloseButton,m=i.style,v=i.target,g=i.title,y=o.createElement(bD,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:m,styles:this.styles.wrapper},a),b={};return n?b.wrapperInPortal=y:b.wrapperAsChildren=y,o.createElement("span",null,o.createElement(fD,{hasChildren:!!a,id:p,placement:t,setRef:this.setFloaterRef,target:v,zIndex:this.styles.options.zIndex},o.createElement(yD,{component:s,content:l,disableAnimation:c,footer:u,handleClick:this.handleClick,hideArrow:d||"center"===t,open:f,placement:t,positionWrapper:n,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:h,status:r,styles:this.styles,title:g}),b.wrapperInPortal),b.wrapperAsChildren)}}]),r}(o.Component);function SD(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 kD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SD(Object(n),!0).forEach((function(t){DD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ZD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ED(e,t,n){return t&&OD(e.prototype,t),n&&OD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function DD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PD(){return PD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PD.apply(this,arguments)}function AD(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&TD(e,t)}function MD(e){return MD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},MD(e)}function TD(e,t){return TD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},TD(e,t)}function ID(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function RD(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FD(e,t){if(t&&("object"===typeof t||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return RD(e)}function BD(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=MD(e);if(t){var o=MD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return FD(this,n)}}JE(jD,"propTypes",{autoOpen:$e().bool,callback:$e().func,children:$e().node,component:(0,EO.Z)($e().oneOfType([$e().func,$e().element]),(function(e){return!e.content})),content:(0,EO.Z)($e().node,(function(e){return!e.component})),debug:$e().bool,disableAnimation:$e().bool,disableFlip:$e().bool,disableHoverToClick:$e().bool,event:$e().oneOf(["hover","click"]),eventDelay:$e().number,footer:$e().node,getPopper:$e().func,hideArrow:$e().bool,id:$e().oneOfType([$e().string,$e().number]),offset:$e().number,open:$e().bool,options:$e().object,placement:$e().oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:$e().bool,style:$e().object,styles:$e().object,target:$e().oneOfType([$e().object,$e().string]),title:$e().node,wrapperOptions:$e().shape({offset:$e().number,placement:$e().oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:$e().bool})}),JE(jD,"defaultProps",{autoOpen:!1,callback:pD,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:pD,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var LD={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},ND={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found",ERROR:"error"},_D={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},zD={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"},HD=xO().canUseDOM,WD=void 0!==g.createPortal;function VD(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent,t=e;return"undefined"===typeof window?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":Boolean(window.opera)||e.indexOf(" OPR/")>=0?t="opera":"undefined"!==typeof window.InstallTrigger?t="firefox":window.chrome?t="chrome":/(Version\/([0-9._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function UD(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function qD(e){var t=[];return function e(n){if("string"===typeof n||"number"===typeof n)t.push(n);else if(Array.isArray(n))n.forEach((function(t){return e(t)}));else if(n&&n.props){var r=n.props.children;Array.isArray(r)?r.forEach((function(t){return e(t)})):e(r)}}(e),t.join(" ").trim()}function GD(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function YD(e,t){return!(!yO.plainObject(e)||!yO.array(t))&&Object.keys(e).every((function(e){return-1!==t.indexOf(e)}))}function KD(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return t+t+n+n+r+r})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:[]}function JD(e){return e.disableBeacon||"center"===e.placement}function XD(e,t){var n,r=(0,o.isValidElement)(e)||(0,o.isValidElement)(t),i=yO.undefined(e)||yO.undefined(t);if(UD(e)!==UD(t)||r||i)return!1;if(yO.domElement(e))return e.isSameNode(t);if(yO.number(e))return e===t;if(yO.function(e))return e.toString()===t.toString();for(var a in e)if(GD(e,a)){if("undefined"===typeof e[a]||"undefined"===typeof t[a])return!1;if(n=UD(e[a]),-1!==["object","array"].indexOf(n)&&XD(e[a],t[a]))continue;if("function"===n&&XD(e[a],t[a]))continue;if(e[a]!==t[a])return!1}for(var s in t)if(GD(t,s)&&"undefined"===typeof e[s])return!1;return!0}function QD(){return!(-1!==["chrome","safari","firefox","opera"].indexOf(VD()))}function $D(e){var t=e.title,n=e.data,r=e.warn,o=void 0!==r&&r,i=e.debug,a=void 0!==i&&i,s=o?console.warn||console.error:console.log;a&&(t&&n?(console.groupCollapsed("%creact-joyride: ".concat(t),"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach((function(e){yO.plainObject(e)&&e.key?s.apply(console,[e.key,e.value]):s.apply(console,[e])})):s.apply(console,[n]),console.groupEnd()):console.error("Missing title or data props"))}var eP={action:"",controlled:!1,index:0,lifecycle:_D.INIT,size:0,status:zD.IDLE},tP=["action","index","lifecycle","status"];function nP(e){var t=new Map,n=new Map,r=function(){function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=r.continuous,i=void 0!==o&&o,a=r.stepIndex,s=r.steps,l=void 0===s?[]:s;ZD(this,e),DD(this,"listener",void 0),DD(this,"setSteps",(function(e){var r=t.getState(),o=r.size,i=r.status,a={size:e.length,status:i};n.set("steps",e),i===zD.WAITING&&!o&&e.length&&(a.status=zD.RUNNING),t.setState(a)})),DD(this,"addListener",(function(e){t.listener=e})),DD(this,"update",(function(e){if(!YD(e,tP))throw new Error("State is not valid. Valid keys: ".concat(tP.join(", ")));t.setState(kD({},t.getNextState(kD(kD(kD({},t.getState()),e),{},{action:e.action||LD.UPDATE}),!0)))})),DD(this,"start",(function(e){var n=t.getState(),r=n.index,o=n.size;t.setState(kD(kD({},t.getNextState({action:LD.START,index:yO.number(e)?e:r},!0)),{},{status:o?zD.RUNNING:zD.WAITING}))})),DD(this,"stop",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=t.getState(),r=n.index,o=n.status;-1===[zD.FINISHED,zD.SKIPPED].indexOf(o)&&t.setState(kD(kD({},t.getNextState({action:LD.STOP,index:r+(e?1:0)})),{},{status:zD.PAUSED}))})),DD(this,"close",(function(){var e=t.getState(),n=e.index;e.status===zD.RUNNING&&t.setState(kD({},t.getNextState({action:LD.CLOSE,index:n+1})))})),DD(this,"go",(function(e){var n=t.getState(),r=n.controlled,o=n.status;if(!r&&o===zD.RUNNING){var i=t.getSteps()[e];t.setState(kD(kD({},t.getNextState({action:LD.GO,index:e})),{},{status:i?o:zD.FINISHED}))}})),DD(this,"info",(function(){return t.getState()})),DD(this,"next",(function(){var e=t.getState(),n=e.index;e.status===zD.RUNNING&&t.setState(t.getNextState({action:LD.NEXT,index:n+1}))})),DD(this,"open",(function(){t.getState().status===zD.RUNNING&&t.setState(kD({},t.getNextState({action:LD.UPDATE,lifecycle:_D.TOOLTIP})))})),DD(this,"prev",(function(){var e=t.getState(),n=e.index;e.status===zD.RUNNING&&t.setState(kD({},t.getNextState({action:LD.PREV,index:n-1})))})),DD(this,"reset",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=t.getState(),r=n.controlled;r||t.setState(kD(kD({},t.getNextState({action:LD.RESET,index:0})),{},{status:e?zD.RUNNING:zD.READY}))})),DD(this,"skip",(function(){t.getState().status===zD.RUNNING&&t.setState({action:LD.SKIP,lifecycle:_D.INIT,status:zD.SKIPPED})})),this.setState({action:LD.INIT,controlled:yO.number(a),continuous:i,index:yO.number(a)?a:0,lifecycle:_D.INIT,status:l.length?zD.READY:zD.IDLE},!0),this.setSteps(l)}return ED(e,[{key:"setState",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.getState(),o=kD(kD({},r),e),i=o.action,a=o.index,s=o.lifecycle,l=o.size,c=o.status;t.set("action",i),t.set("index",a),t.set("lifecycle",s),t.set("size",l),t.set("status",c),n&&(t.set("controlled",e.controlled),t.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(r)&&this.listener(this.getState())}},{key:"getState",value:function(){return t.size?{action:t.get("action")||"",controlled:t.get("controlled")||!1,index:parseInt(t.get("index"),10),lifecycle:t.get("lifecycle")||"",size:t.get("size")||0,status:t.get("status")||""}:kD({},eP)}},{key:"getNextState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getState(),r=n.action,o=n.controlled,i=n.index,a=n.size,s=n.status,l=yO.number(e.index)?e.index:i,c=o&&!t?i:Math.min(Math.max(l,0),a);return{action:e.action||r,controlled:o,index:c,lifecycle:e.lifecycle||_D.INIT,size:e.size||a,status:c===a?zD.FINISHED:e.status||s}}},{key:"hasUpdatedState",value:function(e){return JSON.stringify(e)!==JSON.stringify(this.getState())}},{key:"getSteps",value:function(){var e=n.get("steps");return Array.isArray(e)?e:[]}},{key:"getHelpers",value:function(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}}]),e}();return new r(e)}function rP(e){return e?e.getBoundingClientRect():{}}function oP(){var e=document,t=e.body,n=e.documentElement;return t&&n?Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight):0}function iP(e){return"string"===typeof e?document.querySelector(e):e}function aP(e){return e&&1===e.nodeType?getComputedStyle(e):{}}function sP(e,t,n){var r=SO()(e);return r.isSameNode(pP())?n?document:pP():r.scrollHeight>r.offsetHeight||t?r:(r.style.overflow="initial",pP())}function lP(e,t){return!!e&&!sP(e,t).isSameNode(pP())}function cP(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"fixed";if(!e||!(e instanceof HTMLElement))return!1;var n=e.nodeName;return"BODY"!==n&&"HTML"!==n&&(aP(e).position===t||cP(e.parentNode,t))}function uP(e){return e instanceof HTMLElement?e.offsetParent instanceof HTMLElement?uP(e.offsetParent)+e.offsetTop:e.offsetTop:0}function dP(e,t,n){if(!e)return 0;var r=SO()(e),o=uP(e);return lP(e,n)&&!function(e){return e.offsetParent!==document.body}(e)&&(o-=uP(r)),Math.floor(o-t)}function pP(){return document.scrollingElement||document.createElement("body")}!function(e){function t(t,n,r,o,i,a){var s=o||"<<anonymous>>",l=a||r;if(null==n[r])return t?new Error("Required ".concat(i," `").concat(l,"` was not specified in `").concat(s,"`.")):null;for(var c=arguments.length,u=new Array(c>6?c-6:0),d=6;d<c;d++)u[d-6]=arguments[d];return e.apply(void 0,[n,r,s,i,l].concat(u))}var n=t.bind(null,!1);n.isRequired=t.bind(null,!0)}((function(e,t,n,r,i){var a=e[t],s=a;if(!o.isValidElement(a)&&(0,kO.isValidElementType)(a)){var l={ref:function(){},step:{}};s=o.createElement(s,l)}if(yO.string(a)||yO.number(a)||!(0,kO.isValidElementType)(a)||-1===[kO.Element,kO.ForwardRef].indexOf((0,kO.typeOf)(s)))return new Error("Invalid ".concat(r," `").concat(i,"` supplied to `").concat(n,"`. Expected a React class or forwardRef."))}));var fP={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",zIndex:100},hP={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},mP={borderRadius:4,position:"absolute"};var vP={floaterProps:{options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},locale:{back:"Back",close:"Close",last:"Last",next:"Next",open:"Open the dialog",skip:"Skip"},step:{event:"click",placement:"bottom",offset:10}};function gP(e){var t=["beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent"];return Object.keys(e).filter((function(e){return-1!==t.indexOf(e)})).reduce((function(t,n){return t[n]=e[n],t}),{})}function yP(e,t){if(!e)return null;var n=OO().all([gP(t),vP.step,e],{isMergeableObject:yO.plainObject}),r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=OO()(fP,e.options||{}),n=290;window.innerWidth>480&&(n=380),t.width&&(n=window.innerWidth<t.width?window.innerWidth-30:t.width);var r={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:t.zIndex},o={beacon:kD(kD({},hP),{},{display:"inline-block",height:t.beaconSize,position:"relative",width:t.beaconSize,zIndex:t.zIndex}),beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:t.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:"rgba(".concat(KD(t.primaryColor).join(","),", 0.2)"),border:"2px solid ".concat(t.primaryColor),borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:t.backgroundColor,borderRadius:5,boxSizing:"border-box",color:t.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:n},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:kD(kD({},hP),{},{backgroundColor:t.primaryColor,borderRadius:4,color:"#fff"}),buttonBack:kD(kD({},hP),{},{color:t.primaryColor,marginLeft:"auto",marginRight:5}),buttonClose:kD(kD({},hP),{},{color:t.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14}),buttonSkip:kD(kD({},hP),{},{color:t.textColor,fontSize:14}),overlay:kD(kD({},r),{},{backgroundColor:t.overlayColor,mixBlendMode:"hard-light"}),overlayLegacy:kD({},r),overlayLegacyCenter:kD(kD({},r),{},{backgroundColor:t.overlayColor}),spotlight:kD(kD({},mP),{},{backgroundColor:"gray"}),spotlightLegacy:kD(kD({},mP),{},{boxShadow:"0 0 0 9999px ".concat(t.overlayColor,", ").concat(t.spotlightShadow)}),floaterStyles:{arrow:{color:t.arrowColor},options:{zIndex:t.zIndex+100}},options:t};return OO()(o,e)}(OO()(t.styles||{},e.styles||{})),o=lP(iP(e.target),n.disableScrollParentFix),i=OO().all([t.floaterProps||{},vP.floaterProps,n.floaterProps||{}]);return i.offset=n.offset,i.styles=OO()(i.styles||{},r.floaterStyles||{}),delete r.floaterStyles,i.offset+=t.spotlightPadding||e.spotlightPadding||0,e.placementBeacon&&(i.wrapperOptions.placement=e.placementBeacon),o&&(i.options.preventOverflow.boundariesElement="window"),kD(kD({},n),{},{locale:OO().all([vP.locale,t.locale||{},n.locale||{}]),floaterProps:i,styles:r})}function bP(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return yO.plainObject(e)?!!e.target||($D({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):($D({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function xP(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return yO.array(e)?e.every((function(e){return bP(e,t)})):($D({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var wP=ED((function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(ZD(this,e),DD(this,"element",void 0),DD(this,"options",void 0),DD(this,"canBeTabbed",(function(e){var t=e.tabIndex;return(null===t||t<0)&&(t=void 0),!isNaN(t)&&n.canHaveFocus(e)})),DD(this,"canHaveFocus",(function(e){var t=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(t)&&!e.getAttribute("disabled")||"a"===t&&!!e.getAttribute("href"))&&n.isVisible(e)})),DD(this,"findValidTabElements",(function(){return[].slice.call(n.element.querySelectorAll("*"),0).filter(n.canBeTabbed)})),DD(this,"handleKeyDown",(function(e){var t=n.options.keyCode,r=void 0===t?9:t;e.keyCode===r&&n.interceptTab(e)})),DD(this,"interceptTab",(function(e){var t=n.findValidTabElements();if(t.length){e.preventDefault();var r=e.shiftKey,o=t.indexOf(document.activeElement);-1===o||!r&&o+1===t.length?o=0:r&&0===o?o=t.length-1:o+=r?-1:1,t[o].focus()}})),DD(this,"isHidden",(function(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0,n=window.getComputedStyle(e);return!(!t||e.innerHTML)||(t&&"visible"!==n.getPropertyValue("overflow")||"none"===n.getPropertyValue("display"))})),DD(this,"isVisible",(function(e){for(var t=e;t;)if(t instanceof HTMLElement){if(t===document.body)break;if(n.isHidden(t))return!1;t=t.parentNode}return!0})),DD(this,"removeScope",(function(){window.removeEventListener("keydown",n.handleKeyDown)})),DD(this,"checkFocus",(function(e){document.activeElement!==e&&(e.focus(),window.requestAnimationFrame((function(){return n.checkFocus(e)})))})),DD(this,"setFocus",(function(){var e=n.options.selector;if(e){var t=n.element.querySelector(e);t&&window.requestAnimationFrame((function(){return n.checkFocus(t)}))}})),!(t instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=t,this.options=r,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()})),CP=function(e){AD(n,e);var t=BD(n);function n(e){var r;if(ZD(this,n),DD(RD(r=t.call(this,e)),"setBeaconRef",(function(e){r.beacon=e})),!e.beaconComponent){var o=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",i.id="joyride-beacon-animation",void 0!==e.nonce&&i.setAttribute("nonce",e.nonce),i.appendChild(document.createTextNode("\n        @keyframes joyride-beacon-inner {\n          20% {\n            opacity: 0.9;\n          }\n        \n          90% {\n            opacity: 0.7;\n          }\n        }\n        \n        @keyframes joyride-beacon-outer {\n          0% {\n            transform: scale(1);\n          }\n        \n          45% {\n            opacity: 0.7;\n            transform: scale(0.75);\n          }\n        \n          100% {\n            opacity: 0.9;\n            transform: scale(1);\n          }\n        }\n      ")),o.appendChild(i)}return r}return ED(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props.shouldFocus;setTimeout((function(){yO.domElement(e.beacon)&&t&&e.beacon.focus()}),0)}},{key:"componentWillUnmount",value:function(){var e=document.getElementById("joyride-beacon-animation");e&&e.parentNode.removeChild(e)}},{key:"render",value:function(){var e,t=this.props,n=t.beaconComponent,r=t.locale,i=t.onClickOrHover,a=t.styles,s={"aria-label":r.open,onClick:i,onMouseEnter:i,ref:this.setBeaconRef,title:r.open};if(n){var l=n;e=o.createElement(l,s)}else e=o.createElement("button",PD({key:"JoyrideBeacon",className:"react-joyride__beacon",style:a.beacon,type:"button"},s),o.createElement("span",{style:a.beaconInner}),o.createElement("span",{style:a.beaconOuter}));return e}}]),n}(o.Component);function jP(e){var t=e.styles;return o.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight",style:t})}var SP=["mixBlendMode","zIndex"],kP=function(e){AD(n,e);var t=BD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return DD(RD(e=t.call.apply(t,[this].concat(o))),"_isMounted",!1),DD(RD(e),"state",{mouseOverSpotlight:!1,isScrolling:!1,showSpotlight:!0}),DD(RD(e),"handleMouseMove",(function(t){var n=e.state.mouseOverSpotlight,r=e.spotlightStyles,o=r.height,i=r.left,a=r.position,s=r.top,l=r.width,c="fixed"===a?t.clientY:t.pageY,u="fixed"===a?t.clientX:t.pageX,d=u>=i&&u<=i+l&&(c>=s&&c<=s+o);d!==n&&e.updateState({mouseOverSpotlight:d})})),DD(RD(e),"handleScroll",(function(){var t=iP(e.props.target);e.scrollParent!==document?(e.state.isScrolling||e.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(e.scrollTimeout),e.scrollTimeout=setTimeout((function(){e.updateState({isScrolling:!1,showSpotlight:!0})}),50)):cP(t,"sticky")&&e.updateState({})})),DD(RD(e),"handleResize",(function(){clearTimeout(e.resizeTimeout),e.resizeTimeout=setTimeout((function(){e._isMounted&&e.forceUpdate()}),100)})),e}return ED(n,[{key:"componentDidMount",value:function(){var e=this.props;e.debug,e.disableScrolling;var t=e.disableScrollParentFix,n=iP(e.target);this.scrollParent=sP(n,t,!0),this._isMounted=!0,window.addEventListener("resize",this.handleResize)}},{key:"componentDidUpdate",value:function(e){var t=this,n=this.props,r=n.lifecycle,o=n.spotlightClicks,i=uO(e,this.props).changed;i("lifecycle",_D.TOOLTIP)&&(this.scrollParent.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout((function(){t.state.isScrolling||t.updateState({showSpotlight:!0})}),100)),(i("spotlightClicks")||i("disableOverlay")||i("lifecycle"))&&(o&&r===_D.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==_D.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),this.scrollParent.removeEventListener("scroll",this.handleScroll)}},{key:"spotlightStyles",get:function(){var e=this.state.showSpotlight,t=this.props,n=t.disableScrollParentFix,r=t.spotlightClicks,o=t.spotlightPadding,i=t.styles,a=iP(t.target),s=rP(a),l=cP(a),c=function(e,t,n){var r=rP(e),o=sP(e,n),i=lP(e,n),a=0;o instanceof HTMLElement&&(a=o.scrollTop);var s=r.top+(i||cP(e)?0:a);return Math.floor(s-t)}(a,o,n);return kD(kD({},QD()?i.spotlightLegacy:i.spotlight),{},{height:Math.round(s.height+2*o),left:Math.round(s.left-o),opacity:e?1:0,pointerEvents:r?"none":"auto",position:l?"fixed":"absolute",top:c,transition:"opacity 0.2s",width:Math.round(s.width+2*o)})}},{key:"updateState",value:function(e){this._isMounted&&this.setState(e)}},{key:"render",value:function(){var e=this.state,t=e.mouseOverSpotlight,n=e.showSpotlight,r=this.props,i=r.disableOverlay,a=r.disableOverlayClose,s=r.lifecycle,l=r.onClickOverlay,c=r.placement,u=r.styles;if(i||s!==_D.TOOLTIP)return null;var d=u.overlay;QD()&&(d="center"===c?u.overlayLegacyCenter:u.overlayLegacy);var p=kD({cursor:a?"default":"pointer",height:oP(),pointerEvents:t?"none":"auto"},d),f="center"!==c&&n&&o.createElement(jP,{styles:this.spotlightStyles});if("safari"===VD()){p.mixBlendMode,p.zIndex;var h=ID(p,SP);f=o.createElement("div",{style:kD({},h)},f),delete p.backgroundColor}return o.createElement("div",{className:"react-joyride__overlay",style:p,onClick:l},f)}}]),n}(o.Component),ZP=["styles"],OP=["color","height","width"];function EP(e){var t=e.styles,n=ID(e,ZP),r=t.color,i=t.height,a=t.width,s=ID(t,OP);return o.createElement("button",PD({style:s,type:"button"},n),o.createElement("svg",{width:"number"===typeof a?"".concat(a,"px"):a,height:"number"===typeof i?"".concat(i,"px"):i,viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},o.createElement("g",null,o.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))}var DP=function(e){AD(n,e);var t=BD(n);function n(){return ZD(this,n),t.apply(this,arguments)}return ED(n,[{key:"render",value:function(){var e=this.props,t=e.backProps,n=e.closeProps,r=e.continuous,i=e.index,a=e.isLastStep,s=e.primaryProps,l=e.size,c=e.skipProps,u=e.step,d=e.tooltipProps,p=u.content,f=u.hideBackButton,h=u.hideCloseButton,m=u.hideFooter,v=u.showProgress,g=u.showSkipButton,y=u.title,b=u.styles,x=u.locale,w=x.back,C=x.close,j=x.last,S=x.next,k=x.skip,Z={primary:C};return r&&(Z.primary=a?j:S,v&&(Z.primary=o.createElement("span",null,Z.primary," (",i+1,"/",l,")"))),g&&!a&&(Z.skip=o.createElement("button",PD({style:b.buttonSkip,type:"button","aria-live":"off"},c),k)),!f&&i>0&&(Z.back=o.createElement("button",PD({style:b.buttonBack,type:"button"},t),w)),Z.close=!h&&o.createElement(EP,PD({styles:b.buttonClose},n)),o.createElement("div",PD({key:"JoyrideTooltip",className:"react-joyride__tooltip",style:b.tooltip},d),o.createElement("div",{style:b.tooltipContainer},y&&o.createElement("h4",{style:b.tooltipTitle,"aria-label":y},y),o.createElement("div",{style:b.tooltipContent},p)),!m&&o.createElement("div",{style:b.tooltipFooter},o.createElement("div",{style:b.tooltipFooterSpacer},Z.skip),Z.back,o.createElement("button",PD({style:b.buttonNext,type:"button"},s),Z.primary)),Z.close)}}]),n}(o.Component),PP=["beaconComponent","tooltipComponent"],AP=function(e){AD(n,e);var t=BD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return DD(RD(e=t.call.apply(t,[this].concat(o))),"handleClickBack",(function(t){t.preventDefault(),e.props.helpers.prev()})),DD(RD(e),"handleClickClose",(function(t){t.preventDefault(),e.props.helpers.close()})),DD(RD(e),"handleClickPrimary",(function(t){t.preventDefault();var n=e.props,r=n.continuous,o=n.helpers;r?o.next():o.close()})),DD(RD(e),"handleClickSkip",(function(t){t.preventDefault(),e.props.helpers.skip()})),DD(RD(e),"getElementsProps",(function(){var t=e.props,n=t.continuous,r=t.isLastStep,o=t.setTooltipRef,i=t.step,a=qD(i.locale.back),s=qD(i.locale.close),l=qD(i.locale.last),c=qD(i.locale.next),u=qD(i.locale.skip),d=n?c:s;return r&&(d=l),{backProps:{"aria-label":a,"data-action":"back",onClick:e.handleClickBack,role:"button",title:a},closeProps:{"aria-label":s,"data-action":"close",onClick:e.handleClickClose,role:"button",title:s},primaryProps:{"aria-label":d,"data-action":"primary",onClick:e.handleClickPrimary,role:"button",title:d},skipProps:{"aria-label":u,"data-action":"skip",onClick:e.handleClickSkip,role:"button",title:u},tooltipProps:{"aria-modal":!0,ref:o,role:"alertdialog"}}})),e}return ED(n,[{key:"render",value:function(){var e=this.props,t=e.continuous,n=e.index,r=e.isLastStep,i=e.size,a=e.step;a.beaconComponent;var s,l=a.tooltipComponent,c=ID(a,PP);if(l){var u=kD(kD({},this.getElementsProps()),{},{continuous:t,index:n,isLastStep:r,size:i,step:c}),d=l;s=o.createElement(d,u)}else s=o.createElement(DP,PD({},this.getElementsProps(),{continuous:t,index:n,isLastStep:r,size:i,step:a}));return s}}]),n}(o.Component),MP=function(e){AD(n,e);var t=BD(n);function n(){return ZD(this,n),t.apply(this,arguments)}return ED(n,[{key:"componentDidMount",value:function(){HD&&(WD||this.renderReact15())}},{key:"componentDidUpdate",value:function(){HD&&(WD||this.renderReact15())}},{key:"componentWillUnmount",value:function(){HD&&this.node&&(WD||g.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var e=this.props.id;this.node||(this.node=document.createElement("div"),e&&(this.node.id=e),document.body.appendChild(this.node))}},{key:"renderReact15",value:function(){if(!HD)return null;var e=this.props.children;return this.node||this.appendNode(),g.unstable_renderSubtreeIntoContainer(this,e,this.node),null}},{key:"renderReact16",value:function(){if(!HD||!WD)return null;var e=this.props.children;return this.node||this.appendNode(),g.createPortal(e,this.node)}},{key:"render",value:function(){return WD?this.renderReact16():null}}]),n}(o.Component),TP=function(e){AD(n,e);var t=BD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return DD(RD(e=t.call.apply(t,[this].concat(o))),"scope",{removeScope:function(){}}),DD(RD(e),"handleClickHoverBeacon",(function(t){var n=e.props,r=n.step,o=n.update;"mouseenter"===t.type&&"hover"!==r.event||o({lifecycle:_D.TOOLTIP})})),DD(RD(e),"handleClickOverlay",(function(){var t=e.props,n=t.helpers;t.step.disableOverlayClose||n.close()})),DD(RD(e),"setTooltipRef",(function(t){e.tooltip=t})),DD(RD(e),"setPopper",(function(t,n){var r=e.props,o=r.action,i=r.setPopper,a=r.update;"wrapper"===n?e.beaconPopper=t:e.tooltipPopper=t,i(t,n),e.beaconPopper&&e.tooltipPopper&&a({action:o===LD.CLOSE?LD.CLOSE:o,lifecycle:_D.READY})})),e}return ED(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.debug,n=e.index;$D({title:"step:".concat(n),data:[{key:"props",value:this.props}],debug:t})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.action,r=t.callback,o=t.continuous,i=t.controlled,a=t.debug,s=t.index,l=t.lifecycle,c=t.size,u=t.status,d=t.step,p=t.update,f=uO(e,this.props),h=f.changed,m=f.changedFrom,v={action:n,controlled:i,index:s,lifecycle:l,size:c,status:u},g=o&&n!==LD.CLOSE&&(s>0||n===LD.PREV),y=h("action")||h("index")||h("lifecycle")||h("status"),b=m("lifecycle",[_D.TOOLTIP,_D.INIT],_D.INIT);if(h("action",[LD.NEXT,LD.PREV,LD.SKIP,LD.CLOSE])&&(b||i)&&r(kD(kD({},v),{},{index:e.index,lifecycle:_D.COMPLETE,step:e.step,type:ND.STEP_AFTER})),"center"===d.placement&&u===zD.RUNNING&&h("index")&&n!==LD.START&&l===_D.INIT&&p({lifecycle:_D.READY}),y){var x=iP(d.target),w=!!x,C=w&&function(e){if(!e)return!1;for(var t=e;t&&t!==document.body;){if(t instanceof HTMLElement){var n=getComputedStyle(t),r=n.display,o=n.visibility;if("none"===r||"hidden"===o)return!1}t=t.parentNode}return!0}(x);C?(m("status",zD.READY,zD.RUNNING)||m("lifecycle",_D.INIT,_D.READY))&&r(kD(kD({},v),{},{step:d,type:ND.STEP_BEFORE})):(console.warn(w?"Target not visible":"Target not mounted",d),r(kD(kD({},v),{},{type:ND.TARGET_NOT_FOUND,step:d})),i||p({index:s+(-1!==[LD.PREV].indexOf(n)?-1:1)}))}m("lifecycle",_D.INIT,_D.READY)&&p({lifecycle:JD(d)||g?_D.TOOLTIP:_D.BEACON}),h("index")&&$D({title:"step:".concat(l),data:[{key:"props",value:this.props}],debug:a}),h("lifecycle",_D.BEACON)&&r(kD(kD({},v),{},{step:d,type:ND.BEACON})),h("lifecycle",_D.TOOLTIP)&&(r(kD(kD({},v),{},{step:d,type:ND.TOOLTIP})),this.scope=new wP(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus()),m("lifecycle",[_D.TOOLTIP,_D.INIT],_D.INIT)&&(this.scope.removeScope(),delete this.beaconPopper,delete this.tooltipPopper)}},{key:"componentWillUnmount",value:function(){this.scope.removeScope()}},{key:"open",get:function(){var e=this.props,t=e.step,n=e.lifecycle;return!(!JD(t)&&n!==_D.TOOLTIP)}},{key:"render",value:function(){var e=this.props,t=e.continuous,n=e.debug,r=e.helpers,i=e.index,a=e.lifecycle,s=e.nonce,l=e.shouldScroll,c=e.size,u=e.step,d=iP(u.target);return bP(u)&&yO.domElement(d)?o.createElement("div",{key:"JoyrideStep-".concat(i),className:"react-joyride__step"},o.createElement(MP,{id:"react-joyride-portal"},o.createElement(kP,PD({},u,{debug:n,lifecycle:a,onClickOverlay:this.handleClickOverlay}))),o.createElement(jD,PD({component:o.createElement(AP,{continuous:t,helpers:r,index:i,isLastStep:i+1===c,setTooltipRef:this.setTooltipRef,size:c,step:u}),debug:n,getPopper:this.setPopper,id:"react-joyride-step-".concat(i),isPositioned:u.isFixed||cP(d),open:this.open,placement:u.placement,target:u.target},u.floaterProps),o.createElement(CP,{beaconComponent:u.beaconComponent,locale:u.locale,nonce:s,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:l,styles:u.styles}))):null}}]),n}(o.Component),IP=function(e){AD(n,e);var t=BD(n);function n(e){var r;return ZD(this,n),DD(RD(r=t.call(this,e)),"initStore",(function(){var e=r.props,t=e.debug,n=e.getHelpers,o=e.run,i=e.stepIndex;r.store=new nP(kD(kD({},r.props),{},{controlled:o&&yO.number(i)})),r.helpers=r.store.getHelpers();var a=r.store.addListener;return $D({title:"init",data:[{key:"props",value:r.props},{key:"state",value:r.state}],debug:t}),a(r.syncState),n(r.helpers),r.store.getState()})),DD(RD(r),"callback",(function(e){var t=r.props.callback;yO.function(t)&&t(e)})),DD(RD(r),"handleKeyboard",(function(e){var t=r.state,n=t.index,o=t.lifecycle,i=r.props.steps[n],a=window.Event?e.which:e.keyCode;o===_D.TOOLTIP&&27===a&&i&&!i.disableCloseOnEsc&&r.store.close()})),DD(RD(r),"syncState",(function(e){r.setState(e)})),DD(RD(r),"setPopper",(function(e,t){"wrapper"===t?r.beaconPopper=e:r.tooltipPopper=e})),DD(RD(r),"shouldScroll",(function(e,t,n,r,o,i,a){return!e&&(0!==t||n||r===_D.TOOLTIP)&&"center"!==o.placement&&(!o.isFixed||!cP(i))&&a.lifecycle!==r&&-1!==[_D.BEACON,_D.TOOLTIP].indexOf(r)})),r.state=r.initStore(),r}return ED(n,[{key:"componentDidMount",value:function(){if(HD){var e=this.props,t=e.disableCloseOnEsc,n=e.debug,r=e.run,o=e.steps,i=this.store.start;xP(o,n)&&r&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}}},{key:"componentDidUpdate",value:function(e,t){if(HD){var n=this.state,r=n.action,o=n.controlled,i=n.index,a=n.lifecycle,s=n.status,l=this.props,c=l.debug,u=l.run,d=l.stepIndex,p=l.steps,f=e.steps,h=e.stepIndex,m=this.store,v=m.reset,g=m.setSteps,y=m.start,b=m.stop,x=m.update,w=uO(e,this.props).changed,C=uO(t,this.state),j=C.changed,S=C.changedFrom,k=yP(p[i],this.props),Z=!XD(f,p),O=yO.number(d)&&w("stepIndex"),E=iP(null===k||void 0===k?void 0:k.target);if(Z&&(xP(p,c)?g(p):console.warn("Steps are not valid",p)),w("run")&&(u?y(d):b()),O){var D=h<d?LD.NEXT:LD.PREV;r===LD.STOP&&(D=LD.START),-1===[zD.FINISHED,zD.SKIPPED].indexOf(s)&&x({action:r===LD.CLOSE?LD.CLOSE:D,index:d,lifecycle:_D.INIT})}o||s!==zD.RUNNING||0!==i||E||(x({index:i+1}),this.callback(kD(kD({},this.state),{},{type:ND.TARGET_NOT_FOUND,step:k})));var P=kD(kD({},this.state),{},{index:i,step:k});if(j("action",[LD.NEXT,LD.PREV,LD.SKIP,LD.CLOSE])&&j("status",zD.PAUSED)){var A=yP(p[t.index],this.props);this.callback(kD(kD({},P),{},{index:t.index,lifecycle:_D.COMPLETE,step:A,type:ND.STEP_AFTER}))}if(j("status",[zD.FINISHED,zD.SKIPPED])){var M=yP(p[t.index],this.props);o||this.callback(kD(kD({},P),{},{index:t.index,lifecycle:_D.COMPLETE,step:M,type:ND.STEP_AFTER})),this.callback(kD(kD({},P),{},{index:t.index,step:M,type:ND.TOUR_END})),v()}else S("status",[zD.IDLE,zD.READY],zD.RUNNING)?this.callback(kD(kD({},P),{},{type:ND.TOUR_START})):(j("status")||j("action",LD.RESET))&&this.callback(kD(kD({},P),{},{type:ND.TOUR_STATUS}));k&&(this.scrollToStep(t),"center"===k.placement&&s===zD.RUNNING&&r===LD.START&&a===_D.INIT&&x({lifecycle:_D.READY}))}}},{key:"componentWillUnmount",value:function(){this.props.disableCloseOnEsc||document.body.removeEventListener("keydown",this.handleKeyboard)}},{key:"scrollToStep",value:function(e){var t=this.state,n=t.index,r=t.lifecycle,o=t.status,i=this.props,a=i.debug,s=i.disableScrolling,l=i.disableScrollParentFix,c=i.scrollToFirstStep,u=i.scrollOffset,d=i.scrollDuration,p=yP(i.steps[n],this.props);if(p){var f=iP(p.target),h=this.shouldScroll(s,n,c,r,p,f,e);if(o===zD.RUNNING&&h){var m=lP(f,l),v=sP(f,l),g=Math.floor(dP(f,u,l))||0;if($D({title:"scrollToStep",data:[{key:"index",value:n},{key:"lifecycle",value:r},{key:"status",value:o}],debug:a}),r===_D.BEACON&&this.beaconPopper){var y=this.beaconPopper,b=y.placement,x=y.popper;-1!==["bottom"].indexOf(b)||m||(g=Math.floor(x.top-u))}else if(r===_D.TOOLTIP&&this.tooltipPopper){var w=this.tooltipPopper,C=w.flipped,j=w.placement,S=w.popper;-1===["top","right","left"].indexOf(j)||C||m?g-=p.spotlightPadding:g=Math.floor(S.top-u)}g=g>=0?g:0,o===zD.RUNNING&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pP(),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300;new Promise((function(r,o){var i=t.scrollTop,a=e>i?e-i:i-e;CO().top(t,e,{duration:a<100?50:n},(function(e){return e&&"Element already at target scroll position"!==e.message?o(e):r()}))}))}(g,v,d)}}}},{key:"render",value:function(){if(!HD)return null;var e,t=this.state,n=t.index,r=t.status,i=this.props,a=i.continuous,s=i.debug,l=i.nonce,c=i.scrollToFirstStep,u=yP(i.steps[n],this.props);return r===zD.RUNNING&&u&&(e=o.createElement(TP,PD({},this.state,{callback:this.callback,continuous:a,debug:s,setPopper:this.setPopper,helpers:this.helpers,nonce:l,shouldScroll:!u.disableScrolling&&(0!==n||c),step:u,update:this.store.update}))),o.createElement("div",{className:"react-joyride"},e)}}]),n}(o.Component);DD(IP,"defaultProps",{continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:function(){},hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]});var RP,FP=n(38469),BP=n(99925),LP={boxShadow:"6px 6px 15px rgba(56, 69, 114, 0.1)",border:"1px solid #FFFFFF",borderRadius:"1rem",p:"1.3rem",background:"rgba(256, 256, 256, 0.25)"},NP=function(e){var t,n=e.continuous,r=e.index,o=e.step,i=e.isLastStep,a=e.backProps,s=e.skipProps,c=e.primaryProps,d=e.tooltipProps;return(0,u.jsx)(tn,(0,l.Z)((0,l.Z)({},d),{},{sx:(0,l.Z)({},LP),children:(0,u.jsx)(ao.Z,{sx:{maxWidth:"27em",padding:"2em",borderRadius:"0.5rem"},children:(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsxs)(nn.Z,{direction:"row",sx:{my:"auto",justifyContent:"space-between"},children:[(0,u.jsx)(rn.Z,{variant:"heading3",sx:{alignSelf:"center",color:"primaryDark.600"},children:null===(t=o.title)||void 0===t?void 0:t.toString().toUpperCase()}),(0,u.jsx)(io.Z,{children:(0,u.jsx)(FP.Z,{sx:{color:"primaryDark.500"},onClick:function(e){return s.onClick(e)}})})]}),(0,u.jsx)(un,{}),(0,u.jsx)(rn.Z,{sx:{color:"primaryDark.500"},variant:"body2",children:o.content}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{direction:"row",spacing:2,sx:{justifyContent:"end"},children:[0===r?(0,u.jsx)(ko.Z,(0,l.Z)((0,l.Z)({},s),{},{variant:"outlined",sx:{borderColor:"primaryDark.300",borderRadius:"4px",width:"120px",height:"45px"},children:(0,u.jsx)(rn.Z,{sx:{color:"primaryDark.600"},variant:"heading4",children:"EXIT"})})):(0,u.jsx)(ko.Z,(0,l.Z)((0,l.Z)({},a),{},{variant:"outlined",sx:{borderColor:"primaryDark.300",borderRadius:"4px",width:"120px",height:"45px"},children:(0,u.jsx)(rn.Z,{sx:{color:"primaryDark.600"},variant:"heading4",children:"BACK"})})),n&&(0,u.jsx)(ko.Z,(0,l.Z)((0,l.Z)({sx:{backgroundColor:"primaryLight.500",borderRadius:"4px",width:"120px",height:"45px"},variant:"contained"},c),{},{endIcon:!i&&(0,u.jsx)(BP.Z,{}),children:(0,u.jsx)(rn.Z,{sx:{color:"common.white"},variant:"heading4",children:i?"DONE":"NEXT"})}))]})]})})}))},_P={disableBeacon:!0,hideCloseButton:!1,hideFooter:!1,placement:"auto",styles:{options:{zIndex:1e4}}},zP=function(e){return[(0,l.Z)((0,l.Z)({content:(0,u.jsx)(rn.Z,{children:"Here you can view and filter your contracts across all statuses. For example, to view only active contracts, navigate to Active and click it. Let's go through all statuses in more detail."})},_P),{},{disableScrolling:!0,target:".react-joyride-step-1-contracts",title:"Contracts status"}),(0,l.Z)((0,l.Z)({content:(0,u.jsx)(rn.Z,{children:"Contracts in Active status have been activated by TDA admins. This means that all terms have been finalized and you can start working on the project."})},_P),{},{disableScrolling:!0,target:".react-joyride-step-2-contracts",title:"Active status"}),(0,l.Z)((0,l.Z)({content:(0,u.jsx)(rn.Z,{children:"Contracts in Negotiation status are still in the editing process. Once all terms have been agreed upon, the next step is to sign your contract."})},_P),{},{disableScrolling:!0,target:".react-joyride-step-3-contracts",title:"Negotiation status"}),(0,l.Z)((0,l.Z)({content:(0,u.jsx)(rn.Z,{children:"Contracts in Accepted status have been successfully submitted by both parties. They need to be signed through DocuSign and activated by TDA admins."})},_P),{},{disableScrolling:!0,target:".react-joyride-step-4-contracts",title:"Accepted status"}),(0,l.Z)((0,l.Z)({content:(0,u.jsx)(rn.Z,{children:"Contracts in Canceled status have been terminated and are no longer ongoing on the platform."})},_P),{},{disableScrolling:!0,target:".react-joyride-step-5-contracts",title:"Canceled status"}),(0,l.Z)((0,l.Z)({content:(0,u.jsx)(rn.Z,{children:"You can sort your contracts by date created, date signed or by alphabetical order."})},_P),{},{disableScrolling:!0,target:".react-joyride-step-6-contracts",title:"Sort By"}),(0,l.Z)((0,l.Z)({content:(0,u.jsx)(rn.Z,{children:"Your contract folder will give you an overview of all documentation created during a project. To view all contracts and annexes in more detail, click a project folder."})},_P),{},{target:".react-joyride-step-7-contracts",title:"Project documentation"})]},HP={disableBeacon:!0,hideCloseButton:!1,hideFooter:!1,placement:"auto",styles:{options:{zIndex:10}}},WP=function(e){return[(0,l.Z)((0,l.Z)({title:"Projects Screen",content:(0,u.jsx)(rn.Z,{children:"Welcome to your Projects screen. Here you can perform all essential project management actions and view all related project data."}),target:".react-joyride-step-1"},HP),{},{disableScrolling:!0}),(0,l.Z)((0,l.Z)({title:"Messaging",content:(0,u.jsx)(rn.Z,{children:"Our messaging feature is currently in progress. Get in touch with your buyer and the Spona support team, share files, schedule meetings and more."})},HP),{},{disableScrolling:!0,target:".react-joyride-step-2"}),(0,l.Z)((0,l.Z)({title:"Calendar",content:(0,u.jsx)(rn.Z,{children:"Click the calendar icon to check your project schedule. You can also use the calendar to create new events and invite participants."})},HP),{},{disableScrolling:!0,target:".react-joyride-step-3"}),(0,l.Z)((0,l.Z)({title:"Notifications",content:(0,u.jsx)(rn.Z,{children:"Click the bell icon to see all your project activities. When you have unread notifications, a purple dot will appear next to the bell."})},HP),{},{disableScrolling:!0,target:".react-joyride-step-4"}),(0,l.Z)((0,l.Z)({title:"Payment summary",content:(0,u.jsx)(rn.Z,{children:"Start working on a project to get an overview of your most recent transactions on the platform."})},HP),{},{disableScrolling:!0,target:".react-joyride-step-5"}),(0,l.Z)((0,l.Z)({title:"Upcoming deadlines",content:(0,u.jsx)(rn.Z,{children:"Start working on a project to view deadlines on your most recent milestones and tasks across projects."})},HP),{},{disableScrolling:!0,target:".react-joyride-step-6"}),(0,l.Z)((0,l.Z)({title:e?"Outgoing payments":"Earnings",content:e?(0,u.jsx)(rn.Z,{children:"The outgoing payments graph shows your finalized and upcoming payments across your desired time period. Filter it by 1 month, 6 months or a year."}):(0,u.jsx)(rn.Z,{children:"The earnings graph shows your received and upcoming earnings across your desired time period. Filter it by 1 month, 6 months or a year."})},HP),{},{disableScrolling:!0,target:".react-joyride-step-7"}),(0,l.Z)((0,l.Z)({title:"Contracts",content:(0,u.jsx)(rn.Z,{children:"Click the contracts button to go to your contracts screen. There you can get a detailed overview of how your contracts are progressing."})},HP),{},{disableScrolling:!0,target:".react-joyride-step-8"}),(0,l.Z)((0,l.Z)({title:"Project status",content:(0,u.jsx)(rn.Z,{children:"Take a look at your current status across all projects. Clicking a status will filter your data - for example, clicking In progress shows only projects that are currently being worked on."})},HP),{},{target:".react-joyride-step-9"}),(0,l.Z)((0,l.Z)({title:"Project screen",content:(0,u.jsx)(rn.Z,{children:"Click anywhere on a project entry to enter that project's screen. You can do that right now to continue setting up your first project."})},HP),{},{target:".react-joyride-step-10"})]},VP=function(e){return[{content:(0,u.jsx)(rn.Z,{children:"The contracts screen shows all of your contracts on the platform."}),disableBeacon:!0,hideCloseButton:!1,disableScrolling:!0,hideFooter:!1,placement:"auto",styles:{options:{zIndex:10}},target:".react-joyride-step-1-individual-contract",title:"Individual contract screen"},{content:(0,u.jsx)(rn.Z,{children:"The contract overview screen shows your contract status, date of creation and signing. Once your contract has been fully activated, you will be able to download it by navigating to the Download PDF button and clicking it."}),disableBeacon:!0,hideCloseButton:!1,disableScrolling:!0,hideFooter:!1,placement:"auto",styles:{options:{zIndex:10}},target:".react-joyride-step-2-individual-contract",title:"Contract overview"},{content:e?(0,u.jsx)(rn.Z,{children:"Navigate to the edit button and click it to create a contract annex. It will need to be reviewed and signed by your agency for the changes to apply."}):(0,u.jsx)(rn.Z,{children:"Navigate to the edit button and click it to create a contract annex. It will need to be reviewed and signed by your client for the changes to apply."}),disableBeacon:!0,hideCloseButton:!1,disableScrolling:!0,hideFooter:!1,placement:"auto",styles:{options:{zIndex:10}},target:".react-joyride-step-3-individual-contract",title:"Edit contract"},{content:e?(0,u.jsx)(rn.Z,{children:"Navigate to the cancel button and click it to cancel your contract. Be careful, as this will signal that you want to terminate your current progress and cooperation with your agency."}):(0,u.jsx)(rn.Z,{children:"Navigate to the cancel button and click it to cancel your contract. Be careful, as this will signal that you want to terminate your current progress and cooperation with your client."}),disableBeacon:!0,hideCloseButton:!1,disableScrolling:!0,hideFooter:!1,placement:"auto",styles:{options:{zIndex:10}},target:".react-joyride-step-4-individual-contract",title:"Cancel contract"},{content:(0,u.jsx)(rn.Z,{children:"Modify your contract to create a contract annex. Here you can view all of your annexes, their statuses, date created and date signed, as well as download them."}),disableBeacon:!0,hideCloseButton:!1,disableScrolling:!0,hideFooter:!1,placement:"auto",styles:{options:{zIndex:10}},target:".react-joyride-step-5-individual-contract",title:"Annexes overview"}]},UP=function(e){return[{content:e?(0,u.jsxs)(rn.Z,{children:["Your individual payment screen gives you information essential to the completion of your project.",(0,u.jsx)("br",{}),"From payment overviews to downloadable invoices, here you will be able to manage all your payments to your agency."]}):(0,u.jsx)(rn.Z,{children:"Your individual payment screen gives you information essential to the completion of your project. From payment overviews to downloadable invoices, here you will be able to manage all your earnings."}),disableBeacon:!0,hideCloseButton:!1,disableScrolling:!0,hideFooter:!1,placement:"auto",styles:{options:{zIndex:10}},target:".react-joyride-step-1-individual-payment",title:"Individual payment screen"},{content:e?(0,u.jsx)(rn.Z,{children:"The payment overview screen shows your project status, cost, amount currently paid and remaining to be paid."}):(0,u.jsx)(rn.Z,{children:"The payment overview screen shows your project status, budget, current and expected earnings."}),disableBeacon:!0,hideCloseButton:!1,disableScrolling:!0,hideFooter:!1,placement:"auto",styles:{options:{zIndex:10}},target:".react-joyride-step-2-individual-payment",title:"Payment overview"},{content:(0,u.jsx)(rn.Z,{children:"Here you can view all your project payments across milestones, including statuses and payment amounts."}),disableBeacon:!0,hideCloseButton:!1,disableScrolling:!0,hideFooter:!1,placement:"auto",styles:{options:{zIndex:10}},target:".react-joyride-step-3-individual-payment",title:"Payment overview"},{content:e?(0,u.jsx)(rn.Z,{children:"Once a milestone has been completed, you will be able to access and download your invoice here to complete the payment process."}):(0,u.jsx)(rn.Z,{children:"Once a milestone has been approved by your client, you will be able to upload your invoice here to start the payment process."}),disableBeacon:!0,hideCloseButton:!1,disableScrolling:!0,hideFooter:!1,placement:"auto",styles:{options:{zIndex:10}},target:".react-joyride-step-4-individual-payment",title:"Invoice"}]},qP={disableBeacon:!0,hideCloseButton:!1,hideFooter:!1,placement:"auto",styles:{options:{zIndex:10}}},GP=function(e){return[(0,l.Z)((0,l.Z)({content:(0,u.jsx)(rn.Z,{children:"By adding a new milestone, you will automatically be creating a contract annex. Contract annexes need to be approved by the other party and signed before the changes are fully applied."})},qP),{},{target:".react-joyride-step-1-milestone",title:"Contract annex"}),(0,l.Z)((0,l.Z)({content:(0,u.jsx)(rn.Z,{children:"Use the milestone carousel to scroll through and enter any of your previous, current or upcoming milestones."})},qP),{},{target:".react-joyride-step-2-milestone",title:"Milestone carousel"}),(0,l.Z)((0,l.Z)({content:(0,u.jsx)(rn.Z,{children:"Click the action button to edit and flag your milestone. Editing your milestone will automatically create a contract annex, while flagging your milestone indicates an issue that needs to be resolved with the other party."})},qP),{},{target:".react-joyride-step-3-milestone",title:"Milestone actions"}),(0,l.Z)((0,l.Z)({content:(0,u.jsx)(rn.Z,{children:"Milestone status will be updated automatically as your seller completes tasks."})},qP),{},{target:".react-joyride-step-4-milestone",title:"Milestone status"}),(0,l.Z)((0,l.Z)({content:(0,u.jsx)(rn.Z,{children:"Once the seller finishes all tasks within the milestone and sends it for review, the Approve button will be enabled. By approving the milestone, you are proceeding with the payment process."})},qP),{},{target:".react-joyride-step-5-milestone",title:"Approve milestone"}),(0,l.Z)((0,l.Z)({content:(0,u.jsx)(rn.Z,{children:"Enter your task name and click the Add task button to create a task."})},qP),{},{target:".react-joyride-step-6-milestone",title:"Add tasks"})]},YP=function(e){return[{content:e?(0,u.jsx)(rn.Z,{children:"View a graph of your past and upcoming payments and filter your data by your desired time period."}):(0,u.jsx)(rn.Z,{children:"View a graph of your past and upcoming earnings and filter your data by your desired time period."}),disableBeacon:!0,hideCloseButton:!1,disableScrolling:!0,hideFooter:!1,placement:"auto",styles:{options:{zIndex:10}},target:".react-joyride-step-1-payments",title:"Total balance"},{content:e?(0,u.jsx)(rn.Z,{children:"Check your payment summary screen for an overview of all your payment statuses and payment amounts across projects and agencies."}):(0,u.jsx)(rn.Z,{children:"Check your payment summary screen for an overview of all your payment statuses and earnings across projects and agencies."}),disableBeacon:!0,hideCloseButton:!1,disableScrolling:!0,hideFooter:!1,placement:"auto",styles:{options:{zIndex:10}},target:".react-joyride-step-2-payments",title:"Payment summary"},{content:(0,u.jsx)(rn.Z,{children:"This visualization shows your overall spendings through your finalized and remaining payments across all projects."}),disableBeacon:!0,hideCloseButton:!1,hideFooter:!1,placement:"auto",styles:{options:{zIndex:10}},target:".react-joyride-step-3-payments",title:"Payment overview"},{content:e?(0,u.jsx)(rn.Z,{children:"Get a breakdown of your agencies and project budgets. The project status will tell you if the project is still ongoing, in negotiations or completed."}):(0,u.jsx)(rn.Z,{children:"Get a breakdown of your clients and project budgets. The project status will tell you if the project is still ongoing, in negotiations or completed."}),disableBeacon:!0,hideCloseButton:!1,hideFooter:!1,placement:"auto",styles:{options:{zIndex:10}},target:".react-joyride-step-4-payments",title:"Payment overview"},{content:(0,u.jsx)(rn.Z,{children:"Navigate to the arrow button to access the individual payment screen for each of your projects. Get more payment details and manage your invoices."}),disableBeacon:!0,hideCloseButton:!1,hideFooter:!1,placement:"auto",styles:{options:{zIndex:10}},target:".react-joyride-step-5-payments",title:"Individual payment screen"}]},KP={disableBeacon:!0,hideCloseButton:!1,hideFooter:!1,placement:"auto",styles:{options:{zIndex:10}}},JP=function(e){return[(0,l.Z)({title:"Navigation",content:(0,u.jsx)(rn.Z,{children:"Click Projects to return to the previous screen. Whenever you enter a new screen, you can use this navigation bar to take a step back at any time you want."}),target:".react-joyride-step-1-project"},KP),(0,l.Z)((0,l.Z)({title:"Project screen",disableScrolling:!0,content:(0,u.jsx)(rn.Z,{children:"This is your project screen. Here you can perform all activities connected to the project and navigate to other essential screens. First, let's start with your contract."})},KP),{},{target:".react-joyride-step-2-project"}),(0,l.Z)((0,l.Z)({title:"New contract",disableScrolling:!0,content:(0,u.jsx)(rn.Z,{children:"The first step is to create your digital contract. Either parties can start this process, but both need to edit the contract and agree to the terms to proceed. Once the contract is signed and activated, you can start working on the project. For now, let's take a closer look at the rest of your dashboard."})},KP),{},{target:".react-joyride-step-3-project"}),(0,l.Z)({title:"Contracts screen",disableScrolling:!0,content:(0,u.jsx)(rn.Z,{children:"Once you've created your contract, you can get a full overview of you contracts and all changes by clicking view all and going to your Contracts screen. There you can also download your signed contract and any annexes in pdf format."}),target:".react-joyride-step-4-project"},KP),(0,l.Z)((0,l.Z)({title:"Milestones",content:(0,u.jsx)(rn.Z,{children:"This is your milestone overview. Once you've signed your contract, you will be able to track all your milestones with their associated tasks on this screen."})},KP),{},{floaterProps:{disableFlip:!0},target:".react-joyride-step-5-project"}),(0,l.Z)((0,l.Z)({title:"Milestone screen",content:(0,u.jsx)(rn.Z,{children:'To view your current ""in progress"" milestone, click the explore button. It will take you to your milestone screen, where you can review tasks and subtasks and manage all aspects of your milestone.'})},KP),{},{target:".react-joyride-step-6-project"}),(0,l.Z)((0,l.Z)({title:"Milestone status",content:(0,u.jsx)(rn.Z,{children:"Your milestone status and completion percentage will update automatically as work on project milestones is completed."})},KP),{},{target:".react-joyride-step-7-project"}),(0,l.Z)((0,l.Z)({title:"Project health",content:(0,u.jsx)(rn.Z,{children:"Track how your project is doing by checking your project health frequently. All major updates will be reflected in one of the four main metrics. Let's go over them one by one."})},KP),{},{target:".react-joyride-step-8-project"}),(0,l.Z)((0,l.Z)({title:"Schedule",content:(0,u.jsx)(rn.Z,{children:"Check how your milestones are progressing - whether you're on, behind or ahead schedule."})},KP),{},{target:".react-joyride-step-9-project"}),(0,l.Z)((0,l.Z)({title:"Cost",content:(0,u.jsx)(rn.Z,{children:"The cost metric lets you know how your payments are progressing, whether you're over or under budget."})},KP),{},{target:".react-joyride-step-10-project"}),(0,l.Z)((0,l.Z)({title:"Scope",content:(0,u.jsx)(rn.Z,{children:"Your project scope shows all modifications to your originally signed contract."})},KP),{},{target:".react-joyride-step-11-project"}),(0,l.Z)((0,l.Z)({title:"Quality",content:(0,u.jsx)(rn.Z,{children:"The number of unresolved flagged issues will affect the quality of your project."})},KP),{},{target:".react-joyride-step-12-project"}),(0,l.Z)((0,l.Z)({title:"Payment overview",content:e?(0,u.jsx)(rn.Z,{children:"Start working on your project to check your upcoming and completed payments across milestones and download your invoices."}):(0,u.jsx)(rn.Z,{children:"Start working on your project to check your upcoming and received payments across milestones and download your invoices."})},KP),{},{target:".react-joyride-step-13-project"}),(0,l.Z)((0,l.Z)({title:"Request payment",content:(0,u.jsx)(rn.Z,{children:"After a milestone has been completed and approved, you will be able to upload an invoice for the buyer by clicking on request payment."})},KP),{},{target:".react-joyride-step-14-project"})]},XP=function(e){return[{content:e?(0,u.jsx)(rn.Z,{children:"Here you can check task status. Once all subtasks have been completed, the progress will be updated accordingly."}):(0,u.jsx)(rn.Z,{children:"Here you can check your task status. Once you have completed all subtasks, the progress will be updated accordingly. You can also change the status manually by clicking the status and changing it to Complete."}),disableBeacon:!0,hideCloseButton:!1,disableScrolling:!0,hideFooter:!1,placement:"left",styles:{options:{zIndex:10}},target:".react-joyride-step-1-task",title:"Task status"},{content:(0,u.jsx)(rn.Z,{children:"If you come across an issue with the task, click flag task to alert your agency and resolve the problem as quickly as possible."}),disableBeacon:!0,hideCloseButton:!1,disableScrolling:!0,hideFooter:!1,placement:"auto",styles:{options:{zIndex:10}},target:".react-joyride-step-2-task",title:"Flag task"},{content:e?(0,u.jsx)(rn.Z,{children:"Click the Delete button to permanently delete the task. Your agency will be notified of this action."}):(0,u.jsx)(rn.Z,{children:"Click the Delete button to permanently delete the task. Your client will be notified of this action."}),disableBeacon:!0,hideCloseButton:!1,disableScrolling:!0,hideFooter:!1,placement:"auto",styles:{options:{zIndex:10}},target:".react-joyride-step-3-task",title:"Delete task"},{content:(0,u.jsx)(rn.Z,{children:"Click the Edit button to change the task description, name and schedule."}),disableBeacon:!0,hideCloseButton:!1,hideFooter:!1,placement:"auto",styles:{options:{zIndex:10}},target:".react-joyride-step-4-task",title:"Edit task"},{content:(0,u.jsx)(rn.Z,{children:"View all subtasks within a task and filter them by a particular status. For example, click on To do to see only subtasks that haven't been started yet."}),disableBeacon:!0,hideCloseButton:!1,hideFooter:!1,placement:"auto",styles:{options:{zIndex:10}},target:".react-joyride-step-5-task",title:"Subtasks overview"},{content:(0,u.jsx)(rn.Z,{children:"Click the Add subtask button to create a subtask - add a name and end date and press the Confirm button."}),disableBeacon:!0,hideCloseButton:!1,hideFooter:!1,placement:"auto",styles:{options:{zIndex:10}},target:".react-joyride-step-6-task",title:"Add subtask"},{content:e?(0,u.jsx)(rn.Z,{children:"Once a subtask has been completed, this checkmark will be marked green. The overall task progress will be updated accordingly."}):(0,u.jsx)(rn.Z,{children:"Click on the checkmark icon to mark your subtask as complete. The overall task progress will be updated accordingly."}),disableBeacon:!0,hideCloseButton:!1,hideFooter:!1,placement:"auto",styles:{options:{zIndex:10}},target:".react-joyride-step-7-task",title:"Finish subtask"},{content:(0,u.jsx)(rn.Z,{children:"Clicking the action button gets you access to multiple useful actions, such as flag, edit and delete subtask."}),disableBeacon:!0,hideCloseButton:!1,hideFooter:!1,placement:"auto",styles:{options:{zIndex:10}},target:".react-joyride-step-8-task",title:"Subtask actions"}]},QP={run:!1,stepIndex:0,steps:[],disableScrolling:!1},$P=function(){var e=(0,ze.TH)(),t=(0,ze.UO)(),n=(0,o.useState)((0,l.Z)({},QP)),r=(0,Le.Z)(n,2),i=r[0],a=r[1],s=(0,o.useState)(Pa()),c=(0,Le.Z)(s,2),u=c[0],d=c[1],p=(0,As.Z)({resource:"/users"}).mutate,f=function(e){p({id:null===u||void 0===u?void 0:u.id,data:{tutorialStatus:[].concat((0,dn.Z)((null===u||void 0===u?void 0:u.tutorialStatus)||[]),[e])}},{onSuccess:function(e){e&&e.data&&(localStorage.setItem("userData",JSON.stringify(e.data)),d(e.data))}})},h=Yd(),m=(null===h||void 0===h?void 0:h.includes(Kt.ks.Buyer))||!1,v=function(t){return e.pathname.includes(t)},g=document.querySelector("html"),y=function(){g&&(window.scrollTo(0,0),g.style.overflow="hidden",a((0,l.Z)((0,l.Z)({},i),{},{run:!0})),window.scrollTo(0,0))},b=function(e){a((0,l.Z)((0,l.Z)({},i),e))},x=null===u||void 0===u?void 0:u.tutorialStatus;return(0,o.useEffect)((function(){g&&(i.run||(g.style.overflow="auto"))}),[i.run]),(0,o.useEffect)((function(){switch(!0){case v("/dashboard/end-to-end/project"):b({steps:JP(m)});break;case v("/dashboard/end-to-end/payments"):t.paymentId?b({steps:UP(m)}):b({steps:YP(m)});break;case v("/dashboard/end-to-end/contracts"):t.projectId?b({steps:VP(m)}):b({steps:zP(m)});break;case v("/dashboard/end-to-end/task"):b({steps:XP(m)});break;case v("/dashboard/end-to-end/milestone"):b({steps:GP(m)});break;case v("/dashboard/end-to-end"):b({steps:WP(m)})}}),[e]),(0,o.useEffect)((function(){i.steps.length>0&&setTimeout((function(){switch(!0){case v("/dashboard/end-to-end/project"):(null===x||void 0===x||!x.includes(Kt.y$.ProjectDetail))&&i.steps.length>0&&(f(Kt.y$.ProjectDetail),y());break;case v("/dashboard/end-to-end/payments"):t.paymentId?(null===x||void 0===x||!x.includes(Kt.y$.IndividualPayment))&&i.steps.length>0&&(f(Kt.y$.IndividualPayment),y()):(null===x||void 0===x||!x.includes(Kt.y$.PaymentDetail))&&i.steps.length>0&&(f(Kt.y$.PaymentDetail),y());break;case v("/dashboard/end-to-end/contracts"):(null===x||void 0===x||!x.includes(Kt.y$.ContractDetail))&&i.steps.length>0&&(f(Kt.y$.ContractDetail),y());break;case v("/dashboard/end-to-end/task"):(null===x||void 0===x||!x.includes(Kt.y$.TaskDetail))&&i.steps.length>0&&(f(Kt.y$.TaskDetail),y());break;case v("/dashboard/end-to-end/milestone"):(null===x||void 0===x||!x.includes(Kt.y$.MilestoneDetail))&&i.steps.length>0&&(f(Kt.y$.MilestoneDetail),y());break;case v("/dashboard/end-to-end"):(null===x||void 0===x||!x.includes(Kt.y$.EndToEnd))&&i.steps.length>0&&(f(Kt.y$.EndToEnd),y())}}),200)}),[i.steps]),{joyride:i,setJoyride:a,runJoyride:y,updateJoyride:function(e){var t=e.action,n=e.index,r=e.status,o=e.type;if([zD.FINISHED,zD.SKIPPED].includes(r))b({run:!1,stepIndex:0});else if([ND.STEP_AFTER,ND.TARGET_NOT_FOUND].includes(o)){var a=n+(t===LD.PREV?-1:1);n!==i.steps.length-1?b({stepIndex:a}):n===i.steps.length-1&&b(1===a?{run:!1}:{stepIndex:a})}},updateJoyrideState:b,tutorials:x,update:f}},eA=["title","titleId"];function tA(){return tA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tA.apply(this,arguments)}function nA(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function rA(e,t){var n=e.title,r=e.titleId,i=nA(e,eA);return o.createElement("svg",tA({width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,RP||(RP=o.createElement("path",{d:"M10.5 0.5C4.977 0.5 0.5 4.977 0.5 10.5C0.5 16.023 4.977 20.5 10.5 20.5C16.023 20.5 20.5 16.023 20.5 10.5C20.5 4.977 16.023 0.5 10.5 0.5ZM10.5 5.5C12.155 5.5 13.494 6.844 13.5 8.5C13.504 9.609 12.984 10.544 12.125 11.406C11.945 11.587 11.772 11.761 11.562 11.938C11.463 12.022 11.186 12.225 11.156 12.25C10.734 12.606 10.106 12.579 9.75 12.156C9.394 11.734 9.453 11.075 9.875 10.719C9.921 10.68 10.166 10.477 10.25 10.406C10.418 10.265 10.585 10.134 10.719 10C11.238 9.478 11.502 8.978 11.5 8.5C11.498 7.944 11.051 7.5 10.5 7.5C10.043 7.5 9.64601 7.816 9.53101 8.25C9.39001 8.784 8.846 9.10999 8.312 8.96899C7.779 8.82799 7.45299 8.25299 7.59399 7.71899C7.93899 6.41199 9.13 5.5 10.5 5.5ZM10.5 13.5C11.052 13.5 11.5 13.948 11.5 14.5C11.5 15.052 11.052 15.5 10.5 15.5C9.948 15.5 9.5 15.052 9.5 14.5C9.5 13.948 9.948 13.5 10.5 13.5Z",fill:"current"})))}var oA,iA=o.forwardRef(rA),aA=(n.p,function(e){e.iconWidth,e.iconHeight;var t,n,r=e.elementsColor,i=void 0===r?"grey.700":r,a=e.anchorElHoverColor,s=void 0===a?"grey.600":a,l=(0,o.useState)(!1),c=(0,Le.Z)(l,2),d=c[0],p=c[1],f=$P(),h=f.joyride,m=f.runJoyride,v=f.updateJoyride;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(IP,{steps:h.steps,run:h.run,scrollDuration:400,scrollToFirstStep:!0,showSkipButton:!0,disableScrolling:h.steps[h.stepIndex]&&h.steps[h.stepIndex].disableScrolling,stepIndex:h.stepIndex,callback:function(e){return v(e)},continuous:!0,tooltipComponent:function(e){return NP(e)}}),(0,u.jsxs)(nn.Z,{alignItems:"center",justifyContent:"center",sx:{position:"relative",width:"fit-content"},children:[(0,u.jsx)(U.Z,{onClickAway:function(){return p(!1)},children:(0,u.jsx)(io.Z,{sx:{p:0},children:(0,u.jsx)(iA,{onClick:function(){return p((function(e){return!e}))},fill:"primaryDark.600",width:30,height:30,style:{cursor:"pointer"}})})}),d&&(0,u.jsxs)(NZ,{elevation:0,sx:{color:"common.white",bgcolor:i,left:-2,bottom:50,position:"absolute",overflow:"visible",zIndex:200},children:[(0,u.jsx)(tn,{sx:{position:"absolute",bottom:-7,left:7,transform:"scaleY(-1)",borderLeft:"10px solid transparent",borderRight:"10px solid transparent",borderBottom:"10px solid",borderBottomColor:i}}),(0,u.jsxs)(tn,{children:[(0,u.jsx)(nn.Z,{children:(0,u.jsx)(jZ,{onButtonClick:function(){p(!1),m()},sx:{zIndex:100,transition:"0.3s all ease",color:"#fff",borderRadius:"4px","&:hover":{bgcolor:s}},children:(0,u.jsx)(rn.Z,{sx:{px:2,py:1},children:"Help"})})}),(0,u.jsx)(nn.Z,{children:(t="/contact-us",n="Contact support",(0,u.jsx)(jZ,{href:t,onButtonClick:function(){},sx:{zIndex:100,transition:"0.3s all ease",color:"#fff",borderRadius:"4px","&:hover":{bgcolor:s}},children:(0,u.jsx)(rn.Z,{sx:{px:2,py:1},children:n})}))})]})]})]})]})}),sA=["title","titleId"];function lA(){return lA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lA.apply(this,arguments)}function cA(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function uA(e,t){var n=e.title,r=e.titleId,i=cA(e,sA);return o.createElement("svg",lA({width:18,height:17,viewBox:"0 0 18 17",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,oA||(oA=o.createElement("path",{d:"M9.00928 0.678467C8.28011 0.678467 7.56011 0.955966 7.00345 1.5118L0.910116 7.57928C0.584283 7.90512 0.584283 8.45177 0.910116 8.7776L2.34261 10.2101V13.1784C2.34261 15.0193 3.83511 16.5117 5.67595 16.5117H12.3426C14.1834 16.5117 15.6759 15.0193 15.6759 13.1784V10.2101L17.1076 8.7776C17.4334 8.45177 17.4334 7.90512 17.1076 7.57928C16.8251 7.29678 15.7901 6.25679 14.8426 5.31346V3.17846C14.8426 2.71846 14.4693 2.34513 14.0093 2.34513C13.5484 2.34513 13.1759 2.71846 13.1759 3.17846V3.67345C12.2843 2.78595 11.2843 1.7818 11.0143 1.5118C10.4576 0.955966 9.73761 0.678467 9.00928 0.678467Z",fill:"current"})))}var dA,pA=o.forwardRef(uA),fA=(n.p,["title","titleId"]);function hA(){return hA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hA.apply(this,arguments)}function mA(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function vA(e,t){var n=e.title,r=e.titleId,i=mA(e,fA);return o.createElement("svg",hA({width:18,height:17,viewBox:"0 0 18 17",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,dA||(dA=o.createElement("path",{d:"M9.0118 0.165771C7.86263 0.165771 6.9343 0.906609 6.6418 1.96244C5.88764 2.17161 5.24346 2.77993 5.00179 3.4991C4.55012 3.4991 4.15513 3.4991 4.0118 3.4991C2.17097 3.4991 0.678467 4.9916 0.678467 6.83243V13.4991C0.678467 15.3399 2.17097 16.8324 4.0118 16.8324H14.0118C15.8526 16.8324 17.3451 15.3399 17.3451 13.4991V6.83243C17.3451 4.9916 15.8526 3.4991 14.0118 3.4991L13.0218 3.52494C12.8193 2.82911 12.1243 2.09327 11.3818 1.9366C11.0893 0.88077 10.161 0.165771 9.0118 0.165771ZM9.0118 1.83244C9.4718 1.83244 9.84513 2.20577 9.84513 2.66577C9.84513 3.12577 10.2185 3.4991 10.6785 3.4991C11.1385 3.4991 11.5118 3.87243 11.5118 4.33243C11.5118 4.79243 11.1385 5.16576 10.6785 5.16576H7.34513C6.88513 5.16576 6.5118 4.79243 6.5118 4.33243C6.5118 3.87243 6.88513 3.4991 7.34513 3.4991C7.80513 3.4991 8.17847 3.12577 8.17847 2.66577C8.17847 2.20577 8.5518 1.83244 9.0118 1.83244ZM11.5118 8.49909C11.7251 8.49909 11.9476 8.57076 12.111 8.73326C12.436 9.0591 12.436 9.60575 12.111 9.93159L8.77763 13.2649C8.45179 13.5899 7.90514 13.5899 7.5793 13.2649L5.91264 11.5982C5.58764 11.2724 5.58764 10.7258 5.91264 10.3999C6.23847 10.0749 6.78513 10.0749 7.11096 10.3999L8.17847 11.4674L10.9126 8.73326C11.076 8.57076 11.2985 8.49909 11.5118 8.49909Z",fill:"current"})))}var gA,yA=o.forwardRef(vA),bA=(n.p,["title","titleId"]);function xA(){return xA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xA.apply(this,arguments)}function wA(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function CA(e,t){var n=e.title,r=e.titleId,i=wA(e,bA);return o.createElement("svg",xA({width:18,height:17,viewBox:"0 0 18 17",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,gA||(gA=o.createElement("path",{d:"M7.13674 0.352311C3.37924 1.21323 0.678406 4.57189 0.678406 8.47731C0.678406 9.08406 0.768411 9.82206 0.912577 10.4565C1.03508 10.9927 1.6259 11.2627 2.1109 11.0033C2.44923 10.8225 3.41173 10.3363 4.7934 9.64914C4.81173 9.63973 7.66506 8.21298 7.71006 8.19081C7.99423 8.05031 8.1784 7.75339 8.1784 7.43564C8.1784 7.38314 8.1584 1.70498 8.15257 1.15964C8.14673 0.627811 7.65507 0.233561 7.13674 0.352311ZM10.8867 0.352311C10.3692 0.233395 9.87841 0.628561 9.87091 1.15964C9.86341 1.74814 9.84507 6.59606 9.84507 7.48773C9.8484 7.81839 9.88007 8.00306 10.3401 8.24298C10.3984 8.27589 13.0201 9.53897 13.5692 9.80547C13.6842 9.86139 15.3884 10.7325 15.8867 11.0033C16.3709 11.2666 16.9876 10.994 17.1109 10.4565C17.2576 9.81789 17.3451 9.09148 17.3451 8.47731C17.3451 4.57356 14.6426 1.21489 10.8867 0.352311ZM8.64675 9.59714C8.60175 9.61947 2.86008 12.4463 2.78758 12.4877C2.34091 12.7431 2.22841 13.3387 2.55341 13.7377C4.12591 15.6691 6.47257 16.8106 9.01174 16.8106C11.5592 16.8106 13.9242 15.6541 15.4959 13.7116C15.8259 13.3045 15.6984 12.7077 15.2359 12.4616C15.1234 12.4019 9.42173 9.61939 9.37673 9.59714C9.14506 9.48406 8.87841 9.48322 8.64675 9.59714Z",fill:"current"})))}var jA,SA=o.forwardRef(CA),kA=(n.p,["title","titleId"]);function ZA(){return ZA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZA.apply(this,arguments)}function OA(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function EA(e,t){var n=e.title,r=e.titleId,i=OA(e,kA);return o.createElement("svg",ZA({width:16,height:16,viewBox:"0 0 16 16",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,jA||(jA=o.createElement("path",{d:"M4.6652 0.945923C3.60854 0.945923 2.66854 1.61597 2.29521 2.64175L1.33187 2.61562C0.871868 2.61562 0.498535 2.98946 0.498535 3.45046C0.498535 3.91155 0.871868 4.28531 1.33187 4.28531H2.1652V5.955H1.33187C0.871868 5.955 0.498535 6.32884 0.498535 6.78985C0.498535 7.25093 0.871868 7.62469 1.33187 7.62469H2.1652V9.29438H1.33187C0.871868 9.29438 0.498535 9.66823 0.498535 10.1292C0.498535 10.5903 0.871868 10.9642 1.33187 10.9641H2.1652V12.6338H1.33187C0.871868 12.6338 0.498535 13.0076 0.498535 13.4686C0.498535 13.9297 0.871868 14.3035 1.33187 14.3035H2.32187C2.60604 15.231 3.60854 15.9733 4.6652 15.9732H12.9985C14.3794 15.9732 15.4985 14.852 15.4985 13.4686V3.45046C15.4985 2.06729 14.3794 0.945839 12.9985 0.945923H4.6652ZM11.3319 4.28531C11.7919 4.28531 12.1652 4.65915 12.1652 5.12015C12.1652 5.58124 11.7919 5.955 11.3319 5.955C10.8719 5.955 10.4985 5.58124 10.4985 5.12015C10.4985 4.65915 10.8719 4.28539 11.3319 4.28531ZM7.99854 5.955C8.21103 5.95508 8.4352 6.0273 8.5977 6.18984C8.7302 6.32317 9.22604 6.81915 9.6652 7.25953L9.89937 7.02469C10.2244 6.69952 10.7727 6.69952 11.0977 7.02469L11.931 7.85953C12.4544 8.38407 12.0727 9.29438 11.3319 9.29438H6.33187C5.59103 9.29447 5.20937 8.38407 5.73271 7.85953L7.39937 6.18984C7.56187 6.0273 7.78604 5.955 7.99854 5.955ZM6.33187 10.9641H11.3319C11.7919 10.9641 12.1652 11.338 12.1652 11.7989C12.1652 12.2599 11.7919 12.6338 11.3319 12.6338H6.33187C5.87187 12.6339 5.49854 12.2599 5.49854 11.7989C5.49854 11.338 5.87187 10.9641 6.33187 10.9641Z",fill:"current"})))}var DA,PA=o.forwardRef(EA),AA=(n.p,["title","titleId"]);function MA(){return MA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MA.apply(this,arguments)}function TA(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function IA(e,t){var n=e.title,r=e.titleId,i=TA(e,AA);return o.createElement("svg",MA({width:18,height:17,viewBox:"0 0 18 17",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,DA||(DA=o.createElement("path",{d:"M8.99911 0.127563C7.84827 0.127563 6.91577 1.06006 6.91577 2.2109C6.91577 3.36173 7.84827 4.29423 8.99911 4.29423C10.4208 4.29423 11.7633 5.07256 12.3841 6.03923C13.0624 5.21173 14.6341 4.2559 16.5508 4.94507C15.2274 2.09424 12.3491 0.127563 8.99911 0.127563ZM5.48328 0.882568C2.63244 2.20674 0.665771 5.1109 0.665771 8.4609C0.665771 9.61173 1.59827 10.5442 2.7491 10.5442C3.89994 10.5442 4.83244 9.61173 4.83244 8.4609C4.83244 7.03923 5.48827 5.87255 6.57743 5.07589C5.3316 4.07505 4.93911 2.25174 5.48328 0.882568ZM15.2491 6.37756C14.0983 6.37756 13.1658 7.31006 13.1658 8.4609C13.1658 9.88256 12.4466 11.0959 11.4208 11.8459C12.4424 12.6842 13.1224 14.2659 12.5149 16.0126C15.3658 14.6892 17.3324 11.8109 17.3324 8.4609C17.3324 7.31006 16.3999 6.37756 15.2491 6.37756ZM5.61328 10.9092C4.70245 11.9617 3.07411 12.5892 1.42078 11.9767C2.74494 14.8276 5.64911 16.7942 8.99911 16.7942C10.1499 16.7942 11.0824 15.8617 11.0824 14.7109C11.0824 13.5601 10.1499 12.6276 8.99911 12.6276C7.57744 12.6276 6.41828 11.9667 5.61328 10.9092Z",fill:"current"})))}var RA,FA=o.forwardRef(IA),BA=(n.p,["title","titleId"]);function LA(){return LA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LA.apply(this,arguments)}function NA(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _A(e,t){var n=e.title,r=e.titleId,i=NA(e,BA);return o.createElement("svg",LA({width:14,height:17,viewBox:"0 0 14 17",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,RA||(RA=o.createElement("path",{d:"M3.69027 0.166016C1.84943 0.166016 0.356934 1.65852 0.356934 3.49936V13.4994C0.356934 15.3402 1.84943 16.8327 3.69027 16.8327H10.3569C12.1978 16.8327 13.6903 15.3402 13.6903 13.4994V3.49936C13.6903 1.65852 12.1978 0.166016 10.3569 0.166016H3.69027ZM4.5236 3.49936H9.5236C9.9836 3.49936 10.3569 3.87269 10.3569 4.33269C10.3569 4.79269 9.9836 5.16603 9.5236 5.16603H4.5236C4.0636 5.16603 3.69027 4.79269 3.69027 4.33269C3.69027 3.87269 4.0636 3.49936 4.5236 3.49936ZM4.5236 6.8327H9.5236C9.9836 6.8327 10.3569 7.20603 10.3569 7.66604C10.3569 8.12604 9.9836 8.49937 9.5236 8.49937H4.5236C4.0636 8.49937 3.69027 8.12604 3.69027 7.66604C3.69027 7.20603 4.0636 6.8327 4.5236 6.8327ZM4.5236 10.166H7.0236C7.4836 10.166 7.85693 10.5394 7.85693 10.9994C7.85693 11.4594 7.4836 11.8327 7.0236 11.8327H4.5236C4.0636 11.8327 3.69027 11.4594 3.69027 10.9994C3.69027 10.5394 4.0636 10.166 4.5236 10.166Z",fill:"current"})))}var zA,HA=o.forwardRef(_A),WA=(n.p,["title","titleId"]);function VA(){return VA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VA.apply(this,arguments)}function UA(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function qA(e,t){var n=e.title,r=e.titleId,i=UA(e,WA);return o.createElement("svg",VA({width:18,height:17,viewBox:"0 0 18 17",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,zA||(zA=o.createElement("path",{d:"M9.00096 0.178711C8.12263 0.178711 7.2493 0.524552 6.5793 1.19455L1.68347 6.09037C0.343467 7.4312 0.343467 9.59372 1.68347 10.9346L6.5793 15.8304C7.92013 17.1704 10.0826 17.1704 11.4235 15.8304L16.3193 10.9346C17.6593 9.59372 17.6593 7.4312 16.3193 6.09037L11.4235 1.19455C10.7526 0.524552 9.87929 0.178711 9.00096 0.178711ZM9.00096 4.34538C9.46179 4.34538 9.83429 4.71871 9.83429 5.17871V9.34538C9.83429 9.80621 9.46179 10.1787 9.00096 10.1787C8.54096 10.1787 8.16763 9.80621 8.16763 9.34538V5.17871C8.16763 4.71871 8.54096 4.34538 9.00096 4.34538ZM9.00096 11.012C9.46179 11.012 9.83429 11.3854 9.83429 11.8454C9.83429 12.3062 9.46179 12.6787 9.00096 12.6787C8.54096 12.6787 8.16763 12.3062 8.16763 11.8454C8.16763 11.3854 8.54096 11.012 9.00096 11.012Z",fill:"current"})))}var GA,YA=o.forwardRef(qA),KA=(n.p,["title","titleId"]);function JA(){return JA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JA.apply(this,arguments)}function XA(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function QA(e,t){var n=e.title,r=e.titleId,i=XA(e,KA);return o.createElement("svg",JA({width:14,height:16,viewBox:"0 0 14 16",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,GA||(GA=o.createElement("path",{d:"M6.99822 0.127441C6.38072 0.127441 5.75405 0.222438 5.12321 0.387438C4.67821 0.504938 4.43321 0.95828 4.54988 1.40328C4.66738 1.84828 5.12072 2.11911 5.56572 2.00244C6.06405 1.87161 6.53072 1.79411 6.99822 1.79411C7.47988 1.79411 7.95988 1.87161 8.45655 2.00244C8.90155 2.11911 9.35488 1.84828 9.47238 1.40328C9.58905 0.95828 9.31822 0.504938 8.87322 0.387438C8.24322 0.222438 7.62822 0.127441 6.99822 0.127441ZM6.99822 2.62744C3.31655 2.62744 0.331543 5.61244 0.331543 9.29411C0.331543 12.9758 3.31655 15.9608 6.99822 15.9608C10.6799 15.9608 13.6649 12.9758 13.6649 9.29411C13.6649 5.61244 10.6799 2.62744 6.99822 2.62744ZM12.8316 2.62744C12.3716 2.62744 11.9982 3.00077 11.9982 3.46077C11.9982 3.92077 12.3716 4.29411 12.8316 4.29411C13.2916 4.29411 13.6649 3.92077 13.6649 3.46077C13.6649 3.00077 13.2916 2.62744 12.8316 2.62744ZM6.99822 5.96077C7.45822 5.96077 7.83155 6.33411 7.83155 6.79411V8.9291L9.26405 10.3616C9.58905 10.6874 9.58905 11.2341 9.26405 11.5599C8.93821 11.8849 8.39156 11.8849 8.06572 11.5599L6.39905 9.89327C6.24322 9.7366 6.16488 9.51494 6.16488 9.29411V6.79411C6.16488 6.33411 6.53822 5.96077 6.99822 5.96077Z",fill:"current",stroke:"#79829B",strokeWidth:.002,strokeLinecap:"round",strokeLinejoin:"round"})))}var $A,eM=o.forwardRef(QA),tM=(n.p,["title","titleId"]);function nM(){return nM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nM.apply(this,arguments)}function rM(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function oM(e,t){var n=e.title,r=e.titleId,i=rM(e,tM);return o.createElement("svg",nM({width:16,height:16,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,$A||($A=o.createElement("path",{d:"M10.019 2.03442C9.54328 2.03426 9.05744 2.33026 8.76969 2.91943L6.99978 6.56334L2.96545 7.13593C1.66803 7.31643 1.2477 8.58926 2.18461 9.50426L5.0997 12.3418L4.42303 16.3243C4.2002 17.6134 5.26945 18.3926 6.4272 17.7818C6.87453 17.5451 9.17461 16.3534 10.019 15.9076L13.6109 17.7818C14.7699 18.3926 15.8425 17.6143 15.615 16.3243L14.9123 12.3418L17.8274 9.50426C18.7688 8.5926 18.3701 7.32009 17.0726 7.13593L13.0123 6.56334L11.2684 2.91943C10.981 2.33001 10.4948 2.03467 10.019 2.03442Z",fill:"current"})))}var iM,aM=o.forwardRef(oM),sM=(n.p,[{title:"Home",to:"/dashboard",Icon:pA,name:"home"},{title:"Projects",to:"./timed-projects",Icon:yA,name:"timed-projects",disabled:!1},{title:"End-to-end",to:"./end-to-end",Icon:FA,name:"end-to-end",disabled:!1}]),lM=[{title:"Home",to:"../admin",Icon:pA,name:"home",disabled:!0},{title:"Projects (E2E)",to:"../admin/end-to-end/projects",Icon:yA,name:"projects",disabled:!1},{title:"Requests (E2E)",to:"../admin/end-to-end/project-requests",Icon:yA,name:"project-requests",disabled:!1},{title:"Payments",to:"../admin/end-to-end/payments",Icon:SA,name:"payments",disabled:!1},{title:"Seller (service)",to:"../admin/companies/sos",Icon:SA,name:"sos",disabled:!1},{title:"Seller (tool)",to:"../admin/companies/tos",Icon:SA,name:"tos",disabled:!1},{title:"Buyer",to:"../admin/companies/buyer",Icon:SA,name:"buyer",disabled:!1},{title:"Projects (Hire)",to:"../admin/timed-projects/",Icon:eM,name:"timed-projects",disabled:!1},{title:"Case study",to:"../admin/case-study/",Icon:YA,name:"case-study",disabled:!1},{title:"Study review",to:"../admin/case-study-review/",Icon:aM,name:"case-study-review",disabled:!1},{title:"Pitching",to:"../admin/pitching/",Icon:FA,name:"pitching",disabled:!1},{title:"Seller Archive",to:"../admin/seller-archive/",Icon:SA,name:"seller-archive",disabled:!1},{title:"C. Study Archive",to:"../admin/case-study-archive/",Icon:SA,name:"case-study-archive",disabled:!1},{title:"Footer seller",to:"../admin/footer/seller_archive",Icon:yA,name:"footer-seller",disabled:!1},{title:"Footer c. study",to:"../admin/footer/case_study_archive",Icon:yA,name:"footer-case-study",disabled:!1},{title:"Blog",to:"../admin/blogs",Icon:HA,name:"blogs",disabled:!1},{title:"Featured Blogs",to:"../admin/featured-blogs",Icon:HA,name:"featured-blogs",disabled:!1},{title:"Newsletter",to:"../admin/newsletter",Icon:HA,name:"newsletter",disabled:!1}],cM=(0,o.createContext)(null),uM=n(50642),dM=n(19310),pM=function(e){var t=e.dayName,n=e.dateNumber,r=e.onClick,i=e.todayDate,a=e.currentDate,s=e.occurringEvents,l=(0,o.useState)(!1),c=(0,Le.Z)(l,1)[0];return(0,u.jsx)(ns,{title:null!==s&&void 0!==s&&s.length?1===(null===s||void 0===s?void 0:s.length)?"1 event in calendar":"".concat(null===s||void 0===s?void 0:s.length," events in calendar"):"",children:(0,u.jsxs)(nn.Z,{alignItems:"center",gap:.5,children:[(0,u.jsx)(NZ,{elevation:0,sx:{overflow:"visible",borderRadius:1,backgroundColor:"primaryDark.200",opacity:1,":last-child":{paddingBottom:"0"}},children:(0,u.jsxs)(nn.Z,{direction:"column",justifyContent:"space-between",alignItems:"center",spacing:2.5,children:[(0,u.jsx)(rn.Z,{color:"primaryDark.500",variant:"heading5",fontWeight:"600",children:t}),(0,u.jsx)(io.Z,{onClick:function(){return r(a)},sx:{width:{md:38,xl:48},height:{md:38,xl:48},backgroundColor:i.toString().substring(0,15)===a.toString().substring(0,15)?"primaryLight.500":c?"common.white":"transparent",filter:i.toString().substring(0,15)===a.toString().substring(0,15)?"drop-shadow(3px 3px 12px rgba(109, 81, 246, 0.4))":"none","&:hover":{backgroundColor:i.toString().substring(0,15)===a.toString().substring(0,15)?"".concat((0,rs.HO)(ir.palette.primaryDark[500],30)):"".concat((0,rs.HO)(ir.palette.primaryLight[100],-5))},"&:active":{backgroundColor:i.toString().substring(0,15)===a.toString().substring(0,15)?"".concat((0,rs.HO)(ir.palette.primaryDark[500],30)):"".concat((0,rs.HO)(ir.palette.primaryLight[200],-5))}},children:(0,u.jsxs)(rn.Z,{color:i.toString().substring(0,15)===a.toString().substring(0,15)?"white":"primaryDark.600",variant:"heading2",children:[n<10&&0,n]})})]})}),null!==s&&void 0!==s&&s.length?(0,u.jsx)(da.Z,{sx:{backgroundColor:"primaryLight.500",borderRadius:"50%",width:14,height:14,border:"3px solid",borderColor:"primaryLight.200"}}):(0,u.jsx)(da.Z,{sx:{backgroundColor:"transparent",borderRadius:"50%",width:14,height:14,border:"3px solid",borderColor:"transparent"}})]})})},fM=function(){var e="1 rem",t=Pa(),n=hi({enabled:!!t,resource:"/calendar?user=".concat(null===t||void 0===t?void 0:t.id)}).data,r=null===n||void 0===n?void 0:n.data.results,i=function(e){return null===r||void 0===r?void 0:r.filter((function(t){return(0,rs.Yu)(t.end)===(0,rs.Yu)(e)}))},a=new Date,s=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],l=(0,ze.s0)(),c=(0,o.useState)(a.getFullYear()),d=(0,Le.Z)(c,1)[0],p=(0,o.useState)(a.getMonth()),f=(0,Le.Z)(p,1)[0],h=(0,o.useState)(a.getFullYear()),m=(0,Le.Z)(h,2),v=m[0],g=m[1],y=(0,o.useState)(a.toLocaleString("default",{month:"long"})),b=(0,Le.Z)(y,2),x=b[0],w=b[1],C=(0,o.useState)(a.getDate()),j=(0,Le.Z)(C,2),S=j[0],k=j[1],Z=(0,o.useState)([]),O=(0,Le.Z)(Z,2),E=O[0],D=O[1],P=function(){var e=new Date(d,f,S).getDay();!function(e){for(var t=[],n=e;n<e+7;n+=1)t.push(new Date(d,f,n));w(new Date(d,f,S).toLocaleString("default",{month:"long"})),g(new Date(d,f,S).getFullYear()),D(t)}(0===e?S-6:2===e?S-1:3===e?S-2:4===e?S-3:5===e?S-4:6===e?S-5:S)};return(0,o.useEffect)((function(){P()}),[S]),(0,u.jsxs)(nn.Z,{spacing:2,width:"100%",alignItems:"center",children:[(0,u.jsxs)(rn.Z,{variant:"heading4",color:"primaryDark.600",children:[x," ",v]}),(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",width:"100%",px:1,pb:1,justifyContent:"space-between",children:[(0,u.jsx)(io.Z,{sx:{p:.2,border:"1px solid ".concat(tr.E4[500]),bgcolor:"white"},onClick:function(){return k((function(e){return e-7}))},children:(0,u.jsx)(uM.Z,{sx:{fontSize:e,color:"primaryLight.500"}})}),(0,u.jsx)(Wo,{onClick:function(){return k((new Date).getDate())},variant:"primaryText",children:"today"}),(0,u.jsx)(io.Z,{sx:{p:.2,border:"1px solid ".concat(tr.E4[500]),bgcolor:"white"},onClick:function(){return k((function(e){return e+7}))},children:(0,u.jsx)(dM.Z,{sx:{fontSize:e,color:"primaryLight.500"}})})]}),(0,u.jsx)(nn.Z,{direction:"row",justifyContent:"space-between",width:"100%",children:null===E||void 0===E?void 0:E.map((function(e){var t;return(0,u.jsx)(tn,{sx:{flex:1,minWidth:0},children:(0,u.jsx)(pM,{dayName:s[e.getDay()].substring(0,3),occurringEvents:null!==(t=i(e))&&void 0!==t?t:[],dateNumber:e.getDate(),todayDate:a,currentDate:e,onClick:function(e){return l("/dashboard/calendar?date=".concat(e.toISOString(),"&viewType=day"))}})},e.getDay())}))})]})},hM=["title","titleId"];function mM(){return mM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mM.apply(this,arguments)}function vM(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function gM(e,t){var n=e.title,r=e.titleId,i=vM(e,hM);return o.createElement("svg",mM({width:13,height:13,viewBox:"0 0 13 13",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,iM||(iM=o.createElement("path",{d:"M8.99377 12.9936C10.4664 12.9936 11.6604 11.7996 11.6604 10.327V8.32698C11.6604 7.95898 11.3618 7.66031 10.9938 7.66031C10.6258 7.66031 10.3271 7.95898 10.3271 8.32698V10.327C10.3271 11.0636 9.73044 11.6603 8.99377 11.6603H3.66044C2.92377 11.6603 2.32711 11.0636 2.32711 10.327V4.99365C2.32711 4.25698 2.92377 3.66032 3.66044 3.66032H5.66044C6.02844 3.66032 6.32711 3.36165 6.32711 2.99365C6.32711 2.62565 6.02844 2.32698 5.66044 2.32698H3.66044C2.18777 2.32698 0.993774 3.52098 0.993774 4.99365V10.327C0.993774 11.7996 2.18777 12.9936 3.66044 12.9936H8.99377ZM6.32711 8.32698C6.49777 8.32698 6.67577 8.26964 6.80644 8.13964L11.1398 3.80631L12.9938 5.66032V0.993652H8.32711L10.1811 2.84765L5.84778 7.18098C5.58778 7.44165 5.58778 7.87898 5.84778 8.13964C5.97845 8.26964 6.15644 8.32698 6.32711 8.32698Z",fill:"current"})))}var yM=o.forwardRef(gM),bM=(n.p,function(){return(0,u.jsxs)(NZ,{className:"event_slider",elevation:0,sx:{width:"100%",height:"fit-content",border:"1px solid",borderColor:"secondaryBlue.100",borderRadius:"8px",display:"flex",flexDirection:"column",alignItems:"center",gap:1.5,p:2,background:"linear-gradient(240.98deg, #E6E8FF 0%, #FFEAE1 68.46%, #FFFBEA 99.58%)"},children:[(0,u.jsx)(iA,{fill:tr.E4[500]}),(0,u.jsx)(rn.Z,{variant:"headline4",color:"primaryDark.600",children:"Need help?"}),(0,u.jsx)(rn.Z,{variant:"body2",color:"primaryDark.600",textAlign:"center",children:"Our support team is at your disposal"}),(0,u.jsx)(Wo,{href:"/dashboard/chat?showSupport=true",children:"Talk to us"})]})}),xM=function(){var e,t=(0,o.useState)(!1),n=(0,Le.Z)(t,2),r=n[0],i=n[1],a=Pa(),s=Ra({resource:"companies",id:null===a||void 0===a||null===(e=a.membership)||void 0===e?void 0:e.company,retry:1,enabled:!!a}).data;return(0,u.jsxs)(ms,{direction:"column",gap:1,justifyContent:"center",alignItems:"center",children:[(0,u.jsx)(Vo.Z,{overlap:"circular",anchorOrigin:{vertical:"bottom",horizontal:"right"},badgeContent:(0,u.jsx)(io.Z,{onClick:function(){return i(!0)},sx:{width:"25px",height:"25px",bgcolor:"primaryLight.50",borderRadius:"4px",padding:"2px","&:hover":{bgcolor:"primaryLight.100"}},children:(0,u.jsx)(cs,{fill:tr.E4[500]})}),children:(0,u.jsx)(Ca,{alt:null===s||void 0===s?void 0:s.name,src:null===s||void 0===s?void 0:s.avatar,sx:{height:"5rem",width:"5rem",fontSize:40,backgroundColor:null!==s&&void 0!==s&&s.avatar?"white":"primaryDark.400"}})}),(0,u.jsx)(rn.Z,{variant:"headline4",children:null===s||void 0===s?void 0:s.name}),(0,u.jsx)(jl,{open:r,setOpen:i})]})},wM=function(e){var t,n,r=e.sidebarData,o=e.sx,i=(r.sidebarReminders,null===(t=r.sidebarMessages)||void 0===t||t.messages,(0,ze.TH)().pathname),a=Yd(),s=Pa();return(0,u.jsx)(NZ,{sx:(0,l.Z)({borderRadius:"14px",backgroundColor:"primaryDark.200"},o),elevation:0,children:(0,u.jsxs)(nn.Z,{spacing:3,children:[(null===a||void 0===a?void 0:a[0])===Kt.ks.SellerService&&(0,u.jsx)(ns,{placement:"left",title:"View Profile",children:(0,u.jsx)(io.Z,{sx:{borderRadius:"3px",p:.6,width:"28px",height:"28px",alignSelf:"end",bgcolor:tr.E4[50],"&:hover":{bgcolor:tr.E4[100]}},href:"/company/".concat(null===s||void 0===s||null===(n=s.membership)||void 0===n?void 0:n.company),target:"_blank",children:(0,u.jsx)(yM,{fill:tr.dx[700]})})}),i.includes("dashboard")&&(0,u.jsx)(xM,{}),(0,u.jsx)(un,{}),(0,u.jsx)(fM,{}),(0,u.jsx)(un,{}),i.includes("dashboard")&&(0,u.jsx)(bM,{})]})})},CM=n(76810),jM=function(e){var n=e.displayScore,r=e.score,i=e.truePercentage,a=e.size,s=void 0===a?12:a,l=e.thickness,c=void 0===l?2:l,d=e.color,p=void 0===d?"secondaryBlue.700":d,f=e.entityStatus,h=(0,o.useState)(100),m=(0,Le.Z)(h,2),v=m[0],g=m[1],y=Bn(ir.breakpoints.down("lg")),b=(0,o.useState)(s),x=(0,Le.Z)(b,2),w=x[0],C=x[1];(0,o.useEffect)((function(){C(y?11:12)}),[y]);return(0,o.useEffect)((function(){r&&function(e){e>5||e<1||g(e/5*100)}(r)}),[r]),(0,o.useEffect)((function(){null!=i&&g(null!==i&&void 0!==i?i:0)}),[i]),(0,u.jsxs)(tn,{sx:{position:"relative"},children:[(0,u.jsxs)(nn.Z,{alignItems:"center",justifyContent:"center",children:[(0,u.jsx)(Zo.Z,{variant:"determinate",sx:{color:"primaryDark.500",position:"absolute","& .MuiCircularProgress-svg":{filter:"drop-shadow(10px 10px 20px rgba(64, 81, 236, 0.2))"}},size:"".concat(w,"rem"),thickness:c,value:100}),(0,u.jsx)(Zo.Z,{variant:"determinate",sx:{position:"absolute",padding:1,color:"#e7e8f5"},size:"100%",thickness:3,value:100}),(0,u.jsx)(Zo.Z,{variant:"determinate",thickness:c,value:v,size:"".concat(w,"rem"),sx:(0,t.Z)({color:p},"& .".concat(CM.Z.circle),{strokeLinecap:"round"})})]}),(0,u.jsxs)(nn.Z,{spacing:1.25,alignItems:"center",justifyContent:"center",sx:{position:"absolute",top:0,left:0,bottom:0,right:0},children:[!0===n&&(0,u.jsx)(rn.Z,{color:"primaryDark.500",variant:"body2",fontWeight:"600",fontSize:"".concat(.15*w,"rem"),children:null!=i?"".concat(i,"%"):null===r||void 0===r?void 0:r.toFixed(1)}),f&&(0,u.jsx)(rn.Z,{variant:"heading3",color:"primaryDark.500",fontSize:"".concat(.08*w,"rem"),children:rs.Z.get(f)})]})]})};function SM(e){return(0,F.Z)("MuiStepper",e)}(0,R.Z)("MuiStepper",["root","horizontal","vertical","alternativeLabel"]);var kM=o.createContext({});var ZM=kM,OM=o.createContext({});var EM=OM;function DM(e){return(0,F.Z)("MuiStepConnector",e)}var PM=(0,R.Z)("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]),AM=["className"],MM=(0,P.ZP)("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})((function(e){var t=e.ownerState;return(0,r.Z)({flex:"1 1 auto"},"vertical"===t.orientation&&{marginLeft:12},t.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})})),TM=(0,P.ZP)("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:function(e,t){var n=e.ownerState;return[t.line,t["line".concat((0,Zn.Z)(n.orientation))]]}})((function(e){var t=e.ownerState,n=e.theme,o="light"===n.palette.mode?n.palette.grey[400]:n.palette.grey[600];return(0,r.Z)({display:"block",borderColor:n.vars?n.vars.palette.StepConnector.border:o},"horizontal"===t.orientation&&{borderTopStyle:"solid",borderTopWidth:1},"vertical"===t.orientation&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})})),IM=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiStepConnector"}),i=n.className,a=(0,b.Z)(n,AM),s=o.useContext(ZM),l=s.alternativeLabel,c=s.orientation,d=void 0===c?"horizontal":c,p=o.useContext(EM),f=p.active,h=p.disabled,m=p.completed,v=(0,r.Z)({},n,{alternativeLabel:l,orientation:d,active:f,completed:m,disabled:h}),g=function(e){var t=e.classes,n=e.orientation,r={root:["root",n,e.alternativeLabel&&"alternativeLabel",e.active&&"active",e.completed&&"completed",e.disabled&&"disabled"],line:["line","line".concat((0,Zn.Z)(n))]};return(0,M.Z)(r,DM,t)}(v);return(0,u.jsx)(MM,(0,r.Z)({className:(0,y.default)(g.root,i),ref:t,ownerState:v},a,{children:(0,u.jsx)(TM,{className:g.line,ownerState:v})}))})),RM=IM,FM=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],BM=(0,P.ZP)("div",{name:"MuiStepper",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel]}})((function(e){var t=e.ownerState;return(0,r.Z)({display:"flex"},"horizontal"===t.orientation&&{flexDirection:"row",alignItems:"center"},"vertical"===t.orientation&&{flexDirection:"column"},t.alternativeLabel&&{alignItems:"flex-start"})})),LM=(0,u.jsx)(RM,{}),NM=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiStepper"}),i=n.activeStep,a=void 0===i?0:i,s=n.alternativeLabel,l=void 0!==s&&s,c=n.children,d=n.className,p=n.component,f=void 0===p?"div":p,h=n.connector,m=void 0===h?LM:h,v=n.nonLinear,g=void 0!==v&&v,x=n.orientation,w=void 0===x?"horizontal":x,C=(0,b.Z)(n,FM),j=(0,r.Z)({},n,{alternativeLabel:l,orientation:w,component:f}),S=function(e){var t=e.orientation,n=e.alternativeLabel,r=e.classes,o={root:["root",t,n&&"alternativeLabel"]};return(0,M.Z)(o,SM,r)}(j),k=o.Children.toArray(c).filter(Boolean),Z=k.map((function(e,t){return o.cloneElement(e,(0,r.Z)({index:t,last:t+1===k.length},e.props))})),O=o.useMemo((function(){return{activeStep:a,alternativeLabel:l,connector:m,nonLinear:g,orientation:w}}),[a,l,m,g,w]);return(0,u.jsx)(ZM.Provider,{value:O,children:(0,u.jsx)(BM,(0,r.Z)({as:f,ownerState:j,className:(0,y.default)(S.root,d),ref:t},C,{children:Z}))})})),_M=NM;function zM(e){return(0,F.Z)("MuiStep",e)}(0,R.Z)("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);var HM=["active","children","className","component","completed","disabled","expanded","index","last"],WM=(0,P.ZP)("div",{name:"MuiStep",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})((function(e){var t=e.ownerState;return(0,r.Z)({},"horizontal"===t.orientation&&{paddingLeft:8,paddingRight:8},t.alternativeLabel&&{flex:1,position:"relative"})})),VM=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiStep"}),i=n.active,a=n.children,s=n.className,l=n.component,c=void 0===l?"div":l,d=n.completed,p=n.disabled,f=n.expanded,h=void 0!==f&&f,m=n.index,v=n.last,g=(0,b.Z)(n,HM),x=o.useContext(ZM),w=x.activeStep,C=x.connector,j=x.alternativeLabel,S=x.orientation,k=x.nonLinear,Z=void 0!==i&&i,O=void 0!==d&&d,E=void 0!==p&&p;w===m?Z=void 0===i||i:!k&&w>m?O=void 0===d||d:!k&&w<m&&(E=void 0===p||p);var D=o.useMemo((function(){return{index:m,last:v,expanded:h,icon:m+1,active:Z,completed:O,disabled:E}}),[m,v,h,Z,O,E]),P=(0,r.Z)({},n,{active:Z,orientation:S,alternativeLabel:j,completed:O,disabled:E,expanded:h,component:c}),A=function(e){var t=e.classes,n={root:["root",e.orientation,e.alternativeLabel&&"alternativeLabel",e.completed&&"completed"]};return(0,M.Z)(n,zM,t)}(P),I=(0,u.jsxs)(WM,(0,r.Z)({as:c,className:(0,y.default)(A.root,s),ref:t,ownerState:P},g,{children:[C&&j&&0!==m?C:null,a]}));return(0,u.jsx)(EM.Provider,{value:D,children:C&&!j&&0!==m?(0,u.jsxs)(o.Fragment,{children:[C,I]}):I})})),UM=VM,qM=(0,pa.Z)((0,u.jsx)("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),GM=(0,pa.Z)((0,u.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function YM(e){return(0,F.Z)("MuiStepIcon",e)}var KM,JM=(0,R.Z)("MuiStepIcon",["root","active","completed","error","text"]),XM=["active","className","completed","error","icon"],QM=(0,P.ZP)(V.Z,{name:"MuiStepIcon",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){var n,r=e.theme;return n={display:"block",transition:r.transitions.create("color",{duration:r.transitions.duration.shortest}),color:(r.vars||r).palette.text.disabled},(0,t.Z)(n,"&.".concat(JM.completed),{color:(r.vars||r).palette.primary.main}),(0,t.Z)(n,"&.".concat(JM.active),{color:(r.vars||r).palette.primary.main}),(0,t.Z)(n,"&.".concat(JM.error),{color:(r.vars||r).palette.error.main}),n})),$M=(0,P.ZP)("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:function(e,t){return t.text}})((function(e){var t=e.theme;return{fill:(t.vars||t).palette.primary.contrastText,fontSize:t.typography.caption.fontSize,fontFamily:t.typography.fontFamily}})),eT=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiStepIcon"}),o=n.active,i=void 0!==o&&o,a=n.className,s=n.completed,l=void 0!==s&&s,c=n.error,d=void 0!==c&&c,p=n.icon,f=(0,b.Z)(n,XM),h=(0,r.Z)({},n,{active:i,completed:l,error:d}),m=function(e){var t=e.classes,n={root:["root",e.active&&"active",e.completed&&"completed",e.error&&"error"],text:["text"]};return(0,M.Z)(n,YM,t)}(h);if("number"===typeof p||"string"===typeof p){var v=(0,y.default)(a,m.root);return d?(0,u.jsx)(QM,(0,r.Z)({as:GM,className:v,ref:t,ownerState:h},f)):l?(0,u.jsx)(QM,(0,r.Z)({as:qM,className:v,ref:t,ownerState:h},f)):(0,u.jsxs)(QM,(0,r.Z)({className:v,ref:t,ownerState:h},f,{children:[KM||(KM=(0,u.jsx)("circle",{cx:"12",cy:"12",r:"12"})),(0,u.jsx)($M,{className:m.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:h,children:p})]}))}return p})),tT=eT;function nT(e){return(0,F.Z)("MuiStepLabel",e)}var rT=(0,R.Z)("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),oT=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],iT=(0,P.ZP)("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.orientation]]}})((function(e){var n,o=e.ownerState;return(0,r.Z)((n={display:"flex",alignItems:"center"},(0,t.Z)(n,"&.".concat(rT.alternativeLabel),{flexDirection:"column"}),(0,t.Z)(n,"&.".concat(rT.disabled),{cursor:"default"}),n),"vertical"===o.orientation&&{textAlign:"left",padding:"8px 0"})})),aT=(0,P.ZP)("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:function(e,t){return t.label}})((function(e){var n,o=e.theme;return(0,r.Z)({},o.typography.body2,(n={display:"block",transition:o.transitions.create("color",{duration:o.transitions.duration.shortest})},(0,t.Z)(n,"&.".concat(rT.active),{color:(o.vars||o).palette.text.primary,fontWeight:500}),(0,t.Z)(n,"&.".concat(rT.completed),{color:(o.vars||o).palette.text.primary,fontWeight:500}),(0,t.Z)(n,"&.".concat(rT.alternativeLabel),{marginTop:16}),(0,t.Z)(n,"&.".concat(rT.error),{color:(o.vars||o).palette.error.main}),n))})),sT=(0,P.ZP)("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:function(e,t){return t.iconContainer}})((function(){return(0,t.Z)({flexShrink:0,display:"flex",paddingRight:8},"&.".concat(rT.alternativeLabel),{paddingRight:0})})),lT=(0,P.ZP)("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:function(e,t){return t.labelContainer}})((function(e){var n=e.theme;return(0,t.Z)({width:"100%",color:(n.vars||n).palette.text.secondary},"&.".concat(rT.alternativeLabel),{textAlign:"center"})})),cT=o.forwardRef((function(e,t){var n,i=(0,T.Z)({props:e,name:"MuiStepLabel"}),a=i.children,s=i.className,l=i.componentsProps,c=void 0===l?{}:l,d=i.error,p=void 0!==d&&d,f=i.icon,h=i.optional,m=i.slotProps,v=void 0===m?{}:m,g=i.StepIconComponent,x=i.StepIconProps,w=(0,b.Z)(i,oT),C=o.useContext(ZM),j=C.alternativeLabel,S=C.orientation,k=o.useContext(EM),Z=k.active,O=k.disabled,E=k.completed,D=k.icon,P=f||D,A=g;P&&!A&&(A=tT);var I=(0,r.Z)({},i,{active:Z,alternativeLabel:j,completed:E,disabled:O,error:p,orientation:S}),R=function(e){var t=e.classes,n=e.orientation,r=e.active,o=e.completed,i=e.error,a=e.disabled,s=e.alternativeLabel,l={root:["root",n,i&&"error",a&&"disabled",s&&"alternativeLabel"],label:["label",r&&"active",o&&"completed",i&&"error",a&&"disabled",s&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",o&&"completed",i&&"error",a&&"disabled",s&&"alternativeLabel"],labelContainer:["labelContainer",s&&"alternativeLabel"]};return(0,M.Z)(l,nT,t)}(I),F=null!=(n=v.label)?n:c.label;return(0,u.jsxs)(iT,(0,r.Z)({className:(0,y.default)(R.root,s),ref:t,ownerState:I},w,{children:[P||A?(0,u.jsx)(sT,{className:R.iconContainer,ownerState:I,children:(0,u.jsx)(A,(0,r.Z)({completed:E,active:Z,error:p,icon:P},x))}):null,(0,u.jsxs)(lT,{className:R.labelContainer,ownerState:I,children:[a?(0,u.jsx)(aT,(0,r.Z)({ownerState:I},F,{className:(0,y.default)(R.label,null==F?void 0:F.className),children:a})):null,h]})]}))}));cT.muiName="StepLabel";var uT=cT;function dT(e){return(0,F.Z)("MuiStepContent",e)}(0,R.Z)("MuiStepContent",["root","last","transition"]);var pT=["children","className","TransitionComponent","transitionDuration","TransitionProps"],fT=(0,P.ZP)("div",{name:"MuiStepContent",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.last&&t.last]}})((function(e){var t=e.ownerState,n=e.theme;return(0,r.Z)({marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:n.vars?"1px solid ".concat(n.vars.palette.StepContent.border):"1px solid ".concat("light"===n.palette.mode?n.palette.grey[400]:n.palette.grey[600])},t.last&&{borderLeft:"none"})})),hT=(0,P.ZP)(W,{name:"MuiStepContent",slot:"Transition",overridesResolver:function(e,t){return t.transition}})({}),mT=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiStepContent"}),i=n.children,a=n.className,s=n.TransitionComponent,l=void 0===s?W:s,c=n.transitionDuration,d=void 0===c?"auto":c,p=n.TransitionProps,f=(0,b.Z)(n,pT),h=(o.useContext(ZM).orientation,o.useContext(EM)),m=h.active,v=h.last,g=h.expanded,x=(0,r.Z)({},n,{last:v}),w=function(e){var t=e.classes,n={root:["root",e.last&&"last"],transition:["transition"]};return(0,M.Z)(n,dT,t)}(x);var C=d;return"auto"!==d||l.muiSupportAuto||(C=void 0),(0,u.jsx)(fT,(0,r.Z)({className:(0,y.default)(w.root,a),ref:t,ownerState:x},f,{children:(0,u.jsx)(hT,(0,r.Z)({as:l,in:m||g,className:w.transition,ownerState:x,timeout:C,unmountOnExit:!0},p,{children:i}))}))})),vT=mT;function gT(e,t,n){return e+" "+(1!==e?t+"s":t)+" "+n}var yT=n(66470),bT=n(55181),xT=n(53764);function wT(e){return(0,yT.Z)(e)||(0,bT.Z)(e)||(0,Ne.Z)(e)||(0,xT.Z)()}function CT(e){var t=new Date(e);if(!Number.isNaN(t.valueOf()))return t;var n=String(e).match(/\d+/g);if(null==n||n.length<=2)return t;var r=n.map((function(e){return parseInt(e)})),o=wT(r),i=o[0],a=o[1],s=o.slice(2),l=[i,a-1].concat((0,dn.Z)(s));return new Date(Date.UTC.apply(Date,(0,dn.Z)(l)))}var jT=["date","formatter","component","live","minPeriod","maxPeriod","title","now"];function ST(){return ST=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ST.apply(this,arguments)}var kT,ZT=3600,OT=86400,ET=7*OT,DT=30*OT,PT=365*OT;function AT(e){var t=e.date,n=e.formatter,r=void 0===n?gT:n,i=e.component,a=void 0===i?"time":i,s=e.live,c=void 0===s||s,u=e.minPeriod,d=void 0===u?0:u,p=e.maxPeriod,f=void 0===p?ET:p,h=e.title,m=e.now,v=void 0===m?function(){return Date.now()}:m,g=Nn(e,jT),y=function(){var e=(0,o.useState)(0),t=(0,Le.Z)(e,2),n=(t[0],t[1]);return(0,o.useCallback)((function(){n((function(e){return e+1}))}),[])}();(0,o.useEffect)((function(){if(c){var e;return function n(r){var o=CT(t).valueOf();if(o){var i=v(),a=Math.round(Math.abs(i-o)/1e3),s=a<60?1e3:a<ZT?6e4:a<OT?36e5:6048e5,l=Math.min(Math.max(s,1e3*d),1e3*f);l&&(e&&clearTimeout(e),e=setTimeout(n,l)),r||y()}else console.warn("[react-timeago] Invalid Date provided")}(!0),function(){clearTimeout(e)}}}),[t,y,c,f,d,v]);var b=a,x=CT(t).valueOf();if(!x)return null;var w=v(),C=Math.round(Math.abs(w-x)/1e3),j=x<w?"ago":"from now",S=C<60?[Math.round(C),"second"]:C<ZT?[Math.round(C/60),"minute"]:C<OT?[Math.round(C/ZT),"hour"]:C<ET?[Math.round(C/OT),"day"]:C<DT?[Math.round(C/ET),"week"]:C<PT?[Math.round(C/DT),"month"]:[Math.round(C/PT),"year"],k=(0,Le.Z)(S,2),Z=k[0],O=k[1],E="undefined"===typeof h?"string"===typeof t?t:CT(t).toISOString().substr(0,16).replace("T"," "):h,D="time"===b?(0,l.Z)((0,l.Z)({},g),{},{dateTime:CT(t).toISOString()}):g,P=gT.bind(null,Z,O,j);return o.createElement(b,ST({},D,{title:E}),r(Z,O,j,x,P,v))}var MT=["title","titleId"];function TT(){return TT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TT.apply(this,arguments)}function IT(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function RT(e,t){var n=e.title,r=e.titleId,i=IT(e,MT);return o.createElement("svg",TT({width:12,height:14,viewBox:"0 0 12 14",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,kT||(kT=o.createElement("path",{d:"M3.99935 0.342773C2.97002 0.342773 2.13602 0.64564 1.49935 1.15531C1.19802 1.39644 0.854678 1.79244 0.728678 2.05111C0.683345 2.14411 0.666016 2.23924 0.666016 2.34277C0.666016 3.25944 0.666016 8.75945 0.666016 9.67611V13.0094C0.666016 13.3776 0.964682 13.6761 1.33268 13.6761C1.70068 13.6761 1.99935 13.3776 1.99935 13.0094L1.99801 9.87571C2.05601 9.78298 2.13735 9.68658 2.33268 9.53024C2.73735 9.20658 3.27868 9.00945 3.99935 9.00945C4.36535 9.00945 4.57135 9.05904 4.91602 9.19691C4.95202 9.21144 5.12068 9.28291 5.16602 9.30111C5.82268 9.56371 6.39735 9.67611 7.33268 9.67611C9.70068 9.67611 11.3327 8.04431 11.3327 5.67611C11.3327 4.41104 11.3327 3.08838 11.3327 2.34277C11.3327 1.30791 10.3673 0.342773 9.33268 0.342773C9.09202 0.342773 8.86669 0.395707 8.60335 0.48864C8.46202 0.538573 7.90402 0.755974 7.99935 0.717774C7.50868 0.913907 7.13868 1.00944 6.66602 1.00944C6.21268 1.00944 5.94935 0.940574 5.49935 0.73864C5.40535 0.696307 5.33601 0.675107 5.29134 0.655307C4.81867 0.445973 4.47468 0.342773 3.99935 0.342773Z",fill:"current"})))}var FT,BT=o.forwardRef(RT),LT=(n.p,["title","titleId"]);function NT(){return NT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NT.apply(this,arguments)}function _T(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function zT(e,t){var n=e.title,r=e.titleId,i=_T(e,LT);return o.createElement("svg",NT({width:18,height:16,viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,FT||(FT=o.createElement("path",{d:"M4.83674 0.492188C3.37474 0.493021 2.34474 1.51469 2.33674 2.99219V3.82552C2.11257 3.82552 1.60966 3.82552 1.50341 3.82552C1.00991 3.82552 0.620239 4.24635 0.670073 4.73718C0.765323 5.67635 1.32999 11.3239 1.42524 12.263C1.49707 12.8997 1.67074 13.343 1.97216 13.8514C2.56791 14.8572 3.64574 15.4922 4.83674 15.4922H13.1701C14.0522 15.4922 14.8695 15.1589 15.4877 14.5547C16.0929 13.963 16.3338 13.4555 16.5555 12.3155L17.3367 7.28886C17.4141 6.78469 17.0139 6.32552 16.5034 6.32552C16.2951 6.32552 15.8321 6.32552 15.6701 6.32552C15.6701 5.94385 15.6698 5.56969 15.6701 5.51803C15.6762 4.06636 14.605 2.99719 13.1701 2.99219C12.4639 2.98969 12.2752 2.83552 11.7898 2.10719C11.0268 0.961357 10.382 0.492188 9.0034 0.492188H4.83674ZM4.83674 2.15885H9.0034C9.70757 2.15885 9.8979 2.31552 10.3836 3.04385C11.1453 4.18718 11.7927 4.65385 13.1701 4.65885C13.6892 4.66052 14.0056 4.99303 14.0034 5.51803C14.0032 5.57136 14.0024 5.93885 14.0034 6.32552C13.3784 6.32552 13.3784 6.32552 11.5034 6.32552C10.799 6.32552 10.6095 6.16969 10.1232 5.44052C9.35949 4.29469 8.71565 3.82552 7.33674 3.82552C6.76607 3.82552 5.39191 3.82552 4.00341 3.82552V2.99219C4.00641 2.43885 4.28874 2.15885 4.83674 2.15885Z",fill:"#79829B"})))}var HT,WT=o.forwardRef(zT),VT=(n.p,["title","titleId"]);function UT(){return UT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UT.apply(this,arguments)}function qT(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function GT(e,t){var n=e.title,r=e.titleId,i=qT(e,VT);return o.createElement("svg",UT({width:14,height:18,viewBox:"0 0 14 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,HT||(HT=o.createElement("path",{d:"M3.65218 0.678223C1.52526 0.678223 0.318848 1.88522 0.318848 4.01331V16.5199C0.318848 17.1185 0.940848 17.511 1.49068 17.2755L6.98551 14.9305L12.4803 17.2755C13.0302 17.5113 13.6522 17.1183 13.6522 16.5199V4.01331C13.6522 1.82597 12.5649 0.678306 10.3188 0.678223H3.65218ZM9.48551 5.68089C9.69876 5.68081 9.92176 5.75256 10.0844 5.91531C10.4098 6.24089 10.4098 6.78831 10.0844 7.11389L6.7511 10.449C6.42568 10.7747 5.8786 10.7746 5.55318 10.449L3.88651 8.78147C3.5611 8.45589 3.5611 7.90847 3.88651 7.58289C4.21201 7.25714 4.75901 7.25731 5.08443 7.58289L6.15218 8.65114L8.88651 5.91531C9.04926 5.75247 9.27218 5.68089 9.48551 5.68089Z",fill:"#34A854"})))}var YT,KT=o.forwardRef(GT),JT=(n.p,["title","titleId"]);function XT(){return XT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XT.apply(this,arguments)}function QT(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function $T(e,t){var n=e.title,r=e.titleId,i=QT(e,JT);return o.createElement("svg",XT({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,YT||(YT=o.createElement("path",{d:"M2.99866 0.492188C1.61782 0.492188 0.498657 1.61135 0.498657 2.99219V4.65885V12.1589C0.498657 13.9997 1.99116 15.4922 3.83199 15.4922H12.1653C14.0062 15.4922 15.4987 13.9997 15.4987 12.1589V4.65885C15.4987 4.19885 15.1253 3.82552 14.6653 3.82552C14.6653 3.82552 12.2462 3.82552 10.4987 3.82552C9.86949 3.82552 9.667 3.62135 9.17033 2.62718C8.41783 1.12135 7.78616 0.492188 6.33199 0.492188H2.99866ZM2.99866 2.15885H6.33199C6.96116 2.15885 7.16365 2.36302 7.66032 3.35719C7.76865 3.57469 7.81366 3.64385 7.92033 3.82552C5.04866 3.82552 2.98616 3.82552 2.16532 3.82552V2.99219C2.16532 2.53219 2.53866 2.15885 2.99866 2.15885ZM10.4987 7.15885C10.712 7.15885 10.9345 7.23053 11.0978 7.39303C11.4228 7.71886 11.4228 8.26552 11.0978 8.59135L7.76449 11.9247C7.43865 12.2497 6.892 12.2497 6.56616 11.9247L4.8995 10.258C4.5745 9.93218 4.5745 9.38553 4.8995 9.05969C5.22533 8.73469 5.77199 8.73469 6.09782 9.05969L7.16532 10.1272L9.8995 7.39303C10.0628 7.23053 10.2853 7.15885 10.4987 7.15885Z",fill:"#79829B"})))}var eI,tI=o.forwardRef($T),nI=(n.p,["title","titleId"]);function rI(){return rI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rI.apply(this,arguments)}function oI(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function iI(e,t){var n=e.title,r=e.titleId,i=oI(e,nI);return o.createElement("svg",rI({width:16,height:13,viewBox:"0 0 16 13",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,eI||(eI=o.createElement("path",{d:"M8.00471 0.993652C6.63538 0.993652 5.32738 1.45299 4.27539 2.28565C3.98672 2.51365 3.94272 2.93431 4.17138 3.22298C4.40005 3.51165 4.82005 3.55565 5.10872 3.32698C5.92672 2.67965 6.93871 2.32698 8.00471 2.32698C10.582 2.32698 12.6714 4.41631 12.6714 6.99364H11.338L13.338 9.66031L15.338 6.99364H14.0047C14.0047 3.67965 11.3187 0.993652 8.00471 0.993652ZM2.67138 4.32698L0.671387 6.99364H2.00472C2.00472 10.3076 4.69071 12.9936 8.00471 12.9936C9.37471 12.9936 10.682 12.535 11.734 11.7016C12.0227 11.4736 12.0667 11.053 11.838 10.7643C11.6094 10.4756 11.1894 10.4316 10.9007 10.6603C10.082 11.3083 9.07138 11.6603 8.00471 11.6603C5.42738 11.6603 3.33805 9.57097 3.33805 6.99364H4.67138L2.67138 4.32698Z",fill:"current"})))}var aI,sI=o.forwardRef(iI),lI=(n.p,["title","titleId"]);function cI(){return cI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cI.apply(this,arguments)}function uI(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function dI(e,t){var n=e.title,r=e.titleId,i=uI(e,lI);return o.createElement("svg",cI({width:17,height:18,viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,aI||(aI=o.createElement("path",{d:"M1.99609 17.3451C1.44379 17.3451 0.996094 16.9717 0.996094 16.5117C0.996094 16.0517 1.44379 15.6784 1.99609 15.6784C1.99609 13.4142 3.59769 11.4226 5.99289 10.4676L5.99789 7.61505C3.60269 6.66005 1.99609 4.60924 1.99609 2.34507C1.44379 2.34507 0.996094 1.97174 0.996094 1.51174C0.996094 1.05174 1.44379 0.678406 1.99609 0.678406H2.99609H14.9961H15.9961C16.5484 0.678406 16.9961 1.05174 16.9961 1.51174C16.9961 1.97174 16.5484 2.34507 15.9961 2.34507C15.9961 4.60924 14.3875 6.66092 11.9923 7.61592L11.9901 10.4659C14.3853 11.4209 15.9961 13.4142 15.9961 15.6784C16.5484 15.6784 16.9961 16.0517 16.9961 16.5117C16.9961 16.9717 16.5484 17.3451 15.9961 17.3451H14.9961H2.99609H1.99609ZM3.99609 15.6784H13.9961C13.9961 13.9201 12.6482 12.3917 10.6523 11.7984C10.2542 11.6801 9.99599 11.3692 9.99609 11.0167L10.0094 8.11091C9.45339 8.21508 8.53079 8.18341 8.00089 8.10674L7.99609 11.0167C7.99609 11.3692 7.73799 11.6801 7.33989 11.7984C5.34399 12.3917 3.99609 13.9201 3.99609 15.6784Z",fill:"#79829B"})))}var pI,fI=o.forwardRef(dI),hI=(n.p,["title","titleId"]);function mI(){return mI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mI.apply(this,arguments)}function vI(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function gI(e,t){var n=e.title,r=e.titleId,i=vI(e,hI);return o.createElement("svg",mI({width:16,height:16,viewBox:"0 0 16 16",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,pI||(pI=o.createElement("path",{d:"M5.32747 1.95312C4.95947 1.95312 4.66081 2.25179 4.66081 2.61979V3.28646H4.09814C2.93148 3.28646 1.99414 4.22313 1.99414 5.39046V5.95312C1.99414 7.77246 3.13614 9.37514 5.31814 9.94914C5.77747 10.5551 6.51148 11.0438 7.32214 11.2151L7.32747 12.6198H5.99414C5.62614 12.6198 5.32747 12.9185 5.32747 13.2865C5.32747 13.6545 5.62614 13.9531 5.99414 13.9531H9.99414C10.3621 13.9531 10.6608 13.6545 10.6608 13.2865C10.6608 12.9185 10.3621 12.6198 9.99414 12.6198H8.66081L8.65614 11.2198C9.4668 11.0478 10.1895 10.5825 10.6655 9.93913C12.8875 9.35513 13.9941 7.77246 13.9941 5.95312V5.39046C13.9941 4.2238 13.0575 3.28646 11.8901 3.28646H11.3275V2.61979C11.3275 2.25179 11.0288 1.95312 10.6608 1.95312C9.99414 1.95312 5.99414 1.95312 5.32747 1.95312ZM6.66081 3.28646H7.32747C7.69547 3.28646 7.99414 3.58513 7.99414 3.95312C7.99414 4.32113 7.69547 4.61979 7.32747 4.61979H6.66081C6.29281 4.61979 5.99414 4.32113 5.99414 3.95312C5.99414 3.58513 6.29281 3.28646 6.66081 3.28646ZM4.09814 4.61979H4.66081C4.66081 4.61979 4.65815 8.21447 4.66148 8.2738C3.71681 7.73914 3.32747 6.89179 3.32747 5.95312V5.39046C3.32747 4.9598 3.66748 4.61979 4.09814 4.61979ZM11.3275 4.61979H11.8901C12.3208 4.61979 12.6608 4.9598 12.6608 5.39046V5.95312C12.6608 6.89179 12.2261 7.74579 11.3281 8.26579C11.3315 8.20645 11.3275 8.01313 11.3275 7.95312V4.61979Z",fill:"current"})))}var yI,bI=o.forwardRef(gI),xI=(n.p,["title","titleId"]);function wI(){return wI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wI.apply(this,arguments)}function CI(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function jI(e,t){var n=e.title,r=e.titleId,i=CI(e,xI);return o.createElement("svg",wI({width:14,height:15,viewBox:"0 0 14 15",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,yI||(yI=o.createElement("path",{d:"M6.99869 0.919922C6.09276 0.919922 5.30683 1.35459 4.68616 2.00326C3.78336 1.98326 2.90483 2.22193 2.2695 2.85726C1.63423 3.49259 1.39503 4.37126 1.41536 5.27393C0.766497 5.89459 0.332031 6.68059 0.332031 7.58659C0.332031 8.49259 0.766497 9.27858 1.41536 9.89925C1.39503 10.8019 1.63423 11.6806 2.2695 12.3159C2.9049 12.9513 3.78336 13.1906 4.68616 13.1699C5.30683 13.8186 6.09276 14.2533 6.99869 14.2533C7.90462 14.2533 8.69055 13.8186 9.31122 13.1699C10.214 13.1899 11.0926 12.9513 11.7279 12.3159C12.3631 11.6806 12.6023 10.8019 12.582 9.89925C13.2309 9.27858 13.6653 8.49259 13.6653 7.58659C13.6653 6.68059 13.2309 5.89459 12.582 5.27393C12.6023 4.37126 12.3631 3.49259 11.7279 2.85726C11.0925 2.22193 10.214 1.98259 9.31122 2.00326C8.69055 1.35459 7.90462 0.919922 6.99869 0.919922ZM8.99869 5.58659C9.16929 5.58659 9.34769 5.64393 9.47789 5.77393C9.73822 6.03459 9.73822 6.47192 9.47789 6.73258L6.81122 9.39925C6.55082 9.65925 6.11322 9.65925 5.85282 9.39925L4.51949 8.06592C4.25916 7.80525 4.25916 7.36793 4.51949 7.10726C4.77989 6.84726 5.21749 6.84726 5.47789 7.10726L6.33202 7.96126L8.51949 5.77393C8.64969 5.64393 8.82809 5.58659 8.99869 5.58659Z",fill:"current"})))}var SI,kI,ZI=o.forwardRef(jI),OI=(n.p,{display:"flex",alignItems:"center",justifyContent:"center",height:"24px",width:"fit-content",borderRadius:"3px",textTransform:"uppercase",fontWeight:600,fontSize:"11px",letterSpacing:"0.07rem",".MuiChip-label":{maxHeight:"18px"}}),EI=function(e){var t=e.text,n=e.componentReturnType,r=void 0===n?"chip":n,o=e.showChevronIcons,i=void 0!==o&&o,a=e.isChipClicked,s=e.setIsChipClicked,c=e.onClick,d=e.sx,p=e.className,f=e.chipProps,h=function(){switch(t){case rs.U4.Active:case rs.U4.Accepted:case rs.U4.Approved:case rs.U4.Completed:case rs.U4.Paid:case rs.U4.Published:case rs.U4.FirstRound:case rs.U4.SecondRound:case rs.U4.ProjectCreated:return"chip"===r?{backgroundColor:"secondaryGreen.100",textColor:"secondaryGreen.700",borderColor:"secondaryGreen.200"}:{backgroundColor:"secondaryGreen.500",borderColor:"secondaryGreen.200"};case rs.U4.InProgress:case rs.U4.UnderReview:return"chip"===r?{backgroundColor:"secondaryBlue.100",textColor:"secondaryBlue.700",borderColor:"secondaryBlue.100"}:{backgroundColor:"secondaryBlue.700",borderColor:"secondaryBlue.100"};case rs.U4.Pending:case rs.U4.Late:case rs.U4.Requested:return"chip"===r?{backgroundColor:"secondaryYellow.100",textColor:"secondaryYellow.700",borderColor:"secondaryYellow.200"}:{backgroundColor:"secondaryYellow.700",borderColor:"secondaryYellow.200"};case rs.U4.FirstRoundWithdrawn:case rs.U4.SecondRoundWithdrawn:return"chip"===r?{backgroundColor:"secondaryOrange.201",textColor:"secondaryOrange.501",borderColor:"secondaryOrange.101"}:{backgroundColor:"secondaryOrange.501",borderColor:"secondaryOrange.201"};case rs.U4.Draft:case rs.U4.Closed:case rs.U4.Negotiation:return"chip"===r?{backgroundColor:"primaryDark.200",textColor:"primaryDark.500"}:{backgroundColor:"primaryDark.500",borderColor:"primaryDark.300"};case rs.U4.Canceled:case rs.U4.FirstRoundRejected:case rs.U4.SecondRoundRejected:case rs.U4.Rejected:return"chip"===r?{backgroundColor:"#FFF2F4",textColor:"secondaryPink.500",borderColor:"secondaryPink.200"}:{backgroundColor:"secondaryPink.700",borderColor:"secondaryPink.200"};case rs.U4.Hired:return{background:"linear-gradient(240.98deg, #E6E8FF 0%, #FFEAE1 68.46%, #FFFBEA 99.58%)",textColor:"primaryDark.600",icon:(0,u.jsx)(bI,{fill:tr.IV[600]})};case rs.U4.Verified:return{backgroundColor:"secondaryBlue.50",textColor:"secondaryBlue.700",icon:(0,u.jsx)(ZI,{fill:tr.dx[700]})};default:return"chip"===r?{background:"primaryDark.200",textColor:"primaryDark.700"}:{backgroundColor:"primaryDark.500",borderColor:"primaryDark.300"}}};return(0,u.jsx)(u.Fragment,{children:"chip"===r?(0,u.jsx)(u.Fragment,{children:i?(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",onClick:function(e){null===c||void 0===c||c(e),null===s||void 0===s||s((function(e){return!e}))},sx:(0,l.Z)({px:1,pl:1.5,color:h().textColor,bgcolor:h().backgroundColor,borderRadius:"3px"},d),children:[(0,u.jsx)(Fd.Z,(0,l.Z)({clickable:!1,className:p||void 0,sx:(0,l.Z)((0,l.Z)({},OI),{},{bgcolor:"transparent",cursor:"pointer",color:h().textColor}),label:rs.Z.get(t)},f)),i&&(0,u.jsx)(u.Fragment,{children:a?(0,u.jsx)(_l.Z,{sx:{width:20,height:20}}):(0,u.jsx)(zl.Z,{sx:{width:20,height:20}})})]}):(0,u.jsx)(ns,{sx:{bgcolor:"primaryDark.700",fontSize:"14px"},arrow:!1,title:rs.Z.get(t),children:(0,u.jsx)(Fd.Z,(0,l.Z)({icon:h().icon||void 0,className:p||void 0,sx:(0,l.Z)((0,l.Z)({},OI),{},{color:h().textColor,backgroundColor:h().backgroundColor,background:h().background},d),label:rs.Z.get(t)},f))})}):(0,u.jsx)(ns,{placement:"top",title:rs.Z.get(t),children:(0,u.jsx)(tn,{sx:(0,l.Z)({backgroundColor:null!==h().background?h().backgroundColor:"secondaryGreen.500",borderRadius:"50%",width:18,height:18,border:"3px solid",borderColor:""!==h().borderColor?h().borderColor:"secondaryGreen.200"},d)})})})},DI=["title","titleId"];function PI(){return PI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PI.apply(this,arguments)}function AI(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function MI(e,t){var n=e.title,r=e.titleId,i=AI(e,DI);return o.createElement("svg",PI({xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 18 18",fill:"none",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,SI||(SI=o.createElement("circle",{cx:9,cy:9,r:8,fill:"#DEDEDE",stroke:"#AA96F8",strokeWidth:2})),kI||(kI=o.createElement("circle",{cx:9,cy:9,r:4,fill:"white"})))}var TI,II=o.forwardRef(MI),RI=(n.p,function(e){var t=e.sx,n=e.type,r=void 0===n?"default":n,o={default:(0,u.jsx)(FI,{}),events:(0,u.jsx)(BI,{}),list:(0,u.jsx)(LI,{})};return(0,u.jsx)(nn.Z,{sx:(0,l.Z)({position:"absolute",zIndex:1,top:"50%",left:"50%",width:"100%",height:"100%",transform:"translate(-50%,-50%)",background:"rgba(255, 255, 255, 0.75)"},t),justifyContent:"center",alignItems:"center",children:o[r]})}),FI=function(){return(0,u.jsx)(NZ,{sx:{p:1,height:"5rem",width:"8rem",borderRadius:"0.5rem",justifyContent:"center",alignItems:"center",boxShadow:"1px 10px 30px rgba(56, 69, 114, 0.1)",border:"1px solid",borderColor:"secondaryBlue.100"},children:(0,u.jsxs)(nn.Z,{spacing:1,direction:"column",alignItems:"center",width:"100%",justifyContent:"center",height:"100%",children:[(0,u.jsxs)(nn.Z,{spacing:1,direction:"row",alignItems:"center",justifyContent:"center",width:"80%",children:[(0,u.jsx)(II,{}),(0,u.jsxs)(nn.Z,{direction:"column",width:"80%",children:[(0,u.jsx)(di,{variant:"text",sx:{fontSize:"0.5rem"},width:"100%"}),(0,u.jsx)(di,{variant:"text",sx:{fontSize:"0.5rem"},width:"50%"})]})]}),(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.500",children:"No Records"})]})})},BI=function(){return(0,u.jsxs)(nn.Z,{position:"relative",children:[(0,u.jsx)(NZ,{sx:(0,l.Z)((0,l.Z)({},NI),{},{transform:"translate(-50%,-50%)",zIndex:1}),children:(0,u.jsxs)(nn.Z,{spacing:1,direction:"column",alignItems:"center",width:"100%",justifyContent:"center",height:"100%",children:[(0,u.jsx)(nn.Z,{spacing:1,direction:"row",alignItems:"center",justifyContent:"center",width:"80%",children:(0,u.jsx)(Pl,{fill:tr.E4[500]})}),(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.500",children:"No Events"})]})}),(0,u.jsx)(NZ,{sx:(0,l.Z)((0,l.Z)({},NI),{},{transform:"translate(-30%,-30%)",zIndex:0}),children:(0,u.jsxs)(nn.Z,{direction:"column",width:"100%",children:[(0,u.jsx)(di,{variant:"text",sx:{fontSize:"0.8rem"},width:"100%"}),(0,u.jsx)(di,{variant:"text",sx:{fontSize:"0.8rem"},width:"90%"}),(0,u.jsx)(di,{variant:"text",sx:{fontSize:"0.8rem"},width:"100%"}),(0,u.jsx)(di,{variant:"text",sx:{fontSize:"0.8rem"},width:"90%"})]})})]})},LI=function(){return(0,u.jsxs)(nn.Z,{position:"relative",children:[(0,u.jsx)(NZ,{sx:(0,l.Z)((0,l.Z)({},NI),{},{transform:"translate(-50%,-55%)",zIndex:0,width:"12rem",height:"3rem"}),children:(0,u.jsx)(nn.Z,{spacing:1,direction:"column",alignItems:"start",width:"100%",justifyContent:"start",height:"100%",children:(0,u.jsxs)(nn.Z,{spacing:1,direction:"row",alignItems:"center",justifyContent:"center",width:"80%",children:[(0,u.jsx)(II,{}),(0,u.jsxs)(nn.Z,{direction:"column",width:"60%",children:[(0,u.jsx)(di,{variant:"text",sx:{fontSize:"0.8rem"},width:"100%"}),(0,u.jsx)(di,{variant:"text",sx:{fontSize:"0.8rem"},width:"50%"})]})]})})}),(0,u.jsx)(NZ,{sx:(0,l.Z)((0,l.Z)({},NI),{},{transform:"translate(-40%,-10%)",zIndex:1,width:"8rem"}),children:(0,u.jsxs)(nn.Z,{spacing:1,direction:"column",alignItems:"center",width:"100%",justifyContent:"center",height:"100%",children:[(0,u.jsxs)(nn.Z,{spacing:1,direction:"row",alignItems:"center",justifyContent:"center",width:"80%",children:[(0,u.jsx)(II,{}),(0,u.jsxs)(nn.Z,{direction:"column",width:"80%",children:[(0,u.jsx)(di,{variant:"text",sx:{fontSize:"0.5rem"},width:"100%"}),(0,u.jsx)(di,{variant:"text",sx:{fontSize:"0.5rem"},width:"50%"})]})]}),(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.500",children:"No Records"})]})})]})},NI={p:1,height:"5rem",width:"6rem",borderRadius:"0.5rem",justifyContent:"center",alignItems:"center",boxShadow:"1px 10px 30px rgba(56, 69, 114, 0.1)",border:"1px solid",borderColor:"secondaryBlue.100",position:"absolute",top:"50%",left:"50%"},_I=ir.palette.primaryDark[300],zI=ir.palette.secondaryGreen[500],HI=ir.palette.primaryDark[300],WI=function(e){return e===Kt.tg.InProgress||e===Kt.tg.UnderReview},VI=function(e){var n,r=e.milestones,i=e.sx,a=e.adjacentLayoutHeight,s=(0,ze.UO)(),c=(0,o.useRef)(null),d=Yd(),p=null===d||void 0===d?void 0:d.includes(Kt.ks.Buyer),f=function(e,t){return p?e:t},h=Ra({resource:"projects",id:s.projectId}).data;(0,o.useEffect)((function(){c.current&&c.current.scrollIntoView({behavior:"smooth",block:"center"})}),[r,c.current]);var m=(0,P.ZP)(RM)((function(){var e;return e={},(0,t.Z)(e,"&.".concat(PM.active),(0,t.Z)({},"& .".concat(PM.line),{borderLeft:"1px solid ".concat(_I),borderLeftStyle:-1===(null===r||void 0===r?void 0:r.findIndex((function(e){return WI(e.status)})))?"dashed":"solid"})),(0,t.Z)(e,"&.".concat(PM.completed),(0,t.Z)({},"& .".concat(PM.line),{borderLeft:"1px solid ".concat(zI)})),(0,t.Z)(e,"&.".concat(PM.disabled),(0,t.Z)({},"& .".concat(PM.line),{borderLeft:"1px solid ".concat(HI),borderLeftStyle:"dashed"})),(0,t.Z)(e,"& .".concat(PM.line),{width:50,backgroundColor:"transparent",borderLeft:"1px solid"}),e}));return(0,u.jsxs)(tn,{sx:(0,l.Z)({width:"100%"},i),children:[(0,u.jsxs)(_M,{orientation:"vertical",connector:(0,u.jsx)(m,{}),sx:{flexDirection:"column-reverse",height:null!==r&&void 0!==r&&r.length?(null===r||void 0===r?void 0:r.length)<=2?"50vh":"calc(100vh - ".concat(a,"px - ").concat(bR,"px)"):"30vh",overflow:"scroll",pb:3,pr:2,"& .MuiStepConnector-line":{height:"100%"}},activeStep:-1===(null===r||void 0===r?void 0:r.findIndex((function(e){return WI(e.status)})))?r.length+1:(null===r||void 0===r?void 0:r.findIndex((function(e){return WI(e.status)})))+1,children:[(0,u.jsxs)(UM,{expanded:!0,sx:{zIndex:999999,"&.Mui-completed .MuiStepContent-root":{borderLeft:"1px solid ".concat(zI)}},children:[(0,u.jsx)(uT,{StepIconComponent:function(){return null!==r&&void 0!==r&&r.length?(0,u.jsx)(WT,{style:{width:20,height:20,marginLeft:"4px"}}):(0,u.jsx)(fI,{style:{width:20,height:20,marginLeft:"4px"}})},sx:{"&.MuiStepLabel-root .MuiStepLabel-iconContainer":{width:"40px"}},children:null!==r&&void 0!==r&&r.length?(0,u.jsx)(rn.Z,{sx:{typography:{md:"body2",lg:"body1"}},color:"primaryDark.600",children:"Project created"}):(0,u.jsx)(rn.Z,{sx:{typography:{md:"body2",lg:"body1"}},color:"primaryDark.600",children:"Negotiation"})}),(0,u.jsx)(vT,{sx:{borderLeft:"none !important","&.MuiStepContent-root":{pl:"30px"}},children:(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.500",children:(0,u.jsx)(AT,{date:new Date(null!==(n=null===h||void 0===h?void 0:h.created)&&void 0!==n?n:"")})})})]}),null===r||void 0===r?void 0:r.map((function(e){var t=e.id,n=e.name,r=e.start,o=e.status,i=e.tasksCompletedCount,a=e.tasksCanceledCount,s=e.tasksCount,l=e.end,d=e.relatedMilestones,p=e.currentMilestone,h=e.activeMilestoneIndex,m=e.buyerFlagged,v=e.sellerFlagged;return(0,u.jsxs)(UM,{ref:o===Kt.tg.Completed?c:null,expanded:!0,sx:{"&.Mui-completed .MuiStepContent-root":{borderLeft:"1px solid ".concat(zI)},"& .MuiStepContent-root":{borderLeft:WI(o)?"1px solid ".concat(_I):"1px dashed ".concat(HI)}},children:[(0,u.jsx)(uT,{StepIconComponent:function(e){return function(e,t){var n=t.milestoneStatus,r=t.tasksCompletedCount,o=t.tasksCount,i=t.tasksCanceledCount,a=o?Math.round(r/(o-i)*100):0;switch(n){case Kt.tg.InProgress:case Kt.tg.UnderReview:return(0,u.jsx)(nn.Z,{alignItems:"center",justifyContent:"center",sx:{backgroundColor:"secondaryBlue.100",borderRadius:"3px",color:"secondaryBlue.700",p:"4px",pl:100===a?"9px":"4px"},children:(0,u.jsxs)(rn.Z,{variant:"heading4",children:[a,"%"]})});case Kt.tg.Completed:case Kt.tg.Approved:return(0,u.jsx)(KT,{style:{width:26,height:20}});default:return(0,u.jsx)(EI,{text:"in_pending",componentReturnType:"dot",sx:{ml:"3px"}})}}(0,{milestoneStatus:o,tasksCompletedCount:i,tasksCount:s,tasksCanceledCount:a})},sx:{"&.MuiStepLabel-root .MuiStepLabel-iconContainer":{width:"40px",justifyContent:WI(o)?"center":"normal"}},children:(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,u.jsx)($n,{color:"grey.500",to:function(){var e;return d&&d.length>0?"./end-to-end/milestone/".concat(p||(null===(e=d[0])||void 0===e?void 0:e.id)):"./end-to-end/milestone/".concat(t)}(),underline:"none",sx:{lineHeight:"1px"},children:(0,u.jsx)(rn.Z,{color:WI(o)?"primaryLight.500":o===Kt.tg.Completed||o===Kt.tg.Approved?"secondaryGreen.700":"primaryDark.600",sx:{typography:{md:"body2",lg:"body1"},textDecoration:o===Kt.tg.Completed||o===Kt.tg.Approved?"line-through":"none",opacity:o===Kt.tg.Completed||o===Kt.tg.Pending?.5:1},children:n})}),f(m,v)&&(0,u.jsx)(es.Z,{title:(0,u.jsx)(rn.Z,{fontWeight:"600",children:"Flagged"}),arrow:!0,placement:"top",children:(0,u.jsx)(nn.Z,{alignItems:"center",justifyContent:"center",sx:{bgcolor:"secondaryPink.100",width:"fit-content",height:"fit-content",borderRadius:"6px",p:.75},children:(0,u.jsx)(BT,{fill:tr.Us[700],style:{width:18,height:18}})})}),d&&(null===d||void 0===d?void 0:d.length)>0&&(0,u.jsx)(nn.Z,{alignItems:"center",justifyContent:"center",sx:{backgroundColor:"common.white",border:"1px solid",borderColor:"primaryLight.100",px:.8,py:.5,borderRadius:"3px",color:o===Kt.tg.Completed?"secondaryGreen.700":"primaryLight.500",textDecoration:o===Kt.tg.Completed?"line-through":"none",opacity:o===Kt.tg.Completed?.5:1},children:(0,u.jsxs)(nn.Z,{spacing:.3,direction:"row",alignItems:"center",children:[(0,u.jsx)(sI,{style:{width:18,height:18},fill:o===Kt.tg.Completed?tr.so[700]:tr.E4[500]}),(0,u.jsx)(rn.Z,{variant:"body3",color:o===Kt.tg.Completed?"secondaryGreen.700":"primaryLight.500",children:WI(o)||o===Kt.tg.Completed?h:"-"}),(0,u.jsx)(rn.Z,{variant:"body3",color:o===Kt.tg.Completed?"secondaryGreen.700":"primaryLight.500",children:"/"}),(0,u.jsx)(rn.Z,{variant:"body3",color:o===Kt.tg.Completed?"secondaryGreen.700":"primaryLight.500",children:d?d.length:0})]})})]})}),(0,u.jsx)(vT,{sx:{borderLeft:"1px solid red",pl:"30px",pr:0,"&.MuiStepContent-root .MuiCollapse-root":{opacity:o===Kt.tg.Completed||o===Kt.tg.Pending?.5:1}},children:(0,u.jsx)(nn.Z,{children:(0,u.jsxs)(nn.Z,{spacing:.75,children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.500",children:"Tasks"}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.600",children:s})]}),(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.500",children:"Start date"}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.600",children:(0,rs.qJ)(r,"-")})]}),(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.500",children:"End date"}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.600",children:(0,rs.qJ)(l,"-")})]})]})})})]},t)})),(0,u.jsxs)(UM,{expanded:!0,sx:{"& .MuiStepContent-root":{borderLeft:"1px dashed ".concat(HI)}},children:[(0,u.jsx)(uT,{StepIconComponent:function(){return(0,u.jsx)(tI,{style:{width:20,height:20,marginLeft:"4px"}})},sx:{"&.MuiStepLabel-root .MuiStepLabel-iconContainer":{width:"40px"}},children:(0,u.jsx)(rn.Z,{sx:{typography:{md:"body2",lg:"body1"}},color:"primaryDark.600",children:"End date"})}),(0,u.jsx)(vT,{sx:{"&.MuiStepContent-root":{pl:"30px"}},children:(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.500",children:(0,rs.qJ)(null===h||void 0===h?void 0:h.end,"")})})]})]}),!(null!==r&&void 0!==r&&r.length)&&(0,u.jsx)(RI,{sx:{backgroundColor:"primaryDark.150",opacity:.95}})]})},UI=function(){var e=(0,ze.TH)(),t=(0,ze.UO)(),n=(0,o.useRef)(null),r=(0,o.useRef)(null),i=(0,o.useState)({circularProgressBarWrapperHeight:0,rowHeadingHeight:0}),a=(0,Le.Z)(i,2),s=a[0],l=a[1],c=Ra({resource:"projects",id:t.projectId,enabled:!!t.projectId}).data,d=hi({resource:"milestones/snake?project=".concat(t.projectId),enabled:!!t.projectId,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1}).data,p=null===d||void 0===d?void 0:d.data.results,f=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p,r=null===n||void 0===n?void 0:n.find((function(t){return t.status===e}));return null!==r&&void 0!==r&&r.relatedMilestones.length?null===(t=r.relatedMilestones[r.activeMilestoneIndex-1])||void 0===t?void 0:t.id:null===r||void 0===r?void 0:r.id},h=c&&(0,rs.pf)(c.tasksCount,c.milestoneCount,c.tasksCompletedCount,c.tasksCanceledCount,c.milestoneCompletedCount,c.milestoneApprovedCount);return(0,o.useEffect)((function(){n.current&&r.current&&l({circularProgressBarWrapperHeight:n.current.offsetHeight,rowHeadingHeight:r.current.offsetHeight})}),[t,e,n.current,r.current]),(0,u.jsxs)(nn.Z,{sx:{position:"sticky",top:114,m:0},children:[(0,u.jsxs)(nn.Z,{ref:r,direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{variant:"heading3",color:"primaryDark.600",className:"react-joyride-step-5-project",children:"Milestones"}),(0,u.jsx)($n,{underline:"none",to:"end-to-end/milestone/".concat(f(Kt.tg.InProgress)||f(Kt.tg.UnderReview)||f(Kt.tg.Approved)||f(Kt.tg.Pending)||f(Kt.tg.Completed,null===p||void 0===p?void 0:p.reverse())||f(Kt.tg.Negotiation)),children:(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryLight.500",className:"react-joyride-step-6-project",children:"Explore"})})]}),(0,u.jsx)(nn.Z,{ref:n,alignItems:"center",justifyContent:"center",height:250,className:"react-joyride-step-7-project",children:(0,u.jsx)(jM,{displayScore:!0,truePercentage:h?Math.floor(h):0,entityStatus:null===c||void 0===c?void 0:c.status})}),(0,u.jsx)(VI,{milestones:p||[],adjacentLayoutHeight:s.circularProgressBarWrapperHeight+s.rowHeadingHeight+mR})]})},qI=["children","sx"],GI=function(e){var t=e.children,n=e.sx,r=Nn(e,qI);return(0,u.jsx)(tn,(0,l.Z)((0,l.Z)({sx:(0,l.Z)({backgroundColor:"#ffffff",boxShadow:"6px 6px 15px 0px rgba(56, 69, 114, 0.10)"},n)},r),{},{children:t}))},YI=["title","titleId"];function KI(){return KI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KI.apply(this,arguments)}function JI(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function XI(e,t){var n=e.title,r=e.titleId,i=JI(e,YI);return o.createElement("svg",KI({width:20,height:20,viewBox:"0 0 20 20",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,TI||(TI=o.createElement("path",{d:"M10.0138 4.99731C9.76378 4.99731 9.50378 5.11365 9.33712 5.33581C8.71128 6.16923 4.96212 11.1691 4.33713 12.0025C3.92463 12.5519 4.32712 13.3306 5.01379 13.3306H15.0138C15.7004 13.3306 16.1029 12.5519 15.6904 12.0025L10.6904 5.33581C10.5246 5.11365 10.2638 4.99731 10.0138 4.99731Z",fill:"current"})))}var QI,$I=o.forwardRef(XI),eR=(n.p,["title","titleId"]);function tR(){return tR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tR.apply(this,arguments)}function nR(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function rR(e,t){var n=e.title,r=e.titleId,i=nR(e,eR);return o.createElement("svg",tR({width:20,height:21,viewBox:"0 0 20 21",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,QI||(QI=o.createElement("path",{d:"M5.00586 7.41309C4.31919 7.41309 3.94278 8.19225 4.35486 8.74141C4.97986 9.57474 8.72978 14.5747 9.35486 15.4081C9.68819 15.8522 10.3496 15.8522 10.6829 15.4081L15.6829 8.74141C16.0949 8.19225 15.6926 7.41309 15.0059 7.41309H5.00586Z",fill:"current"})))}var oR,iR=o.forwardRef(rR),aR=(n.p,["title","titleId"]);function sR(){return sR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sR.apply(this,arguments)}function lR(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function cR(e,t){var n=e.title,r=e.titleId,i=lR(e,aR);return o.createElement("svg",sR({width:20,height:20,viewBox:"0 0 20 20",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,oR||(oR=o.createElement("path",{d:"M9.99911 1.62769C5.39677 1.62769 1.66577 5.35852 1.66577 9.96102C1.66577 14.5635 5.39677 18.2944 9.99911 18.2944C14.6016 18.2944 18.3324 14.5635 18.3324 9.96102C18.3324 5.35852 14.6016 1.62769 9.99911 1.62769ZM7.49911 6.62769C7.71227 6.62769 7.93536 6.69936 8.09811 6.86186L9.99911 8.76268L11.8999 6.86186C12.0633 6.69936 12.2858 6.62769 12.4991 6.62769C12.7124 6.62769 12.9349 6.69936 13.0983 6.86186C13.4233 7.18769 13.4233 7.73435 13.0983 8.06018L11.1974 9.96102L13.0983 11.8619C13.4233 12.1877 13.4233 12.7343 13.0983 13.0602C12.7724 13.3852 12.2258 13.3852 11.8999 13.0602L9.99911 11.1594L8.09811 13.0602C7.77269 13.3852 7.2256 13.3852 6.9001 13.0602C6.57469 12.7343 6.57469 12.1877 6.9001 11.8619L8.80077 9.96102L6.9001 8.06018C6.57469 7.73435 6.57469 7.18769 6.9001 6.86186C7.06294 6.69936 7.28586 6.62769 7.49911 6.62769Z",fill:"current"})))}var uR,dR=o.forwardRef(cR),pR=(n.p,function(e){var t,n,r=e.recentChannel,o=e.onClick,i=null===(t=Yd())||void 0===t?void 0:t.includes(Kt.ks.Buyer),a=r.channel.space.project,s=i?null===a||void 0===a?void 0:a.seller:null===a||void 0===a?void 0:a.buyer;return(0,u.jsxs)(nn.Z,{direction:"row",p:"10px",gap:"10px",onClick:o,sx:{cursor:"pointer","&:hover":{backgroundColor:"secondaryBlue.50"}},children:[(0,u.jsx)(Ca,{src:null===s||void 0===s?void 0:s.avatar}),(0,u.jsxs)(nn.Z,{flex:"1",children:[(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",alignItems:"flex-start",children:[(0,u.jsx)(rn.Z,{variant:"bodyMedium3",color:"primaryDark.600",children:(null===(n=r.channel)||void 0===n?void 0:n.type)===Kt.ox.Public?"# ".concat(r.channel.name):"".concat(r.user.firstName," ").concat(r.user.lastName)}),(0,u.jsxs)(rn.Z,{variant:"bodySemiBold4",color:"primaryDark.400",children:[(0,rs.VG)(r.created)," ago"]})]}),(0,u.jsx)(rn.Z,{variant:"body4",fontSize:11,color:"primaryDark.500",children:r.body})]})]})}),fR=function(){var e,t,n,r=Pa(),i=(0,o.useState)(!1),a=(0,Le.Z)(i,2),s=a[0],l=a[1],c=(0,o.useState)(""),d=(0,Le.Z)(c,2),p=d[0],f=d[1],h=null!==(e=null===(t=zp({resource:"channels/recent"}).data)||void 0===t?void 0:t.data)&&void 0!==e?e:[];return(0,u.jsxs)(nn.Z,{position:"fixed",bottom:0,right:30,direction:"row",gap:"10px",alignItems:"flex-end",children:[p?(0,u.jsxs)(GI,{position:"relative",width:"410px",height:"640px",children:[(0,u.jsx)(tn,{position:"absolute",top:"8px",right:"16px",zIndex:1,children:(0,u.jsx)(io.Z,{sx:{p:0},disableRipple:!0,onClick:function(){return f("")},children:(0,u.jsx)(dR,{fill:tr.IV[500]})})}),(0,u.jsx)(eZ,{channelId:p,floating:!0})]}):null,(0,u.jsxs)(nn.Z,{width:300,gap:1,children:[(0,u.jsx)(GI,{sx:{cursor:"pointer"},onClick:function(){return l((function(e){return!e}))},children:(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",p:"10px",children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",gap:"10px",children:[(0,u.jsx)(Ca,{children:null===r||void 0===r||null===(n=r.firstName)||void 0===n?void 0:n[0]}),(0,u.jsx)(rn.Z,{variant:"heading3",color:"primaryDark.600",children:"chat"})]}),s?(0,u.jsx)(iR,{fill:tr.dx[500]}):(0,u.jsx)($I,{fill:tr.IV[500]})]})}),s&&(0,u.jsx)(GI,{children:(0,u.jsx)(nn.Z,{children:h.map((function(e){return(0,u.jsx)(pR,{recentChannel:e,onClick:function(){return f(e.channel.id)}})}))})})]})]})},hR=200,mR=24,vR={sm:3,lg:3},gR=function(e){var t,n=e.outlet,r=e.showSidebar,i=void 0===r||r,a=e.showChat,s=void 0===a||a,l=e.padding,c=void 0===l||l,d=(0,ze.UO)(),p=(0,ze.TH)(),f=(0,ze.s0)(),h=Bn(ir.breakpoints.down("md")),m=(0,o.useState)(!1),v=(0,Le.Z)(m,2),g=v[0],y=v[1],b=Yd(),x=null===b||void 0===b?void 0:b.includes(Kt.ks.Buyer),w=Pa(),C=null===w||void 0===w?void 0:w.membership,j=Ra({resource:"companies",id:null===w||void 0===w||null===(t=w.membership)||void 0===t?void 0:t.company,enabled:!!w}).data;(0,o.useEffect)((function(){null===C&&f("/dashboard/create-company")}),[C,f]);var S=(null===j||void 0===j?void 0:j.status)===Kt.cM.Pending||(null===j||void 0===j?void 0:j.status)===Kt.cM.Rejected;return(0,u.jsx)(cM.Provider,{value:g?hR:56,children:(0,u.jsxs)(tn,{sx:{flexGrow:1,ml:{md:0,bg:ir.spacing(7),lg:0}},children:[(0,u.jsxs)(nn.Z,{direction:"row",children:[(0,u.jsx)(kR,{isSidebarOpen:g,setIsSidebarOpen:y,showSidebar:i,items:null===C?[{title:"Home",to:"/dashboard",Icon:pA,name:"home",disabled:!0}]:x?sM:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return[{title:"Home",to:"/dashboard",Icon:pA,name:"home"},{title:"Case studies",to:"./case-studies/",Icon:PA,name:"case-studies",disabled:!!e},{title:"Pitches",to:"./pitches",Icon:yA,name:"pitches",disabled:!!e},{title:"End-to-end",to:"./end-to-end",Icon:FA,name:"end-to-end",disabled:!!e}]}(S),sx:{zIndex:5}}),!h&&(0,u.jsx)(tn,{component:"main",sx:{flexGrow:1,width:i?{md:"70%",bg:"68%",lg:"72%",xl:"77%"}:"100%",p:c?"".concat(24,"px"):"0px",mt:"".concat(bR,"px"),overflowX:"hidden !important",position:"relative"},children:n}),i&&(0,u.jsx)(nn.Z,{sx:{width:{md:"30%",bg:"32%",lg:"28%",xl:"23%"},backgroundColor:"primaryDark.200",pt:"".concat(mR,"px"),px:{md:2,xl:3}},children:p.pathname.includes("project")&&d.projectId?(0,u.jsx)(UI,{}):(0,u.jsx)(wM,{sidebarData:{sidebarMessages:void 0},sx:{position:"sticky",top:114,overflow:"unset"}})})]}),s&&(0,u.jsx)(fR,{})]})})},yR=["Icon"],bR=90,xR="6px 6px 15px rgba(56, 69, 114, 0.1)",wR=function(e,t){return{width:hR,transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen}),overflowX:"hidden",outline:0}},CR=function(e){return{transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowX:"hidden",width:56}},jR=(0,P.ZP)("div")((function(e){e.theme;return{display:"flex",alignItems:"center",justifyContent:"flex-end",height:bR}})),SR=(0,P.ZP)(ec,{shouldForwardProp:function(e){return"open"!==e}})((function(e){var t=e.theme,n=e.open;return(0,l.Z)((0,l.Z)({width:hR,flexShrink:0,whiteSpace:"nowrap",borderRight:"1px solid #DCDCFF",marginTop:20,boxSizing:"border-box"},n&&(0,l.Z)((0,l.Z)({},wR(t)),{},{"& .MuiDrawer-paper":wR(t)})),!n&&(0,l.Z)((0,l.Z)({},CR(t)),{},{"& .MuiDrawer-paper":CR(t)}))})),kR=function(e){var t=e.sx,n=e.isAdmin,r=e.items,i=e.isSidebarOpen,a=e.setIsSidebarOpen,s=(0,j.Z)(),c=Bn(s.breakpoints.down("lg")),d=(0,ze.TH)().pathname,p=(0,ze.s0)();(0,o.useEffect)((function(){a(!c)}),[c]);var f=function(e){return"home"===e&&("/dashboard/"===d||"/dashboard"===d)||d.split("/").includes(e.toLowerCase())},h="width 0.5s, padding 0.5s, all 0.2s ease",m={background:"none",gap:"10px",justifyContent:"start",fontSize:"14px",height:"25px",alignItems:"center",borderRadius:0,transition:h,pl:i?"25px":"14px",minWidth:0};return(0,u.jsxs)(tn,{sx:(0,l.Z)({display:"flex",zIndex:1,height:"100vh"},t),children:[(0,u.jsx)(wZ,{isOpen:i,setIsOpen:a,drawerWidth:hR,appbarHeight:bR}),(0,u.jsxs)(SR,{variant:"permanent",open:i,sx:{display:{xs:"none",md:i?"block":"none",bg:"block"},position:{md:"fixed",bg:"fixed",lg:"relative"},".MuiDrawer-paperAnchorLeft":{boxShadow:{md:xR,bg:i?xR:"none",lg:"none"},overflow:"visible"}},children:[(0,u.jsx)(jR,{sx:{"&.MuiPaper-root":{p:0,m:0},"&.MuiDrawer-paper":{borderRight:0}}}),(0,u.jsxs)(nn.Z,{justifyContent:"space-between",height:"calc(100% - 90px)",children:[(0,u.jsxs)(nn.Z,{children:[(0,u.jsxs)(jZ,{onButtonClick:function(){return p("../")},setUpperCase:!0,fontWeight:"600",sx:{background:"#EEE9FF",gap:"10px",fontSize:"12px",height:"50px",justifyContent:"start",alignItems:"center",borderRadius:0,transition:h,pt:"11px",pl:i?"25px":"14px",mb:6,borderLeft:"5px solid #EEE9FF",minWidth:"auto"},children:[(0,u.jsx)(DZ,{fill:s.palette.primaryDark[600]}),i&&(0,u.jsx)(rn.Z,{variant:"body3",fontWeight:"500",color:"primaryDark.600",children:"to spona public"})]}),(0,u.jsx)(nn.Z,{spacing:n?1.5:3,children:null===r||void 0===r?void 0:r.map((function(e){var t=e.Icon,n=Nn(e,yR);return(0,u.jsxs)(jZ,{onButtonClick:function(){return null},linkTo:null===n||void 0===n?void 0:n.to,setUpperCase:!0,disabled:n.disabled,fontWeight:"600",color:f(null===n||void 0===n?void 0:n.name)?tr.E4[700]:tr.IV[500],sx:(0,l.Z)((0,l.Z)({},m),{},{borderLeft:f(null===n||void 0===n?void 0:n.name)?"5px solid #6D51F6":"5px solid #FFF"}),children:[(0,u.jsx)(t,{fill:f(null===n||void 0===n?void 0:n.name)?s.palette.secondary.main:"#79829B"}),i&&n.title]})}))})]}),(0,u.jsxs)(jZ,{onButtonClick:function(){return localStorage.removeItem("AccessToken"),localStorage.removeItem("userData"),void p("../")},setUpperCase:!0,fontWeight:"600",sx:(0,l.Z)((0,l.Z)({},m),{},{borderLeft:"5px solid #FFF",pointerEvents:"all",color:tr.IV[500]}),children:[(0,u.jsx)(IZ,{fill:"#79829B"}),i&&"Log out"]})]}),(0,u.jsx)(nn.Z,{height:"100%",width:"100%",alignItems:"center",justifyContent:"center",sx:{mt:2,width:20,height:20,backgroundColor:"#F7F7F7",p:3.5,boxShadow:i?"6px 6px 15px rgba(56, 69, 114, 0.1)":"none",borderRadius:i?"0 8px 0px 0":"none"},children:(0,u.jsx)(aA,{})})]})]})},ZR=function(){var e=mc();return(0,u.jsxs)(nn.Z,{direction:"row",height:"calc(100vh - ".concat(bR,"px)"),children:[(0,u.jsx)(Np,{}),e.currentChannelId&&(0,u.jsx)(eZ,{channelId:e.currentChannelId},e.currentChannelId)]})},OR=function(e){return 1===e},ER=["title","titleId"];function DR(){return DR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},DR.apply(this,arguments)}function PR(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function AR(e,t){var n=e.title,r=e.titleId,i=PR(e,ER);return o.createElement("svg",DR({width:13,height:11,viewBox:"0 0 13 11",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,uR||(uR=o.createElement("path",{d:"M0.0119629 5.48828C0.0119629 4.93628 0.459963 4.48828 1.01196 4.48828H7.01196V0.488281L12.012 5.48828L7.01196 10.4883V6.48828H1.01196C0.459963 6.48828 0.0119629 6.04028 0.0119629 5.48828Z",fill:"current"})))}var MR,TR=o.forwardRef(AR),IR=(n.p,["title","titleId"]);function RR(){return RR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},RR.apply(this,arguments)}function FR(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function BR(e,t){var n=e.title,r=e.titleId,i=FR(e,IR);return o.createElement("svg",RR({width:17,height:13,viewBox:"0 0 17 13",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,MR||(MR=o.createElement("path",{d:"M16.2655 6.48519C16.2655 5.77219 15.6868 5.19352 14.9738 5.19352H7.22384V0.0268555L0.765503 6.48519L7.22384 12.9435V7.77686H14.9738C15.6868 7.77686 16.2655 7.19819 16.2655 6.48519Z",fill:"#79829B"})))}var LR=o.forwardRef(BR),NR=(n.p,function(e){var t=e.status;return{padding:"16px",borderRadius:"6px",background:"success"===t?tr.so[100]:"active"===t?"linear-gradient(240.98deg, #E6E8FF 0%, #FFEAE1 68.46%, #FFFBEA 99.58%)":tr.IV[100]}}),_R=function(e){var t=e.status;return{width:"36px",height:"36px",padding:"10px 13px",margin:"0 0 10px 0",fontSize:"16px",fontWeight:600,color:"success"===t?tr.so[700]:"active"===t?tr.dx[700]:tr.IV[300],background:"success"===t?tr.so[200]:"active"===t?"#F6F7FF":tr.IV[100],borderRadius:"2px"}},zR={height:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},HR={position:"relative",width:"12.5px",height:"12.5px",borderRadius:"50%",background:tr.IV[300],"&:before":{position:"absolute",left:"2px",top:"2px",content:"''",width:"8px",height:"8px",borderRadius:"50%",background:tr.IV[500]}},WR={padding:"6px 12px",fontSize:"11px",fontWeight:600,color:tr.IV[500],textTransform:"uppercase",letterSpacing:"0.05em",lineHeight:"16px",borderRadius:"3px",background:tr.IV[200],"&:hover #draftIcon":{background:tr.so[200],"&:before":{background:tr.so[500]}}},VR={".MuiButton-startIcon":{border:"1px solid ".concat(tr.IV[300]),borderRadius:"50%",padding:"14px 12px"},margin:"0 0 40px 0",padding:"2px",justifyContent:"flex-start",color:tr.IV[500]},UR=function(e){var t=e.form,n=e.steps,r=e.currentStep,o=e.onChange,i=e.onSubmit,a=e.children,s=e.layoutOrientation,c=void 0===s?"column":s,d=e.rightColumnRenderProp,p=e.helperText,f=e.onCancelClick,h=e.onSaveAsDraft,m=e.disableCancelButton,v=void 0!==m&&m,g=e.isSubmitLoading,y=void 0!==g&&g,b=(0,ze.s0)(),x=(t.formState.errors,t.handleSubmit),w=function(e){var n=e.style;return(0,u.jsx)(ko.Z,{sx:WR,onClick:function(){return null===h||void 0===h?void 0:h(t.getValues())},style:(0,l.Z)({},n),startIcon:(0,u.jsx)(tn,{sx:HR,id:"draftIcon"}),children:"Save draft"})},C=function(e){var t=e.buttonSx;return(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",sx:{mb:"40px !important"},children:[(0,u.jsx)(Wo,{variant:"secondary",withBackArrow:!0,onClick:function(){return o("decrement")},disabled:OR(r),sx:(0,l.Z)({},t),children:"Back"}),r<n.length?(0,u.jsx)(Wo,{variant:"primary",endIcon:(0,u.jsx)(TR,{fill:"#fff"}),onClick:function(){return o("increment")},sx:(0,l.Z)({},t),children:"Next"}):(0,u.jsx)(Wo,{variant:"primary",onClick:x(i),loading:y,sx:(0,l.Z)({},t),children:"Submit"},"submit")]})};return(0,u.jsxs)(u.Fragment,{children:[!v&&(0,u.jsx)(Wo,{variant:"primaryText",sx:VR,startIcon:(0,u.jsx)(LR,{fill:tr.IV[500]}),onClick:function(){b("../"),f&&f()},children:"Cancel"}),(0,u.jsxs)(nn.Z,{spacing:5,children:[(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},t),{},{children:(0,u.jsxs)("form",{style:{display:"flex",flexDirection:"column"},onSubmit:x(i),children:[(0,u.jsxs)(nn.Z,{spacing:5,children:[(0,u.jsx)(nn.Z,{direction:"row",spacing:2,children:n.map((function(e){var t=e.status,n=e.label,r=e.position;return(0,u.jsxs)(tn,{sx:NR({status:t}),children:[(0,u.jsx)(tn,{sx:_R({status:t}),children:r}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"success"===t?"secondaryGreen.700":"active"===t?"primaryDark.600":"primaryDark.400",children:n})]},"".concat(r).concat(t))}))}),"column"===c&&(0,u.jsx)(tn,{sx:{width:"100%"},children:a})]}),"row"===c&&(0,u.jsxs)(nn.Z,{spacing:4,direction:"row",sx:{mt:4},children:[(0,u.jsxs)(nn.Z,{spacing:5,sx:{width:"70%"},children:[a,(0,u.jsx)(un,{sx:{borderColor:"secondaryBlue.100"}})]}),(0,u.jsxs)(nn.Z,{spacing:4.5,width:"28%",children:[h?(0,u.jsx)(w,{style:{width:"fit-content"}}):(0,u.jsx)(u.Fragment,{}),null===d||void 0===d?void 0:d(),C({buttonSx:{width:"50%"}})]})]})]})})),"column"===c&&(0,u.jsx)(un,{sx:{borderColor:"secondaryBlue.100"}}),"column"===c&&(0,u.jsxs)(tn,{sx:zR,children:[h?(0,u.jsx)(w,{}):(0,u.jsx)("div",{}),C({})]}),p&&(0,u.jsx)(nn.Z,{alignItems:"center",justifyContent:"center",sx:{maxWidth:"50%",alignSelf:"end",bgcolor:"primaryDark.200",p:2,borderRadius:"4px"},children:(0,u.jsx)(rn.Z,{color:"primaryDark.500",children:p})})]})]})};var qR=function(e){var t=e.labels,n=e.initialState,r=o.useState(1),i=(0,Le.Z)(r,2),a=i[0],s=i[1],l=fd({defaultValues:n,mode:"onChange"}),c=function(){var e=ds(hs().mark((function e(t){var n;return hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.trigger();case 2:n=e.sent,e.t0=t,e.next="increment"===e.t0?6:"decrement"===e.t0?8:10;break;case 6:return n&&s((function(e){return e+1})),e.abrupt("break",11);case 8:return s((function(e){return e-1})),e.abrupt("break",11);case 10:return e.abrupt("break",11);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),u=o.useMemo((function(){return t.map((function(e,t){return{label:e,position:t+1,status:t+1===a?"active":t+1<a?"success":"disabled"}}))}),[a]);return{currentStep:a,steps:u,onStepChange:c,form:l}},GR=n(32898);function YR(e){return(0,F.Z)("MuiFormGroup",e)}(0,R.Z)("MuiFormGroup",["root","row","error"]);var KR=n(84908),JR=["className","row"],XR=(0,P.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.row&&t.row]}})((function(e){var t=e.ownerState;return(0,r.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},t.row&&{flexDirection:"row"})})),QR=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiFormGroup"}),o=n.className,i=n.row,a=void 0!==i&&i,s=(0,b.Z)(n,JR),l=(0,uy.Z)(),c=(0,KR.Z)({props:n,muiFormControl:l,states:["error"]}),d=(0,r.Z)({},n,{row:a,error:c.error}),p=function(e){var t=e.classes,n={root:["root",e.row&&"row",e.error&&"error"]};return(0,M.Z)(n,YR,t)}(d);return(0,u.jsx)(XR,(0,r.Z)({className:(0,y.default)(p.root,o),ownerState:d,ref:t},s))})),$R=QR,eF=n(93192);var tF=o.createContext(void 0),nF=["actions","children","defaultValue","name","onChange","value"],rF=o.forwardRef((function(e,t){var n=e.actions,i=e.children,a=e.defaultValue,s=e.name,l=e.onChange,c=e.value,d=(0,b.Z)(e,nF),p=o.useRef(null),f=(0,eF.Z)({controlled:c,default:a,name:"RadioGroup"}),h=(0,Le.Z)(f,2),m=h[0],v=h[1];o.useImperativeHandle(n,(function(){return{focus:function(){var e=p.current.querySelector("input:not(:disabled):checked");e||(e=p.current.querySelector("input:not(:disabled)")),e&&e.focus()}}}),[]);var g=(0,C.Z)(t,p),y=(0,So.Z)(s),x=o.useMemo((function(){return{name:y,onChange:function(e){v(e.target.value),l&&l(e,e.target.value)},value:m}}),[y,l,v,m]);return(0,u.jsx)(tF.Provider,{value:x,children:(0,u.jsx)($R,(0,r.Z)({role:"radiogroup",ref:g},d,{children:i}))})})),oF=rF,iF=n(66554),aF=n(13769),sF=(0,pa.Z)((0,u.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),lF=(0,pa.Z)((0,u.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),cF=(0,P.ZP)("span")({position:"relative",display:"flex"}),uF=(0,P.ZP)(sF)({transform:"scale(1)"}),dF=(0,P.ZP)(lF)((function(e){var t=e.theme,n=e.ownerState;return(0,r.Z)({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest})},n.checked&&{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})})}));var pF=function(e){var t=e.checked,n=void 0!==t&&t,o=e.classes,i=void 0===o?{}:o,a=e.fontSize,s=(0,r.Z)({},e,{checked:n});return(0,u.jsxs)(cF,{className:i.root,ownerState:s,children:[(0,u.jsx)(uF,{fontSize:a,className:i.background,ownerState:s}),(0,u.jsx)(dF,{fontSize:a,className:i.dot,ownerState:s})]})},fF=n(33472);function hF(e){return(0,F.Z)("MuiRadio",e)}var mF=(0,R.Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]),vF=["checked","checkedIcon","color","icon","name","onChange","size","className"],gF=(0,P.ZP)(aF.Z,{shouldForwardProp:function(e){return(0,P.FO)(e)||"classes"===e},name:"MuiRadio",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["color".concat((0,Zn.Z)(n.color))]]}})((function(e){var n=e.theme,o=e.ownerState;return(0,r.Z)({color:(n.vars||n).palette.text.secondary},!o.disableRipple&&{"&:hover":{backgroundColor:n.vars?"rgba(".concat("default"===o.color?n.vars.palette.action.activeChannel:n.vars.palette[o.color].mainChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,A.Fq)("default"===o.color?n.palette.action.active:n.palette[o.color].main,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==o.color&&(0,t.Z)({},"&.".concat(mF.checked),{color:(n.vars||n).palette[o.color].main}),(0,t.Z)({},"&.".concat(mF.disabled),{color:(n.vars||n).palette.action.disabled}))}));var yF,bF=(0,u.jsx)(pF,{checked:!0}),xF=(0,u.jsx)(pF,{}),wF=o.forwardRef((function(e,t){var n,i,a=(0,T.Z)({props:e,name:"MuiRadio"}),s=a.checked,l=a.checkedIcon,c=void 0===l?bF:l,d=a.color,p=void 0===d?"primary":d,f=a.icon,h=void 0===f?xF:f,m=a.name,v=a.onChange,g=a.size,x=void 0===g?"medium":g,w=a.className,C=(0,b.Z)(a,vF),j=(0,r.Z)({},a,{color:p,size:x}),S=function(e){var t=e.classes,n=e.color,o={root:["root","color".concat((0,Zn.Z)(n))]};return(0,r.Z)({},t,(0,M.Z)(o,hF,t))}(j),k=o.useContext(tF),Z=s,O=(0,fF.Z)(v,k&&k.onChange),E=m;return k&&("undefined"===typeof Z&&(Z=function(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}(k.value,a.value)),"undefined"===typeof E&&(E=k.name)),(0,u.jsx)(gF,(0,r.Z)({type:"radio",icon:o.cloneElement(h,{fontSize:null!=(n=xF.props.fontSize)?n:x}),checkedIcon:o.cloneElement(c,{fontSize:null!=(i=bF.props.fontSize)?i:x}),ownerState:j,classes:S,name:E,checked:Z,onChange:O,ref:t,className:(0,y.default)(S.root,w)},C))})),CF=wF,jF=["title","titleId"];function SF(){return SF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SF.apply(this,arguments)}function kF(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ZF(e,t){var n=e.title,r=e.titleId,i=kF(e,jF);return o.createElement("svg",SF({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,yF||(yF=o.createElement("circle",{cx:8,cy:8,r:7,stroke:"#BFC6D7",strokeWidth:2})))}var OF,EF,DF=o.forwardRef(ZF),PF=(n.p,["title","titleId"]);function AF(){return AF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},AF.apply(this,arguments)}function MF(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function TF(e,t){var n=e.title,r=e.titleId,i=MF(e,PF);return o.createElement("svg",AF({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,OF||(OF=o.createElement("circle",{cx:8,cy:8,r:7,fill:"#ABEB4D",stroke:"#ABEB4D",strokeWidth:2})),EF||(EF=o.createElement("circle",{cx:8,cy:8,r:5,fill:"#34A854"})))}var IF=o.forwardRef(TF);n.p;var RF=function(e){var t=e.label,n=e.value,r=e.radioProps,o=e.labelSx;return(0,u.jsx)(iF.Z,{sx:(0,l.Z)({color:tr.IV[600],textTransform:"uppercase",".MuiTypography-root":{fontFamily:"Gellix-SemiBold",fontSize:"14px"}},o),value:n,control:(0,u.jsx)(CF,(0,l.Z)({size:"small",icon:(0,u.jsx)(DF,{}),checkedIcon:(0,u.jsx)(IF,{}),disableRipple:!0},r)),label:t||""})};var FF=function(e){var t=e.name,n=e.label,r=e.radio,o=e.required,i=e.options,a=Xc().control;return(0,u.jsxs)(u.Fragment,{children:[n&&(0,u.jsx)(Cd,{text:n,required:o}),(0,u.jsx)(du,{name:t,control:a,render:function(e){var t=e.field;return i?(0,u.jsx)(oF,(0,l.Z)((0,l.Z)({},t),{},{onChange:function(e){return t.onChange((0,rs.vZ)(e.target.value))},name:"row-radio-buttons-group",children:(0,u.jsx)(tn,{sx:{display:"flex"},children:Array.from(i,(function(e){var t=(0,Le.Z)(e,2),n=t[0],r=t[1];return(0,u.jsx)(RF,{labelSx:{marginRight:"32px"},value:n,label:r})}))})})):(0,u.jsx)(RF,(0,l.Z)((0,l.Z)({},t),{},{labelSx:null===r||void 0===r?void 0:r.sx,value:t.value,label:null===r||void 0===r?void 0:r.label,radioProps:(0,l.Z)((0,l.Z)({},null===r||void 0===r?void 0:r.config),{},{onChange:function(e){return t.onChange((0,rs.vZ)(e.target.value))}})}))}})]})},BF={user:Kt.ks.SellerService,overview:{name:"",url:"",description:"",headquartersLocation:{country:"",city:"",state:""},avatar:""},admin:{jobTitle:""}},LF=(0,l.Z)((0,l.Z)({},BF),{},{details:{targetIndustries:[],targetCountries:[],companySize:"",languages:[]},user:Kt.ks.Buyer}),NF=(0,l.Z)((0,l.Z)({},BF),{},{details:{targetIndustries:[],targetCountries:[],companySize:"",languages:[],services:[],clients:[],hourlyRate:"",averageProjectSize:"",currency:Kt.CF.Usd},user:Kt.ks.SellerService}),_F=["","","Your account administrator is user that registered your company account. Contact our support team to add additional account users and assign roles and permissions.",""],zF={padding:"24px",border:"1px solid ".concat(tr.dx[100]),borderRadius:"6px",marginLeft:"0px"},HF={fontFamily:"Gellix-SemiBold",color:tr.IV[500]},WF={seller_service:(0,u.jsxs)(u.Fragment,{children:["Be sure to choose the correct user type! If your company offers digital services and is looking for new clients, your user type is ",(0,u.jsx)("b",{style:HF,children:"seller"}),"."]}),buyer:(0,u.jsxs)(u.Fragment,{children:["Be sure to choose the correct user type! If your company is looking to hire service providers for digital projects, your user type is ",(0,u.jsx)("b",{style:HF,children:"buyer"}),"."]})},VF=function(){var e=Xc(),t=e.watch,n=e.reset,r=t("user"),o=r===Kt.ks.Buyer,i=r===Kt.ks.SellerService;return(0,u.jsxs)(GR.Z,{flexDirection:"column",gap:1,children:[(0,u.jsx)(Cd,{text:"select your user type"}),(0,u.jsxs)(oF,{name:"user",sx:{display:"flex",flexDirection:"row",gap:1},children:[(0,u.jsx)(FF,{name:"user",radio:{label:"Buyer",sx:(0,l.Z)((0,l.Z)({},zF),{},{borderColor:o?tr.so[500]:tr.dx[100]}),config:{onClick:function(){return n(LF)},checked:o}}}),(0,u.jsx)(FF,{name:"user",radio:{label:"Seller",sx:(0,l.Z)((0,l.Z)({},zF),{},{borderColor:i?tr.so[500]:tr.dx[100]}),config:{onClick:function(){return n(NF)},checked:i}}})]}),(0,u.jsx)(GR.Z,{sx:{maxWidth:"50%",bgcolor:"primaryDark.200",borderRadius:"4px",p:2,mt:2},children:(0,u.jsx)(rn.Z,{color:"primaryDark.500",children:WF[r]})})]})},UF=n(47169),qF=n(67591),GF=n(99616);function YF(e){this.content=e}YF.prototype={constructor:YF,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return-1==t?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,o=r.find(e),i=r.content.slice();return-1==o?i.push(n||e,t):(i[o+1]=t,n&&(i[o]=n)),new YF(i)},remove:function(e){var t=this.find(e);if(-1==t)return this;var n=this.content.slice();return n.splice(t,2),new YF(n)},addToStart:function(e,t){return new YF([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new YF(n)},addBefore:function(e,t,n){var r=this.remove(t),o=r.content.slice(),i=r.find(e);return o.splice(-1==i?o.length:i,0,t,n),new YF(o)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=YF.from(e)).size?new YF(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=YF.from(e)).size?new YF(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=YF.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},get size(){return this.content.length>>1}},YF.from=function(e){if(e instanceof YF)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new YF(t)};var KF=YF;function JF(e,t,n){for(var r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;var o=e.child(r),i=t.child(r);if(o!=i){if(!o.sameMarkup(i))return n;if(o.isText&&o.text!=i.text){for(var a=0;o.text[a]==i.text[a];a++)n++;return n}if(o.content.size||i.content.size){var s=JF(o.content,i.content,n+1);if(null!=s)return s}n+=o.nodeSize}else n+=o.nodeSize}}function XF(e,t,n,r){for(var o=e.childCount,i=t.childCount;;){if(0==o||0==i)return o==i?null:{a:n,b:r};var a=e.child(--o),s=t.child(--i),l=a.nodeSize;if(a!=s){if(!a.sameMarkup(s))return{a:n,b:r};if(a.isText&&a.text!=s.text){for(var c=0,u=Math.min(a.text.length,s.text.length);c<u&&a.text[a.text.length-c-1]==s.text[s.text.length-c-1];)c++,n--,r--;return{a:n,b:r}}if(a.content.size||s.content.size){var d=XF(a.content,s.content,n-1,r-1);if(d)return d}n-=l,r-=l}else n-=l,r-=l}}var QF=function(e,t){if(this.content=e,this.size=t||0,null==t)for(var n=0;n<e.length;n++)this.size+=e[n].nodeSize},$F={firstChild:{configurable:!0},lastChild:{configurable:!0},childCount:{configurable:!0}};QF.prototype.nodesBetween=function(e,t,n,r,o){void 0===r&&(r=0);for(var i=0,a=0;a<t;i++){var s=this.content[i],l=a+s.nodeSize;if(l>e&&!1!==n(s,r+a,o,i)&&s.content.size){var c=a+1;s.nodesBetween(Math.max(0,e-c),Math.min(s.content.size,t-c),n,r+c)}a=l}},QF.prototype.descendants=function(e){this.nodesBetween(0,this.size,e)},QF.prototype.textBetween=function(e,t,n,r){var o="",i=!0;return this.nodesBetween(e,t,(function(a,s){a.isText?(o+=a.text.slice(Math.max(e,s)-s,t-s),i=!n):a.isLeaf&&r?(o+="function"===typeof r?r(a):r,i=!n):!i&&a.isBlock&&(o+=n,i=!0)}),0),o},QF.prototype.append=function(e){if(!e.size)return this;if(!this.size)return e;var t=this.lastChild,n=e.firstChild,r=this.content.slice(),o=0;for(t.isText&&t.sameMarkup(n)&&(r[r.length-1]=t.withText(t.text+n.text),o=1);o<e.content.length;o++)r.push(e.content[o]);return new QF(r,this.size+e.size)},QF.prototype.cut=function(e,t){if(null==t&&(t=this.size),0==e&&t==this.size)return this;var n=[],r=0;if(t>e)for(var o=0,i=0;i<t;o++){var a=this.content[o],s=i+a.nodeSize;s>e&&((i<e||s>t)&&(a=a.isText?a.cut(Math.max(0,e-i),Math.min(a.text.length,t-i)):a.cut(Math.max(0,e-i-1),Math.min(a.content.size,t-i-1))),n.push(a),r+=a.nodeSize),i=s}return new QF(n,r)},QF.prototype.cutByIndex=function(e,t){return e==t?QF.empty:0==e&&t==this.content.length?this:new QF(this.content.slice(e,t))},QF.prototype.replaceChild=function(e,t){var n=this.content[e];if(n==t)return this;var r=this.content.slice(),o=this.size+t.nodeSize-n.nodeSize;return r[e]=t,new QF(r,o)},QF.prototype.addToStart=function(e){return new QF([e].concat(this.content),this.size+e.nodeSize)},QF.prototype.addToEnd=function(e){return new QF(this.content.concat(e),this.size+e.nodeSize)},QF.prototype.eq=function(e){if(this.content.length!=e.content.length)return!1;for(var t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0},$F.firstChild.get=function(){return this.content.length?this.content[0]:null},$F.lastChild.get=function(){return this.content.length?this.content[this.content.length-1]:null},$F.childCount.get=function(){return this.content.length},QF.prototype.child=function(e){var t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t},QF.prototype.maybeChild=function(e){return this.content[e]},QF.prototype.forEach=function(e){for(var t=0,n=0;t<this.content.length;t++){var r=this.content[t];e(r,n,t),n+=r.nodeSize}},QF.prototype.findDiffStart=function(e,t){return void 0===t&&(t=0),JF(this,e,t)},QF.prototype.findDiffEnd=function(e,t,n){return void 0===t&&(t=this.size),void 0===n&&(n=e.size),XF(this,e,t,n)},QF.prototype.findIndex=function(e,t){if(void 0===t&&(t=-1),0==e)return tB(0,e);if(e==this.size)return tB(this.content.length,e);if(e>this.size||e<0)throw new RangeError("Position "+e+" outside of fragment ("+this+")");for(var n=0,r=0;;n++){var o=r+this.child(n).nodeSize;if(o>=e)return o==e||t>0?tB(n+1,o):tB(n,r);r=o}},QF.prototype.toString=function(){return"<"+this.toStringInner()+">"},QF.prototype.toStringInner=function(){return this.content.join(", ")},QF.prototype.toJSON=function(){return this.content.length?this.content.map((function(e){return e.toJSON()})):null},QF.fromJSON=function(e,t){if(!t)return QF.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new QF(t.map(e.nodeFromJSON))},QF.fromArray=function(e){if(!e.length)return QF.empty;for(var t,n=0,r=0;r<e.length;r++){var o=e[r];n+=o.nodeSize,r&&o.isText&&e[r-1].sameMarkup(o)?(t||(t=e.slice(0,r)),t[t.length-1]=o.withText(t[t.length-1].text+o.text)):t&&t.push(o)}return new QF(t||e,n)},QF.from=function(e){if(!e)return QF.empty;if(e instanceof QF)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new QF([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))},Object.defineProperties(QF.prototype,$F);var eB={index:0,offset:0};function tB(e,t){return eB.index=e,eB.offset=t,eB}function nB(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;var n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if(!nB(e[r],t[r]))return!1}else{for(var o in e)if(!(o in t)||!nB(e[o],t[o]))return!1;for(var i in t)if(!(i in e))return!1}return!0}QF.empty=new QF([],0);var rB=function(e,t){this.type=e,this.attrs=t};function oB(e){var t=Error.call(this,e);return t.__proto__=oB.prototype,t}rB.prototype.addToSet=function(e){for(var t,n=!1,r=0;r<e.length;r++){var o=e[r];if(this.eq(o))return e;if(this.type.excludes(o.type))t||(t=e.slice(0,r));else{if(o.type.excludes(this.type))return e;!n&&o.type.rank>this.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(o)}}return t||(t=e.slice()),n||t.push(this),t},rB.prototype.removeFromSet=function(e){for(var t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e},rB.prototype.isInSet=function(e){for(var t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1},rB.prototype.eq=function(e){return this==e||this.type==e.type&&nB(this.attrs,e.attrs)},rB.prototype.toJSON=function(){var e={type:this.type.name};for(var t in this.attrs){e.attrs=this.attrs;break}return e},rB.fromJSON=function(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");var n=e.marks[t.type];if(!n)throw new RangeError("There is no mark type "+t.type+" in this schema");return n.create(t.attrs)},rB.sameSet=function(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0},rB.setFrom=function(e){if(!e||0==e.length)return rB.none;if(e instanceof rB)return[e];var t=e.slice();return t.sort((function(e,t){return e.type.rank-t.type.rank})),t},rB.none=[],oB.prototype=Object.create(Error.prototype),oB.prototype.constructor=oB,oB.prototype.name="ReplaceError";var iB=function(e,t,n){this.content=e,this.openStart=t,this.openEnd=n},aB={size:{configurable:!0}};function sB(e,t,n){var r=e.findIndex(t),o=r.index,i=r.offset,a=e.maybeChild(o),s=e.findIndex(n),l=s.index,c=s.offset;if(i==t||a.isText){if(c!=n&&!e.child(l).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(o!=l)throw new RangeError("Removing non-flat range");return e.replaceChild(o,a.copy(sB(a.content,t-i-1,n-i-1)))}function lB(e,t,n,r){var o=e.findIndex(t),i=o.index,a=o.offset,s=e.maybeChild(i);if(a==t||s.isText)return r&&!r.canReplace(i,i,n)?null:e.cut(0,t).append(n).append(e.cut(t));var l=lB(s.content,t-a-1,n);return l&&e.replaceChild(i,s.copy(l))}function cB(e,t,n){if(n.openStart>e.depth)throw new oB("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new oB("Inconsistent open depths");return uB(e,t,n,0)}function uB(e,t,n,r){var o=e.index(r),i=e.node(r);if(o==t.index(r)&&r<e.depth-n.openStart){var a=uB(e,t,n,r+1);return i.copy(i.content.replaceChild(o,a))}if(n.content.size){if(n.openStart||n.openEnd||e.depth!=r||t.depth!=r){var s=function(e,t){for(var n=t.depth-e.openStart,r=t.node(n).copy(e.content),o=n-1;o>=0;o--)r=t.node(o).copy(QF.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}(n,e);return mB(i,vB(e,s.start,s.end,t,r))}var l=e.parent,c=l.content;return mB(l,c.cut(0,e.parentOffset).append(n.content).append(c.cut(t.parentOffset)))}return mB(i,gB(e,t,r))}function dB(e,t){if(!t.type.compatibleContent(e.type))throw new oB("Cannot join "+t.type.name+" onto "+e.type.name)}function pB(e,t,n){var r=e.node(n);return dB(r,t.node(n)),r}function fB(e,t){var n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function hB(e,t,n,r){var o=(t||e).node(n),i=0,a=t?t.index(n):o.childCount;e&&(i=e.index(n),e.depth>n?i++:e.textOffset&&(fB(e.nodeAfter,r),i++));for(var s=i;s<a;s++)fB(o.child(s),r);t&&t.depth==n&&t.textOffset&&fB(t.nodeBefore,r)}function mB(e,t){if(!e.type.validContent(t))throw new oB("Invalid content for node "+e.type.name);return e.copy(t)}function vB(e,t,n,r,o){var i=e.depth>o&&pB(e,t,o+1),a=r.depth>o&&pB(n,r,o+1),s=[];return hB(null,e,o,s),i&&a&&t.index(o)==n.index(o)?(dB(i,a),fB(mB(i,vB(e,t,n,r,o+1)),s)):(i&&fB(mB(i,gB(e,t,o+1)),s),hB(t,n,o,s),a&&fB(mB(a,gB(n,r,o+1)),s)),hB(r,null,o,s),new QF(s)}function gB(e,t,n){var r=[];(hB(null,e,n,r),e.depth>n)&&fB(mB(pB(e,t,n+1),gB(e,t,n+1)),r);return hB(t,null,n,r),new QF(r)}aB.size.get=function(){return this.content.size-this.openStart-this.openEnd},iB.prototype.insertAt=function(e,t){var n=lB(this.content,e+this.openStart,t,null);return n&&new iB(n,this.openStart,this.openEnd)},iB.prototype.removeBetween=function(e,t){return new iB(sB(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)},iB.prototype.eq=function(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd},iB.prototype.toString=function(){return this.content+"("+this.openStart+","+this.openEnd+")"},iB.prototype.toJSON=function(){if(!this.content.size)return null;var e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e},iB.fromJSON=function(e,t){if(!t)return iB.empty;var n=t.openStart||0,r=t.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw new RangeError("Invalid input for Slice.fromJSON");return new iB(QF.fromJSON(e,t.content),n,r)},iB.maxOpen=function(e,t){void 0===t&&(t=!0);for(var n=0,r=0,o=e.firstChild;o&&!o.isLeaf&&(t||!o.type.spec.isolating);o=o.firstChild)n++;for(var i=e.lastChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.lastChild)r++;return new iB(e,n,r)},Object.defineProperties(iB.prototype,aB),iB.empty=new iB(QF.empty,0,0);var yB=function(e,t,n){this.pos=e,this.path=t,this.depth=t.length/3-1,this.parentOffset=n},bB={parent:{configurable:!0},doc:{configurable:!0},textOffset:{configurable:!0},nodeAfter:{configurable:!0},nodeBefore:{configurable:!0}};yB.prototype.resolveDepth=function(e){return null==e?this.depth:e<0?this.depth+e:e},bB.parent.get=function(){return this.node(this.depth)},bB.doc.get=function(){return this.node(0)},yB.prototype.node=function(e){return this.path[3*this.resolveDepth(e)]},yB.prototype.index=function(e){return this.path[3*this.resolveDepth(e)+1]},yB.prototype.indexAfter=function(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)},yB.prototype.start=function(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1},yB.prototype.end=function(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size},yB.prototype.before=function(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]},yB.prototype.after=function(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize},bB.textOffset.get=function(){return this.pos-this.path[this.path.length-1]},bB.nodeAfter.get=function(){var e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;var n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r},bB.nodeBefore.get=function(){var e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)},yB.prototype.posAtIndex=function(e,t){t=this.resolveDepth(t);for(var n=this.path[3*t],r=0==t?0:this.path[3*t-1]+1,o=0;o<e;o++)r+=n.child(o).nodeSize;return r},yB.prototype.marks=function(){var e=this.parent,t=this.index();if(0==e.content.size)return rB.none;if(this.textOffset)return e.child(t).marks;var n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){var o=n;n=r,r=o}for(var i=n.marks,a=0;a<i.length;a++)!1!==i[a].type.spec.inclusive||r&&i[a].isInSet(r.marks)||(i=i[a--].removeFromSet(i));return i},yB.prototype.marksAcross=function(e){var t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;for(var n=t.marks,r=e.parent.maybeChild(e.index()),o=0;o<n.length;o++)!1!==n[o].type.spec.inclusive||r&&n[o].isInSet(r.marks)||(n=n[o--].removeFromSet(n));return n},yB.prototype.sharedDepth=function(e){for(var t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0},yB.prototype.blockRange=function(e,t){if(void 0===e&&(e=this),e.pos<this.pos)return e.blockRange(this);for(var n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new jB(this,e,n)},yB.prototype.sameParent=function(e){return this.pos-this.parentOffset==e.pos-e.parentOffset},yB.prototype.max=function(e){return e.pos>this.pos?e:this},yB.prototype.min=function(e){return e.pos<this.pos?e:this},yB.prototype.toString=function(){for(var e="",t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset},yB.resolve=function(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");for(var n=[],r=0,o=t,i=e;;){var a=i.content.findIndex(o),s=a.index,l=a.offset,c=o-l;if(n.push(i,s,r+l),!c)break;if((i=i.child(s)).isText)break;o=c-1,r+=l+1}return new yB(t,n,o)},yB.resolveCached=function(e,t){for(var n=0;n<xB.length;n++){var r=xB[n];if(r.pos==t&&r.doc==e)return r}var o=xB[wB]=yB.resolve(e,t);return wB=(wB+1)%CB,o},Object.defineProperties(yB.prototype,bB);var xB=[],wB=0,CB=12,jB=function(e,t,n){this.$from=e,this.$to=t,this.depth=n},SB={start:{configurable:!0},end:{configurable:!0},parent:{configurable:!0},startIndex:{configurable:!0},endIndex:{configurable:!0}};SB.start.get=function(){return this.$from.before(this.depth+1)},SB.end.get=function(){return this.$to.after(this.depth+1)},SB.parent.get=function(){return this.$from.node(this.depth)},SB.startIndex.get=function(){return this.$from.index(this.depth)},SB.endIndex.get=function(){return this.$to.indexAfter(this.depth)},Object.defineProperties(jB.prototype,SB);var kB=Object.create(null),ZB=function(e,t,n,r){this.type=e,this.attrs=t,this.content=n||QF.empty,this.marks=r||rB.none},OB={nodeSize:{configurable:!0},childCount:{configurable:!0},textContent:{configurable:!0},firstChild:{configurable:!0},lastChild:{configurable:!0},isBlock:{configurable:!0},isTextblock:{configurable:!0},inlineContent:{configurable:!0},isInline:{configurable:!0},isText:{configurable:!0},isLeaf:{configurable:!0},isAtom:{configurable:!0}};OB.nodeSize.get=function(){return this.isLeaf?1:2+this.content.size},OB.childCount.get=function(){return this.content.childCount},ZB.prototype.child=function(e){return this.content.child(e)},ZB.prototype.maybeChild=function(e){return this.content.maybeChild(e)},ZB.prototype.forEach=function(e){this.content.forEach(e)},ZB.prototype.nodesBetween=function(e,t,n,r){void 0===r&&(r=0),this.content.nodesBetween(e,t,n,r,this)},ZB.prototype.descendants=function(e){this.nodesBetween(0,this.content.size,e)},OB.textContent.get=function(){return this.textBetween(0,this.content.size,"")},ZB.prototype.textBetween=function(e,t,n,r){return this.content.textBetween(e,t,n,r)},OB.firstChild.get=function(){return this.content.firstChild},OB.lastChild.get=function(){return this.content.lastChild},ZB.prototype.eq=function(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)},ZB.prototype.sameMarkup=function(e){return this.hasMarkup(e.type,e.attrs,e.marks)},ZB.prototype.hasMarkup=function(e,t,n){return this.type==e&&nB(this.attrs,t||e.defaultAttrs||kB)&&rB.sameSet(this.marks,n||rB.none)},ZB.prototype.copy=function(e){return void 0===e&&(e=null),e==this.content?this:new this.constructor(this.type,this.attrs,e,this.marks)},ZB.prototype.mark=function(e){return e==this.marks?this:new this.constructor(this.type,this.attrs,this.content,e)},ZB.prototype.cut=function(e,t){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))},ZB.prototype.slice=function(e,t,n){if(void 0===t&&(t=this.content.size),void 0===n&&(n=!1),e==t)return iB.empty;var r=this.resolve(e),o=this.resolve(t),i=n?0:r.sharedDepth(t),a=r.start(i),s=r.node(i).content.cut(r.pos-a,o.pos-a);return new iB(s,r.depth-i,o.depth-i)},ZB.prototype.replace=function(e,t,n){return cB(this.resolve(e),this.resolve(t),n)},ZB.prototype.nodeAt=function(e){for(var t=this;;){var n=t.content.findIndex(e),r=n.index,o=n.offset;if(!(t=t.maybeChild(r)))return null;if(o==e||t.isText)return t;e-=o+1}},ZB.prototype.childAfter=function(e){var t=this.content.findIndex(e),n=t.index,r=t.offset;return{node:this.content.maybeChild(n),index:n,offset:r}},ZB.prototype.childBefore=function(e){if(0==e)return{node:null,index:0,offset:0};var t=this.content.findIndex(e),n=t.index,r=t.offset;if(r<e)return{node:this.content.child(n),index:n,offset:r};var o=this.content.child(n-1);return{node:o,index:n-1,offset:r-o.nodeSize}},ZB.prototype.resolve=function(e){return yB.resolveCached(this,e)},ZB.prototype.resolveNoCache=function(e){return yB.resolve(this,e)},ZB.prototype.rangeHasMark=function(e,t,n){var r=!1;return t>e&&this.nodesBetween(e,t,(function(e){return n.isInSet(e.marks)&&(r=!0),!r})),r},OB.isBlock.get=function(){return this.type.isBlock},OB.isTextblock.get=function(){return this.type.isTextblock},OB.inlineContent.get=function(){return this.type.inlineContent},OB.isInline.get=function(){return this.type.isInline},OB.isText.get=function(){return this.type.isText},OB.isLeaf.get=function(){return this.type.isLeaf},OB.isAtom.get=function(){return this.type.isAtom},ZB.prototype.toString=function(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);var e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),DB(this.marks,e)},ZB.prototype.contentMatchAt=function(e){var t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t},ZB.prototype.canReplace=function(e,t,n,r,o){void 0===n&&(n=QF.empty),void 0===r&&(r=0),void 0===o&&(o=n.childCount);var i=this.contentMatchAt(e).matchFragment(n,r,o),a=i&&i.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(var s=r;s<o;s++)if(!this.type.allowsMarks(n.child(s).marks))return!1;return!0},ZB.prototype.canReplaceWith=function(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;var o=this.contentMatchAt(e).matchType(n),i=o&&o.matchFragment(this.content,t);return!!i&&i.validEnd},ZB.prototype.canAppend=function(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)},ZB.prototype.check=function(){if(!this.type.validContent(this.content))throw new RangeError("Invalid content for node "+this.type.name+": "+this.content.toString().slice(0,50));for(var e=rB.none,t=0;t<this.marks.length;t++)e=this.marks[t].addToSet(e);if(!rB.sameSet(e,this.marks))throw new RangeError("Invalid collection of marks for node "+this.type.name+": "+this.marks.map((function(e){return e.type.name})));this.content.forEach((function(e){return e.check()}))},ZB.prototype.toJSON=function(){var e={type:this.type.name};for(var t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map((function(e){return e.toJSON()}))),e},ZB.fromJSON=function(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");var n=null;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw new RangeError("Invalid text node in JSON");return e.text(t.text,n)}var r=QF.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,r,n)},Object.defineProperties(ZB.prototype,OB);var EB=function(e){function t(t,n,r,o){if(e.call(this,t,n,null,o),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={textContent:{configurable:!0},nodeSize:{configurable:!0}};return t.prototype.toString=function(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):DB(this.marks,JSON.stringify(this.text))},n.textContent.get=function(){return this.text},t.prototype.textBetween=function(e,t){return this.text.slice(e,t)},n.nodeSize.get=function(){return this.text.length},t.prototype.mark=function(e){return e==this.marks?this:new t(this.type,this.attrs,this.text,e)},t.prototype.withText=function(e){return e==this.text?this:new t(this.type,this.attrs,e,this.marks)},t.prototype.cut=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.text.length),0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))},t.prototype.eq=function(e){return this.sameMarkup(e)&&this.text==e.text},t.prototype.toJSON=function(){var t=e.prototype.toJSON.call(this);return t.text=this.text,t},Object.defineProperties(t.prototype,n),t}(ZB);function DB(e,t){for(var n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}var PB=function(e){this.validEnd=e,this.next=[],this.wrapCache=[]},AB={inlineContent:{configurable:!0},defaultType:{configurable:!0},edgeCount:{configurable:!0}};PB.parse=function(e,t){var n=new MB(e,t);if(null==n.next)return PB.empty;var r=IB(n);n.next&&n.err("Unexpected trailing text");var o=function(e){var t=Object.create(null);return n(_B(e,0));function n(r){var o=[];r.forEach((function(t){e[t].forEach((function(t){var n=t.term,r=t.to;if(n){var i=o.indexOf(n),a=i>-1&&o[i+1];_B(e,r).forEach((function(e){a||o.push(n,a=[]),-1==a.indexOf(e)&&a.push(e)}))}}))}));for(var i=t[r.join(",")]=new PB(r.indexOf(e.length-1)>-1),a=0;a<o.length;a+=2){var s=o[a+1].sort(NB);i.next.push(o[a],t[s.join(",")]||n(s))}return i}}(function(e){var t=[[]];return o(i(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){var o={term:r,to:n};return t[e].push(o),o}function o(e,t){e.forEach((function(e){return e.to=t}))}function i(e,t){if("choice"==e.type)return e.exprs.reduce((function(e,n){return e.concat(i(n,t))}),[]);if("seq"==e.type)for(var a=0;;a++){var s=i(e.exprs[a],t);if(a==e.exprs.length-1)return s;o(s,t=n())}else{if("star"==e.type){var l=n();return r(t,l),o(i(e.expr,l),l),[r(l)]}if("plus"==e.type){var c=n();return o(i(e.expr,t),c),o(i(e.expr,c),c),[r(c)]}if("opt"==e.type)return[r(t)].concat(i(e.expr,t));if("range"==e.type){for(var u=t,d=0;d<e.min;d++){var p=n();o(i(e.expr,u),p),u=p}if(-1==e.max)o(i(e.expr,u),u);else for(var f=e.min;f<e.max;f++){var h=n();r(u,h),o(i(e.expr,u),h),u=h}return[r(u)]}if("name"==e.type)return[r(t,null,e.value)]}}}(r));return function(e,t){for(var n=0,r=[e];n<r.length;n++){for(var o=r[n],i=!o.validEnd,a=[],s=0;s<o.next.length;s+=2){var l=o.next[s],c=o.next[s+1];a.push(l.name),!i||l.isText||l.hasRequiredAttrs()||(i=!1),-1==r.indexOf(c)&&r.push(c)}i&&t.err("Only non-generatable nodes ("+a.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(o,n),o},PB.prototype.matchType=function(e){for(var t=0;t<this.next.length;t+=2)if(this.next[t]==e)return this.next[t+1];return null},PB.prototype.matchFragment=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.childCount);for(var r=this,o=t;r&&o<n;o++)r=r.matchType(e.child(o).type);return r},AB.inlineContent.get=function(){var e=this.next[0];return!!e&&e.isInline},AB.defaultType.get=function(){for(var e=0;e<this.next.length;e+=2){var t=this.next[e];if(!t.isText&&!t.hasRequiredAttrs())return t}},PB.prototype.compatible=function(e){for(var t=0;t<this.next.length;t+=2)for(var n=0;n<e.next.length;n+=2)if(this.next[t]==e.next[n])return!0;return!1},PB.prototype.fillBefore=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=0);var r=[this];return function o(i,a){var s=i.matchFragment(e,n);if(s&&(!t||s.validEnd))return QF.from(a.map((function(e){return e.createAndFill()})));for(var l=0;l<i.next.length;l+=2){var c=i.next[l],u=i.next[l+1];if(!c.isText&&!c.hasRequiredAttrs()&&-1==r.indexOf(u)){r.push(u);var d=o(u,a.concat(c));if(d)return d}}}(this,[])},PB.prototype.findWrapping=function(e){for(var t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];var n=this.computeWrapping(e);return this.wrapCache.push(e,n),n},PB.prototype.computeWrapping=function(e){for(var t=Object.create(null),n=[{match:this,type:null,via:null}];n.length;){var r=n.shift(),o=r.match;if(o.matchType(e)){for(var i=[],a=r;a.type;a=a.via)i.push(a.type);return i.reverse()}for(var s=0;s<o.next.length;s+=2){var l=o.next[s];l.isLeaf||l.hasRequiredAttrs()||l.name in t||r.type&&!o.next[s+1].validEnd||(n.push({match:l.contentMatch,type:l,via:r}),t[l.name]=!0)}}},AB.edgeCount.get=function(){return this.next.length>>1},PB.prototype.edge=function(e){var t=e<<1;if(t>=this.next.length)throw new RangeError("There's no "+e+"th edge in this content match");return{type:this.next[t],next:this.next[t+1]}},PB.prototype.toString=function(){var e=[];return function t(n){e.push(n);for(var r=1;r<n.next.length;r+=2)-1==e.indexOf(n.next[r])&&t(n.next[r])}(this),e.map((function(t,n){for(var r=n+(t.validEnd?"*":" ")+" ",o=0;o<t.next.length;o+=2)r+=(o?", ":"")+t.next[o].name+"->"+e.indexOf(t.next[o+1]);return r})).join("\n")},Object.defineProperties(PB.prototype,AB),PB.empty=new PB(!0);var MB=function(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()},TB={next:{configurable:!0}};function IB(e){var t=[];do{t.push(RB(e))}while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function RB(e){var t=[];do{t.push(FB(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function FB(e){for(var t=function(e){if(e.eat("(")){var t=IB(e);return e.eat(")")||e.err("Missing closing paren"),t}if(!/\W/.test(e.next)){var n=function(e,t){var n=e.nodeTypes,r=n[t];if(r)return[r];var o=[];for(var i in n){var a=n[i];a.groups.indexOf(t)>-1&&o.push(a)}0==o.length&&e.err("No node type or group '"+t+"' found");return o}(e,e.next).map((function(t){return null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t}}));return e.pos++,1==n.length?n[0]:{type:"choice",exprs:n}}e.err("Unexpected token '"+e.next+"'")}(e);;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else{if(!e.eat("{"))break;t=LB(e,t)}return t}function BB(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");var t=Number(e.next);return e.pos++,t}function LB(e,t){var n=BB(e),r=n;return e.eat(",")&&(r="}"!=e.next?BB(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function NB(e,t){return t-e}function _B(e,t){var n=[];return function t(r){var o=e[r];if(1==o.length&&!o[0].term)return t(o[0].to);n.push(r);for(var i=0;i<o.length;i++){var a=o[i],s=a.term,l=a.to;s||-1!=n.indexOf(l)||t(l)}}(t),n.sort(NB)}function zB(e){var t=Object.create(null);for(var n in e){var r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function HB(e,t){var n=Object.create(null);for(var r in e){var o=t&&t[r];if(void 0===o){var i=e[r];if(!i.hasDefault)throw new RangeError("No value supplied for attribute "+r);o=i.default}n[r]=o}return n}function WB(e){var t=Object.create(null);if(e)for(var n in e)t[n]=new qB(e[n]);return t}TB.next.get=function(){return this.tokens[this.pos]},MB.prototype.eat=function(e){return this.next==e&&(this.pos++||!0)},MB.prototype.err=function(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")},Object.defineProperties(MB.prototype,TB);var VB=function(e,t,n){this.name=e,this.schema=t,this.spec=n,this.groups=n.group?n.group.split(" "):[],this.attrs=WB(n.attrs),this.defaultAttrs=zB(this.attrs),this.contentMatch=null,this.markSet=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==e),this.isText="text"==e},UB={isInline:{configurable:!0},isTextblock:{configurable:!0},isLeaf:{configurable:!0},isAtom:{configurable:!0},whitespace:{configurable:!0}};UB.isInline.get=function(){return!this.isBlock},UB.isTextblock.get=function(){return this.isBlock&&this.inlineContent},UB.isLeaf.get=function(){return this.contentMatch==PB.empty},UB.isAtom.get=function(){return this.isLeaf||this.spec.atom},UB.whitespace.get=function(){return this.spec.whitespace||(this.spec.code?"pre":"normal")},VB.prototype.hasRequiredAttrs=function(){for(var e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1},VB.prototype.compatibleContent=function(e){return this==e||this.contentMatch.compatible(e.contentMatch)},VB.prototype.computeAttrs=function(e){return!e&&this.defaultAttrs?this.defaultAttrs:HB(this.attrs,e)},VB.prototype.create=function(e,t,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new ZB(this,this.computeAttrs(e),QF.from(t),rB.setFrom(n))},VB.prototype.createChecked=function(e,t,n){if(t=QF.from(t),!this.validContent(t))throw new RangeError("Invalid content for node "+this.name);return new ZB(this,this.computeAttrs(e),t,rB.setFrom(n))},VB.prototype.createAndFill=function(e,t,n){if(e=this.computeAttrs(e),(t=QF.from(t)).size){var r=this.contentMatch.fillBefore(t);if(!r)return null;t=r.append(t)}var o=this.contentMatch.matchFragment(t).fillBefore(QF.empty,!0);return o?new ZB(this,e,t.append(o),rB.setFrom(n)):null},VB.prototype.validContent=function(e){var t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(var n=0;n<e.childCount;n++)if(!this.allowsMarks(e.child(n).marks))return!1;return!0},VB.prototype.allowsMarkType=function(e){return null==this.markSet||this.markSet.indexOf(e)>-1},VB.prototype.allowsMarks=function(e){if(null==this.markSet)return!0;for(var t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0},VB.prototype.allowedMarks=function(e){if(null==this.markSet)return e;for(var t,n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||(t=e.slice(0,n));return t?t.length?t:rB.empty:e},VB.compile=function(e,t){var n=Object.create(null);e.forEach((function(e,r){return n[e]=new VB(e,t,r)}));var r=t.spec.topNode||"doc";if(!n[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(var o in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n},Object.defineProperties(VB.prototype,UB);var qB=function(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default},GB={isRequired:{configurable:!0}};GB.isRequired.get=function(){return!this.hasDefault},Object.defineProperties(qB.prototype,GB);var YB=function(e,t,n,r){this.name=e,this.schema=n,this.spec=r,this.attrs=WB(r.attrs),this.rank=t,this.excluded=null;var o=zB(this.attrs);this.instance=o&&new rB(this,o)};YB.prototype.create=function(e){return!e&&this.instance?this.instance:new rB(this,HB(this.attrs,e))},YB.compile=function(e,t){var n=Object.create(null),r=0;return e.forEach((function(e,o){return n[e]=new YB(e,r++,t,o)})),n},YB.prototype.removeFromSet=function(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e},YB.prototype.isInSet=function(e){for(var t=0;t<e.length;t++)if(e[t].type==this)return e[t]},YB.prototype.excludes=function(e){return this.excluded.indexOf(e)>-1};var KB=function(e){for(var t in this.spec={},e)this.spec[t]=e[t];this.spec.nodes=KF.from(e.nodes),this.spec.marks=KF.from(e.marks),this.nodes=VB.compile(this.spec.nodes,this),this.marks=YB.compile(this.spec.marks,this);var n=Object.create(null);for(var r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");var o=this.nodes[r],i=o.spec.content||"",a=o.spec.marks;o.contentMatch=n[i]||(n[i]=PB.parse(i,this.nodes)),o.inlineContent=o.contentMatch.inlineContent,o.markSet="_"==a?null:a?JB(this,a.split(" ")):""!=a&&o.inlineContent?null:[]}for(var s in this.marks){var l=this.marks[s],c=l.spec.excludes;l.excluded=null==c?[l]:""==c?[]:JB(this,c.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached=Object.create(null),this.cached.wrappings=Object.create(null)};function JB(e,t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=e.marks[o],a=i;if(i)n.push(i);else for(var s in e.marks){var l=e.marks[s];("_"==o||l.spec.group&&l.spec.group.split(" ").indexOf(o)>-1)&&n.push(a=l)}if(!a)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}KB.prototype.node=function(e,t,n,r){if("string"==typeof e)e=this.nodeType(e);else{if(!(e instanceof VB))throw new RangeError("Invalid node type: "+e);if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}return e.createChecked(t,n,r)},KB.prototype.text=function(e,t){var n=this.nodes.text;return new EB(n,n.defaultAttrs,e,rB.setFrom(t))},KB.prototype.mark=function(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)},KB.prototype.nodeFromJSON=function(e){return ZB.fromJSON(this,e)},KB.prototype.markFromJSON=function(e){return rB.fromJSON(this,e)},KB.prototype.nodeType=function(e){var t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t};var XB=function(e,t){var n=this;this.schema=e,this.rules=t,this.tags=[],this.styles=[],t.forEach((function(e){e.tag?n.tags.push(e):e.style&&n.styles.push(e)})),this.normalizeLists=!this.tags.some((function(t){if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;var n=e.nodes[t.node];return n.contentMatch.matchType(n)}))};XB.prototype.parse=function(e,t){void 0===t&&(t={});var n=new rL(this,t,!1);return n.addAll(e,null,t.from,t.to),n.finish()},XB.prototype.parseSlice=function(e,t){void 0===t&&(t={});var n=new rL(this,t,!0);return n.addAll(e,null,t.from,t.to),iB.maxOpen(n.finish())},XB.prototype.matchTag=function(e,t,n){for(var r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){var o=this.tags[r];if(iL(e,o.tag)&&(void 0===o.namespace||e.namespaceURI==o.namespace)&&(!o.context||t.matchesContext(o.context))){if(o.getAttrs){var i=o.getAttrs(e);if(!1===i)continue;o.attrs=i}return o}}},XB.prototype.matchStyle=function(e,t,n,r){for(var o=r?this.styles.indexOf(r)+1:0;o<this.styles.length;o++){var i=this.styles[o];if(!(0!=i.style.indexOf(e)||i.context&&!n.matchesContext(i.context)||i.style.length>e.length&&(61!=i.style.charCodeAt(e.length)||i.style.slice(e.length+1)!=t))){if(i.getAttrs){var a=i.getAttrs(t);if(!1===a)continue;i.attrs=a}return i}}},XB.schemaRules=function(e){var t=[];function n(e){for(var n=null==e.priority?50:e.priority,r=0;r<t.length;r++){var o=t[r];if((null==o.priority?50:o.priority)<n)break}t.splice(r,0,e)}var r=function(t){var r=e.marks[t].spec.parseDOM;r&&r.forEach((function(e){n(e=aL(e)),e.mark=t}))};for(var o in e.marks)r(o);var i=function(t){var r=e.nodes[a].spec.parseDOM;r&&r.forEach((function(e){n(e=aL(e)),e.node=a}))};for(var a in e.nodes)i();return t},XB.fromSchema=function(e){return e.cached.domParser||(e.cached.domParser=new XB(e,XB.schemaRules(e)))};var QB={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},$B={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},eL={ol:!0,ul:!0};function tL(e,t,n){return null!=t?(t?1:0)|("full"===t?2:0):e&&"pre"==e.whitespace?3:-5&n}var nL=function(e,t,n,r,o,i,a){this.type=e,this.attrs=t,this.solid=o,this.match=i||(4&a?null:e.contentMatch),this.options=a,this.content=[],this.marks=n,this.activeMarks=rB.none,this.pendingMarks=r,this.stashMarks=[]};nL.prototype.findWrapping=function(e){if(!this.match){if(!this.type)return[];var t=this.type.contentMatch.fillBefore(QF.from(e));if(!t){var n,r=this.type.contentMatch;return(n=r.findWrapping(e.type))?(this.match=r,n):null}this.match=this.type.contentMatch.matchFragment(t)}return this.match.findWrapping(e.type)},nL.prototype.finish=function(e){if(!(1&this.options)){var t,n=this.content[this.content.length-1];n&&n.isText&&(t=/[ \t\r\n\u000c]+$/.exec(n.text))&&(n.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-t[0].length)))}var r=QF.from(this.content);return!e&&this.match&&(r=r.append(this.match.fillBefore(QF.empty,!0))),this.type?this.type.create(this.attrs,r,this.marks):r},nL.prototype.popFromStashMark=function(e){for(var t=this.stashMarks.length-1;t>=0;t--)if(e.eq(this.stashMarks[t]))return this.stashMarks.splice(t,1)[0]},nL.prototype.applyPending=function(e){for(var t=0,n=this.pendingMarks;t<n.length;t++){var r=n[t];(this.type?this.type.allowsMarkType(r.type):sL(r.type,e))&&!r.isInSet(this.activeMarks)&&(this.activeMarks=r.addToSet(this.activeMarks),this.pendingMarks=r.removeFromSet(this.pendingMarks))}},nL.prototype.inlineContext=function(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!QB.hasOwnProperty(e.parentNode.nodeName.toLowerCase())};var rL=function(e,t,n){this.parser=e,this.options=t,this.isOpen=n;var r,o=t.topNode,i=tL(null,t.preserveWhitespace,0)|(n?4:0);r=o?new nL(o.type,o.attrs,rB.none,rB.none,!0,t.topMatch||o.type.contentMatch,i):new nL(n?null:e.schema.topNodeType,null,rB.none,rB.none,!0,null,i),this.nodes=[r],this.open=0,this.find=t.findPositions,this.needsBlock=!1},oL={top:{configurable:!0},currentPos:{configurable:!0}};function iL(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function aL(e){var t={};for(var n in e)t[n]=e[n];return t}function sL(e,t){var n=t.schema.nodes,r=function(r){var o=n[r];if(o.allowsMarkType(e)){var i=[];return function e(n){i.push(n);for(var r=0;r<n.edgeCount;r++){var o=n.edge(r),a=o.type,s=o.next;if(a==t)return!0;if(i.indexOf(s)<0&&e(s))return!0}}(o.contentMatch)?{v:!0}:void 0}};for(var o in n){var i=r(o);if(i)return i.v}}oL.top.get=function(){return this.nodes[this.open]},rL.prototype.addDOM=function(e){if(3==e.nodeType)this.addTextNode(e);else if(1==e.nodeType){var t=e.getAttribute("style"),n=t?this.readStyles(function(e){var t,n=/\s*([\w-]+)\s*:\s*([^;]+)/g,r=[];for(;t=n.exec(e);)r.push(t[1],t[2].trim());return r}(t)):null,r=this.top;if(null!=n)for(var o=0;o<n.length;o++)this.addPendingMark(n[o]);if(this.addElement(e),null!=n)for(var i=0;i<n.length;i++)this.removePendingMark(n[i],r)}},rL.prototype.addTextNode=function(e){var t=e.nodeValue,n=this.top;if(2&n.options||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(t)){if(1&n.options)t=2&n.options?t.replace(/\r\n?/g,"\n"):t.replace(/\r?\n|\r/g," ");else if(t=t.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(t)&&this.open==this.nodes.length-1){var r=n.content[n.content.length-1],o=e.previousSibling;(!r||o&&"BR"==o.nodeName||r.isText&&/[ \t\r\n\u000c]$/.test(r.text))&&(t=t.slice(1))}t&&this.insertNode(this.parser.schema.text(t)),this.findInText(e)}else this.findInside(e)},rL.prototype.addElement=function(e,t){var n,r=e.nodeName.toLowerCase();eL.hasOwnProperty(r)&&this.parser.normalizeLists&&function(e){for(var t=e.firstChild,n=null;t;t=t.nextSibling){var r=1==t.nodeType?t.nodeName.toLowerCase():null;r&&eL.hasOwnProperty(r)&&n?(n.appendChild(t),t=n):"li"==r?n=t:r&&(n=null)}}(e);var o=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(n=this.parser.matchTag(e,this,t));if(o?o.ignore:$B.hasOwnProperty(r))this.findInside(e),this.ignoreFallback(e);else if(!o||o.skip||o.closeParent){o&&o.closeParent?this.open=Math.max(0,this.open-1):o&&o.skip.nodeType&&(e=o.skip);var i,a=this.top,s=this.needsBlock;if(QB.hasOwnProperty(r))i=!0,a.type||(this.needsBlock=!0);else if(!e.firstChild)return void this.leafFallback(e);this.addAll(e),i&&this.sync(a),this.needsBlock=s}else this.addElementByRule(e,o,!1===o.consuming?n:null)},rL.prototype.leafFallback=function(e){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"))},rL.prototype.ignoreFallback=function(e){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"))},rL.prototype.readStyles=function(e){var t=rB.none;e:for(var n=0;n<e.length;n+=2)for(var r=null;;){var o=this.parser.matchStyle(e[n],e[n+1],this,r);if(!o)continue e;if(o.ignore)return null;if(t=this.parser.schema.marks[o.mark].create(o.attrs).addToSet(t),!1!==o.consuming)break;r=o}return t},rL.prototype.addElementByRule=function(e,t,n){var r,o,i,a=this;t.node?(o=this.parser.schema.nodes[t.node]).isLeaf?this.insertNode(o.create(t.attrs))||this.leafFallback(e):r=this.enter(o,t.attrs,t.preserveWhitespace):(i=this.parser.schema.marks[t.mark].create(t.attrs),this.addPendingMark(i));var s=this.top;if(o&&o.isLeaf)this.findInside(e);else if(n)this.addElement(e,n);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach((function(e){return a.insertNode(e)}));else{var l=t.contentElement;"string"==typeof l?l=e.querySelector(l):"function"==typeof l&&(l=l(e)),l||(l=e),this.findAround(e,l,!0),this.addAll(l,r)}r&&(this.sync(s),this.open--),i&&this.removePendingMark(i,s)},rL.prototype.addAll=function(e,t,n,r){for(var o=n||0,i=n?e.childNodes[n]:e.firstChild,a=null==r?null:e.childNodes[r];i!=a;i=i.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(i),t&&QB.hasOwnProperty(i.nodeName.toLowerCase())&&this.sync(t);this.findAtPoint(e,o)},rL.prototype.findPlace=function(e){for(var t,n,r=this.open;r>=0;r--){var o=this.nodes[r],i=o.findWrapping(e);if(i&&(!t||t.length>i.length)&&(t=i,n=o,!i.length))break;if(o.solid)break}if(!t)return!1;this.sync(n);for(var a=0;a<t.length;a++)this.enterInner(t[a],null,!1);return!0},rL.prototype.insertNode=function(e){if(e.isInline&&this.needsBlock&&!this.top.type){var t=this.textblockFromContext();t&&this.enterInner(t)}if(this.findPlace(e)){this.closeExtra();var n=this.top;n.applyPending(e.type),n.match&&(n.match=n.match.matchType(e.type));for(var r=n.activeMarks,o=0;o<e.marks.length;o++)n.type&&!n.type.allowsMarkType(e.marks[o].type)||(r=e.marks[o].addToSet(r));return n.content.push(e.mark(r)),!0}return!1},rL.prototype.enter=function(e,t,n){var r=this.findPlace(e.create(t));return r&&this.enterInner(e,t,!0,n),r},rL.prototype.enterInner=function(e,t,n,r){this.closeExtra();var o=this.top;o.applyPending(e),o.match=o.match&&o.match.matchType(e,t);var i=tL(e,r,o.options);4&o.options&&0==o.content.length&&(i|=4),this.nodes.push(new nL(e,t,o.activeMarks,o.pendingMarks,n,null,i)),this.open++},rL.prototype.closeExtra=function(e){var t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}},rL.prototype.finish=function(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)},rL.prototype.sync=function(e){for(var t=this.open;t>=0;t--)if(this.nodes[t]==e)return void(this.open=t)},oL.currentPos.get=function(){this.closeExtra();for(var e=0,t=this.open;t>=0;t--){for(var n=this.nodes[t].content,r=n.length-1;r>=0;r--)e+=n[r].nodeSize;t&&e++}return e},rL.prototype.findAtPoint=function(e,t){if(this.find)for(var n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)},rL.prototype.findInside=function(e){if(this.find)for(var t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)},rL.prototype.findAround=function(e,t,n){if(e!=t&&this.find)for(var r=0;r<this.find.length;r++){if(null==this.find[r].pos&&1==e.nodeType&&e.contains(this.find[r].node))t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}},rL.prototype.findInText=function(e){if(this.find)for(var t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))},rL.prototype.matchesContext=function(e){var t=this;if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);var n=e.split("/"),r=this.options.context,o=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+(o?0:1);return function e(a,s){for(;a>=0;a--){var l=n[a];if(""==l){if(a==n.length-1||0==a)continue;for(;s>=i;s--)if(e(a-1,s))return!0;return!1}var c=s>0||0==s&&o?t.nodes[s].type:r&&s>=i?r.node(s-i).type:null;if(!c||c.name!=l&&-1==c.groups.indexOf(l))return!1;s--}return!0}(n.length-1,this.open)},rL.prototype.textblockFromContext=function(){var e=this.options.context;if(e)for(var t=e.depth;t>=0;t--){var n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(var r in this.parser.schema.nodes){var o=this.parser.schema.nodes[r];if(o.isTextblock&&o.defaultAttrs)return o}},rL.prototype.addPendingMark=function(e){var t=function(e,t){for(var n=0;n<t.length;n++)if(e.eq(t[n]))return t[n]}(e,this.top.pendingMarks);t&&this.top.stashMarks.push(t),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)},rL.prototype.removePendingMark=function(e,t){for(var n=this.open;n>=0;n--){var r=this.nodes[n];if(r.pendingMarks.lastIndexOf(e)>-1)r.pendingMarks=e.removeFromSet(r.pendingMarks);else{r.activeMarks=e.removeFromSet(r.activeMarks);var o=r.popFromStashMark(e);o&&r.type&&r.type.allowsMarkType(o.type)&&(r.activeMarks=o.addToSet(r.activeMarks))}if(r==t)break}},Object.defineProperties(rL.prototype,oL);var lL=function(e,t){this.nodes=e||{},this.marks=t||{}};function cL(e){var t={};for(var n in e){var r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function uL(e){return e.document||window.document}lL.prototype.serializeFragment=function(e,t,n){var r=this;void 0===t&&(t={}),n||(n=uL(t).createDocumentFragment());var o=n,i=null;return e.forEach((function(e){if(i||e.marks.length){i||(i=[]);for(var n=0,a=0;n<i.length&&a<e.marks.length;){var s=e.marks[a];if(r.marks[s.type.name]){if(!s.eq(i[n])||!1===s.type.spec.spanning)break;n+=2,a++}else a++}for(;n<i.length;)o=i.pop(),i.pop();for(;a<e.marks.length;){var l=e.marks[a++],c=r.serializeMark(l,e.isInline,t);c&&(i.push(l,o),o.appendChild(c.dom),o=c.contentDOM||c.dom)}}o.appendChild(r.serializeNodeInner(e,t))})),n},lL.prototype.serializeNodeInner=function(e,t){void 0===t&&(t={});var n=lL.renderSpec(uL(t),this.nodes[e.type.name](e)),r=n.dom,o=n.contentDOM;if(o){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");t.onContent?t.onContent(e,o,t):this.serializeFragment(e.content,t,o)}return r},lL.prototype.serializeNode=function(e,t){void 0===t&&(t={});for(var n=this.serializeNodeInner(e,t),r=e.marks.length-1;r>=0;r--){var o=this.serializeMark(e.marks[r],e.isInline,t);o&&((o.contentDOM||o.dom).appendChild(n),n=o.dom)}return n},lL.prototype.serializeMark=function(e,t,n){void 0===n&&(n={});var r=this.marks[e.type.name];return r&&lL.renderSpec(uL(n),r(e,t))},lL.renderSpec=function(e,t,n){if(void 0===n&&(n=null),"string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;var r=t[0],o=r.indexOf(" ");o>0&&(n=r.slice(0,o),r=r.slice(o+1));var i=null,a=n?e.createElementNS(n,r):e.createElement(r),s=t[1],l=1;if(s&&"object"==typeof s&&null==s.nodeType&&!Array.isArray(s))for(var c in l=2,s)if(null!=s[c]){var u=c.indexOf(" ");u>0?a.setAttributeNS(c.slice(0,u),c.slice(u+1),s[c]):a.setAttribute(c,s[c])}for(var d=l;d<t.length;d++){var p=t[d];if(0===p){if(d<t.length-1||d>l)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}var f=lL.renderSpec(e,p,n),h=f.dom,m=f.contentDOM;if(a.appendChild(h),m){if(i)throw new RangeError("Multiple content holes");i=m}}return{dom:a,contentDOM:i}},lL.fromSchema=function(e){return e.cached.domSerializer||(e.cached.domSerializer=new lL(this.nodesFromSchema(e),this.marksFromSchema(e)))},lL.nodesFromSchema=function(e){var t=cL(e.nodes);return t.text||(t.text=function(e){return e.text}),t},lL.marksFromSchema=function(e){return cL(e.marks)};var dL=Math.pow(2,16);function pL(e,t){return e+t*dL}function fL(e){return 65535&e}var hL=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=null),this.pos=e,this.deleted=t,this.recover=n},mL=function e(t,n){if(void 0===n&&(n=!1),!t.length&&e.empty)return e.empty;this.ranges=t,this.inverted=n};mL.prototype.recover=function(e){var t=0,n=fL(e);if(!this.inverted)for(var r=0;r<n;r++)t+=this.ranges[3*r+2]-this.ranges[3*r+1];return this.ranges[3*n]+t+function(e){return(e-(65535&e))/dL}(e)},mL.prototype.mapResult=function(e,t){return void 0===t&&(t=1),this._map(e,t,!1)},mL.prototype.map=function(e,t){return void 0===t&&(t=1),this._map(e,t,!0)},mL.prototype._map=function(e,t,n){for(var r=0,o=this.inverted?2:1,i=this.inverted?1:2,a=0;a<this.ranges.length;a+=3){var s=this.ranges[a]-(this.inverted?r:0);if(s>e)break;var l=this.ranges[a+o],c=this.ranges[a+i],u=s+l;if(e<=u){var d=s+r+((l?e==s?-1:e==u?1:t:t)<0?0:c);if(n)return d;var p=e==(t<0?s:u)?null:pL(a/3,e-s);return new hL(d,t<0?e!=s:e!=u,p)}r+=c-l}return n?e+r:new hL(e+r)},mL.prototype.touches=function(e,t){for(var n=0,r=fL(t),o=this.inverted?2:1,i=this.inverted?1:2,a=0;a<this.ranges.length;a+=3){var s=this.ranges[a]-(this.inverted?n:0);if(s>e)break;var l=this.ranges[a+o];if(e<=s+l&&a==3*r)return!0;n+=this.ranges[a+i]-l}return!1},mL.prototype.forEach=function(e){for(var t=this.inverted?2:1,n=this.inverted?1:2,r=0,o=0;r<this.ranges.length;r+=3){var i=this.ranges[r],a=i-(this.inverted?o:0),s=i+(this.inverted?0:o),l=this.ranges[r+t],c=this.ranges[r+n];e(a,a+l,s,s+c),o+=c-l}},mL.prototype.invert=function(){return new mL(this.ranges,!this.inverted)},mL.prototype.toString=function(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)},mL.offset=function(e){return 0==e?mL.empty:new mL(e<0?[0,-e,0]:[0,0,e])},mL.empty=new mL([]);var vL=function(e,t,n,r){this.maps=e||[],this.from=n||0,this.to=null==r?this.maps.length:r,this.mirror=t};function gL(e){var t=Error.call(this,e);return t.__proto__=gL.prototype,t}vL.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.maps.length),new vL(this.maps,this.mirror,e,t)},vL.prototype.copy=function(){return new vL(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)},vL.prototype.appendMap=function(e,t){this.to=this.maps.push(e),null!=t&&this.setMirror(this.maps.length-1,t)},vL.prototype.appendMapping=function(e){for(var t=0,n=this.maps.length;t<e.maps.length;t++){var r=e.getMirror(t);this.appendMap(e.maps[t],null!=r&&r<t?n+r:null)}},vL.prototype.getMirror=function(e){if(this.mirror)for(var t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]},vL.prototype.setMirror=function(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)},vL.prototype.appendMappingInverted=function(e){for(var t=e.maps.length-1,n=this.maps.length+e.maps.length;t>=0;t--){var r=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=r&&r>t?n-r-1:null)}},vL.prototype.invert=function(){var e=new vL;return e.appendMappingInverted(this),e},vL.prototype.map=function(e,t){if(void 0===t&&(t=1),this.mirror)return this._map(e,t,!0);for(var n=this.from;n<this.to;n++)e=this.maps[n].map(e,t);return e},vL.prototype.mapResult=function(e,t){return void 0===t&&(t=1),this._map(e,t,!1)},vL.prototype._map=function(e,t,n){for(var r=!1,o=this.from;o<this.to;o++){var i=this.maps[o].mapResult(e,t);if(null!=i.recover){var a=this.getMirror(o);if(null!=a&&a>o&&a<this.to){o=a,e=this.maps[a].recover(i.recover);continue}}i.deleted&&(r=!0),e=i.pos}return n?e:new hL(e,r)},gL.prototype=Object.create(Error.prototype),gL.prototype.constructor=gL,gL.prototype.name="TransformError";var yL=function(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new vL},bL={before:{configurable:!0},docChanged:{configurable:!0}};function xL(){throw new Error("Override me")}bL.before.get=function(){return this.docs.length?this.docs[0]:this.doc},yL.prototype.step=function(e){var t=this.maybeStep(e);if(t.failed)throw new gL(t.failed);return this},yL.prototype.maybeStep=function(e){var t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t},bL.docChanged.get=function(){return this.steps.length>0},yL.prototype.addStep=function(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t},Object.defineProperties(yL.prototype,bL);var wL=Object.create(null),CL=function(){};CL.prototype.apply=function(e){return xL()},CL.prototype.getMap=function(){return mL.empty},CL.prototype.invert=function(e){return xL()},CL.prototype.map=function(e){return xL()},CL.prototype.merge=function(e){return null},CL.prototype.toJSON=function(){return xL()},CL.fromJSON=function(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");var n=wL[t.stepType];if(!n)throw new RangeError("No step type "+t.stepType+" defined");return n.fromJSON(e,t)},CL.jsonID=function(e,t){if(e in wL)throw new RangeError("Duplicate use of step JSON ID "+e);return wL[e]=t,t.prototype.jsonID=e,t};var jL=function(e,t){this.doc=e,this.failed=t};jL.ok=function(e){return new jL(e,null)},jL.fail=function(e){return new jL(null,e)},jL.fromReplace=function(e,t,n,r){try{return jL.ok(e.replace(t,n,r))}catch(o){if(o instanceof oB)return jL.fail(o.message);throw o}};var SL=function(e){function t(t,n,r,o){e.call(this),this.from=t,this.to=n,this.slice=r,this.structure=!!o}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){return this.structure&&ZL(e,this.from,this.to)?jL.fail("Structure replace would overwrite content"):jL.fromReplace(e,this.from,this.to,this.slice)},t.prototype.getMap=function(){return new mL([this.from,this.to-this.from,this.slice.size])},t.prototype.invert=function(e){return new t(this.from,this.from+this.slice.size,e.slice(this.from,this.to))},t.prototype.map=function(e){var n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted?null:new t(n.pos,Math.max(n.pos,r.pos),this.slice)},t.prototype.merge=function(e){if(!(e instanceof t)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;var n=this.slice.size+e.slice.size==0?iB.empty:new iB(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new t(e.from,this.to,n,this.structure)}var r=this.slice.size+e.slice.size==0?iB.empty:new iB(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new t(this.from,this.to+(e.to-e.from),r,this.structure)},t.prototype.toJSON=function(){var e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new t(n.from,n.to,iB.fromJSON(e,n.slice),!!n.structure)},t}(CL);CL.jsonID("replace",SL);var kL=function(e){function t(t,n,r,o,i,a,s){e.call(this),this.from=t,this.to=n,this.gapFrom=r,this.gapTo=o,this.slice=i,this.insert=a,this.structure=!!s}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){if(this.structure&&(ZL(e,this.from,this.gapFrom)||ZL(e,this.gapTo,this.to)))return jL.fail("Structure gap-replace would overwrite content");var t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return jL.fail("Gap is not a flat range");var n=this.slice.insertAt(this.insert,t.content);return n?jL.fromReplace(e,this.from,this.to,n):jL.fail("Content does not fit in gap")},t.prototype.getMap=function(){return new mL([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])},t.prototype.invert=function(e){var n=this.gapTo-this.gapFrom;return new t(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)},t.prototype.map=function(e){var n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),o=e.map(this.gapFrom,-1),i=e.map(this.gapTo,1);return n.deleted&&r.deleted||o<n.pos||i>r.pos?null:new t(n.pos,r.pos,o,i,this.slice,this.insert,this.structure)},t.prototype.toJSON=function(){var e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to||"number"!=typeof n.gapFrom||"number"!=typeof n.gapTo||"number"!=typeof n.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new t(n.from,n.to,n.gapFrom,n.gapTo,iB.fromJSON(e,n.slice),n.insert,!!n.structure)},t}(CL);function ZL(e,t,n){for(var r=e.resolve(t),o=n-t,i=r.depth;o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,o--;if(o>0)for(var a=r.node(i).maybeChild(r.indexAfter(i));o>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,o--}return!1}function OL(e,t,n){return(0==t||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function EL(e){for(var t=e.parent.content.cutByIndex(e.startIndex,e.endIndex),n=e.depth;;--n){var r=e.$from.node(n),o=e.$from.index(n),i=e.$to.indexAfter(n);if(n<e.depth&&r.canReplace(o,i,t))return n;if(0==n||r.type.spec.isolating||!OL(r,o,i))break}}function DL(e,t,n,r){void 0===r&&(r=e);var o=function(e,t){var n=e.parent,r=e.startIndex,o=e.endIndex,i=n.contentMatchAt(r).findWrapping(t);if(!i)return null;var a=i.length?i[0]:t;return n.canReplaceWith(r,o,a)?i:null}(e,t),i=o&&function(e,t){var n=e.parent,r=e.startIndex,o=e.endIndex,i=n.child(r),a=t.contentMatch.findWrapping(i.type);if(!a)return null;for(var s=(a.length?a[a.length-1]:t).contentMatch,l=r;s&&l<o;l++)s=s.matchType(n.child(l).type);if(!s||!s.validEnd)return null;return a}(r,t);return i?o.map(PL).concat({type:t,attrs:n}).concat(i.map(PL)):null}function PL(e){return{type:e,attrs:null}}function AL(e,t,n,r){void 0===n&&(n=1);var o=e.resolve(t),i=o.depth-n,a=r&&r[r.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!a.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(var s=o.depth-1,l=n-2;s>i;s--,l--){var c=o.node(s),u=o.index(s);if(c.type.spec.isolating)return!1;var d=c.content.cutByIndex(u,c.childCount),p=r&&r[l]||c;if(p!=c&&(d=d.replaceChild(0,p.type.create(p.attrs))),!c.canReplace(u+1,c.childCount)||!p.type.validContent(d))return!1}var f=o.indexAfter(i),h=r&&r[0];return o.node(i).canReplaceWith(f,f,h?h.type:o.node(i+1).type)}function ML(e,t){var n=e.resolve(t),r=n.index();return TL(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function TL(e,t){return e&&t&&!e.isLeaf&&e.canAppend(t)}function IL(e,t,n){var r=e.resolve(t);if(!n.content.size)return t;for(var o=n.content,i=0;i<n.openStart;i++)o=o.firstChild.content;for(var a=1;a<=(0==n.openStart&&n.size?2:1);a++)for(var s=r.depth;s>=0;s--){var l=s==r.depth?0:r.pos<=(r.start(s+1)+r.end(s+1))/2?-1:1,c=r.index(s)+(l>0?1:0),u=r.node(s),d=!1;if(1==a)d=u.canReplace(c,c,o);else{var p=u.contentMatchAt(c).findWrapping(o.firstChild.type);d=p&&u.canReplaceWith(c,c,p[0])}if(d)return 0==l?r.pos:l<0?r.before(s+1):r.after(s+1)}return null}function RL(e,t,n){for(var r=[],o=0;o<e.childCount;o++){var i=e.child(o);i.content.size&&(i=i.copy(RL(i.content,t,i))),i.isInline&&(i=t(i,n,o)),r.push(i)}return QF.fromArray(r)}CL.jsonID("replaceAround",kL),yL.prototype.lift=function(e,t){for(var n=e.$from,r=e.$to,o=e.depth,i=n.before(o+1),a=r.after(o+1),s=i,l=a,c=QF.empty,u=0,d=o,p=!1;d>t;d--)p||n.index(d)>0?(p=!0,c=QF.from(n.node(d).copy(c)),u++):s--;for(var f=QF.empty,h=0,m=o,v=!1;m>t;m--)v||r.after(m+1)<r.end(m)?(v=!0,f=QF.from(r.node(m).copy(f)),h++):l++;return this.step(new kL(s,l,i,a,new iB(c.append(f),u,h),c.size-u,!0))},yL.prototype.wrap=function(e,t){for(var n=QF.empty,r=t.length-1;r>=0;r--){if(n.size){var o=t[r].type.contentMatch.matchFragment(n);if(!o||!o.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}n=QF.from(t[r].type.create(t[r].attrs,n))}var i=e.start,a=e.end;return this.step(new kL(i,a,i,a,new iB(n,0,0),t.length,!0))},yL.prototype.setBlockType=function(e,t,n,r){var o=this;if(void 0===t&&(t=e),!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");var i=this.steps.length;return this.doc.nodesBetween(e,t,(function(e,t){if(e.isTextblock&&!e.hasMarkup(n,r)&&function(e,t,n){var r=e.resolve(t),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}(o.doc,o.mapping.slice(i).map(t),n)){o.clearIncompatible(o.mapping.slice(i).map(t,1),n);var a=o.mapping.slice(i),s=a.map(t,1),l=a.map(t+e.nodeSize,1);return o.step(new kL(s,l,s+1,l-1,new iB(QF.from(n.create(r,null,e.marks)),0,0),1,!0)),!1}})),this},yL.prototype.setNodeMarkup=function(e,t,n,r){var o=this.doc.nodeAt(e);if(!o)throw new RangeError("No node at given position");t||(t=o.type);var i=t.create(n,null,r||o.marks);if(o.isLeaf)return this.replaceWith(e,e+o.nodeSize,i);if(!t.validContent(o.content))throw new RangeError("Invalid content for node type "+t.name);return this.step(new kL(e,e+o.nodeSize,e+1,e+o.nodeSize-1,new iB(QF.from(i),0,0),1,!0))},yL.prototype.split=function(e,t,n){void 0===t&&(t=1);for(var r=this.doc.resolve(e),o=QF.empty,i=QF.empty,a=r.depth,s=r.depth-t,l=t-1;a>s;a--,l--){o=QF.from(r.node(a).copy(o));var c=n&&n[l];i=QF.from(c?c.type.create(c.attrs,i):r.node(a).copy(i))}return this.step(new SL(e,e,new iB(o.append(i),t,t),!0))},yL.prototype.join=function(e,t){void 0===t&&(t=1);var n=new SL(e-t,e+t,iB.empty,!0);return this.step(n)};var FL=function(e){function t(t,n,r){e.call(this),this.from=t,this.to=n,this.mark=r}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){var t=this,n=e.slice(this.from,this.to),r=e.resolve(this.from),o=r.node(r.sharedDepth(this.to)),i=new iB(RL(n.content,(function(e,n){return e.isAtom&&n.type.allowsMarkType(t.mark.type)?e.mark(t.mark.addToSet(e.marks)):e}),o),n.openStart,n.openEnd);return jL.fromReplace(e,this.from,this.to,i)},t.prototype.invert=function(){return new BL(this.from,this.to,this.mark)},t.prototype.map=function(e){var n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new t(n.pos,r.pos,this.mark)},t.prototype.merge=function(e){if(e instanceof t&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from)return new t(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark)},t.prototype.toJSON=function(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new t(n.from,n.to,e.markFromJSON(n.mark))},t}(CL);CL.jsonID("addMark",FL);var BL=function(e){function t(t,n,r){e.call(this),this.from=t,this.to=n,this.mark=r}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){var t=this,n=e.slice(this.from,this.to),r=new iB(RL(n.content,(function(e){return e.mark(t.mark.removeFromSet(e.marks))})),n.openStart,n.openEnd);return jL.fromReplace(e,this.from,this.to,r)},t.prototype.invert=function(){return new FL(this.from,this.to,this.mark)},t.prototype.map=function(e){var n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new t(n.pos,r.pos,this.mark)},t.prototype.merge=function(e){if(e instanceof t&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from)return new t(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark)},t.prototype.toJSON=function(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new t(n.from,n.to,e.markFromJSON(n.mark))},t}(CL);function LL(e,t,n,r){if(void 0===n&&(n=t),void 0===r&&(r=iB.empty),t==n&&!r.size)return null;var o=e.resolve(t),i=e.resolve(n);return NL(o,i,r)?new SL(t,n,r):new _L(o,i,r).fit()}function NL(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}CL.jsonID("removeMark",BL),yL.prototype.addMark=function(e,t,n){var r=this,o=[],i=[],a=null,s=null;return this.doc.nodesBetween(e,t,(function(r,l,c){if(r.isInline){var u=r.marks;if(!n.isInSet(u)&&c.type.allowsMarkType(n.type)){for(var d=Math.max(l,e),p=Math.min(l+r.nodeSize,t),f=n.addToSet(u),h=0;h<u.length;h++)u[h].isInSet(f)||(a&&a.to==d&&a.mark.eq(u[h])?a.to=p:o.push(a=new BL(d,p,u[h])));s&&s.to==d?s.to=p:i.push(s=new FL(d,p,n))}}})),o.forEach((function(e){return r.step(e)})),i.forEach((function(e){return r.step(e)})),this},yL.prototype.removeMark=function(e,t,n){var r=this;void 0===n&&(n=null);var o=[],i=0;return this.doc.nodesBetween(e,t,(function(r,a){if(r.isInline){i++;var s=null;if(n instanceof YB)for(var l,c=r.marks;l=n.isInSet(c);)(s||(s=[])).push(l),c=l.removeFromSet(c);else n?n.isInSet(r.marks)&&(s=[n]):s=r.marks;if(s&&s.length)for(var u=Math.min(a+r.nodeSize,t),d=0;d<s.length;d++){for(var p=s[d],f=void 0,h=0;h<o.length;h++){var m=o[h];m.step==i-1&&p.eq(o[h].style)&&(f=m)}f?(f.to=u,f.step=i):o.push({style:p,from:Math.max(a,e),to:u,step:i})}}})),o.forEach((function(e){return r.step(new BL(e.from,e.to,e.style))})),this},yL.prototype.clearIncompatible=function(e,t,n){void 0===n&&(n=t.contentMatch);for(var r=this.doc.nodeAt(e),o=[],i=e+1,a=0;a<r.childCount;a++){var s=r.child(a),l=i+s.nodeSize,c=n.matchType(s.type,s.attrs);if(c){n=c;for(var u=0;u<s.marks.length;u++)t.allowsMarkType(s.marks[u].type)||this.step(new BL(i,l,s.marks[u]))}else o.push(new SL(i,l,iB.empty));i=l}if(!n.validEnd){var d=n.fillBefore(QF.empty,!0);this.replace(i,i,new iB(d,0,0))}for(var p=o.length-1;p>=0;p--)this.step(o[p]);return this},yL.prototype.replace=function(e,t,n){void 0===t&&(t=e),void 0===n&&(n=iB.empty);var r=LL(this.doc,e,t,n);return r&&this.step(r),this},yL.prototype.replaceWith=function(e,t,n){return this.replace(e,t,new iB(QF.from(n),0,0))},yL.prototype.delete=function(e,t){return this.replace(e,t,iB.empty)},yL.prototype.insert=function(e,t){return this.replaceWith(e,e,t)};var _L=function(e,t,n){this.$to=t,this.$from=e,this.unplaced=n,this.frontier=[];for(var r=0;r<=e.depth;r++){var o=e.node(r);this.frontier.push({type:o.type,match:o.contentMatchAt(e.indexAfter(r))})}this.placed=QF.empty;for(var i=e.depth;i>0;i--)this.placed=QF.from(e.node(i).copy(this.placed))},zL={depth:{configurable:!0}};function HL(e,t,n){return 0==t?e.cutByIndex(n):e.replaceChild(0,e.firstChild.copy(HL(e.firstChild.content,t-1,n)))}function WL(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(WL(e.lastChild.content,t-1,n)))}function VL(e,t){for(var n=0;n<t;n++)e=e.firstChild.content;return e}function UL(e,t,n){if(t<=0)return e;var r=e.content;return t>1&&(r=r.replaceChild(0,UL(r.firstChild,t-1,1==r.childCount?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(QF.empty,!0)))),e.copy(r)}function qL(e,t,n,r,o){var i=e.node(t),a=o?e.indexAfter(t):e.index(t);if(a==i.childCount&&!n.compatibleContent(i.type))return null;var s=r.fillBefore(i.content,!0,a);return s&&!function(e,t,n){for(var r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}(n,i.content,a)?s:null}function GL(e,t,n,r,o){if(t<n){var i=e.firstChild;e=e.replaceChild(0,i.copy(GL(i.content,t+1,n,r,i)))}if(t>r){var a=o.contentMatchAt(0),s=a.fillBefore(e).append(e);e=s.append(a.matchFragment(s).fillBefore(QF.empty,!0))}return e}function YL(e,t){for(var n=[],r=Math.min(e.depth,t.depth);r>=0;r--){var o=e.start(r);if(o<e.pos-(e.depth-r)||t.end(r)>t.pos+(t.depth-r)||e.node(r).type.spec.isolating||t.node(r).type.spec.isolating)break;(o==t.start(r)||r==e.depth&&r==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&r&&t.start(r-1)==o-1)&&n.push(r)}return n}zL.depth.get=function(){return this.frontier.length-1},_L.prototype.fit=function(){for(;this.unplaced.size;){var e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}var t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,o=this.close(t<0?this.$to:r.doc.resolve(t));if(!o)return null;for(var i=this.placed,a=r.depth,s=o.depth;a&&s&&1==i.childCount;)i=i.firstChild.content,a--,s--;var l=new iB(i,a,s);return t>-1?new kL(r.pos,t,this.$to.pos,this.$to.end(),l,n):l.size||r.pos!=this.$to.pos?new SL(r.pos,o.pos,l):void 0},_L.prototype.findFittable=function(){for(var e=1;e<=2;e++)for(var t=this.unplaced.openStart;t>=0;t--)for(var n=void 0,r=(t?(n=VL(this.unplaced.content,t-1).firstChild).content:this.unplaced.content).firstChild,o=this.depth;o>=0;o--){var i=this.frontier[o],a=i.type,s=i.match,l=void 0,c=void 0;if(1==e&&(r?s.matchType(r.type)||(c=s.fillBefore(QF.from(r),!1)):a.compatibleContent(n.type)))return{sliceDepth:t,frontierDepth:o,parent:n,inject:c};if(2==e&&r&&(l=s.findWrapping(r.type)))return{sliceDepth:t,frontierDepth:o,parent:n,wrap:l};if(n&&s.matchType(n.type))break}},_L.prototype.openMore=function(){var e=this.unplaced,t=e.content,n=e.openStart,r=e.openEnd,o=VL(t,n);return!(!o.childCount||o.firstChild.isLeaf)&&(this.unplaced=new iB(t,n+1,Math.max(r,o.size+n>=t.size-r?n+1:0)),!0)},_L.prototype.dropNode=function(){var e=this.unplaced,t=e.content,n=e.openStart,r=e.openEnd,o=VL(t,n);if(o.childCount<=1&&n>0){var i=t.size-n<=n+o.size;this.unplaced=new iB(HL(t,n-1,1),n-1,i?n-1:r)}else this.unplaced=new iB(HL(t,n,1),n,r)},_L.prototype.placeNodes=function(e){for(var t=e.sliceDepth,n=e.frontierDepth,r=e.parent,o=e.inject,i=e.wrap;this.depth>n;)this.closeFrontierNode();if(i)for(var a=0;a<i.length;a++)this.openFrontierNode(i[a]);var s=this.unplaced,l=r?r.content:s.content,c=s.openStart-t,u=0,d=[],p=this.frontier[n],f=p.match,h=p.type;if(o){for(var m=0;m<o.childCount;m++)d.push(o.child(m));f=f.matchFragment(o)}for(var v=l.size+t-(s.content.size-s.openEnd);u<l.childCount;){var g=l.child(u),y=f.matchType(g.type);if(!y)break;(++u>1||0==c||g.content.size)&&(f=y,d.push(UL(g.mark(h.allowedMarks(g.marks)),1==u?c:0,u==l.childCount?v:-1)))}var b=u==l.childCount;b||(v=-1),this.placed=WL(this.placed,n,QF.from(d)),this.frontier[n].match=f,b&&v<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(var x=0,w=l;x<v;x++){var C=w.lastChild;this.frontier.push({type:C.type,match:C.contentMatchAt(C.childCount)}),w=C.content}this.unplaced=b?0==t?iB.empty:new iB(HL(s.content,t-1,1),t-1,v<0?s.openEnd:t-1):new iB(HL(s.content,t,u),s.openStart,s.openEnd)},_L.prototype.mustMoveInline=function(){if(!this.$to.parent.isTextblock||this.$to.end()==this.$to.pos)return-1;var e,t=this.frontier[this.depth];if(!t.type.isTextblock||!qL(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(e=this.findCloseLevel(this.$to))&&e.depth==this.depth)return-1;for(var n=this.$to.depth,r=this.$to.after(n);n>1&&r==this.$to.end(--n);)++r;return r},_L.prototype.findCloseLevel=function(e){e:for(var t=Math.min(this.depth,e.depth);t>=0;t--){var n=this.frontier[t],r=n.match,o=n.type,i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),a=qL(e,t,o,r,i);if(a){for(var s=t-1;s>=0;s--){var l=this.frontier[s],c=l.match,u=qL(e,s,l.type,c,!0);if(!u||u.childCount)continue e}return{depth:t,fit:a,move:i?e.doc.resolve(e.after(t+1)):e}}}},_L.prototype.close=function(e){var t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=WL(this.placed,t.depth,t.fit)),e=t.move;for(var n=t.depth+1;n<=e.depth;n++){var r=e.node(n),o=r.type.contentMatch.fillBefore(r.content,!0,e.index(n));this.openFrontierNode(r.type,r.attrs,o)}return e},_L.prototype.openFrontierNode=function(e,t,n){var r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=WL(this.placed,this.depth,QF.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})},_L.prototype.closeFrontierNode=function(){var e=this.frontier.pop().match.fillBefore(QF.empty,!0);e.childCount&&(this.placed=WL(this.placed,this.frontier.length,e))},Object.defineProperties(_L.prototype,zL),yL.prototype.replaceRange=function(e,t,n){if(!n.size)return this.deleteRange(e,t);var r=this.doc.resolve(e),o=this.doc.resolve(t);if(NL(r,o,n))return this.step(new SL(e,t,n));var i=YL(r,this.doc.resolve(t));0==i[i.length-1]&&i.pop();var a=-(r.depth+1);i.unshift(a);for(var s=r.depth,l=r.pos-1;s>0;s--,l--){var c=r.node(s).type.spec;if(c.defining||c.isolating)break;i.indexOf(s)>-1?a=s:r.before(s)==l&&i.splice(1,0,-s)}for(var u=i.indexOf(a),d=[],p=n.openStart,f=n.content,h=0;;h++){var m=f.firstChild;if(d.push(m),h==n.openStart)break;f=m.content}p>0&&d[p-1].type.spec.defining&&r.node(u).type!=d[p-1].type?p-=1:p>=2&&d[p-1].isTextblock&&d[p-2].type.spec.defining&&r.node(u).type!=d[p-2].type&&(p-=2);for(var v=n.openStart;v>=0;v--){var g=(v+p+1)%(n.openStart+1),y=d[g];if(y)for(var b=0;b<i.length;b++){var x=i[(b+u)%i.length],w=!0;x<0&&(w=!1,x=-x);var C=r.node(x-1),j=r.index(x-1);if(C.canReplaceWith(j,j,y.type,y.marks))return this.replace(r.before(x),w?o.after(x):t,new iB(GL(n.content,0,n.openStart,g),g,n.openEnd))}}for(var S=this.steps.length,k=i.length-1;k>=0&&(this.replace(e,t,n),!(this.steps.length>S));k--){var Z=i[k];Z<0||(e=r.before(Z),t=o.after(Z))}return this},yL.prototype.replaceRangeWith=function(e,t,n){if(!n.isInline&&e==t&&this.doc.resolve(e).parent.content.size){var r=function(e,t,n){var r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(var o=r.depth-1;o>=0;o--){var i=r.index(o);if(r.node(o).canReplaceWith(i,i,n))return r.before(o+1);if(i>0)return null}if(r.parentOffset==r.parent.content.size)for(var a=r.depth-1;a>=0;a--){var s=r.indexAfter(a);if(r.node(a).canReplaceWith(s,s,n))return r.after(a+1);if(s<r.node(a).childCount)return null}}(this.doc,e,n.type);null!=r&&(e=t=r)}return this.replaceRange(e,t,new iB(QF.from(n),0,0))},yL.prototype.deleteRange=function(e,t){for(var n=this.doc.resolve(e),r=this.doc.resolve(t),o=YL(n,r),i=0;i<o.length;i++){var a=o[i],s=i==o.length-1;if(s&&0==a||n.node(a).type.contentMatch.validEnd)return this.delete(n.start(a),r.end(a));if(a>0&&(s||n.node(a-1).canReplace(n.index(a-1),r.indexAfter(a-1))))return this.delete(n.before(a),r.after(a))}for(var l=1;l<=n.depth&&l<=r.depth;l++)if(e-n.start(l)==n.depth-l&&t>n.end(l)&&r.end(l)-t!=r.depth-l)return this.delete(n.before(l),t);return this.delete(e,t)};var KL=Object.create(null),JL=function(e,t,n){this.ranges=n||[new QL(e.min(t),e.max(t))],this.$anchor=e,this.$head=t},XL={anchor:{configurable:!0},head:{configurable:!0},from:{configurable:!0},to:{configurable:!0},$from:{configurable:!0},$to:{configurable:!0},empty:{configurable:!0}};XL.anchor.get=function(){return this.$anchor.pos},XL.head.get=function(){return this.$head.pos},XL.from.get=function(){return this.$from.pos},XL.to.get=function(){return this.$to.pos},XL.$from.get=function(){return this.ranges[0].$from},XL.$to.get=function(){return this.ranges[0].$to},XL.empty.get=function(){for(var e=this.ranges,t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0},JL.prototype.content=function(){return this.$from.node(0).slice(this.from,this.to,!0)},JL.prototype.replace=function(e,t){void 0===t&&(t=iB.empty);for(var n=t.content.lastChild,r=null,o=0;o<t.openEnd;o++)r=n,n=n.lastChild;for(var i=e.steps.length,a=this.ranges,s=0;s<a.length;s++){var l=a[s],c=l.$from,u=l.$to,d=e.mapping.slice(i);e.replaceRange(d.map(c.pos),d.map(u.pos),s?iB.empty:t),0==s&&aN(e,i,(n?n.isInline:r&&r.isTextblock)?-1:1)}},JL.prototype.replaceWith=function(e,t){for(var n=e.steps.length,r=this.ranges,o=0;o<r.length;o++){var i=r[o],a=i.$from,s=i.$to,l=e.mapping.slice(n),c=l.map(a.pos),u=l.map(s.pos);o?e.deleteRange(c,u):(e.replaceRangeWith(c,u,t),aN(e,n,t.isInline?-1:1))}},JL.findFrom=function(e,t,n){var r=e.parent.inlineContent?new $L(e):iN(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(var o=e.depth-1;o>=0;o--){var i=t<0?iN(e.node(0),e.node(o),e.before(o+1),e.index(o),t,n):iN(e.node(0),e.node(o),e.after(o+1),e.index(o)+1,t,n);if(i)return i}},JL.near=function(e,t){return void 0===t&&(t=1),this.findFrom(e,t)||this.findFrom(e,-t)||new rN(e.node(0))},JL.atStart=function(e){return iN(e,e,0,0,1)||new rN(e)},JL.atEnd=function(e){return iN(e,e,e.content.size,e.childCount,-1)||new rN(e)},JL.fromJSON=function(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");var n=KL[t.type];if(!n)throw new RangeError("No selection type "+t.type+" defined");return n.fromJSON(e,t)},JL.jsonID=function(e,t){if(e in KL)throw new RangeError("Duplicate use of selection JSON ID "+e);return KL[e]=t,t.prototype.jsonID=e,t},JL.prototype.getBookmark=function(){return $L.between(this.$anchor,this.$head).getBookmark()},Object.defineProperties(JL.prototype,XL),JL.prototype.visible=!0;var QL=function(e,t){this.$from=e,this.$to=t},$L=function(e){function t(t,n){void 0===n&&(n=t),e.call(this,t,n)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={$cursor:{configurable:!0}};return n.$cursor.get=function(){return this.$anchor.pos==this.$head.pos?this.$head:null},t.prototype.map=function(n,r){var o=n.resolve(r.map(this.head));if(!o.parent.inlineContent)return e.near(o);var i=n.resolve(r.map(this.anchor));return new t(i.parent.inlineContent?i:o,o)},t.prototype.replace=function(t,n){if(void 0===n&&(n=iB.empty),e.prototype.replace.call(this,t,n),n==iB.empty){var r=this.$from.marksAcross(this.$to);r&&t.ensureMarks(r)}},t.prototype.eq=function(e){return e instanceof t&&e.anchor==this.anchor&&e.head==this.head},t.prototype.getBookmark=function(){return new eN(this.anchor,this.head)},t.prototype.toJSON=function(){return{type:"text",anchor:this.anchor,head:this.head}},t.fromJSON=function(e,n){if("number"!=typeof n.anchor||"number"!=typeof n.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new t(e.resolve(n.anchor),e.resolve(n.head))},t.create=function(e,t,n){void 0===n&&(n=t);var r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))},t.between=function(n,r,o){var i=n.pos-r.pos;if(o&&!i||(o=i>=0?1:-1),!r.parent.inlineContent){var a=e.findFrom(r,o,!0)||e.findFrom(r,-o,!0);if(!a)return e.near(r,o);r=a.$head}return n.parent.inlineContent||(0==i||(n=(e.findFrom(n,-o,!0)||e.findFrom(n,o,!0)).$anchor).pos<r.pos!=i<0)&&(n=r),new t(n,r)},Object.defineProperties(t.prototype,n),t}(JL);JL.jsonID("text",$L);var eN=function(e,t){this.anchor=e,this.head=t};eN.prototype.map=function(e){return new eN(e.map(this.anchor),e.map(this.head))},eN.prototype.resolve=function(e){return $L.between(e.resolve(this.anchor),e.resolve(this.head))};var tN=function(e){function t(t){var n=t.nodeAfter,r=t.node(0).resolve(t.pos+n.nodeSize);e.call(this,t,r),this.node=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.map=function(n,r){var o=r.mapResult(this.anchor),i=o.deleted,a=o.pos,s=n.resolve(a);return i?e.near(s):new t(s)},t.prototype.content=function(){return new iB(QF.from(this.node),0,0)},t.prototype.eq=function(e){return e instanceof t&&e.anchor==this.anchor},t.prototype.toJSON=function(){return{type:"node",anchor:this.anchor}},t.prototype.getBookmark=function(){return new nN(this.anchor)},t.fromJSON=function(e,n){if("number"!=typeof n.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new t(e.resolve(n.anchor))},t.create=function(e,t){return new this(e.resolve(t))},t.isSelectable=function(e){return!e.isText&&!1!==e.type.spec.selectable},t}(JL);tN.prototype.visible=!1,JL.jsonID("node",tN);var nN=function(e){this.anchor=e};nN.prototype.map=function(e){var t=e.mapResult(this.anchor),n=t.deleted,r=t.pos;return n?new eN(r,r):new nN(r)},nN.prototype.resolve=function(e){var t=e.resolve(this.anchor),n=t.nodeAfter;return n&&tN.isSelectable(n)?new tN(t):JL.near(t)};var rN=function(e){function t(t){e.call(this,t.resolve(0),t.resolve(t.content.size))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.replace=function(t,n){if(void 0===n&&(n=iB.empty),n==iB.empty){t.delete(0,t.doc.content.size);var r=e.atStart(t.doc);r.eq(t.selection)||t.setSelection(r)}else e.prototype.replace.call(this,t,n)},t.prototype.toJSON=function(){return{type:"all"}},t.fromJSON=function(e){return new t(e)},t.prototype.map=function(e){return new t(e)},t.prototype.eq=function(e){return e instanceof t},t.prototype.getBookmark=function(){return oN},t}(JL);JL.jsonID("all",rN);var oN={map:function(){return this},resolve:function(e){return new rN(e)}};function iN(e,t,n,r,o,i){if(t.inlineContent)return $L.create(e,n);for(var a=r-(o>0?0:1);o>0?a<t.childCount:a>=0;a+=o){var s=t.child(a);if(s.isAtom){if(!i&&tN.isSelectable(s))return tN.create(e,n-(o<0?s.nodeSize:0))}else{var l=iN(e,s,n+o,o<0?s.childCount:0,o,i);if(l)return l}n+=s.nodeSize*o}}function aN(e,t,n){var r=e.steps.length-1;if(!(r<t)){var o,i=e.steps[r];if(i instanceof SL||i instanceof kL)e.mapping.maps[r].forEach((function(e,t,n,r){null==o&&(o=r)})),e.setSelection(JL.near(e.doc.resolve(o),n))}}var sN=function(e){function t(t){e.call(this,t.doc),this.time=Date.now(),this.curSelection=t.selection,this.curSelectionFor=0,this.storedMarks=t.storedMarks,this.updated=0,this.meta=Object.create(null)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={selection:{configurable:!0},selectionSet:{configurable:!0},storedMarksSet:{configurable:!0},isGeneric:{configurable:!0},scrolledIntoView:{configurable:!0}};return n.selection.get=function(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection},t.prototype.setSelection=function(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=-3&(1|this.updated),this.storedMarks=null,this},n.selectionSet.get=function(){return(1&this.updated)>0},t.prototype.setStoredMarks=function(e){return this.storedMarks=e,this.updated|=2,this},t.prototype.ensureMarks=function(e){return rB.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this},t.prototype.addStoredMark=function(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))},t.prototype.removeStoredMark=function(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))},n.storedMarksSet.get=function(){return(2&this.updated)>0},t.prototype.addStep=function(t,n){e.prototype.addStep.call(this,t,n),this.updated=-3&this.updated,this.storedMarks=null},t.prototype.setTime=function(e){return this.time=e,this},t.prototype.replaceSelection=function(e){return this.selection.replace(this,e),this},t.prototype.replaceSelectionWith=function(e,t){var n=this.selection;return!1!==t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||rB.none))),n.replaceWith(this,e),this},t.prototype.deleteSelection=function(){return this.selection.replace(this),this},t.prototype.insertText=function(e,t,n){void 0===n&&(n=t);var r=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();if(!e)return this.deleteRange(t,n);var o=this.storedMarks;if(!o){var i=this.doc.resolve(t);o=n==t?i.marks():i.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,o)),this.selection.empty||this.setSelection(JL.near(this.selection.$to)),this},t.prototype.setMeta=function(e,t){return this.meta["string"==typeof e?e:e.key]=t,this},t.prototype.getMeta=function(e){return this.meta["string"==typeof e?e:e.key]},n.isGeneric.get=function(){for(var e in this.meta)return!1;return!0},t.prototype.scrollIntoView=function(){return this.updated|=4,this},n.scrolledIntoView.get=function(){return(4&this.updated)>0},Object.defineProperties(t.prototype,n),t}(yL);function lN(e,t){return t&&e?e.bind(t):e}var cN=function(e,t,n){this.name=e,this.init=lN(t.init,n),this.apply=lN(t.apply,n)},uN=[new cN("doc",{init:function(e){return e.doc||e.schema.topNodeType.createAndFill()},apply:function(e){return e.doc}}),new cN("selection",{init:function(e,t){return e.selection||JL.atStart(t.doc)},apply:function(e){return e.selection}}),new cN("storedMarks",{init:function(e){return e.storedMarks||null},apply:function(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new cN("scrollToSelection",{init:function(){return 0},apply:function(e,t){return e.scrolledIntoView?t+1:t}})],dN=function(e,t){var n=this;this.schema=e,this.fields=uN.concat(),this.plugins=[],this.pluginsByKey=Object.create(null),t&&t.forEach((function(e){if(n.pluginsByKey[e.key])throw new RangeError("Adding different instances of a keyed plugin ("+e.key+")");n.plugins.push(e),n.pluginsByKey[e.key]=e,e.spec.state&&n.fields.push(new cN(e.key,e.spec.state,e))}))},pN=function(e){this.config=e},fN={schema:{configurable:!0},plugins:{configurable:!0},tr:{configurable:!0}};fN.schema.get=function(){return this.config.schema},fN.plugins.get=function(){return this.config.plugins},pN.prototype.apply=function(e){return this.applyTransaction(e).state},pN.prototype.filterTransaction=function(e,t){void 0===t&&(t=-1);for(var n=0;n<this.config.plugins.length;n++)if(n!=t){var r=this.config.plugins[n];if(r.spec.filterTransaction&&!r.spec.filterTransaction.call(r,e,this))return!1}return!0},pN.prototype.applyTransaction=function(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};for(var t=[e],n=this.applyInner(e),r=null;;){for(var o=!1,i=0;i<this.config.plugins.length;i++){var a=this.config.plugins[i];if(a.spec.appendTransaction){var s=r?r[i].n:0,l=r?r[i].state:this,c=s<t.length&&a.spec.appendTransaction.call(a,s?t.slice(s):t,l,n);if(c&&n.filterTransaction(c,i)){if(c.setMeta("appendedTransaction",e),!r){r=[];for(var u=0;u<this.config.plugins.length;u++)r.push(u<i?{state:n,n:t.length}:{state:this,n:0})}t.push(c),n=n.applyInner(c),o=!0}r&&(r[i]={state:n,n:t.length})}}if(!o)return{state:n,transactions:t}}},pN.prototype.applyInner=function(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");for(var t=new pN(this.config),n=this.config.fields,r=0;r<n.length;r++){var o=n[r];t[o.name]=o.apply(e,this[o.name],this,t)}for(var i=0;i<hN.length;i++)hN[i](this,e,t);return t},fN.tr.get=function(){return new sN(this)},pN.create=function(e){for(var t=new dN(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new pN(t),r=0;r<t.fields.length;r++)n[t.fields[r].name]=t.fields[r].init(e,n);return n},pN.prototype.reconfigure=function(e){for(var t=new dN(this.schema,e.plugins),n=t.fields,r=new pN(t),o=0;o<n.length;o++){var i=n[o].name;r[i]=this.hasOwnProperty(i)?this[i]:n[o].init(e,r)}return r},pN.prototype.toJSON=function(e){var t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map((function(e){return e.toJSON()}))),e&&"object"==typeof e)for(var n in e){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");var r=e[n],o=r.spec.state;o&&o.toJSON&&(t[n]=o.toJSON.call(r,this[r.key]))}return t},pN.fromJSON=function(e,t,n){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");var r=new dN(e.schema,e.plugins),o=new pN(r);return r.fields.forEach((function(r){if("doc"==r.name)o.doc=ZB.fromJSON(e.schema,t.doc);else if("selection"==r.name)o.selection=JL.fromJSON(o.doc,t.selection);else if("storedMarks"==r.name)t.storedMarks&&(o.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(var i in n){var a=n[i],s=a.spec.state;if(a.key==r.name&&s&&s.fromJSON&&Object.prototype.hasOwnProperty.call(t,i))return void(o[r.name]=s.fromJSON.call(a,e,t[i],o))}o[r.name]=r.init(e,o)}})),o},pN.addApplyListener=function(e){hN.push(e)},pN.removeApplyListener=function(e){var t=hN.indexOf(e);t>-1&&hN.splice(t,1)},Object.defineProperties(pN.prototype,fN);var hN=[];function mN(e,t,n){for(var r in e){var o=e[r];o instanceof Function?o=o.bind(t):"handleDOMEvents"==r&&(o=mN(o,t,{})),n[r]=o}return n}var vN=function(e){this.props={},e.props&&mN(e.props,this,this.props),this.spec=e,this.key=e.key?e.key.key:yN("plugin")};vN.prototype.getState=function(e){return e[this.key]};var gN=Object.create(null);function yN(e){return e in gN?e+"$"+ ++gN[e]:(gN[e]=0,e+"$")}var bN=function(e){void 0===e&&(e="key"),this.key=yN(e)};function xN(e,t){return!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0)}function wN(e,t,n){var r=e.selection.$cursor;if(!r||(n?!n.endOfTextblock("backward",e):r.parentOffset>0))return!1;var o=SN(r);if(!o){var i=r.blockRange(),a=i&&EL(i);return null!=a&&(t&&t(e.tr.lift(i,a).scrollIntoView()),!0)}var s=o.nodeBefore;if(!s.type.spec.isolating&&RN(e,o,t))return!0;if(0==r.parent.content.size&&(CN(s,"end")||tN.isSelectable(s))){var l=LL(e.doc,r.before(),r.after(),iB.empty);if(l.slice.size<l.to-l.from){if(t){var c=e.tr.step(l);c.setSelection(CN(s,"end")?JL.findFrom(c.doc.resolve(c.mapping.map(o.pos,-1)),-1):tN.create(c.doc,o.pos-s.nodeSize)),t(c.scrollIntoView())}return!0}}return!(!s.isAtom||o.depth!=r.depth-1)&&(t&&t(e.tr.delete(o.pos-s.nodeSize,o.pos).scrollIntoView()),!0)}function CN(e,t,n){for(;e;e="start"==t?e.firstChild:e.lastChild){if(e.isTextblock)return!0;if(n&&1!=e.childCount)return!1}return!1}function jN(e,t,n){var r=e.selection,o=r.$head,i=o;if(!r.empty)return!1;if(o.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):o.parentOffset>0)return!1;i=SN(o)}var a=i&&i.nodeBefore;return!(!a||!tN.isSelectable(a))&&(t&&t(e.tr.setSelection(tN.create(e.doc,i.pos-a.nodeSize)).scrollIntoView()),!0)}function SN(e){if(!e.parent.type.spec.isolating)for(var t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function kN(e,t,n){var r=e.selection.$cursor;if(!r||(n?!n.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size))return!1;var o=ON(r);if(!o)return!1;var i=o.nodeAfter;if(RN(e,o,t))return!0;if(0==r.parent.content.size&&(CN(i,"start")||tN.isSelectable(i))){var a=LL(e.doc,r.before(),r.after(),iB.empty);if(a.slice.size<a.to-a.from){if(t){var s=e.tr.step(a);s.setSelection(CN(i,"start")?JL.findFrom(s.doc.resolve(s.mapping.map(o.pos)),1):tN.create(s.doc,s.mapping.map(o.pos))),t(s.scrollIntoView())}return!0}}return!(!i.isAtom||o.depth!=r.depth-1)&&(t&&t(e.tr.delete(o.pos,o.pos+i.nodeSize).scrollIntoView()),!0)}function ZN(e,t,n){var r=e.selection,o=r.$head,i=o;if(!r.empty)return!1;if(o.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):o.parentOffset<o.parent.content.size)return!1;i=ON(o)}var a=i&&i.nodeAfter;return!(!a||!tN.isSelectable(a))&&(t&&t(e.tr.setSelection(tN.create(e.doc,i.pos)).scrollIntoView()),!0)}function ON(e){if(!e.parent.type.spec.isolating)for(var t=e.depth-1;t>=0;t--){var n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}function EN(e,t){var n=e.selection,r=n.$from,o=n.$to,i=r.blockRange(o),a=i&&EL(i);return null!=a&&(t&&t(e.tr.lift(i,a).scrollIntoView()),!0)}function DN(e,t){var n=e.selection,r=n.$head,o=n.$anchor;return!(!r.parent.type.spec.code||!r.sameParent(o))&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)}function PN(e){for(var t=0;t<e.edgeCount;t++){var n=e.edge(t).type;if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function AN(e,t){var n=e.selection,r=n.$head,o=n.$anchor;if(!r.parent.type.spec.code||!r.sameParent(o))return!1;var i=r.node(-1),a=r.indexAfter(-1),s=PN(i.contentMatchAt(a));if(!i.canReplaceWith(a,a,s))return!1;if(t){var l=r.after(),c=e.tr.replaceWith(l,l,s.createAndFill());c.setSelection(JL.near(c.doc.resolve(l),1)),t(c.scrollIntoView())}return!0}function MN(e,t){var n=e.selection,r=n.$from,o=n.$to;if(n instanceof rN||r.parent.inlineContent||o.parent.inlineContent)return!1;var i=PN(o.parent.contentMatchAt(o.indexAfter()));if(!i||!i.isTextblock)return!1;if(t){var a=(!r.parentOffset&&o.index()<o.parent.childCount?r:o).pos,s=e.tr.insert(a,i.createAndFill());s.setSelection($L.create(s.doc,a+1)),t(s.scrollIntoView())}return!0}function TN(e,t){var n=e.selection.$cursor;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){var r=n.before();if(AL(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}var o=n.blockRange(),i=o&&EL(o);return null!=i&&(t&&t(e.tr.lift(o,i).scrollIntoView()),!0)}function IN(e,t){var n=e.selection,r=n.$from,o=n.$to;if(e.selection instanceof tN&&e.selection.node.isBlock)return!(!r.parentOffset||!AL(e.doc,r.pos))&&(t&&t(e.tr.split(r.pos).scrollIntoView()),!0);if(!r.parent.isBlock)return!1;if(t){var i=o.parentOffset==o.parent.content.size,a=e.tr;(e.selection instanceof $L||e.selection instanceof rN)&&a.deleteSelection();var s=0==r.depth?null:PN(r.node(-1).contentMatchAt(r.indexAfter(-1))),l=i&&s?[{type:s}]:null,c=AL(a.doc,a.mapping.map(r.pos),1,l);if(l||c||!AL(a.doc,a.mapping.map(r.pos),1,s&&[{type:s}])||(l=[{type:s}],c=!0),c&&(a.split(a.mapping.map(r.pos),1,l),!i&&!r.parentOffset&&r.parent.type!=s)){var u=a.mapping.map(r.before()),d=a.doc.resolve(u);r.node(-1).canReplaceWith(d.index(),d.index()+1,s)&&a.setNodeMarkup(a.mapping.map(r.before()),s)}t(a.scrollIntoView())}return!0}function RN(e,t,n){var r,o,i=t.nodeBefore,a=t.nodeAfter;if(i.type.spec.isolating||a.type.spec.isolating)return!1;if(function(e,t,n){var r=t.nodeBefore,o=t.nodeAfter,i=t.index();return!!(r&&o&&r.type.compatibleContent(o.type))&&(!r.content.size&&t.parent.canReplace(i-1,i)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!(!t.parent.canReplace(i,i+1)||!o.isTextblock&&!ML(e.doc,t.pos))&&(n&&n(e.tr.clearIncompatible(t.pos,r.type,r.contentMatchAt(r.childCount)).join(t.pos).scrollIntoView()),!0))}(e,t,n))return!0;var s=t.parent.canReplace(t.index(),t.index()+1);if(s&&(r=(o=i.contentMatchAt(i.childCount)).findWrapping(a.type))&&o.matchType(r[0]||a.type).validEnd){if(n){for(var l=t.pos+a.nodeSize,c=QF.empty,u=r.length-1;u>=0;u--)c=QF.from(r[u].create(null,c));c=QF.from(i.copy(c));var d=e.tr.step(new kL(t.pos-1,l,t.pos,l,new iB(c,1,0),r.length,!0)),p=l+2*r.length;ML(d.doc,p)&&d.join(p),n(d.scrollIntoView())}return!0}var f=JL.findFrom(t,1),h=f&&f.$from.blockRange(f.$to),m=h&&EL(h);if(null!=m&&m>=t.depth)return n&&n(e.tr.lift(h,m).scrollIntoView()),!0;if(s&&CN(a,"start",!0)&&CN(i,"end")){for(var v=i,g=[];g.push(v),!v.isTextblock;)v=v.lastChild;for(var y=a,b=1;!y.isTextblock;y=y.firstChild)b++;if(v.canReplace(v.childCount,v.childCount,y.content)){if(n){for(var x=QF.empty,w=g.length-1;w>=0;w--)x=QF.from(g[w].copy(x));n(e.tr.step(new kL(t.pos-g.length,t.pos+a.nodeSize,t.pos+b,t.pos+a.nodeSize-b,new iB(x,g.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function FN(e){return function(t,n){for(var r=t.selection,o=e<0?r.$from:r.$to,i=o.depth;o.node(i).isInline;){if(!i)return!1;i--}return!!o.node(i).isTextblock&&(n&&n(t.tr.setSelection($L.create(t.doc,e<0?o.start(i):o.end(i)))),!0)}}bN.prototype.get=function(e){return e.config.pluginsByKey[this.key]},bN.prototype.getState=function(e){return e[this.key]};var BN=FN(-1),LN=FN(1);function NN(e,t){return function(n,r){var o=n.selection,i=o.$from,a=o.$to,s=i.blockRange(a),l=s&&DL(s,e,t);return!!l&&(r&&r(n.tr.wrap(s,l).scrollIntoView()),!0)}}function _N(e,t){return function(n,r){var o=n.selection,i=o.from,a=o.to,s=!1;return n.doc.nodesBetween(i,a,(function(r,o){if(s)return!1;if(r.isTextblock&&!r.hasMarkup(e,t))if(r.type==e)s=!0;else{var i=n.doc.resolve(o),a=i.index();s=i.parent.canReplaceWith(a,a+1,e)}})),!!s&&(r&&r(n.tr.setBlockType(i,a,e,t).scrollIntoView()),!0)}}function zN(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function(t,n,r){for(var o=0;o<e.length;o++)if(e[o](t,n,r))return!0;return!1}}var HN=zN(xN,wN,jN),WN=zN(xN,kN,ZN),VN={Enter:zN(DN,MN,TN,IN),"Mod-Enter":AN,Backspace:HN,"Mod-Backspace":HN,"Shift-Backspace":HN,Delete:WN,"Mod-Delete":WN,"Mod-a":function(e,t){return t&&t(e.tr.setSelection(new rN(e.doc))),!0}},UN={"Ctrl-h":VN.Backspace,"Alt-Backspace":VN["Mod-Backspace"],"Ctrl-d":VN.Delete,"Ctrl-Alt-Backspace":VN["Mod-Delete"],"Alt-Delete":VN["Mod-Delete"],"Alt-d":VN["Mod-Delete"],"Ctrl-a":BN,"Ctrl-e":LN};for(var qN in VN)UN[qN]=VN[qN];VN.Home=BN,VN.End=LN;"undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"undefined"!=typeof os&&os.platform();function GN(e,t){return function(n,r){var o=n.selection,i=o.$from,a=o.$to,s=i.blockRange(a),l=!1,c=s;if(!s)return!1;if(s.depth>=2&&i.node(s.depth-1).type.compatibleContent(e)&&0==s.startIndex){if(0==i.index(s.depth-1))return!1;var u=n.doc.resolve(s.start-2);c=new jB(u,u,s.depth),s.endIndex<s.parent.childCount&&(s=new jB(i,n.doc.resolve(a.end(s.depth)),s.depth)),l=!0}var d=DL(c,e,t,s);return!!d&&(r&&r(function(e,t,n,r,o){for(var i=QF.empty,a=n.length-1;a>=0;a--)i=QF.from(n[a].type.create(n[a].attrs,i));e.step(new kL(t.start-(r?2:0),t.end,t.start,t.end,new iB(i,0,0),n.length,!0));for(var s=0,l=0;l<n.length;l++)n[l].type==o&&(s=l+1);for(var c=n.length-s,u=t.start+n.length-(r?2:0),d=t.parent,p=t.startIndex,f=t.endIndex,h=!0;p<f;p++,h=!1)!h&&AL(e.doc,u,c)&&(e.split(u,c),u+=2*c),u+=d.child(p).nodeSize;return e}(n.tr,s,d,l,e).scrollIntoView()),!0)}}function YN(e){return function(t,n){var r=t.selection,o=r.$from,i=r.$to,a=o.blockRange(i,(function(t){return t.childCount&&t.firstChild.type==e}));return!!a&&(!n||(o.node(a.depth-1).type==e?function(e,t,n,r){var o=e.tr,i=r.end,a=r.$to.end(r.depth);i<a&&(o.step(new kL(i-1,a,i,a,new iB(QF.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new jB(o.doc.resolve(r.$from.pos),o.doc.resolve(a),r.depth));return t(o.lift(r,EL(r)).scrollIntoView()),!0}(t,n,e,a):function(e,t,n){for(var r=e.tr,o=n.parent,i=n.end,a=n.endIndex-1,s=n.startIndex;a>s;a--)i-=o.child(a).nodeSize,r.delete(i-1,i+1);var l=r.doc.resolve(n.start),c=l.nodeAfter;if(r.mapping.map(n.end)!=n.start+l.nodeAfter.nodeSize)return!1;var u=0==n.startIndex,d=n.endIndex==o.childCount,p=l.node(-1),f=l.index(-1);if(!p.canReplace(f+(u?0:1),f+1,c.content.append(d?QF.empty:QF.from(o))))return!1;var h=l.pos,m=h+c.nodeSize;return r.step(new kL(h-(u?1:0),m+(d?1:0),h+1,m-1,new iB((u?QF.empty:QF.from(o.copy(QF.empty))).append(d?QF.empty:QF.from(o.copy(QF.empty))),u?0:1,d?0:1),u?0:1)),t(r.scrollIntoView()),!0}(t,n,a)))}}var KN={};if("undefined"!=typeof navigator&&"undefined"!=typeof document){var JN=/Edge\/(\d+)/.exec(navigator.userAgent),XN=/MSIE \d/.test(navigator.userAgent),QN=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),$N=KN.ie=!!(XN||QN||JN);KN.ie_version=XN?document.documentMode||6:QN?+QN[1]:JN?+JN[1]:null,KN.gecko=!$N&&/gecko\/(\d+)/i.test(navigator.userAgent),KN.gecko_version=KN.gecko&&+(/Firefox\/(\d+)/.exec(navigator.userAgent)||[0,0])[1];var e_=!$N&&/Chrome\/(\d+)/.exec(navigator.userAgent);KN.chrome=!!e_,KN.chrome_version=e_&&+e_[1],KN.safari=!$N&&/Apple Computer/.test(navigator.vendor),KN.ios=KN.safari&&(/Mobile\/\w+/.test(navigator.userAgent)||navigator.maxTouchPoints>2),KN.mac=KN.ios||/Mac/.test(navigator.platform),KN.android=/Android \d/.test(navigator.userAgent),KN.webkit="webkitFontSmoothing"in document.documentElement.style,KN.webkit_version=KN.webkit&&+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]}var t_=function(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t},n_=function(e){var t=e.assignedSlot||e.parentNode;return t&&11==t.nodeType?t.host:t},r_=null,o_=function(e,t,n){var r=r_||(r_=document.createRange());return r.setEnd(e,null==n?e.nodeValue.length:n),r.setStart(e,t||0),r},i_=function(e,t,n,r){return n&&(s_(e,t,n,r,-1)||s_(e,t,n,r,1))},a_=/^(img|br|input|textarea|hr)$/i;function s_(e,t,n,r,o){for(;;){if(e==n&&t==r)return!0;if(t==(o<0?0:l_(e))){var i=e.parentNode;if(1!=i.nodeType||c_(e)||a_.test(e.nodeName)||"false"==e.contentEditable)return!1;t=t_(e)+(o<0?0:1),e=i}else{if(1!=e.nodeType)return!1;if("false"==(e=e.childNodes[t+(o<0?-1:0)]).contentEditable)return!1;t=o<0?l_(e):0}}}function l_(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function c_(e){for(var t,n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}var u_=function(e){var t=e.isCollapsed;return t&&KN.chrome&&e.rangeCount&&!e.getRangeAt(0).collapsed&&(t=!1),t};function d_(e,t){var n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function p_(e){return{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function f_(e,t){return"number"==typeof e?e:e[t]}function h_(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function m_(e,t,n){for(var r=e.someProp("scrollThreshold")||0,o=e.someProp("scrollMargin")||5,i=e.dom.ownerDocument,a=n||e.dom;a;a=n_(a))if(1==a.nodeType){var s=a==i.body||1!=a.nodeType,l=s?p_(i):h_(a),c=0,u=0;if(t.top<l.top+f_(r,"top")?u=-(l.top-t.top+f_(o,"top")):t.bottom>l.bottom-f_(r,"bottom")&&(u=t.bottom-l.bottom+f_(o,"bottom")),t.left<l.left+f_(r,"left")?c=-(l.left-t.left+f_(o,"left")):t.right>l.right-f_(r,"right")&&(c=t.right-l.right+f_(o,"right")),c||u)if(s)i.defaultView.scrollBy(c,u);else{var d=a.scrollLeft,p=a.scrollTop;u&&(a.scrollTop+=u),c&&(a.scrollLeft+=c);var f=a.scrollLeft-d,h=a.scrollTop-p;t={left:t.left-f,top:t.top-h,right:t.right-f,bottom:t.bottom-h}}if(s)break}}function v_(e){for(var t=[],n=e.ownerDocument;e&&(t.push({dom:e,top:e.scrollTop,left:e.scrollLeft}),e!=n);e=n_(e));return t}function g_(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=r.dom,i=r.top,a=r.left;o.scrollTop!=i+t&&(o.scrollTop=i+t),o.scrollLeft!=a&&(o.scrollLeft=a)}}var y_=null;function b_(e,t){for(var n,r,o=2e8,i=0,a=t.top,s=t.top,l=e.firstChild,c=0;l;l=l.nextSibling,c++){var u=void 0;if(1==l.nodeType)u=l.getClientRects();else{if(3!=l.nodeType)continue;u=o_(l).getClientRects()}for(var d=0;d<u.length;d++){var p=u[d];if(p.top<=a&&p.bottom>=s){a=Math.max(p.bottom,a),s=Math.min(p.top,s);var f=p.left>t.left?p.left-t.left:p.right<t.left?t.left-p.right:0;if(f<o){n=l,o=f,r=f&&3==n.nodeType?{left:p.right<t.left?p.right:p.left,top:t.top}:t,1==l.nodeType&&f&&(i=c+(t.left>=(p.left+p.right)/2?1:0));continue}}!n&&(t.left>=p.right&&t.top>=p.top||t.left>=p.left&&t.top>=p.bottom)&&(i=c+1)}}return n&&3==n.nodeType?function(e,t){for(var n=e.nodeValue.length,r=document.createRange(),o=0;o<n;o++){r.setEnd(e,o+1),r.setStart(e,o);var i=j_(r,1);if(i.top!=i.bottom&&x_(t,i))return{node:e,offset:o+(t.left>=(i.left+i.right)/2?1:0)}}return{node:e,offset:0}}(n,r):!n||o&&1==n.nodeType?{node:e,offset:i}:b_(n,r)}function x_(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function w_(e,t,n){var r=e.childNodes.length;if(r&&n.top<n.bottom)for(var o=Math.max(0,Math.min(r-1,Math.floor(r*(t.top-n.top)/(n.bottom-n.top))-2)),i=o;;){var a=e.childNodes[i];if(1==a.nodeType)for(var s=a.getClientRects(),l=0;l<s.length;l++){var c=s[l];if(x_(t,c))return w_(a,t,c)}if((i=(i+1)%r)==o)break}return e}function C_(e,t){var n,r,o,i,a=e.dom.ownerDocument;if(a.caretPositionFromPoint)try{var s=a.caretPositionFromPoint(t.left,t.top);s&&(o=(n=s).offsetNode,i=n.offset)}catch(Wt){}if(!o&&a.caretRangeFromPoint){var l=a.caretRangeFromPoint(t.left,t.top);l&&(o=(r=l).startContainer,i=r.startOffset)}var c,u=(e.root.elementFromPoint?e.root:a).elementFromPoint(t.left,t.top+1);if(!u||!e.dom.contains(1!=u.nodeType?u.parentNode:u)){var d=e.dom.getBoundingClientRect();if(!x_(t,d))return null;if(!(u=w_(e.dom,t,d)))return null}if(KN.safari)for(var p=u;o&&p;p=n_(p))p.draggable&&(o=i=null);if(u=function(e,t){var n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}(u,t),o){if(KN.gecko&&1==o.nodeType&&(i=Math.min(i,o.childNodes.length))<o.childNodes.length){var f,h=o.childNodes[i];"IMG"==h.nodeName&&(f=h.getBoundingClientRect()).right<=t.left&&f.bottom>t.top&&i++}o==e.dom&&i==o.childNodes.length-1&&1==o.lastChild.nodeType&&t.top>o.lastChild.getBoundingClientRect().bottom?c=e.state.doc.content.size:0!=i&&1==o.nodeType&&"BR"==o.childNodes[i-1].nodeName||(c=function(e,t,n,r){for(var o=-1,i=t;i!=e.dom;){var a=e.docView.nearestDesc(i,!0);if(!a)return null;if(a.node.isBlock&&a.parent){var s=a.dom.getBoundingClientRect();if(s.left>r.left||s.top>r.top)o=a.posBefore;else{if(!(s.right<r.left||s.bottom<r.top))break;o=a.posAfter}}i=a.dom.parentNode}return o>-1?o:e.docView.posFromDOM(t,n)}(e,o,i,t))}null==c&&(c=function(e,t,n){var r=b_(t,n),o=r.node,i=r.offset,a=-1;if(1==o.nodeType&&!o.firstChild){var s=o.getBoundingClientRect();a=s.left!=s.right&&n.left>(s.left+s.right)/2?1:-1}return e.docView.posFromDOM(o,i,a)}(e,u,t));var m=e.docView.nearestDesc(u,!0);return{pos:c,inside:m?m.posAtStart-m.border:-1}}function j_(e,t){var n=e.getClientRects();return n.length?n[t<0?0:n.length-1]:e.getBoundingClientRect()}var S_=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function k_(e,t,n){var r=e.docView.domFromPos(t,n<0?-1:1),o=r.node,i=r.offset,a=KN.webkit||KN.gecko;if(3==o.nodeType){if(!a||!S_.test(o.nodeValue)&&(n<0?i:i!=o.nodeValue.length)){var s=i,l=i,c=n<0?1:-1;return n<0&&!i?(l++,c=-1):n>=0&&i==o.nodeValue.length?(s--,c=1):n<0?s--:l++,Z_(j_(o_(o,s,l),c),c<0)}var u=j_(o_(o,i,i),n);if(KN.gecko&&i&&/\s/.test(o.nodeValue[i-1])&&i<o.nodeValue.length){var d=j_(o_(o,i-1,i-1),-1);if(d.top==u.top){var p=j_(o_(o,i,i+1),-1);if(p.top!=u.top)return Z_(p,p.left<d.left)}}return u}if(!e.state.doc.resolve(t).parent.inlineContent){if(i&&(n<0||i==l_(o))){var f=o.childNodes[i-1];if(1==f.nodeType)return O_(f.getBoundingClientRect(),!1)}if(i<l_(o)){var h=o.childNodes[i];if(1==h.nodeType)return O_(h.getBoundingClientRect(),!0)}return O_(o.getBoundingClientRect(),n>=0)}if(i&&(n<0||i==l_(o))){var m=o.childNodes[i-1],v=3==m.nodeType?o_(m,l_(m)-(a?0:1)):1!=m.nodeType||"BR"==m.nodeName&&m.nextSibling?null:m;if(v)return Z_(j_(v,1),!1)}if(i<l_(o)){for(var g=o.childNodes[i];g.pmViewDesc&&g.pmViewDesc.ignoreForCoords;)g=g.nextSibling;var y=g?3==g.nodeType?o_(g,0,a?0:1):1==g.nodeType?g:null:null;if(y)return Z_(j_(y,-1),!0)}return Z_(j_(3==o.nodeType?o_(o):o,-n),n>=0)}function Z_(e,t){if(0==e.width)return e;var n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function O_(e,t){if(0==e.height)return e;var n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function E_(e,t,n){var r=e.state,o=e.root.activeElement;r!=t&&e.updateState(t),o!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),o!=e.dom&&o&&o.focus()}}var D_=/[\u0590-\u08ac]/;var P_=null,A_=null,M_=!1;function T_(e,t,n){return P_==t&&A_==n?M_:(P_=t,A_=n,M_="up"==n||"down"==n?function(e,t,n){var r=t.selection,o="up"==n?r.$from:r.$to;return E_(e,t,(function(){for(var t=e.docView.domFromPos(o.pos,"up"==n?-1:1).node;;){var r=e.docView.nearestDesc(t,!0);if(!r)break;if(r.node.isBlock){t=r.dom;break}t=r.dom.parentNode}for(var i=k_(e,o.pos,1),a=t.firstChild;a;a=a.nextSibling){var s=void 0;if(1==a.nodeType)s=a.getClientRects();else{if(3!=a.nodeType)continue;s=o_(a,0,a.nodeValue.length).getClientRects()}for(var l=0;l<s.length;l++){var c=s[l];if(c.bottom>c.top+1&&("up"==n?i.top-c.top>2*(c.bottom-i.top):c.bottom-i.bottom>2*(i.bottom-c.top)))return!1}}return!0}))}(e,t,n):function(e,t,n){var r=t.selection.$head;if(!r.parent.isTextblock)return!1;var o=r.parentOffset,i=!o,a=o==r.parent.content.size,s=e.root.getSelection();return D_.test(r.parent.textContent)&&s.modify?E_(e,t,(function(){var t=s.getRangeAt(0),o=s.focusNode,i=s.focusOffset,a=s.caretBidiLevel;s.modify("move",n,"character");var l=!(r.depth?e.docView.domAfterPos(r.before()):e.dom).contains(1==s.focusNode.nodeType?s.focusNode:s.focusNode.parentNode)||o==s.focusNode&&i==s.focusOffset;return s.removeAllRanges(),s.addRange(t),null!=a&&(s.caretBidiLevel=a),l})):"left"==n||"backward"==n?i:a}(e,t,n))}var I_=function(e,t,n,r){this.parent=e,this.children=t,this.dom=n,n.pmViewDesc=this,this.contentDOM=r,this.dirty=0},R_={size:{configurable:!0},border:{configurable:!0},posBefore:{configurable:!0},posAtStart:{configurable:!0},posAfter:{configurable:!0},posAtEnd:{configurable:!0},contentLost:{configurable:!0},domAtom:{configurable:!0},ignoreForCoords:{configurable:!0}};I_.prototype.matchesWidget=function(){return!1},I_.prototype.matchesMark=function(){return!1},I_.prototype.matchesNode=function(){return!1},I_.prototype.matchesHack=function(e){return!1},I_.prototype.parseRule=function(){return null},I_.prototype.stopEvent=function(){return!1},R_.size.get=function(){for(var e=0,t=0;t<this.children.length;t++)e+=this.children[t].size;return e},R_.border.get=function(){return 0},I_.prototype.destroy=function(){this.parent=null,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=null);for(var e=0;e<this.children.length;e++)this.children[e].destroy()},I_.prototype.posBeforeChild=function(e){for(var t=0,n=this.posAtStart;t<this.children.length;t++){var r=this.children[t];if(r==e)return n;n+=r.size}},R_.posBefore.get=function(){return this.parent.posBeforeChild(this)},R_.posAtStart.get=function(){return this.parent?this.parent.posBeforeChild(this)+this.border:0},R_.posAfter.get=function(){return this.posBefore+this.size},R_.posAtEnd.get=function(){return this.posAtStart+this.size-2*this.border},I_.prototype.localPosFromDOM=function(e,t,n){if(this.contentDOM&&this.contentDOM.contains(1==e.nodeType?e:e.parentNode)){if(n<0){var r,o;if(e==this.contentDOM)r=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;r=e.previousSibling}for(;r&&(!(o=r.pmViewDesc)||o.parent!=this);)r=r.previousSibling;return r?this.posBeforeChild(o)+o.size:this.posAtStart}var i,a;if(e==this.contentDOM)i=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.nextSibling}for(;i&&(!(a=i.pmViewDesc)||a.parent!=this);)i=i.nextSibling;return i?this.posBeforeChild(a):this.posAtEnd}var s;if(e==this.dom&&this.contentDOM)s=t>t_(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))s=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(var l=e;;l=l.parentNode){if(l==this.dom){s=!1;break}if(l.parentNode.firstChild!=l)break}if(null==s&&t==e.childNodes.length)for(var c=e;;c=c.parentNode){if(c==this.dom){s=!0;break}if(c.parentNode.lastChild!=c)break}}return(null==s?n>0:s)?this.posAtEnd:this.posAtStart},I_.prototype.nearestDesc=function(e,t){for(var n=!0,r=e;r;r=r.parentNode){var o=this.getDesc(r);if(o&&(!t||o.node)){if(!n||!o.nodeDOM||(1==o.nodeDOM.nodeType?o.nodeDOM.contains(1==e.nodeType?e:e.parentNode):o.nodeDOM==e))return o;n=!1}}},I_.prototype.getDesc=function(e){for(var t=e.pmViewDesc,n=t;n;n=n.parent)if(n==this)return t},I_.prototype.posFromDOM=function(e,t,n){for(var r=e;r;r=r.parentNode){var o=this.getDesc(r);if(o)return o.localPosFromDOM(e,t,n)}return-1},I_.prototype.descAt=function(e){for(var t=0,n=0;t<this.children.length;t++){var r=this.children[t],o=n+r.size;if(n==e&&o!=n){for(;!r.border&&r.children.length;)r=r.children[0];return r}if(e<o)return r.descAt(e-n-r.border);n=o}},I_.prototype.domFromPos=function(e,t){if(!this.contentDOM)return{node:this.dom,offset:0};for(var n=0,r=0,o=0;n<this.children.length;n++){var i=this.children[n],a=o+i.size;if(a>e||i instanceof W_){r=e-o;break}o=a}if(r)return this.children[n].domFromPos(r-this.children[n].border,t);for(var s=void 0;n&&!(s=this.children[n-1]).size&&s instanceof B_&&s.widget.type.side>=0;n--);if(t<=0){for(var l,c=!0;(l=n?this.children[n-1]:null)&&l.dom.parentNode!=this.contentDOM;n--,c=!1);return l&&t&&c&&!l.border&&!l.domAtom?l.domFromPos(l.size,t):{node:this.contentDOM,offset:l?t_(l.dom)+1:0}}for(var u,d=!0;(u=n<this.children.length?this.children[n]:null)&&u.dom.parentNode!=this.contentDOM;n++,d=!1);return u&&d&&!u.border&&!u.domAtom?u.domFromPos(0,t):{node:this.contentDOM,offset:u?t_(u.dom):this.contentDOM.childNodes.length}},I_.prototype.parseRange=function(e,t,n){if(void 0===n&&(n=0),0==this.children.length)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};for(var r=-1,o=-1,i=n,a=0;;a++){var s=this.children[a],l=i+s.size;if(-1==r&&e<=l){var c=i+s.border;if(e>=c&&t<=l-s.border&&s.node&&s.contentDOM&&this.contentDOM.contains(s.contentDOM))return s.parseRange(e,t,c);e=i;for(var u=a;u>0;u--){var d=this.children[u-1];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(1)){r=t_(d.dom)+1;break}e-=d.size}-1==r&&(r=0)}if(r>-1&&(l>t||a==this.children.length-1)){t=l;for(var p=a+1;p<this.children.length;p++){var f=this.children[p];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(-1)){o=t_(f.dom);break}t+=f.size}-1==o&&(o=this.contentDOM.childNodes.length);break}i=l}return{node:this.contentDOM,from:e,to:t,fromOffset:r,toOffset:o}},I_.prototype.emptyChildAt=function(e){if(this.border||!this.contentDOM||!this.children.length)return!1;var t=this.children[e<0?0:this.children.length-1];return 0==t.size||t.emptyChildAt(e)},I_.prototype.domAfterPos=function(e){var t=this.domFromPos(e,0),n=t.node,r=t.offset;if(1!=n.nodeType||r==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[r]},I_.prototype.setSelection=function(e,t,n,r){for(var o=Math.min(e,t),i=Math.max(e,t),a=0,s=0;a<this.children.length;a++){var l=this.children[a],c=s+l.size;if(o>s&&i<c)return l.setSelection(e-s-l.border,t-s-l.border,n,r);s=c}var u=this.domFromPos(e,e?-1:1),d=t==e?u:this.domFromPos(t,t?-1:1),p=n.getSelection(),f=!1;if((KN.gecko||KN.safari)&&e==t){var h=u.node,m=u.offset;if(3==h.nodeType){if((f=m&&"\n"==h.nodeValue[m-1])&&m==h.nodeValue.length)for(var v=h,g=void 0;v;v=v.parentNode){if(g=v.nextSibling){"BR"==g.nodeName&&(u=d={node:g.parentNode,offset:t_(g)+1});break}var y=v.pmViewDesc;if(y&&y.node&&y.node.isBlock)break}}else{var b=h.childNodes[m-1];f=b&&("BR"==b.nodeName||"false"==b.contentEditable)}}if(KN.gecko&&p.focusNode&&p.focusNode!=d.node&&1==p.focusNode.nodeType){var x=p.focusNode.childNodes[p.focusOffset];x&&"false"==x.contentEditable&&(r=!0)}if(r||f&&KN.safari||!i_(u.node,u.offset,p.anchorNode,p.anchorOffset)||!i_(d.node,d.offset,p.focusNode,p.focusOffset)){var w=!1;if((p.extend||e==t)&&!f){p.collapse(u.node,u.offset);try{e!=t&&p.extend(d.node,d.offset),w=!0}catch(S){if(!(S instanceof DOMException))throw S}}if(!w){if(e>t){var C=u;u=d,d=C}var j=document.createRange();j.setEnd(d.node,d.offset),j.setStart(u.node,u.offset),p.removeAllRanges(),p.addRange(j)}}},I_.prototype.ignoreMutation=function(e){return!this.contentDOM&&"selection"!=e.type},R_.contentLost.get=function(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)},I_.prototype.markDirty=function(e,t){for(var n=0,r=0;r<this.children.length;r++){var o=this.children[r],i=n+o.size;if(n==i?e<=i&&t>=n:e<i&&t>n){var a=n+o.border,s=i-o.border;if(e>=a&&t<=s)return this.dirty=e==n||t==i?2:1,void(e!=a||t!=s||!o.contentLost&&o.dom.parentNode==this.contentDOM?o.markDirty(e-a,t-a):o.dirty=3);o.dirty=o.dom!=o.contentDOM||o.dom.parentNode!=this.contentDOM||o.children.length?3:2}n=i}this.dirty=2},I_.prototype.markParentsDirty=function(){for(var e=1,t=this.parent;t;t=t.parent,e++){var n=1==e?2:1;t.dirty<n&&(t.dirty=n)}},R_.domAtom.get=function(){return!1},R_.ignoreForCoords.get=function(){return!1},Object.defineProperties(I_.prototype,R_);var F_=[],B_=function(e){function t(t,n,r,o){var i,a=n.type.toDOM;if("function"==typeof a&&(a=a(r,(function(){return i?i.parent?i.parent.posBeforeChild(i):void 0:o}))),!n.type.spec.raw){if(1!=a.nodeType){var s=document.createElement("span");s.appendChild(a),a=s}a.contentEditable=!1,a.classList.add("ProseMirror-widget")}e.call(this,t,F_,a,null),this.widget=n,i=this}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={domAtom:{configurable:!0}};return t.prototype.matchesWidget=function(e){return 0==this.dirty&&e.type.eq(this.widget.type)},t.prototype.parseRule=function(){return{ignore:!0}},t.prototype.stopEvent=function(e){var t=this.widget.spec.stopEvent;return!!t&&t(e)},t.prototype.ignoreMutation=function(e){return"selection"!=e.type||this.widget.spec.ignoreSelection},t.prototype.destroy=function(){this.widget.type.destroy(this.dom),e.prototype.destroy.call(this)},n.domAtom.get=function(){return!0},Object.defineProperties(t.prototype,n),t}(I_),L_=function(e){function t(t,n,r,o){e.call(this,t,F_,n,null),this.textDOM=r,this.text=o}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={size:{configurable:!0}};return n.size.get=function(){return this.text.length},t.prototype.localPosFromDOM=function(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t},t.prototype.domFromPos=function(e){return{node:this.textDOM,offset:e}},t.prototype.ignoreMutation=function(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue},Object.defineProperties(t.prototype,n),t}(I_),N_=function(e){function t(t,n,r,o){e.call(this,t,[],r,o),this.mark=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.create=function(e,n,r,o){var i=o.nodeViews[n.type.name],a=i&&i(n,o,r);return a&&a.dom||(a=lL.renderSpec(document,n.type.spec.toDOM(n,r))),new t(e,n,a.dom,a.contentDOM||a.dom)},t.prototype.parseRule=function(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}},t.prototype.matchesMark=function(e){return 3!=this.dirty&&this.mark.eq(e)},t.prototype.markDirty=function(t,n){if(e.prototype.markDirty.call(this,t,n),0!=this.dirty){for(var r=this.parent;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=0}},t.prototype.slice=function(e,n,r){var o=t.create(this.parent,this.mark,!0,r),i=this.children,a=this.size;n<a&&(i=nz(i,n,a,r)),e>0&&(i=nz(i,0,e,r));for(var s=0;s<i.length;s++)i[s].parent=o;return o.children=i,o},t}(I_),__=function(e){function t(t,n,r,o,i,a,s,l,c){e.call(this,t,n.isLeaf?F_:[],i,a),this.nodeDOM=s,this.node=n,this.outerDeco=r,this.innerDeco=o,a&&this.updateChildren(l,c)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={size:{configurable:!0},border:{configurable:!0},domAtom:{configurable:!0}};return t.create=function(e,n,r,o,i,a){var s,l,c=i.nodeViews[n.type.name],u=c&&c(n,i,(function(){return l?l.parent?l.parent.posBeforeChild(l):void 0:a}),r,o),d=u&&u.dom,p=u&&u.contentDOM;if(n.isText)if(d){if(3!=d.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else d=document.createTextNode(n.text);else d||(d=(s=lL.renderSpec(document,n.type.spec.toDOM(n))).dom,p=s.contentDOM);p||n.isText||"BR"==d.nodeName||(d.hasAttribute("contenteditable")||(d.contentEditable=!1),n.type.spec.draggable&&(d.draggable=!0));var f=d;return d=X_(d,r,n),u?l=new V_(e,n,r,o,d,p,f,u,i,a+1):n.isText?new H_(e,n,r,o,d,f,i):new t(e,n,r,o,d,p,f,i,a+1)},t.prototype.parseRule=function(){var e=this;if(this.node.type.spec.reparseInView)return null;var t={node:this.node.type.name,attrs:this.node.attrs};return"pre"==this.node.type.whitespace&&(t.preserveWhitespace="full"),this.contentDOM&&!this.contentLost?t.contentElement=this.contentDOM:t.getContent=function(){return e.contentDOM?QF.empty:e.node.content},t},t.prototype.matchesNode=function(e,t,n){return 0==this.dirty&&e.eq(this.node)&&Q_(t,this.outerDeco)&&n.eq(this.innerDeco)},n.size.get=function(){return this.node.nodeSize},n.border.get=function(){return this.node.isLeaf?0:1},t.prototype.updateChildren=function(e,t){var n=this,r=this.node.inlineContent,o=t,i=e.composing&&this.localCompositionInfo(e,t),a=i&&i.pos>-1?i:null,s=i&&i.pos<0,l=new ez(this,a&&a.node);!function(e,t,n,r){var o=t.locals(e),i=0;if(0==o.length){for(var a=0;a<e.childCount;a++){var s=e.child(a);r(s,o,t.forChild(i,s),a),i+=s.nodeSize}return}for(var l=0,c=[],u=null,d=0;;){if(l<o.length&&o[l].to==i){for(var p=o[l++],f=void 0;l<o.length&&o[l].to==i;)(f||(f=[p])).push(o[l++]);if(f){f.sort(tz);for(var h=0;h<f.length;h++)n(f[h],d,!!u)}else n(p,d,!!u)}var m=void 0,v=void 0;if(u)v=-1,m=u,u=null;else{if(!(d<e.childCount))break;v=d,m=e.child(d++)}for(var g=0;g<c.length;g++)c[g].to<=i&&c.splice(g--,1);for(;l<o.length&&o[l].from<=i&&o[l].to>i;)c.push(o[l++]);var y=i+m.nodeSize;if(m.isText){var b=y;l<o.length&&o[l].from<b&&(b=o[l].from);for(var x=0;x<c.length;x++)c[x].to<b&&(b=c[x].to);b<y&&(u=m.cut(b-i),m=m.cut(0,b-i),y=b,v=-1)}var w=c.length?m.isInline&&!m.isLeaf?c.filter((function(e){return!e.inline})):c.slice():F_;r(m,w,t.forChild(i,m),v),i=y}}(this.node,this.innerDeco,(function(t,i,a){t.spec.marks?l.syncToMarks(t.spec.marks,r,e):t.type.side>=0&&!a&&l.syncToMarks(i==n.node.childCount?rB.none:n.node.child(i).marks,r,e),l.placeWidget(t,e,o)}),(function(t,n,a,c){var u;l.syncToMarks(t.marks,r,e),l.findNodeMatch(t,n,a,c)||s&&e.state.selection.from>o&&e.state.selection.to<o+t.nodeSize&&(u=l.findIndexWithChild(i.node))>-1&&l.updateNodeAt(t,n,a,u,e)||l.updateNextNode(t,n,a,e,c)||l.addNode(t,n,a,e,o),o+=t.nodeSize})),l.syncToMarks(F_,r,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||2==this.dirty)&&(a&&this.protectLocalComposition(e,a),U_(this.contentDOM,this.children,e),KN.ios&&function(e){if("UL"==e.nodeName||"OL"==e.nodeName){var t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}(this.dom))},t.prototype.localCompositionInfo=function(e,t){var n=e.state.selection,r=n.from,o=n.to;if(!(!(e.state.selection instanceof $L)||r<t||o>t+this.node.content.size)){var i=e.root.getSelection(),a=function(e,t){for(;;){if(3==e.nodeType)return e;if(1==e.nodeType&&t>0){if(e.childNodes.length>t&&3==e.childNodes[t].nodeType)return e.childNodes[t];t=l_(e=e.childNodes[t-1])}else{if(!(1==e.nodeType&&t<e.childNodes.length))return null;e=e.childNodes[t],t=0}}}(i.focusNode,i.focusOffset);if(a&&this.dom.contains(a.parentNode)){if(this.node.inlineContent){var s=a.nodeValue,l=function(e,t,n,r){for(var o=0,i=0;o<e.childCount&&i<=r;){var a=e.child(o++),s=i;if(i+=a.nodeSize,a.isText){for(var l=a.text;o<e.childCount;){var c=e.child(o++);if(i+=c.nodeSize,!c.isText)break;l+=c.text}if(i>=n&&s<r){var u=l.lastIndexOf(t,r-s-1);if(u>=0&&u+t.length+s>=n)return s+u}}}return-1}(this.node.content,s,r-t,o-t);return l<0?null:{node:a,pos:l,text:s}}return{node:a,pos:-1}}}},t.prototype.protectLocalComposition=function(e,t){var n=t.node,r=t.pos,o=t.text;if(!this.getDesc(n)){for(var i=n;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=null)}var a=new L_(this,i,n,o);e.compositionNodes.push(a),this.children=nz(this.children,r,r+o.length,e,a)}},t.prototype.update=function(e,t,n,r){return!(3==this.dirty||!e.sameMarkup(this.node))&&(this.updateInner(e,t,n,r),!0)},t.prototype.updateInner=function(e,t,n,r){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=0},t.prototype.updateOuterDeco=function(e){if(!Q_(e,this.outerDeco)){var t=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=K_(this.dom,this.nodeDOM,Y_(this.outerDeco,this.node,t),Y_(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=null,this.dom.pmViewDesc=this),this.outerDeco=e}},t.prototype.selectNode=function(){this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.dom.draggable=!0)},t.prototype.deselectNode=function(){this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.dom.removeAttribute("draggable")},n.domAtom.get=function(){return this.node.isAtom},Object.defineProperties(t.prototype,n),t}(I_);function z_(e,t,n,r,o){return X_(r,t,e),new __(null,e,t,n,r,r,r,o,0)}var H_=function(e){function t(t,n,r,o,i,a,s){e.call(this,t,n,r,o,i,null,a,s)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={domAtom:{configurable:!0}};return t.prototype.parseRule=function(){for(var e=this.nodeDOM.parentNode;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}},t.prototype.update=function(e,t,n,r){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!e.sameMarkup(this.node))&&(this.updateOuterDeco(t),0==this.dirty&&e.text==this.node.text||e.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=0,!0)},t.prototype.inParent=function(){for(var e=this.parent.contentDOM,t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1},t.prototype.domFromPos=function(e){return{node:this.nodeDOM,offset:e}},t.prototype.localPosFromDOM=function(t,n,r){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):e.prototype.localPosFromDOM.call(this,t,n,r)},t.prototype.ignoreMutation=function(e){return"characterData"!=e.type&&"selection"!=e.type},t.prototype.slice=function(e,n,r){var o=this.node.cut(e,n),i=document.createTextNode(o.text);return new t(this.parent,o,this.outerDeco,this.innerDeco,i,i,r)},t.prototype.markDirty=function(t,n){e.prototype.markDirty.call(this,t,n),this.dom==this.nodeDOM||0!=t&&n!=this.nodeDOM.nodeValue.length||(this.dirty=3)},n.domAtom.get=function(){return!1},Object.defineProperties(t.prototype,n),t}(__),W_=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={domAtom:{configurable:!0},ignoreForCoords:{configurable:!0}};return t.prototype.parseRule=function(){return{ignore:!0}},t.prototype.matchesHack=function(e){return 0==this.dirty&&this.dom.nodeName==e},n.domAtom.get=function(){return!0},n.ignoreForCoords.get=function(){return"IMG"==this.dom.nodeName},Object.defineProperties(t.prototype,n),t}(I_),V_=function(e){function t(t,n,r,o,i,a,s,l,c,u){e.call(this,t,n,r,o,i,a,s,c,u),this.spec=l}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.update=function(t,n,r,o){if(3==this.dirty)return!1;if(this.spec.update){var i=this.spec.update(t,n,r);return i&&this.updateInner(t,n,r,o),i}return!(!this.contentDOM&&!t.isLeaf)&&e.prototype.update.call(this,t,n,r,o)},t.prototype.selectNode=function(){this.spec.selectNode?this.spec.selectNode():e.prototype.selectNode.call(this)},t.prototype.deselectNode=function(){this.spec.deselectNode?this.spec.deselectNode():e.prototype.deselectNode.call(this)},t.prototype.setSelection=function(t,n,r,o){this.spec.setSelection?this.spec.setSelection(t,n,r):e.prototype.setSelection.call(this,t,n,r,o)},t.prototype.destroy=function(){this.spec.destroy&&this.spec.destroy(),e.prototype.destroy.call(this)},t.prototype.stopEvent=function(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)},t.prototype.ignoreMutation=function(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):e.prototype.ignoreMutation.call(this,t)},t}(__);function U_(e,t,n){for(var r=e.firstChild,o=!1,i=0;i<t.length;i++){var a=t[i],s=a.dom;if(s.parentNode==e){for(;s!=r;)r=$_(r),o=!0;r=r.nextSibling}else o=!0,e.insertBefore(s,r);if(a instanceof N_){var l=r?r.previousSibling:e.lastChild;U_(a.contentDOM,a.children,n),r=l?l.nextSibling:e.firstChild}}for(;r;)r=$_(r),o=!0;o&&n.trackWrites==e&&(n.trackWrites=null)}function q_(e){e&&(this.nodeName=e)}q_.prototype=Object.create(null);var G_=[new q_];function Y_(e,t,n){if(0==e.length)return G_;for(var r=n?G_[0]:new q_,o=[r],i=0;i<e.length;i++){var a=e[i].type.attrs;if(a)for(var s in a.nodeName&&o.push(r=new q_(a.nodeName)),a){var l=a[s];null!=l&&(n&&1==o.length&&o.push(r=new q_(t.isInline?"span":"div")),"class"==s?r.class=(r.class?r.class+" ":"")+l:"style"==s?r.style=(r.style?r.style+";":"")+l:"nodeName"!=s&&(r[s]=l))}}return o}function K_(e,t,n,r){if(n==G_&&r==G_)return t;for(var o=t,i=0;i<r.length;i++){var a=r[i],s=n[i];if(i){var l=void 0;s&&s.nodeName==a.nodeName&&o!=e&&(l=o.parentNode)&&l.tagName.toLowerCase()==a.nodeName||((l=document.createElement(a.nodeName)).pmIsDeco=!0,l.appendChild(o),s=G_[0]),o=l}J_(o,s||G_[0],a)}return o}function J_(e,t,n){for(var r in t)"class"==r||"style"==r||"nodeName"==r||r in n||e.removeAttribute(r);for(var o in n)"class"!=o&&"style"!=o&&"nodeName"!=o&&n[o]!=t[o]&&e.setAttribute(o,n[o]);if(t.class!=n.class){for(var i=t.class?t.class.split(" ").filter(Boolean):F_,a=n.class?n.class.split(" ").filter(Boolean):F_,s=0;s<i.length;s++)-1==a.indexOf(i[s])&&e.classList.remove(i[s]);for(var l=0;l<a.length;l++)-1==i.indexOf(a[l])&&e.classList.add(a[l]);0==e.classList.length&&e.removeAttribute("class")}if(t.style!=n.style){if(t.style)for(var c,u=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g;c=u.exec(t.style);)e.style.removeProperty(c[1]);n.style&&(e.style.cssText+=n.style)}}function X_(e,t,n){return K_(e,e,G_,Y_(t,n,1!=e.nodeType))}function Q_(e,t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function $_(e){var t=e.nextSibling;return e.parentNode.removeChild(e),t}var ez=function(e,t){this.top=e,this.lock=t,this.index=0,this.stack=[],this.changed=!1,this.preMatch=function(e,t){var n=t,r=n.children.length,o=e.childCount,i=new Map,a=[];e:for(;o>0;){for(var s=void 0;;)if(r){var l=n.children[r-1];if(!(l instanceof N_)){s=l,r--;break}n=l,r=l.children.length}else{if(n==t)break e;r=n.parent.children.indexOf(n),n=n.parent}var c=s.node;if(c){if(c!=e.child(o-1))break;--o,i.set(s,o),a.push(s)}}return{index:o,matched:i,matches:a.reverse()}}(e.node.content,e)};function tz(e,t){return e.type.side-t.type.side}function nz(e,t,n,r,o){for(var i=[],a=0,s=0;a<e.length;a++){var l=e[a],c=s,u=s+=l.size;c>=n||u<=t?i.push(l):(c<t&&i.push(l.slice(0,t-c,r)),o&&(i.push(o),o=null),u>n&&i.push(l.slice(n-c,l.size,r)))}return i}function rz(e,t){var n=e.root.getSelection(),r=e.state.doc;if(!n.focusNode)return null;var o=e.docView.nearestDesc(n.focusNode),i=o&&0==o.size,a=e.docView.posFromDOM(n.focusNode,n.focusOffset);if(a<0)return null;var s,l,c=r.resolve(a);if(u_(n)){for(s=c;o&&!o.node;)o=o.parent;if(o&&o.node.isAtom&&tN.isSelectable(o.node)&&o.parent&&(!o.node.isInline||!function(e,t,n){for(var r=0==t,o=t==l_(e);r||o;){if(e==n)return!0;var i=t_(e);if(!(e=e.parentNode))return!1;r=r&&0==i,o=o&&i==l_(e)}}(n.focusNode,n.focusOffset,o.dom))){var u=o.posBefore;l=new tN(a==u?c:r.resolve(u))}}else{var d=e.docView.posFromDOM(n.anchorNode,n.anchorOffset);if(d<0)return null;s=r.resolve(d)}l||(l=pz(e,s,c,"pointer"==t||e.state.selection.head<c.pos&&!i?1:-1));return l}function oz(e){return e.editable?e.hasFocus():fz(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function iz(e,t){var n=e.state.selection;if(uz(e,n),oz(e)){if(!t&&e.mouseDown&&e.mouseDown.allowDefault&&KN.chrome){var r=e.root.getSelection(),o=e.domObserver.currentSelection;if(r.anchorNode&&i_(r.anchorNode,r.anchorOffset,o.anchorNode,o.anchorOffset))return e.mouseDown.delayedSelectionSync=!0,void e.domObserver.setCurSelection()}if(e.domObserver.disconnectSelection(),e.cursorWrapper)!function(e){var t=e.root.getSelection(),n=document.createRange(),r=e.cursorWrapper.dom,o="IMG"==r.nodeName;o?n.setEnd(r.parentNode,t_(r)+1):n.setEnd(r,0);n.collapse(!1),t.removeAllRanges(),t.addRange(n),!o&&!e.state.selection.visible&&KN.ie&&KN.ie_version<=11&&(r.disabled=!0,r.disabled=!1)}(e);else{var i,a,s=n.anchor,l=n.head;!az||n instanceof $L||(n.$from.parent.inlineContent||(i=sz(e,n.from)),n.empty||n.$from.parent.inlineContent||(a=sz(e,n.to))),e.docView.setSelection(s,l,e.root,t),az&&(i&&cz(i),a&&cz(a)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&function(e){var t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.hideSelectionGuard);var n=e.root.getSelection(),r=n.anchorNode,o=n.anchorOffset;t.addEventListener("selectionchange",e.hideSelectionGuard=function(){n.anchorNode==r&&n.anchorOffset==o||(t.removeEventListener("selectionchange",e.hideSelectionGuard),setTimeout((function(){oz(e)&&!e.state.selection.visible||e.dom.classList.remove("ProseMirror-hideselection")}),20))})}(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}ez.prototype.destroyBetween=function(e,t){if(e!=t){for(var n=e;n<t;n++)this.top.children[n].destroy();this.top.children.splice(e,t-e),this.changed=!0}},ez.prototype.destroyRest=function(){this.destroyBetween(this.index,this.top.children.length)},ez.prototype.syncToMarks=function(e,t,n){for(var r=0,o=this.stack.length>>1,i=Math.min(o,e.length);r<i&&(r==o-1?this.top:this.stack[r+1<<1]).matchesMark(e[r])&&!1!==e[r].type.spec.spanning;)r++;for(;r<o;)this.destroyRest(),this.top.dirty=0,this.index=this.stack.pop(),this.top=this.stack.pop(),o--;for(;o<e.length;){this.stack.push(this.top,this.index+1);for(var a=-1,s=this.index;s<Math.min(this.index+3,this.top.children.length);s++)if(this.top.children[s].matchesMark(e[o])){a=s;break}if(a>-1)a>this.index&&(this.changed=!0,this.destroyBetween(this.index,a)),this.top=this.top.children[this.index];else{var l=N_.create(this.top,e[o],t,n);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,o++}},ez.prototype.findNodeMatch=function(e,t,n,r){var o,i=-1;if(r>=this.preMatch.index&&(o=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&o.matchesNode(e,t,n))i=this.top.children.indexOf(o,this.index);else for(var a=this.index,s=Math.min(this.top.children.length,a+5);a<s;a++){var l=this.top.children[a];if(l.matchesNode(e,t,n)&&!this.preMatch.matched.has(l)){i=a;break}}return!(i<0)&&(this.destroyBetween(this.index,i),this.index++,!0)},ez.prototype.updateNodeAt=function(e,t,n,r,o){return!!this.top.children[r].update(e,t,n,o)&&(this.destroyBetween(this.index,r),this.index=r+1,!0)},ez.prototype.findIndexWithChild=function(e){for(;;){var t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){var n=e.pmViewDesc;if(n)for(var r=this.index;r<this.top.children.length;r++)if(this.top.children[r]==n)return r;return-1}e=t}},ez.prototype.updateNextNode=function(e,t,n,r,o){for(var i=this.index;i<this.top.children.length;i++){var a=this.top.children[i];if(a instanceof __){var s=this.preMatch.matched.get(a);if(null!=s&&s!=o)return!1;var l=a.dom;if(!(this.lock&&(l==this.lock||1==l.nodeType&&l.contains(this.lock.parentNode))&&!(e.isText&&a.node&&a.node.isText&&a.nodeDOM.nodeValue==e.text&&3!=a.dirty&&Q_(t,a.outerDeco)))&&a.update(e,t,n,r))return this.destroyBetween(this.index,i),a.dom!=l&&(this.changed=!0),this.index++,!0;break}}return!1},ez.prototype.addNode=function(e,t,n,r,o){this.top.children.splice(this.index++,0,__.create(this.top,e,t,n,r,o)),this.changed=!0},ez.prototype.placeWidget=function(e,t,n){var r=this.index<this.top.children.length?this.top.children[this.index]:null;if(!r||!r.matchesWidget(e)||e!=r.widget&&r.widget.type.toDOM.parentNode){var o=new B_(this.top,e,t,n);this.top.children.splice(this.index++,0,o),this.changed=!0}else this.index++},ez.prototype.addTextblockHacks=function(){for(var e=this.top.children[this.index-1];e instanceof N_;)e=e.children[e.children.length-1];e&&e instanceof H_&&!/\n$/.test(e.node.text)||((KN.safari||KN.chrome)&&e&&"false"==e.dom.contentEditable&&this.addHackNode("IMG"),this.addHackNode("BR"))},ez.prototype.addHackNode=function(e){if(this.index<this.top.children.length&&this.top.children[this.index].matchesHack(e))this.index++;else{var t=document.createElement(e);"IMG"==e&&(t.className="ProseMirror-separator"),"BR"==e&&(t.className="ProseMirror-trailingBreak"),this.top.children.splice(this.index++,0,new W_(this.top,F_,t,null)),this.changed=!0}};var az=KN.safari||KN.chrome&&KN.chrome_version<63;function sz(e,t){var n=e.docView.domFromPos(t,0),r=n.node,o=n.offset,i=o<r.childNodes.length?r.childNodes[o]:null,a=o?r.childNodes[o-1]:null;if(KN.safari&&i&&"false"==i.contentEditable)return lz(i);if((!i||"false"==i.contentEditable)&&(!a||"false"==a.contentEditable)){if(i)return lz(i);if(a)return lz(a)}}function lz(e){return e.contentEditable="true",KN.safari&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function cz(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function uz(e,t){if(t instanceof tN){var n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(dz(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else dz(e)}function dz(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=null)}function pz(e,t,n,r){return e.someProp("createSelectionBetween",(function(r){return r(e,t,n)}))||$L.between(t,n,r)}function fz(e){var t=e.root.getSelection();if(!t.anchorNode)return!1;try{return e.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch(Wt){return!1}}function hz(e,t){var n=e.selection,r=n.$anchor,o=n.$head,i=t>0?r.max(o):r.min(o),a=i.parent.inlineContent?i.depth?e.doc.resolve(t>0?i.after():i.before()):null:i;return a&&JL.findFrom(a,t)}function mz(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function vz(e,t,n){var r=e.state.selection;if(!(r instanceof $L)){if(r instanceof tN&&r.node.isInline)return mz(e,new $L(t>0?r.$to:r.$from));var o=hz(e.state,t);return!!o&&mz(e,o)}if(!r.empty||n.indexOf("s")>-1)return!1;if(e.endOfTextblock(t>0?"right":"left")){var i=hz(e.state,t);return!!(i&&i instanceof tN)&&mz(e,i)}if(!(KN.mac&&n.indexOf("m")>-1)){var a,s=r.$head,l=s.textOffset?null:t<0?s.nodeBefore:s.nodeAfter;if(!l||l.isText)return!1;var c=t<0?s.pos-l.nodeSize:s.pos;return!!(l.isAtom||(a=e.docView.descAt(c))&&!a.contentDOM)&&(tN.isSelectable(l)?mz(e,new tN(t<0?e.state.doc.resolve(s.pos-l.nodeSize):s)):!!KN.webkit&&mz(e,new $L(e.state.doc.resolve(t<0?c:c+l.nodeSize))))}}function gz(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function yz(e){var t=e.pmViewDesc;return t&&0==t.size&&(e.nextSibling||"BR"!=e.nodeName)}function bz(e){var t=e.root.getSelection(),n=t.focusNode,r=t.focusOffset;if(n){var o,i,a=!1;for(KN.gecko&&1==n.nodeType&&r<gz(n)&&yz(n.childNodes[r])&&(a=!0);;)if(r>0){if(1!=n.nodeType)break;var s=n.childNodes[r-1];if(yz(s))o=n,i=--r;else{if(3!=s.nodeType)break;r=(n=s).nodeValue.length}}else{if(wz(n))break;for(var l=n.previousSibling;l&&yz(l);)o=n.parentNode,i=t_(l),l=l.previousSibling;if(l)r=gz(n=l);else{if((n=n.parentNode)==e.dom)break;r=0}}a?Cz(e,t,n,r):o&&Cz(e,t,o,i)}}function xz(e){var t=e.root.getSelection(),n=t.focusNode,r=t.focusOffset;if(n){for(var o,i,a=gz(n);;)if(r<a){if(1!=n.nodeType)break;if(!yz(n.childNodes[r]))break;o=n,i=++r}else{if(wz(n))break;for(var s=n.nextSibling;s&&yz(s);)o=s.parentNode,i=t_(s)+1,s=s.nextSibling;if(s)r=0,a=gz(n=s);else{if((n=n.parentNode)==e.dom)break;r=a=0}}o&&Cz(e,t,o,i)}}function wz(e){var t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function Cz(e,t,n,r){if(u_(t)){var o=document.createRange();o.setEnd(n,r),o.setStart(n,r),t.removeAllRanges(),t.addRange(o)}else t.extend&&t.extend(n,r);e.domObserver.setCurSelection();var i=e.state;setTimeout((function(){e.state==i&&iz(e)}),50)}function jz(e,t,n){var r=e.state.selection;if(r instanceof $L&&!r.empty||n.indexOf("s")>-1)return!1;if(KN.mac&&n.indexOf("m")>-1)return!1;var o=r.$from,i=r.$to;if(!o.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){var a=hz(e.state,t);if(a&&a instanceof tN)return mz(e,a)}if(!o.parent.inlineContent){var s=t<0?o:i,l=r instanceof rN?JL.near(s,t):JL.findFrom(s,t);return!!l&&mz(e,l)}return!1}function Sz(e,t){if(!(e.state.selection instanceof $L))return!0;var n=e.state.selection,r=n.$head,o=n.$anchor,i=n.empty;if(!r.sameParent(o))return!0;if(!i)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;var a=!r.textOffset&&(t<0?r.nodeBefore:r.nodeAfter);if(a&&!a.isText){var s=e.state.tr;return t<0?s.delete(r.pos-a.nodeSize,r.pos):s.delete(r.pos,r.pos+a.nodeSize),e.dispatch(s),!0}return!1}function kz(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function Zz(e,t){var n=t.keyCode,r=function(e){var t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}(t);return 8==n||KN.mac&&72==n&&"c"==r?Sz(e,-1)||bz(e):46==n||KN.mac&&68==n&&"c"==r?Sz(e,1)||xz(e):13==n||27==n||(37==n?vz(e,-1,r)||bz(e):39==n?vz(e,1,r)||xz(e):38==n?jz(e,-1,r)||bz(e):40==n?function(e){if(KN.safari&&!(e.state.selection.$head.parentOffset>0)){var t=e.root.getSelection(),n=t.focusNode,r=t.focusOffset;if(n&&1==n.nodeType&&0==r&&n.firstChild&&"false"==n.firstChild.contentEditable){var o=n.firstChild;kz(e,o,!0),setTimeout((function(){return kz(e,o,!1)}),20)}}}(e)||jz(e,1,r)||xz(e):r==(KN.mac?"m":"c")&&(66==n||73==n||89==n||90==n))}function Oz(e){var t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if(KN.safari&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){var n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}if(e.parentNode.lastChild==e||KN.safari&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0}}function Ez(e,t,n,r,o){if(t<0){var i=e.lastSelectionTime>Date.now()-50?e.lastSelectionOrigin:null,a=rz(e,i);if(a&&!e.state.selection.eq(a)){var s=e.state.tr.setSelection(a);"pointer"==i?s.setMeta("pointer",!0):"key"==i&&s.scrollIntoView(),e.dispatch(s)}}else{var l=e.state.doc.resolve(t),c=l.sharedDepth(n);t=l.before(c+1),n=e.state.doc.resolve(n).after(c+1);var u=e.state.selection,d=function(e,t,n){var r=e.docView.parseRange(t,n),o=r.node,i=r.fromOffset,a=r.toOffset,s=r.from,l=r.to,c=e.root.getSelection(),u=null,d=c.anchorNode;if(d&&e.dom.contains(1==d.nodeType?d:d.parentNode)&&(u=[{node:d,offset:c.anchorOffset}],u_(c)||u.push({node:c.focusNode,offset:c.focusOffset})),KN.chrome&&8===e.lastKeyCode)for(var p=a;p>i;p--){var f=o.childNodes[p-1],h=f.pmViewDesc;if("BR"==f.nodeName&&!h){a=p;break}if(!h||h.size)break}var m=e.state.doc,v=e.someProp("domParser")||XB.fromSchema(e.state.schema),g=m.resolve(s),y=null,b=v.parse(o,{topNode:g.parent,topMatch:g.parent.contentMatchAt(g.index()),topOpen:!0,from:i,to:a,preserveWhitespace:"pre"!=g.parent.type.whitespace||"full",editableContent:!0,findPositions:u,ruleFromNode:Oz,context:g});if(u&&null!=u[0].pos){var x=u[0].pos,w=u[1]&&u[1].pos;null==w&&(w=x),y={anchor:x+s,head:w+s}}return{doc:b,sel:y,from:s,to:l}}(e,t,n);if(KN.chrome&&e.cursorWrapper&&d.sel&&d.sel.anchor==e.cursorWrapper.deco.from){var p=e.cursorWrapper.deco.type.toDOM.nextSibling,f=p&&p.nodeValue?p.nodeValue.length:1;d.sel={anchor:d.sel.anchor+f,head:d.sel.anchor+f}}var h,m,v=e.state.doc,g=v.slice(d.from,d.to);8===e.lastKeyCode&&Date.now()-100<e.lastKeyCodeTime?(h=e.state.selection.to,m="end"):(h=e.state.selection.from,m="start"),e.lastKeyCode=null;var y=function(e,t,n,r,o){var i=e.findDiffStart(t,n);if(null==i)return null;var a=e.findDiffEnd(t,n+e.size,n+t.size),s=a.a,l=a.b;if("end"==o){r-=s+Math.max(0,i-Math.min(s,l))-i}if(s<i&&e.size<t.size){l=(i-=r<=i&&r>=s?i-r:0)+(l-s),s=i}else if(l<i){s=(i-=r<=i&&r>=l?i-r:0)+(s-l),l=i}return{start:i,endA:s,endB:l}}(g.content,d.doc.content,d.from,h,m);if(!y){if(!(r&&u instanceof $L&&!u.empty&&u.$head.sameParent(u.$anchor))||e.composing||d.sel&&d.sel.anchor!=d.sel.head){if((KN.ios&&e.lastIOSEnter>Date.now()-225||KN.android)&&o.some((function(e){return"DIV"==e.nodeName||"P"==e.nodeName}))&&e.someProp("handleKeyDown",(function(t){return t(e,d_(13,"Enter"))})))return void(e.lastIOSEnter=0);if(d.sel){var b=Dz(e,e.state.doc,d.sel);b&&!b.eq(e.state.selection)&&e.dispatch(e.state.tr.setSelection(b))}return}y={start:u.from,endA:u.to,endB:u.to}}e.domChangeCount++,e.state.selection.from<e.state.selection.to&&y.start==y.endB&&e.state.selection instanceof $L&&(y.start>e.state.selection.from&&y.start<=e.state.selection.from+2?y.start=e.state.selection.from:y.endA<e.state.selection.to&&y.endA>=e.state.selection.to-2&&(y.endB+=e.state.selection.to-y.endA,y.endA=e.state.selection.to)),KN.ie&&KN.ie_version<=11&&y.endB==y.start+1&&y.endA==y.start&&y.start>d.from&&" \xa0"==d.doc.textBetween(y.start-d.from-1,y.start-d.from+1)&&(y.start--,y.endA--,y.endB--);var x,w=d.doc.resolveNoCache(y.start-d.from),C=d.doc.resolveNoCache(y.endB-d.from),j=w.sameParent(C)&&w.parent.inlineContent;if((KN.ios&&e.lastIOSEnter>Date.now()-225&&(!j||o.some((function(e){return"DIV"==e.nodeName||"P"==e.nodeName})))||!j&&w.pos<d.doc.content.size&&(x=JL.findFrom(d.doc.resolve(w.pos+1),1,!0))&&x.head==C.pos)&&e.someProp("handleKeyDown",(function(t){return t(e,d_(13,"Enter"))})))e.lastIOSEnter=0;else if(e.state.selection.anchor>y.start&&function(e,t,n,r,o){if(!r.parent.isTextblock||n-t<=o.pos-r.pos||Pz(r,!0,!1)<o.pos)return!1;var i=e.resolve(t);if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;var a=e.resolve(Pz(i,!0,!0));if(!a.parent.isTextblock||a.pos>n||Pz(a,!0,!1)<n)return!1;return r.parent.content.cut(r.parentOffset).eq(a.parent.content)}(v,y.start,y.endA,w,C)&&e.someProp("handleKeyDown",(function(t){return t(e,d_(8,"Backspace"))})))KN.android&&KN.chrome&&e.domObserver.suppressSelectionUpdates();else{KN.chrome&&KN.android&&y.toB==y.from&&(e.lastAndroidDelete=Date.now()),KN.android&&!j&&w.start()!=C.start()&&0==C.parentOffset&&w.depth==C.depth&&d.sel&&d.sel.anchor==d.sel.head&&d.sel.head==y.endA&&(y.endB-=2,C=d.doc.resolveNoCache(y.endB-d.from),setTimeout((function(){e.someProp("handleKeyDown",(function(t){return t(e,d_(13,"Enter"))}))}),20));var S,k,Z,O,E=y.start,D=y.endA;if(j)if(w.pos==C.pos)KN.ie&&KN.ie_version<=11&&0==w.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout((function(){return iz(e)}),20)),S=e.state.tr.delete(E,D),k=v.resolve(y.start).marksAcross(v.resolve(y.endA));else if(y.endA==y.endB&&(O=v.resolve(y.start))&&(Z=function(e,t){for(var n,r,o,i=e.firstChild.marks,a=t.firstChild.marks,s=i,l=a,c=0;c<a.length;c++)s=a[c].removeFromSet(s);for(var u=0;u<i.length;u++)l=i[u].removeFromSet(l);if(1==s.length&&0==l.length)r=s[0],n="add",o=function(e){return e.mark(r.addToSet(e.marks))};else{if(0!=s.length||1!=l.length)return null;r=l[0],n="remove",o=function(e){return e.mark(r.removeFromSet(e.marks))}}for(var d=[],p=0;p<t.childCount;p++)d.push(o(t.child(p)));if(QF.from(d).eq(e))return{mark:r,type:n}}(w.parent.content.cut(w.parentOffset,C.parentOffset),O.parent.content.cut(O.parentOffset,y.endA-O.start()))))S=e.state.tr,"add"==Z.type?S.addMark(E,D,Z.mark):S.removeMark(E,D,Z.mark);else if(w.parent.child(w.index()).isText&&w.index()==C.index()-(C.textOffset?0:1)){var P=w.parent.textBetween(w.parentOffset,C.parentOffset);if(e.someProp("handleTextInput",(function(t){return t(e,E,D,P)})))return;S=e.state.tr.insertText(P,E,D)}if(S||(S=e.state.tr.replace(E,D,d.doc.slice(y.start-d.from,y.endB-d.from))),d.sel){var A=Dz(e,S.doc,d.sel);A&&!(KN.chrome&&KN.android&&e.composing&&A.empty&&(y.start!=y.endB||e.lastAndroidDelete<Date.now()-100)&&(A.head==E||A.head==S.mapping.map(D)-1)||KN.ie&&A.empty&&A.head==E)&&S.setSelection(A)}k&&S.ensureMarks(k),e.dispatch(S.scrollIntoView())}}}function Dz(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:pz(e,t.resolve(n.anchor),t.resolve(n.head))}function Pz(e,t,n){for(var r=e.depth,o=t?e.end():e.pos;r>0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,o++,t=!1;if(n)for(var i=e.node(r).maybeChild(e.indexAfter(r));i&&!i.isLeaf;)i=i.firstChild,o++;return o}function Az(e,t){for(var n=[],r=t.content,o=t.openStart,i=t.openEnd;o>1&&i>1&&1==r.childCount&&1==r.firstChild.childCount;){o--,i--;var a=r.firstChild;n.push(a.type.name,a.attrs!=a.type.defaultAttrs?a.attrs:null),r=a.content}var s=e.someProp("clipboardSerializer")||lL.fromSchema(e.state.schema),l=zz(),c=l.createElement("div");c.appendChild(s.serializeFragment(r,{document:l}));for(var u,d=c.firstChild;d&&1==d.nodeType&&(u=Nz[d.nodeName.toLowerCase()]);){for(var p=u.length-1;p>=0;p--){for(var f=l.createElement(u[p]);c.firstChild;)f.appendChild(c.firstChild);c.appendChild(f),"tbody"!=u[p]&&(o++,i++)}d=c.firstChild}d&&1==d.nodeType&&d.setAttribute("data-pm-slice",o+" "+i+" "+JSON.stringify(n));var h=e.someProp("clipboardTextSerializer",(function(e){return e(t)}))||t.content.textBetween(0,t.content.size,"\n\n");return{dom:c,text:h}}function Mz(e,t,n,r,o){var i,a,s=o.parent.type.spec.code;if(!n&&!t)return null;var l=t&&(r||s||!n);if(l){if(e.someProp("transformPastedText",(function(e){t=e(t,s||r)})),s)return t?new iB(QF.from(e.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0):iB.empty;var c=e.someProp("clipboardTextParser",(function(e){return e(t,o,r)}));if(c)a=c;else{var u=o.marks(),d=e.state.schema,p=lL.fromSchema(d);i=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach((function(e){var t=i.appendChild(document.createElement("p"));e&&t.appendChild(p.serializeNode(d.text(e,u)))}))}}else e.someProp("transformPastedHTML",(function(e){n=e(n)})),i=function(e){var t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));var n,r=zz().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(e);(n=o&&Nz[o[1].toLowerCase()])&&(e=n.map((function(e){return"<"+e+">"})).join("")+e+n.map((function(e){return"</"+e+">"})).reverse().join(""));if(r.innerHTML=e,n)for(var i=0;i<n.length;i++)r=r.querySelector(n[i])||r;return r}(n),KN.webkit&&function(e){for(var t=e.querySelectorAll(KN.chrome?"span:not([class]):not([style])":"span.Apple-converted-space"),n=0;n<t.length;n++){var r=t[n];1==r.childNodes.length&&"\xa0"==r.textContent&&r.parentNode&&r.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),r)}}(i);var f=i&&i.querySelector("[data-pm-slice]"),h=f&&/^(\d+) (\d+) (.*)/.exec(f.getAttribute("data-pm-slice"));if(!a){var m=e.someProp("clipboardParser")||e.someProp("domParser")||XB.fromSchema(e.state.schema);a=m.parseSlice(i,{preserveWhitespace:!(!l&&!h),context:o,ruleFromNode:function(e){if("BR"==e.nodeName&&!e.nextSibling&&e.parentNode&&!Tz.test(e.parentNode.nodeName))return{ignore:!0}}})}if(h)a=function(e,t){if(!e.size)return e;var n,r=e.content.firstChild.type.schema;try{n=JSON.parse(t)}catch(c){return e}for(var o=e.content,i=e.openStart,a=e.openEnd,s=n.length-2;s>=0;s-=2){var l=r.nodes[n[s]];if(!l||l.hasRequiredAttrs())break;o=QF.from(l.create(n[s+1],o)),i++,a++}return new iB(o,i,a)}(Lz(a,+h[1],+h[2]),h[3]);else if(a=iB.maxOpen(function(e,t){if(e.childCount<2)return e;for(var n=function(n){var r=t.node(n).contentMatchAt(t.index(n)),o=void 0,i=[];if(e.forEach((function(e){if(i){var t,n=r.findWrapping(e.type);if(!n)return i=null;if(t=i.length&&o.length&&Rz(n,o,e,i[i.length-1],0))i[i.length-1]=t;else{i.length&&(i[i.length-1]=Fz(i[i.length-1],o.length));var a=Iz(e,n);i.push(a),r=r.matchType(a.type,a.attrs),o=n}}})),i)return{v:QF.from(i)}},r=t.depth;r>=0;r--){var o=n(r);if(o)return o.v}return e}(a.content,o),!0),a.openStart||a.openEnd){for(var v=0,g=0,y=a.content.firstChild;v<a.openStart&&!y.type.spec.isolating;v++,y=y.firstChild);for(var b=a.content.lastChild;g<a.openEnd&&!b.type.spec.isolating;g++,b=b.lastChild);a=Lz(a,v,g)}return e.someProp("transformPasted",(function(e){a=e(a)})),a}var Tz=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function Iz(e,t,n){void 0===n&&(n=0);for(var r=t.length-1;r>=n;r--)e=t[r].create(null,QF.from(e));return e}function Rz(e,t,n,r,o){if(o<e.length&&o<t.length&&e[o]==t[o]){var i=Rz(e,t,n,r.lastChild,o+1);if(i)return r.copy(r.content.replaceChild(r.childCount-1,i));if(r.contentMatchAt(r.childCount).matchType(o==e.length-1?n.type:e[o+1]))return r.copy(r.content.append(QF.from(Iz(n,e,o+1))))}}function Fz(e,t){if(0==t)return e;var n=e.content.replaceChild(e.childCount-1,Fz(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(QF.empty,!0);return e.copy(n.append(r))}function Bz(e,t,n,r,o,i){var a=t<0?e.firstChild:e.lastChild,s=a.content;return o<r-1&&(s=Bz(s,t,n,r,o+1,i)),o>=n&&(s=t<0?a.contentMatchAt(0).fillBefore(s,e.childCount>1||i<=o).append(s):s.append(a.contentMatchAt(a.childCount).fillBefore(QF.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(s))}function Lz(e,t,n){return t<e.openStart&&(e=new iB(Bz(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new iB(Bz(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}var Nz={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]},_z=null;function zz(){return _z||(_z=document.implementation.createHTMLDocument("title"))}var Hz={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},Wz=KN.ie&&KN.ie_version<=11,Vz=function(){this.anchorNode=this.anchorOffset=this.focusNode=this.focusOffset=null};Vz.prototype.set=function(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset},Vz.prototype.eq=function(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset};var Uz=function(e,t){var n=this;this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=window.MutationObserver&&new window.MutationObserver((function(e){for(var t=0;t<e.length;t++)n.queue.push(e[t]);KN.ie&&KN.ie_version<=11&&e.some((function(e){return"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length}))?n.flushSoon():n.flush()})),this.currentSelection=new Vz,Wz&&(this.onCharData=function(e){n.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),n.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.suppressingSelectionUpdates=!1};Uz.prototype.flushSoon=function(){var e=this;this.flushingSoon<0&&(this.flushingSoon=window.setTimeout((function(){e.flushingSoon=-1,e.flush()}),20))},Uz.prototype.forceFlush=function(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())},Uz.prototype.start=function(){this.observer&&this.observer.observe(this.view.dom,Hz),Wz&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()},Uz.prototype.stop=function(){var e=this;if(this.observer){var t=this.observer.takeRecords();if(t.length){for(var n=0;n<t.length;n++)this.queue.push(t[n]);window.setTimeout((function(){return e.flush()}),20)}this.observer.disconnect()}Wz&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()},Uz.prototype.connectSelection=function(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)},Uz.prototype.disconnectSelection=function(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)},Uz.prototype.suppressSelectionUpdates=function(){var e=this;this.suppressingSelectionUpdates=!0,setTimeout((function(){return e.suppressingSelectionUpdates=!1}),50)},Uz.prototype.onSelectionChange=function(){if((!(e=this.view).editable||e.root.activeElement==e.dom)&&fz(e)){var e;if(this.suppressingSelectionUpdates)return iz(this.view);if(KN.ie&&KN.ie_version<=11&&!this.view.state.selection.empty){var t=this.view.root.getSelection();if(t.focusNode&&i_(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}},Uz.prototype.setCurSelection=function(){this.currentSelection.set(this.view.root.getSelection())},Uz.prototype.ignoreSelectionChange=function(e){if(0==e.rangeCount)return!0;var t=e.getRangeAt(0).commonAncestorContainer,n=this.view.docView.nearestDesc(t);return n&&n.ignoreMutation({type:"selection",target:3==t.nodeType?t.parentNode:t})?(this.setCurSelection(),!0):void 0},Uz.prototype.flush=function(){if(this.view.docView&&!(this.flushingSoon>-1)){var e=this.observer?this.observer.takeRecords():[];this.queue.length&&(e=this.queue.concat(e),this.queue.length=0);var t=this.view.root.getSelection(),n=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(t)&&fz(this.view)&&!this.ignoreSelectionChange(t),r=-1,o=-1,i=!1,a=[];if(this.view.editable)for(var s=0;s<e.length;s++){var l=this.registerMutation(e[s],a);l&&(r=r<0?l.from:Math.min(l.from,r),o=o<0?l.to:Math.max(l.to,o),l.typeOver&&(i=!0))}if(KN.gecko&&a.length>1){var c=a.filter((function(e){return"BR"==e.nodeName}));if(2==c.length){var u=c[0],d=c[1];u.parentNode&&u.parentNode.parentNode==d.parentNode?d.remove():u.remove()}}(r>-1||n)&&(r>-1&&(this.view.docView.markDirty(r,o),function(e){if(qz)return;qz=!0,"normal"==getComputedStyle(e.dom).whiteSpace&&console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package.")}(this.view)),this.handleDOMChange(r,o,i,a),this.view.docView.dirty?this.view.updateState(this.view.state):this.currentSelection.eq(t)||iz(this.view),this.currentSelection.set(t))}},Uz.prototype.registerMutation=function(e,t){if(t.indexOf(e.target)>-1)return null;var n=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(n==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style")))return null;if(!n||n.ignoreMutation(e))return null;if("childList"==e.type){for(var r=0;r<e.addedNodes.length;r++)t.push(e.addedNodes[r]);if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};var o=e.previousSibling,i=e.nextSibling;if(KN.ie&&KN.ie_version<=11&&e.addedNodes.length)for(var a=0;a<e.addedNodes.length;a++){var s=e.addedNodes[a],l=s.previousSibling,c=s.nextSibling;(!l||Array.prototype.indexOf.call(e.addedNodes,l)<0)&&(o=l),(!c||Array.prototype.indexOf.call(e.addedNodes,c)<0)&&(i=c)}var u=o&&o.parentNode==e.target?t_(o)+1:0,d=n.localPosFromDOM(e.target,u,-1),p=i&&i.parentNode==e.target?t_(i):e.target.childNodes.length;return{from:d,to:n.localPosFromDOM(e.target,p,1)}}return"attributes"==e.type?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}};var qz=!1;var Gz={},Yz={};function Kz(e,t){e.lastSelectionOrigin=t,e.lastSelectionTime=Date.now()}function Jz(e){e.someProp("handleDOMEvents",(function(t){for(var n in t)e.eventHandlers[n]||e.dom.addEventListener(n,e.eventHandlers[n]=function(t){return Xz(e,t)})}))}function Xz(e,t){return e.someProp("handleDOMEvents",(function(n){var r=n[t.type];return!!r&&(r(e,t)||t.defaultPrevented)}))}function Qz(e){return{left:e.clientX,top:e.clientY}}function $z(e,t,n,r,o){if(-1==r)return!1;for(var i=e.state.doc.resolve(r),a=function(r){if(e.someProp(t,(function(t){return r>i.depth?t(e,n,i.nodeAfter,i.before(r),o,!0):t(e,n,i.node(r),i.before(r),o,!1)})))return{v:!0}},s=i.depth+1;s>0;s--){var l=a(s);if(l)return l.v}return!1}function eH(e,t,n){e.focused||e.focus();var r=e.state.tr.setSelection(t);"pointer"==n&&r.setMeta("pointer",!0),e.dispatch(r)}function tH(e,t,n,r,o){return $z(e,"handleClickOn",t,n,r)||e.someProp("handleClick",(function(n){return n(e,t,r)}))||(o?function(e,t){if(-1==t)return!1;var n,r,o=e.state.selection;o instanceof tN&&(n=o.node);for(var i=e.state.doc.resolve(t),a=i.depth+1;a>0;a--){var s=a>i.depth?i.nodeAfter:i.node(a);if(tN.isSelectable(s)){r=n&&o.$from.depth>0&&a>=o.$from.depth&&i.before(o.$from.depth+1)==o.$from.pos?i.before(o.$from.depth):i.before(a);break}}return null!=r&&(eH(e,tN.create(e.state.doc,r),"pointer"),!0)}(e,n):function(e,t){if(-1==t)return!1;var n=e.state.doc.resolve(t),r=n.nodeAfter;return!!(r&&r.isAtom&&tN.isSelectable(r))&&(eH(e,new tN(n),"pointer"),!0)}(e,n))}function nH(e,t,n,r){return $z(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",(function(n){return n(e,t,r)}))}function rH(e,t,n,r){return $z(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",(function(n){return n(e,t,r)}))||function(e,t,n){if(0!=n.button)return!1;var r=e.state.doc;if(-1==t)return!!r.inlineContent&&(eH(e,$L.create(r,0,r.content.size),"pointer"),!0);for(var o=r.resolve(t),i=o.depth+1;i>0;i--){var a=i>o.depth?o.nodeAfter:o.node(i),s=o.before(i);if(a.inlineContent)eH(e,$L.create(r,s+1,s+1+a.content.size),"pointer");else{if(!tN.isSelectable(a))continue;eH(e,tN.create(r,s),"pointer")}return!0}}(e,n,r)}function oH(e){return dH(e)}Yz.keydown=function(e,t){if(e.shiftKey=16==t.keyCode||t.shiftKey,!sH(e,t)&&(e.lastKeyCode=t.keyCode,e.lastKeyCodeTime=Date.now(),!KN.android||!KN.chrome||13!=t.keyCode))if(229!=t.keyCode&&e.domObserver.forceFlush(),!KN.ios||13!=t.keyCode||t.ctrlKey||t.altKey||t.metaKey)e.someProp("handleKeyDown",(function(n){return n(e,t)}))||Zz(e,t)?t.preventDefault():Kz(e,"key");else{var n=Date.now();e.lastIOSEnter=n,e.lastIOSEnterFallbackTimeout=setTimeout((function(){e.lastIOSEnter==n&&(e.someProp("handleKeyDown",(function(t){return t(e,d_(13,"Enter"))})),e.lastIOSEnter=0)}),200)}},Yz.keyup=function(e,t){16==t.keyCode&&(e.shiftKey=!1)},Yz.keypress=function(e,t){if(!(sH(e,t)||!t.charCode||t.ctrlKey&&!t.altKey||KN.mac&&t.metaKey))if(e.someProp("handleKeyPress",(function(n){return n(e,t)})))t.preventDefault();else{var n=e.state.selection;if(!(n instanceof $L)||!n.$from.sameParent(n.$to)){var r=String.fromCharCode(t.charCode);e.someProp("handleTextInput",(function(t){return t(e,n.$from.pos,n.$to.pos,r)}))||e.dispatch(e.state.tr.insertText(r).scrollIntoView()),t.preventDefault()}}};var iH=KN.mac?"metaKey":"ctrlKey";Gz.mousedown=function(e,t){e.shiftKey=t.shiftKey;var n=oH(e),r=Date.now(),o="singleClick";r-e.lastClick.time<500&&function(e,t){var n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}(t,e.lastClick)&&!t[iH]&&("singleClick"==e.lastClick.type?o="doubleClick":"doubleClick"==e.lastClick.type&&(o="tripleClick")),e.lastClick={time:r,x:t.clientX,y:t.clientY,type:o};var i=e.posAtCoords(Qz(t));i&&("singleClick"==o?(e.mouseDown&&e.mouseDown.done(),e.mouseDown=new aH(e,i,t,n)):("doubleClick"==o?nH:rH)(e,i.pos,i.inside,t)?t.preventDefault():Kz(e,"pointer"))};var aH=function(e,t,n,r){var o,i,a=this;if(this.view=e,this.startDoc=e.state.doc,this.pos=t,this.event=n,this.flushed=r,this.selectNode=n[iH],this.allowDefault=n.shiftKey,this.delayedSelectionSync=!1,t.inside>-1)o=e.state.doc.nodeAt(t.inside),i=t.inside;else{var s=e.state.doc.resolve(t.pos);o=s.parent,i=s.depth?s.before():0}this.mightDrag=null;var l=r?null:n.target,c=l?e.docView.nearestDesc(l,!0):null;this.target=c?c.dom:null;var u=e.state.selection;(0==n.button&&o.type.spec.draggable&&!1!==o.type.spec.selectable||u instanceof tN&&u.from<=i&&u.to>i)&&(this.mightDrag={node:o,pos:i,addAttr:this.target&&!this.target.draggable,setUneditable:this.target&&KN.gecko&&!this.target.hasAttribute("contentEditable")}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout((function(){a.view.mouseDown==a&&a.target.setAttribute("contentEditable","false")}),20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),Kz(e,"pointer")};function sH(e,t){return!!e.composing||!!(KN.safari&&Math.abs(t.timeStamp-e.compositionEndedAt)<500)&&(e.compositionEndedAt=-2e8,!0)}aH.prototype.done=function(){var e=this;this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout((function(){return iz(e.view)})),this.view.mouseDown=null},aH.prototype.up=function(e){if(this.done(),this.view.dom.contains(3==e.target.nodeType?e.target.parentNode:e.target)){var t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(Qz(e))),this.allowDefault||!t?Kz(this.view,"pointer"):tH(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():0==e.button&&(this.flushed||KN.safari&&this.mightDrag&&!this.mightDrag.node.isAtom||KN.chrome&&!(this.view.state.selection instanceof $L)&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(eH(this.view,JL.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):Kz(this.view,"pointer")}},aH.prototype.move=function(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0),Kz(this.view,"pointer"),0==e.buttons&&this.done()},Gz.touchdown=function(e){oH(e),Kz(e,"pointer")},Gz.contextmenu=function(e){return oH(e)};var lH=KN.android?5e3:-1;function cH(e,t){clearTimeout(e.composingTimeout),t>-1&&(e.composingTimeout=setTimeout((function(){return dH(e)}),t))}function uH(e){for(e.composing&&(e.composing=!1,e.compositionEndedAt=function(){var e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}());e.compositionNodes.length>0;)e.compositionNodes.pop().markParentsDirty()}function dH(e,t){if(!(KN.android&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),uH(e),t||e.docView.dirty){var n=rz(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):e.updateState(e.state),!0}return!1}}Yz.compositionstart=Yz.compositionupdate=function(e){if(!e.composing){e.domObserver.flush();var t=e.state,n=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some((function(e){return!1===e.type.spec.inclusive}))))e.markCursor=e.state.storedMarks||n.marks(),dH(e,!0),e.markCursor=null;else if(dH(e),KN.gecko&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length)for(var r=e.root.getSelection(),o=r.focusNode,i=r.focusOffset;o&&1==o.nodeType&&0!=i;){var a=i<0?o.lastChild:o.childNodes[i-1];if(!a)break;if(3==a.nodeType){r.collapse(a,a.nodeValue.length);break}o=a,i=-1}e.composing=!0}cH(e,lH)},Yz.compositionend=function(e,t){e.composing&&(e.composing=!1,e.compositionEndedAt=t.timeStamp,cH(e,20))};var pH=KN.ie&&KN.ie_version<15||KN.ios&&KN.webkit_version<604;function fH(e,t,n,r){var o=Mz(e,t,n,e.shiftKey,e.state.selection.$from);if(e.someProp("handlePaste",(function(t){return t(e,r,o||iB.empty)})))return!0;if(!o)return!1;var i=function(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}(o),a=i?e.state.tr.replaceSelectionWith(i,e.shiftKey):e.state.tr.replaceSelection(o);return e.dispatch(a.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}Gz.copy=Yz.cut=function(e,t){var n=e.state.selection,r="cut"==t.type;if(!n.empty){var o=pH?null:t.clipboardData,i=Az(e,n.content()),a=i.dom,s=i.text;o?(t.preventDefault(),o.clearData(),o.setData("text/html",a.innerHTML),o.setData("text/plain",s)):function(e,t){if(e.dom.parentNode){var n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";var r=getSelection(),o=document.createRange();o.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout((function(){n.parentNode&&n.parentNode.removeChild(n),e.focus()}),50)}}(e,a),r&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))}},Yz.paste=function(e,t){if(!e.composing||KN.android){var n=pH?null:t.clipboardData;n&&fH(e,n.getData("text/plain"),n.getData("text/html"),t)?t.preventDefault():function(e,t){if(e.dom.parentNode){var n=e.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus(),setTimeout((function(){e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?fH(e,r.value,null,t):fH(e,r.textContent,r.innerHTML,t)}),50)}}(e,t)}};var hH=function(e,t){this.slice=e,this.move=t},mH=KN.mac?"altKey":"ctrlKey";for(var vH in Gz.dragstart=function(e,t){var n=e.mouseDown;if(n&&n.done(),t.dataTransfer){var r=e.state.selection,o=r.empty?null:e.posAtCoords(Qz(t));if(o&&o.pos>=r.from&&o.pos<=(r instanceof tN?r.to-1:r.to));else if(n&&n.mightDrag)e.dispatch(e.state.tr.setSelection(tN.create(e.state.doc,n.mightDrag.pos)));else if(t.target&&1==t.target.nodeType){var i=e.docView.nearestDesc(t.target,!0);i&&i.node.type.spec.draggable&&i!=e.docView&&e.dispatch(e.state.tr.setSelection(tN.create(e.state.doc,i.posBefore)))}var a=e.state.selection.content(),s=Az(e,a),l=s.dom,c=s.text;t.dataTransfer.clearData(),t.dataTransfer.setData(pH?"Text":"text/html",l.innerHTML),t.dataTransfer.effectAllowed="copyMove",pH||t.dataTransfer.setData("text/plain",c),e.dragging=new hH(a,!t[mH])}},Gz.dragend=function(e){var t=e.dragging;window.setTimeout((function(){e.dragging==t&&(e.dragging=null)}),50)},Yz.dragover=Yz.dragenter=function(e,t){return t.preventDefault()},Yz.drop=function(e,t){var n=e.dragging;if(e.dragging=null,t.dataTransfer){var r=e.posAtCoords(Qz(t));if(r){var o=e.state.doc.resolve(r.pos);if(o){var i=n&&n.slice;i?e.someProp("transformPasted",(function(e){i=e(i)})):i=Mz(e,t.dataTransfer.getData(pH?"Text":"text/plain"),pH?null:t.dataTransfer.getData("text/html"),!1,o);var a=n&&!t[mH];if(e.someProp("handleDrop",(function(n){return n(e,t,i||iB.empty,a)})))t.preventDefault();else if(i){t.preventDefault();var s=i?IL(e.state.doc,o.pos,i):o.pos;null==s&&(s=o.pos);var l=e.state.tr;a&&l.deleteSelection();var c=l.mapping.map(s),u=0==i.openStart&&0==i.openEnd&&1==i.content.childCount,d=l.doc;if(u?l.replaceRangeWith(c,c,i.content.firstChild):l.replaceRange(c,c,i),!l.doc.eq(d)){var p=l.doc.resolve(c);if(u&&tN.isSelectable(i.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(i.content.firstChild))l.setSelection(new tN(p));else{var f=l.mapping.map(s);l.mapping.maps[l.mapping.maps.length-1].forEach((function(e,t,n,r){return f=r})),l.setSelection(pz(e,p,l.doc.resolve(f)))}e.focus(),e.dispatch(l.setMeta("uiEvent","drop"))}}}}}},Gz.focus=function(e){e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout((function(){e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.root.getSelection())&&iz(e)}),20))},Gz.blur=function(e,t){e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),t.relatedTarget&&e.dom.contains(t.relatedTarget)&&e.domObserver.currentSelection.set({}),e.focused=!1)},Gz.beforeinput=function(e,t){if(KN.chrome&&KN.android&&"deleteContentBackward"==t.inputType){e.domObserver.flushSoon();var n=e.domChangeCount;setTimeout((function(){if(e.domChangeCount==n&&(e.dom.blur(),e.focus(),!e.someProp("handleKeyDown",(function(t){return t(e,d_(8,"Backspace"))})))){var t=e.state.selection.$cursor;t&&t.pos>0&&e.dispatch(e.state.tr.delete(t.pos-1,t.pos).scrollIntoView())}}),50)}},Yz)Gz[vH]=Yz[vH];function gH(e,t){if(e==t)return!0;for(var n in e)if(e[n]!==t[n])return!1;for(var r in t)if(!(r in e))return!1;return!0}var yH=function(e,t){this.spec=t||SH,this.side=this.spec.side||0,this.toDOM=e};yH.prototype.map=function(e,t,n,r){var o=e.mapResult(t.from+r,this.side<0?-1:1),i=o.pos;return o.deleted?null:new wH(i-n,i-n,this)},yH.prototype.valid=function(){return!0},yH.prototype.eq=function(e){return this==e||e instanceof yH&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&gH(this.spec,e.spec))},yH.prototype.destroy=function(e){this.spec.destroy&&this.spec.destroy(e)};var bH=function(e,t){this.spec=t||SH,this.attrs=e};bH.prototype.map=function(e,t,n,r){var o=e.map(t.from+r,this.spec.inclusiveStart?-1:1)-n,i=e.map(t.to+r,this.spec.inclusiveEnd?1:-1)-n;return o>=i?null:new wH(o,i,this)},bH.prototype.valid=function(e,t){return t.from<t.to},bH.prototype.eq=function(e){return this==e||e instanceof bH&&gH(this.attrs,e.attrs)&&gH(this.spec,e.spec)},bH.is=function(e){return e.type instanceof bH};var xH=function(e,t){this.spec=t||SH,this.attrs=e};xH.prototype.map=function(e,t,n,r){var o=e.mapResult(t.from+r,1);if(o.deleted)return null;var i=e.mapResult(t.to+r,-1);return i.deleted||i.pos<=o.pos?null:new wH(o.pos-n,i.pos-n,this)},xH.prototype.valid=function(e,t){var n,r=e.content.findIndex(t.from),o=r.index,i=r.offset;return i==t.from&&!(n=e.child(o)).isText&&i+n.nodeSize==t.to},xH.prototype.eq=function(e){return this==e||e instanceof xH&&gH(this.attrs,e.attrs)&&gH(this.spec,e.spec)};var wH=function(e,t,n){this.from=e,this.to=t,this.type=n},CH={spec:{configurable:!0},inline:{configurable:!0}};wH.prototype.copy=function(e,t){return new wH(e,t,this.type)},wH.prototype.eq=function(e,t){return void 0===t&&(t=0),this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to},wH.prototype.map=function(e,t,n){return this.type.map(e,this,t,n)},wH.widget=function(e,t,n){return new wH(e,e,new yH(t,n))},wH.inline=function(e,t,n,r){return new wH(e,t,new bH(n,r))},wH.node=function(e,t,n,r){return new wH(e,t,new xH(n,r))},CH.spec.get=function(){return this.type.spec},CH.inline.get=function(){return this.type instanceof bH},Object.defineProperties(wH.prototype,CH);var jH=[],SH={},kH=function(e,t){this.local=e&&e.length?e:jH,this.children=t&&t.length?t:jH};kH.create=function(e,t){return t.length?AH(t,e,0,SH):ZH},kH.prototype.find=function(e,t,n){var r=[];return this.findInner(null==e?0:e,null==t?1e9:t,r,0,n),r},kH.prototype.findInner=function(e,t,n,r,o){for(var i=0;i<this.local.length;i++){var a=this.local[i];a.from<=t&&a.to>=e&&(!o||o(a.spec))&&n.push(a.copy(a.from+r,a.to+r))}for(var s=0;s<this.children.length;s+=3)if(this.children[s]<t&&this.children[s+1]>e){var l=this.children[s]+1;this.children[s+2].findInner(e-l,t-l,n,r+l,o)}},kH.prototype.map=function(e,t,n){return this==ZH||0==e.maps.length?this:this.mapInner(e,t,0,0,n||SH)},kH.prototype.mapInner=function(e,t,n,r,o){for(var i,a=0;a<this.local.length;a++){var s=this.local[a].map(e,n,r);s&&s.type.valid(t,s)?(i||(i=[])).push(s):o.onRemove&&o.onRemove(this.local[a].spec)}return this.children.length?function(e,t,n,r,o,i,a){for(var s=e.slice(),l=function(e,t,n,r){for(var a=0;a<s.length;a+=3){var l=s[a+1],c=void 0;-1==l||e>l+i||(t>=s[a]+i?s[a+1]=-1:n>=o&&(c=r-n-(t-e))&&(s[a]+=c,s[a+1]+=c))}},c=0;c<n.maps.length;c++)n.maps[c].forEach(l);for(var u=!1,d=0;d<s.length;d+=3)if(-1==s[d+1]){var p=n.map(e[d]+i),f=p-o;if(f<0||f>=r.content.size){u=!0;continue}var h=n.map(e[d+1]+i,-1)-o,m=r.content.findIndex(f),v=m.index,g=m.offset,y=r.maybeChild(v);if(y&&g==f&&g+y.nodeSize==h){var b=s[d+2].mapInner(n,y,p+1,e[d]+i+1,a);b!=ZH?(s[d]=f,s[d+1]=h,s[d+2]=b):(s[d+1]=-2,u=!0)}else u=!0}if(u){var x=function(e,t,n,r,o,i,a){function s(e,t){for(var i=0;i<e.local.length;i++){var l=e.local[i].map(r,o,t);l?n.push(l):a.onRemove&&a.onRemove(e.local[i].spec)}for(var c=0;c<e.children.length;c+=3)s(e.children[c+2],e.children[c]+t+1)}for(var l=0;l<e.length;l+=3)-1==e[l+1]&&s(e[l+2],t[l]+i+1);return n}(s,e,t||[],n,o,i,a),w=AH(x,r,0,a);t=w.local;for(var C=0;C<s.length;C+=3)s[C+1]<0&&(s.splice(C,3),C-=3);for(var j=0,S=0;j<w.children.length;j+=3){for(var k=w.children[j];S<s.length&&s[S]<k;)S+=3;s.splice(S,0,w.children[j],w.children[j+1],w.children[j+2])}}return new kH(t&&t.sort(MH),s)}(this.children,i,e,t,n,r,o):i?new kH(i.sort(MH)):ZH},kH.prototype.add=function(e,t){return t.length?this==ZH?kH.create(e,t):this.addInner(e,t,0):this},kH.prototype.addInner=function(e,t,n){var r,o=this,i=0;e.forEach((function(e,a){var s,l=a+n;if(s=DH(t,e,l)){for(r||(r=o.children.slice());i<r.length&&r[i]<a;)i+=3;r[i]==a?r[i+2]=r[i+2].addInner(e,s,l+1):r.splice(i,0,a,a+e.nodeSize,AH(s,e,l+1,SH)),i+=3}}));for(var a=EH(i?PH(t):t,-n),s=0;s<a.length;s++)a[s].type.valid(e,a[s])||a.splice(s--,1);return new kH(a.length?this.local.concat(a).sort(MH):this.local,r||this.children)},kH.prototype.remove=function(e){return 0==e.length||this==ZH?this:this.removeInner(e,0)},kH.prototype.removeInner=function(e,t){for(var n=this.children,r=this.local,o=0;o<n.length;o+=3){for(var i=void 0,a=n[o]+t,s=n[o+1]+t,l=0,c=void 0;l<e.length;l++)(c=e[l])&&c.from>a&&c.to<s&&(e[l]=null,(i||(i=[])).push(c));if(i){n==this.children&&(n=this.children.slice());var u=n[o+2].removeInner(i,a+1);u!=ZH?n[o+2]=u:(n.splice(o,3),o-=3)}}if(r.length)for(var d=0,p=void 0;d<e.length;d++)if(p=e[d])for(var f=0;f<r.length;f++)r[f].eq(p,t)&&(r==this.local&&(r=this.local.slice()),r.splice(f--,1));return n==this.children&&r==this.local?this:r.length||n.length?new kH(r,n):ZH},kH.prototype.forChild=function(e,t){if(this==ZH)return this;if(t.isLeaf)return kH.empty;for(var n,r,o=0;o<this.children.length;o+=3)if(this.children[o]>=e){this.children[o]==e&&(n=this.children[o+2]);break}for(var i=e+1,a=i+t.content.size,s=0;s<this.local.length;s++){var l=this.local[s];if(l.from<a&&l.to>i&&l.type instanceof bH){var c=Math.max(i,l.from)-i,u=Math.min(a,l.to)-i;c<u&&(r||(r=[])).push(l.copy(c,u))}}if(r){var d=new kH(r.sort(MH));return n?new OH([d,n]):d}return n||ZH},kH.prototype.eq=function(e){if(this==e)return!0;if(!(e instanceof kH)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(var t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(var n=0;n<this.children.length;n+=3)if(this.children[n]!=e.children[n]||this.children[n+1]!=e.children[n+1]||!this.children[n+2].eq(e.children[n+2]))return!1;return!0},kH.prototype.locals=function(e){return TH(this.localsInner(e))},kH.prototype.localsInner=function(e){if(this==ZH)return jH;if(e.inlineContent||!this.local.some(bH.is))return this.local;for(var t=[],n=0;n<this.local.length;n++)this.local[n].type instanceof bH||t.push(this.local[n]);return t};var ZH=new kH;kH.empty=ZH,kH.removeOverlap=TH;var OH=function(e){this.members=e};function EH(e,t){if(!t||!e.length)return e;for(var n=[],r=0;r<e.length;r++){var o=e[r];n.push(new wH(o.from+t,o.to+t,o.type))}return n}function DH(e,t,n){if(t.isLeaf)return null;for(var r=n+t.nodeSize,o=null,i=0,a=void 0;i<e.length;i++)(a=e[i])&&a.from>n&&a.to<r&&((o||(o=[])).push(a),e[i]=null);return o}function PH(e){for(var t=[],n=0;n<e.length;n++)null!=e[n]&&t.push(e[n]);return t}function AH(e,t,n,r){var o=[],i=!1;t.forEach((function(t,a){var s=DH(e,t,a+n);if(s){i=!0;var l=AH(s,t,n+a+1,r);l!=ZH&&o.push(a,a+t.nodeSize,l)}}));for(var a=EH(i?PH(e):e,-n).sort(MH),s=0;s<a.length;s++)a[s].type.valid(t,a[s])||(r.onRemove&&r.onRemove(a[s].spec),a.splice(s--,1));return a.length||o.length?new kH(a,o):ZH}function MH(e,t){return e.from-t.from||e.to-t.to}function TH(e){for(var t=e,n=0;n<t.length-1;n++){var r=t[n];if(r.from!=r.to)for(var o=n+1;o<t.length;o++){var i=t[o];if(i.from!=r.from){i.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,i.from),IH(t,o,r.copy(i.from,r.to)));break}i.to!=r.to&&(t==e&&(t=e.slice()),t[o]=i.copy(i.from,r.to),IH(t,o+1,i.copy(r.to,i.to)))}}return t}function IH(e,t,n){for(;t<e.length&&MH(n,e[t])>0;)t++;e.splice(t,0,n)}function RH(e){var t=[];return e.someProp("decorations",(function(n){var r=n(e.state);r&&r!=ZH&&t.push(r)})),e.cursorWrapper&&t.push(kH.create(e.state.doc,[e.cursorWrapper.deco])),OH.from(t)}OH.prototype.map=function(e,t){var n=this.members.map((function(n){return n.map(e,t,SH)}));return OH.from(n)},OH.prototype.forChild=function(e,t){if(t.isLeaf)return kH.empty;for(var n=[],r=0;r<this.members.length;r++){var o=this.members[r].forChild(e,t);o!=ZH&&(o instanceof OH?n=n.concat(o.members):n.push(o))}return OH.from(n)},OH.prototype.eq=function(e){if(!(e instanceof OH)||e.members.length!=this.members.length)return!1;for(var t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0},OH.prototype.locals=function(e){for(var t,n=!0,r=0;r<this.members.length;r++){var o=this.members[r].localsInner(e);if(o.length)if(t){n&&(t=t.slice(),n=!1);for(var i=0;i<o.length;i++)t.push(o[i])}else t=o}return t?TH(n?t:t.sort(MH)):jH},OH.from=function(e){switch(e.length){case 0:return ZH;case 1:return e[0];default:return new OH(e)}};var FH=function(e,t){this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(HH),this.dispatch=this.dispatch.bind(this),this._root=null,this.focused=!1,this.trackWrites=null,this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):e.apply?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=_H(this),this.markCursor=null,this.cursorWrapper=null,NH(this),this.nodeViews=zH(this),this.docView=z_(this.state.doc,LH(this),RH(this),this.dom,this),this.lastSelectedViewDesc=null,this.dragging=null,function(e){e.shiftKey=!1,e.mouseDown=null,e.lastKeyCode=null,e.lastKeyCodeTime=0,e.lastClick={time:0,x:0,y:0,type:""},e.lastSelectionOrigin=null,e.lastSelectionTime=0,e.lastIOSEnter=0,e.lastIOSEnterFallbackTimeout=null,e.lastAndroidDelete=0,e.composing=!1,e.composingTimeout=null,e.compositionNodes=[],e.compositionEndedAt=-2e8,e.domObserver=new Uz(e,(function(t,n,r,o){return Ez(e,t,n,r,o)})),e.domObserver.start(),e.domChangeCount=0,e.eventHandlers=Object.create(null);var t=function(t){var n=Gz[t];e.dom.addEventListener(t,e.eventHandlers[t]=function(t){!function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(var n=t.target;n!=e.dom;n=n.parentNode)if(!n||11==n.nodeType||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}(e,t)||Xz(e,t)||!e.editable&&t.type in Yz||n(e,t)})};for(var n in Gz)t(n);KN.safari&&e.dom.addEventListener("input",(function(){return null})),Jz(e)}(this),this.prevDirectPlugins=[],this.pluginViews=[],this.updatePluginViews()},BH={props:{configurable:!0},root:{configurable:!0},isDestroyed:{configurable:!0}};function LH(e){var t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),t.translate="no",e.someProp("attributes",(function(n){if("function"==typeof n&&(n=n(e.state)),n)for(var r in n)"class"==r&&(t.class+=" "+n[r]),"style"==r?t.style=(t.style?t.style+";":"")+n[r]:t[r]||"contenteditable"==r||"nodeName"==r||(t[r]=String(n[r]))})),[wH.node(0,e.state.doc.content.size,t)]}function NH(e){if(e.markCursor){var t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),e.cursorWrapper={dom:t,deco:wH.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function _H(e){return!e.someProp("editable",(function(t){return!1===t(e.state)}))}function zH(e){var t={};return e.someProp("nodeViews",(function(e){for(var n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])})),t}function HH(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}BH.props.get=function(){if(this._props.state!=this.state){var e=this._props;for(var t in this._props={},e)this._props[t]=e[t];this._props.state=this.state}return this._props},FH.prototype.update=function(e){e.handleDOMEvents!=this._props.handleDOMEvents&&Jz(this),this._props=e,e.plugins&&(e.plugins.forEach(HH),this.directPlugins=e.plugins),this.updateStateInner(e.state,!0)},FH.prototype.setProps=function(e){var t={};for(var n in this._props)t[n]=this._props[n];for(var r in t.state=this.state,e)t[r]=e[r];this.update(t)},FH.prototype.updateState=function(e){this.updateStateInner(e,this.state.plugins!=e.plugins)},FH.prototype.updateStateInner=function(e,t){var n=this,r=this.state,o=!1,i=!1;if(e.storedMarks&&this.composing&&(uH(this),i=!0),this.state=e,t){var a=zH(this);(function(e,t){var n=0,r=0;for(var o in e){if(e[o]!=t[o])return!0;n++}for(var i in t)r++;return n!=r})(a,this.nodeViews)&&(this.nodeViews=a,o=!0),Jz(this)}this.editable=_H(this),NH(this);var s=RH(this),l=LH(this),c=t?"reset":e.scrollToSelection>r.scrollToSelection?"to selection":"preserve",u=o||!this.docView.matchesNode(e.doc,l,s);!u&&e.selection.eq(r.selection)||(i=!0);var d="preserve"==c&&i&&null==this.dom.style.overflowAnchor&&function(e){for(var t,n,r=e.dom.getBoundingClientRect(),o=Math.max(0,r.top),i=(r.left+r.right)/2,a=o+1;a<Math.min(innerHeight,r.bottom);a+=5){var s=e.root.elementFromPoint(i,a);if(s!=e.dom&&e.dom.contains(s)){var l=s.getBoundingClientRect();if(l.top>=o-20){t=s,n=l.top;break}}}return{refDOM:t,refTop:n,stack:v_(e.dom)}}(this);if(i){this.domObserver.stop();var p=u&&(KN.ie||KN.chrome)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&function(e,t){var n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}(r.selection,e.selection);if(u){var f=KN.chrome?this.trackWrites=this.root.getSelection().focusNode:null;!o&&this.docView.update(e.doc,l,s,this)||(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=z_(e.doc,l,s,this.dom,this)),f&&!this.trackWrites&&(p=!0)}p||!(this.mouseDown&&this.domObserver.currentSelection.eq(this.root.getSelection())&&function(e){var t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.root.getSelection();return i_(t.node,t.offset,n.anchorNode,n.anchorOffset)}(this))?iz(this,p):(uz(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}if(this.updatePluginViews(r),"reset"==c)this.dom.scrollTop=0;else if("to selection"==c){var h=this.root.getSelection().focusNode;this.someProp("handleScrollToSelection",(function(e){return e(n)}))||(e.selection instanceof tN?m_(this,this.docView.domAfterPos(e.selection.from).getBoundingClientRect(),h):m_(this,this.coordsAtPos(e.selection.head,1),h))}else d&&function(e){var t=e.refDOM,n=e.refTop,r=e.stack,o=t?t.getBoundingClientRect().top:0;g_(r,0==o?0:o-n)}(d)},FH.prototype.destroyPluginViews=function(){for(var e;e=this.pluginViews.pop();)e.destroy&&e.destroy()},FH.prototype.updatePluginViews=function(e){if(e&&e.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(var t=0;t<this.pluginViews.length;t++){var n=this.pluginViews[t];n.update&&n.update(this,e)}else{this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(var r=0;r<this.directPlugins.length;r++){var o=this.directPlugins[r];o.spec.view&&this.pluginViews.push(o.spec.view(this))}for(var i=0;i<this.state.plugins.length;i++){var a=this.state.plugins[i];a.spec.view&&this.pluginViews.push(a.spec.view(this))}}},FH.prototype.someProp=function(e,t){var n,r=this._props&&this._props[e];if(null!=r&&(n=t?t(r):r))return n;for(var o=0;o<this.directPlugins.length;o++){var i=this.directPlugins[o].props[e];if(null!=i&&(n=t?t(i):i))return n}var a=this.state.plugins;if(a)for(var s=0;s<a.length;s++){var l=a[s].props[e];if(null!=l&&(n=t?t(l):l))return n}},FH.prototype.hasFocus=function(){return this.root.activeElement==this.dom},FH.prototype.focus=function(){this.domObserver.stop(),this.editable&&function(e){if(e.setActive)return e.setActive();if(y_)return e.focus(y_);var t=v_(e);e.focus(null==y_?{get preventScroll(){return y_={preventScroll:!0},!0}}:void 0),y_||(y_=!1,g_(t,0))}(this.dom),iz(this),this.domObserver.start()},BH.root.get=function(){var e=this._root;if(null==e)for(var t=this.dom.parentNode;t;t=t.parentNode)if(9==t.nodeType||11==t.nodeType&&t.host)return t.getSelection||(Object.getPrototypeOf(t).getSelection=function(){return document.getSelection()}),this._root=t;return e||document},FH.prototype.posAtCoords=function(e){return C_(this,e)},FH.prototype.coordsAtPos=function(e,t){return void 0===t&&(t=1),k_(this,e,t)},FH.prototype.domAtPos=function(e,t){return void 0===t&&(t=0),this.docView.domFromPos(e,t)},FH.prototype.nodeDOM=function(e){var t=this.docView.descAt(e);return t?t.nodeDOM:null},FH.prototype.posAtDOM=function(e,t,n){void 0===n&&(n=-1);var r=this.docView.posFromDOM(e,t,n);if(null==r)throw new RangeError("DOM position not inside the editor");return r},FH.prototype.endOfTextblock=function(e,t){return T_(this,t||this.state,e)},FH.prototype.destroy=function(){this.docView&&(!function(e){for(var t in e.domObserver.stop(),e.eventHandlers)e.dom.removeEventListener(t,e.eventHandlers[t]);clearTimeout(e.composingTimeout),clearTimeout(e.lastIOSEnterFallbackTimeout)}(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],RH(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)},BH.isDestroyed.get=function(){return null==this.docView},FH.prototype.dispatchEvent=function(e){return function(e,t){Xz(e,t)||!Gz[t.type]||!e.editable&&t.type in Yz||Gz[t.type](e,t)}(this,e)},FH.prototype.dispatch=function(e){var t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))},Object.defineProperties(FH.prototype,BH);for(var WH={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",229:"q"},VH={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"',229:"Q"},UH="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),qH="undefined"!=typeof navigator&&/Apple Computer/.test(navigator.vendor),GH="undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),YH="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),KH="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),JH=UH&&(YH||+UH[1]<57)||GH&&YH,XH=0;XH<10;XH++)WH[48+XH]=WH[96+XH]=String(XH);for(XH=1;XH<=24;XH++)WH[XH+111]="F"+XH;for(XH=65;XH<=90;XH++)WH[XH]=String.fromCharCode(XH+32),VH[XH]=String.fromCharCode(XH);for(var QH in WH)VH.hasOwnProperty(QH)||(VH[QH]=WH[QH]);var $H="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function eW(e){var t,n,r,o,i=e.split(/-(?!$)/),a=i[i.length-1];"Space"==a&&(a=" ");for(var s=0;s<i.length-1;s++){var l=i[s];if(/^(cmd|meta|m)$/i.test(l))o=!0;else if(/^a(lt)?$/i.test(l))t=!0;else if(/^(c|ctrl|control)$/i.test(l))n=!0;else if(/^s(hift)?$/i.test(l))r=!0;else{if(!/^mod$/i.test(l))throw new Error("Unrecognized modifier name: "+l);$H?o=!0:n=!0}}return t&&(a="Alt-"+a),n&&(a="Ctrl-"+a),o&&(a="Meta-"+a),r&&(a="Shift-"+a),a}function tW(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}function nW(e){var t=function(e){var t=Object.create(null);for(var n in e)t[eW(n)]=e[n];return t}(e);return function(e,n){var r,o=function(e){var t=!(JH&&(e.ctrlKey||e.altKey||e.metaKey)||(qH||KH)&&e.shiftKey&&e.key&&1==e.key.length)&&e.key||(e.shiftKey?VH:WH)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(n),i=1==o.length&&" "!=o,a=t[tW(o,n,!i)];if(a&&a(e.state,e.dispatch,e))return!0;if(i&&(n.shiftKey||n.altKey||n.metaKey||o.charCodeAt(0)>127)&&(r=WH[n.keyCode])&&r!=o){var s=t[tW(r,n,!0)];if(s&&s(e.state,e.dispatch,e))return!0}else if(i&&n.shiftKey){var l=t[tW(o,n,!0)];if(l&&l(e.state,e.dispatch,e))return!0}return!1}}function rW(e){return"Object"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)&&(e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype)}function oW(e,n){var r=(0,l.Z)({},e);return rW(e)&&rW(n)&&Object.keys(n).forEach((function(o){rW(n[o])&&o in e?r[o]=oW(e[o],n[o]):Object.assign(r,(0,t.Z)({},o,n[o]))})),r}function iW(e){return"function"===typeof e}function aW(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(iW(e)){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return t?e.bind(t).apply(void 0,r):e.apply(void 0,r)}return e}function sW(e,t,n){return void 0===e.config[t]&&e.parent?sW(e.parent,t,n):"function"===typeof e.config[t]?e.config[t].bind((0,l.Z)((0,l.Z)({},n),{},{parent:e.parent?sW(e.parent,t,n):null})):e.config[t]}var lW=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,Ph.Z)(this,e),this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config=(0,l.Z)((0,l.Z)({},this.config),t),this.name=this.config.name,t.defaultOptions&&console.warn('[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "'.concat(this.name,'".')),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=aW(sW(this,"addOptions",{name:this.name}))),this.storage=aW(sW(this,"addStorage",{name:this.name,options:this.options}))||{}}return(0,Dh.Z)(e,[{key:"configure",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.extend();return t.options=oW(this.options,e),t.storage=aW(sW(t,"addStorage",{name:t.name,options:t.options})),t}},{key:"extend",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=new e(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&console.warn('[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "'.concat(n.name,'".')),n.options=aW(sW(n,"addOptions",{name:n.name})),n.storage=aW(sW(n,"addStorage",{name:n.name,options:n.options})),n}}],[{key:"create",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new e(t)}}]),e}();function cW(e,t,n){var r=t.from,o=t.to,i=n||{},a=i.blockSeparator,s=void 0===a?"\n\n":a,l=i.textSerializers,c=void 0===l?{}:l,u="",d=!0;return e.nodesBetween(r,o,(function(e,t,n,i){var a,l=null===c||void 0===c?void 0:c[e.type.name];l?(e.isBlock&&!d&&(u+=s,d=!0),u+=l({node:e,pos:t,parent:n,index:i})):e.isText?(u+=null===(a=null===e||void 0===e?void 0:e.text)||void 0===a?void 0:a.slice(Math.max(r,t)-t,o-t),d=!1):e.isBlock&&!d&&(u+=s,d=!0)})),u}function uW(e){return Object.fromEntries(Object.entries(e.nodes).filter((function(e){return(0,Le.Z)(e,2)[1].spec.toText})).map((function(e){var t=(0,Le.Z)(e,2);return[t[0],t[1].spec.toText]})))}var dW=lW.create({name:"clipboardTextSerializer",addProseMirrorPlugins:function(){var e=this;return[new vN({key:new bN("clipboardTextSerializer"),props:{clipboardTextSerializer:function(){var t=e.editor,n=t.state,r=t.schema,o=n.doc,i=n.selection.ranges,a=Math.min.apply(Math,(0,dn.Z)(i.map((function(e){return e.$from.pos})))),s=Math.max.apply(Math,(0,dn.Z)(i.map((function(e){return e.$to.pos}))));return cW(o,{from:a,to:s},{textSerializers:uW(r)})}}})]}}),pW=Object.freeze({__proto__:null,blur:function(){return function(e){var t=e.editor,n=e.view;return requestAnimationFrame((function(){var e;t.isDestroyed||(n.dom.blur(),null===(e=null===window||void 0===window?void 0:window.getSelection())||void 0===e||e.removeAllRanges())})),!0}}}),fW=Object.freeze({__proto__:null,clearContent:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t){return t.commands.setContent("",e)}}}),hW=Object.freeze({__proto__:null,clearNodes:function(){return function(e){var t=e.state,n=e.tr,r=e.dispatch,o=n.selection.ranges;return!r||(o.forEach((function(e){var r=e.$from,o=e.$to;t.doc.nodesBetween(r.pos,o.pos,(function(e,t){if(!e.type.isText){var r=n.doc,o=n.mapping,i=r.resolve(o.map(t)),a=r.resolve(o.map(t+e.nodeSize)),s=i.blockRange(a);if(s){var l=EL(s);if(e.type.isTextblock){var c=i.parent.contentMatchAt(i.index()).defaultType;n.setNodeMarkup(s.start,c)}(l||0===l)&&n.lift(s,l)}}}))})),!0)}}}),mW=Object.freeze({__proto__:null,command:function(e){return function(t){return e(t)}}}),vW=Object.freeze({__proto__:null,createParagraphNear:function(){return function(e){return MN(e.state,e.dispatch)}}});function gW(e,t){if("string"===typeof e){if(!t.nodes[e])throw Error("There is no node type named '".concat(e,"'. Maybe you forgot to add the extension?"));return t.nodes[e]}return e}var yW=Object.freeze({__proto__:null,deleteNode:function(e){return function(t){for(var n=t.tr,r=t.state,o=t.dispatch,i=gW(e,r.schema),a=n.selection.$anchor,s=a.depth;s>0;s-=1){if(a.node(s).type===i){if(o){var l=a.before(s),c=a.after(s);n.delete(l,c).scrollIntoView()}return!0}}return!1}}}),bW=Object.freeze({__proto__:null,deleteRange:function(e){return function(t){var n=t.tr,r=t.dispatch,o=e.from,i=e.to;return r&&n.delete(o,i),!0}}}),xW=Object.freeze({__proto__:null,deleteSelection:function(){return function(e){return xN(e.state,e.dispatch)}}}),wW=Object.freeze({__proto__:null,enter:function(){return function(e){return e.commands.keyboardShortcut("Enter")}}}),CW=Object.freeze({__proto__:null,exitCode:function(){return function(e){return AN(e.state,e.dispatch)}}});function jW(e,t){if("string"===typeof e){if(!t.marks[e])throw Error("There is no mark type named '".concat(e,"'. Maybe you forgot to add the extension?"));return t.marks[e]}return e}function SW(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function kW(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{strict:!0},r=Object.keys(t);return!r.length||r.every((function(r){return n.strict?t[r]===e[r]:SW(t[r])?t[r].test(e[r]):t[r]===e[r]}))}function ZW(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.find((function(e){return e.type===t&&kW(e.attrs,n)}))}function OW(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return!!ZW(e,t,n)}function EW(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e&&t){var r=e.parent.childAfter(e.parentOffset);if(r.node){var o=ZW(r.node.marks,t,n);if(o){var i=e.index(),a=e.start()+r.offset,s=i+1,l=a+r.node.nodeSize;for(ZW(r.node.marks,t,n);i>0&&o.isInSet(e.parent.child(i-1).marks);)i-=1,a-=e.parent.child(i).nodeSize;for(;s<e.parent.childCount&&OW(e.parent.child(s).marks,t,n);)l+=e.parent.child(s).nodeSize,s+=1;return{from:a,to:l}}}}}var DW=Object.freeze({__proto__:null,extendMarkRange:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=n.tr,o=n.state,i=n.dispatch,a=jW(e,o.schema),s=r.doc,l=r.selection,c=l.$from,u=l.from,d=l.to;if(i){var p=EW(c,a,t);if(p&&p.from<=u&&p.to>=d){var f=$L.create(s,p.from,p.to);r.setSelection(f)}}return!0}}}),PW=Object.freeze({__proto__:null,first:function(e){return function(t){for(var n="function"===typeof e?e(t):e,r=0;r<n.length;r+=1)if(n[r](t))return!0;return!1}}});function AW(e){return e&&"object"===typeof e&&!Array.isArray(e)&&!function(e){var t;return"class"===(null===(t=e.constructor)||void 0===t?void 0:t.toString().substring(0,5))}(e)}function MW(e){return AW(e)&&e instanceof $L}function TW(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function IW(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Math.min(Math.max(e,t),n)}function RW(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t)return null;var n=JL.atStart(e),r=JL.atEnd(e);if("start"===t||!0===t)return n;if("end"===t)return r;var o=n.from,i=r.to;return"all"===t?$L.create(e,IW(0,o,i),IW(e.content.size,o,i)):$L.create(e,IW(t,o,i),IW(t,o,i))}var FW=Object.freeze({__proto__:null,focus:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return function(n){var r=n.editor,o=n.view,i=n.tr,a=n.dispatch;t=(0,l.Z)({scrollIntoView:!0},t);var s=function(){TW()&&o.dom.focus(),requestAnimationFrame((function(){r.isDestroyed||(o.focus(),(null===t||void 0===t?void 0:t.scrollIntoView)&&r.commands.scrollIntoView())}))};if(o.hasFocus()&&null===e||!1===e)return!0;if(a&&null===e&&!MW(r.state.selection))return s(),!0;var c=RW(r.state.doc,e)||r.state.selection,u=r.state.selection.eq(c);return a&&(u||i.setSelection(c),u&&i.storedMarks&&i.setStoredMarks(i.storedMarks),s()),!0}}}),BW=Object.freeze({__proto__:null,forEach:function(e,t){return function(n){return e.every((function(e,r){return t(e,(0,l.Z)((0,l.Z)({},n),{},{index:r}))}))}}}),LW=Object.freeze({__proto__:null,insertContent:function(e,t){return function(n){var r=n.tr;return n.commands.insertContentAt({from:r.selection.from,to:r.selection.to},e,t)}}});function NW(e){var t="<body>".concat(e,"</body>");return(new window.DOMParser).parseFromString(t,"text/html").body}function _W(e,t,n){if(n=(0,l.Z)({slice:!0,parseOptions:{}},n),"object"===typeof e&&null!==e)try{return Array.isArray(e)?QF.fromArray(e.map((function(e){return t.nodeFromJSON(e)}))):t.nodeFromJSON(e)}catch(o){return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",o),_W("",t,n)}if("string"===typeof e){var r=XB.fromSchema(t);return n.slice?r.parseSlice(NW(e),n.parseOptions).content:r.parse(NW(e),n.parseOptions)}return _W("",t,n)}var zW=Object.freeze({__proto__:null,insertContentAt:function(e,t,n){return function(r){var o=r.tr,i=r.dispatch,a=r.editor;if(i){n=(0,l.Z)({parseOptions:{},updateSelection:!0},n);var s=_W(t,a.schema,{parseOptions:(0,l.Z)({preserveWhitespace:"full"},n.parseOptions)});if("<>"===s.toString())return!0;var c="number"===typeof e?{from:e,to:e}:e,u=c.from,d=c.to,p=!0,f=!0;if((s.toString().startsWith("<")?s:[s]).forEach((function(e){e.check(),p=!!p&&(e.isText&&0===e.marks.length),f=!!f&&e.isBlock})),u===d&&f){var h=o.doc.resolve(u).parent;h.isTextblock&&!h.type.spec.code&&!h.childCount&&(u-=1,d+=1)}p?o.insertText(t,u,d):o.replaceWith(u,d,s),n.updateSelection&&function(e,t,n){var r=e.steps.length-1;if(!(r<t)){var o=e.steps[r];if(o instanceof SL||o instanceof kL){var i=e.mapping.maps[r],a=0;i.forEach((function(e,t,n,r){0===a&&(a=r)})),e.setSelection(JL.near(e.doc.resolve(a),n))}}}(o,o.steps.length-1,-1)}return!0}}}),HW=Object.freeze({__proto__:null,joinBackward:function(){return function(e){return wN(e.state,e.dispatch)}}}),WW=Object.freeze({__proto__:null,joinForward:function(){return function(e){return kN(e.state,e.dispatch)}}});function VW(){return"undefined"!==typeof navigator&&/Mac/.test(navigator.platform)}var UW=Object.freeze({__proto__:null,keyboardShortcut:function(e){return function(t){var n=t.editor,r=t.view,o=t.tr,i=t.dispatch,a=function(e){var t,n,r,o,i=e.split(/-(?!$)/),a=i[i.length-1];"Space"===a&&(a=" ");for(var s=0;s<i.length-1;s+=1){var l=i[s];if(/^(cmd|meta|m)$/i.test(l))o=!0;else if(/^a(lt)?$/i.test(l))t=!0;else if(/^(c|ctrl|control)$/i.test(l))n=!0;else if(/^s(hift)?$/i.test(l))r=!0;else{if(!/^mod$/i.test(l))throw new Error("Unrecognized modifier name: ".concat(l));TW()||VW()?o=!0:n=!0}}return t&&(a="Alt-".concat(a)),n&&(a="Ctrl-".concat(a)),o&&(a="Meta-".concat(a)),r&&(a="Shift-".concat(a)),a}(e).split(/-(?!$)/),s=a.find((function(e){return!["Alt","Ctrl","Meta","Shift"].includes(e)})),l=new KeyboardEvent("keydown",{key:"Space"===s?" ":s,altKey:a.includes("Alt"),ctrlKey:a.includes("Ctrl"),metaKey:a.includes("Meta"),shiftKey:a.includes("Shift"),bubbles:!0,cancelable:!0}),c=n.captureTransaction((function(){r.someProp("handleKeyDown",(function(e){return e(r,l)}))}));return null===c||void 0===c||c.steps.forEach((function(e){var t=e.map(o.mapping);t&&i&&o.maybeStep(t)})),!0}}});function qW(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.selection,o=r.from,i=r.to,a=r.empty,s=t?gW(t,e.schema):null,l=[];e.doc.nodesBetween(o,i,(function(e,t){if(!e.isText){var n=Math.max(o,t),r=Math.min(i,t+e.nodeSize);l.push({node:e,from:n,to:r})}}));var c=i-o,u=l.filter((function(e){return!s||s.name===e.node.type.name})).filter((function(e){return kW(e.node.attrs,n,{strict:!1})}));if(a)return!!u.length;var d=u.reduce((function(e,t){return e+t.to-t.from}),0);return d>=c}var GW=Object.freeze({__proto__:null,lift:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=n.state,o=n.dispatch;return!!qW(r,gW(e,r.schema),t)&&EN(r,o)}}}),YW=Object.freeze({__proto__:null,liftEmptyBlock:function(){return function(e){return TN(e.state,e.dispatch)}}}),KW=Object.freeze({__proto__:null,liftListItem:function(e){return function(t){var n=t.state,r=t.dispatch;return YN(gW(e,n.schema))(n,r)}}}),JW=Object.freeze({__proto__:null,newlineInCode:function(){return function(e){return DN(e.state,e.dispatch)}}});function XW(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function QW(e,t){var n="string"===typeof t?[t]:t;return Object.keys(e).reduce((function(t,r){return n.includes(r)||(t[r]=e[r]),t}),{})}var $W=Object.freeze({__proto__:null,resetAttributes:function(e,t){return function(n){var r=n.tr,o=n.state,i=n.dispatch,a=null,s=null,l=XW("string"===typeof e?e:e.name,o.schema);return!!l&&("node"===l&&(a=gW(e,o.schema)),"mark"===l&&(s=jW(e,o.schema)),i&&r.selection.ranges.forEach((function(e){o.doc.nodesBetween(e.$from.pos,e.$to.pos,(function(e,n){a&&a===e.type&&r.setNodeMarkup(n,void 0,QW(e.attrs,t)),s&&e.marks.length&&e.marks.forEach((function(o){s===o.type&&r.addMark(n,n+e.nodeSize,s.create(QW(o.attrs,t)))}))}))})),!0)}}}),eV=Object.freeze({__proto__:null,scrollIntoView:function(){return function(e){var t=e.tr;return e.dispatch&&t.scrollIntoView(),!0}}}),tV=Object.freeze({__proto__:null,selectAll:function(){return function(e){var t=e.tr;return e.commands.setTextSelection({from:0,to:t.doc.content.size})}}}),nV=Object.freeze({__proto__:null,selectNodeBackward:function(){return function(e){return jN(e.state,e.dispatch)}}}),rV=Object.freeze({__proto__:null,selectNodeForward:function(){return function(e){return ZN(e.state,e.dispatch)}}}),oV=Object.freeze({__proto__:null,selectParentNode:function(){return function(e){return function(e,t){var n,r=e.selection,o=r.$from,i=r.to,a=o.sharedDepth(i);return 0!=a&&(n=o.before(a),t&&t(e.tr.setSelection(tN.create(e.doc,n))),!0)}(e.state,e.dispatch)}}}),iV=Object.freeze({__proto__:null,selectTextblockEnd:function(){return function(e){var t=e.state,n=e.dispatch;return LN(t,n)}}}),aV=Object.freeze({__proto__:null,selectTextblockStart:function(){return function(e){var t=e.state,n=e.dispatch;return BN(t,n)}}});function sV(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return _W(e,t,{slice:!1,parseOptions:n})}var lV=Object.freeze({__proto__:null,setContent:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(r){var o=r.tr,i=r.editor,a=r.dispatch,s=o.doc,l=sV(e,i.schema,n),c=$L.create(s,0,s.content.size);return a&&o.setSelection(c).replaceSelectionWith(l,!1).setMeta("preventUpdate",!t),!0}}});function cV(e,t){var n=jW(t,e.schema),r=e.selection,o=r.from,i=r.to,a=r.empty,s=[];a?(e.storedMarks&&s.push.apply(s,(0,dn.Z)(e.storedMarks)),s.push.apply(s,(0,dn.Z)(e.selection.$head.marks()))):e.doc.nodesBetween(o,i,(function(e){s.push.apply(s,(0,dn.Z)(e.marks))}));var c=s.find((function(e){return e.type.name===n.name}));return c?(0,l.Z)({},c.attrs):{}}var uV=Object.freeze({__proto__:null,setMark:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=n.tr,o=n.state,i=n.dispatch,a=r.selection,s=a.empty,c=a.ranges,u=jW(e,o.schema);if(i)if(s){var d=cV(o,u);r.addStoredMark(u.create((0,l.Z)((0,l.Z)({},d),t)))}else c.forEach((function(e){var n=e.$from.pos,i=e.$to.pos;o.doc.nodesBetween(n,i,(function(e,o){var a=Math.max(o,n),s=Math.min(o+e.nodeSize,i);e.marks.find((function(e){return e.type===u}))?e.marks.forEach((function(e){u===e.type&&r.addMark(a,s,u.create((0,l.Z)((0,l.Z)({},e.attrs),t)))})):r.addMark(a,s,u.create(t))}))}));return!0}}}),dV=Object.freeze({__proto__:null,setMeta:function(e,t){return function(n){return n.tr.setMeta(e,t),!0}}}),pV=Object.freeze({__proto__:null,setNode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=n.state,o=n.dispatch,i=n.chain,a=gW(e,r.schema);return a.isTextblock?i().command((function(e){var n=e.commands;return!!_N(a,t)(r)||n.clearNodes()})).command((function(e){var n=e.state;return _N(a,t)(n,o)})).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)}}}),fV=Object.freeze({__proto__:null,setNodeSelection:function(e){return function(t){var n=t.tr;if(t.dispatch){var r=n.doc,o=JL.atStart(r).from,i=JL.atEnd(r).to,a=IW(e,o,i),s=tN.create(r,a);n.setSelection(s)}return!0}}}),hV=Object.freeze({__proto__:null,setTextSelection:function(e){return function(t){var n=t.tr;if(t.dispatch){var r=n.doc,o="number"===typeof e?{from:e,to:e}:e,i=o.from,a=o.to,s=$L.atStart(r).from,l=$L.atEnd(r).to,c=IW(i,s,l),u=IW(a,s,l),d=$L.create(r,c,u);n.setSelection(d)}return!0}}}),mV=Object.freeze({__proto__:null,sinkListItem:function(e){return function(t){var n,r=t.state,o=t.dispatch,i=gW(e,r.schema);return(n=i,function(e,t){var r=e.selection,o=r.$from,i=r.$to,a=o.blockRange(i,(function(e){return e.childCount&&e.firstChild.type==n}));if(!a)return!1;var s=a.startIndex;if(0==s)return!1;var l=a.parent,c=l.child(s-1);if(c.type!=n)return!1;if(t){var u=c.lastChild&&c.lastChild.type==l.type,d=QF.from(u?n.create():null),p=new iB(QF.from(n.create(null,QF.from(l.type.create(null,d)))),u?3:1,0),f=a.start,h=a.end;t(e.tr.step(new kL(f-(u?3:1),h,f,h,p,1,!0)).scrollIntoView())}return!0})(r,o)}}});function vV(e,t,n){return Object.fromEntries(Object.entries(n).filter((function(n){var r=(0,Le.Z)(n,1)[0],o=e.find((function(e){return e.type===t&&e.name===r}));return!!o&&o.attribute.keepOnSplit})))}function gV(e){for(var t=0;t<e.edgeCount;t+=1){var n=e.edge(t).type;if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function yV(e,t){var n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){var r=n.filter((function(e){return null===t||void 0===t?void 0:t.includes(e.type.name)}));e.tr.ensureMarks(r)}}var bV=Object.freeze({__proto__:null,splitBlock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.keepMarks,n=void 0===t||t;return function(e){var t=e.tr,r=e.state,o=e.dispatch,i=e.editor,a=t.selection,s=t.doc,l=a.$from,c=a.$to,u=vV(i.extensionManager.attributes,l.node().type.name,l.node().attrs);if(a instanceof tN&&a.node.isBlock)return!(!l.parentOffset||!AL(s,l.pos))&&(o&&(n&&yV(r,i.extensionManager.splittableMarks),t.split(l.pos).scrollIntoView()),!0);if(!l.parent.isBlock)return!1;if(o){var d=c.parentOffset===c.parent.content.size;a instanceof $L&&t.deleteSelection();var p=0===l.depth?void 0:gV(l.node(-1).contentMatchAt(l.indexAfter(-1))),f=d&&p?[{type:p,attrs:u}]:void 0,h=AL(t.doc,t.mapping.map(l.pos),1,f);if(f||h||!AL(t.doc,t.mapping.map(l.pos),1,p?[{type:p}]:void 0)||(h=!0,f=p?[{type:p,attrs:u}]:void 0),h&&(t.split(t.mapping.map(l.pos),1,f),p&&!d&&!l.parentOffset&&l.parent.type!==p)){var m=t.mapping.map(l.before()),v=t.doc.resolve(m);l.node(-1).canReplaceWith(v.index(),v.index()+1,p)&&t.setNodeMarkup(t.mapping.map(l.before()),p)}n&&yV(r,i.extensionManager.splittableMarks),t.scrollIntoView()}return!0}}}),xV=Object.freeze({__proto__:null,splitListItem:function(e){return function(t){var n,r=t.tr,o=t.state,i=t.dispatch,a=t.editor,s=gW(e,o.schema),l=o.selection,c=l.$from,u=l.$to,d=o.selection.node;if(d&&d.isBlock||c.depth<2||!c.sameParent(u))return!1;var p=c.node(-1);if(p.type!==s)return!1;var f=a.extensionManager.attributes;if(0===c.parent.content.size&&c.node(-1).childCount===c.indexAfter(-1)){if(2===c.depth||c.node(-3).type!==s||c.index(-2)!==c.node(-2).childCount-1)return!1;if(i){for(var h=QF.empty,m=c.index(-1)?1:c.index(-2)?2:3,v=c.depth-m;v>=c.depth-3;v-=1)h=QF.from(c.node(v).copy(h));var g=c.indexAfter(-1)<c.node(-2).childCount?1:c.indexAfter(-2)<c.node(-3).childCount?2:3,y=vV(f,c.node().type.name,c.node().attrs),b=(null===(n=s.contentMatch.defaultType)||void 0===n?void 0:n.createAndFill(y))||void 0;h=h.append(QF.from(s.createAndFill(null,b)||void 0));var x=c.before(c.depth-(m-1));r.replace(x,c.after(-g),new iB(h,4-m,0));var w=-1;r.doc.nodesBetween(x,r.doc.content.size,(function(e,t){if(w>-1)return!1;e.isTextblock&&0===e.content.size&&(w=t+1)})),w>-1&&r.setSelection($L.near(r.doc.resolve(w))),r.scrollIntoView()}return!0}var C=u.pos===c.end()?p.contentMatchAt(0).defaultType:null,j=vV(f,p.type.name,p.attrs),S=vV(f,c.node().type.name,c.node().attrs);r.delete(c.pos,u.pos);var k=C?[{type:s,attrs:j},{type:C,attrs:S}]:[{type:s,attrs:j}];return!!AL(r.doc,c.pos,2)&&(i&&r.split(c.pos,2,k).scrollIntoView(),!0)}}});function wV(e,t){for(var n=e.depth;n>0;n-=1){var r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}function CV(e){return function(t){return wV(t.$from,e)}}function jV(e){return{baseExtensions:e.filter((function(e){return"extension"===e.type})),nodeExtensions:e.filter((function(e){return"node"===e.type})),markExtensions:e.filter((function(e){return"mark"===e.type}))}}function SV(e,t){var n=jV(t).nodeExtensions.find((function(t){return t.name===e}));if(!n)return!1;var r=aW(sW(n,"group",{name:n.name,options:n.options,storage:n.storage}));return"string"===typeof r&&r.split(" ").includes("list")}var kV=function(e,t){var n=CV((function(e){return e.type===t}))(e.selection);if(!n)return!0;var r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(void 0===r)return!0;var o=e.doc.nodeAt(r);return n.node.type!==(null===o||void 0===o?void 0:o.type)||!ML(e.doc,n.pos)||(e.join(n.pos),!0)},ZV=function(e,t){var n=CV((function(e){return e.type===t}))(e.selection);if(!n)return!0;var r=e.doc.resolve(n.start).after(n.depth);if(void 0===r)return!0;var o=e.doc.nodeAt(r);return n.node.type!==(null===o||void 0===o?void 0:o.type)||!ML(e.doc,r)||(e.join(r),!0)},OV=Object.freeze({__proto__:null,toggleList:function(e,t){return function(n){var r=n.editor,o=n.tr,i=n.state,a=n.dispatch,s=n.chain,l=n.commands,c=n.can,u=r.extensionManager.extensions,d=gW(e,i.schema),p=gW(t,i.schema),f=i.selection,h=f.$from,m=f.$to,v=h.blockRange(m);if(!v)return!1;var g=CV((function(e){return SV(e.type.name,u)}))(f);if(v.depth>=1&&g&&v.depth-g.depth<=1){if(g.node.type===d)return l.liftListItem(p);if(SV(g.node.type.name,u)&&d.validContent(g.node.content)&&a)return s().command((function(){return o.setNodeMarkup(g.pos,d),!0})).command((function(){return kV(o,d)})).command((function(){return ZV(o,d)})).run()}return s().command((function(){return!!c().wrapInList(d)||l.clearNodes()})).wrapInList(d).command((function(){return kV(o,d)})).command((function(){return ZV(o,d)})).run()}}});function EV(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.selection,o=r.empty,i=r.ranges,a=t?jW(t,e.schema):null;if(o)return!!(e.storedMarks||e.selection.$from.marks()).filter((function(e){return!a||a.name===e.type.name})).find((function(e){return kW(e.attrs,n,{strict:!1})}));var s=0,l=[];if(i.forEach((function(t){var n=t.$from,r=t.$to,o=n.pos,i=r.pos;e.doc.nodesBetween(o,i,(function(e,t){if(e.isText||e.marks.length){var n=Math.max(o,t),r=Math.min(i,t+e.nodeSize);s+=r-n,l.push.apply(l,(0,dn.Z)(e.marks.map((function(e){return{mark:e,from:n,to:r}}))))}}))})),0===s)return!1;var c=l.filter((function(e){return!a||a.name===e.mark.type.name})).filter((function(e){return kW(e.mark.attrs,n,{strict:!1})})).reduce((function(e,t){return e+t.to-t.from}),0),u=l.filter((function(e){return!a||e.mark.type!==a&&e.mark.type.excludes(a)})).reduce((function(e,t){return e+t.to-t.from}),0),d=c>0?c+u:c;return d>=s}var DV=Object.freeze({__proto__:null,toggleMark:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(r){var o=r.state,i=r.commands,a=n.extendEmptyMarkRange,s=void 0!==a&&a,l=jW(e,o.schema);return EV(o,l,t)?i.unsetMark(l,{extendEmptyMarkRange:s}):i.setMark(l,t)}}}),PV=Object.freeze({__proto__:null,toggleNode:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(r){var o=r.state,i=r.commands,a=gW(e,o.schema),s=gW(t,o.schema);return qW(o,a,n)?i.setNode(s):i.setNode(a,n)}}}),AV=Object.freeze({__proto__:null,toggleWrap:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=n.state,o=n.commands,i=gW(e,r.schema);return qW(r,i,t)?o.lift(i):o.wrapIn(i,t)}}}),MV=Object.freeze({__proto__:null,undoInputRule:function(){return function(e){for(var t=e.state,n=e.dispatch,r=t.plugins,o=0;o<r.length;o+=1){var i=r[o],a=void 0;if(i.spec.isInputRules&&(a=i.getState(t))){if(n){for(var s=t.tr,l=a.transform,c=l.steps.length-1;c>=0;c-=1)s.step(l.steps[c].invert(l.docs[c]));if(a.text){var u=s.doc.resolve(a.from).marks();s.replaceWith(a.from,a.to,t.schema.text(a.text,u))}else s.delete(a.from,a.to)}return!0}}return!1}}}),TV=Object.freeze({__proto__:null,unsetAllMarks:function(){return function(e){var t=e.tr,n=e.dispatch,r=t.selection,o=r.empty,i=r.ranges;return o||n&&i.forEach((function(e){t.removeMark(e.$from.pos,e.$to.pos)})),!0}}}),IV=Object.freeze({__proto__:null,unsetMark:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r,o=n.tr,i=n.state,a=n.dispatch,s=t.extendEmptyMarkRange,l=void 0!==s&&s,c=o.selection,u=jW(e,i.schema),d=c.$from,p=c.empty,f=c.ranges;if(!a)return!0;if(p&&l){var h=c.from,m=c.to,v=null===(r=d.marks().find((function(e){return e.type===u})))||void 0===r?void 0:r.attrs,g=EW(d,u,v);g&&(h=g.from,m=g.to),o.removeMark(h,m,u)}else f.forEach((function(e){o.removeMark(e.$from.pos,e.$to.pos,u)}));return o.removeStoredMark(u),!0}}}),RV=Object.freeze({__proto__:null,updateAttributes:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=n.tr,o=n.state,i=n.dispatch,a=null,s=null,c=XW("string"===typeof e?e:e.name,o.schema);return!!c&&("node"===c&&(a=gW(e,o.schema)),"mark"===c&&(s=jW(e,o.schema)),i&&r.selection.ranges.forEach((function(e){var n=e.$from.pos,i=e.$to.pos;o.doc.nodesBetween(n,i,(function(e,o){a&&a===e.type&&r.setNodeMarkup(o,void 0,(0,l.Z)((0,l.Z)({},e.attrs),t)),s&&e.marks.length&&e.marks.forEach((function(a){if(s===a.type){var c=Math.max(o,n),u=Math.min(o+e.nodeSize,i);r.addMark(c,u,s.create((0,l.Z)((0,l.Z)({},a.attrs),t)))}}))}))})),!0)}}}),FV=Object.freeze({__proto__:null,wrapIn:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=n.state,o=n.dispatch;return NN(gW(e,r.schema),t)(r,o)}}}),BV=Object.freeze({__proto__:null,wrapInList:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=n.state,o=n.dispatch;return GN(gW(e,r.schema),t)(r,o)}}}),LV=lW.create({name:"commands",addCommands:function(){return(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},pW),fW),hW),mW),vW),yW),bW),xW),wW),CW),DW),PW),FW),BW),LW),zW),HW),WW),UW),GW),YW),KW),JW),$W),eV),tV),nV),rV),oV),iV),aV),lV),uV),dV),pV),fV),hV),mV),bV),xV),OV),DV),PV),AV),MV),TV),IV),RV),FV),BV)}}),NV=lW.create({name:"editable",addProseMirrorPlugins:function(){var e=this;return[new vN({key:new bN("editable"),props:{editable:function(){return e.editor.options.editable}}})]}}),_V=lW.create({name:"focusEvents",addProseMirrorPlugins:function(){var e=this.editor;return[new vN({key:new bN("focusEvents"),props:{handleDOMEvents:{focus:function(t,n){e.isFocused=!0;var r=e.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1},blur:function(t,n){e.isFocused=!1;var r=e.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1}}}})]}});function zV(e){var t=e.state,n=e.transaction,r=n.selection,o=n.doc,i=n.storedMarks;return(0,l.Z)((0,l.Z)({},t),{},{schema:t.schema,plugins:t.plugins,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return i},get selection(){return r},get doc(){return o},get tr(){return r=n.selection,o=n.doc,i=n.storedMarks,n}})}var HV=function(){function e(t){(0,Ph.Z)(this,e),this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}return(0,Dh.Z)(e,[{key:"hasCustomState",get:function(){return!!this.customState}},{key:"state",get:function(){return this.customState||this.editor.state}},{key:"commands",get:function(){var e=this,t=this.rawCommands,n=this.editor,r=this.state,o=n.view,i=r.tr,a=this.buildProps(i);return Object.fromEntries(Object.entries(t).map((function(t){var n=(0,Le.Z)(t,2),r=n[0],s=n[1];return[r,function(){var t=s.apply(void 0,arguments)(a);return i.getMeta("preventDispatch")||e.hasCustomState||o.dispatch(i),t}]})))}},{key:"chain",get:function(){var e=this;return function(){return e.createChain()}}},{key:"can",get:function(){var e=this;return function(){return e.createCan()}}},{key:"createChain",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.rawCommands,o=this.editor,i=this.state,a=o.view,s=[],c=!!e,u=e||i.tr,d=function(){return c||!n||u.getMeta("preventDispatch")||t.hasCustomState||a.dispatch(u),s.every((function(e){return!0===e}))},p=(0,l.Z)((0,l.Z)({},Object.fromEntries(Object.entries(r).map((function(e){var r=(0,Le.Z)(e,2),o=r[0],i=r[1];return[o,function(){var e=t.buildProps(u,n),r=i.apply(void 0,arguments)(e);return s.push(r),p}]})))),{},{run:d});return p}},{key:"createCan",value:function(e){var t=this,n=this.rawCommands,r=this.state,o=void 0,i=e||r.tr,a=this.buildProps(i,o),s=Object.fromEntries(Object.entries(n).map((function(e){var t=(0,Le.Z)(e,2),n=t[0],r=t[1];return[n,function(){return r.apply(void 0,arguments)((0,l.Z)((0,l.Z)({},a),{},{dispatch:o}))}]})));return(0,l.Z)((0,l.Z)({},s),{},{chain:function(){return t.createChain(i,o)}})}},{key:"buildProps",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.rawCommands,o=this.editor,i=this.state,a=o.view;i.storedMarks&&e.setStoredMarks(i.storedMarks);var s={tr:e,editor:o,view:a,state:zV({state:i,transaction:e}),dispatch:n?function(){}:void 0,chain:function(){return t.createChain(e)},can:function(){return t.createCan(e)},get commands(){return Object.fromEntries(Object.entries(r).map((function(e){var t=(0,Le.Z)(e,2),n=t[0],r=t[1];return[n,function(){return r.apply(void 0,arguments)(s)}]})))}};return s}}]),e}(),WV=lW.create({name:"keymap",addKeyboardShortcuts:function(){var e=this,t=function(){return e.editor.commands.first((function(e){var t=e.commands;return[function(){return t.undoInputRule()},function(){return t.command((function(e){var n=e.tr,r=n.selection,o=n.doc,i=r.empty,a=r.$anchor,s=a.pos,l=a.parent,c=JL.atStart(o).from===s;return!(!(i&&c&&l.type.isTextblock)||l.textContent.length)&&t.clearNodes()}))},function(){return t.deleteSelection()},function(){return t.joinBackward()},function(){return t.selectNodeBackward()}]}))},n=function(){return e.editor.commands.first((function(e){var t=e.commands;return[function(){return t.deleteSelection()},function(){return t.joinForward()},function(){return t.selectNodeForward()}]}))},r={Enter:function(){return e.editor.commands.first((function(e){var t=e.commands;return[function(){return t.newlineInCode()},function(){return t.createParagraphNear()},function(){return t.liftEmptyBlock()},function(){return t.splitBlock()}]}))},"Mod-Enter":function(){return e.editor.commands.exitCode()},Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:n,"Mod-Delete":n,"Mod-a":function(){return e.editor.commands.selectAll()}},o=(0,l.Z)((0,l.Z)({},r),{},{Home:function(){return e.editor.commands.selectTextblockStart()},End:function(){return e.editor.commands.selectTextblockEnd()}}),i=(0,l.Z)((0,l.Z)({},r),{},{"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":n,"Ctrl-Alt-Backspace":n,"Alt-Delete":n,"Alt-d":n,"Ctrl-a":function(){return e.editor.commands.selectTextblockStart()},"Ctrl-e":function(){return e.editor.commands.selectTextblockEnd()}});return TW()||VW()?i:o},addProseMirrorPlugins:function(){var e=this;return[new vN({key:new bN("clearDocument"),appendTransaction:function(t,n,r){if(t.some((function(e){return e.docChanged}))&&!n.doc.eq(r.doc)){var o=n.selection,i=o.empty,a=o.from,s=o.to,l=JL.atStart(n.doc).from,c=JL.atEnd(n.doc).to,u=a===l&&s===c,d=0===r.doc.textBetween(0,r.doc.content.size," "," ").length;if(!i&&u&&d){var p=r.tr,f=zV({state:r,transaction:p});if(new HV({editor:e.editor,state:f}).commands.clearNodes(),p.steps.length)return p}}}})]}}),VV=lW.create({name:"tabindex",addProseMirrorPlugins:function(){var e=this;return[new vN({key:new bN("tabindex"),props:{attributes:function(){if(e.editor.isEditable)return{tabindex:"0"}}}})]}}),UV=Object.freeze({__proto__:null,ClipboardTextSerializer:dW,Commands:LV,Editable:NV,FocusEvents:_V,Keymap:WV,Tabindex:VV});function qV(e,t){var n=XW("string"===typeof t?t:t.name,e.schema);return"node"===n?function(e,t){var n=gW(t,e.schema),r=e.selection,o=r.from,i=r.to,a=[];e.doc.nodesBetween(o,i,(function(e){a.push(e)}));var s=a.reverse().find((function(e){return e.type.name===n.name}));return s?(0,l.Z)({},s.attrs):{}}(e,t):"mark"===n?cV(e,t):{}}function GV(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t)return qW(e,null,n)||EV(e,null,n);var r=XW(t,e.schema);return"node"===r?qW(e,t,n):"mark"===r&&EV(e,t,n)}function YV(e,t){var n=lL.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}function KV(e,t){return cW(e,{from:0,to:e.content.size},t)}var JV=(0,Dh.Z)((function e(t){(0,Ph.Z)(this,e),this.find=t.find,this.handler=t.handler}));function XV(e){var t,n=e.editor,r=e.from,o=e.to,i=e.text,a=e.rules,s=e.plugin,l=n.view;if(l.composing)return!1;var c=l.state.doc.resolve(r);if(c.parent.type.spec.code||(null===(t=c.nodeBefore||c.nodeAfter)||void 0===t?void 0:t.marks.find((function(e){return e.type.spec.code}))))return!1;var u=!1,d=c.parent.textBetween(Math.max(0,c.parentOffset-500),c.parentOffset,void 0," ")+i;return a.forEach((function(e){if(!u){var t=function(e,t){if(SW(t))return t.exec(e);var n=t(e);if(!n)return null;var r=[];return r.push(n.text),r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r}(d,e.find);if(t){var a=l.state.tr,c=zV({state:l.state,transaction:a}),p={from:r-(t[0].length-i.length),to:o},f=new HV({editor:n,state:c}),h=f.commands,m=f.chain,v=f.can;null!==e.handler({state:c,range:p,match:t,commands:h,chain:m,can:v})&&a.steps.length&&(a.setMeta(s,{transform:a,from:r,to:o,text:i}),l.dispatch(a),u=!0)}}})),u}function QV(e){var t=e.editor,n=e.rules,r=new vN({state:{init:function(){return null},apply:function(e,t){var n=e.getMeta(this);return n||(e.selectionSet||e.docChanged?null:t)}},props:{handleTextInput:function(e,o,i,a){return XV({editor:t,from:o,to:i,text:a,rules:n,plugin:r})},handleDOMEvents:{compositionend:function(e){return setTimeout((function(){var o=e.state.selection.$cursor;o&&XV({editor:t,from:o.pos,to:o.pos,text:"",rules:n,plugin:r})})),!1}},handleKeyDown:function(e,o){if("Enter"!==o.key)return!1;var i=e.state.selection.$cursor;return!!i&&XV({editor:t,from:i.pos,to:i.pos,text:"\n",rules:n,plugin:r})}},isInputRules:!0});return r}var $V=(0,Dh.Z)((function e(t){(0,Ph.Z)(this,e),this.find=t.find,this.handler=t.handler}));function eU(e){var t=e.editor,n=e.state,r=e.from,o=e.to,i=e.rule,a=new HV({editor:t,state:n}),s=a.commands,l=a.chain,c=a.can,u=[];return n.doc.nodesBetween(r,o,(function(e,t){if(e.isTextblock&&!e.type.spec.code){var a=Math.max(r,t),d=Math.min(o,t+e.content.size),p=function(e,t){if(SW(t))return(0,dn.Z)(e.matchAll(t));var n=t(e);return n?n.map((function(t){var n=[];return n.push(t.text),n.index=t.index,n.input=e,n.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),n.push(t.replaceWith)),n})):[]}(e.textBetween(a-t,d-t,void 0,"\ufffc"),i.find);p.forEach((function(e){if(void 0!==e.index){var t=a+e.index+1,r=t+e[0].length,o={from:n.tr.mapping.map(t),to:n.tr.mapping.map(r)},d=i.handler({state:n,range:o,match:e,commands:s,chain:l,can:c});u.push(d)}}))}})),u.every((function(e){return null!==e}))}function tU(e){var t=[],n=jV(e),r=n.nodeExtensions,o=n.markExtensions,i=[].concat((0,dn.Z)(r),(0,dn.Z)(o)),a={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0};return e.forEach((function(e){var n=sW(e,"addGlobalAttributes",{name:e.name,options:e.options,storage:e.storage});n&&n().forEach((function(e){e.types.forEach((function(n){Object.entries(e.attributes).forEach((function(e){var r=(0,Le.Z)(e,2),o=r[0],i=r[1];t.push({type:n,name:o,attribute:(0,l.Z)((0,l.Z)({},a),i)})}))}))}))})),i.forEach((function(e){var n={name:e.name,options:e.options,storage:e.storage},r=sW(e,"addAttributes",n);if(r){var o=r();Object.entries(o).forEach((function(n){var r=(0,Le.Z)(n,2),o=r[0],i=r[1];t.push({type:e.name,name:o,attribute:(0,l.Z)((0,l.Z)({},a),i)})}))}})),t}function nU(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return!!e})).reduce((function(e,t){var n=(0,l.Z)({},e);return Object.entries(t).forEach((function(e){var t=(0,Le.Z)(e,2),r=t[0],o=t[1];n[r]?n[r]="class"===r?[n[r],o].join(" "):"style"===r?[n[r],o].join("; "):o:n[r]=o})),n}),{})}function rU(e,n){return n.filter((function(e){return e.attribute.rendered})).map((function(n){return n.attribute.renderHTML?n.attribute.renderHTML(e.attrs)||{}:(0,t.Z)({},n.name,e.attrs[n.name])})).reduce((function(e,t){return nU(e,t)}),{})}function oU(e,n){return e.style?e:(0,l.Z)((0,l.Z)({},e),{},{getAttrs:function(r){var o=e.getAttrs?e.getAttrs(r):e.attrs;if(!1===o)return!1;var i=n.reduce((function(e,n){var o=n.attribute.parseHTML?n.attribute.parseHTML(r):function(e){return"string"!==typeof e?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):"true"===e||"false"!==e&&e}(r.getAttribute(n.name));return null===o||void 0===o?e:(0,l.Z)((0,l.Z)({},e),{},(0,t.Z)({},n.name,o))}),{});return(0,l.Z)((0,l.Z)({},o),i)}})}function iU(e){return Object.fromEntries(Object.entries(e).filter((function(e){var t=(0,Le.Z)(e,2),n=t[0],r=t[1];return("attrs"!==n||!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.keys(e).length&&e.constructor===Object}(r))&&(null!==r&&void 0!==r)})))}function aU(e){var t,n=tU(e),r=jV(e),o=r.nodeExtensions,i=r.markExtensions,a=null===(t=o.find((function(e){return sW(e,"topNode")})))||void 0===t?void 0:t.name,s=Object.fromEntries(o.map((function(t){var r=n.filter((function(e){return e.type===t.name})),o={name:t.name,options:t.options,storage:t.storage},i=e.reduce((function(e,n){var r=sW(n,"extendNodeSchema",o);return(0,l.Z)((0,l.Z)({},e),r?r(t):{})}),{}),a=iU((0,l.Z)((0,l.Z)({},i),{},{content:aW(sW(t,"content",o)),marks:aW(sW(t,"marks",o)),group:aW(sW(t,"group",o)),inline:aW(sW(t,"inline",o)),atom:aW(sW(t,"atom",o)),selectable:aW(sW(t,"selectable",o)),draggable:aW(sW(t,"draggable",o)),code:aW(sW(t,"code",o)),defining:aW(sW(t,"defining",o)),isolating:aW(sW(t,"isolating",o)),attrs:Object.fromEntries(r.map((function(e){var t;return[e.name,{default:null===(t=null===e||void 0===e?void 0:e.attribute)||void 0===t?void 0:t.default}]})))})),s=aW(sW(t,"parseHTML",o));s&&(a.parseDOM=s.map((function(e){return oU(e,r)})));var c=sW(t,"renderHTML",o);c&&(a.toDOM=function(e){return c({node:e,HTMLAttributes:rU(e,r)})});var u=sW(t,"renderText",o);return u&&(a.toText=u),[t.name,a]}))),c=Object.fromEntries(i.map((function(t){var r=n.filter((function(e){return e.type===t.name})),o={name:t.name,options:t.options,storage:t.storage},i=e.reduce((function(e,n){var r=sW(n,"extendMarkSchema",o);return(0,l.Z)((0,l.Z)({},e),r?r(t):{})}),{}),a=iU((0,l.Z)((0,l.Z)({},i),{},{inclusive:aW(sW(t,"inclusive",o)),excludes:aW(sW(t,"excludes",o)),group:aW(sW(t,"group",o)),spanning:aW(sW(t,"spanning",o)),code:aW(sW(t,"code",o)),attrs:Object.fromEntries(r.map((function(e){var t;return[e.name,{default:null===(t=null===e||void 0===e?void 0:e.attribute)||void 0===t?void 0:t.default}]})))})),s=aW(sW(t,"parseHTML",o));s&&(a.parseDOM=s.map((function(e){return oU(e,r)})));var c=sW(t,"renderHTML",o);return c&&(a.toDOM=function(e){return c({mark:e,HTMLAttributes:rU(e,r)})}),[t.name,a]})));return new KB({topNode:a,nodes:s,marks:c})}function sU(e,t){return t.nodes[e]||t.marks[e]||null}function lU(e,t){return Array.isArray(t)?t.some((function(t){return("string"===typeof t?t:t.name)===e.name})):t}var cU=function(){function e(t,n){var r=this;(0,Ph.Z)(this,e),this.splittableMarks=[],this.editor=n,this.extensions=e.resolve(t),this.schema=aU(this.extensions),this.extensions.forEach((function(e){var t;r.editor.extensionStorage[e.name]=e.storage;var n={name:e.name,options:e.options,storage:e.storage,editor:r.editor,type:sU(e.name,r.schema)};"mark"===e.type&&((null===(t=aW(sW(e,"keepOnSplit",n)))||void 0===t||t)&&r.splittableMarks.push(e.name));var o=sW(e,"onBeforeCreate",n);o&&r.editor.on("beforeCreate",o);var i=sW(e,"onCreate",n);i&&r.editor.on("create",i);var a=sW(e,"onUpdate",n);a&&r.editor.on("update",a);var s=sW(e,"onSelectionUpdate",n);s&&r.editor.on("selectionUpdate",s);var l=sW(e,"onTransaction",n);l&&r.editor.on("transaction",l);var c=sW(e,"onFocus",n);c&&r.editor.on("focus",c);var u=sW(e,"onBlur",n);u&&r.editor.on("blur",u);var d=sW(e,"onDestroy",n);d&&r.editor.on("destroy",d)}))}return(0,Dh.Z)(e,[{key:"commands",get:function(){var e=this;return this.extensions.reduce((function(t,n){var r=sW(n,"addCommands",{name:n.name,options:n.options,storage:n.storage,editor:e.editor,type:sU(n.name,e.schema)});return r?(0,l.Z)((0,l.Z)({},t),r()):t}),{})}},{key:"plugins",get:function(){var t=this,n=this.editor,r=e.sort((0,dn.Z)(this.extensions).reverse()),o=[],i=[],a=r.map((function(e){var r={name:e.name,options:e.options,storage:e.storage,editor:n,type:sU(e.name,t.schema)},a=[],s=sW(e,"addKeyboardShortcuts",r);if(s){var l=function(e){return new vN({props:{handleKeyDown:nW(e)}})}(Object.fromEntries(Object.entries(s()).map((function(e){var t=(0,Le.Z)(e,2),r=t[0],o=t[1];return[r,function(){return o({editor:n})}]}))));a.push(l)}var c=sW(e,"addInputRules",r);lU(e,n.options.enableInputRules)&&c&&o.push.apply(o,(0,dn.Z)(c()));var u=sW(e,"addPasteRules",r);lU(e,n.options.enablePasteRules)&&u&&i.push.apply(i,(0,dn.Z)(u()));var d=sW(e,"addProseMirrorPlugins",r);if(d){var p=d();a.push.apply(a,(0,dn.Z)(p))}return a})).flat();return[QV({editor:n,rules:o})].concat((0,dn.Z)(function(e){var t=e.editor,n=e.rules,r=null,o=!1,i=!1,a=n.map((function(e){return new vN({view:function(e){var t=function(t){var n;r=(null===(n=e.dom.parentElement)||void 0===n?void 0:n.contains(t.target))?e.dom.parentElement:null};return window.addEventListener("dragstart",t),{destroy:function(){window.removeEventListener("dragstart",t)}}},props:{handleDOMEvents:{drop:function(e){return i=r===e.dom.parentElement,!1},paste:function(e,t){var n,r=null===(n=t.clipboardData)||void 0===n?void 0:n.getData("text/html");return o=!!(null===r||void 0===r?void 0:r.includes("data-pm-slice")),!1}}},appendTransaction:function(n,r,a){var s=n[0],l="paste"===s.getMeta("uiEvent")&&!o,c="drop"===s.getMeta("uiEvent")&&!i;if(l||c){var u=r.doc.content.findDiffStart(a.doc.content),d=r.doc.content.findDiffEnd(a.doc.content);if(function(e){return"number"===typeof e}(u)&&d&&u!==d.b){var p=a.tr,f=zV({state:a,transaction:p});if(eU({editor:t,state:f,from:Math.max(u-1,0),to:d.b,rule:e})&&p.steps.length)return p}}}})}));return a}({editor:n,rules:i})),(0,dn.Z)(a))}},{key:"attributes",get:function(){return tU(this.extensions)}},{key:"nodeViews",get:function(){var e=this,t=this.editor,n=jV(this.extensions).nodeExtensions;return Object.fromEntries(n.filter((function(e){return!!sW(e,"addNodeView")})).map((function(n){var r=e.attributes.filter((function(e){return e.type===n.name})),o={name:n.name,options:n.options,storage:n.storage,editor:t,type:gW(n.name,e.schema)},i=sW(n,"addNodeView",o);if(!i)return[];return[n.name,function(e,o,a,s){var l=rU(e,r);return i()({editor:t,node:e,getPos:a,decorations:s,HTMLAttributes:l,extension:n})}]})))}}],[{key:"resolve",value:function(t){var n=e.sort(e.flatten(t)),r=function(e){var t=e.filter((function(t,n){return e.indexOf(t)!==n}));return(0,dn.Z)(new Set(t))}(n.map((function(e){return e.name})));return r.length&&console.warn("[tiptap warn]: Duplicate extension names found: [".concat(r.map((function(e){return"'".concat(e,"'")})).join(", "),"]. This can lead to issues.")),n}},{key:"flatten",value:function(e){var t=this;return e.map((function(e){var n=sW(e,"addExtensions",{name:e.name,options:e.options,storage:e.storage});return n?[e].concat((0,dn.Z)(t.flatten(n()))):e})).flat(10)}},{key:"sort",value:function(e){return e.sort((function(e,t){var n=sW(e,"priority")||100,r=sW(t,"priority")||100;return n>r?-1:n<r?1:0}))}}]),e}(),uU=function(){function e(){(0,Ph.Z)(this,e),this.callbacks={}}return(0,Dh.Z)(e,[{key:"on",value:function(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}},{key:"emit",value:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=this.callbacks[e];return i&&i.forEach((function(e){return e.apply(t,r)})),this}},{key:"off",value:function(e,t){var n=this.callbacks[e];return n&&(t?this.callbacks[e]=n.filter((function(e){return e!==t})):delete this.callbacks[e]),this}},{key:"removeAllListeners",value:function(){this.callbacks={}}}]),e}(),dU=function(e){(0,qF.Z)(n,e);var t=(0,GF.Z)(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,Ph.Z)(this,n),(e=t.call(this)).isFocused=!1,e.extensionStorage={},e.options={element:document.createElement("div"),content:"",injectCSS:!0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,onBeforeCreate:function(){return null},onCreate:function(){return null},onUpdate:function(){return null},onSelectionUpdate:function(){return null},onTransaction:function(){return null},onFocus:function(){return null},onBlur:function(){return null},onDestroy:function(){return null}},e.isCapturingTransaction=!1,e.capturedTransaction=null,e.setOptions(r),e.createExtensionManager(),e.createCommandManager(),e.createSchema(),e.on("beforeCreate",e.options.onBeforeCreate),e.emit("beforeCreate",{editor:(0,UF.Z)(e)}),e.createView(),e.injectCSS(),e.on("create",e.options.onCreate),e.on("update",e.options.onUpdate),e.on("selectionUpdate",e.options.onSelectionUpdate),e.on("transaction",e.options.onTransaction),e.on("focus",e.options.onFocus),e.on("blur",e.options.onBlur),e.on("destroy",e.options.onDestroy),window.setTimeout((function(){e.isDestroyed||(e.commands.focus(e.options.autofocus),e.emit("create",{editor:(0,UF.Z)(e)}))}),0),e}return(0,Dh.Z)(n,[{key:"storage",get:function(){return this.extensionStorage}},{key:"commands",get:function(){return this.commandManager.commands}},{key:"chain",value:function(){return this.commandManager.chain()}},{key:"can",value:function(){return this.commandManager.can()}},{key:"injectCSS",value:function(){this.options.injectCSS&&document&&(this.css=function(e){var t=document.querySelector("style[data-tiptap-style]");if(null!==t)return t;var n=document.createElement("style");return n.setAttribute("data-tiptap-style",""),n.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(n),n}('.ProseMirror {\n  position: relative;\n}\n\n.ProseMirror {\n  word-wrap: break-word;\n  white-space: pre-wrap;\n  white-space: break-spaces;\n  -webkit-font-variant-ligatures: none;\n  font-variant-ligatures: none;\n  font-feature-settings: "liga" 0; /* the above doesn\'t seem to work in Edge */\n}\n\n.ProseMirror [contenteditable="false"] {\n  white-space: normal;\n}\n\n.ProseMirror [contenteditable="false"] [contenteditable="true"] {\n  white-space: pre-wrap;\n}\n\n.ProseMirror pre {\n  white-space: pre-wrap;\n}\n\nimg.ProseMirror-separator {\n  display: inline !important;\n  border: none !important;\n  margin: 0 !important;\n  width: 1px !important;\n  height: 1px !important;\n}\n\n.ProseMirror-gapcursor {\n  display: none;\n  pointer-events: none;\n  position: absolute;\n  margin: 0;\n}\n\n.ProseMirror-gapcursor:after {\n  content: "";\n  display: block;\n  position: absolute;\n  top: -2px;\n  width: 20px;\n  border-top: 1px solid black;\n  animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n  to {\n    visibility: hidden;\n  }\n}\n\n.ProseMirror-hideselection *::selection {\n  background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n  background: transparent;\n}\n\n.ProseMirror-hideselection * {\n  caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n  display: block;\n}\n\n.tippy-box[data-animation=fade][data-state=hidden] {\n  opacity: 0\n}'))}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=(0,l.Z)((0,l.Z)({},this.options),e),this.view&&this.state&&!this.isDestroyed&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}},{key:"setEditable",value:function(e){this.setOptions({editable:e})}},{key:"isEditable",get:function(){return this.options.editable&&this.view&&this.view.editable}},{key:"state",get:function(){return this.view.state}},{key:"registerPlugin",value:function(e,t){var n=iW(t)?t(e,this.state.plugins):[].concat((0,dn.Z)(this.state.plugins),[e]),r=this.state.reconfigure({plugins:n});this.view.updateState(r)}},{key:"unregisterPlugin",value:function(e){if(!this.isDestroyed){var t="string"===typeof e?"".concat(e,"$"):e.key,n=this.state.reconfigure({plugins:this.state.plugins.filter((function(e){return!e.key.startsWith(t)}))});this.view.updateState(n)}}},{key:"createExtensionManager",value:function(){var e=this.options.enableCoreExtensions?Object.values(UV):[],t=[].concat((0,dn.Z)(e),(0,dn.Z)(this.options.extensions)).filter((function(e){return["extension","node","mark"].includes(null===e||void 0===e?void 0:e.type)}));this.extensionManager=new cU(t,this)}},{key:"createCommandManager",value:function(){this.commandManager=new HV({editor:this})}},{key:"createSchema",value:function(){this.schema=this.extensionManager.schema}},{key:"createView",value:function(){var e=sV(this.options.content,this.schema,this.options.parseOptions),t=RW(e,this.options.autofocus);this.view=new FH(this.options.element,(0,l.Z)((0,l.Z)({},this.options.editorProps),{},{dispatchTransaction:this.dispatchTransaction.bind(this),state:pN.create({doc:e,selection:t})}));var n=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(n),this.createNodeViews(),this.view.dom.editor=this}},{key:"createNodeViews",value:function(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}},{key:"captureTransaction",value:function(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;var t=this.capturedTransaction;return this.capturedTransaction=null,t}},{key:"dispatchTransaction",value:function(e){var t=this;if(this.isCapturingTransaction)return this.capturedTransaction?void e.steps.forEach((function(e){var n;return null===(n=t.capturedTransaction)||void 0===n?void 0:n.step(e)})):void(this.capturedTransaction=e);var n=this.state.apply(e),r=!this.state.selection.eq(n.selection);this.view.updateState(n),this.emit("transaction",{editor:this,transaction:e}),r&&this.emit("selectionUpdate",{editor:this,transaction:e});var o=e.getMeta("focus"),i=e.getMeta("blur");o&&this.emit("focus",{editor:this,event:o.event,transaction:e}),i&&this.emit("blur",{editor:this,event:i.event,transaction:e}),e.docChanged&&!e.getMeta("preventUpdate")&&this.emit("update",{editor:this,transaction:e})}},{key:"getAttributes",value:function(e){return qV(this.state,e)}},{key:"isActive",value:function(e,t){var n="string"===typeof e?e:null,r="string"===typeof e?t:e;return GV(this.state,n,r)}},{key:"getJSON",value:function(){return this.state.doc.toJSON()}},{key:"getHTML",value:function(){return YV(this.state.doc.content,this.schema)}},{key:"getText",value:function(e){var t=e||{},n=t.blockSeparator,r=void 0===n?"\n\n":n,o=t.textSerializers,i=void 0===o?{}:o;return KV(this.state.doc,{blockSeparator:r,textSerializers:(0,l.Z)((0,l.Z)({},i),uW(this.schema))})}},{key:"isEmpty",get:function(){return function(e){var t,n=null===(t=e.type.createAndFill())||void 0===t?void 0:t.toJSON(),r=e.toJSON();return JSON.stringify(n)===JSON.stringify(r)}(this.state.doc)}},{key:"getCharacterCount",value:function(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}},{key:"destroy",value:function(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}},{key:"isDestroyed",get:function(){var e;return!(null===(e=this.view)||void 0===e?void 0:e.docView)}}]),n}(uU),pU=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,Ph.Z)(this,e),this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config=(0,l.Z)((0,l.Z)({},this.config),t),this.name=this.config.name,t.defaultOptions&&console.warn('[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "'.concat(this.name,'".')),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=aW(sW(this,"addOptions",{name:this.name}))),this.storage=aW(sW(this,"addStorage",{name:this.name,options:this.options}))||{}}return(0,Dh.Z)(e,[{key:"configure",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.extend();return t.options=oW(this.options,e),t.storage=aW(sW(t,"addStorage",{name:t.name,options:t.options})),t}},{key:"extend",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=new e(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&console.warn('[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "'.concat(n.name,'".')),n.options=aW(sW(n,"addOptions",{name:n.name})),n.storage=aW(sW(n,"addStorage",{name:n.name,options:n.options})),n}}],[{key:"create",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new e(t)}}]),e}(),fU=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,Ph.Z)(this,e),this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config=(0,l.Z)((0,l.Z)({},this.config),t),this.name=this.config.name,t.defaultOptions&&console.warn('[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "'.concat(this.name,'".')),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=aW(sW(this,"addOptions",{name:this.name}))),this.storage=aW(sW(this,"addStorage",{name:this.name,options:this.options}))||{}}return(0,Dh.Z)(e,[{key:"configure",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.extend();return t.options=oW(this.options,e),t.storage=aW(sW(t,"addStorage",{name:t.name,options:t.options})),t}},{key:"extend",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=new e(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&console.warn('[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "'.concat(n.name,'".')),n.options=aW(sW(n,"addOptions",{name:n.name})),n.storage=aW(sW(n,"addStorage",{name:n.name,options:n.options})),n}}],[{key:"create",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new e(t)}}]),e}();function hU(e){return new JV({find:e.find,handler:function(t){var n=t.state,r=t.range,o=t.match,i=aW(e.getAttributes,void 0,o)||{},a=n.tr,s=r.from,l=r.to;if(o[1]){var c=s+o[0].lastIndexOf(o[1]);c>l?c=l:l=c+o[1].length;var u=o[0][o[0].length-1];a.insertText(u,s+o[0].length-1),a.replaceWith(c,l,e.type.create(i))}else o[0]&&a.replaceWith(s,l,e.type.create(i))}})}function mU(e,t,n){var r=[];return e===t?n.resolve(e).marks().forEach((function(t){var o=EW(n.resolve(e-1),t.type);o&&r.push((0,l.Z)({mark:t},o))})):n.nodesBetween(e,t,(function(e,t){r.push.apply(r,(0,dn.Z)(e.marks.map((function(n){return{from:t,to:t+e.nodeSize,mark:n}}))))})),r}function vU(e){return new JV({find:e.find,handler:function(t){var n=t.state,r=t.range,o=t.match,i=aW(e.getAttributes,void 0,o);if(!1===i||null===i)return null;var a=n.tr,s=o[o.length-1],l=o[0],c=r.to;if(s){var u=l.search(/\S/),d=r.from+l.indexOf(s),p=d+s.length;if(mU(r.from,r.to,n.doc).filter((function(t){return t.mark.type.excluded.find((function(n){return n===e.type&&n!==t.mark.type}))})).filter((function(e){return e.to>d})).length)return null;p<r.to&&a.delete(p,r.to),d>r.from&&a.delete(r.from+u,d),c=r.from+u+s.length,a.addMark(r.from+u,c,e.type.create(i||{})),a.removeStoredMark(e.type)}}})}function gU(e){return new JV({find:e.find,handler:function(t){var n=t.state,r=t.range,o=t.match,i=n.doc.resolve(r.from),a=aW(e.getAttributes,void 0,o)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),e.type))return null;n.tr.delete(r.from,r.to).setBlockType(r.from,r.from,e.type,a)}})}function yU(e){return new JV({find:e.find,handler:function(t){var n=t.state,r=t.range,o=t.match,i=aW(e.getAttributes,void 0,o)||{},a=n.tr.delete(r.from,r.to),s=a.doc.resolve(r.from).blockRange(),l=s&&DL(s,e.type,i);if(!l)return null;a.wrap(s,l);var c=a.doc.resolve(r.from-1).nodeBefore;c&&c.type===e.type&&ML(a.doc,r.from-1)&&(!e.joinPredicate||e.joinPredicate(o,c))&&a.join(r.from-1)}})}function bU(e){return new $V({find:e.find,handler:function(t){var n=t.state,r=t.range,o=t.match,i=aW(e.getAttributes,void 0,o);if(!1===i||null===i)return null;var a=n.tr,s=o[o.length-1],l=o[0],c=r.to;if(s){var u=l.search(/\S/),d=r.from+l.indexOf(s),p=d+s.length;if(mU(r.from,r.to,n.doc).filter((function(t){return t.mark.type.excluded.find((function(n){return n===e.type&&n!==t.mark.type}))})).filter((function(e){return e.to>d})).length)return null;p<r.to&&a.delete(p,r.to),d>r.from&&a.delete(r.from+u,d),c=r.from+u+s.length,a.addMark(r.from+u,c,e.type.create(i||{})),a.removeStoredMark(e.type)}}})}function xU(e){var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:JSON.stringify,n={};return e.filter((function(e){var r=t(e);return!Object.prototype.hasOwnProperty.call(n,r)&&(n[r]=!0)}))}(e);return 1===t.length?t:t.filter((function(e,n){var r=t.filter((function(e,t){return t!==n}));return!r.some((function(t){return e.oldRange.from>=t.oldRange.from&&e.oldRange.to<=t.oldRange.to&&e.newRange.from>=t.newRange.from&&e.newRange.to<=t.newRange.to}))}))}function wU(e,t,n){var r=e.state.doc.content.size,o=IW(t,0,r),i=IW(n,0,r),a=e.coordsAtPos(o),s=e.coordsAtPos(i,-1),c=Math.min(a.top,s.top),u=Math.max(a.bottom,s.bottom),d=Math.min(a.left,s.left),p=Math.max(a.right,s.right),f={top:c,bottom:u,left:d,right:p,width:p-d,height:u-c,x:d,y:c};return(0,l.Z)((0,l.Z)({},f),{},{toJSON:function(){return f}})}var CU=n(99715),jU=n(75444),SU="tippy-content",kU="tippy-backdrop",ZU="tippy-arrow",OU="tippy-svg-arrow",EU={passive:!0,capture:!0},DU=function(){return document.body};function PU(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function AU(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function MU(e,t){return"function"===typeof e?e.apply(void 0,t):e}function TU(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function IU(e){return[].concat(e)}function RU(e,t){-1===e.indexOf(t)&&e.push(t)}function FU(e){return e.split("-")[0]}function BU(e){return[].slice.call(e)}function LU(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function NU(){return document.createElement("div")}function _U(e){return["Element","Fragment"].some((function(t){return AU(e,t)}))}function zU(e){return AU(e,"MouseEvent")}function HU(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function WU(e){return _U(e)?[e]:function(e){return AU(e,"NodeList")}(e)?BU(e):Array.isArray(e)?e:BU(document.querySelectorAll(e))}function VU(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function UU(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function qU(e){var t,n=IU(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function GU(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function YU(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var KU={isTouch:!1},JU=0;function XU(){KU.isTouch||(KU.isTouch=!0,window.performance&&document.addEventListener("mousemove",QU))}function QU(){var e=performance.now();e-JU<20&&(KU.isTouch=!1,document.removeEventListener("mousemove",QU)),JU=e}function $U(){var e=document.activeElement;if(HU(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var eq=!!("undefined"!==typeof window&&"undefined"!==typeof document)&&!!window.msCrypto;var tq={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},nq=Object.assign({appendTo:DU,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},tq,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),rq=Object.keys(nq);function oq(e){var t=(e.plugins||[]).reduce((function(t,n){var r,o=n.name,i=n.defaultValue;o&&(t[o]=void 0!==e[o]?e[o]:null!=(r=nq[o])?r:i);return t}),{});return Object.assign({},e,t)}function iq(e,t){var n=Object.assign({},t,{content:MU(t.content,[e])},t.ignoreAttributes?{}:function(e,t){var n=(t?Object.keys(oq(Object.assign({},nq,{plugins:t}))):rq).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(o){t[n]=r}return t}),{});return n}(e,t.plugins));return n.aria=Object.assign({},nq.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function aq(e,t){e.innerHTML=t}function sq(e){var t=NU();return!0===e?t.className=ZU:(t.className=OU,_U(e)?t.appendChild(e):aq(t,e)),t}function lq(e,t){_U(t.content)?(aq(e,""),e.appendChild(t.content)):"function"!==typeof t.content&&(t.allowHTML?aq(e,t.content):e.textContent=t.content)}function cq(e){var t=e.firstElementChild,n=BU(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(SU)})),arrow:n.find((function(e){return e.classList.contains(ZU)||e.classList.contains(OU)})),backdrop:n.find((function(e){return e.classList.contains(kU)}))}}function uq(e){var t=NU(),n=NU();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=NU();function o(n,r){var o=cq(t),i=o.box,a=o.content,s=o.arrow;r.theme?i.setAttribute("data-theme",r.theme):i.removeAttribute("data-theme"),"string"===typeof r.animation?i.setAttribute("data-animation",r.animation):i.removeAttribute("data-animation"),r.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"===typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?i.setAttribute("role",r.role):i.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||lq(a,e.props),r.arrow?s?n.arrow!==r.arrow&&(i.removeChild(s),i.appendChild(sq(r.arrow))):i.appendChild(sq(r.arrow)):s&&i.removeChild(s)}return r.className=SU,r.setAttribute("data-state","hidden"),lq(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}uq.$$tippy=!0;var dq=1,pq=[],fq=[];function hq(e,t){var n,r,o,i,a,s,l,c,u=iq(e,Object.assign({},nq,oq(LU(t)))),d=!1,p=!1,f=!1,h=!1,m=[],v=TU(G,u.interactiveDebounce),g=dq++,y=(c=u.plugins).filter((function(e,t){return c.indexOf(e)===t})),b={id:g,reference:e,popper:NU(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(o)},setProps:function(t){0;if(b.state.isDestroyed)return;T("onBeforeUpdate",[b,t]),U();var n=b.props,r=iq(e,Object.assign({},n,LU(t),{ignoreAttributes:!0}));b.props=r,V(),n.interactiveDebounce!==r.interactiveDebounce&&(F(),v=TU(G,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?IU(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");R(),M(),C&&C(n,r);b.popperInstance&&(X(),$().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));T("onAfterUpdate",[b,t])},setContent:function(e){b.setProps({content:e})},show:function(){0;var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=KU.isTouch&&!b.props.touch,o=PU(b.props.duration,0,nq.duration);if(e||t||n||r)return;if(E().hasAttribute("disabled"))return;if(T("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,O()&&(w.style.visibility="visible");M(),_(),b.state.isMounted||(w.style.transition="none");if(O()){var i=P(),a=i.box,l=i.content;VU([a,l],0)}s=function(){var e;if(b.state.isVisible&&!h){if(h=!0,w.offsetHeight,w.style.transition=b.props.moveTransition,O()&&b.props.animation){var t=P(),n=t.box,r=t.content;VU([n,r],o),UU([n,r],"visible")}I(),R(),RU(fq,b),null==(e=b.popperInstance)||e.forceUpdate(),T("onMount",[b]),b.props.animation&&O()&&function(e,t){H(e,t)}(o,(function(){b.state.isShown=!0,T("onShown",[b])}))}},function(){var e,t=b.props.appendTo,n=E();e=b.props.interactive&&t===DU||"parent"===t?n.parentNode:MU(t,[n]);e.contains(w)||e.appendChild(w);b.state.isMounted=!0,X(),!1}()},hide:function(){0;var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=PU(b.props.duration,1,nq.duration);if(e||t||n)return;if(T("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,h=!1,d=!1,O()&&(w.style.visibility="hidden");if(F(),z(),M(!0),O()){var o=P(),i=o.box,a=o.content;b.props.animation&&(VU([i,a],r),UU([i,a],"hidden"))}I(),R(),b.props.animation?O()&&function(e,t){H(e,(function(){!b.state.isVisible&&w.parentNode&&w.parentNode.contains(w)&&t()}))}(r,b.unmount):b.unmount()},hideWithInteractivity:function(e){0;D().addEventListener("mousemove",v),RU(pq,v),v(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){0;b.state.isVisible&&b.hide();if(!b.state.isMounted)return;Q(),$().forEach((function(e){e._tippy.unmount()})),w.parentNode&&w.parentNode.removeChild(w);fq=fq.filter((function(e){return e!==b})),b.state.isMounted=!1,T("onHidden",[b])},destroy:function(){0;if(b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),U(),delete e._tippy,b.state.isDestroyed=!0,T("onDestroy",[b])}};if(!u.render)return b;var x=u.render(b),w=x.popper,C=x.onUpdate;w.setAttribute("data-tippy-root",""),w.id="tippy-"+b.id,b.popper=w,e._tippy=b,w._tippy=b;var j=y.map((function(e){return e.fn(b)})),S=e.hasAttribute("aria-expanded");return V(),R(),M(),T("onCreate",[b]),u.showOnCreate&&ee(),w.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),w.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&D().addEventListener("mousemove",v)})),b;function k(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function Z(){return"hold"===k()[0]}function O(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function E(){return l||e}function D(){var e=E().parentNode;return e?qU(e):document}function P(){return cq(w)}function A(e){return b.state.isMounted&&!b.state.isVisible||KU.isTouch||i&&"focus"===i.type?0:PU(b.props.delay,e?0:1,nq.delay)}function M(e){void 0===e&&(e=!1),w.style.pointerEvents=b.props.interactive&&!e?"":"none",w.style.zIndex=""+b.props.zIndex}function T(e,t,n){var r;(void 0===n&&(n=!0),j.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(r=b.props)[e].apply(r,t)}function I(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,r=w.id;IU(b.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function R(){!S&&b.props.aria.expanded&&IU(b.props.triggerTarget||e).forEach((function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===E()?"true":"false"):e.removeAttribute("aria-expanded")}))}function F(){D().removeEventListener("mousemove",v),pq=pq.filter((function(e){return e!==v}))}function B(t){if(!KU.isTouch||!f&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!YU(w,n)){if(IU(b.props.triggerTarget||e).some((function(e){return YU(e,n)}))){if(KU.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else T("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),p=!0,setTimeout((function(){p=!1})),b.state.isMounted||z())}}}function L(){f=!0}function N(){f=!1}function _(){var e=D();e.addEventListener("mousedown",B,!0),e.addEventListener("touchend",B,EU),e.addEventListener("touchstart",N,EU),e.addEventListener("touchmove",L,EU)}function z(){var e=D();e.removeEventListener("mousedown",B,!0),e.removeEventListener("touchend",B,EU),e.removeEventListener("touchstart",N,EU),e.removeEventListener("touchmove",L,EU)}function H(e,t){var n=P().box;function r(e){e.target===n&&(GU(n,"remove",r),t())}if(0===e)return t();GU(n,"remove",a),GU(n,"add",r),a=r}function W(t,n,r){void 0===r&&(r=!1),IU(b.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),m.push({node:e,eventType:t,handler:n,options:r})}))}function V(){Z()&&(W("touchstart",q,{passive:!0}),W("touchend",Y,{passive:!0})),function(e){return e.split(/\s+/).filter(Boolean)}(b.props.trigger).forEach((function(e){if("manual"!==e)switch(W(e,q),e){case"mouseenter":W("mouseleave",Y);break;case"focus":W(eq?"focusout":"blur",K);break;case"focusin":W("focusout",K)}}))}function U(){m.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),m=[]}function q(e){var t,n=!1;if(b.state.isEnabled&&!J(e)&&!p){var r="focus"===(null==(t=i)?void 0:t.type);i=e,l=e.currentTarget,R(),!b.state.isVisible&&zU(e)&&pq.forEach((function(t){return t(e)})),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||d)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:ee(e),"click"===e.type&&(d=!n),n&&!r&&te(e)}}function G(e){var t=e.target,n=E().contains(t)||w.contains(t);if("mousemove"!==e.type||!n){var r=$().concat(w).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:u}:null})).filter(Boolean);(function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,a=FU(o.placement),s=o.modifiersData.offset;if(!s)return!0;var l="bottom"===a?s.top.y:0,c="top"===a?s.bottom.y:0,u="right"===a?s.left.x:0,d="left"===a?s.right.x:0,p=t.top-r+l>i,f=r-t.bottom-c>i,h=t.left-n+u>i,m=n-t.right-d>i;return p||f||h||m}))})(r,e)&&(F(),te(e))}}function Y(e){J(e)||b.props.trigger.indexOf("click")>=0&&d||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function K(e){b.props.trigger.indexOf("focusin")<0&&e.target!==E()||b.props.interactive&&e.relatedTarget&&w.contains(e.relatedTarget)||te(e)}function J(e){return!!KU.isTouch&&Z()!==e.type.indexOf("touch")>=0}function X(){Q();var t=b.props,n=t.popperOptions,r=t.placement,o=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,l=O()?cq(w).arrow:null,c=i?{getBoundingClientRect:i,contextElement:i.contextElement||E()}:e,u={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(O()){var n=P().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}},d=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},u];O()&&l&&d.push({name:"arrow",options:{element:l,padding:3}}),d.push.apply(d,(null==n?void 0:n.modifiers)||[]),b.popperInstance=(0,CU.fi)(c,w,Object.assign({},n,{placement:r,onFirstUpdate:s,modifiers:d}))}function Q(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function $(){return BU(w.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&T("onTrigger",[b,e]),_();var t=A(!0),r=k(),o=r[0],i=r[1];KU.isTouch&&"hold"===o&&i&&(t=i),t?n=setTimeout((function(){b.show()}),t):b.show()}function te(e){if(b.clearDelayTimeouts(),T("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&d)){var t=A(!1);t?r=setTimeout((function(){b.state.isVisible&&b.hide()}),t):o=requestAnimationFrame((function(){b.hide()}))}}else z()}}function mq(e,t){void 0===t&&(t={});var n=nq.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",XU,EU),window.addEventListener("blur",$U);var r=Object.assign({},t,{plugins:n}),o=WU(e).reduce((function(e,t){var n=t&&hq(t,r);return n&&e.push(n),e}),[]);return _U(e)?o[0]:o}mq.defaultProps=nq,mq.setDefaultProps=function(e){Object.keys(e).forEach((function(t){nq[t]=e[t]}))},mq.currentInput=KU;Object.assign({},jU.Z,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});mq.setDefaultProps({render:uq});var vq=mq,gq=function(){function e(t){var n=this,r=t.editor,o=t.element,i=t.view,a=t.tippyOptions,s=void 0===a?{}:a,l=t.shouldShow;(0,Ph.Z)(this,e),this.preventHide=!1,this.shouldShow=function(e){var t=e.view,n=e.state,r=e.from,o=e.to,i=n.doc,a=n.selection.empty,s=!i.textBetween(r,o).length&&MW(n.selection);return!(!t.hasFocus()||a||s)},this.mousedownHandler=function(){n.preventHide=!0},this.dragstartHandler=function(){n.hide()},this.focusHandler=function(){setTimeout((function(){return n.update(n.editor.view)}))},this.blurHandler=function(e){var t,r=e.event;n.preventHide?n.preventHide=!1:(null===r||void 0===r?void 0:r.relatedTarget)&&(null===(t=n.element.parentNode)||void 0===t?void 0:t.contains(r.relatedTarget))||n.hide()},this.editor=r,this.element=o,this.view=i,l&&(this.shouldShow=l),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=s,this.element.remove(),this.element.style.visibility="visible"}return(0,Dh.Z)(e,[{key:"createTooltip",value:function(){var e=this,t=this.editor.options.element,n=!!t.parentElement;!this.tippy&&n&&(this.tippy=vq(t,(0,l.Z)({duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle"},this.tippyOptions)),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",(function(t){e.blurHandler({event:t})})))}},{key:"update",value:function(e,t){var n,r,o=e.state,i=e.composing,a=o.doc,s=o.selection,l=t&&t.doc.eq(a)&&t.selection.eq(s);if(!i&&!l){this.createTooltip();var c=s.ranges,u=Math.min.apply(Math,(0,dn.Z)(c.map((function(e){return e.$from.pos})))),d=Math.max.apply(Math,(0,dn.Z)(c.map((function(e){return e.$to.pos}))));(null===(n=this.shouldShow)||void 0===n?void 0:n.call(this,{editor:this.editor,view:e,state:o,oldState:t,from:u,to:d}))?(null===(r=this.tippy)||void 0===r||r.setProps({getReferenceClientRect:function(){if(function(e){return AW(e)&&e instanceof tN}(o.selection)){var t=e.nodeDOM(u);if(t)return t.getBoundingClientRect()}return wU(e,u,d)}}),this.show()):this.hide()}}},{key:"show",value:function(){var e;null===(e=this.tippy)||void 0===e||e.show()}},{key:"hide",value:function(){var e;null===(e=this.tippy)||void 0===e||e.hide()}},{key:"destroy",value:function(){var e;null===(e=this.tippy)||void 0===e||e.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}]),e}(),yq=function(e){return new vN({key:"string"===typeof e.pluginKey?new bN(e.pluginKey):e.pluginKey,view:function(t){return new gq((0,l.Z)({view:t},e))}})},bq=lW.create({name:"bubbleMenu",addOptions:function(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",shouldShow:null}},addProseMirrorPlugins:function(){return this.options.element?[yq({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}}),xq=pU.create({name:"doc",topNode:!0,content:"block+"}),wq=fU.create({name:"textStyle",addOptions:function(){return{HTMLAttributes:{}}},parseHTML:function(){return[{tag:"span",getAttrs:function(e){return!!e.hasAttribute("style")&&{}}}]},renderHTML:function(e){var t=e.HTMLAttributes;return["span",nU(this.options.HTMLAttributes,t),0]},addCommands:function(){var e=this;return{removeEmptyTextStyle:function(){return function(t){var n=t.state,r=t.commands,o=cV(n,e.type);return!!Object.entries(o).some((function(e){return!!(0,Le.Z)(e,2)[1]}))||r.unsetMark(e.name)}}}}}),Cq=lW.create({name:"fontFamily",addOptions:function(){return{types:["textStyle"]}},addGlobalAttributes:function(){return[{types:this.options.types,attributes:{fontFamily:{default:null,parseHTML:function(e){return e.style.fontFamily.replace(/['"]+/g,"")},renderHTML:function(e){return e.fontFamily?{style:"font-family: ".concat(e.fontFamily)}:{}}}}}]},addCommands:function(){return{setFontFamily:function(e){return function(t){return(0,t.chain)().setMark("textStyle",{fontFamily:e}).run()}},unsetFontFamily:function(){return function(e){return(0,e.chain)().setMark("textStyle",{fontFamily:null}).removeEmptyTextStyle().run()}}}}}),jq=/(?:^|\s)((?:==)((?:[^~=]+))(?:==))$/,Sq=/(?:^|\s)((?:==)((?:[^~=]+))(?:==))/g,kq=fU.create({name:"highlight",addOptions:function(){return{multicolor:!1,HTMLAttributes:{}}},addAttributes:function(){return this.options.multicolor?{color:{default:null,parseHTML:function(e){return e.getAttribute("data-color")||e.style.backgroundColor},renderHTML:function(e){return e.color?{"data-color":e.color,style:"background-color: ".concat(e.color)}:{}}}}:{}},parseHTML:function(){return[{tag:"mark"}]},renderHTML:function(e){var t=e.HTMLAttributes;return["mark",nU(this.options.HTMLAttributes,t),0]},addCommands:function(){var e=this;return{setHighlight:function(t){return function(n){return n.commands.setMark(e.name,t)}},toggleHighlight:function(t){return function(n){return n.commands.toggleMark(e.name,t)}},unsetHighlight:function(){return function(t){return t.commands.unsetMark(e.name)}}}},addKeyboardShortcuts:function(){var e=this;return{"Mod-Shift-h":function(){return e.editor.commands.toggleHighlight()}}},addInputRules:function(){return[vU({find:jq,type:this.type})]},addPasteRules:function(){return[bU({find:Sq,type:this.type})]}});function Zq(e){this.j={},this.jr=[],this.jd=null,this.t=e}Zq.prototype={accepts:function(){return!!this.t},tt:function(e,t){if(t&&t.j)return this.j[e]=t,t;var n=t,r=this.j[e];if(r)return n&&(r.t=n),r;r=Oq();var o=Aq(this,e);return o?(Object.assign(r.j,o.j),r.jr.append(o.jr),r.jr=o.jd,r.t=n||o.t):r.t=n,this.j[e]=r,r}};var Oq=function(){return new Zq},Eq=function(e){return new Zq(e)},Dq=function(e,t,n){e.j[t]||(e.j[t]=n)},Pq=function(e,t,n){e.jr.push([t,n])},Aq=function(e,t){var n=e.j[t];if(n)return n;for(var r=0;r<e.jr.length;r++){var o=e.jr[r][0],i=e.jr[r][1];if(o.test(t))return i}return e.jd},Mq=function(e,t,n){for(var r=0;r<t.length;r++)Dq(e,t[r],n)},Tq=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0],o=t[n][1];Dq(e,r,o)}},Iq=function(e,t,n,r){for(var o,i=0,a=t.length;i<a&&(o=e.j[t[i]]);)e=o,i++;if(i>=a)return[];for(;i<a-1;)o=r(),Dq(e,t[i],o),e=o,i++;Dq(e,t[a-1],n)},Rq="DOMAIN",Fq="LOCALHOST",Bq="TLD",Lq="NUM",Nq="PROTOCOL",_q="MAILTO",zq="WS",Hq="NL",Wq="OPENBRACE",Vq="OPENBRACKET",Uq="OPENANGLEBRACKET",qq="OPENPAREN",Gq="CLOSEBRACE",Yq="CLOSEBRACKET",Kq="CLOSEANGLEBRACKET",Jq="CLOSEPAREN",Xq="AMPERSAND",Qq="APOSTROPHE",$q="ASTERISK",eG="AT",tG="BACKSLASH",nG="BACKTICK",rG="CARET",oG="COLON",iG="COMMA",aG="DOLLAR",sG="DOT",lG="EQUALS",cG="EXCLAMATION",uG="HYPHEN",dG="PERCENT",pG="PIPE",fG="PLUS",hG="POUND",mG="QUERY",vG="QUOTE",gG="SEMI",yG="SLASH",bG="TILDE",xG="UNDERSCORE",wG="SYM",CG=Object.freeze({__proto__:null,DOMAIN:Rq,LOCALHOST:Fq,TLD:Bq,NUM:Lq,PROTOCOL:Nq,MAILTO:_q,WS:zq,NL:Hq,OPENBRACE:Wq,OPENBRACKET:Vq,OPENANGLEBRACKET:Uq,OPENPAREN:qq,CLOSEBRACE:Gq,CLOSEBRACKET:Yq,CLOSEANGLEBRACKET:Kq,CLOSEPAREN:Jq,AMPERSAND:Xq,APOSTROPHE:Qq,ASTERISK:$q,AT:eG,BACKSLASH:tG,BACKTICK:nG,CARET:rG,COLON:oG,COMMA:iG,DOLLAR:aG,DOT:sG,EQUALS:lG,EXCLAMATION:cG,HYPHEN:uG,PERCENT:dG,PIPE:pG,PLUS:fG,POUND:hG,QUERY:mG,QUOTE:vG,SEMI:gG,SLASH:yG,TILDE:bG,UNDERSCORE:xG,SYM:wG}),jG="aaa aarp abarth abb abbott abbvie abc able abogado abudhabi ac academy accenture accountant accountants aco actor ad adac ads adult ae aeg aero aetna af afamilycompany afl africa ag agakhan agency ai aig airbus airforce airtel akdn al alfaromeo alibaba alipay allfinanz allstate ally alsace alstom am amazon americanexpress americanfamily amex amfam amica amsterdam analytics android anquan anz ao aol apartments app apple aq aquarelle ar arab aramco archi army arpa art arte as asda asia associates at athleta attorney au auction audi audible audio auspost author auto autos avianca aw aws ax axa az azure ba baby baidu banamex bananarepublic band bank bar barcelona barclaycard barclays barefoot bargains baseball basketball bauhaus bayern bb bbc bbt bbva bcg bcn bd be beats beauty beer bentley berlin best bestbuy bet bf bg bh bharti bi bible bid bike bing bingo bio biz bj black blackfriday blockbuster blog bloomberg blue bm bms bmw bn bnpparibas bo boats boehringer bofa bom bond boo book booking bosch bostik boston bot boutique box br bradesco bridgestone broadway broker brother brussels bs bt budapest bugatti build builders business buy buzz bv bw by bz bzh ca cab cafe cal call calvinklein cam camera camp cancerresearch canon capetown capital capitalone car caravan cards care career careers cars casa case cash casino cat catering catholic cba cbn cbre cbs cc cd center ceo cern cf cfa cfd cg ch chanel channel charity chase chat cheap chintai christmas chrome church ci cipriani circle cisco citadel citi citic city cityeats ck cl claims cleaning click clinic clinique clothing cloud club clubmed cm cn co coach codes coffee college cologne com comcast commbank community company compare computer comsec condos construction consulting contact contractors cooking cookingchannel cool coop corsica country coupon coupons courses cpa cr credit creditcard creditunion cricket crown crs cruise cruises csc cu cuisinella cv cw cx cy cymru cyou cz dabur dad dance data date dating datsun day dclk dds de deal dealer deals degree delivery dell deloitte delta democrat dental dentist desi design dev dhl diamonds diet digital direct directory discount discover dish diy dj dk dm dnp do docs doctor dog domains dot download drive dtv dubai duck dunlop dupont durban dvag dvr dz earth eat ec eco edeka edu education ee eg email emerck energy engineer engineering enterprises epson equipment er ericsson erni es esq estate et etisalat eu eurovision eus events exchange expert exposed express extraspace fage fail fairwinds faith family fan fans farm farmers fashion fast fedex feedback ferrari ferrero fi fiat fidelity fido film final finance financial fire firestone firmdale fish fishing fit fitness fj fk flickr flights flir florist flowers fly fm fo foo food foodnetwork football ford forex forsale forum foundation fox fr free fresenius frl frogans frontdoor frontier ftr fujitsu fujixerox fun fund furniture futbol fyi ga gal gallery gallo gallup game games gap garden gay gb gbiz gd gdn ge gea gent genting george gf gg ggee gh gi gift gifts gives giving gl glade glass gle global globo gm gmail gmbh gmo gmx gn godaddy gold goldpoint golf goo goodyear goog google gop got gov gp gq gr grainger graphics gratis green gripe grocery group gs gt gu guardian gucci guge guide guitars guru gw gy hair hamburg hangout haus hbo hdfc hdfcbank health healthcare help helsinki here hermes hgtv hiphop hisamitsu hitachi hiv hk hkt hm hn hockey holdings holiday homedepot homegoods homes homesense honda horse hospital host hosting hot hoteles hotels hotmail house how hr hsbc ht hu hughes hyatt hyundai ibm icbc ice icu id ie ieee ifm ikano il im imamat imdb immo immobilien in inc industries infiniti info ing ink institute insurance insure int international intuit investments io ipiranga iq ir irish is ismaili ist istanbul it itau itv iveco jaguar java jcb je jeep jetzt jewelry jio jll jm jmp jnj jo jobs joburg jot joy jp jpmorgan jprs juegos juniper kaufen kddi ke kerryhotels kerrylogistics kerryproperties kfh kg kh ki kia kim kinder kindle kitchen kiwi km kn koeln komatsu kosher kp kpmg kpn kr krd kred kuokgroup kw ky kyoto kz la lacaixa lamborghini lamer lancaster lancia land landrover lanxess lasalle lat latino latrobe law lawyer lb lc lds lease leclerc lefrak legal lego lexus lgbt li lidl life lifeinsurance lifestyle lighting like lilly limited limo lincoln linde link lipsy live living lixil lk llc llp loan loans locker locus loft lol london lotte lotto love lpl lplfinancial lr ls lt ltd ltda lu lundbeck luxe luxury lv ly ma macys madrid maif maison makeup man management mango map market marketing markets marriott marshalls maserati mattel mba mc mckinsey md me med media meet melbourne meme memorial men menu merckmsd mg mh miami microsoft mil mini mint mit mitsubishi mk ml mlb mls mm mma mn mo mobi mobile moda moe moi mom monash money monster mormon mortgage moscow moto motorcycles mov movie mp mq mr ms msd mt mtn mtr mu museum mutual mv mw mx my mz na nab nagoya name nationwide natura navy nba nc ne nec net netbank netflix network neustar new news next nextdirect nexus nf nfl ng ngo nhk ni nico nike nikon ninja nissan nissay nl no nokia northwesternmutual norton now nowruz nowtv np nr nra nrw ntt nu nyc nz obi observer off office okinawa olayan olayangroup oldnavy ollo om omega one ong onl online onyourside ooo open oracle orange org organic origins osaka otsuka ott ovh pa page panasonic paris pars partners parts party passagens pay pccw pe pet pf pfizer pg ph pharmacy phd philips phone photo photography photos physio pics pictet pictures pid pin ping pink pioneer pizza pk pl place play playstation plumbing plus pm pn pnc pohl poker politie porn post pr pramerica praxi press prime pro prod productions prof progressive promo properties property protection pru prudential ps pt pub pw pwc py qa qpon quebec quest qvc racing radio raid re read realestate realtor realty recipes red redstone redumbrella rehab reise reisen reit reliance ren rent rentals repair report republican rest restaurant review reviews rexroth rich richardli ricoh ril rio rip rmit ro rocher rocks rodeo rogers room rs rsvp ru rugby ruhr run rw rwe ryukyu sa saarland safe safety sakura sale salon samsclub samsung sandvik sandvikcoromant sanofi sap sarl sas save saxo sb sbi sbs sc sca scb schaeffler schmidt scholarships school schule schwarz science scjohnson scot sd se search seat secure security seek select sener services ses seven sew sex sexy sfr sg sh shangrila sharp shaw shell shia shiksha shoes shop shopping shouji show showtime si silk sina singles site sj sk ski skin sky skype sl sling sm smart smile sn sncf so soccer social softbank software sohu solar solutions song sony soy spa space sport spot spreadbetting sr srl ss st stada staples star statebank statefarm stc stcgroup stockholm storage store stream studio study style su sucks supplies supply support surf surgery suzuki sv swatch swiftcover swiss sx sy sydney systems sz tab taipei talk taobao target tatamotors tatar tattoo tax taxi tc tci td tdk team tech technology tel temasek tennis teva tf tg th thd theater theatre tiaa tickets tienda tiffany tips tires tirol tj tjmaxx tjx tk tkmaxx tl tm tmall tn to today tokyo tools top toray toshiba total tours town toyota toys tr trade trading training travel travelchannel travelers travelersinsurance trust trv tt tube tui tunes tushu tv tvs tw tz ua ubank ubs ug uk unicom university uno uol ups us uy uz va vacations vana vanguard vc ve vegas ventures verisign versicherung vet vg vi viajes video vig viking villas vin vip virgin visa vision viva vivo vlaanderen vn vodka volkswagen volvo vote voting voto voyage vu vuelos wales walmart walter wang wanggou watch watches weather weatherchannel webcam weber website wed wedding weibo weir wf whoswho wien wiki williamhill win windows wine winners wme wolterskluwer woodside work works world wow ws wtc wtf xbox xerox xfinity xihuan xin xxx xyz yachts yahoo yamaxun yandex ye yodobashi yoga yokohama you youtube yt yun za zappos zara zero zip zm zone zuerich zw verm\xf6gensberater-ctb verm\xf6gensberatung-pwb \u03b5\u03bb \u03b5\u03c5 \u0431\u0433 \u0431\u0435\u043b \u0434\u0435\u0442\u0438 \u0435\u044e \u043a\u0430\u0442\u043e\u043b\u0438\u043a \u043a\u043e\u043c \u049b\u0430\u0437 \u043c\u043a\u0434 \u043c\u043e\u043d \u043c\u043e\u0441\u043a\u0432\u0430 \u043e\u043d\u043b\u0430\u0439\u043d \u043e\u0440\u0433 \u0440\u0443\u0441 \u0440\u0444 \u0441\u0430\u0439\u0442 \u0441\u0440\u0431 \u0443\u043a\u0440 \u10d2\u10d4 \u0570\u0561\u0575 \u05d9\u05e9\u05e8\u05d0\u05dc \u05e7\u05d5\u05dd \u0627\u0628\u0648\u0638\u0628\u064a \u0627\u062a\u0635\u0627\u0644\u0627\u062a \u0627\u0631\u0627\u0645\u0643\u0648 \u0627\u0644\u0627\u0631\u062f\u0646 \u0627\u0644\u0628\u062d\u0631\u064a\u0646 \u0627\u0644\u062c\u0632\u0627\u0626\u0631 \u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629 \u0627\u0644\u0639\u0644\u064a\u0627\u0646 \u0627\u0644\u0645\u063a\u0631\u0628 \u0627\u0645\u0627\u0631\u0627\u062a \u0627\u06cc\u0631\u0627\u0646 \u0628\u0627\u0631\u062a \u0628\u0627\u0632\u0627\u0631 \u0628\u06be\u0627\u0631\u062a \u0628\u064a\u062a\u0643 \u067e\u0627\u06a9\u0633\u062a\u0627\u0646 \u0680\u0627\u0631\u062a \u062a\u0648\u0646\u0633 \u0633\u0648\u062f\u0627\u0646 \u0633\u0648\u0631\u064a\u0629 \u0634\u0628\u0643\u0629 \u0639\u0631\u0627\u0642 \u0639\u0631\u0628 \u0639\u0645\u0627\u0646 \u0641\u0644\u0633\u0637\u064a\u0646 \u0642\u0637\u0631 \u0643\u0627\u062b\u0648\u0644\u064a\u0643 \u0643\u0648\u0645 \u0645\u0635\u0631 \u0645\u0644\u064a\u0633\u064a\u0627 \u0645\u0648\u0631\u064a\u062a\u0627\u0646\u064a\u0627 \u0645\u0648\u0642\u0639 \u0647\u0645\u0631\u0627\u0647 \u0915\u0949\u092e \u0928\u0947\u091f \u092d\u093e\u0930\u0924 \u092d\u093e\u0930\u0924\u092e\u094d \u092d\u093e\u0930\u094b\u0924 \u0938\u0902\u0917\u0920\u0928 \u09ac\u09be\u0982\u09b2\u09be \u09ad\u09be\u09b0\u09a4 \u09ad\u09be\u09f0\u09a4 \u0a2d\u0a3e\u0a30\u0a24 \u0aad\u0abe\u0ab0\u0aa4 \u0b2d\u0b3e\u0b30\u0b24 \u0b87\u0ba8\u0bcd\u0ba4\u0bbf\u0baf\u0bbe \u0b87\u0bb2\u0b99\u0bcd\u0b95\u0bc8 \u0b9a\u0bbf\u0b99\u0bcd\u0b95\u0baa\u0bcd\u0baa\u0bc2\u0bb0\u0bcd \u0c2d\u0c3e\u0c30\u0c24\u0c4d \u0cad\u0cbe\u0cb0\u0ca4 \u0d2d\u0d3e\u0d30\u0d24\u0d02 \u0dbd\u0d82\u0d9a\u0dcf \u0e04\u0e2d\u0e21 \u0e44\u0e17\u0e22 \u0ea5\u0eb2\u0ea7 \ub2f7\ub137 \ub2f7\ucef4 \uc0bc\uc131 \ud55c\uad6d \u30a2\u30de\u30be\u30f3 \u30b0\u30fc\u30b0\u30eb \u30af\u30e9\u30a6\u30c9 \u30b3\u30e0 \u30b9\u30c8\u30a2 \u30bb\u30fc\u30eb \u30d5\u30a1\u30c3\u30b7\u30e7\u30f3 \u30dd\u30a4\u30f3\u30c8 \u307f\u3093\u306a \u4e16\u754c \u4e2d\u4fe1 \u4e2d\u56fd \u4e2d\u570b \u4e2d\u6587\u7f51 \u4e9a\u9a6c\u900a \u4f01\u4e1a \u4f5b\u5c71 \u4fe1\u606f \u5065\u5eb7 \u516b\u5366 \u516c\u53f8 \u516c\u76ca \u53f0\u6e7e \u53f0\u7063 \u5546\u57ce \u5546\u5e97 \u5546\u6807 \u5609\u91cc \u5609\u91cc\u5927\u9152\u5e97 \u5728\u7ebf \u5927\u4f17\u6c7d\u8f66 \u5927\u62ff \u5929\u4e3b\u6559 \u5a31\u4e50 \u5bb6\u96fb \u5e7f\u4e1c \u5fae\u535a \u6148\u5584 \u6211\u7231\u4f60 \u624b\u673a \u62db\u8058 \u653f\u52a1 \u653f\u5e9c \u65b0\u52a0\u5761 \u65b0\u95fb \u65f6\u5c1a \u66f8\u7c4d \u673a\u6784 \u6de1\u9a6c\u9521 \u6e38\u620f \u6fb3\u9580 \u70b9\u770b \u79fb\u52a8 \u7ec4\u7ec7\u673a\u6784 \u7f51\u5740 \u7f51\u5e97 \u7f51\u7ad9 \u7f51\u7edc \u8054\u901a \u8bfa\u57fa\u4e9a \u8c37\u6b4c \u8d2d\u7269 \u901a\u8ca9 \u96c6\u56e2 \u96fb\u8a0a\u76c8\u79d1 \u98de\u5229\u6d66 \u98df\u54c1 \u9910\u5385 \u9999\u683c\u91cc\u62c9 \u9999\u6e2f".split(" "),SG=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/,kG=/(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEDD-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDDFF\uDE70-\uDE74\uDE78-\uDE7C\uDE80-\uDE86\uDE90-\uDEAC\uDEB0-\uDEBA\uDEC0-\uDEC5\uDED0-\uDED9\uDEE0-\uDEE7\uDEF0-\uDEF6])/,ZG=/\uFE0F/,OG=/\d/,EG=/\s/;function DG(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=Oq(),n=Eq(Lq),r=Eq(Rq),o=Oq(),i=Eq(zq),a=[[OG,r],[SG,r],[kG,r],[ZG,r]],s=function(){var e=Eq(Rq);return e.j={"-":o},e.jr=[].concat(a),e},l=function(e){var t=s();return t.t=e,t};Tq(t,[["'",Eq(Qq)],["{",Eq(Wq)],["[",Eq(Vq)],["<",Eq(Uq)],["(",Eq(qq)],["}",Eq(Gq)],["]",Eq(Yq)],[">",Eq(Kq)],[")",Eq(Jq)],["&",Eq(Xq)],["*",Eq($q)],["@",Eq(eG)],["`",Eq(nG)],["^",Eq(rG)],[":",Eq(oG)],[",",Eq(iG)],["$",Eq(aG)],[".",Eq(sG)],["=",Eq(lG)],["!",Eq(cG)],["-",Eq(uG)],["%",Eq(dG)],["|",Eq(pG)],["+",Eq(fG)],["#",Eq(hG)],["?",Eq(mG)],['"',Eq(vG)],["/",Eq(yG)],[";",Eq(gG)],["~",Eq(bG)],["_",Eq(xG)],["\\",Eq(tG)]]),Dq(t,"\n",Eq(Hq)),Pq(t,EG,i),Dq(i,"\n",Oq()),Pq(i,EG,i);for(var c=0;c<jG.length;c++)Iq(t,jG[c],l(Bq),s);var u=s(),d=s(),p=s(),f=s();Iq(t,"file",u,s),Iq(t,"ftp",d,s),Iq(t,"http",p,s),Iq(t,"mailto",f,s);var h=s(),m=Eq(Nq),v=Eq(_q);Dq(d,"s",h),Dq(d,":",m),Dq(p,"s",h),Dq(p,":",m),Dq(u,":",m),Dq(h,":",m),Dq(f,":",v);for(var g=s(),y=0;y<e.length;y++)Iq(t,e[y],g,s);return Dq(g,":",m),Iq(t,"localhost",l(Fq),s),Pq(t,OG,n),Pq(t,SG,r),Pq(t,kG,r),Pq(t,ZG,r),Pq(n,OG,n),Pq(n,SG,r),Pq(n,kG,r),Pq(n,ZG,r),Dq(n,"-",o),Dq(r,"-",o),Dq(o,"-",o),Pq(r,OG,r),Pq(r,SG,r),Pq(r,kG,r),Pq(r,ZG,r),Pq(o,OG,r),Pq(o,SG,r),Pq(o,kG,r),Pq(o,ZG,r),t.jd=Eq(wG),t}function PG(e){return PG="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},PG(e)}var AG={defaultProtocol:"http",events:null,format:TG,formatHref:TG,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:0,className:null,attributes:null,ignoreTags:[]};function MG(e){e=e||{},this.defaultProtocol="defaultProtocol"in e?e.defaultProtocol:AG.defaultProtocol,this.events="events"in e?e.events:AG.events,this.format="format"in e?e.format:AG.format,this.formatHref="formatHref"in e?e.formatHref:AG.formatHref,this.nl2br="nl2br"in e?e.nl2br:AG.nl2br,this.tagName="tagName"in e?e.tagName:AG.tagName,this.target="target"in e?e.target:AG.target,this.rel="rel"in e?e.rel:AG.rel,this.validate="validate"in e?e.validate:AG.validate,this.truncate="truncate"in e?e.truncate:AG.truncate,this.className="className"in e?e.className:AG.className,this.attributes=e.attributes||AG.attributes,this.ignoreTags=[];for(var t=("ignoreTags"in e?e.ignoreTags:AG.ignoreTags),n=0;n<t.length;n++)this.ignoreTags.push(t[n].toUpperCase())}function TG(e){return e}MG.prototype={resolve:function(e){var t=e.toHref(this.defaultProtocol);return{formatted:this.get("format",e.toString(),e),formattedHref:this.get("formatHref",t,e),tagName:this.get("tagName",t,e),className:this.get("className",t,e),target:this.get("target",t,e),rel:this.get("rel",t,e),events:this.getObject("events",t,e),attributes:this.getObject("attributes",t,e),truncate:this.get("truncate",t,e)}},check:function(e){return this.get("validate",e.toString(),e)},get:function(e,t,n){var r,o=this[e];if(!o)return o;switch(PG(o)){case"function":return o(t,n.t);case"object":return"function"===typeof(r=n.t in o?o[n.t]:AG[e])?r(t,n.t):r}return o},getObject:function(e,t,n){var r=this[e];return"function"===typeof r?r(t,n.t):r}};function IG(){}function RG(e,t){function n(t,n){this.t=e,this.v=t,this.tk=n}return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object.create(e.prototype);for(var o in n)r[o]=n[o];r.constructor=t,t.prototype=r}(IG,n,t),n}IG.prototype={t:"token",isLink:!1,toString:function(){return this.v},toHref:function(){return this.toString()},startIndex:function(){return this.tk[0].s},endIndex:function(){return this.tk[this.tk.length-1].e},toObject:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:AG.defaultProtocol;return{type:this.t,value:this.v,isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}}};var FG=RG("email",{isLink:!0}),BG=RG("email",{isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),LG=RG("text"),NG=RG("nl"),_G=RG("url",{isLink:!0,toHref:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:AG.defaultProtocol,t=this.tk,n=!1,r=!1,o=[],i=0;t[i].t===Nq;)n=!0,o.push(t[i].v),i++;for(;t[i].t===yG;)r=!0,o.push(t[i].v),i++;for(;i<t.length;i++)o.push(t[i].v);return o=o.join(""),n||r||(o="".concat(e,"://").concat(o)),o},hasProtocol:function(){return this.tk[0].t===Nq}}),zG=Object.freeze({__proto__:null,MultiToken:IG,Base:IG,createTokenClass:RG,MailtoEmail:FG,Email:BG,Text:LG,Nl:NG,Url:_G});function HG(){var e=Oq(),t=Oq(),n=Oq(),r=Oq(),o=Oq(),i=Oq(),a=Oq(),s=Eq(_G),l=Oq(),c=Eq(_G),u=Eq(_G),d=Oq(),p=Oq(),f=Oq(),h=Oq(),m=Oq(),v=Eq(_G),g=Eq(_G),y=Eq(_G),b=Eq(_G),x=Oq(),w=Oq(),C=Oq(),j=Oq(),S=Oq(),k=Oq(),Z=Eq(BG),O=Oq(),E=Eq(BG),D=Eq(FG),P=Oq(),A=Oq(),M=Oq(),T=Oq(),I=Eq(NG);Dq(e,Hq,I),Dq(e,Nq,t),Dq(e,_q,n),Dq(t,yG,r),Dq(r,yG,o),Dq(e,Bq,i),Dq(e,Rq,i),Dq(e,Fq,s),Dq(e,Lq,i),Dq(o,Bq,u),Dq(o,Rq,u),Dq(o,Lq,u),Dq(o,Fq,u),Dq(i,sG,a),Dq(S,sG,k),Dq(a,Bq,s),Dq(a,Rq,i),Dq(a,Lq,i),Dq(a,Fq,i),Dq(k,Bq,Z),Dq(k,Rq,S),Dq(k,Lq,S),Dq(k,Fq,S),Dq(s,sG,a),Dq(Z,sG,k),Dq(s,oG,l),Dq(s,yG,u),Dq(l,Lq,c),Dq(c,yG,u),Dq(Z,oG,O),Dq(O,Lq,E);var R=[Xq,$q,eG,tG,nG,rG,aG,Rq,lG,uG,Fq,Lq,dG,pG,fG,hG,Nq,yG,wG,bG,Bq,xG],F=[Qq,Kq,Gq,Yq,Jq,oG,iG,sG,cG,Uq,Wq,Vq,qq,mG,vG,gG];Dq(u,Wq,p),Dq(u,Vq,f),Dq(u,Uq,h),Dq(u,qq,m),Dq(d,Wq,p),Dq(d,Vq,f),Dq(d,Uq,h),Dq(d,qq,m),Dq(p,Gq,u),Dq(f,Yq,u),Dq(h,Kq,u),Dq(m,Jq,u),Dq(v,Gq,u),Dq(g,Yq,u),Dq(y,Kq,u),Dq(b,Jq,u),Dq(x,Gq,u),Dq(w,Yq,u),Dq(C,Kq,u),Dq(j,Jq,u),Mq(p,R,v),Mq(f,R,g),Mq(h,R,y),Mq(m,R,b),Mq(p,F,x),Mq(f,F,w),Mq(h,F,C),Mq(m,F,j),Mq(v,R,v),Mq(g,R,g),Mq(y,R,y),Mq(b,R,b),Mq(v,F,v),Mq(g,F,g),Mq(y,F,y),Mq(b,F,b),Mq(x,R,v),Mq(w,R,g),Mq(C,R,y),Mq(j,R,b),Mq(x,F,x),Mq(w,F,w),Mq(C,F,C),Mq(j,F,j),Mq(u,R,u),Mq(d,R,u),Mq(u,F,d),Mq(d,F,d),Dq(n,Bq,D),Dq(n,Rq,D),Dq(n,Lq,D),Dq(n,Fq,D),Mq(D,R,D),Mq(D,F,P),Mq(P,R,D),Mq(P,F,P);var B=[Xq,Qq,$q,tG,nG,rG,Gq,aG,Rq,lG,uG,Lq,Wq,dG,pG,fG,hG,mG,yG,wG,bG,Bq,xG];return Mq(i,B,A),Dq(i,eG,M),Mq(s,B,A),Dq(s,eG,M),Mq(a,B,A),Mq(A,B,A),Dq(A,eG,M),Dq(A,sG,T),Mq(T,B,A),Dq(M,Bq,S),Dq(M,Rq,S),Dq(M,Lq,S),Dq(M,Fq,Z),e}function WG(e,t,n){var r=n[0].s,o=n[n.length-1].e;return new e(t.substr(r,o-r),n)}"undefined"!==typeof console&&console&&console.warn;var VG={scanner:null,parser:null,pluginQueue:[],customProtocols:[],initialized:!1};function UG(e){return VG.initialized||function(){VG.scanner={start:DG(VG.customProtocols),tokens:CG},VG.parser={start:HG(),tokens:zG};for(var e={createTokenClass:RG},t=0;t<VG.pluginQueue.length;t++)VG.pluginQueue[t][1]({scanner:VG.scanner,parser:VG.parser,utils:e});VG.initialized=!0}(),function(e,t,n){for(var r=n.length,o=0,i=[],a=[];o<r;){for(var s=e,l=null,c=null,u=0,d=null,p=-1;o<r&&!(l=Aq(s,n[o].t));)a.push(n[o++]);for(;o<r&&(c=l||Aq(s,n[o].t));)l=null,(s=c).accepts()?(p=0,d=s):p>=0&&p++,o++,u++;if(p<0)for(var f=o-u;f<o;f++)a.push(n[f]);else{a.length>0&&(i.push(WG(LG,t,a)),a=[]),o-=p,u-=p;var h=d.t,m=n.slice(o-u,o);i.push(WG(h,t,m))}}return a.length>0&&i.push(WG(LG,t,a)),i}(VG.parser.start,e,function(e,t){for(var n=function(e){for(var t=[],n=e.length,r=0;r<n;){var o=e.charCodeAt(r),i=void 0,a=o<55296||o>56319||r+1===n||(i=e.charCodeAt(r+1))<56320||i>57343?e[r]:e.slice(r,r+2);t.push(a),r+=a.length}return t}(t.replace(/[A-Z]/g,(function(e){return e.toLowerCase()}))),r=n.length,o=[],i=0,a=0;a<r;){for(var s=e,l=null,c=0,u=null,d=-1,p=-1;a<r&&(l=Aq(s,n[a]));)(s=l).accepts()?(d=0,p=0,u=s):d>=0&&(d+=n[a].length,p++),c+=n[a].length,i+=n[a].length,a++;i-=d,a-=p,c-=d,o.push({t:u.t,v:t.substr(i-c,c),s:i-c,e:i})}return o}(VG.scanner.start,e))}function qG(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=UG(e),r=[],o=0;o<n.length;o++){var i=n[o];!i.isLink||t&&i.t!==t||r.push(i.toObject())}return r}function GG(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=UG(e);return 1===n.length&&n[0].isLink&&(!t||n[0].t===t)}function YG(e){return new vN({key:new bN("autolink"),appendTransaction:function(t,n,r){var o=t.some((function(e){return e.docChanged}))&&!n.doc.eq(r.doc),i=t.some((function(e){return e.getMeta("preventAutolink")}));if(o&&!i){var a=r.tr,s=function(e,t){var n=new yL(e);return t.forEach((function(e){e.steps.forEach((function(e){n.step(e)}))})),n}(n.doc,t),c=s.mapping,u=function(e){var t=e.mapping,n=e.steps,r=[];return t.maps.forEach((function(e,o){var i=[];if(e.ranges.length)e.forEach((function(e,t){i.push({from:e,to:t})}));else{var a=n[o],s=a.from,l=a.to;if(void 0===s||void 0===l)return;i.push({from:s,to:l})}i.forEach((function(e){var n=e.from,i=e.to,a=t.slice(o).map(n,-1),s=t.slice(o).map(i),l=t.invert().map(a,-1),c=t.invert().map(s);r.push({oldRange:{from:l,to:c},newRange:{from:a,to:s}})}))})),xU(r)}(s);if(u.forEach((function(t){var o=t.oldRange,i=t.newRange;mU(o.from,o.to,n.doc).filter((function(t){return t.mark.type===e.type})).forEach((function(t){var o=mU(c.map(t.from),c.map(t.to),r.doc).filter((function(t){return t.mark.type===e.type}));if(o.length){var i=o[0],s=n.doc.textBetween(t.from,t.to,void 0," "),l=r.doc.textBetween(i.from,i.to,void 0," "),u=GG(s),d=GG(l);u&&!d&&a.removeMark(i.from,i.to,e.type)}})),function(e,t,n){var r=[];return e.nodesBetween(t.from,t.to,(function(e,t){n(e)&&r.push({node:e,pos:t})})),r}(r.doc,i,(function(e){return e.isTextblock})).forEach((function(t){qG(r.doc.textBetween(t.pos,t.pos+t.node.nodeSize,void 0," ")).filter((function(e){return e.isLink})).map((function(e){return(0,l.Z)((0,l.Z)({},e),{},{from:t.pos+e.start+1,to:t.pos+e.end+1})})).filter((function(e){var t=i.from>=e.from&&i.from<=e.to,n=i.to>=e.from&&i.to<=e.to;return t||n})).forEach((function(t){a.addMark(t.from,t.to,e.type.create({href:t.href}))}))}))})),a.steps.length)return a}}})}var KG,JG,XG=fU.create({name:"link",priority:1e3,keepOnSplit:!1,inclusive:function(){return this.options.autolink},addOptions:function(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow"}}},addAttributes:function(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target}}},parseHTML:function(){return[{tag:"a[href]"}]},renderHTML:function(e){var t=e.HTMLAttributes;return["a",nU(this.options.HTMLAttributes,t),0]},addCommands:function(){var e=this;return{setLink:function(t){return function(n){return(0,n.chain)().setMark(e.name,t).setMeta("preventAutolink",!0).run()}},toggleLink:function(t){return function(n){return(0,n.chain)().toggleMark(e.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},unsetLink:function(){return function(t){return(0,t.chain)().unsetMark(e.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}}}},addPasteRules:function(){return[bU({find:function(e){return qG(e).filter((function(e){return e.isLink})).map((function(e){return{text:e.value,index:e.start,data:e}}))},type:this.type,getAttributes:function(e){var t;return{href:null===(t=e.data)||void 0===t?void 0:t.href}}})]},addProseMirrorPlugins:function(){var e=[];return this.options.autolink&&e.push(YG({type:this.type})),this.options.openOnClick&&e.push(function(e){return new vN({key:new bN("handleClickLink"),props:{handleClick:function(t,n,r){var o,i=qV(t.state,e.type.name);return!(!(null===(o=r.target)||void 0===o?void 0:o.closest("a"))||!i.href)&&(window.open(i.href,i.target),!0)}}})}({type:this.type})),this.options.linkOnPaste&&e.push(function(e){return new vN({key:new bN("handlePasteLink"),props:{handlePaste:function(t,n,r){if(t.state.selection.empty)return!1;var o="";r.content.forEach((function(e){o+=e.textContent}));var i=qG(o).find((function(e){return e.isLink&&e.value===o}));return!(!o||!i)&&(e.editor.commands.setMark(e.type,{href:i.href}),!0)}}})}({editor:this.editor,type:this.type})),e}}),QG=/(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,$G=pU.create({name:"image",addOptions:function(){return{inline:!1,allowBase64:!1,HTMLAttributes:{}}},inline:function(){return this.options.inline},group:function(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes:function(){return{src:{default:null},alt:{default:null},title:{default:null}}},parseHTML:function(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML:function(e){var t=e.HTMLAttributes;return["img",nU(this.options.HTMLAttributes,t)]},addCommands:function(){var e=this;return{setImage:function(t){return function(n){return n.commands.insertContent({type:e.name,attrs:t})}}}},addInputRules:function(){return[hU({find:QG,type:this.type,getAttributes:function(e){var t=(0,Le.Z)(e,5),n=t[2];return{src:t[3],alt:n,title:t[4]}}})]}}),eY=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,tY=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,nY=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,rY=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,oY=fU.create({name:"bold",addOptions:function(){return{HTMLAttributes:{}}},parseHTML:function(){return[{tag:"strong"},{tag:"b",getAttrs:function(e){return"normal"!==e.style.fontWeight&&null}},{style:"font-weight",getAttrs:function(e){return/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}}]},renderHTML:function(e){var t=e.HTMLAttributes;return["strong",nU(this.options.HTMLAttributes,t),0]},addCommands:function(){var e=this;return{setBold:function(){return function(t){return t.commands.setMark(e.name)}},toggleBold:function(){return function(t){return t.commands.toggleMark(e.name)}},unsetBold:function(){return function(t){return t.commands.unsetMark(e.name)}}}},addKeyboardShortcuts:function(){var e=this;return{"Mod-b":function(){return e.editor.commands.toggleBold()},"Mod-B":function(){return e.editor.commands.toggleBold()}}},addInputRules:function(){return[vU({find:eY,type:this.type}),vU({find:nY,type:this.type})]},addPasteRules:function(){return[bU({find:tY,type:this.type}),bU({find:rY,type:this.type})]}}),iY=lW.create({name:"placeholder",addOptions:function(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something \u2026",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins:function(){var e=this;return[new vN({props:{decorations:function(t){var n=t.doc,r=t.selection,o=e.editor.isEditable||!e.options.showOnlyWhenEditable,i=r.anchor,a=[];if(o)return n.descendants((function(t,n){var r=i>=n&&i<=n+t.nodeSize,o=!t.isLeaf&&!t.childCount;if((r||!e.options.showOnlyCurrent)&&o){var s=[e.options.emptyNodeClass];e.editor.isEmpty&&s.push(e.options.emptyEditorClass);var l=wH.node(n,n+t.nodeSize,{class:s.join(" "),"data-placeholder":"function"===typeof e.options.placeholder?e.options.placeholder({editor:e.editor,node:t,pos:n,hasAnchor:r}):e.options.placeholder});a.push(l)}return e.options.includeChildren})),kH.create(n,a)}}})]}}),aY=lW.create({name:"textAlign",addOptions:function(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:"left"}},addGlobalAttributes:function(){var e=this;return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:function(t){return t.style.textAlign||e.options.defaultAlignment},renderHTML:function(t){return t.textAlign===e.options.defaultAlignment?{}:{style:"text-align: ".concat(t.textAlign)}}}}}]},addCommands:function(){var e=this;return{setTextAlign:function(t){return function(n){var r=n.commands;return!!e.options.alignments.includes(t)&&e.options.types.every((function(e){return r.updateAttributes(e,{textAlign:t})}))}},unsetTextAlign:function(){return function(t){var n=t.commands;return e.options.types.every((function(e){return n.resetAttributes(e,"textAlign")}))}}}},addKeyboardShortcuts:function(){var e=this;return{"Mod-Shift-l":function(){return e.editor.commands.setTextAlign("left")},"Mod-Shift-e":function(){return e.editor.commands.setTextAlign("center")},"Mod-Shift-r":function(){return e.editor.commands.setTextAlign("right")},"Mod-Shift-j":function(){return e.editor.commands.setTextAlign("justify")}}}}),sY=fU.create({name:"underline",addOptions:function(){return{HTMLAttributes:{}}},parseHTML:function(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:function(e){return!!e.includes("underline")&&{}}}]},renderHTML:function(e){var t=e.HTMLAttributes;return["u",nU(this.options.HTMLAttributes,t),0]},addCommands:function(){var e=this;return{setUnderline:function(){return function(t){return t.commands.setMark(e.name)}},toggleUnderline:function(){return function(t){return t.commands.toggleMark(e.name)}},unsetUnderline:function(){return function(t){return t.commands.unsetMark(e.name)}}}},addKeyboardShortcuts:function(){var e=this;return{"Mod-u":function(){return e.editor.commands.toggleUnderline()},"Mod-U":function(){return e.editor.commands.toggleUnderline()}}}});if("undefined"!=typeof WeakMap){var lY=new WeakMap;KG=function(e){return lY.get(e)},JG=function(e,t){return lY.set(e,t),t}}else{var cY=[],uY=0;KG=function(e){for(var t=0;t<cY.length;t+=2)if(cY[t]==e)return cY[t+1]},JG=function(e,t){return 10==uY&&(uY=0),cY[uY++]=e,cY[uY++]=t}}var dY=function(e,t,n,r){this.left=e,this.top=t,this.right=n,this.bottom=r},pY=function(e,t,n,r){this.width=e,this.height=t,this.map=n,this.problems=r};function fY(e){if(e.colwidth)return e.colwidth.slice();for(var t=[],n=0;n<e.colspan;n++)t.push(0);return t}function hY(e){var t=e.cached.tableNodeTypes;if(!t)for(var n in t=e.cached.tableNodeTypes={},e.nodes){var r=e.nodes[n],o=r.spec.tableRole;o&&(t[o]=r)}return t}pY.prototype.findCell=function(e){for(var t=0;t<this.map.length;t++){var n=this.map[t];if(n==e){for(var r=t%this.width,o=t/this.width|0,i=r+1,a=o+1,s=1;i<this.width&&this.map[t+s]==n;s++)i++;for(var l=1;a<this.height&&this.map[t+this.width*l]==n;l++)a++;return new dY(r,o,i,a)}}throw new RangeError("No cell with offset "+e+" found")},pY.prototype.colCount=function(e){for(var t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw new RangeError("No cell with offset "+e+" found")},pY.prototype.nextCell=function(e,t,n){var r=this.findCell(e),o=r.left,i=r.right,a=r.top,s=r.bottom;return"horiz"==t?(n<0?0==o:i==this.width)?null:this.map[a*this.width+(n<0?o-1:i)]:(n<0?0==a:s==this.height)?null:this.map[o+this.width*(n<0?a-1:s)]},pY.prototype.rectBetween=function(e,t){var n=this.findCell(e),r=n.left,o=n.right,i=n.top,a=n.bottom,s=this.findCell(t),l=s.left,c=s.right,u=s.top,d=s.bottom;return new dY(Math.min(r,l),Math.min(i,u),Math.max(o,c),Math.max(a,d))},pY.prototype.cellsInRect=function(e){for(var t=[],n={},r=e.top;r<e.bottom;r++)for(var o=e.left;o<e.right;o++){var i=r*this.width+o,a=this.map[i];n[a]||(n[a]=!0,o==e.left&&o&&this.map[i-1]==a||r==e.top&&r&&this.map[i-this.width]==a||t.push(a))}return t},pY.prototype.positionAt=function(e,t,n){for(var r=0,o=0;;r++){var i=o+n.child(r).nodeSize;if(r==e){for(var a=t+e*this.width,s=(e+1)*this.width;a<s&&this.map[a]<o;)a++;return a==s?i-1:this.map[a]}o=i}},pY.get=function(e){return KG(e)||JG(e,function(e){if("table"!=e.type.spec.tableRole)throw new RangeError("Not a table node: "+e.type.name);for(var t=function(e){for(var t=-1,n=!1,r=0;r<e.childCount;r++){var o=e.child(r),i=0;if(n)for(var a=0;a<r;a++)for(var s=e.child(a),l=0;l<s.childCount;l++){var c=s.child(l);a+c.attrs.rowspan>r&&(i+=c.attrs.colspan)}for(var u=0;u<o.childCount;u++){var d=o.child(u);i+=d.attrs.colspan,d.attrs.rowspan>1&&(n=!0)}-1==t?t=i:t!=i&&(t=Math.max(t,i))}return t}(e),n=e.childCount,r=[],o=0,i=null,a=[],s=0,l=t*n;s<l;s++)r[s]=0;for(var c=0,u=0;c<n;c++){var d=e.child(c);u++;for(var p=0;;p++){for(;o<r.length&&0!=r[o];)o++;if(p==d.childCount)break;for(var f=d.child(p),h=f.attrs,m=h.colspan,v=h.rowspan,g=h.colwidth,y=0;y<v;y++){if(y+c>=n){(i||(i=[])).push({type:"overlong_rowspan",pos:u,n:v-y});break}for(var b=o+y*t,x=0;x<m;x++){0==r[b+x]?r[b+x]=u:(i||(i=[])).push({type:"collision",row:c,pos:u,n:m-x});var w=g&&g[x];if(w){var C=(b+x)%t*2,j=a[C];null==j||j!=w&&1==a[C+1]?(a[C]=w,a[C+1]=1):j==w&&a[C+1]++}}}o+=m,u+=f.nodeSize}for(var S=(c+1)*t,k=0;o<S;)0==r[o++]&&k++;k&&(i||(i=[])).push({type:"missing",row:c,n:k}),u++}for(var Z=new pY(t,n,r,i),O=!1,E=0;!O&&E<a.length;E+=2)null!=a[E]&&a[E+1]<n&&(O=!0);O&&function(e,t,n){e.problems||(e.problems=[]);for(var r=0,o={};r<e.map.length;r++){var i=e.map[r];if(!o[i]){o[i]=!0;for(var a=n.nodeAt(i),s=null,l=0;l<a.attrs.colspan;l++){var c=t[2*((r+l)%e.width)];null==c||a.attrs.colwidth&&a.attrs.colwidth[l]==c||((s||(s=fY(a.attrs)))[l]=c)}s&&e.problems.unshift({type:"colwidth mismatch",pos:i,colwidth:s})}}}(Z,a,e);return Z}(e))};var mY=new bN("selectingCells");function vY(e){for(var t=e.depth-1;t>0;t--)if("row"==e.node(t).type.spec.tableRole)return e.node(0).resolve(e.before(t+1));return null}function gY(e){for(var t=e.selection.$head,n=t.depth;n>0;n--)if("row"==t.node(n).type.spec.tableRole)return!0;return!1}function yY(e){var t=e.selection;return t.$anchorCell?t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell:t.node&&"cell"==t.node.type.spec.tableRole?t.$anchor:vY(t.$head)||function(e){for(var t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){var r=t.type.spec.tableRole;if("cell"==r||"header_cell"==r)return e.doc.resolve(n)}for(var o=e.nodeBefore,i=e.pos;o;o=o.lastChild,i--){var a=o.type.spec.tableRole;if("cell"==a||"header_cell"==a)return e.doc.resolve(i-o.nodeSize)}}(t.$head)}function bY(e){return"row"==e.parent.type.spec.tableRole&&e.nodeAfter}function xY(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function wY(e,t,n){var r=e.start(-1),o=pY.get(e.node(-1)).nextCell(e.pos-r,t,n);return null==o?null:e.node(0).resolve(r+o)}function CY(e,t,n){var r={};for(var o in e)r[o]=e[o];return r[t]=n,r}function jY(e,t,n){void 0===n&&(n=1);var r=CY(e,"colspan",e.colspan-n);return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(t,n),r.colwidth.some((function(e){return e>0}))||(r.colwidth=null)),r}function SY(e,t,n){void 0===n&&(n=1);var r=CY(e,"colspan",e.colspan+n);if(r.colwidth){r.colwidth=r.colwidth.slice();for(var o=0;o<n;o++)r.colwidth.splice(t,0,0)}return r}var kY=function(e){function t(t,n){void 0===n&&(n=t);var r=t.node(-1),o=pY.get(r),i=t.start(-1),a=o.rectBetween(t.pos-i,n.pos-i),s=t.node(0),l=o.cellsInRect(a).filter((function(e){return e!=n.pos-i}));l.unshift(n.pos-i);var c=l.map((function(e){var t=r.nodeAt(e),n=e+i+1;return new QL(s.resolve(n),s.resolve(n+t.content.size))}));e.call(this,c[0].$from,c[0].$to,c),this.$anchorCell=t,this.$headCell=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.map=function(e,n){var r=e.resolve(n.map(this.$anchorCell.pos)),o=e.resolve(n.map(this.$headCell.pos));if(bY(r)&&bY(o)&&xY(r,o)){var i=this.$anchorCell.node(-1)!=r.node(-1);return i&&this.isRowSelection()?t.rowSelection(r,o):i&&this.isColSelection()?t.colSelection(r,o):new t(r,o)}return $L.between(r,o)},t.prototype.content=function(){for(var e=this.$anchorCell.node(-1),t=pY.get(e),n=this.$anchorCell.start(-1),r=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),o={},i=[],a=r.top;a<r.bottom;a++){for(var s=[],l=a*t.width+r.left,c=r.left;c<r.right;c++,l++){var u=t.map[l];if(!o[u]){o[u]=!0;var d=t.findCell(u),p=e.nodeAt(u),f=r.left-d.left,h=d.right-r.right;if(f>0||h>0){var m=p.attrs;f>0&&(m=jY(m,0,f)),h>0&&(m=jY(m,m.colspan-h,h)),p=d.left<r.left?p.type.createAndFill(m):p.type.create(m,p.content)}if(d.top<r.top||d.bottom>r.bottom){var v=CY(p.attrs,"rowspan",Math.min(d.bottom,r.bottom)-Math.max(d.top,r.top));p=d.top<r.top?p.type.createAndFill(v):p.type.create(v,p.content)}s.push(p)}}i.push(e.child(a).copy(QF.from(s)))}var g=this.isColSelection()&&this.isRowSelection()?e:i;return new iB(QF.from(g),1,1)},t.prototype.replace=function(t,n){void 0===n&&(n=iB.empty);for(var r=t.steps.length,o=this.ranges,i=0;i<o.length;i++){var a=o[i],s=a.$from,l=a.$to,c=t.mapping.slice(r);t.replace(c.map(s.pos),c.map(l.pos),i?iB.empty:n)}var u=e.findFrom(t.doc.resolve(t.mapping.slice(r).map(this.to)),-1);u&&t.setSelection(u)},t.prototype.replaceWith=function(e,t){this.replace(e,new iB(QF.from(t),0,0))},t.prototype.forEachCell=function(e){for(var t=this.$anchorCell.node(-1),n=pY.get(t),r=this.$anchorCell.start(-1),o=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r)),i=0;i<o.length;i++)e(t.nodeAt(o[i]),r+o[i])},t.prototype.isColSelection=function(){var e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);if(Math.min(e,t)>0)return!1;var n=e+this.$anchorCell.nodeAfter.attrs.rowspan,r=t+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,r)==this.$headCell.node(-1).childCount},t.colSelection=function(e,n){void 0===n&&(n=e);var r=pY.get(e.node(-1)),o=e.start(-1),i=r.findCell(e.pos-o),a=r.findCell(n.pos-o),s=e.node(0);return i.top<=a.top?(i.top>0&&(e=s.resolve(o+r.map[i.left])),a.bottom<r.height&&(n=s.resolve(o+r.map[r.width*(r.height-1)+a.right-1]))):(a.top>0&&(n=s.resolve(o+r.map[a.left])),i.bottom<r.height&&(e=s.resolve(o+r.map[r.width*(r.height-1)+i.right-1]))),new t(e,n)},t.prototype.isRowSelection=function(){var e=pY.get(this.$anchorCell.node(-1)),t=this.$anchorCell.start(-1),n=e.colCount(this.$anchorCell.pos-t),r=e.colCount(this.$headCell.pos-t);if(Math.min(n,r)>0)return!1;var o=n+this.$anchorCell.nodeAfter.attrs.colspan,i=r+this.$headCell.nodeAfter.attrs.colspan;return Math.max(o,i)==e.width},t.prototype.eq=function(e){return e instanceof t&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos},t.rowSelection=function(e,n){void 0===n&&(n=e);var r=pY.get(e.node(-1)),o=e.start(-1),i=r.findCell(e.pos-o),a=r.findCell(n.pos-o),s=e.node(0);return i.left<=a.left?(i.left>0&&(e=s.resolve(o+r.map[i.top*r.width])),a.right<r.width&&(n=s.resolve(o+r.map[r.width*(a.top+1)-1]))):(a.left>0&&(n=s.resolve(o+r.map[a.top*r.width])),i.right<r.width&&(e=s.resolve(o+r.map[r.width*(i.top+1)-1]))),new t(e,n)},t.prototype.toJSON=function(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}},t.fromJSON=function(e,n){return new t(e.resolve(n.anchor),e.resolve(n.head))},t.create=function(e,n,r){return void 0===r&&(r=n),new t(e.resolve(n),e.resolve(r))},t.prototype.getBookmark=function(){return new ZY(this.$anchorCell.pos,this.$headCell.pos)},t}(JL);kY.prototype.visible=!1,JL.jsonID("cell",kY);var ZY=function(e,t){this.anchor=e,this.head=t};function OY(e){if(!(e.selection instanceof kY))return null;var t=[];return e.selection.forEachCell((function(e,n){t.push(wH.node(n,n+e.nodeSize,{class:"selectedCell"}))})),kH.create(e.doc,t)}function EY(e){if(!e.size)return null;for(var t=e.content,n=e.openStart,r=e.openEnd;1==t.childCount&&(n>0&&r>0||"table"==t.firstChild.type.spec.tableRole);)n--,r--,t=t.firstChild.content;var o=t.firstChild,i=o.type.spec.tableRole,a=o.type.schema,s=[];if("row"==i)for(var l=0;l<t.childCount;l++){var c=t.child(l).content,u=l?0:Math.max(0,n-1),d=l<t.childCount-1?0:Math.max(0,r-1);(u||d)&&(c=DY(hY(a).row,new iB(c,u,d)).content),s.push(c)}else{if("cell"!=i&&"header_cell"!=i)return null;s.push(n||r?DY(hY(a).row,new iB(t,n,r)).content:t)}return function(e,t){for(var n=[],r=0;r<t.length;r++)for(var o=t[r],i=o.childCount-1;i>=0;i--)for(var a=o.child(i).attrs,s=a.rowspan,l=a.colspan,c=r;c<r+s;c++)n[c]=(n[c]||0)+l;for(var u=0,d=0;d<n.length;d++)u=Math.max(u,n[d]);for(var p=0;p<n.length;p++)if(p>=t.length&&t.push(QF.empty),n[p]<u){for(var f=hY(e).cell.createAndFill(),h=[],m=n[p];m<u;m++)h.push(f);t[p]=t[p].append(QF.from(h))}return{height:t.length,width:u,rows:t}}(a,s)}function DY(e,t){var n=e.createAndFill();return new yL(n).replace(0,n.content.size,t).doc}function PY(e,t,n,r,o,i,a,s){if(0==a||a==t.height)return!1;for(var l=!1,c=o;c<i;c++){var u=a*t.width+c,d=t.map[u];if(t.map[u-t.width]==d){l=!0;var p=n.nodeAt(d),f=t.findCell(d),h=f.top,m=f.left;e.setNodeMarkup(e.mapping.slice(s).map(d+r),null,CY(p.attrs,"rowspan",a-h)),e.insert(e.mapping.slice(s).map(t.positionAt(a,m,n)),p.type.createAndFill(CY(p.attrs,"rowspan",h+p.attrs.rowspan-a))),c+=p.attrs.colspan-1}}return l}function AY(e,t,n,r,o,i,a,s){if(0==a||a==t.width)return!1;for(var l=!1,c=o;c<i;c++){var u=c*t.width+a,d=t.map[u];if(t.map[u-1]==d){l=!0;var p=n.nodeAt(d),f=t.colCount(d),h=e.mapping.slice(s).map(d+r);e.setNodeMarkup(h,null,jY(p.attrs,a-f,p.attrs.colspan-(a-f))),e.insert(h+p.nodeSize,p.type.createAndFill(jY(p.attrs,0,a-f))),c+=p.attrs.rowspan-1}}return l}function MY(e,t,n,r,o){var i=n?e.doc.nodeAt(n-1):e.doc,a=pY.get(i),s=r.top,l=r.left,c=l+o.width,u=s+o.height,d=e.tr,p=0;function f(){i=n?d.doc.nodeAt(n-1):d.doc,a=pY.get(i),p=d.mapping.maps.length}(function(e,t,n,r,o,i,a){var s,l,c=hY(e.doc.type.schema);if(o>t.width)for(var u=0,d=0;u<t.height;u++){var p=n.child(u);d+=p.nodeSize;var f=[],h=void 0;h=null==p.lastChild||p.lastChild.type==c.cell?s||(s=c.cell.createAndFill()):l||(l=c.header_cell.createAndFill());for(var m=t.width;m<o;m++)f.push(h);e.insert(e.mapping.slice(a).map(d-1+r),f)}if(i>t.height){for(var v=[],g=0,y=(t.height-1)*t.width;g<Math.max(t.width,o);g++){var b=!(g>=t.width)&&n.nodeAt(t.map[y+g]).type==c.header_cell;v.push(b?l||(l=c.header_cell.createAndFill()):s||(s=c.cell.createAndFill()))}for(var x=c.row.create(null,QF.from(v)),w=[],C=t.height;C<i;C++)w.push(x);e.insert(e.mapping.slice(a).map(r+n.nodeSize-2),w)}return!(!s&&!l)})(d,a,i,n,c,u,p)&&f(),PY(d,a,i,n,l,c,s,p)&&f(),PY(d,a,i,n,l,c,u,p)&&f(),AY(d,a,i,n,s,u,l,p)&&f(),AY(d,a,i,n,s,u,c,p)&&f();for(var h=s;h<u;h++){var m=a.positionAt(h,l,i),v=a.positionAt(h,c,i);d.replace(d.mapping.slice(p).map(m+n),d.mapping.slice(p).map(v+n),new iB(o.rows[h-s],0,0))}f(),d.setSelection(new kY(d.doc.resolve(n+a.positionAt(s,l,i)),d.doc.resolve(n+a.positionAt(u-1,c-1,i)))),t(d)}ZY.prototype.map=function(e){return new ZY(e.map(this.anchor),e.map(this.head))},ZY.prototype.resolve=function(e){var t=e.resolve(this.anchor),n=e.resolve(this.head);return"row"==t.parent.type.spec.tableRole&&"row"==n.parent.type.spec.tableRole&&t.index()<t.parent.childCount&&n.index()<n.parent.childCount&&xY(t,n)?new kY(t,n):JL.near(n,1)};var TY=nW({ArrowLeft:RY("horiz",-1),ArrowRight:RY("horiz",1),ArrowUp:RY("vert",-1),ArrowDown:RY("vert",1),"Shift-ArrowLeft":FY("horiz",-1),"Shift-ArrowRight":FY("horiz",1),"Shift-ArrowUp":FY("vert",-1),"Shift-ArrowDown":FY("vert",1),Backspace:BY,"Mod-Backspace":BY,Delete:BY,"Mod-Delete":BY});function IY(e,t,n){return!n.eq(e.selection)&&(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function RY(e,t){return function(n,r,o){var i=n.selection;if(i instanceof kY)return IY(n,r,JL.near(i.$headCell,t));if("horiz"!=e&&!i.empty)return!1;var a=zY(o,e,t);if(null==a)return!1;if("horiz"==e)return IY(n,r,JL.near(n.doc.resolve(i.head+t),t));var s,l=n.doc.resolve(a),c=wY(l,e,t);return s=c?JL.near(c,1):t<0?JL.near(n.doc.resolve(l.before(-1)),-1):JL.near(n.doc.resolve(l.after(-1)),1),IY(n,r,s)}}function FY(e,t){return function(n,r,o){var i=n.selection;if(!(i instanceof kY)){var a=zY(o,e,t);if(null==a)return!1;i=new kY(n.doc.resolve(a))}var s=wY(i.$headCell,e,t);return!!s&&IY(n,r,new kY(i.$anchorCell,s))}}function BY(e,t){var n=e.selection;if(!(n instanceof kY))return!1;if(t){var r=e.tr,o=hY(e.schema).cell.createAndFill().content;n.forEachCell((function(e,t){e.content.eq(o)||r.replace(r.mapping.map(t+1),r.mapping.map(t+e.nodeSize-1),new iB(o,0,0))})),r.docChanged&&t(r)}return!0}function LY(e,t){var n=vY(e.state.doc.resolve(t));return!!n&&(e.dispatch(e.state.tr.setSelection(new kY(n))),!0)}function NY(e,t,n){if(!gY(e.state))return!1;var r=EY(n),o=e.state.selection;if(o instanceof kY){r||(r={width:1,height:1,rows:[QF.from(DY(hY(e.state.schema).cell,n))]});var i=o.$anchorCell.node(-1),a=o.$anchorCell.start(-1),s=pY.get(i).rectBetween(o.$anchorCell.pos-a,o.$headCell.pos-a);return r=function(e,t,n){var r=e.width,o=e.height,i=e.rows;if(r!=t){for(var a=[],s=[],l=0;l<i.length;l++){for(var c=i[l],u=[],d=a[l]||0,p=0;d<t;p++){var f=c.child(p%c.childCount);d+f.attrs.colspan>t&&(f=f.type.create(jY(f.attrs,f.attrs.colspan,d+f.attrs.colspan-t),f.content)),u.push(f),d+=f.attrs.colspan;for(var h=1;h<f.attrs.rowspan;h++)a[l+h]=(a[l+h]||0)+f.attrs.colspan}s.push(QF.from(u))}i=s,r=t}if(o!=n){for(var m=[],v=0,g=0;v<n;v++,g++){for(var y=[],b=i[g%o],x=0;x<b.childCount;x++){var w=b.child(x);v+w.attrs.rowspan>n&&(w=w.type.create(CY(w.attrs,"rowspan",Math.max(1,n-w.attrs.rowspan)),w.content)),y.push(w)}m.push(QF.from(y))}i=m,o=n}return{width:r,height:o,rows:i}}(r,s.right-s.left,s.bottom-s.top),MY(e.state,e.dispatch,a,s,r),!0}if(r){var l=yY(e.state),c=l.start(-1);return MY(e.state,e.dispatch,c,pY.get(l.node(-1)).findCell(l.pos-c),r),!0}return!1}function _Y(e,t){if(!t.ctrlKey&&!t.metaKey){var n,r=HY(e,t.target);if(t.shiftKey&&e.state.selection instanceof kY)o(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&r&&null!=(n=vY(e.state.selection.$anchor))&&WY(e,t).pos!=n.pos)o(n,t),t.preventDefault();else if(!r)return;e.root.addEventListener("mouseup",i),e.root.addEventListener("dragstart",i),e.root.addEventListener("mousemove",a)}function o(t,n){var r=WY(e,n),o=null==mY.getState(e.state);if(!r||!xY(t,r)){if(!o)return;r=t}var i=new kY(t,r);if(o||!e.state.selection.eq(i)){var a=e.state.tr.setSelection(i);o&&a.setMeta(mY,t.pos),e.dispatch(a)}}function i(){e.root.removeEventListener("mouseup",i),e.root.removeEventListener("dragstart",i),e.root.removeEventListener("mousemove",a),null!=mY.getState(e.state)&&e.dispatch(e.state.tr.setMeta(mY,-1))}function a(n){var a,s=mY.getState(e.state);if(null!=s)a=e.state.doc.resolve(s);else if(HY(e,n.target)!=r&&!(a=WY(e,t)))return i();a&&o(a,n)}}function zY(e,t,n){if(!(e.state.selection instanceof $L))return null;for(var r=e.state.selection.$head,o=r.depth-1;o>=0;o--){var i=r.node(o);if((n<0?r.index(o):r.indexAfter(o))!=(n<0?0:i.childCount))return null;if("cell"==i.type.spec.tableRole||"header_cell"==i.type.spec.tableRole){var a=r.before(o),s="vert"==t?n>0?"down":"up":n>0?"right":"left";return e.endOfTextblock(s)?a:null}}return null}function HY(e,t){for(;t&&t!=e.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t}function WY(e,t){var n=e.posAtCoords({left:t.clientX,top:t.clientY});return n&&n?vY(e.state.doc.resolve(n.pos)):null}var VY=new bN("fix-tables");function UY(e,t,n,r){var o=e.childCount,i=t.childCount;e:for(var a=0,s=0;a<i;a++){for(var l=t.child(a),c=s,u=Math.min(o,a+3);c<u;c++)if(e.child(c)==l){s=c+1,n+=l.nodeSize;continue e}r(l,n),s<o&&e.child(s).sameMarkup(l)?UY(e.child(s),l,n+1,r):l.nodesBetween(0,l.content.size,r,n+1),n+=l.nodeSize}}function qY(e,t){var n,r=function(t,r){"table"==t.type.spec.tableRole&&(n=function(e,t,n,r){var o=pY.get(t);if(!o.problems)return r;r||(r=e.tr);for(var i,a,s=[],l=0;l<o.height;l++)s.push(0);for(var c=0;c<o.problems.length;c++){var u=o.problems[c];if("collision"==u.type){for(var d=t.nodeAt(u.pos),p=0;p<d.attrs.rowspan;p++)s[u.row+p]+=u.n;r.setNodeMarkup(r.mapping.map(n+1+u.pos),null,jY(d.attrs,d.attrs.colspan-u.n,u.n))}else if("missing"==u.type)s[u.row]+=u.n;else if("overlong_rowspan"==u.type){var f=t.nodeAt(u.pos);r.setNodeMarkup(r.mapping.map(n+1+u.pos),null,CY(f.attrs,"rowspan",f.attrs.rowspan-u.n))}else if("colwidth mismatch"==u.type){var h=t.nodeAt(u.pos);r.setNodeMarkup(r.mapping.map(n+1+u.pos),null,CY(h.attrs,"colwidth",u.colwidth))}}for(var m=0;m<s.length;m++)s[m]&&(null==i&&(i=m),a=m);for(var v=0,g=n+1;v<o.height;v++){var y=t.child(v),b=g+y.nodeSize,x=s[v];if(x>0){var w="cell";y.firstChild&&(w=y.firstChild.type.spec.tableRole);for(var C=[],j=0;j<x;j++)C.push(hY(e.schema)[w].createAndFill());var S=0!=v&&i!=v-1||a!=v?b-1:g+1;r.insert(r.mapping.map(S),C)}g=b}return r.setMeta(VY,{fixTables:!0})}(e,t,r,n))};return t?t.doc!=e.doc&&UY(t.doc,e.doc,0,r):e.doc.descendants(r),n}function GY(e){var t,n=e.selection,r=yY(e),o=r.node(-1),i=r.start(-1),a=pY.get(o);return(t=n instanceof kY?a.rectBetween(n.$anchorCell.pos-i,n.$headCell.pos-i):a.findCell(r.pos-i)).tableStart=i,t.map=a,t.table=o,t}function YY(e,t,n){var r=t.map,o=t.tableStart,i=t.table,a=n>0?-1:0;(function(e,t,n){for(var r=hY(t.type.schema).header_cell,o=0;o<e.height;o++)if(t.nodeAt(e.map[n+o*e.width]).type!=r)return!1;return!0})(r,i,n+a)&&(a=0==n||n==r.width?null:0);for(var s=0;s<r.height;s++){var l=s*r.width+n;if(n>0&&n<r.width&&r.map[l-1]==r.map[l]){var c=r.map[l],u=i.nodeAt(c);e.setNodeMarkup(e.mapping.map(o+c),null,SY(u.attrs,n-r.colCount(c))),s+=u.attrs.rowspan-1}else{var d=null==a?hY(i.type.schema).cell:i.nodeAt(r.map[l+a]).type,p=r.positionAt(s,n,i);e.insert(e.mapping.map(o+p),d.createAndFill())}}return e}function KY(e,t,n){for(var r=t.map,o=t.table,i=t.tableStart,a=e.mapping.maps.length,s=0;s<r.height;){var l=s*r.width+n,c=r.map[l],u=o.nodeAt(c);if(n>0&&r.map[l-1]==c||n<r.width-1&&r.map[l+1]==c)e.setNodeMarkup(e.mapping.slice(a).map(i+c),null,jY(u.attrs,n-r.colCount(c)));else{var d=e.mapping.slice(a).map(i+c);e.delete(d,d+u.nodeSize)}s+=u.attrs.rowspan}}function JY(e,t,n){for(var r=t.map,o=t.tableStart,i=t.table,a=o,s=0;s<n;s++)a+=i.child(s).nodeSize;var l=[],c=n>0?-1:0;(function(e,t,n){for(var r=hY(t.type.schema).header_cell,o=0;o<e.width;o++)if(t.nodeAt(e.map[o+n*e.width]).type!=r)return!1;return!0})(r,i,n+c)&&(c=0==n||n==r.height?null:0);for(var u=0,d=r.width*n;u<r.width;u++,d++)if(n>0&&n<r.height&&r.map[d]==r.map[d-r.width]){var p=r.map[d],f=i.nodeAt(p).attrs;e.setNodeMarkup(o+p,null,CY(f,"rowspan",f.rowspan+1)),u+=f.colspan-1}else{var h=null==c?hY(i.type.schema).cell:i.nodeAt(r.map[d+c*r.width]).type;l.push(h.createAndFill())}return e.insert(a,hY(i.type.schema).row.create(null,l)),e}function XY(e,t,n){for(var r=t.map,o=t.table,i=t.tableStart,a=0,s=0;s<n;s++)a+=o.child(s).nodeSize;var l=a+o.child(n).nodeSize,c=e.mapping.maps.length;e.delete(a+i,l+i);for(var u=0,d=n*r.width;u<r.width;u++,d++){var p=r.map[d];if(n>0&&p==r.map[d-r.width]){var f=o.nodeAt(p).attrs;e.setNodeMarkup(e.mapping.slice(c).map(p+i),null,CY(f,"rowspan",f.rowspan-1)),u+=f.colspan-1}else if(n<r.width&&p==r.map[d+r.width]){var h=o.nodeAt(p),m=h.type.create(CY(h.attrs,"rowspan",h.attrs.rowspan-1),h.content),v=r.positionAt(n+1,u,o);e.insert(e.mapping.slice(c).map(i+v),m),u+=h.attrs.colspan-1}}}function QY(e){var t=e.content;return 1==t.childCount&&t.firstChild.isTextblock&&0==t.firstChild.childCount}function $Y(e,t){var n=e.selection;if(!(n instanceof kY)||n.$anchorCell.pos==n.$headCell.pos)return!1;var r=GY(e),o=r.map;if(function(e,t){for(var n=e.width,r=e.height,o=e.map,i=t.top*n+t.left,a=i,s=(t.bottom-1)*n+t.left,l=i+(t.right-t.left-1),c=t.top;c<t.bottom;c++){if(t.left>0&&o[a]==o[a-1]||t.right<n&&o[l]==o[l+1])return!0;a+=n,l+=n}for(var u=t.left;u<t.right;u++){if(t.top>0&&o[i]==o[i-n]||t.bottom<r&&o[s]==o[s+n])return!0;i++,s++}return!1}(o,r))return!1;if(t){for(var i,a,s=e.tr,l={},c=QF.empty,u=r.top;u<r.bottom;u++)for(var d=r.left;d<r.right;d++){var p=o.map[u*o.width+d],f=r.table.nodeAt(p);if(!l[p])if(l[p]=!0,null==i)i=p,a=f;else{QY(f)||(c=c.append(f.content));var h=s.mapping.map(p+r.tableStart);s.delete(h,h+f.nodeSize)}}if(s.setNodeMarkup(i+r.tableStart,null,CY(SY(a.attrs,a.attrs.colspan,r.right-r.left-a.attrs.colspan),"rowspan",r.bottom-r.top)),c.size){var m=i+1+a.content.size,v=QY(a)?i+1:m;s.replaceWith(v+r.tableStart,m+r.tableStart,c)}s.setSelection(new kY(s.doc.resolve(i+r.tableStart))),t(s)}return!0}function eK(e,t){var n,r=hY(e.schema);return(n=function(e){var t=e.node;return r[t.type.spec.tableRole]},function(e,t){var r,o,i=e.selection;if(i instanceof kY){if(i.$anchorCell.pos!=i.$headCell.pos)return!1;r=i.$anchorCell.nodeAfter,o=i.$anchorCell.pos}else{if(r=function(e){for(var t=e.depth;t>0;t--){var n=e.node(t).type.spec.tableRole;if("cell"===n||"header_cell"===n)return e.node(t)}return null}(i.$from),!r)return!1;o=vY(i.$from).pos}if(1==r.attrs.colspan&&1==r.attrs.rowspan)return!1;if(t){var a=r.attrs,s=[],l=a.colwidth;a.rowspan>1&&(a=CY(a,"rowspan",1)),a.colspan>1&&(a=CY(a,"colspan",1));for(var c,u=GY(e),d=e.tr,p=0;p<u.right-u.left;p++)s.push(l?CY(a,"colwidth",l&&l[p]?[l[p]]:null):a);for(var f=u.top;f<u.bottom;f++){var h=u.map.positionAt(f,u.left,u.table);f==u.top&&(h+=r.nodeSize);for(var m=u.left,v=0;m<u.right;m++,v++)m==u.left&&f==u.top||d.insert(c=d.mapping.map(h+u.tableStart,1),n({node:r,row:f,col:m}).createAndFill(s[v]))}d.setNodeMarkup(o,n({node:r,row:u.top,col:u.left}),s[0]),i instanceof kY&&d.setSelection(new kY(d.doc.resolve(i.$anchorCell.pos),c&&d.doc.resolve(c))),t(d)}return!0})(e,t)}function tK(e,t,n){for(var r=t.map.cellsInRect({left:0,top:0,right:"row"==e?t.map.width:1,bottom:"column"==e?t.map.height:1}),o=0;o<r.length;o++){var i=t.table.nodeAt(r[o]);if(i&&i.type!==n.header_cell)return!1}return!0}function nK(e,t){return(t=t||{useDeprecatedLogic:!1}).useDeprecatedLogic?function(e){return function(t,n){if(!gY(t))return!1;if(n){for(var r=hY(t.schema),o=GY(t),i=t.tr,a=o.map.cellsInRect("column"==e?new dY(o.left,0,o.right,o.map.height):"row"==e?new dY(0,o.top,o.map.width,o.bottom):o),s=a.map((function(e){return o.table.nodeAt(e)})),l=0;l<a.length;l++)s[l].type==r.header_cell&&i.setNodeMarkup(o.tableStart+a[l],r.cell,s[l].attrs);if(0==i.steps.length)for(var c=0;c<a.length;c++)i.setNodeMarkup(o.tableStart+a[c],r.header_cell,s[c].attrs);n(i)}return!0}}(e):function(t,n){if(!gY(t))return!1;if(n){var r=hY(t.schema),o=GY(t),i=t.tr,a=tK("row",o,r),s=tK("column",o,r),l=("column"===e?a:"row"===e&&s)?1:0,c="column"==e?new dY(0,l,1,o.map.height):"row"==e?new dY(l,0,o.map.width,1):o,u="column"==e?s?r.cell:r.header_cell:"row"==e?a?r.cell:r.header_cell:r.cell;o.map.cellsInRect(c).forEach((function(e){var t=e+o.tableStart,n=i.doc.nodeAt(t);n&&i.setNodeMarkup(t,u,n.attrs)})),n(i)}return!0}}nK("row",{useDeprecatedLogic:!0}),nK("column",{useDeprecatedLogic:!0});var rK=nK("cell",{useDeprecatedLogic:!0});function oK(e){return function(t,n){if(!gY(t))return!1;var r=function(e,t){if(t<0){var n=e.nodeBefore;if(n)return e.pos-n.nodeSize;for(var r=e.index(-1)-1,o=e.before();r>=0;r--){var i=e.node(-1).child(r);if(i.childCount)return o-1-i.lastChild.nodeSize;o-=i.nodeSize}}else{if(e.index()<e.parent.childCount-1)return e.pos+e.nodeAfter.nodeSize;for(var a=e.node(-1),s=e.indexAfter(-1),l=e.after();s<a.childCount;s++){var c=a.child(s);if(c.childCount)return l+1;l+=c.nodeSize}}}(yY(t),e);if(null!=r){if(n){var o=t.doc.resolve(r);n(t.tr.setSelection($L.between(o,(i=o,i.node(0).resolve(i.pos+i.nodeAfter.nodeSize)))).scrollIntoView())}var i;return!0}}}var iK=function(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),aK(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))};function aK(e,t,n,r,o,i){for(var a=0,s=!0,l=t.firstChild,c=e.firstChild,u=0,d=0;u<c.childCount;u++)for(var p=c.child(u).attrs,f=p.colspan,h=p.colwidth,m=0;m<f;m++,d++){var v=o==d?i:h&&h[m],g=v?v+"px":"";a+=v||r,v||(s=!1),l?(l.style.width!=g&&(l.style.width=g),l=l.nextSibling):t.appendChild(document.createElement("col")).style.width=g}for(;l;){var y=l.nextSibling;l.parentNode.removeChild(l),l=y}s?(n.style.width=a+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=a+"px")}iK.prototype.update=function(e){return e.type==this.node.type&&(this.node=e,aK(e,this.colgroup,this.table,this.cellMinWidth),!0)},iK.prototype.ignoreMutation=function(e){return"attributes"==e.type&&(e.target==this.table||this.colgroup.contains(e.target))};var sK=new bN("tableColumnResizing");function lK(e){void 0===e&&(e={});var t=e.handleWidth;void 0===t&&(t=5);var n=e.cellMinWidth;void 0===n&&(n=25);var r=e.View;void 0===r&&(r=iK);var o=e.lastColumnResizable;void 0===o&&(o=!0);var i=new vN({key:sK,state:{init:function(e,t){return this.spec.props.nodeViews[hY(t.schema).table.name]=function(e,t){return new r(e,n,t)},new cK(-1,!1)},apply:function(e,t){return t.apply(e)}},props:{attributes:function(e){return sK.getState(e).activeHandle>-1?{class:"resize-cursor"}:null},handleDOMEvents:{mousemove:function(e,n){!function(e,t,n,r,o){var i=sK.getState(e.state);if(!i.dragging){var a=function(e){for(;e&&"TD"!=e.nodeName&&"TH"!=e.nodeName;)e=e.classList.contains("ProseMirror")?null:e.parentNode;return e}(t.target),s=-1;if(a){var l=a.getBoundingClientRect(),c=l.left,u=l.right;t.clientX-c<=n?s=uK(e,t,"left"):u-t.clientX<=n&&(s=uK(e,t,"right"))}if(s!=i.activeHandle){if(!o&&-1!==s){var d=e.state.doc.resolve(s),p=d.node(-1),f=pY.get(p),h=d.start(-1);if(f.colCount(d.pos-h)+d.nodeAfter.attrs.colspan-1==f.width-1)return}pK(e,s)}}}(e,n,t,0,o)},mouseleave:function(e){!function(e){var t=sK.getState(e.state);t.activeHandle>-1&&!t.dragging&&pK(e,-1)}(e)},mousedown:function(e,t){!function(e,t,n){var r=sK.getState(e.state);if(-1==r.activeHandle||r.dragging)return!1;var o=e.state.doc.nodeAt(r.activeHandle),i=function(e,t,n){var r=n.colspan,o=n.colwidth,i=o&&o[o.length-1];if(i)return i;var a=e.domAtPos(t),s=a.node.childNodes[a.offset].offsetWidth,l=r;if(o)for(var c=0;c<r;c++)o[c]&&(s-=o[c],l--);return s/l}(e,r.activeHandle,o.attrs);function a(t){window.removeEventListener("mouseup",a),window.removeEventListener("mousemove",s);var r=sK.getState(e.state);r.dragging&&(!function(e,t,n){for(var r=e.state.doc.resolve(t),o=r.node(-1),i=pY.get(o),a=r.start(-1),s=i.colCount(r.pos-a)+r.nodeAfter.attrs.colspan-1,l=e.state.tr,c=0;c<i.height;c++){var u=c*i.width+s;if(!c||i.map[u]!=i.map[u-i.width]){var d=i.map[u],p=o.nodeAt(d).attrs,f=1==p.colspan?0:s-i.colCount(d);if(!p.colwidth||p.colwidth[f]!=n){var h=p.colwidth?p.colwidth.slice():fK(p.colspan);h[f]=n,l.setNodeMarkup(a+d,null,CY(p,"colwidth",h))}}}l.docChanged&&e.dispatch(l)}(e,r.activeHandle,dK(r.dragging,t,n)),e.dispatch(e.state.tr.setMeta(sK,{setDragging:null})))}function s(t){if(!t.which)return a(t);var r=sK.getState(e.state),o=dK(r.dragging,t,n);!function(e,t,n,r){var o=e.state.doc.resolve(t),i=o.node(-1),a=o.start(-1),s=pY.get(i).colCount(o.pos-a)+o.nodeAfter.attrs.colspan-1,l=e.domAtPos(o.start(-1)).node;for(;"TABLE"!=l.nodeName;)l=l.parentNode;aK(i,l.firstChild,l,r,s,n)}(e,r.activeHandle,o,n)}e.dispatch(e.state.tr.setMeta(sK,{setDragging:{startX:t.clientX,startWidth:i}})),window.addEventListener("mouseup",a),window.addEventListener("mousemove",s),t.preventDefault()}(e,t,n)}},decorations:function(e){var t=sK.getState(e);if(t.activeHandle>-1)return function(e,t){for(var n=[],r=e.doc.resolve(t),o=r.node(-1),i=pY.get(o),a=r.start(-1),s=i.colCount(r.pos-a)+r.nodeAfter.attrs.colspan,l=0;l<i.height;l++){var c=s+l*i.width-1;if((s==i.width||i.map[c]!=i.map[c+1])&&(0==l||i.map[c-1]!=i.map[c-1-i.width])){var u=i.map[c],d=a+u+o.nodeAt(u).nodeSize-1,p=document.createElement("div");p.className="column-resize-handle",n.push(wH.widget(d,p))}}return kH.create(e.doc,n)}(e,t.activeHandle)},nodeViews:{}}});return i}var cK=function(e,t){this.activeHandle=e,this.dragging=t};function uK(e,t,n){var r=e.posAtCoords({left:t.clientX,top:t.clientY});if(!r)return-1;var o=r.pos,i=vY(e.state.doc.resolve(o));if(!i)return-1;if("right"==n)return i.pos;var a=pY.get(i.node(-1)),s=i.start(-1),l=a.map.indexOf(i.pos-s);return l%a.width==0?-1:s+a.map[l-1]}function dK(e,t,n){var r=t.clientX-e.startX;return Math.max(n,e.startWidth+r)}function pK(e,t){e.dispatch(e.state.tr.setMeta(sK,{setHandle:t}))}function fK(e){for(var t=[],n=0;n<e;n++)t.push(0);return t}function hK(e){void 0===e&&(e={});var t=e.allowTableNodeSelection;return void 0===t&&(t=!1),new vN({key:mY,state:{init:function(){return null},apply:function(e,t){var n=e.getMeta(mY);if(null!=n)return-1==n?null:n;if(null==t||!e.docChanged)return t;var r=e.mapping.mapResult(t),o=r.deleted,i=r.pos;return o?null:i}},props:{decorations:OY,handleDOMEvents:{mousedown:_Y},createSelectionBetween:function(e){if(null!=mY.getState(e.state))return e.state.selection},handleTripleClick:LY,handleKeyDown:TY,handlePaste:NY},appendTransaction:function(e,n,r){return function(e,t,n){var r,o,i=(t||e).selection,a=(t||e).doc;if(i instanceof tN&&(o=i.node.type.spec.tableRole)){if("cell"==o||"header_cell"==o)r=kY.create(a,i.from);else if("row"==o){var s=a.resolve(i.from+1);r=kY.rowSelection(s,s)}else if(!n){var l=pY.get(i.node),c=i.from+1,u=c+l.map[l.width*l.height-1];r=kY.create(a,c+1,u)}}else i instanceof $L&&function(e){var t=e.$from,n=e.$to;if(t.pos==n.pos||t.pos<t.pos-6)return!1;for(var r=t.pos,o=n.pos,i=t.depth;i>=0&&!(t.after(i+1)<t.end(i));i--,r++);for(var a=n.depth;a>=0&&!(n.before(a+1)>n.start(a));a--,o--);return r==o&&/row|table/.test(t.node(i).type.spec.tableRole)}(i)?r=$L.create(a,i.from):i instanceof $L&&function(e){for(var t,n,r=e.$from,o=e.$to,i=r.depth;i>0;i--){var a=r.node(i);if("cell"===a.type.spec.tableRole||"header_cell"===a.type.spec.tableRole){t=a;break}}for(var s=o.depth;s>0;s--){var l=o.node(s);if("cell"===l.type.spec.tableRole||"header_cell"===l.type.spec.tableRole){n=l;break}}return t!==n&&0===o.parentOffset}(i)&&(r=$L.create(a,i.$from.start(),i.$from.end()));return r&&(t||(t=e.tr)).setSelection(r),t}(r,qY(r,n),t)}})}function mK(e,t,n){for(var r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;var o=e.child(r),i=t.child(r);if(o!=i){if(!o.sameMarkup(i))return n;if(o.isText&&o.text!=i.text){for(var a=0;o.text[a]==i.text[a];a++)n++;return n}if(o.content.size||i.content.size){var s=mK(o.content,i.content,n+1);if(null!=s)return s}n+=o.nodeSize}else n+=o.nodeSize}}function vK(e,t,n,r){for(var o=e.childCount,i=t.childCount;;){if(0==o||0==i)return o==i?null:{a:n,b:r};var a=e.child(--o),s=t.child(--i),l=a.nodeSize;if(a!=s){if(!a.sameMarkup(s))return{a:n,b:r};if(a.isText&&a.text!=s.text){for(var c=0,u=Math.min(a.text.length,s.text.length);c<u&&a.text[a.text.length-c-1]==s.text[s.text.length-c-1];)c++,n--,r--;return{a:n,b:r}}if(a.content.size||s.content.size){var d=vK(a.content,s.content,n-1,r-1);if(d)return d}n-=l,r-=l}else n-=l,r-=l}}cK.prototype.apply=function(e){var t=this,n=e.getMeta(sK);if(n&&null!=n.setHandle)return new cK(n.setHandle,null);if(n&&void 0!==n.setDragging)return new cK(t.activeHandle,n.setDragging);if(t.activeHandle>-1&&e.docChanged){var r=e.mapping.map(t.activeHandle,-1);bY(e.doc.resolve(r))||(r=null),t=new cK(r,t.dragging)}return t};var gK=function(e,t){if(this.content=e,this.size=t||0,null==t)for(var n=0;n<e.length;n++)this.size+=e[n].nodeSize},yK={firstChild:{configurable:!0},lastChild:{configurable:!0},childCount:{configurable:!0}};gK.prototype.nodesBetween=function(e,t,n,r,o){void 0===r&&(r=0);for(var i=0,a=0;a<t;i++){var s=this.content[i],l=a+s.nodeSize;if(l>e&&!1!==n(s,r+a,o,i)&&s.content.size){var c=a+1;s.nodesBetween(Math.max(0,e-c),Math.min(s.content.size,t-c),n,r+c)}a=l}},gK.prototype.descendants=function(e){this.nodesBetween(0,this.size,e)},gK.prototype.textBetween=function(e,t,n,r){var o="",i=!0;return this.nodesBetween(e,t,(function(a,s){a.isText?(o+=a.text.slice(Math.max(e,s)-s,t-s),i=!n):a.isLeaf&&r?(o+="function"===typeof r?r(a):r,i=!n):!i&&a.isBlock&&(o+=n,i=!0)}),0),o},gK.prototype.append=function(e){if(!e.size)return this;if(!this.size)return e;var t=this.lastChild,n=e.firstChild,r=this.content.slice(),o=0;for(t.isText&&t.sameMarkup(n)&&(r[r.length-1]=t.withText(t.text+n.text),o=1);o<e.content.length;o++)r.push(e.content[o]);return new gK(r,this.size+e.size)},gK.prototype.cut=function(e,t){if(null==t&&(t=this.size),0==e&&t==this.size)return this;var n=[],r=0;if(t>e)for(var o=0,i=0;i<t;o++){var a=this.content[o],s=i+a.nodeSize;s>e&&((i<e||s>t)&&(a=a.isText?a.cut(Math.max(0,e-i),Math.min(a.text.length,t-i)):a.cut(Math.max(0,e-i-1),Math.min(a.content.size,t-i-1))),n.push(a),r+=a.nodeSize),i=s}return new gK(n,r)},gK.prototype.cutByIndex=function(e,t){return e==t?gK.empty:0==e&&t==this.content.length?this:new gK(this.content.slice(e,t))},gK.prototype.replaceChild=function(e,t){var n=this.content[e];if(n==t)return this;var r=this.content.slice(),o=this.size+t.nodeSize-n.nodeSize;return r[e]=t,new gK(r,o)},gK.prototype.addToStart=function(e){return new gK([e].concat(this.content),this.size+e.nodeSize)},gK.prototype.addToEnd=function(e){return new gK(this.content.concat(e),this.size+e.nodeSize)},gK.prototype.eq=function(e){if(this.content.length!=e.content.length)return!1;for(var t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0},yK.firstChild.get=function(){return this.content.length?this.content[0]:null},yK.lastChild.get=function(){return this.content.length?this.content[this.content.length-1]:null},yK.childCount.get=function(){return this.content.length},gK.prototype.child=function(e){var t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t},gK.prototype.maybeChild=function(e){return this.content[e]},gK.prototype.forEach=function(e){for(var t=0,n=0;t<this.content.length;t++){var r=this.content[t];e(r,n,t),n+=r.nodeSize}},gK.prototype.findDiffStart=function(e,t){return void 0===t&&(t=0),mK(this,e,t)},gK.prototype.findDiffEnd=function(e,t,n){return void 0===t&&(t=this.size),void 0===n&&(n=e.size),vK(this,e,t,n)},gK.prototype.findIndex=function(e,t){if(void 0===t&&(t=-1),0==e)return xK(0,e);if(e==this.size)return xK(this.content.length,e);if(e>this.size||e<0)throw new RangeError("Position "+e+" outside of fragment ("+this+")");for(var n=0,r=0;;n++){var o=r+this.child(n).nodeSize;if(o>=e)return o==e||t>0?xK(n+1,o):xK(n,r);r=o}},gK.prototype.toString=function(){return"<"+this.toStringInner()+">"},gK.prototype.toStringInner=function(){return this.content.join(", ")},gK.prototype.toJSON=function(){return this.content.length?this.content.map((function(e){return e.toJSON()})):null},gK.fromJSON=function(e,t){if(!t)return gK.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new gK(t.map(e.nodeFromJSON))},gK.fromArray=function(e){if(!e.length)return gK.empty;for(var t,n=0,r=0;r<e.length;r++){var o=e[r];n+=o.nodeSize,r&&o.isText&&e[r-1].sameMarkup(o)?(t||(t=e.slice(0,r)),t[t.length-1]=o.withText(t[t.length-1].text+o.text)):t&&t.push(o)}return new gK(t||e,n)},gK.from=function(e){if(!e)return gK.empty;if(e instanceof gK)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new gK([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))},Object.defineProperties(gK.prototype,yK);var bK={index:0,offset:0};function xK(e,t){return bK.index=e,bK.offset=t,bK}function wK(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;var n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if(!wK(e[r],t[r]))return!1}else{for(var o in e)if(!(o in t)||!wK(e[o],t[o]))return!1;for(var i in t)if(!(i in e))return!1}return!0}gK.empty=new gK([],0);var CK=function(e,t){this.type=e,this.attrs=t};function jK(e){var t=Error.call(this,e);return t.__proto__=jK.prototype,t}CK.prototype.addToSet=function(e){for(var t,n=!1,r=0;r<e.length;r++){var o=e[r];if(this.eq(o))return e;if(this.type.excludes(o.type))t||(t=e.slice(0,r));else{if(o.type.excludes(this.type))return e;!n&&o.type.rank>this.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(o)}}return t||(t=e.slice()),n||t.push(this),t},CK.prototype.removeFromSet=function(e){for(var t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e},CK.prototype.isInSet=function(e){for(var t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1},CK.prototype.eq=function(e){return this==e||this.type==e.type&&wK(this.attrs,e.attrs)},CK.prototype.toJSON=function(){var e={type:this.type.name};for(var t in this.attrs){e.attrs=this.attrs;break}return e},CK.fromJSON=function(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");var n=e.marks[t.type];if(!n)throw new RangeError("There is no mark type "+t.type+" in this schema");return n.create(t.attrs)},CK.sameSet=function(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0},CK.setFrom=function(e){if(!e||0==e.length)return CK.none;if(e instanceof CK)return[e];var t=e.slice();return t.sort((function(e,t){return e.type.rank-t.type.rank})),t},CK.none=[],jK.prototype=Object.create(Error.prototype),jK.prototype.constructor=jK,jK.prototype.name="ReplaceError";var SK=function(e,t,n){this.content=e,this.openStart=t,this.openEnd=n},kK={size:{configurable:!0}};function ZK(e,t,n){var r=e.findIndex(t),o=r.index,i=r.offset,a=e.maybeChild(o),s=e.findIndex(n),l=s.index,c=s.offset;if(i==t||a.isText){if(c!=n&&!e.child(l).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(o!=l)throw new RangeError("Removing non-flat range");return e.replaceChild(o,a.copy(ZK(a.content,t-i-1,n-i-1)))}function OK(e,t,n,r){var o=e.findIndex(t),i=o.index,a=o.offset,s=e.maybeChild(i);if(a==t||s.isText)return r&&!r.canReplace(i,i,n)?null:e.cut(0,t).append(n).append(e.cut(t));var l=OK(s.content,t-a-1,n);return l&&e.replaceChild(i,s.copy(l))}function EK(e,t,n){if(n.openStart>e.depth)throw new jK("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new jK("Inconsistent open depths");return DK(e,t,n,0)}function DK(e,t,n,r){var o=e.index(r),i=e.node(r);if(o==t.index(r)&&r<e.depth-n.openStart){var a=DK(e,t,n,r+1);return i.copy(i.content.replaceChild(o,a))}if(n.content.size){if(n.openStart||n.openEnd||e.depth!=r||t.depth!=r){var s=function(e,t){for(var n=t.depth-e.openStart,r=t.node(n).copy(e.content),o=n-1;o>=0;o--)r=t.node(o).copy(gK.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}(n,e);return IK(i,RK(e,s.start,s.end,t,r))}var l=e.parent,c=l.content;return IK(l,c.cut(0,e.parentOffset).append(n.content).append(c.cut(t.parentOffset)))}return IK(i,FK(e,t,r))}function PK(e,t){if(!t.type.compatibleContent(e.type))throw new jK("Cannot join "+t.type.name+" onto "+e.type.name)}function AK(e,t,n){var r=e.node(n);return PK(r,t.node(n)),r}function MK(e,t){var n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function TK(e,t,n,r){var o=(t||e).node(n),i=0,a=t?t.index(n):o.childCount;e&&(i=e.index(n),e.depth>n?i++:e.textOffset&&(MK(e.nodeAfter,r),i++));for(var s=i;s<a;s++)MK(o.child(s),r);t&&t.depth==n&&t.textOffset&&MK(t.nodeBefore,r)}function IK(e,t){if(!e.type.validContent(t))throw new jK("Invalid content for node "+e.type.name);return e.copy(t)}function RK(e,t,n,r,o){var i=e.depth>o&&AK(e,t,o+1),a=r.depth>o&&AK(n,r,o+1),s=[];return TK(null,e,o,s),i&&a&&t.index(o)==n.index(o)?(PK(i,a),MK(IK(i,RK(e,t,n,r,o+1)),s)):(i&&MK(IK(i,FK(e,t,o+1)),s),TK(t,n,o,s),a&&MK(IK(a,FK(n,r,o+1)),s)),TK(r,null,o,s),new gK(s)}function FK(e,t,n){var r=[];(TK(null,e,n,r),e.depth>n)&&MK(IK(AK(e,t,n+1),FK(e,t,n+1)),r);return TK(t,null,n,r),new gK(r)}kK.size.get=function(){return this.content.size-this.openStart-this.openEnd},SK.prototype.insertAt=function(e,t){var n=OK(this.content,e+this.openStart,t,null);return n&&new SK(n,this.openStart,this.openEnd)},SK.prototype.removeBetween=function(e,t){return new SK(ZK(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)},SK.prototype.eq=function(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd},SK.prototype.toString=function(){return this.content+"("+this.openStart+","+this.openEnd+")"},SK.prototype.toJSON=function(){if(!this.content.size)return null;var e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e},SK.fromJSON=function(e,t){if(!t)return SK.empty;var n=t.openStart||0,r=t.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw new RangeError("Invalid input for Slice.fromJSON");return new SK(gK.fromJSON(e,t.content),n,r)},SK.maxOpen=function(e,t){void 0===t&&(t=!0);for(var n=0,r=0,o=e.firstChild;o&&!o.isLeaf&&(t||!o.type.spec.isolating);o=o.firstChild)n++;for(var i=e.lastChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.lastChild)r++;return new SK(e,n,r)},Object.defineProperties(SK.prototype,kK),SK.empty=new SK(gK.empty,0,0);var BK=function(e,t,n){this.pos=e,this.path=t,this.depth=t.length/3-1,this.parentOffset=n},LK={parent:{configurable:!0},doc:{configurable:!0},textOffset:{configurable:!0},nodeAfter:{configurable:!0},nodeBefore:{configurable:!0}};BK.prototype.resolveDepth=function(e){return null==e?this.depth:e<0?this.depth+e:e},LK.parent.get=function(){return this.node(this.depth)},LK.doc.get=function(){return this.node(0)},BK.prototype.node=function(e){return this.path[3*this.resolveDepth(e)]},BK.prototype.index=function(e){return this.path[3*this.resolveDepth(e)+1]},BK.prototype.indexAfter=function(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)},BK.prototype.start=function(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1},BK.prototype.end=function(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size},BK.prototype.before=function(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]},BK.prototype.after=function(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize},LK.textOffset.get=function(){return this.pos-this.path[this.path.length-1]},LK.nodeAfter.get=function(){var e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;var n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r},LK.nodeBefore.get=function(){var e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)},BK.prototype.posAtIndex=function(e,t){t=this.resolveDepth(t);for(var n=this.path[3*t],r=0==t?0:this.path[3*t-1]+1,o=0;o<e;o++)r+=n.child(o).nodeSize;return r},BK.prototype.marks=function(){var e=this.parent,t=this.index();if(0==e.content.size)return CK.none;if(this.textOffset)return e.child(t).marks;var n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){var o=n;n=r,r=o}for(var i=n.marks,a=0;a<i.length;a++)!1!==i[a].type.spec.inclusive||r&&i[a].isInSet(r.marks)||(i=i[a--].removeFromSet(i));return i},BK.prototype.marksAcross=function(e){var t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;for(var n=t.marks,r=e.parent.maybeChild(e.index()),o=0;o<n.length;o++)!1!==n[o].type.spec.inclusive||r&&n[o].isInSet(r.marks)||(n=n[o--].removeFromSet(n));return n},BK.prototype.sharedDepth=function(e){for(var t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0},BK.prototype.blockRange=function(e,t){if(void 0===e&&(e=this),e.pos<this.pos)return e.blockRange(this);for(var n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new HK(this,e,n)},BK.prototype.sameParent=function(e){return this.pos-this.parentOffset==e.pos-e.parentOffset},BK.prototype.max=function(e){return e.pos>this.pos?e:this},BK.prototype.min=function(e){return e.pos<this.pos?e:this},BK.prototype.toString=function(){for(var e="",t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset},BK.resolve=function(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");for(var n=[],r=0,o=t,i=e;;){var a=i.content.findIndex(o),s=a.index,l=a.offset,c=o-l;if(n.push(i,s,r+l),!c)break;if((i=i.child(s)).isText)break;o=c-1,r+=l+1}return new BK(t,n,o)},BK.resolveCached=function(e,t){for(var n=0;n<NK.length;n++){var r=NK[n];if(r.pos==t&&r.doc==e)return r}var o=NK[_K]=BK.resolve(e,t);return _K=(_K+1)%zK,o},Object.defineProperties(BK.prototype,LK);var NK=[],_K=0,zK=12,HK=function(e,t,n){this.$from=e,this.$to=t,this.depth=n},WK={start:{configurable:!0},end:{configurable:!0},parent:{configurable:!0},startIndex:{configurable:!0},endIndex:{configurable:!0}};WK.start.get=function(){return this.$from.before(this.depth+1)},WK.end.get=function(){return this.$to.after(this.depth+1)},WK.parent.get=function(){return this.$from.node(this.depth)},WK.startIndex.get=function(){return this.$from.index(this.depth)},WK.endIndex.get=function(){return this.$to.indexAfter(this.depth)},Object.defineProperties(HK.prototype,WK);var VK=Object.create(null),UK=function(e,t,n,r){this.type=e,this.attrs=t,this.content=n||gK.empty,this.marks=r||CK.none},qK={nodeSize:{configurable:!0},childCount:{configurable:!0},textContent:{configurable:!0},firstChild:{configurable:!0},lastChild:{configurable:!0},isBlock:{configurable:!0},isTextblock:{configurable:!0},inlineContent:{configurable:!0},isInline:{configurable:!0},isText:{configurable:!0},isLeaf:{configurable:!0},isAtom:{configurable:!0}};qK.nodeSize.get=function(){return this.isLeaf?1:2+this.content.size},qK.childCount.get=function(){return this.content.childCount},UK.prototype.child=function(e){return this.content.child(e)},UK.prototype.maybeChild=function(e){return this.content.maybeChild(e)},UK.prototype.forEach=function(e){this.content.forEach(e)},UK.prototype.nodesBetween=function(e,t,n,r){void 0===r&&(r=0),this.content.nodesBetween(e,t,n,r,this)},UK.prototype.descendants=function(e){this.nodesBetween(0,this.content.size,e)},qK.textContent.get=function(){return this.textBetween(0,this.content.size,"")},UK.prototype.textBetween=function(e,t,n,r){return this.content.textBetween(e,t,n,r)},qK.firstChild.get=function(){return this.content.firstChild},qK.lastChild.get=function(){return this.content.lastChild},UK.prototype.eq=function(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)},UK.prototype.sameMarkup=function(e){return this.hasMarkup(e.type,e.attrs,e.marks)},UK.prototype.hasMarkup=function(e,t,n){return this.type==e&&wK(this.attrs,t||e.defaultAttrs||VK)&&CK.sameSet(this.marks,n||CK.none)},UK.prototype.copy=function(e){return void 0===e&&(e=null),e==this.content?this:new this.constructor(this.type,this.attrs,e,this.marks)},UK.prototype.mark=function(e){return e==this.marks?this:new this.constructor(this.type,this.attrs,this.content,e)},UK.prototype.cut=function(e,t){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))},UK.prototype.slice=function(e,t,n){if(void 0===t&&(t=this.content.size),void 0===n&&(n=!1),e==t)return SK.empty;var r=this.resolve(e),o=this.resolve(t),i=n?0:r.sharedDepth(t),a=r.start(i),s=r.node(i).content.cut(r.pos-a,o.pos-a);return new SK(s,r.depth-i,o.depth-i)},UK.prototype.replace=function(e,t,n){return EK(this.resolve(e),this.resolve(t),n)},UK.prototype.nodeAt=function(e){for(var t=this;;){var n=t.content.findIndex(e),r=n.index,o=n.offset;if(!(t=t.maybeChild(r)))return null;if(o==e||t.isText)return t;e-=o+1}},UK.prototype.childAfter=function(e){var t=this.content.findIndex(e),n=t.index,r=t.offset;return{node:this.content.maybeChild(n),index:n,offset:r}},UK.prototype.childBefore=function(e){if(0==e)return{node:null,index:0,offset:0};var t=this.content.findIndex(e),n=t.index,r=t.offset;if(r<e)return{node:this.content.child(n),index:n,offset:r};var o=this.content.child(n-1);return{node:o,index:n-1,offset:r-o.nodeSize}},UK.prototype.resolve=function(e){return BK.resolveCached(this,e)},UK.prototype.resolveNoCache=function(e){return BK.resolve(this,e)},UK.prototype.rangeHasMark=function(e,t,n){var r=!1;return t>e&&this.nodesBetween(e,t,(function(e){return n.isInSet(e.marks)&&(r=!0),!r})),r},qK.isBlock.get=function(){return this.type.isBlock},qK.isTextblock.get=function(){return this.type.isTextblock},qK.inlineContent.get=function(){return this.type.inlineContent},qK.isInline.get=function(){return this.type.isInline},qK.isText.get=function(){return this.type.isText},qK.isLeaf.get=function(){return this.type.isLeaf},qK.isAtom.get=function(){return this.type.isAtom},UK.prototype.toString=function(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);var e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),function(e,t){for(var n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}(this.marks,e)},UK.prototype.contentMatchAt=function(e){var t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t},UK.prototype.canReplace=function(e,t,n,r,o){void 0===n&&(n=gK.empty),void 0===r&&(r=0),void 0===o&&(o=n.childCount);var i=this.contentMatchAt(e).matchFragment(n,r,o),a=i&&i.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(var s=r;s<o;s++)if(!this.type.allowsMarks(n.child(s).marks))return!1;return!0},UK.prototype.canReplaceWith=function(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;var o=this.contentMatchAt(e).matchType(n),i=o&&o.matchFragment(this.content,t);return!!i&&i.validEnd},UK.prototype.canAppend=function(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)},UK.prototype.check=function(){if(!this.type.validContent(this.content))throw new RangeError("Invalid content for node "+this.type.name+": "+this.content.toString().slice(0,50));for(var e=CK.none,t=0;t<this.marks.length;t++)e=this.marks[t].addToSet(e);if(!CK.sameSet(e,this.marks))throw new RangeError("Invalid collection of marks for node "+this.type.name+": "+this.marks.map((function(e){return e.type.name})));this.content.forEach((function(e){return e.check()}))},UK.prototype.toJSON=function(){var e={type:this.type.name};for(var t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map((function(e){return e.toJSON()}))),e},UK.fromJSON=function(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");var n=null;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw new RangeError("Invalid text node in JSON");return e.text(t.text,n)}var r=gK.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,r,n)},Object.defineProperties(UK.prototype,qK);var GK=function(e){this.validEnd=e,this.next=[],this.wrapCache=[]},YK={inlineContent:{configurable:!0},defaultType:{configurable:!0},edgeCount:{configurable:!0}};GK.parse=function(e,t){var n=new KK(e,t);if(null==n.next)return GK.empty;var r=XK(n);n.next&&n.err("Unexpected trailing text");var o=function(e){var t=Object.create(null);return n(rJ(e,0));function n(r){var o=[];r.forEach((function(t){e[t].forEach((function(t){var n=t.term,r=t.to;if(n){var i=o.indexOf(n),a=i>-1&&o[i+1];rJ(e,r).forEach((function(e){a||o.push(n,a=[]),-1==a.indexOf(e)&&a.push(e)}))}}))}));for(var i=t[r.join(",")]=new GK(r.indexOf(e.length-1)>-1),a=0;a<o.length;a+=2){var s=o[a+1].sort(nJ);i.next.push(o[a],t[s.join(",")]||n(s))}return i}}(function(e){var t=[[]];return o(i(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){var o={term:r,to:n};return t[e].push(o),o}function o(e,t){e.forEach((function(e){return e.to=t}))}function i(e,t){if("choice"==e.type)return e.exprs.reduce((function(e,n){return e.concat(i(n,t))}),[]);if("seq"==e.type)for(var a=0;;a++){var s=i(e.exprs[a],t);if(a==e.exprs.length-1)return s;o(s,t=n())}else{if("star"==e.type){var l=n();return r(t,l),o(i(e.expr,l),l),[r(l)]}if("plus"==e.type){var c=n();return o(i(e.expr,t),c),o(i(e.expr,c),c),[r(c)]}if("opt"==e.type)return[r(t)].concat(i(e.expr,t));if("range"==e.type){for(var u=t,d=0;d<e.min;d++){var p=n();o(i(e.expr,u),p),u=p}if(-1==e.max)o(i(e.expr,u),u);else for(var f=e.min;f<e.max;f++){var h=n();r(u,h),o(i(e.expr,u),h),u=h}return[r(u)]}if("name"==e.type)return[r(t,null,e.value)]}}}(r));return function(e,t){for(var n=0,r=[e];n<r.length;n++){for(var o=r[n],i=!o.validEnd,a=[],s=0;s<o.next.length;s+=2){var l=o.next[s],c=o.next[s+1];a.push(l.name),!i||l.isText||l.hasRequiredAttrs()||(i=!1),-1==r.indexOf(c)&&r.push(c)}i&&t.err("Only non-generatable nodes ("+a.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(o,n),o},GK.prototype.matchType=function(e){for(var t=0;t<this.next.length;t+=2)if(this.next[t]==e)return this.next[t+1];return null},GK.prototype.matchFragment=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.childCount);for(var r=this,o=t;r&&o<n;o++)r=r.matchType(e.child(o).type);return r},YK.inlineContent.get=function(){var e=this.next[0];return!!e&&e.isInline},YK.defaultType.get=function(){for(var e=0;e<this.next.length;e+=2){var t=this.next[e];if(!t.isText&&!t.hasRequiredAttrs())return t}},GK.prototype.compatible=function(e){for(var t=0;t<this.next.length;t+=2)for(var n=0;n<e.next.length;n+=2)if(this.next[t]==e.next[n])return!0;return!1},GK.prototype.fillBefore=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=0);var r=[this];return function o(i,a){var s=i.matchFragment(e,n);if(s&&(!t||s.validEnd))return gK.from(a.map((function(e){return e.createAndFill()})));for(var l=0;l<i.next.length;l+=2){var c=i.next[l],u=i.next[l+1];if(!c.isText&&!c.hasRequiredAttrs()&&-1==r.indexOf(u)){r.push(u);var d=o(u,a.concat(c));if(d)return d}}}(this,[])},GK.prototype.findWrapping=function(e){for(var t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];var n=this.computeWrapping(e);return this.wrapCache.push(e,n),n},GK.prototype.computeWrapping=function(e){for(var t=Object.create(null),n=[{match:this,type:null,via:null}];n.length;){var r=n.shift(),o=r.match;if(o.matchType(e)){for(var i=[],a=r;a.type;a=a.via)i.push(a.type);return i.reverse()}for(var s=0;s<o.next.length;s+=2){var l=o.next[s];l.isLeaf||l.hasRequiredAttrs()||l.name in t||r.type&&!o.next[s+1].validEnd||(n.push({match:l.contentMatch,type:l,via:r}),t[l.name]=!0)}}},YK.edgeCount.get=function(){return this.next.length>>1},GK.prototype.edge=function(e){var t=e<<1;if(t>=this.next.length)throw new RangeError("There's no "+e+"th edge in this content match");return{type:this.next[t],next:this.next[t+1]}},GK.prototype.toString=function(){var e=[];return function t(n){e.push(n);for(var r=1;r<n.next.length;r+=2)-1==e.indexOf(n.next[r])&&t(n.next[r])}(this),e.map((function(t,n){for(var r=n+(t.validEnd?"*":" ")+" ",o=0;o<t.next.length;o+=2)r+=(o?", ":"")+t.next[o].name+"->"+e.indexOf(t.next[o+1]);return r})).join("\n")},Object.defineProperties(GK.prototype,YK),GK.empty=new GK(!0);var KK=function(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()},JK={next:{configurable:!0}};function XK(e){var t=[];do{t.push(QK(e))}while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function QK(e){var t=[];do{t.push($K(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function $K(e){for(var t=function(e){if(e.eat("(")){var t=XK(e);return e.eat(")")||e.err("Missing closing paren"),t}if(!/\W/.test(e.next)){var n=function(e,t){var n=e.nodeTypes,r=n[t];if(r)return[r];var o=[];for(var i in n){var a=n[i];a.groups.indexOf(t)>-1&&o.push(a)}0==o.length&&e.err("No node type or group '"+t+"' found");return o}(e,e.next).map((function(t){return null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t}}));return e.pos++,1==n.length?n[0]:{type:"choice",exprs:n}}e.err("Unexpected token '"+e.next+"'")}(e);;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else{if(!e.eat("{"))break;t=tJ(e,t)}return t}function eJ(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");var t=Number(e.next);return e.pos++,t}function tJ(e,t){var n=eJ(e),r=n;return e.eat(",")&&(r="}"!=e.next?eJ(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function nJ(e,t){return t-e}function rJ(e,t){var n=[];return function t(r){var o=e[r];if(1==o.length&&!o[0].term)return t(o[0].to);n.push(r);for(var i=0;i<o.length;i++){var a=o[i],s=a.term,l=a.to;s||-1!=n.indexOf(l)||t(l)}}(t),n.sort(nJ)}function oJ(e){var t=Object.create(null);for(var n in e){var r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function iJ(e,t){var n=Object.create(null);for(var r in e){var o=t&&t[r];if(void 0===o){var i=e[r];if(!i.hasDefault)throw new RangeError("No value supplied for attribute "+r);o=i.default}n[r]=o}return n}function aJ(e){var t=Object.create(null);if(e)for(var n in e)t[n]=new cJ(e[n]);return t}JK.next.get=function(){return this.tokens[this.pos]},KK.prototype.eat=function(e){return this.next==e&&(this.pos++||!0)},KK.prototype.err=function(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")},Object.defineProperties(KK.prototype,JK);var sJ=function(e,t,n){this.name=e,this.schema=t,this.spec=n,this.groups=n.group?n.group.split(" "):[],this.attrs=aJ(n.attrs),this.defaultAttrs=oJ(this.attrs),this.contentMatch=null,this.markSet=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==e),this.isText="text"==e},lJ={isInline:{configurable:!0},isTextblock:{configurable:!0},isLeaf:{configurable:!0},isAtom:{configurable:!0},whitespace:{configurable:!0}};lJ.isInline.get=function(){return!this.isBlock},lJ.isTextblock.get=function(){return this.isBlock&&this.inlineContent},lJ.isLeaf.get=function(){return this.contentMatch==GK.empty},lJ.isAtom.get=function(){return this.isLeaf||this.spec.atom},lJ.whitespace.get=function(){return this.spec.whitespace||(this.spec.code?"pre":"normal")},sJ.prototype.hasRequiredAttrs=function(){for(var e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1},sJ.prototype.compatibleContent=function(e){return this==e||this.contentMatch.compatible(e.contentMatch)},sJ.prototype.computeAttrs=function(e){return!e&&this.defaultAttrs?this.defaultAttrs:iJ(this.attrs,e)},sJ.prototype.create=function(e,t,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new UK(this,this.computeAttrs(e),gK.from(t),CK.setFrom(n))},sJ.prototype.createChecked=function(e,t,n){if(t=gK.from(t),!this.validContent(t))throw new RangeError("Invalid content for node "+this.name);return new UK(this,this.computeAttrs(e),t,CK.setFrom(n))},sJ.prototype.createAndFill=function(e,t,n){if(e=this.computeAttrs(e),(t=gK.from(t)).size){var r=this.contentMatch.fillBefore(t);if(!r)return null;t=r.append(t)}var o=this.contentMatch.matchFragment(t).fillBefore(gK.empty,!0);return o?new UK(this,e,t.append(o),CK.setFrom(n)):null},sJ.prototype.validContent=function(e){var t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(var n=0;n<e.childCount;n++)if(!this.allowsMarks(e.child(n).marks))return!1;return!0},sJ.prototype.allowsMarkType=function(e){return null==this.markSet||this.markSet.indexOf(e)>-1},sJ.prototype.allowsMarks=function(e){if(null==this.markSet)return!0;for(var t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0},sJ.prototype.allowedMarks=function(e){if(null==this.markSet)return e;for(var t,n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||(t=e.slice(0,n));return t?t.length?t:CK.empty:e},sJ.compile=function(e,t){var n=Object.create(null);e.forEach((function(e,r){return n[e]=new sJ(e,t,r)}));var r=t.spec.topNode||"doc";if(!n[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(var o in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n},Object.defineProperties(sJ.prototype,lJ);var cJ=function(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default},uJ={isRequired:{configurable:!0}};uJ.isRequired.get=function(){return!this.hasDefault},Object.defineProperties(cJ.prototype,uJ);var dJ=function(e,t,n,r){this.name=e,this.schema=n,this.spec=r,this.attrs=aJ(r.attrs),this.rank=t,this.excluded=null;var o=oJ(this.attrs);this.instance=o&&new CK(this,o)};dJ.prototype.create=function(e){return!e&&this.instance?this.instance:new CK(this,iJ(this.attrs,e))},dJ.compile=function(e,t){var n=Object.create(null),r=0;return e.forEach((function(e,o){return n[e]=new dJ(e,r++,t,o)})),n},dJ.prototype.removeFromSet=function(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e},dJ.prototype.isInSet=function(e){for(var t=0;t<e.length;t++)if(e[t].type==this)return e[t]},dJ.prototype.excludes=function(e){return this.excluded.indexOf(e)>-1};var pJ={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},fJ={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},hJ={ol:!0,ul:!0};function mJ(e,t,n){return null!=t?(t?1:0)|("full"===t?2:0):e&&"pre"==e.whitespace?3:-5&n}var vJ=function(e,t,n,r,o,i,a){this.type=e,this.attrs=t,this.solid=o,this.match=i||(4&a?null:e.contentMatch),this.options=a,this.content=[],this.marks=n,this.activeMarks=CK.none,this.pendingMarks=r,this.stashMarks=[]};vJ.prototype.findWrapping=function(e){if(!this.match){if(!this.type)return[];var t=this.type.contentMatch.fillBefore(gK.from(e));if(!t){var n,r=this.type.contentMatch;return(n=r.findWrapping(e.type))?(this.match=r,n):null}this.match=this.type.contentMatch.matchFragment(t)}return this.match.findWrapping(e.type)},vJ.prototype.finish=function(e){if(!(1&this.options)){var t,n=this.content[this.content.length-1];n&&n.isText&&(t=/[ \t\r\n\u000c]+$/.exec(n.text))&&(n.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-t[0].length)))}var r=gK.from(this.content);return!e&&this.match&&(r=r.append(this.match.fillBefore(gK.empty,!0))),this.type?this.type.create(this.attrs,r,this.marks):r},vJ.prototype.popFromStashMark=function(e){for(var t=this.stashMarks.length-1;t>=0;t--)if(e.eq(this.stashMarks[t]))return this.stashMarks.splice(t,1)[0]},vJ.prototype.applyPending=function(e){for(var t=0,n=this.pendingMarks;t<n.length;t++){var r=n[t];(this.type?this.type.allowsMarkType(r.type):bJ(r.type,e))&&!r.isInSet(this.activeMarks)&&(this.activeMarks=r.addToSet(this.activeMarks),this.pendingMarks=r.removeFromSet(this.pendingMarks))}},vJ.prototype.inlineContext=function(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!pJ.hasOwnProperty(e.parentNode.nodeName.toLowerCase())};var gJ=function(e,t,n){this.parser=e,this.options=t,this.isOpen=n;var r,o=t.topNode,i=mJ(null,t.preserveWhitespace,0)|(n?4:0);r=o?new vJ(o.type,o.attrs,CK.none,CK.none,!0,t.topMatch||o.type.contentMatch,i):new vJ(n?null:e.schema.topNodeType,null,CK.none,CK.none,!0,null,i),this.nodes=[r],this.open=0,this.find=t.findPositions,this.needsBlock=!1},yJ={top:{configurable:!0},currentPos:{configurable:!0}};function bJ(e,t){var n=t.schema.nodes,r=function(r){var o=n[r];if(o.allowsMarkType(e)){var i=[];return function e(n){i.push(n);for(var r=0;r<n.edgeCount;r++){var o=n.edge(r),a=o.type,s=o.next;if(a==t)return!0;if(i.indexOf(s)<0&&e(s))return!0}}(o.contentMatch)?{v:!0}:void 0}};for(var o in n){var i=r(o);if(i)return i.v}}yJ.top.get=function(){return this.nodes[this.open]},gJ.prototype.addDOM=function(e){if(3==e.nodeType)this.addTextNode(e);else if(1==e.nodeType){var t=e.getAttribute("style"),n=t?this.readStyles(function(e){var t,n=/\s*([\w-]+)\s*:\s*([^;]+)/g,r=[];for(;t=n.exec(e);)r.push(t[1],t[2].trim());return r}(t)):null,r=this.top;if(null!=n)for(var o=0;o<n.length;o++)this.addPendingMark(n[o]);if(this.addElement(e),null!=n)for(var i=0;i<n.length;i++)this.removePendingMark(n[i],r)}},gJ.prototype.addTextNode=function(e){var t=e.nodeValue,n=this.top;if(2&n.options||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(t)){if(1&n.options)t=2&n.options?t.replace(/\r\n?/g,"\n"):t.replace(/\r?\n|\r/g," ");else if(t=t.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(t)&&this.open==this.nodes.length-1){var r=n.content[n.content.length-1],o=e.previousSibling;(!r||o&&"BR"==o.nodeName||r.isText&&/[ \t\r\n\u000c]$/.test(r.text))&&(t=t.slice(1))}t&&this.insertNode(this.parser.schema.text(t)),this.findInText(e)}else this.findInside(e)},gJ.prototype.addElement=function(e,t){var n,r=e.nodeName.toLowerCase();hJ.hasOwnProperty(r)&&this.parser.normalizeLists&&function(e){for(var t=e.firstChild,n=null;t;t=t.nextSibling){var r=1==t.nodeType?t.nodeName.toLowerCase():null;r&&hJ.hasOwnProperty(r)&&n?(n.appendChild(t),t=n):"li"==r?n=t:r&&(n=null)}}(e);var o=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(n=this.parser.matchTag(e,this,t));if(o?o.ignore:fJ.hasOwnProperty(r))this.findInside(e),this.ignoreFallback(e);else if(!o||o.skip||o.closeParent){o&&o.closeParent?this.open=Math.max(0,this.open-1):o&&o.skip.nodeType&&(e=o.skip);var i,a=this.top,s=this.needsBlock;if(pJ.hasOwnProperty(r))i=!0,a.type||(this.needsBlock=!0);else if(!e.firstChild)return void this.leafFallback(e);this.addAll(e),i&&this.sync(a),this.needsBlock=s}else this.addElementByRule(e,o,!1===o.consuming?n:null)},gJ.prototype.leafFallback=function(e){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"))},gJ.prototype.ignoreFallback=function(e){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"))},gJ.prototype.readStyles=function(e){var t=CK.none;e:for(var n=0;n<e.length;n+=2)for(var r=null;;){var o=this.parser.matchStyle(e[n],e[n+1],this,r);if(!o)continue e;if(o.ignore)return null;if(t=this.parser.schema.marks[o.mark].create(o.attrs).addToSet(t),!1!==o.consuming)break;r=o}return t},gJ.prototype.addElementByRule=function(e,t,n){var r,o,i,a=this;t.node?(o=this.parser.schema.nodes[t.node]).isLeaf?this.insertNode(o.create(t.attrs))||this.leafFallback(e):r=this.enter(o,t.attrs,t.preserveWhitespace):(i=this.parser.schema.marks[t.mark].create(t.attrs),this.addPendingMark(i));var s=this.top;if(o&&o.isLeaf)this.findInside(e);else if(n)this.addElement(e,n);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach((function(e){return a.insertNode(e)}));else{var l=t.contentElement;"string"==typeof l?l=e.querySelector(l):"function"==typeof l&&(l=l(e)),l||(l=e),this.findAround(e,l,!0),this.addAll(l,r)}r&&(this.sync(s),this.open--),i&&this.removePendingMark(i,s)},gJ.prototype.addAll=function(e,t,n,r){for(var o=n||0,i=n?e.childNodes[n]:e.firstChild,a=null==r?null:e.childNodes[r];i!=a;i=i.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(i),t&&pJ.hasOwnProperty(i.nodeName.toLowerCase())&&this.sync(t);this.findAtPoint(e,o)},gJ.prototype.findPlace=function(e){for(var t,n,r=this.open;r>=0;r--){var o=this.nodes[r],i=o.findWrapping(e);if(i&&(!t||t.length>i.length)&&(t=i,n=o,!i.length))break;if(o.solid)break}if(!t)return!1;this.sync(n);for(var a=0;a<t.length;a++)this.enterInner(t[a],null,!1);return!0},gJ.prototype.insertNode=function(e){if(e.isInline&&this.needsBlock&&!this.top.type){var t=this.textblockFromContext();t&&this.enterInner(t)}if(this.findPlace(e)){this.closeExtra();var n=this.top;n.applyPending(e.type),n.match&&(n.match=n.match.matchType(e.type));for(var r=n.activeMarks,o=0;o<e.marks.length;o++)n.type&&!n.type.allowsMarkType(e.marks[o].type)||(r=e.marks[o].addToSet(r));return n.content.push(e.mark(r)),!0}return!1},gJ.prototype.enter=function(e,t,n){var r=this.findPlace(e.create(t));return r&&this.enterInner(e,t,!0,n),r},gJ.prototype.enterInner=function(e,t,n,r){this.closeExtra();var o=this.top;o.applyPending(e),o.match=o.match&&o.match.matchType(e,t);var i=mJ(e,r,o.options);4&o.options&&0==o.content.length&&(i|=4),this.nodes.push(new vJ(e,t,o.activeMarks,o.pendingMarks,n,null,i)),this.open++},gJ.prototype.closeExtra=function(e){var t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}},gJ.prototype.finish=function(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)},gJ.prototype.sync=function(e){for(var t=this.open;t>=0;t--)if(this.nodes[t]==e)return void(this.open=t)},yJ.currentPos.get=function(){this.closeExtra();for(var e=0,t=this.open;t>=0;t--){for(var n=this.nodes[t].content,r=n.length-1;r>=0;r--)e+=n[r].nodeSize;t&&e++}return e},gJ.prototype.findAtPoint=function(e,t){if(this.find)for(var n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)},gJ.prototype.findInside=function(e){if(this.find)for(var t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)},gJ.prototype.findAround=function(e,t,n){if(e!=t&&this.find)for(var r=0;r<this.find.length;r++){if(null==this.find[r].pos&&1==e.nodeType&&e.contains(this.find[r].node))t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}},gJ.prototype.findInText=function(e){if(this.find)for(var t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))},gJ.prototype.matchesContext=function(e){var t=this;if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);var n=e.split("/"),r=this.options.context,o=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+(o?0:1);return function e(a,s){for(;a>=0;a--){var l=n[a];if(""==l){if(a==n.length-1||0==a)continue;for(;s>=i;s--)if(e(a-1,s))return!0;return!1}var c=s>0||0==s&&o?t.nodes[s].type:r&&s>=i?r.node(s-i).type:null;if(!c||c.name!=l&&-1==c.groups.indexOf(l))return!1;s--}return!0}(n.length-1,this.open)},gJ.prototype.textblockFromContext=function(){var e=this.options.context;if(e)for(var t=e.depth;t>=0;t--){var n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(var r in this.parser.schema.nodes){var o=this.parser.schema.nodes[r];if(o.isTextblock&&o.defaultAttrs)return o}},gJ.prototype.addPendingMark=function(e){var t=function(e,t){for(var n=0;n<t.length;n++)if(e.eq(t[n]))return t[n]}(e,this.top.pendingMarks);t&&this.top.stashMarks.push(t),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)},gJ.prototype.removePendingMark=function(e,t){for(var n=this.open;n>=0;n--){var r=this.nodes[n];if(r.pendingMarks.lastIndexOf(e)>-1)r.pendingMarks=e.removeFromSet(r.pendingMarks);else{r.activeMarks=e.removeFromSet(r.activeMarks);var o=r.popFromStashMark(e);o&&r.type&&r.type.allowsMarkType(o.type)&&(r.activeMarks=o.addToSet(r.activeMarks))}if(r==t)break}},Object.defineProperties(gJ.prototype,yJ);var xJ=Math.pow(2,16);function wJ(e,t){return e+t*xJ}function CJ(e){return 65535&e}var jJ=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=null),this.pos=e,this.deleted=t,this.recover=n},SJ=function(e,t){void 0===t&&(t=!1),this.ranges=e,this.inverted=t};SJ.prototype.recover=function(e){var t=0,n=CJ(e);if(!this.inverted)for(var r=0;r<n;r++)t+=this.ranges[3*r+2]-this.ranges[3*r+1];return this.ranges[3*n]+t+function(e){return(e-(65535&e))/xJ}(e)},SJ.prototype.mapResult=function(e,t){return void 0===t&&(t=1),this._map(e,t,!1)},SJ.prototype.map=function(e,t){return void 0===t&&(t=1),this._map(e,t,!0)},SJ.prototype._map=function(e,t,n){for(var r=0,o=this.inverted?2:1,i=this.inverted?1:2,a=0;a<this.ranges.length;a+=3){var s=this.ranges[a]-(this.inverted?r:0);if(s>e)break;var l=this.ranges[a+o],c=this.ranges[a+i],u=s+l;if(e<=u){var d=s+r+((l?e==s?-1:e==u?1:t:t)<0?0:c);if(n)return d;var p=e==(t<0?s:u)?null:wJ(a/3,e-s);return new jJ(d,t<0?e!=s:e!=u,p)}r+=c-l}return n?e+r:new jJ(e+r)},SJ.prototype.touches=function(e,t){for(var n=0,r=CJ(t),o=this.inverted?2:1,i=this.inverted?1:2,a=0;a<this.ranges.length;a+=3){var s=this.ranges[a]-(this.inverted?n:0);if(s>e)break;var l=this.ranges[a+o];if(e<=s+l&&a==3*r)return!0;n+=this.ranges[a+i]-l}return!1},SJ.prototype.forEach=function(e){for(var t=this.inverted?2:1,n=this.inverted?1:2,r=0,o=0;r<this.ranges.length;r+=3){var i=this.ranges[r],a=i-(this.inverted?o:0),s=i+(this.inverted?0:o),l=this.ranges[r+t],c=this.ranges[r+n];e(a,a+l,s,s+c),o+=c-l}},SJ.prototype.invert=function(){return new SJ(this.ranges,!this.inverted)},SJ.prototype.toString=function(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)},SJ.offset=function(e){return 0==e?SJ.empty:new SJ(e<0?[0,-e,0]:[0,0,e])},SJ.empty=new SJ([]);var kJ=function(e,t,n,r){this.maps=e||[],this.from=n||0,this.to=null==r?this.maps.length:r,this.mirror=t};function ZJ(e){var t=Error.call(this,e);return t.__proto__=ZJ.prototype,t}kJ.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.maps.length),new kJ(this.maps,this.mirror,e,t)},kJ.prototype.copy=function(){return new kJ(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)},kJ.prototype.appendMap=function(e,t){this.to=this.maps.push(e),null!=t&&this.setMirror(this.maps.length-1,t)},kJ.prototype.appendMapping=function(e){for(var t=0,n=this.maps.length;t<e.maps.length;t++){var r=e.getMirror(t);this.appendMap(e.maps[t],null!=r&&r<t?n+r:null)}},kJ.prototype.getMirror=function(e){if(this.mirror)for(var t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]},kJ.prototype.setMirror=function(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)},kJ.prototype.appendMappingInverted=function(e){for(var t=e.maps.length-1,n=this.maps.length+e.maps.length;t>=0;t--){var r=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=r&&r>t?n-r-1:null)}},kJ.prototype.invert=function(){var e=new kJ;return e.appendMappingInverted(this),e},kJ.prototype.map=function(e,t){if(void 0===t&&(t=1),this.mirror)return this._map(e,t,!0);for(var n=this.from;n<this.to;n++)e=this.maps[n].map(e,t);return e},kJ.prototype.mapResult=function(e,t){return void 0===t&&(t=1),this._map(e,t,!1)},kJ.prototype._map=function(e,t,n){for(var r=!1,o=this.from;o<this.to;o++){var i=this.maps[o].mapResult(e,t);if(null!=i.recover){var a=this.getMirror(o);if(null!=a&&a>o&&a<this.to){o=a,e=this.maps[a].recover(i.recover);continue}}i.deleted&&(r=!0),e=i.pos}return n?e:new jJ(e,r)},ZJ.prototype=Object.create(Error.prototype),ZJ.prototype.constructor=ZJ,ZJ.prototype.name="TransformError";var OJ=function(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new kJ},EJ={before:{configurable:!0},docChanged:{configurable:!0}};function DJ(){throw new Error("Override me")}EJ.before.get=function(){return this.docs.length?this.docs[0]:this.doc},OJ.prototype.step=function(e){var t=this.maybeStep(e);if(t.failed)throw new ZJ(t.failed);return this},OJ.prototype.maybeStep=function(e){var t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t},EJ.docChanged.get=function(){return this.steps.length>0},OJ.prototype.addStep=function(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t},Object.defineProperties(OJ.prototype,EJ);var PJ=Object.create(null),AJ=function(){};AJ.prototype.apply=function(e){return DJ()},AJ.prototype.getMap=function(){return SJ.empty},AJ.prototype.invert=function(e){return DJ()},AJ.prototype.map=function(e){return DJ()},AJ.prototype.merge=function(e){return null},AJ.prototype.toJSON=function(){return DJ()},AJ.fromJSON=function(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");var n=PJ[t.stepType];if(!n)throw new RangeError("No step type "+t.stepType+" defined");return n.fromJSON(e,t)},AJ.jsonID=function(e,t){if(e in PJ)throw new RangeError("Duplicate use of step JSON ID "+e);return PJ[e]=t,t.prototype.jsonID=e,t};var MJ=function(e,t){this.doc=e,this.failed=t};MJ.ok=function(e){return new MJ(e,null)},MJ.fail=function(e){return new MJ(null,e)},MJ.fromReplace=function(e,t,n,r){try{return MJ.ok(e.replace(t,n,r))}catch(o){if(o instanceof jK)return MJ.fail(o.message);throw o}};var TJ=function(e){function t(t,n,r,o){e.call(this),this.from=t,this.to=n,this.slice=r,this.structure=!!o}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){return this.structure&&RJ(e,this.from,this.to)?MJ.fail("Structure replace would overwrite content"):MJ.fromReplace(e,this.from,this.to,this.slice)},t.prototype.getMap=function(){return new SJ([this.from,this.to-this.from,this.slice.size])},t.prototype.invert=function(e){return new t(this.from,this.from+this.slice.size,e.slice(this.from,this.to))},t.prototype.map=function(e){var n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted?null:new t(n.pos,Math.max(n.pos,r.pos),this.slice)},t.prototype.merge=function(e){if(!(e instanceof t)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;var n=this.slice.size+e.slice.size==0?SK.empty:new SK(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new t(e.from,this.to,n,this.structure)}var r=this.slice.size+e.slice.size==0?SK.empty:new SK(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new t(this.from,this.to+(e.to-e.from),r,this.structure)},t.prototype.toJSON=function(){var e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new t(n.from,n.to,SK.fromJSON(e,n.slice),!!n.structure)},t}(AJ);AJ.jsonID("replace",TJ);var IJ=function(e){function t(t,n,r,o,i,a,s){e.call(this),this.from=t,this.to=n,this.gapFrom=r,this.gapTo=o,this.slice=i,this.insert=a,this.structure=!!s}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){if(this.structure&&(RJ(e,this.from,this.gapFrom)||RJ(e,this.gapTo,this.to)))return MJ.fail("Structure gap-replace would overwrite content");var t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return MJ.fail("Gap is not a flat range");var n=this.slice.insertAt(this.insert,t.content);return n?MJ.fromReplace(e,this.from,this.to,n):MJ.fail("Content does not fit in gap")},t.prototype.getMap=function(){return new SJ([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])},t.prototype.invert=function(e){var n=this.gapTo-this.gapFrom;return new t(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)},t.prototype.map=function(e){var n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),o=e.map(this.gapFrom,-1),i=e.map(this.gapTo,1);return n.deleted&&r.deleted||o<n.pos||i>r.pos?null:new t(n.pos,r.pos,o,i,this.slice,this.insert,this.structure)},t.prototype.toJSON=function(){var e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to||"number"!=typeof n.gapFrom||"number"!=typeof n.gapTo||"number"!=typeof n.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new t(n.from,n.to,n.gapFrom,n.gapTo,SK.fromJSON(e,n.slice),n.insert,!!n.structure)},t}(AJ);function RJ(e,t,n){for(var r=e.resolve(t),o=n-t,i=r.depth;o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,o--;if(o>0)for(var a=r.node(i).maybeChild(r.indexAfter(i));o>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,o--}return!1}function FJ(e,t,n){for(var r=[],o=0;o<e.childCount;o++){var i=e.child(o);i.content.size&&(i=i.copy(FJ(i.content,t,i))),i.isInline&&(i=t(i,n,o)),r.push(i)}return gK.fromArray(r)}AJ.jsonID("replaceAround",IJ),OJ.prototype.lift=function(e,t){for(var n=e.$from,r=e.$to,o=e.depth,i=n.before(o+1),a=r.after(o+1),s=i,l=a,c=gK.empty,u=0,d=o,p=!1;d>t;d--)p||n.index(d)>0?(p=!0,c=gK.from(n.node(d).copy(c)),u++):s--;for(var f=gK.empty,h=0,m=o,v=!1;m>t;m--)v||r.after(m+1)<r.end(m)?(v=!0,f=gK.from(r.node(m).copy(f)),h++):l++;return this.step(new IJ(s,l,i,a,new SK(c.append(f),u,h),c.size-u,!0))},OJ.prototype.wrap=function(e,t){for(var n=gK.empty,r=t.length-1;r>=0;r--)n=gK.from(t[r].type.create(t[r].attrs,n));var o=e.start,i=e.end;return this.step(new IJ(o,i,o,i,new SK(n,0,0),t.length,!0))},OJ.prototype.setBlockType=function(e,t,n,r){var o=this;if(void 0===t&&(t=e),!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");var i=this.steps.length;return this.doc.nodesBetween(e,t,(function(e,t){if(e.isTextblock&&!e.hasMarkup(n,r)&&function(e,t,n){var r=e.resolve(t),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}(o.doc,o.mapping.slice(i).map(t),n)){o.clearIncompatible(o.mapping.slice(i).map(t,1),n);var a=o.mapping.slice(i),s=a.map(t,1),l=a.map(t+e.nodeSize,1);return o.step(new IJ(s,l,s+1,l-1,new SK(gK.from(n.create(r,null,e.marks)),0,0),1,!0)),!1}})),this},OJ.prototype.setNodeMarkup=function(e,t,n,r){var o=this.doc.nodeAt(e);if(!o)throw new RangeError("No node at given position");t||(t=o.type);var i=t.create(n,null,r||o.marks);if(o.isLeaf)return this.replaceWith(e,e+o.nodeSize,i);if(!t.validContent(o.content))throw new RangeError("Invalid content for node type "+t.name);return this.step(new IJ(e,e+o.nodeSize,e+1,e+o.nodeSize-1,new SK(gK.from(i),0,0),1,!0))},OJ.prototype.split=function(e,t,n){void 0===t&&(t=1);for(var r=this.doc.resolve(e),o=gK.empty,i=gK.empty,a=r.depth,s=r.depth-t,l=t-1;a>s;a--,l--){o=gK.from(r.node(a).copy(o));var c=n&&n[l];i=gK.from(c?c.type.create(c.attrs,i):r.node(a).copy(i))}return this.step(new TJ(e,e,new SK(o.append(i),t,t),!0))},OJ.prototype.join=function(e,t){void 0===t&&(t=1);var n=new TJ(e-t,e+t,SK.empty,!0);return this.step(n)};var BJ=function(e){function t(t,n,r){e.call(this),this.from=t,this.to=n,this.mark=r}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){var t=this,n=e.slice(this.from,this.to),r=e.resolve(this.from),o=r.node(r.sharedDepth(this.to)),i=new SK(FJ(n.content,(function(e,n){return e.isAtom&&n.type.allowsMarkType(t.mark.type)?e.mark(t.mark.addToSet(e.marks)):e}),o),n.openStart,n.openEnd);return MJ.fromReplace(e,this.from,this.to,i)},t.prototype.invert=function(){return new LJ(this.from,this.to,this.mark)},t.prototype.map=function(e){var n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new t(n.pos,r.pos,this.mark)},t.prototype.merge=function(e){if(e instanceof t&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from)return new t(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark)},t.prototype.toJSON=function(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new t(n.from,n.to,e.markFromJSON(n.mark))},t}(AJ);AJ.jsonID("addMark",BJ);var LJ=function(e){function t(t,n,r){e.call(this),this.from=t,this.to=n,this.mark=r}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){var t=this,n=e.slice(this.from,this.to),r=new SK(FJ(n.content,(function(e){return e.mark(t.mark.removeFromSet(e.marks))})),n.openStart,n.openEnd);return MJ.fromReplace(e,this.from,this.to,r)},t.prototype.invert=function(){return new BJ(this.from,this.to,this.mark)},t.prototype.map=function(e){var n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new t(n.pos,r.pos,this.mark)},t.prototype.merge=function(e){if(e instanceof t&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from)return new t(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark)},t.prototype.toJSON=function(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new t(n.from,n.to,e.markFromJSON(n.mark))},t}(AJ);function NJ(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}AJ.jsonID("removeMark",LJ),OJ.prototype.addMark=function(e,t,n){var r=this,o=[],i=[],a=null,s=null;return this.doc.nodesBetween(e,t,(function(r,l,c){if(r.isInline){var u=r.marks;if(!n.isInSet(u)&&c.type.allowsMarkType(n.type)){for(var d=Math.max(l,e),p=Math.min(l+r.nodeSize,t),f=n.addToSet(u),h=0;h<u.length;h++)u[h].isInSet(f)||(a&&a.to==d&&a.mark.eq(u[h])?a.to=p:o.push(a=new LJ(d,p,u[h])));s&&s.to==d?s.to=p:i.push(s=new BJ(d,p,n))}}})),o.forEach((function(e){return r.step(e)})),i.forEach((function(e){return r.step(e)})),this},OJ.prototype.removeMark=function(e,t,n){var r=this;void 0===n&&(n=null);var o=[],i=0;return this.doc.nodesBetween(e,t,(function(r,a){if(r.isInline){i++;var s=null;if(n instanceof dJ)for(var l,c=r.marks;l=n.isInSet(c);)(s||(s=[])).push(l),c=l.removeFromSet(c);else n?n.isInSet(r.marks)&&(s=[n]):s=r.marks;if(s&&s.length)for(var u=Math.min(a+r.nodeSize,t),d=0;d<s.length;d++){for(var p=s[d],f=void 0,h=0;h<o.length;h++){var m=o[h];m.step==i-1&&p.eq(o[h].style)&&(f=m)}f?(f.to=u,f.step=i):o.push({style:p,from:Math.max(a,e),to:u,step:i})}}})),o.forEach((function(e){return r.step(new LJ(e.from,e.to,e.style))})),this},OJ.prototype.clearIncompatible=function(e,t,n){void 0===n&&(n=t.contentMatch);for(var r=this.doc.nodeAt(e),o=[],i=e+1,a=0;a<r.childCount;a++){var s=r.child(a),l=i+s.nodeSize,c=n.matchType(s.type,s.attrs);if(c){n=c;for(var u=0;u<s.marks.length;u++)t.allowsMarkType(s.marks[u].type)||this.step(new LJ(i,l,s.marks[u]))}else o.push(new TJ(i,l,SK.empty));i=l}if(!n.validEnd){var d=n.fillBefore(gK.empty,!0);this.replace(i,i,new SK(d,0,0))}for(var p=o.length-1;p>=0;p--)this.step(o[p]);return this},OJ.prototype.replace=function(e,t,n){void 0===t&&(t=e),void 0===n&&(n=SK.empty);var r=function(e,t,n,r){if(void 0===n&&(n=t),void 0===r&&(r=SK.empty),t==n&&!r.size)return null;var o=e.resolve(t),i=e.resolve(n);return NJ(o,i,r)?new TJ(t,n,r):new _J(o,i,r).fit()}(this.doc,e,t,n);return r&&this.step(r),this},OJ.prototype.replaceWith=function(e,t,n){return this.replace(e,t,new SK(gK.from(n),0,0))},OJ.prototype.delete=function(e,t){return this.replace(e,t,SK.empty)},OJ.prototype.insert=function(e,t){return this.replaceWith(e,e,t)};var _J=function(e,t,n){this.$to=t,this.$from=e,this.unplaced=n,this.frontier=[];for(var r=0;r<=e.depth;r++){var o=e.node(r);this.frontier.push({type:o.type,match:o.contentMatchAt(e.indexAfter(r))})}this.placed=gK.empty;for(var i=e.depth;i>0;i--)this.placed=gK.from(e.node(i).copy(this.placed))},zJ={depth:{configurable:!0}};function HJ(e,t,n){return 0==t?e.cutByIndex(n):e.replaceChild(0,e.firstChild.copy(HJ(e.firstChild.content,t-1,n)))}function WJ(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(WJ(e.lastChild.content,t-1,n)))}function VJ(e,t){for(var n=0;n<t;n++)e=e.firstChild.content;return e}function UJ(e,t,n){if(t<=0)return e;var r=e.content;return t>1&&(r=r.replaceChild(0,UJ(r.firstChild,t-1,1==r.childCount?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(gK.empty,!0)))),e.copy(r)}function qJ(e,t,n,r,o){var i=e.node(t),a=o?e.indexAfter(t):e.index(t);if(a==i.childCount&&!n.compatibleContent(i.type))return null;var s=r.fillBefore(i.content,!0,a);return s&&!function(e,t,n){for(var r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}(n,i.content,a)?s:null}function GJ(e,t,n,r,o){if(t<n){var i=e.firstChild;e=e.replaceChild(0,i.copy(GJ(i.content,t+1,n,r,i)))}if(t>r){var a=o.contentMatchAt(0),s=a.fillBefore(e).append(e);e=s.append(a.matchFragment(s).fillBefore(gK.empty,!0))}return e}function YJ(e,t){for(var n=[],r=Math.min(e.depth,t.depth);r>=0;r--){var o=e.start(r);if(o<e.pos-(e.depth-r)||t.end(r)>t.pos+(t.depth-r)||e.node(r).type.spec.isolating||t.node(r).type.spec.isolating)break;(o==t.start(r)||r==e.depth&&r==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&r&&t.start(r-1)==o-1)&&n.push(r)}return n}zJ.depth.get=function(){return this.frontier.length-1},_J.prototype.fit=function(){for(;this.unplaced.size;){var e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}var t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,o=this.close(t<0?this.$to:r.doc.resolve(t));if(!o)return null;for(var i=this.placed,a=r.depth,s=o.depth;a&&s&&1==i.childCount;)i=i.firstChild.content,a--,s--;var l=new SK(i,a,s);return t>-1?new IJ(r.pos,t,this.$to.pos,this.$to.end(),l,n):l.size||r.pos!=this.$to.pos?new TJ(r.pos,o.pos,l):void 0},_J.prototype.findFittable=function(){for(var e=1;e<=2;e++)for(var t=this.unplaced.openStart;t>=0;t--)for(var n=void 0,r=(t?(n=VJ(this.unplaced.content,t-1).firstChild).content:this.unplaced.content).firstChild,o=this.depth;o>=0;o--){var i=this.frontier[o],a=i.type,s=i.match,l=void 0,c=void 0;if(1==e&&(r?s.matchType(r.type)||(c=s.fillBefore(gK.from(r),!1)):a.compatibleContent(n.type)))return{sliceDepth:t,frontierDepth:o,parent:n,inject:c};if(2==e&&r&&(l=s.findWrapping(r.type)))return{sliceDepth:t,frontierDepth:o,parent:n,wrap:l};if(n&&s.matchType(n.type))break}},_J.prototype.openMore=function(){var e=this.unplaced,t=e.content,n=e.openStart,r=e.openEnd,o=VJ(t,n);return!(!o.childCount||o.firstChild.isLeaf)&&(this.unplaced=new SK(t,n+1,Math.max(r,o.size+n>=t.size-r?n+1:0)),!0)},_J.prototype.dropNode=function(){var e=this.unplaced,t=e.content,n=e.openStart,r=e.openEnd,o=VJ(t,n);if(o.childCount<=1&&n>0){var i=t.size-n<=n+o.size;this.unplaced=new SK(HJ(t,n-1,1),n-1,i?n-1:r)}else this.unplaced=new SK(HJ(t,n,1),n,r)},_J.prototype.placeNodes=function(e){for(var t=e.sliceDepth,n=e.frontierDepth,r=e.parent,o=e.inject,i=e.wrap;this.depth>n;)this.closeFrontierNode();if(i)for(var a=0;a<i.length;a++)this.openFrontierNode(i[a]);var s=this.unplaced,l=r?r.content:s.content,c=s.openStart-t,u=0,d=[],p=this.frontier[n],f=p.match,h=p.type;if(o){for(var m=0;m<o.childCount;m++)d.push(o.child(m));f=f.matchFragment(o)}for(var v=l.size+t-(s.content.size-s.openEnd);u<l.childCount;){var g=l.child(u),y=f.matchType(g.type);if(!y)break;(++u>1||0==c||g.content.size)&&(f=y,d.push(UJ(g.mark(h.allowedMarks(g.marks)),1==u?c:0,u==l.childCount?v:-1)))}var b=u==l.childCount;b||(v=-1),this.placed=WJ(this.placed,n,gK.from(d)),this.frontier[n].match=f,b&&v<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(var x=0,w=l;x<v;x++){var C=w.lastChild;this.frontier.push({type:C.type,match:C.contentMatchAt(C.childCount)}),w=C.content}this.unplaced=b?0==t?SK.empty:new SK(HJ(s.content,t-1,1),t-1,v<0?s.openEnd:t-1):new SK(HJ(s.content,t,u),s.openStart,s.openEnd)},_J.prototype.mustMoveInline=function(){if(!this.$to.parent.isTextblock||this.$to.end()==this.$to.pos)return-1;var e,t=this.frontier[this.depth];if(!t.type.isTextblock||!qJ(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(e=this.findCloseLevel(this.$to))&&e.depth==this.depth)return-1;for(var n=this.$to.depth,r=this.$to.after(n);n>1&&r==this.$to.end(--n);)++r;return r},_J.prototype.findCloseLevel=function(e){e:for(var t=Math.min(this.depth,e.depth);t>=0;t--){var n=this.frontier[t],r=n.match,o=n.type,i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),a=qJ(e,t,o,r,i);if(a){for(var s=t-1;s>=0;s--){var l=this.frontier[s],c=l.match,u=qJ(e,s,l.type,c,!0);if(!u||u.childCount)continue e}return{depth:t,fit:a,move:i?e.doc.resolve(e.after(t+1)):e}}}},_J.prototype.close=function(e){var t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=WJ(this.placed,t.depth,t.fit)),e=t.move;for(var n=t.depth+1;n<=e.depth;n++){var r=e.node(n),o=r.type.contentMatch.fillBefore(r.content,!0,e.index(n));this.openFrontierNode(r.type,r.attrs,o)}return e},_J.prototype.openFrontierNode=function(e,t,n){var r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=WJ(this.placed,this.depth,gK.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})},_J.prototype.closeFrontierNode=function(){var e=this.frontier.pop().match.fillBefore(gK.empty,!0);e.childCount&&(this.placed=WJ(this.placed,this.frontier.length,e))},Object.defineProperties(_J.prototype,zJ),OJ.prototype.replaceRange=function(e,t,n){if(!n.size)return this.deleteRange(e,t);var r=this.doc.resolve(e),o=this.doc.resolve(t);if(NJ(r,o,n))return this.step(new TJ(e,t,n));var i=YJ(r,this.doc.resolve(t));0==i[i.length-1]&&i.pop();var a=-(r.depth+1);i.unshift(a);for(var s=r.depth,l=r.pos-1;s>0;s--,l--){var c=r.node(s).type.spec;if(c.defining||c.isolating)break;i.indexOf(s)>-1?a=s:r.before(s)==l&&i.splice(1,0,-s)}for(var u=i.indexOf(a),d=[],p=n.openStart,f=n.content,h=0;;h++){var m=f.firstChild;if(d.push(m),h==n.openStart)break;f=m.content}p>0&&d[p-1].type.spec.defining&&r.node(u).type!=d[p-1].type?p-=1:p>=2&&d[p-1].isTextblock&&d[p-2].type.spec.defining&&r.node(u).type!=d[p-2].type&&(p-=2);for(var v=n.openStart;v>=0;v--){var g=(v+p+1)%(n.openStart+1),y=d[g];if(y)for(var b=0;b<i.length;b++){var x=i[(b+u)%i.length],w=!0;x<0&&(w=!1,x=-x);var C=r.node(x-1),j=r.index(x-1);if(C.canReplaceWith(j,j,y.type,y.marks))return this.replace(r.before(x),w?o.after(x):t,new SK(GJ(n.content,0,n.openStart,g),g,n.openEnd))}}for(var S=this.steps.length,k=i.length-1;k>=0&&(this.replace(e,t,n),!(this.steps.length>S));k--){var Z=i[k];Z<0||(e=r.before(Z),t=o.after(Z))}return this},OJ.prototype.replaceRangeWith=function(e,t,n){if(!n.isInline&&e==t&&this.doc.resolve(e).parent.content.size){var r=function(e,t,n){var r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(var o=r.depth-1;o>=0;o--){var i=r.index(o);if(r.node(o).canReplaceWith(i,i,n))return r.before(o+1);if(i>0)return null}if(r.parentOffset==r.parent.content.size)for(var a=r.depth-1;a>=0;a--){var s=r.indexAfter(a);if(r.node(a).canReplaceWith(s,s,n))return r.after(a+1);if(s<r.node(a).childCount)return null}}(this.doc,e,n.type);null!=r&&(e=t=r)}return this.replaceRange(e,t,new SK(gK.from(n),0,0))},OJ.prototype.deleteRange=function(e,t){for(var n=this.doc.resolve(e),r=this.doc.resolve(t),o=YJ(n,r),i=0;i<o.length;i++){var a=o[i],s=i==o.length-1;if(s&&0==a||n.node(a).type.contentMatch.validEnd)return this.delete(n.start(a),r.end(a));if(a>0&&(s||n.node(a-1).canReplace(n.index(a-1),r.indexAfter(a-1))))return this.delete(n.before(a),r.after(a))}for(var l=1;l<=n.depth&&l<=r.depth;l++)if(e-n.start(l)==n.depth-l&&t>n.end(l)&&r.end(l)-t!=r.depth-l)return this.delete(n.before(l),t);return this.delete(e,t)};var KJ=Object.create(null),JJ=function(e,t,n){this.ranges=n||[new QJ(e.min(t),e.max(t))],this.$anchor=e,this.$head=t},XJ={anchor:{configurable:!0},head:{configurable:!0},from:{configurable:!0},to:{configurable:!0},$from:{configurable:!0},$to:{configurable:!0},empty:{configurable:!0}};XJ.anchor.get=function(){return this.$anchor.pos},XJ.head.get=function(){return this.$head.pos},XJ.from.get=function(){return this.$from.pos},XJ.to.get=function(){return this.$to.pos},XJ.$from.get=function(){return this.ranges[0].$from},XJ.$to.get=function(){return this.ranges[0].$to},XJ.empty.get=function(){for(var e=this.ranges,t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0},JJ.prototype.content=function(){return this.$from.node(0).slice(this.from,this.to,!0)},JJ.prototype.replace=function(e,t){void 0===t&&(t=SK.empty);for(var n=t.content.lastChild,r=null,o=0;o<t.openEnd;o++)r=n,n=n.lastChild;for(var i=e.steps.length,a=this.ranges,s=0;s<a.length;s++){var l=a[s],c=l.$from,u=l.$to,d=e.mapping.slice(i);e.replaceRange(d.map(c.pos),d.map(u.pos),s?SK.empty:t),0==s&&aX(e,i,(n?n.isInline:r&&r.isTextblock)?-1:1)}},JJ.prototype.replaceWith=function(e,t){for(var n=e.steps.length,r=this.ranges,o=0;o<r.length;o++){var i=r[o],a=i.$from,s=i.$to,l=e.mapping.slice(n),c=l.map(a.pos),u=l.map(s.pos);o?e.deleteRange(c,u):(e.replaceRangeWith(c,u,t),aX(e,n,t.isInline?-1:1))}},JJ.findFrom=function(e,t,n){var r=e.parent.inlineContent?new $J(e):iX(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(var o=e.depth-1;o>=0;o--){var i=t<0?iX(e.node(0),e.node(o),e.before(o+1),e.index(o),t,n):iX(e.node(0),e.node(o),e.after(o+1),e.index(o)+1,t,n);if(i)return i}},JJ.near=function(e,t){return void 0===t&&(t=1),this.findFrom(e,t)||this.findFrom(e,-t)||new rX(e.node(0))},JJ.atStart=function(e){return iX(e,e,0,0,1)||new rX(e)},JJ.atEnd=function(e){return iX(e,e,e.content.size,e.childCount,-1)||new rX(e)},JJ.fromJSON=function(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");var n=KJ[t.type];if(!n)throw new RangeError("No selection type "+t.type+" defined");return n.fromJSON(e,t)},JJ.jsonID=function(e,t){if(e in KJ)throw new RangeError("Duplicate use of selection JSON ID "+e);return KJ[e]=t,t.prototype.jsonID=e,t},JJ.prototype.getBookmark=function(){return $J.between(this.$anchor,this.$head).getBookmark()},Object.defineProperties(JJ.prototype,XJ),JJ.prototype.visible=!0;var QJ=function(e,t){this.$from=e,this.$to=t},$J=function(e){function t(t,n){void 0===n&&(n=t),e.call(this,t,n)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={$cursor:{configurable:!0}};return n.$cursor.get=function(){return this.$anchor.pos==this.$head.pos?this.$head:null},t.prototype.map=function(n,r){var o=n.resolve(r.map(this.head));if(!o.parent.inlineContent)return e.near(o);var i=n.resolve(r.map(this.anchor));return new t(i.parent.inlineContent?i:o,o)},t.prototype.replace=function(t,n){if(void 0===n&&(n=SK.empty),e.prototype.replace.call(this,t,n),n==SK.empty){var r=this.$from.marksAcross(this.$to);r&&t.ensureMarks(r)}},t.prototype.eq=function(e){return e instanceof t&&e.anchor==this.anchor&&e.head==this.head},t.prototype.getBookmark=function(){return new eX(this.anchor,this.head)},t.prototype.toJSON=function(){return{type:"text",anchor:this.anchor,head:this.head}},t.fromJSON=function(e,n){if("number"!=typeof n.anchor||"number"!=typeof n.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new t(e.resolve(n.anchor),e.resolve(n.head))},t.create=function(e,t,n){void 0===n&&(n=t);var r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))},t.between=function(n,r,o){var i=n.pos-r.pos;if(o&&!i||(o=i>=0?1:-1),!r.parent.inlineContent){var a=e.findFrom(r,o,!0)||e.findFrom(r,-o,!0);if(!a)return e.near(r,o);r=a.$head}return n.parent.inlineContent||(0==i||(n=(e.findFrom(n,-o,!0)||e.findFrom(n,o,!0)).$anchor).pos<r.pos!=i<0)&&(n=r),new t(n,r)},Object.defineProperties(t.prototype,n),t}(JJ);JJ.jsonID("text",$J);var eX=function(e,t){this.anchor=e,this.head=t};eX.prototype.map=function(e){return new eX(e.map(this.anchor),e.map(this.head))},eX.prototype.resolve=function(e){return $J.between(e.resolve(this.anchor),e.resolve(this.head))};var tX=function(e){function t(t){var n=t.nodeAfter,r=t.node(0).resolve(t.pos+n.nodeSize);e.call(this,t,r),this.node=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.map=function(n,r){var o=r.mapResult(this.anchor),i=o.deleted,a=o.pos,s=n.resolve(a);return i?e.near(s):new t(s)},t.prototype.content=function(){return new SK(gK.from(this.node),0,0)},t.prototype.eq=function(e){return e instanceof t&&e.anchor==this.anchor},t.prototype.toJSON=function(){return{type:"node",anchor:this.anchor}},t.prototype.getBookmark=function(){return new nX(this.anchor)},t.fromJSON=function(e,n){if("number"!=typeof n.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new t(e.resolve(n.anchor))},t.create=function(e,t){return new this(e.resolve(t))},t.isSelectable=function(e){return!e.isText&&!1!==e.type.spec.selectable},t}(JJ);tX.prototype.visible=!1,JJ.jsonID("node",tX);var nX=function(e){this.anchor=e};nX.prototype.map=function(e){var t=e.mapResult(this.anchor),n=t.deleted,r=t.pos;return n?new eX(r,r):new nX(r)},nX.prototype.resolve=function(e){var t=e.resolve(this.anchor),n=t.nodeAfter;return n&&tX.isSelectable(n)?new tX(t):JJ.near(t)};var rX=function(e){function t(t){e.call(this,t.resolve(0),t.resolve(t.content.size))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.replace=function(t,n){if(void 0===n&&(n=SK.empty),n==SK.empty){t.delete(0,t.doc.content.size);var r=e.atStart(t.doc);r.eq(t.selection)||t.setSelection(r)}else e.prototype.replace.call(this,t,n)},t.prototype.toJSON=function(){return{type:"all"}},t.fromJSON=function(e){return new t(e)},t.prototype.map=function(e){return new t(e)},t.prototype.eq=function(e){return e instanceof t},t.prototype.getBookmark=function(){return oX},t}(JJ);JJ.jsonID("all",rX);var oX={map:function(){return this},resolve:function(e){return new rX(e)}};function iX(e,t,n,r,o,i){if(t.inlineContent)return $J.create(e,n);for(var a=r-(o>0?0:1);o>0?a<t.childCount:a>=0;a+=o){var s=t.child(a);if(s.isAtom){if(!i&&tX.isSelectable(s))return tX.create(e,n-(o<0?s.nodeSize:0))}else{var l=iX(e,s,n+o,o<0?s.childCount:0,o,i);if(l)return l}n+=s.nodeSize*o}}function aX(e,t,n){var r=e.steps.length-1;if(!(r<t)){var o,i=e.steps[r];if(i instanceof TJ||i instanceof IJ)e.mapping.maps[r].forEach((function(e,t,n,r){null==o&&(o=r)})),e.setSelection(JJ.near(e.doc.resolve(o),n))}}var sX=function(e){function t(t){e.call(this,t.doc),this.time=Date.now(),this.curSelection=t.selection,this.curSelectionFor=0,this.storedMarks=t.storedMarks,this.updated=0,this.meta=Object.create(null)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={selection:{configurable:!0},selectionSet:{configurable:!0},storedMarksSet:{configurable:!0},isGeneric:{configurable:!0},scrolledIntoView:{configurable:!0}};return n.selection.get=function(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection},t.prototype.setSelection=function(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=-3&(1|this.updated),this.storedMarks=null,this},n.selectionSet.get=function(){return(1&this.updated)>0},t.prototype.setStoredMarks=function(e){return this.storedMarks=e,this.updated|=2,this},t.prototype.ensureMarks=function(e){return CK.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this},t.prototype.addStoredMark=function(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))},t.prototype.removeStoredMark=function(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))},n.storedMarksSet.get=function(){return(2&this.updated)>0},t.prototype.addStep=function(t,n){e.prototype.addStep.call(this,t,n),this.updated=-3&this.updated,this.storedMarks=null},t.prototype.setTime=function(e){return this.time=e,this},t.prototype.replaceSelection=function(e){return this.selection.replace(this,e),this},t.prototype.replaceSelectionWith=function(e,t){var n=this.selection;return!1!==t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||CK.none))),n.replaceWith(this,e),this},t.prototype.deleteSelection=function(){return this.selection.replace(this),this},t.prototype.insertText=function(e,t,n){void 0===n&&(n=t);var r=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();if(!e)return this.deleteRange(t,n);var o=this.storedMarks;if(!o){var i=this.doc.resolve(t);o=n==t?i.marks():i.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,o)),this.selection.empty||this.setSelection(JJ.near(this.selection.$to)),this},t.prototype.setMeta=function(e,t){return this.meta["string"==typeof e?e:e.key]=t,this},t.prototype.getMeta=function(e){return this.meta["string"==typeof e?e:e.key]},n.isGeneric.get=function(){for(var e in this.meta)return!1;return!0},t.prototype.scrollIntoView=function(){return this.updated|=4,this},n.scrolledIntoView.get=function(){return(4&this.updated)>0},Object.defineProperties(t.prototype,n),t}(OJ);function lX(e,t){return t&&e?e.bind(t):e}var cX=function(e,t,n){this.name=e,this.init=lX(t.init,n),this.apply=lX(t.apply,n)},uX=[new cX("doc",{init:function(e){return e.doc||e.schema.topNodeType.createAndFill()},apply:function(e){return e.doc}}),new cX("selection",{init:function(e,t){return e.selection||JJ.atStart(t.doc)},apply:function(e){return e.selection}}),new cX("storedMarks",{init:function(e){return e.storedMarks||null},apply:function(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new cX("scrollToSelection",{init:function(){return 0},apply:function(e,t){return e.scrolledIntoView?t+1:t}})],dX=function(e,t){var n=this;this.schema=e,this.fields=uX.concat(),this.plugins=[],this.pluginsByKey=Object.create(null),t&&t.forEach((function(e){if(n.pluginsByKey[e.key])throw new RangeError("Adding different instances of a keyed plugin ("+e.key+")");n.plugins.push(e),n.pluginsByKey[e.key]=e,e.spec.state&&n.fields.push(new cX(e.key,e.spec.state,e))}))},pX=function(e){this.config=e},fX={schema:{configurable:!0},plugins:{configurable:!0},tr:{configurable:!0}};fX.schema.get=function(){return this.config.schema},fX.plugins.get=function(){return this.config.plugins},pX.prototype.apply=function(e){return this.applyTransaction(e).state},pX.prototype.filterTransaction=function(e,t){void 0===t&&(t=-1);for(var n=0;n<this.config.plugins.length;n++)if(n!=t){var r=this.config.plugins[n];if(r.spec.filterTransaction&&!r.spec.filterTransaction.call(r,e,this))return!1}return!0},pX.prototype.applyTransaction=function(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};for(var t=[e],n=this.applyInner(e),r=null;;){for(var o=!1,i=0;i<this.config.plugins.length;i++){var a=this.config.plugins[i];if(a.spec.appendTransaction){var s=r?r[i].n:0,l=r?r[i].state:this,c=s<t.length&&a.spec.appendTransaction.call(a,s?t.slice(s):t,l,n);if(c&&n.filterTransaction(c,i)){if(c.setMeta("appendedTransaction",e),!r){r=[];for(var u=0;u<this.config.plugins.length;u++)r.push(u<i?{state:n,n:t.length}:{state:this,n:0})}t.push(c),n=n.applyInner(c),o=!0}r&&(r[i]={state:n,n:t.length})}}if(!o)return{state:n,transactions:t}}},pX.prototype.applyInner=function(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");for(var t=new pX(this.config),n=this.config.fields,r=0;r<n.length;r++){var o=n[r];t[o.name]=o.apply(e,this[o.name],this,t)}for(var i=0;i<hX.length;i++)hX[i](this,e,t);return t},fX.tr.get=function(){return new sX(this)},pX.create=function(e){for(var t=new dX(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new pX(t),r=0;r<t.fields.length;r++)n[t.fields[r].name]=t.fields[r].init(e,n);return n},pX.prototype.reconfigure=function(e){for(var t=new dX(this.schema,e.plugins),n=t.fields,r=new pX(t),o=0;o<n.length;o++){var i=n[o].name;r[i]=this.hasOwnProperty(i)?this[i]:n[o].init(e,r)}return r},pX.prototype.toJSON=function(e){var t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map((function(e){return e.toJSON()}))),e&&"object"==typeof e)for(var n in e){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");var r=e[n],o=r.spec.state;o&&o.toJSON&&(t[n]=o.toJSON.call(r,this[r.key]))}return t},pX.fromJSON=function(e,t,n){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");var r=new dX(e.schema,e.plugins),o=new pX(r);return r.fields.forEach((function(r){if("doc"==r.name)o.doc=UK.fromJSON(e.schema,t.doc);else if("selection"==r.name)o.selection=JJ.fromJSON(o.doc,t.selection);else if("storedMarks"==r.name)t.storedMarks&&(o.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(var i in n){var a=n[i],s=a.spec.state;if(a.key==r.name&&s&&s.fromJSON&&Object.prototype.hasOwnProperty.call(t,i))return void(o[r.name]=s.fromJSON.call(a,e,t[i],o))}o[r.name]=r.init(e,o)}})),o},pX.addApplyListener=function(e){hX.push(e)},pX.removeApplyListener=function(e){var t=hX.indexOf(e);t>-1&&hX.splice(t,1)},Object.defineProperties(pX.prototype,fX);var hX=[];function mX(e,t){return t?e.createChecked(null,t):e.createAndFill()}function vX(e,t,n,r,o){for(var i=function(e){if(e.cached.tableNodeTypes)return e.cached.tableNodeTypes;var t={};return Object.keys(e.nodes).forEach((function(n){var r=e.nodes[n];r.spec.tableRole&&(t[r.spec.tableRole]=r)})),e.cached.tableNodeTypes=t,t}(e),a=[],s=[],l=0;l<n;l+=1){var c=mX(i.cell,o);if(c&&s.push(c),r){var u=mX(i.header_cell,o);u&&a.push(u)}}for(var d=[],p=0;p<t;p+=1)d.push(i.row.createChecked(null,r&&0===p?a:s));return i.table.createChecked(null,d)}var gX=function(e){var t=e.editor,n=t.state.selection;if(!function(e){return e instanceof kY}(n))return!1;var r=0,o=wV(n.ranges[0].$from,(function(e){return"table"===e.type.name}));return null===o||void 0===o||o.node.descendants((function(e){if("table"===e.type.name)return!1;["tableCell","tableHeader"].includes(e.type.name)&&(r+=1)})),r===n.ranges.length&&(t.commands.deleteTable(),!0)};function yX(e,t,n,r,o,i){for(var a=0,s=!0,l=t.firstChild,c=e.firstChild,u=0,d=0;u<c.childCount;u+=1)for(var p=c.child(u).attrs,f=p.colspan,h=p.colwidth,m=0;m<f;m+=1,d+=1){var v=o===d?i:h&&h[m],g=v?"".concat(v,"px"):"";a+=v||r,v||(s=!1),l?(l.style.width!==g&&(l.style.width=g),l=l.nextSibling):t.appendChild(document.createElement("col")).style.width=g}for(;l;){var y=l.nextSibling;l.parentNode.removeChild(l),l=y}s?(n.style.width="".concat(a,"px"),n.style.minWidth=""):(n.style.width="",n.style.minWidth="".concat(a,"px"))}var bX=function(){function e(t,n){(0,Ph.Z)(this,e),this.node=t,this.cellMinWidth=n,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),yX(t,this.colgroup,this.table,n),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}return(0,Dh.Z)(e,[{key:"update",value:function(e){return e.type===this.node.type&&(this.node=e,yX(e,this.colgroup,this.table,this.cellMinWidth),!0)}},{key:"ignoreMutation",value:function(e){return"attributes"===e.type&&(e.target===this.table||this.colgroup.contains(e.target))}}]),e}(),xX=pU.create({name:"table",addOptions:function(){return{HTMLAttributes:{},resizable:!1,handleWidth:5,cellMinWidth:25,View:bX,lastColumnResizable:!0,allowTableNodeSelection:!1}},content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML:function(){return[{tag:"table"}]},renderHTML:function(e){var t=e.HTMLAttributes;return["table",nU(this.options.HTMLAttributes,t),["tbody",0]]},addCommands:function(){return{insertTable:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.rows,n=void 0===t?3:t,r=e.cols,o=void 0===r?3:r,i=e.withHeaderRow,a=void 0===i||i;return function(e){var t=e.tr,r=e.dispatch,i=vX(e.editor.schema,n,o,a);if(r){var s=t.selection.anchor+1;t.replaceSelectionWith(i).scrollIntoView().setSelection($J.near(t.doc.resolve(s)))}return!0}},addColumnBefore:function(){return function(e){return function(e,t){if(!gY(e))return!1;if(t){var n=GY(e);t(YY(e.tr,n,n.left))}return!0}(e.state,e.dispatch)}},addColumnAfter:function(){return function(e){return function(e,t){if(!gY(e))return!1;if(t){var n=GY(e);t(YY(e.tr,n,n.right))}return!0}(e.state,e.dispatch)}},deleteColumn:function(){return function(e){return function(e,t){if(!gY(e))return!1;if(t){var n=GY(e),r=e.tr;if(0==n.left&&n.right==n.map.width)return!1;for(var o=n.right-1;KY(r,n,o),o!=n.left;o--)n.table=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc,n.map=pY.get(n.table);t(r)}return!0}(e.state,e.dispatch)}},addRowBefore:function(){return function(e){return function(e,t){if(!gY(e))return!1;if(t){var n=GY(e);t(JY(e.tr,n,n.top))}return!0}(e.state,e.dispatch)}},addRowAfter:function(){return function(e){return function(e,t){if(!gY(e))return!1;if(t){var n=GY(e);t(JY(e.tr,n,n.bottom))}return!0}(e.state,e.dispatch)}},deleteRow:function(){return function(e){return function(e,t){if(!gY(e))return!1;if(t){var n=GY(e),r=e.tr;if(0==n.top&&n.bottom==n.map.height)return!1;for(var o=n.bottom-1;XY(r,n,o),o!=n.top;o--)n.table=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc,n.map=pY.get(n.table);t(r)}return!0}(e.state,e.dispatch)}},deleteTable:function(){return function(e){return function(e,t){for(var n=e.selection.$anchor,r=n.depth;r>0;r--)if("table"==n.node(r).type.spec.tableRole)return t&&t(e.tr.delete(n.before(r),n.after(r)).scrollIntoView()),!0;return!1}(e.state,e.dispatch)}},mergeCells:function(){return function(e){return $Y(e.state,e.dispatch)}},splitCell:function(){return function(e){return eK(e.state,e.dispatch)}},toggleHeaderColumn:function(){return function(e){var t=e.state,n=e.dispatch;return nK("column")(t,n)}},toggleHeaderRow:function(){return function(e){var t=e.state,n=e.dispatch;return nK("row")(t,n)}},toggleHeaderCell:function(){return function(e){var t=e.state,n=e.dispatch;return rK(t,n)}},mergeOrSplit:function(){return function(e){var t=e.state,n=e.dispatch;return!!$Y(t,n)||eK(t,n)}},setCellAttribute:function(e,t){return function(n){var r=n.state,o=n.dispatch;return function(e,t){return function(n,r){if(!gY(n))return!1;var o=yY(n);if(o.nodeAfter.attrs[e]===t)return!1;if(r){var i=n.tr;n.selection instanceof kY?n.selection.forEachCell((function(n,r){n.attrs[e]!==t&&i.setNodeMarkup(r,null,CY(n.attrs,e,t))})):i.setNodeMarkup(o.pos,null,CY(o.nodeAfter.attrs,e,t)),r(i)}return!0}}(e,t)(r,o)}},goToNextCell:function(){return function(e){var t=e.state,n=e.dispatch;return oK(1)(t,n)}},goToPreviousCell:function(){return function(e){var t=e.state,n=e.dispatch;return oK(-1)(t,n)}},fixTables:function(){return function(e){var t=e.state;return e.dispatch&&qY(t),!0}},setCellSelection:function(e){return function(t){var n=t.tr;if(t.dispatch){var r=kY.create(n.doc,e.anchorCell,e.headCell);n.setSelection(r)}return!0}}}},addKeyboardShortcuts:function(){var e=this;return{Tab:function(){return!!e.editor.commands.goToNextCell()||!!e.editor.can().addRowAfter()&&e.editor.chain().addRowAfter().goToNextCell().run()},"Shift-Tab":function(){return e.editor.commands.goToPreviousCell()},Backspace:gX,"Mod-Backspace":gX,Delete:gX,"Mod-Delete":gX}},addProseMirrorPlugins:function(){var e=this.options.resizable&&this.editor.isEditable;return[].concat((0,dn.Z)(e?[lK({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[]),[hK({allowTableNodeSelection:this.options.allowTableNodeSelection})])},extendNodeSchema:function(e){return{tableRole:aW(sW(e,"tableRole",{name:e.name,options:e.options,storage:e.storage}))}}}),wX=pU.create({name:"tableRow",addOptions:function(){return{HTMLAttributes:{}}},content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML:function(){return[{tag:"tr"}]},renderHTML:function(e){var t=e.HTMLAttributes;return["tr",nU(this.options.HTMLAttributes,t),0]}}),CX=pU.create({name:"tableCell",addOptions:function(){return{HTMLAttributes:{}}},content:"block+",addAttributes:function(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:function(e){var t=e.getAttribute("colwidth");return t?[parseInt(t,10)]:null}}}},tableRole:"cell",isolating:!0,parseHTML:function(){return[{tag:"td"}]},renderHTML:function(e){var t=e.HTMLAttributes;return["td",nU(this.options.HTMLAttributes,t),0]}}),jX=pU.create({name:"tableHeader",addOptions:function(){return{HTMLAttributes:{}}},content:"block+",addAttributes:function(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:function(e){var t=e.getAttribute("colwidth");return t?[parseInt(t,10)]:null}}}},tableRole:"header_cell",isolating:!0,parseHTML:function(){return[{tag:"th"}]},renderHTML:function(e){var t=e.HTMLAttributes;return["th",nU(this.options.HTMLAttributes,t),0]}}),SX=function(){function e(t){var n=this,r=t.editor,o=t.element,i=t.view,a=t.tippyOptions,s=void 0===a?{}:a,l=t.shouldShow;(0,Ph.Z)(this,e),this.preventHide=!1,this.shouldShow=function(e){var t=e.view,n=e.state.selection,r=n.$anchor,o=n.empty,i=1===r.depth,a=r.parent.isTextblock&&!r.parent.type.spec.code&&!r.parent.textContent;return!!(t.hasFocus()&&o&&i&&a)},this.mousedownHandler=function(){n.preventHide=!0},this.focusHandler=function(){setTimeout((function(){return n.update(n.editor.view)}))},this.blurHandler=function(e){var t,r=e.event;n.preventHide?n.preventHide=!1:(null===r||void 0===r?void 0:r.relatedTarget)&&(null===(t=n.element.parentNode)||void 0===t?void 0:t.contains(r.relatedTarget))||n.hide()},this.editor=r,this.element=o,this.view=i,l&&(this.shouldShow=l),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=s,this.element.remove(),this.element.style.visibility="visible"}return(0,Dh.Z)(e,[{key:"createTooltip",value:function(){var e=this,t=this.editor.options.element,n=!!t.parentElement;!this.tippy&&n&&(this.tippy=vq(t,(0,l.Z)({duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle"},this.tippyOptions)),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",(function(t){e.blurHandler({event:t})})))}},{key:"update",value:function(e,t){var n,r,o=e.state,i=o.doc,a=o.selection,s=a.from,l=a.to;t&&t.doc.eq(i)&&t.selection.eq(a)||(this.createTooltip(),(null===(n=this.shouldShow)||void 0===n?void 0:n.call(this,{editor:this.editor,view:e,state:o,oldState:t}))?(null===(r=this.tippy)||void 0===r||r.setProps({getReferenceClientRect:function(){return wU(e,s,l)}}),this.show()):this.hide())}},{key:"show",value:function(){var e;null===(e=this.tippy)||void 0===e||e.show()}},{key:"hide",value:function(){var e;null===(e=this.tippy)||void 0===e||e.hide()}},{key:"destroy",value:function(){var e;null===(e=this.tippy)||void 0===e||e.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}]),e}(),kX=function(e){return new vN({key:"string"===typeof e.pluginKey?new bN(e.pluginKey):e.pluginKey,view:function(t){return new SX((0,l.Z)({view:t},e))}})},ZX=(lW.create({name:"floatingMenu",addOptions:function(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins:function(){return this.options.element?[kX({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}}),["editor"]),OX=function(e){var t=(0,o.useState)(null),n=(0,Le.Z)(t,2),r=n[0],i=n[1];return(0,o.useEffect)((function(){if(r&&!e.editor.isDestroyed){var t=e.pluginKey,n=void 0===t?"bubbleMenu":t,o=e.editor,i=e.tippyOptions,a=void 0===i?{}:i,s=e.shouldShow,l=yq({pluginKey:n,editor:o,element:r,tippyOptions:a,shouldShow:void 0===s?null:s});return o.registerPlugin(l),function(){return o.unregisterPlugin(n)}}}),[e.editor,r]),o.createElement("div",{ref:i,className:e.className,style:{visibility:"hidden"}},e.children)},EX=function(e){(0,qF.Z)(n,e);var t=(0,GF.Z)(n);function n(){var e;return(0,Ph.Z)(this,n),(e=t.apply(this,arguments)).contentComponent=null,e}return(0,Dh.Z)(n)}(dU);function DX(){var e=(0,o.useState)(0),t=(0,Le.Z)(e,2)[1];return function(){return t((function(e){return e+1}))}}var PX=(0,o.createContext)({onDragStart:void 0}),AX=function(){return(0,o.useContext)(PX)};var MX=function(e){var t=e.renderers;return o.createElement(o.Fragment,null,Array.from(t).map((function(e){var t=(0,Le.Z)(e,2),n=t[0],r=t[1];return g.createPortal(r.reactElement,r.element,n)})))},TX=function(e){(0,qF.Z)(n,e);var t=(0,GF.Z)(n);function n(e){var r;return(0,Ph.Z)(this,n),(r=t.call(this,e)).editorContentRef=o.createRef(),r.state={renderers:new Map},r}return(0,Dh.Z)(n,[{key:"componentDidMount",value:function(){this.init()}},{key:"componentDidUpdate",value:function(){this.init()}},{key:"init",value:function(){var e=this.props.editor;if(e&&e.options.element){if(e.contentComponent)return;var t=this.editorContentRef.current;t.append.apply(t,(0,dn.Z)(e.options.element.childNodes)),e.setOptions({element:t}),e.contentComponent=this,e.createNodeViews()}}},{key:"componentWillUnmount",value:function(){var e=this.props.editor;if(e&&(e.isDestroyed||e.view.setProps({nodeViews:{}}),e.contentComponent=null,e.options.element.firstChild)){var t=document.createElement("div");t.append.apply(t,(0,dn.Z)(e.options.element.childNodes)),e.setOptions({element:t})}}},{key:"render",value:function(){var e=this.props,t=(e.editor,Nn(e,ZX));return o.createElement(o.Fragment,null,o.createElement("div",(0,l.Z)({ref:this.editorContentRef},t)),o.createElement(MX,{renderers:this.state.renderers}))}}]),n}(o.Component),IX=o.memo(TX),RX=(o.forwardRef((function(e,t){var n=AX().onDragStart,r=e.as||"div";return o.createElement(r,(0,l.Z)((0,l.Z)({},e),{},{ref:t,"data-node-view-wrapper":"",onDragStart:n,style:(0,l.Z)((0,l.Z)({},e.style),{},{whiteSpace:"normal"})}))})),/^\s*>\s$/),FX=pU.create({name:"blockquote",addOptions:function(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML:function(){return[{tag:"blockquote"}]},renderHTML:function(e){var t=e.HTMLAttributes;return["blockquote",nU(this.options.HTMLAttributes,t),0]},addCommands:function(){var e=this;return{setBlockquote:function(){return function(t){return t.commands.wrapIn(e.name)}},toggleBlockquote:function(){return function(t){return t.commands.toggleWrap(e.name)}},unsetBlockquote:function(){return function(t){return t.commands.lift(e.name)}}}},addKeyboardShortcuts:function(){var e=this;return{"Mod-Shift-b":function(){return e.editor.commands.toggleBlockquote()}}},addInputRules:function(){return[yU({find:RX,type:this.type})]}}),BX=/^\s*([-+*])\s$/,LX=pU.create({name:"bulletList",addOptions:function(){return{itemTypeName:"listItem",HTMLAttributes:{}}},group:"block list",content:function(){return"".concat(this.options.itemTypeName,"+")},parseHTML:function(){return[{tag:"ul"}]},renderHTML:function(e){var t=e.HTMLAttributes;return["ul",nU(this.options.HTMLAttributes,t),0]},addCommands:function(){var e=this;return{toggleBulletList:function(){return function(t){return t.commands.toggleList(e.name,e.options.itemTypeName)}}}},addKeyboardShortcuts:function(){var e=this;return{"Mod-Shift-8":function(){return e.editor.commands.toggleBulletList()}}},addInputRules:function(){return[yU({find:BX,type:this.type})]}}),NX=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/,_X=/(?:^|\s)((?:`)((?:[^`]+))(?:`))/g,zX=fU.create({name:"code",addOptions:function(){return{HTMLAttributes:{}}},excludes:"_",code:!0,parseHTML:function(){return[{tag:"code"}]},renderHTML:function(e){var t=e.HTMLAttributes;return["code",nU(this.options.HTMLAttributes,t),0]},addCommands:function(){var e=this;return{setCode:function(){return function(t){return t.commands.setMark(e.name)}},toggleCode:function(){return function(t){return t.commands.toggleMark(e.name)}},unsetCode:function(){return function(t){return t.commands.unsetMark(e.name)}}}},addKeyboardShortcuts:function(){var e=this;return{"Mod-e":function(){return e.editor.commands.toggleCode()}}},addInputRules:function(){return[vU({find:NX,type:this.type})]},addPasteRules:function(){return[bU({find:_X,type:this.type})]}}),HX=/^```([a-z]+)?[\s\n]$/,WX=/^~~~([a-z]+)?[\s\n]$/,VX=pU.create({name:"codeBlock",addOptions:function(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes:function(){var e=this;return{language:{default:null,parseHTML:function(t){var n,r=e.options.languageClassPrefix,o=(0,dn.Z)((null===(n=t.firstElementChild)||void 0===n?void 0:n.classList)||[]).filter((function(e){return e.startsWith(r)})).map((function(e){return e.replace(r,"")}))[0];return o||null},rendered:!1}}},parseHTML:function(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML:function(e){var t=e.node,n=e.HTMLAttributes;return["pre",nU(this.options.HTMLAttributes,n),["code",{class:t.attrs.language?this.options.languageClassPrefix+t.attrs.language:null},0]]},addCommands:function(){var e=this;return{setCodeBlock:function(t){return function(n){return n.commands.setNode(e.name,t)}},toggleCodeBlock:function(t){return function(n){return n.commands.toggleNode(e.name,"paragraph",t)}}}},addKeyboardShortcuts:function(){var e=this;return{"Mod-Alt-c":function(){return e.editor.commands.toggleCodeBlock()},Backspace:function(){var t=e.editor.state.selection,n=t.empty,r=t.$anchor,o=1===r.pos;return!(!n||r.parent.type.name!==e.name)&&(!(!o&&r.parent.textContent.length)&&e.editor.commands.clearNodes())},Enter:function(t){var n=t.editor;if(!e.options.exitOnTripleEnter)return!1;var r=n.state.selection,o=r.$from;if(!r.empty||o.parent.type!==e.type)return!1;var i=o.parentOffset===o.parent.nodeSize-2,a=o.parent.textContent.endsWith("\n\n");return!(!i||!a)&&n.chain().command((function(e){return e.tr.delete(o.pos-2,o.pos),!0})).exitCode().run()},ArrowDown:function(t){var n=t.editor;if(!e.options.exitOnArrowDown)return!1;var r=n.state,o=r.selection,i=r.doc,a=o.$from;if(!o.empty||a.parent.type!==e.type)return!1;if(!(a.parentOffset===a.parent.nodeSize-2))return!1;var s=a.after();return void 0!==s&&(!i.nodeAt(s)&&n.commands.exitCode())}}},addInputRules:function(){return[gU({find:HX,type:this.type,getAttributes:function(e){return{language:e[1]}}}),gU({find:WX,type:this.type,getAttributes:function(e){return{language:e[1]}}})]},addProseMirrorPlugins:function(){var e=this;return[new vN({key:new bN("codeBlockVSCodeHandler"),props:{handlePaste:function(t,n){if(!n.clipboardData)return!1;if(e.editor.isActive(e.type.name))return!1;var r=n.clipboardData.getData("text/plain"),o=n.clipboardData.getData("vscode-editor-data"),i=o?JSON.parse(o):void 0,a=null===i||void 0===i?void 0:i.mode;if(!r||!a)return!1;var s=t.state.tr;return s.replaceSelectionWith(e.type.create({language:a})),s.setSelection($L.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.insertText(r.replace(/\r\n?/g,"\n")),s.setMeta("paste",!0),t.dispatch(s),!0}}})]}});function UX(e){return void 0===e&&(e={}),new vN({view:function(t){return new qX(t,e)}})}var qX=function(e,t){var n=this;this.editorView=e,this.width=t.width||1,this.color=t.color||"black",this.class=t.class,this.cursorPos=null,this.element=null,this.timeout=null,this.handlers=["dragover","dragend","drop","dragleave"].map((function(t){var r=function(e){return n[t](e)};return e.dom.addEventListener(t,r),{name:t,handler:r}}))};qX.prototype.destroy=function(){var e=this;this.handlers.forEach((function(t){var n=t.name,r=t.handler;return e.editorView.dom.removeEventListener(n,r)}))},qX.prototype.update=function(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())},qX.prototype.setCursor=function(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())},qX.prototype.updateOverlay=function(){var e,t=this.editorView.state.doc.resolve(this.cursorPos);if(!t.parent.inlineContent){var n=t.nodeBefore,r=t.nodeAfter;if(n||r){var o=this.editorView.nodeDOM(this.cursorPos-(n?n.nodeSize:0)).getBoundingClientRect(),i=n?o.bottom:o.top;n&&r&&(i=(i+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),e={left:o.left,right:o.right,top:i-this.width/2,bottom:i+this.width/2}}}if(!e){var a=this.editorView.coordsAtPos(this.cursorPos);e={left:a.left-this.width/2,right:a.left+this.width/2,top:a.top,bottom:a.bottom}}var s,l,c=this.editorView.dom.offsetParent;if(this.element||(this.element=c.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none; background-color: "+this.color),!c||c==document.body&&"static"==getComputedStyle(c).position)s=-pageXOffset,l=-pageYOffset;else{var u=c.getBoundingClientRect();s=u.left-c.scrollLeft,l=u.top-c.scrollTop}this.element.style.left=e.left-s+"px",this.element.style.top=e.top-l+"px",this.element.style.width=e.right-e.left+"px",this.element.style.height=e.bottom-e.top+"px"},qX.prototype.scheduleRemoval=function(e){var t=this;clearTimeout(this.timeout),this.timeout=setTimeout((function(){return t.setCursor(null)}),e)},qX.prototype.dragover=function(e){if(this.editorView.editable){var t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),r=n&&n.type.spec.disableDropCursor,o="function"==typeof r?r(this.editorView,t):r;if(t&&!o){var i=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice&&null==(i=IL(this.editorView.state.doc,i,this.editorView.dragging.slice)))return this.setCursor(null);this.setCursor(i),this.scheduleRemoval(5e3)}}},qX.prototype.dragend=function(){this.scheduleRemoval(20)},qX.prototype.drop=function(){this.scheduleRemoval(20)},qX.prototype.dragleave=function(e){e.target!=this.editorView.dom&&this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)};var GX=lW.create({name:"dropCursor",addOptions:function(){return{color:"currentColor",width:1,class:null}},addProseMirrorPlugins:function(){return[UX(this.options)]}}),YX=function(e){function t(t){e.call(this,t,t)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.map=function(n,r){var o=n.resolve(r.map(this.head));return t.valid(o)?new t(o):e.near(o)},t.prototype.content=function(){return iB.empty},t.prototype.eq=function(e){return e instanceof t&&e.head==this.head},t.prototype.toJSON=function(){return{type:"gapcursor",pos:this.head}},t.fromJSON=function(e,n){if("number"!=typeof n.pos)throw new RangeError("Invalid input for GapCursor.fromJSON");return new t(e.resolve(n.pos))},t.prototype.getBookmark=function(){return new KX(this.anchor)},t.valid=function(e){var t=e.parent;if(t.isTextblock||!function(e){for(var t=e.depth;t>=0;t--){var n=e.index(t),r=e.node(t);if(0!=n)for(var o=r.child(n-1);;o=o.lastChild){if(0==o.childCount&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}else if(r.type.spec.isolating)return!0}return!0}(e)||!function(e){for(var t=e.depth;t>=0;t--){var n=e.indexAfter(t),r=e.node(t);if(n!=r.childCount)for(var o=r.child(n);;o=o.firstChild){if(0==o.childCount&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}else if(r.type.spec.isolating)return!0}return!0}(e))return!1;var n=t.type.spec.allowGapCursor;if(null!=n)return n;var r=t.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock},t.findFrom=function(e,n,r){e:for(;;){if(!r&&t.valid(e))return e;for(var o=e.pos,i=null,a=e.depth;;a--){var s=e.node(a);if(n>0?e.indexAfter(a)<s.childCount:e.index(a)>0){i=s.child(n>0?e.indexAfter(a):e.index(a)-1);break}if(0==a)return null;o+=n;var l=e.doc.resolve(o);if(t.valid(l))return l}for(;;){var c=n>0?i.firstChild:i.lastChild;if(!c){if(i.isAtom&&!i.isText&&!tN.isSelectable(i)){e=e.doc.resolve(o+i.nodeSize*n),r=!1;continue e}break}i=c,o+=n;var u=e.doc.resolve(o);if(t.valid(u))return u}return null}},t}(JL);YX.prototype.visible=!1,JL.jsonID("gapcursor",YX);var KX=function(e){this.pos=e};KX.prototype.map=function(e){return new KX(e.map(this.pos))},KX.prototype.resolve=function(e){var t=e.resolve(this.pos);return YX.valid(t)?new YX(t):JL.near(t)};var JX=nW({ArrowLeft:XX("horiz",-1),ArrowRight:XX("horiz",1),ArrowUp:XX("vert",-1),ArrowDown:XX("vert",1)});function XX(e,t){var n="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,r,o){var i=e.selection,a=t>0?i.$to:i.$from,s=i.empty;if(i instanceof $L){if(!o.endOfTextblock(n)||0==a.depth)return!1;s=!1,a=e.doc.resolve(t>0?a.after():a.before())}var l=YX.findFrom(a,t,s);return!!l&&(r&&r(e.tr.setSelection(new YX(l))),!0)}}function QX(e,t,n){if(!e.editable)return!1;var r=e.state.doc.resolve(t);if(!YX.valid(r))return!1;var o=e.posAtCoords({left:n.clientX,top:n.clientY}).inside;return!(o>-1&&tN.isSelectable(e.state.doc.nodeAt(o)))&&(e.dispatch(e.state.tr.setSelection(new YX(r))),!0)}function $X(e){if(!(e.selection instanceof YX))return null;var t=document.createElement("div");return t.className="ProseMirror-gapcursor",kH.create(e.doc,[wH.widget(e.selection.head,t,{key:"gapcursor"})])}var eQ=lW.create({name:"gapCursor",addProseMirrorPlugins:function(){return[new vN({props:{decorations:$X,createSelectionBetween:function(e,t,n){if(t.pos==n.pos&&YX.valid(n))return new YX(n)},handleClick:QX,handleKeyDown:JX}})]},extendNodeSchema:function(e){var t;return{allowGapCursor:null!==(t=aW(sW(e,"allowGapCursor",{name:e.name,options:e.options,storage:e.storage})))&&void 0!==t?t:null}}}),tQ=pU.create({name:"hardBreak",addOptions:function(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML:function(){return[{tag:"br"}]},renderHTML:function(e){var t=e.HTMLAttributes;return["br",nU(this.options.HTMLAttributes,t)]},renderText:function(){return"\n"},addCommands:function(){var e=this;return{setHardBreak:function(){return function(t){var n=t.commands,r=t.chain,o=t.state,i=t.editor;return n.first([function(){return n.exitCode()},function(){return n.command((function(){var t=o.selection,n=o.storedMarks;if(t.$from.parent.type.spec.isolating)return!1;var a=e.options.keepMarks,s=i.extensionManager.splittableMarks,l=n||t.$to.parentOffset&&t.$from.marks();return r().insertContent({type:e.name}).command((function(e){var t=e.tr;if(e.dispatch&&l&&a){var n=l.filter((function(e){return s.includes(e.type.name)}));t.ensureMarks(n)}return!0})).run()}))}])}}}},addKeyboardShortcuts:function(){var e=this;return{"Mod-Enter":function(){return e.editor.commands.setHardBreak()},"Shift-Enter":function(){return e.editor.commands.setHardBreak()}}}}),nQ=pU.create({name:"heading",addOptions:function(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes:function(){return{level:{default:1,rendered:!1}}},parseHTML:function(){return this.options.levels.map((function(e){return{tag:"h".concat(e),attrs:{level:e}}}))},renderHTML:function(e){var t=e.node,n=e.HTMLAttributes,r=this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0];return["h".concat(r),nU(this.options.HTMLAttributes,n),0]},addCommands:function(){var e=this;return{setHeading:function(t){return function(n){var r=n.commands;return!!e.options.levels.includes(t.level)&&r.setNode(e.name,t)}},toggleHeading:function(t){return function(n){var r=n.commands;return!!e.options.levels.includes(t.level)&&r.toggleNode(e.name,"paragraph",t)}}}},addKeyboardShortcuts:function(){var e=this;return this.options.levels.reduce((function(n,r){return(0,l.Z)((0,l.Z)({},n),(0,t.Z)({},"Mod-Alt-".concat(r),(function(){return e.editor.commands.toggleHeading({level:r})})))}),{})},addInputRules:function(){var e=this;return this.options.levels.map((function(t){return gU({find:new RegExp("^(#{1,".concat(t,"})\\s$")),type:e.type,getAttributes:{level:t}})}))}}),rQ=200,oQ=function(){};oQ.prototype.append=function(e){return e.length?(e=oQ.from(e),!this.length&&e||e.length<rQ&&this.leafAppend(e)||this.length<rQ&&e.leafPrepend(this)||this.appendInner(e)):this},oQ.prototype.prepend=function(e){return e.length?oQ.from(e).append(this):this},oQ.prototype.appendInner=function(e){return new aQ(this,e)},oQ.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t?oQ.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},oQ.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},oQ.prototype.forEach=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},oQ.prototype.map=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length);var r=[];return this.forEach((function(t,n){return r.push(e(t,n))}),t,n),r},oQ.from=function(e){return e instanceof oQ?e:e&&e.length?new iQ(e):oQ.empty};var iQ=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return 0==e&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,r){for(var o=t;o<n;o++)if(!1===e(this.values[o],r+o))return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){for(var o=t-1;o>=n;o--)if(!1===e(this.values[o],r+o))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=rQ)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=rQ)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(oQ);oQ.empty=new iQ([]);var aQ=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,r){var o=this.left.length;return!(t<o&&!1===this.left.forEachInner(e,t,Math.min(n,o),r))&&(!(n>o&&!1===this.right.forEachInner(e,Math.max(t-o,0),Math.min(this.length,n)-o,r+o))&&void 0)},t.prototype.forEachInvertedInner=function(e,t,n,r){var o=this.left.length;return!(t>o&&!1===this.right.forEachInvertedInner(e,t-o,Math.max(n,o)-o,r+o))&&(!(n<o&&!1===this.left.forEachInvertedInner(e,Math.min(t,o),n,r))&&void 0)},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(oQ),sQ=oQ,lQ=function(e,t){this.items=e,this.eventCount=t};lQ.prototype.popEvent=function(e,t){var n=this;if(0==this.eventCount)return null;for(var r,o,i=this.items.length;;i--){if(this.items.get(i-1).selection){--i;break}}t&&(r=this.remapping(i,this.items.length),o=r.maps.length);var a,s,l=e.tr,c=[],u=[];return this.items.forEach((function(e,t){if(!e.step)return r||(r=n.remapping(i,t+1),o=r.maps.length),o--,void u.push(e);if(r){u.push(new cQ(e.map));var d,p=e.step.map(r.slice(o));p&&l.maybeStep(p).doc&&(d=l.mapping.maps[l.mapping.maps.length-1],c.push(new cQ(d,null,null,c.length+u.length))),o--,d&&r.appendMap(d,o)}else l.maybeStep(e.step);return e.selection?(a=r?e.selection.map(r.slice(o)):e.selection,s=new lQ(n.items.slice(0,i).append(u.reverse().concat(c)),n.eventCount-1),!1):void 0}),this.items.length,0),{remaining:s,transform:l,selection:a}},lQ.prototype.addTransform=function(e,t,n,r){for(var o=[],i=this.eventCount,a=this.items,s=!r&&a.length?a.get(a.length-1):null,l=0;l<e.steps.length;l++){var c,u=e.steps[l].invert(e.docs[l]),d=new cQ(e.mapping.maps[l],u,t);(c=s&&s.merge(d))&&(d=c,l?o.pop():a=a.slice(0,a.length-1)),o.push(d),t&&(i++,t=null),r||(s=d)}var p=i-n.depth;return p>dQ&&(a=function(e,t){var n;return e.forEach((function(e,r){if(e.selection&&0==t--)return n=r,!1})),e.slice(n)}(a,p),i-=p),new lQ(a.append(o),i)},lQ.prototype.remapping=function(e,t){var n=new vL;return this.items.forEach((function(t,r){var o=null!=t.mirrorOffset&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:null;n.appendMap(t.map,o)}),e,t),n},lQ.prototype.addMaps=function(e){return 0==this.eventCount?this:new lQ(this.items.append(e.map((function(e){return new cQ(e)}))),this.eventCount)},lQ.prototype.rebased=function(e,t){if(!this.eventCount)return this;var n=[],r=Math.max(0,this.items.length-t),o=e.mapping,i=e.steps.length,a=this.eventCount;this.items.forEach((function(e){e.selection&&a--}),r);var s=t;this.items.forEach((function(t){var r=o.getMirror(--s);if(null!=r){i=Math.min(i,r);var l=o.maps[r];if(t.step){var c=e.steps[r].invert(e.docs[r]),u=t.selection&&t.selection.map(o.slice(s+1,r));u&&a++,n.push(new cQ(l,c,u))}else n.push(new cQ(l))}}),r);for(var l=[],c=t;c<i;c++)l.push(new cQ(o.maps[c]));var u=this.items.slice(0,r).append(l).append(n),d=new lQ(u,a);return d.emptyItemCount()>500&&(d=d.compress(this.items.length-n.length)),d},lQ.prototype.emptyItemCount=function(){var e=0;return this.items.forEach((function(t){t.step||e++})),e},lQ.prototype.compress=function(e){void 0===e&&(e=this.items.length);var t=this.remapping(0,e),n=t.maps.length,r=[],o=0;return this.items.forEach((function(i,a){if(a>=e)r.push(i),i.selection&&o++;else if(i.step){var s=i.step.map(t.slice(n)),l=s&&s.getMap();if(n--,l&&t.appendMap(l,n),s){var c=i.selection&&i.selection.map(t.slice(n));c&&o++;var u,d=new cQ(l.invert(),s,c),p=r.length-1;(u=r.length&&r[p].merge(d))?r[p]=u:r.push(d)}}else i.map&&n--}),this.items.length,0),new lQ(sQ.from(r.reverse()),o)},lQ.empty=new lQ(sQ.empty,0);var cQ=function(e,t,n,r){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=r};cQ.prototype.merge=function(e){if(this.step&&e.step&&!e.selection){var t=e.step.merge(this.step);if(t)return new cQ(t.getMap().invert(),t,this.selection)}};var uQ=function(e,t,n,r){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r},dQ=20;function pQ(e){var t=[];return e.forEach((function(e,n,r,o){return t.push(r,o)})),t}function fQ(e,t){if(!e)return null;for(var n=[],r=0;r<e.length;r+=2){var o=t.map(e[r],1),i=t.map(e[r+1],-1);o<=i&&n.push(o,i)}return n}function hQ(e,t,n,r){var o=gQ(t),i=yQ.get(t).spec.config,a=(r?e.undone:e.done).popEvent(t,o);if(a){var s=a.selection.resolve(a.transform.doc),l=(r?e.done:e.undone).addTransform(a.transform,t.selection.getBookmark(),i,o),c=new uQ(r?l:a.remaining,r?a.remaining:l,null,0);n(a.transform.setSelection(s).setMeta(yQ,{redo:r,historyState:c}).scrollIntoView())}}var mQ=!1,vQ=null;function gQ(e){var t=e.plugins;if(vQ!=t){mQ=!1,vQ=t;for(var n=0;n<t.length;n++)if(t[n].spec.historyPreserveItems){mQ=!0;break}}return mQ}var yQ=new bN("history"),bQ=new bN("closeHistory");function xQ(e){return e={depth:e&&e.depth||100,newGroupDelay:e&&e.newGroupDelay||500},new vN({key:yQ,state:{init:function(){return new uQ(lQ.empty,lQ.empty,null,0)},apply:function(t,n,r){return function(e,t,n,r){var o,i=n.getMeta(yQ);if(i)return i.historyState;n.getMeta(bQ)&&(e=new uQ(e.done,e.undone,null,0));var a=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(a&&a.getMeta(yQ))return a.getMeta(yQ).redo?new uQ(e.done.addTransform(n,null,r,gQ(t)),e.undone,pQ(n.mapping.maps[n.steps.length-1]),e.prevTime):new uQ(e.done,e.undone.addTransform(n,null,r,gQ(t)),null,e.prevTime);if(!1===n.getMeta("addToHistory")||a&&!1===a.getMeta("addToHistory"))return(o=n.getMeta("rebased"))?new uQ(e.done.rebased(n,o),e.undone.rebased(n,o),fQ(e.prevRanges,n.mapping),e.prevTime):new uQ(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),fQ(e.prevRanges,n.mapping),e.prevTime);var s=0==e.prevTime||!a&&(e.prevTime<(n.time||0)-r.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;var n=!1;return e.mapping.maps[0].forEach((function(e,r){for(var o=0;o<t.length;o+=2)e<=t[o+1]&&r>=t[o]&&(n=!0)})),n}(n,e.prevRanges)),l=a?fQ(e.prevRanges,n.mapping):pQ(n.mapping.maps[n.steps.length-1]);return new uQ(e.done.addTransform(n,s?t.selection.getBookmark():null,r,gQ(t)),lQ.empty,l,n.time)}(n,r,t,e)}},config:e,props:{handleDOMEvents:{beforeinput:function(e,t){var n="historyUndo"==t.inputType?wQ(e.state,e.dispatch):"historyRedo"==t.inputType&&CQ(e.state,e.dispatch);return n&&t.preventDefault(),n}}}})}function wQ(e,t){var n=yQ.getState(e);return!(!n||0==n.done.eventCount)&&(t&&hQ(n,e,t,!1),!0)}function CQ(e,t){var n=yQ.getState(e);return!(!n||0==n.undone.eventCount)&&(t&&hQ(n,e,t,!0),!0)}var jQ=lW.create({name:"history",addOptions:function(){return{depth:100,newGroupDelay:500}},addCommands:function(){return{undo:function(){return function(e){return wQ(e.state,e.dispatch)}},redo:function(){return function(e){return CQ(e.state,e.dispatch)}}}},addProseMirrorPlugins:function(){return[xQ(this.options)]},addKeyboardShortcuts:function(){var e=this;return{"Mod-z":function(){return e.editor.commands.undo()},"Mod-y":function(){return e.editor.commands.redo()},"Shift-Mod-z":function(){return e.editor.commands.redo()},"Mod-\u044f":function(){return e.editor.commands.undo()},"Shift-Mod-\u044f":function(){return e.editor.commands.redo()}}}}),SQ=pU.create({name:"horizontalRule",addOptions:function(){return{HTMLAttributes:{}}},group:"block",parseHTML:function(){return[{tag:"hr"}]},renderHTML:function(e){var t=e.HTMLAttributes;return["hr",nU(this.options.HTMLAttributes,t)]},addCommands:function(){var e=this;return{setHorizontalRule:function(){return function(t){return(0,t.chain)().insertContent({type:e.name}).command((function(e){var t,n=e.tr;if(e.dispatch){var r=n.selection.$to,o=r.end();if(r.nodeAfter)n.setSelection($L.create(n.doc,r.pos));else{var i=null===(t=r.parent.type.contentMatch.defaultType)||void 0===t?void 0:t.create();i&&(n.insert(o,i),n.setSelection($L.create(n.doc,o)))}n.scrollIntoView()}return!0})).run()}}}},addInputRules:function(){return[hU({find:/^(?:---|\u2014-|___\s|\*\*\*\s)$/,type:this.type})]}}),kQ=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,ZQ=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,OQ=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,EQ=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,DQ=fU.create({name:"italic",addOptions:function(){return{HTMLAttributes:{}}},parseHTML:function(){return[{tag:"em"},{tag:"i",getAttrs:function(e){return"normal"!==e.style.fontStyle&&null}},{style:"font-style=italic"}]},renderHTML:function(e){var t=e.HTMLAttributes;return["em",nU(this.options.HTMLAttributes,t),0]},addCommands:function(){var e=this;return{setItalic:function(){return function(t){return t.commands.setMark(e.name)}},toggleItalic:function(){return function(t){return t.commands.toggleMark(e.name)}},unsetItalic:function(){return function(t){return t.commands.unsetMark(e.name)}}}},addKeyboardShortcuts:function(){var e=this;return{"Mod-i":function(){return e.editor.commands.toggleItalic()},"Mod-I":function(){return e.editor.commands.toggleItalic()}}},addInputRules:function(){return[vU({find:kQ,type:this.type}),vU({find:OQ,type:this.type})]},addPasteRules:function(){return[bU({find:ZQ,type:this.type}),bU({find:EQ,type:this.type})]}}),PQ=pU.create({name:"listItem",addOptions:function(){return{HTMLAttributes:{}}},content:"paragraph block*",defining:!0,parseHTML:function(){return[{tag:"li"}]},renderHTML:function(e){var t=e.HTMLAttributes;return["li",nU(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts:function(){var e=this;return{Enter:function(){return e.editor.commands.splitListItem(e.name)},Tab:function(){return e.editor.commands.sinkListItem(e.name)},"Shift-Tab":function(){return e.editor.commands.liftListItem(e.name)}}}}),AQ=["start"],MQ=/^(\d+)\.\s$/,TQ=pU.create({name:"orderedList",addOptions:function(){return{itemTypeName:"listItem",HTMLAttributes:{}}},group:"block list",content:function(){return"".concat(this.options.itemTypeName,"+")},addAttributes:function(){return{start:{default:1,parseHTML:function(e){return e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1}}}},parseHTML:function(){return[{tag:"ol"}]},renderHTML:function(e){var t=e.HTMLAttributes,n=t.start,r=Nn(t,AQ);return 1===n?["ol",nU(this.options.HTMLAttributes,r),0]:["ol",nU(this.options.HTMLAttributes,t),0]},addCommands:function(){var e=this;return{toggleOrderedList:function(){return function(t){return t.commands.toggleList(e.name,e.options.itemTypeName)}}}},addKeyboardShortcuts:function(){var e=this;return{"Mod-Shift-7":function(){return e.editor.commands.toggleOrderedList()}}},addInputRules:function(){return[yU({find:MQ,type:this.type,getAttributes:function(e){return{start:+e[1]}},joinPredicate:function(e,t){return t.childCount+t.attrs.start===+e[1]}})]}}),IQ=pU.create({name:"paragraph",priority:1e3,addOptions:function(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML:function(){return[{tag:"p"}]},renderHTML:function(e){var t=e.HTMLAttributes;return["p",nU(this.options.HTMLAttributes,t),0]},addCommands:function(){var e=this;return{setParagraph:function(){return function(t){return t.commands.setNode(e.name)}}}},addKeyboardShortcuts:function(){var e=this;return{"Mod-Alt-0":function(){return e.editor.commands.setParagraph()}}}}),RQ=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/,FQ=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/g,BQ=fU.create({name:"strike",addOptions:function(){return{HTMLAttributes:{}}},parseHTML:function(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:function(e){return!!e.includes("line-through")&&{}}}]},renderHTML:function(e){var t=e.HTMLAttributes;return["s",nU(this.options.HTMLAttributes,t),0]},addCommands:function(){var e=this;return{setStrike:function(){return function(t){return t.commands.setMark(e.name)}},toggleStrike:function(){return function(t){return t.commands.toggleMark(e.name)}},unsetStrike:function(){return function(t){return t.commands.unsetMark(e.name)}}}},addKeyboardShortcuts:function(){var e=this;return{"Mod-Shift-x":function(){return e.editor.commands.toggleStrike()}}},addInputRules:function(){return[vU({find:RQ,type:this.type})]},addPasteRules:function(){return[bU({find:FQ,type:this.type})]}}),LQ=pU.create({name:"text",group:"inline"}),NQ=lW.create({name:"starterKit",addExtensions:function(){var e,t,n,r,o,i,a,s,l,c,u,d,p,f,h,m,v,g,y=[];return!1!==this.options.blockquote&&y.push(FX.configure(null===(e=this.options)||void 0===e?void 0:e.blockquote)),!1!==this.options.bold&&y.push(oY.configure(null===(t=this.options)||void 0===t?void 0:t.bold)),!1!==this.options.bulletList&&y.push(LX.configure(null===(n=this.options)||void 0===n?void 0:n.bulletList)),!1!==this.options.code&&y.push(zX.configure(null===(r=this.options)||void 0===r?void 0:r.code)),!1!==this.options.codeBlock&&y.push(VX.configure(null===(o=this.options)||void 0===o?void 0:o.codeBlock)),!1!==this.options.document&&y.push(xq.configure(null===(i=this.options)||void 0===i?void 0:i.document)),!1!==this.options.dropcursor&&y.push(GX.configure(null===(a=this.options)||void 0===a?void 0:a.dropcursor)),!1!==this.options.gapcursor&&y.push(eQ.configure(null===(s=this.options)||void 0===s?void 0:s.gapcursor)),!1!==this.options.hardBreak&&y.push(tQ.configure(null===(l=this.options)||void 0===l?void 0:l.hardBreak)),!1!==this.options.heading&&y.push(nQ.configure(null===(c=this.options)||void 0===c?void 0:c.heading)),!1!==this.options.history&&y.push(jQ.configure(null===(u=this.options)||void 0===u?void 0:u.history)),!1!==this.options.horizontalRule&&y.push(SQ.configure(null===(d=this.options)||void 0===d?void 0:d.horizontalRule)),!1!==this.options.italic&&y.push(DQ.configure(null===(p=this.options)||void 0===p?void 0:p.italic)),!1!==this.options.listItem&&y.push(PQ.configure(null===(f=this.options)||void 0===f?void 0:f.listItem)),!1!==this.options.orderedList&&y.push(TQ.configure(null===(h=this.options)||void 0===h?void 0:h.orderedList)),!1!==this.options.paragraph&&y.push(IQ.configure(null===(m=this.options)||void 0===m?void 0:m.paragraph)),!1!==this.options.strike&&y.push(BQ.configure(null===(v=this.options)||void 0===v?void 0:v.strike)),!1!==this.options.text&&y.push(LQ.configure(null===(g=this.options)||void 0===g?void 0:g.text)),y}}),_Q=function(e){if(e){var t=e.match(/^(?:https?:\/\/)?(?:www\.)?(?:(?:(?:m\.)?youtube(?:-nocookie)?\.com\/)(?:(?:watch|ytscreeningroom|)\?(?:[^?&]+&)*?vi?=|(?:vi?|e|embed)\/|user\/[^\/]+\/(?:a\/)?u\/\d+\/|(?:attribution_link|oembed)\?(?:[^?&]+&)*?(?:u|url)=[^&]+?v%3D)|youtu\.be\/)([-_A-Za-z0-9]{11})/);return t?t[1]:null}return null},zQ=pU.create({name:"iframe",group:"block",atom:!0,addOptions:function(){return{allowFullScreen:!0,HTMLAttributes:{class:"iframe-wrapper"}}},addAttributes:function(){var e=this;return{src:{default:null},frameborder:{default:0},allowFullScreen:{default:this.options.allowFullScreen,parseHTML:function(){return e.options.allowFullScreen}},title:{default:"Youtube video player"},allow:{default:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"}}},parseHTML:function(){return[{tag:"iframe"}]},renderHTML:function(e){var t=e.HTMLAttributes;return["div",this.options.HTMLAttributes,["iframe",t]]},addCommands:function(){var e=this;return{setIframe:function(t){return function(n){var r=n.tr,o=n.dispatch,i=t,a=_Q(i.src);a&&(i.src="https://www.youtube.com/embed/".concat(a));var s=r.selection,l=e.type.create(i);return o&&r.replaceRangeWith(s.from,s.to,l),!0}}}}}),HQ=zQ,WQ=function(e){var t,n=e.editor,r=(0,o.useState)(!1),i=(0,Le.Z)(r,2),a=i[0],s=i[1],l=(0,o.useState)(!1),c=(0,Le.Z)(l,2),d=c[0],p=c[1],f=(0,o.useState)(null),h=(0,Le.Z)(f,2),m=h[0],v=h[1],g=function(){(null===n||void 0===n?void 0:n.view.state.selection.empty)&&(null===n||void 0===n||n.chain().focus().extendMarkRange("link").run())};(0,o.useEffect)((function(){if(null!==n&&void 0!==n&&n.isActive("link")){var e=null===n||void 0===n?void 0:n.getAttributes("link").href;e&&""!==e?e&&""!==e&&g():(g(),a||s(!0))}else a&&s(!1)}));var y=function(){null===n||void 0===n||n.chain().focus().extendMarkRange("link").unsetLink().run(),v(null)};return n?(0,u.jsx)(OX,{className:"bubble-menu",tippyOptions:{duration:100},editor:n,children:(0,u.jsx)(ao.Z,{sx:{display:n.isActive("link")||a?"block":"none",p:1},elevation:1,children:(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",spacing:2,children:[a&&(0,u.jsx)(xd.Z,{id:"link-input",label:"",size:"small",placeholder:"Enter url",value:m,onChange:function(e){var t=e.target.value;v(t),p(""!==t)}}),a&&(0,u.jsx)(ko.Z,{variant:"text",onClick:function(){n&&(null!==m&&""!==m?(n.chain().focus().extendMarkRange("link").setLink({href:m,target:"_blank"}).run(),v(null),s(!1)):y())},disabled:!d,children:"Save"}),a&&(0,u.jsx)(ko.Z,{variant:"text",onClick:function(){if(n){s(!1);var e=n.getAttributes("link").href;""!==e&&null!==e||y()}},children:"Cancel"}),n.isActive("link")&&!a&&(0,u.jsxs)(rn.Z,{variant:"caption",component:"p",children:["Link:",(0,u.jsx)(Xn,{target:"_blank",href:n.getAttributes("link").href,rel:"noreferrer",children:null===(t=n.getAttributes("link").href)||void 0===t?void 0:t.substr(0,40)})]}),n.isActive("link")&&!a&&(0,u.jsx)(ko.Z,{variant:"text",onClick:function(){if(n){var e=n.getAttributes("link").href;v(e),s(!0),p(""!==m)}},children:"Edit Link"}),n.isActive("link")&&!a&&(0,u.jsx)(un,{orientation:"vertical",flexItem:!0}),n.isActive("link")&&!a&&(0,u.jsx)(ko.Z,{variant:"text",onClick:y,children:"Remove Link"})]})})}):null},VQ=function(e){var t=e.editorItem;return(0,u.jsx)(ko.Z,{sx:{minWidth:44,padding:"7px 5px",color:t.isActive?"#6D51F6 !important":"#384572","&:hover":{backgroundColor:"transparent",color:"#AA96F8"}},size:"small",disableElevation:!0,variant:"text","aria-label":t.label,onClick:function(){t.action()},children:(0,u.jsx)(An,{sx:{fontSize:"1.2rem"},children:t.iconName})})},UQ=n(47966),qQ=n(86239),GQ=(0,P.ZP)(qQ.ZP)((function(e){var t=e.theme;return{"& .MuiInputBase-input":{width:100,borderRadius:4,position:"relative",display:"inline",backgroundColor:t.palette.background.paper,border:"1px solid #ced4da",fontSize:14,padding:"8px 12px 8px 12px",transition:t.transitions.create(["border-color","box-shadow"]),"&:focus":{borderRadius:4,borderColor:"#80bdff",boxShadow:"0 0 0 0.2rem rgba(0,123,255,.25)"}}}})),YQ=[{label:"Roboto",value:"Roboto"},{label:"Comic Sans MS, Comic Sans",value:"Comic Sans MS, Comic Sans"},{label:"Cursive",value:"cursive"},{label:"Monospace",value:"monospace"}],KQ=function(e){var t=e.editor;return(0,u.jsx)(UQ.Z,{children:(0,u.jsx)(Od.Z,{onChange:function(e){var n=e.target;t.chain().focus().setFontFamily(n.value).run()},label:"Font Family",value:function(){var e;return(null===(e=YQ.find((function(e){return t.isActive("textStyle",{fontFamily:e.value})})))||void 0===e?void 0:e.value)||YQ[0].value}(),input:(0,u.jsx)(GQ,{}),children:YQ.map((function(e){return(0,u.jsx)(Nl.Z,{value:e.value,children:e.label},e.label)}))})})},JQ=[{label:"Paragraph",value:0},{label:"Heading",value:1},{label:"Subheading",value:2}],XQ=function(e){var t=e.editor;return(0,u.jsx)(UQ.Z,{children:(0,u.jsx)(Od.Z,{sx:{".MuiSelect-select":{border:0,padding:"0 32px 0 12px",color:"#384572"}},onChange:function(e){var n=e.target;0===n.value&&t.chain().focus().setParagraph().run();var r=n.value;t.chain().focus().toggleHeading({level:r}).run()},label:"Components",value:function(){var e;return(null===(e=JQ.find((function(e){return t.isActive("heading",{level:e.value})})))||void 0===e?void 0:e.value)||(t.isActive("paragraph")?0:void 0)||JQ[0].value}(),input:(0,u.jsx)(GQ,{}),children:JQ.map((function(e){return(0,u.jsx)(Nl.Z,{value:e.value,children:e.label},e.label)}))})})},QQ=function(e){var t=e.editor,n=e.uniqueKey;return(0,u.jsxs)("div",{style:{display:"inline"},children:[(0,u.jsx)("label",{htmlFor:n,children:(0,u.jsx)(ko.Z,{sx:{minWidth:44,color:"#384572","&:hover":{backgroundColor:"transparent",color:"#AA96F8"}},component:"span",size:"small",disableElevation:!0,variant:"text","aria-label":"Image",children:(0,u.jsx)(An,{sx:{fontSize:"1.2rem"},children:"insert_photo"})})}),(0,u.jsx)("input",{hidden:!0,id:n,type:"file",accept:"image/*",onChange:function(){var e=ds(hs().mark((function e(n){var r,o,i,a;return hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=n.target,i=null===o||void 0===o||null===(r=o.files)||void 0===r?void 0:r[0]){e.next=4;break}return e.abrupt("return");case 4:return e.next=6,new Promise((function(e,t){var n=new FileReader;n.readAsDataURL(i),n.onload=function(){return e(n.result)},n.onerror=t}));case 6:a=e.sent,t.chain().focus().setImage({src:a}).run();case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})]})},$Q=["className","id"],e$=(0,P.ZP)(rn.Z,{name:"MuiDialogTitle",slot:"Root",overridesResolver:function(e,t){return t.root}})({padding:"16px 24px",flex:"0 0 auto"}),t$=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiDialogTitle"}),i=n.className,a=n.id,s=(0,b.Z)(n,$Q),l=n,c=function(e){var t=e.classes;return(0,M.Z)({root:["root"]},bj,t)}(l),d=o.useContext(Ej).titleId,p=void 0===d?a:d;return(0,u.jsx)(e$,(0,r.Z)({component:"h2",className:(0,y.default)(c.root,i),ownerState:l,ref:t,variant:"h6",id:null!=a?a:p},s))})),n$=t$;function r$(e){return(0,F.Z)("MuiDialogContentText",e)}(0,R.Z)("MuiDialogContentText",["root"]);var o$,i$=["children","className"],a$=(0,P.ZP)(rn.Z,{shouldForwardProp:function(e){return(0,P.FO)(e)||"classes"===e},name:"MuiDialogContentText",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),s$=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiDialogContentText"}),o=n.className,i=(0,b.Z)(n,i$),a=function(e){var t=e.classes,n=(0,M.Z)({root:["root"]},r$,t);return(0,r.Z)({},t,n)}(i);return(0,u.jsx)(a$,(0,r.Z)({component:"p",variant:"body1",color:"text.secondary",ref:t,ownerState:i,className:(0,y.default)(a.root,o)},n,{classes:a}))})),l$=s$,c$=n(17291),u$=function(e){var t=e.editor,n=(0,o.useState)(!1),r=(0,Le.Z)(n,2),i=r[0],a=r[1],s=(0,o.useState)(void 0),l=(0,Le.Z)(s,2),c=l[0],d=l[1],p=function(){a(!1)};return(0,u.jsxs)("div",{style:{display:"inline"},children:[(0,u.jsx)(ko.Z,{sx:{minWidth:44,color:"#384572","&:hover":{backgroundColor:"transparent",color:"#AA96F8"}},onClick:function(){a(!0)},component:"span",size:"small",disableElevation:!0,variant:"text",color:"secondary","aria-label":"Embed",children:(0,u.jsx)(c$.Z,{style:{fontSize:"1.4rem"}})}),(0,u.jsxs)(Fj,{open:i,onClose:p,fullWidth:!0,children:[(0,u.jsx)(n$,{children:"Insert Video"}),(0,u.jsxs)(Sj,{children:[(0,u.jsx)(l$,{children:"Please provide a valid Youtube URL"}),(0,u.jsx)(xd.Z,{autoFocus:!0,error:""===c,id:"youtube-url",label:"Youtube URL",type:"text",fullWidth:!0,variant:"outlined",sx:{mt:"1em"},onChange:function(e){d(e.target.value)}})]}),(0,u.jsxs)(Yy,{children:[(0,u.jsx)(ko.Z,{onClick:p,children:"Cancel"}),(0,u.jsx)(ko.Z,{onClick:function(){c?(t.chain().focus().setIframe({src:c}).run(),a(!1)):d("")},children:"Insert"})]})]})]})},d$=n(49838),p$=function(e){var t=e.editor,n=10,r=(0,o.useState)(!1),i=(0,Le.Z)(r,2),a=i[0],s=i[1],l=(0,o.useState)(1),c=(0,Le.Z)(l,2),d=c[0],p=c[1],f=(0,o.useState)(1),h=(0,Le.Z)(f,2),m=h[0],v=h[1],g=function(){s(!1)},y=function(e,t){t(e>n?n:e<1?1:e)};return(0,u.jsxs)("div",{style:{display:"inline"},children:[(0,u.jsx)(ko.Z,{onClick:function(){s(!0)},component:"span",size:"small",disableElevation:!0,variant:"text","aria-label":"Embed",sx:{minWidth:44,color:"#384572","&:hover":{backgroundColor:"transparent",color:"#AA96F8"}},children:(0,u.jsx)(d$.Z,{style:{fontSize:"1.2rem"}})}),(0,u.jsxs)(Fj,{open:a,onClose:g,fullWidth:!0,children:[(0,u.jsx)(n$,{children:"Insert table"}),(0,u.jsxs)(Sj,{children:[(0,u.jsx)(l$,{children:"Please provide a number of columns and rows (maximum of 10)."}),(0,u.jsxs)(nn.Z,{direction:"row",spacing:1,sx:{mt:"1em"},children:[(0,u.jsx)(xd.Z,{error:!d||d<1||d>n,id:"no-rows",label:"Rows",type:"number",fullWidth:!0,variant:"outlined",onChange:function(e){var t=Number(e.target.value);"number"===typeof t&&y(t,p)},InputProps:{inputProps:{min:1,max:n}}}),(0,u.jsx)(xd.Z,{error:!m||m<1||d>n,id:"no-columns",label:"Columns",type:"number",fullWidth:!0,variant:"outlined",onChange:function(e){var t=Number(e.target.value);"number"===typeof t&&y(t,v)},InputProps:{inputProps:{min:1,max:n}}})]})]}),(0,u.jsxs)(Yy,{children:[(0,u.jsx)(ko.Z,{onClick:g,children:"Cancel"}),(0,u.jsx)(ko.Z,{onClick:function(){console.log("handle insert"),d>0&&m>0&&t.chain().focus().insertTable({rows:d,cols:m,withHeaderRow:!0}).run()},children:"Insert"})]})]})]})};!function(e){e.Bold="Bold",e.Italic="Italic",e.Strike="Strike",e.Code="Code",e.Paragraph="Paragraph",e.BulletList="Bullet List",e.OrderedList="Ordered List",e.CodeBlock="Code Block",e.BlockQuote="Block Quote",e.HorizonalRule="Horizontal Rule",e.HardBreak="Hard Break",e.Undo="Undo",e.Redo="Redo",e.Image="Image",e.Highlight="Highlight",e.Underline="Underline",e.TextAlignLeft="Text Align Left",e.TextAlignCenter="Text Align Center",e.TextAlignRight="Text Align Right",e.TextAlignJusitfy="Text Align Justify",e.ClearStyle="Clear Style",e.FontFamily="Font Family",e.TextStyle="Text Style",e.DividerLine="Divider",e.Link="Link",e.Embed="Embed",e.Table="Table",e.Empty="Empty"}(o$||(o$={}));var f$=function(){function e(t){(0,Ph.Z)(this,e),this.editor=void 0,this.action=void 0,this.editor=t,this.action=o$.Bold}return(0,Dh.Z)(e,[{key:"setAction",value:function(e){this.action=e}},{key:"getLabel",value:function(){return this.action===o$.DividerLine?Math.random().toString(20).substr(2,6):this.action}},{key:"getIconName",value:function(){switch(this.action){case o$.Bold:return"format_bold";case o$.Italic:return"format_italic";case o$.Strike:return"format_strikethrough";case o$.Code:return"code";case o$.Paragraph:return"text_snippet";case o$.BulletList:return"format_list_bulleted";case o$.OrderedList:return"format_list_numbered";case o$.CodeBlock:return"code";case o$.BlockQuote:return"format_quote";case o$.HorizonalRule:return"Horizontal rule";case o$.HardBreak:return"Hard Break";case o$.Undo:return"undo";case o$.Redo:return"redo";case o$.Highlight:return"format_paint";case o$.Underline:return"format_underlined";case o$.TextAlignLeft:return"format_align_left";case o$.TextAlignCenter:return"format_align_center";case o$.TextAlignRight:return"format_align_right";case o$.TextAlignJusitfy:return"format_align_justify";case o$.Link:return"insert_link";default:return""}}},{key:"executeAction",value:function(e,t){switch(e){case o$.Bold:this.editor.chain().focus().toggleBold().run();break;case o$.Italic:this.editor.chain().focus().toggleItalic().run();break;case o$.Strike:this.editor.chain().focus().toggleStrike().run();break;case o$.Code:this.editor.chain().focus().toggleCode().run();break;case o$.Paragraph:this.editor.chain().focus().setParagraph().run();break;case o$.BulletList:this.editor.chain().focus().toggleBulletList().run();break;case o$.OrderedList:this.editor.chain().focus().toggleOrderedList().run();break;case o$.CodeBlock:this.editor.chain().focus().toggleCodeBlock().run();break;case o$.BlockQuote:this.editor.chain().focus().toggleBlockquote().run();break;case o$.HorizonalRule:this.editor.chain().focus().setHorizontalRule().run();break;case o$.HardBreak:this.editor.chain().focus().setHardBreak().run();break;case o$.Undo:this.editor.chain().focus().undo().run();break;case o$.Redo:this.editor.chain().focus().redo().run();break;case o$.Highlight:this.editor.chain().focus().toggleHighlight().run();break;case o$.Underline:this.editor.chain().focus().toggleUnderline().run();break;case o$.TextAlignLeft:this.editor.chain().focus().setTextAlign("left").run();break;case o$.TextAlignCenter:this.editor.chain().focus().setTextAlign("center").run();break;case o$.TextAlignRight:this.editor.chain().focus().setTextAlign("right").run();break;case o$.TextAlignJusitfy:this.editor.chain().focus().setTextAlign("justify").run();break;case o$.Link:this.editor.chain().focus().extendMarkRange("link").setLink({href:"",target:"_blank"}).run()}}},{key:"isActiveCheck",value:function(){var e="";switch(this.action){case o$.Bold:e="bold";break;case o$.Italic:e="italic";break;case o$.Strike:e="strike";break;case o$.Code:e="code";break;case o$.Paragraph:e="paragraph";break;case o$.BulletList:e="bulletList";break;case o$.OrderedList:e="orderedList";break;case o$.CodeBlock:e="codeBlock";break;case o$.BlockQuote:e="blockquote";break;case o$.Highlight:e="highlight";break;case o$.Underline:e="underline";break;case o$.Link:e="link";break;case o$.TextAlignLeft:return this.editor.isActive({textAlign:"left"});case o$.TextAlignCenter:return this.editor.isActive({textAlign:"center"});case o$.TextAlignRight:return this.editor.isActive({textAlign:"right"});case o$.TextAlignJusitfy:return this.editor.isActive({textAlign:"justify"});default:return!1}return this.editor.isActive(e)}},{key:"getEditorItem",value:function(){return{label:this.getLabel(),iconName:this.getIconName(),isActive:this.isActiveCheck(),action:this.executeAction.bind(this,this.action)}}},{key:"getMenuItemUI",value:function(e,t){switch(this.action){case o$.DividerLine:return(0,u.jsx)(un,{flexItem:!0,variant:"fullWidth",orientation:"vertical",sx:{display:"inline",borderBottomWidth:6,borderTopWidth:6,borderColor:"#E5E8FF"}},this.getEditorItem().label);case o$.Image:return(0,u.jsx)(QQ,{editor:e,uniqueKey:t});case o$.FontFamily:return(0,u.jsx)(KQ,{editor:e});case o$.TextStyle:return(0,u.jsx)(XQ,{editor:e});case o$.Embed:return(0,u.jsx)(u$,{editor:e});case o$.Table:return(0,u.jsx)(p$,{editor:e});default:return(0,u.jsx)(VQ,{editorItem:this.getEditorItem()})}}}]),e}(),h$=function(e){var t=e.editor,n=e.items,r=e.uniqueKey;if(!t)return null;var o=new f$(t);return(0,u.jsx)(ao.Z,{elevation:0,sx:{position:"relative",display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-start",alignItems:"center",alignContent:"flex-start"},children:n.map((function(e){return o.setAction(e),(0,u.jsx)(da.Z,{sx:{m:0},children:o.getMenuItemUI(t,r)},o.getEditorItem().label)}))})},m$=function(e){var t=e.uniqueKey,n=e.hasError,r=e.contentHeight,i=e.isEditable,a=e.items,s=e.content,c=e.onContentChange,d=e.setReadingTime,p=e.onValidationChange,f=e.onUpdateContent,h=e.onBlur,m=e.textColorWhenNonEditable,v=e.notEditableFontSize,g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,o.useState)(null),r=(0,Le.Z)(n,2),i=r[0],a=r[1],s=DX();return(0,o.useEffect)((function(){var t=new EX(e);return a(t),t.on("transaction",(function(){requestAnimationFrame((function(){requestAnimationFrame((function(){s()}))}))})),function(){t.destroy()}}),t),i}({onBlur:function(e){h&&h(),c&&c(e.editor.getHTML())},onUpdate:function(e){if(f){var t=e.editor.isEmpty?"":e.editor.getHTML();f(t)}},extensions:[xq,NQ.configure({document:!1}),iY.configure({placeholder:function(e){return"heading"===e.node.type.name?"Write the heading...":"Type"}}),$G.configure({allowBase64:!0,inline:!0,HTMLAttributes:{class:"editor-image-class"}}),aY.configure({types:["heading","paragraph"]}),kq,sY,wq,Cq.configure({types:["Gallix-Regular"]}),HQ,xX.configure({resizable:!0}),oY.configure({HTMLAttributes:{class:"editor-bold-text-class"}}),wX,jX,CX,XG.configure({openOnClick:!i}),bq.configure({element:document.querySelector(".bubble-menu"),shouldShow:function(e){return GV(e.state,"link")}})],editable:i,content:s||{}});if(!i){var y,b=null!==(y=null===g||void 0===g?void 0:g.state.doc.textContent)&&void 0!==y?y:"",x=(0,rs.$W)(b);return d&&d(x),(0,u.jsx)(tn,{sx:{".ProseMirror ":{padding:0,minHeight:"unset"},".ProseMirror p":(0,l.Z)({color:m||tr.IV[600]},v?{fontSize:v}:{})},children:(0,u.jsx)(IX,{editor:g})})}(0,o.useEffect)((function(){p&&p(!!s&&s.length>0)}),[s]);var w=!0;w=!!a&&a.length>0;var C=(0,o.useState)(!0),j=(0,Le.Z)(C,2),S=j[0],k=j[1];return(0,o.useEffect)((function(){S&&void 0!==s&&(null===g||void 0===g||g.commands.setContent(s||{}),k(!1))}),[s]),w?(0,u.jsxs)(ao.Z,{variant:"outlined",elevation:0,sx:{border:n?"1px solid ".concat(tr.Us[100]):"1px solid ".concat(tr.dx[100]," "),backgroundColor:n?"#FFF2F4":"transparent",".MuiPaper-rounded":{backgroundColor:n?"#FFF2F4":"white"}},children:[(0,u.jsx)(h$,{editor:g,items:a,uniqueKey:t}),(0,u.jsx)(un,{sx:{borderColor:tr.dx[100]}}),(0,u.jsxs)(tn,{sx:{height:null!==r&&void 0!==r?r:250,overflow:"scroll"},children:[(0,u.jsx)(WQ,{editor:g}),(0,u.jsx)(IX,{editor:g})]})]}):(0,u.jsx)(rn.Z,{color:"primary",variant:"h4",component:"h4",children:"You need to provide editor actions..."})};var v$,g$=function(e){var t,n,r=e.name,i=e.label,a=e.required,s=e.isEditable,c=void 0===s||s,d=e.labelAdornment,p=e.items,f=e.sx,h=Xc(),m=h.control,v=h.getFieldState,g=h.trigger,y=(h.getValues,(0,o.useState)(!1)),b=(0,Le.Z)(y,2),x=b[0],w=b[1],C=v(r),j=!!C.error,S=null!==(t=C.error)&&void 0!==t&&null!==(n=t.message)&&void 0!==n&&n.length?"This field is required":"",k=function(){var e=ds(hs().mark((function e(){return hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return x||w(!0),e.next=3,g(r);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,u.jsxs)(tn,{sx:f,children:[i&&(0,u.jsx)(Cd,{text:i,adornment:d,required:a}),(0,u.jsx)(du,{name:r,control:m,rules:a?{required:"This field is required"}:{required:!1},render:function(e){var t=e.field;return(0,u.jsx)(m$,(0,l.Z)((0,l.Z)({},t),{},{items:p,onBlur:k,content:t.value,isEditable:c,hasError:j,uniqueKey:r,onUpdateContent:function(e){return t.onChange(e)}}))}}),j&&(0,u.jsx)(rn.Z,{color:"secondaryPink.500",variant:"body4",sx:{display:"block",margin:"12px 0"},children:S})]})},y$=["title","titleId"];function b$(){return b$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b$.apply(this,arguments)}function x$(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function w$(e,t){var n=e.title,r=e.titleId,i=x$(e,y$);return o.createElement("svg",b$({width:31,height:34,viewBox:"0 0 31 34",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,v$||(v$=o.createElement("path",{d:"M18.9998 10.333H26.3332L17.3332 1.33301V8.66634C17.3332 9.66634 17.9998 10.333 18.9998 10.333ZM30.1665 25.833L26.8332 22.4997C26.1665 21.833 25.1665 21.833 24.4998 22.4997L21.1665 25.833C20.4998 26.4997 20.4998 27.4997 21.1665 28.1663C21.8332 28.833 22.8332 28.833 23.4998 28.1663L23.9998 27.6663V31.9997C23.9998 32.9997 24.6665 33.6663 25.6665 33.6663C26.6665 33.6663 27.3332 32.9997 27.3332 31.9997V27.6663L27.8332 28.1663C28.4998 28.833 29.4998 28.833 30.1665 28.1663C30.8332 27.4997 30.8332 26.4997 30.1665 25.833ZM21.4998 30.9997C20.6665 30.833 19.9998 30.4997 19.3332 29.833C17.6665 28.1663 17.6665 25.4997 19.3332 23.9997L22.6665 20.6663C22.9998 20.333 23.4998 19.9997 23.9998 19.833C24.9998 19.4997 26.1665 19.4997 27.1665 19.833V13.6663H18.8332C15.9998 13.6663 13.8332 11.4997 13.8332 8.66634V0.333008H5.6665C2.83317 0.333008 0.666504 2.49967 0.666504 5.33301V28.6663C0.666504 31.4997 2.83317 33.6663 5.6665 33.6663H21.8332C21.6665 33.1663 21.4998 32.4997 21.4998 31.9997V30.9997ZM8.99984 10.333H10.6665C11.6665 10.333 12.3332 10.9997 12.3332 11.9997C12.3332 12.9997 11.6665 13.6663 10.6665 13.6663H8.99984C7.99984 13.6663 7.33317 12.9997 7.33317 11.9997C7.33317 10.9997 7.99984 10.333 8.99984 10.333ZM12.3332 26.9997H8.99984C7.99984 26.9997 7.33317 26.333 7.33317 25.333C7.33317 24.333 7.99984 23.6663 8.99984 23.6663H12.3332C13.3332 23.6663 13.9998 24.333 13.9998 25.333C13.9998 26.333 13.3332 26.9997 12.3332 26.9997ZM8.99984 20.333C7.99984 20.333 7.33317 19.6663 7.33317 18.6663C7.33317 17.6663 7.99984 16.9997 8.99984 16.9997H17.3332C18.3332 16.9997 18.9998 17.6663 18.9998 18.6663C18.9998 19.6663 18.3332 20.333 17.3332 20.333H8.99984Z",fill:"current"})))}var C$,j$,S$=o.forwardRef(w$),k$=(n.p,{opacity:0,display:"flex",justifyContent:"center",transition:"all 0.15s ease",position:"absolute",margin:"0 auto",bgcolor:"rgba(255, 255, 255, 0.5)",borderRadius:"3px",cursor:"pointer",left:0,right:0,bottom:"16px",width:"25%",py:"3px",px:"5px"}),Z$=function(e){var t=e.acceptedFiles,n=e.getRootProps,r=e.getInputProps,i=e.renderCustomDroppableArea,a=e.renderCustomDroppableAreaWidth,s=e.renderCustomDroppableAreaHeight,c=(0,o.useState)(null),d=(0,Le.Z)(c,2),p=d[0],f=d[1];return(0,o.useEffect)((function(){ds(hs().mark((function e(){var n;return hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===t){e.next=5;break}return e.next=3,(0,rs.y3)(t[0]);case 3:(n=e.sent)&&f(n);case 5:case"end":return e.stop()}}),e)})))()}),[t]),(0,u.jsx)(u.Fragment,{children:null!==p?(0,u.jsxs)(tn,{sx:{position:"relative",borderRadius:"50%",height:"100%","&:hover #child":{opacity:"1 !important"}},children:[(0,u.jsx)(Ca,{src:p,sx:{width:a,height:s}}),(0,u.jsxs)(tn,(0,l.Z)((0,l.Z)({},n()),{},{id:"child",sx:(0,l.Z)({},k$),children:[(0,u.jsx)("input",(0,l.Z)({},r())),(0,u.jsx)(S$,{style:{width:18,height:18},fill:tr.IV[600]})]}))]}):null===i||void 0===i?void 0:i({getRootProps:n,getInputProps:r})})},O$={p:3,flexDirection:"column",textAlign:"center",color:"#5C5F5C",border:"1px dashed",borderColor:"primaryDark.300",display:"flex",justifyContent:"center",alignItems:"center","&:hover":{backgroundColor:"secondaryBlue.50",border:"1px solid",borderColor:"secondaryBlue.200"}},E$=function(e){var t=e.name,n=e.required,r=e.maxFileSize,i=void 0===r?1e7:r,a=e.onUpload,s=e.dropzoneProps,c=e.sx,d=e.renderCustomDroppableArea,p=e.renderCustomDroppableAreaWidth,f=e.renderCustomDroppableAreaHeight,h=e.dropzoneText,m=e.dropzoneHighlightText,v=Xc().control,g=(0,o.useState)(null),y=(0,Le.Z)(g,2),b=y[0],x=y[1];return(0,u.jsx)(du,{control:v,name:t,rules:n?{required:"This field is required"}:{required:!1},render:function(e){var t=e.field;return(0,u.jsx)(Jf,(0,l.Z)((0,l.Z)({onDrop:a&&function(e){a(e,t.onChange),d&&x(e)},maxSize:i},s),{},{children:function(e){var t=e.getRootProps,n=e.getInputProps;return d?(0,u.jsx)(Z$,{acceptedFiles:b,getRootProps:t,getInputProps:n,renderCustomDroppableArea:d,renderCustomDroppableAreaWidth:p,renderCustomDroppableAreaHeight:f}):(0,u.jsxs)(NZ,(0,l.Z)((0,l.Z)({},t()),{},{variant:"outlined",component:"div",sx:(0,l.Z)((0,l.Z)({},O$),c),children:[(0,u.jsx)("input",(0,l.Z)({},n())),(0,u.jsx)(S$,{style:{marginRight:"1em",marginBottom:"1em"},fill:tr.IV[400]}),(0,u.jsxs)(rn.Z,{color:"primaryDark.400",variant:"body3",lineHeight:"1.5rem",children:[h||"Drag & Drop your file here or ",(0,u.jsx)(rn.Z,{color:"primaryLight.500",component:"span",variant:"body3",children:m||"upload here"}),(0,u.jsx)("br",{}),"Max. file size ",(0,rs.td)(i)]})]}))}}))}})},D$=(o$.TextStyle,o$.DividerLine,o$.Bold,o$.Italic,o$.Strike,o$.Underline,o$.Highlight,o$.BlockQuote,o$.DividerLine,o$.BulletList,o$.OrderedList,o$.DividerLine,o$.TextAlignLeft,o$.TextAlignCenter,o$.TextAlignRight,o$.TextAlignJusitfy,o$.DividerLine,o$.CodeBlock,o$.Link,o$.Image,o$.Embed,o$.Table,o$.DividerLine,o$.Undo,o$.Redo,[o$.TextStyle,o$.DividerLine,o$.Bold,o$.Italic,o$.Strike,o$.Underline,o$.Highlight,o$.BlockQuote,o$.DividerLine,o$.BulletList,o$.OrderedList,o$.DividerLine,o$.TextAlignLeft,o$.TextAlignCenter,o$.TextAlignRight]),P$=[o$.Bold,o$.Italic,o$.BulletList,o$.OrderedList,o$.DividerLine],A$=[o$.Bold,o$.Italic,o$.DividerLine,o$.Link,o$.Image,o$.DividerLine,o$.BulletList,o$.OrderedList],M$=[o$.TextStyle,o$.DividerLine,o$.Bold,o$.Italic,o$.BlockQuote,o$.DividerLine,o$.Image,o$.Link,o$.DividerLine,o$.BulletList,o$.OrderedList,o$.TextAlignLeft,o$.TextAlignCenter,o$.TextAlignRight,o$.TextAlignJusitfy],T$=n(84995),I$=n(67364),R$=function(e){var t=e.error,n=e.children,r=e.sx;return(0,u.jsx)(I$.Z,{sx:(0,l.Z)({m:0,mt:.5,color:"".concat(t?tr.Us[500]:tr.IV[500]," !important")},r),children:n})},F$={".MuiInputBase-root":{overflow:"hidden",p:"0 !important",fontSize:"14px",border:"1px solid",borderColor:"primaryDark.250",color:tr.IV[800],height:47,"&.Mui-focused":{borderColor:"primaryLight.500"},"&.Mui-error":{borderColor:"secondaryPink.700",backgroundColor:"secondaryPink.100"},"&:not(.Mui-disabled)":{"&:not(.Mui-focused,.Mui-error)":{"&:hover":{borderColor:"primaryLight.200"}}},".MuiInputAdornment-root":{mr:"10px","& .MuiIconButton-root":{padding:"4px",ml:"2px"}}},fieldset:{border:"0 !important"},input:{padding:"0.844rem 0.75rem !important"},"& input:-webkit-autofill":{WebkitBoxShadow:"0 0 0 50px ".concat(tr.E4[50]," inset !important")},"& ::placeholder":{fontSize:"14px !important",letterSpacing:"0.03rem",lineHeight:"1.3125rem",fontWeight:400,opacity:"1 !important",color:"".concat(tr.IV[400]," !important")},"& .MuiPaper-root":{maxHeight:225,boxShadow:"0px 5px 5px 0px rgba(121, 130, 155, 0.10), 0px 3px 14px 0px rgba(121, 130, 155, 0.12), 0px 8px 10px 0px rgba(121, 130, 155, 0.08)",".MuiMenuItem-root,.MuiAutocomplete-option,.MuiAutocomplete-noOptions":{height:37,display:"flex",justifyContent:"space-between",fontSize:"14px",lineHeight:0,color:"primaryDark.500",fontFamily:"Gellix-Regular",padding:"8px 16px","&:hover":{bgcolor:"primaryLight.50"},"&:not(.Mui-selected)":{"& .MenuItemCheckedIcon":{display:"none"}},"&.Mui-selected":{backgroundColor:"primaryLight.50",color:"primaryDark.600","&:hover":{bgcolor:"primaryLight.50"},"& .MenuItemCheckedIcon":{display:"block"},"& .MenuItemUncheckedIcon":{display:"none"}}},"& .MuiAutocomplete-listbox":{maxHeight:225,"& .MuiAutocomplete-option[aria-selected='true']":{"& .MenuItemCheckedIcon":{display:"block"},"& .MenuItemUncheckedIcon":{display:"none"}},"& .MuiAutocomplete-option[aria-selected='false']":{"& .MenuItemCheckedIcon":{display:"true"}}},"& .MuiAutocomplete-noOptions":{padding:"24px 16px"}},".UserAgreementError":{borderColor:"secondaryPink.700",bgcolor:"secondaryPink.100",a:{color:"".concat(tr.Us[700]," !important")}}},B$=(0,o.createContext)(null),L$=function(){var e=(0,o.useContext)(B$);if(!e)throw new Error("Custom input compound components (CustomInput.*) cannot be rendered outside the CustomInput component");return e},N$=B$,_$=n(97308),z$=function(){var e=L$(),t=e.field,n=e.hasError,r=e.startAdornment,o=e.adornment,i=e.placeholder,a=e.type,s=e.disabled,c=e.onBlur,d=e.onKeyUp,p=e.multiline,f=e.rows;return(0,u.jsx)(_$.Z,(0,l.Z)((0,l.Z)({},t),{},{onBlur:c,placeholder:i,disabled:s,type:a,multiline:p,rows:f,startAdornment:(null===r||void 0===r?void 0:r.text)&&(0,u.jsx)(gy,{disableTypography:!0,sx:(0,l.Z)({},r.sx),position:"start",children:r.text}),endAdornment:n||null!==o&&void 0!==o&&o.icon?(0,u.jsxs)(gy,{position:"end",children:[n&&(0,u.jsx)(wd.Z,{sx:{color:"secondaryPink.500"}}),(null===o||void 0===o?void 0:o.icon)&&(0,u.jsx)(io.Z,{onClick:null===o||void 0===o?void 0:o.onClick,children:null===o||void 0===o?void 0:o.icon})]}):null,onKeyUp:d}))},H$=n(12190),W$=n(10062),V$=function(){var e=L$(),t=e.field,n=e.placeholder,r=e.useFormContext,o=e.choices,i=e.multiple,a=e.name,s=e.withChips,c=e.disabled,d=r(),p=d.getValues,f=d.setValue,h=d.trigger,m=p(a);return(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(Od.Z,(0,l.Z)((0,l.Z)({},t),{},{displayEmpty:!0,disabled:c,multiple:i,IconComponent:zl.Z,MenuProps:{sx:{maxHeight:225,".MuiMenuItem-root,.MuiAutocomplete-option,.MuiAutocomplete-noOptions":{height:37,display:"flex",justifyContent:"space-between",fontSize:"14px",lineHeight:0,color:"primaryDark.500",fontFamily:"Gellix-Regular",padding:"8px 16px","&:hover":{bgcolor:"primaryLight.50"},"&:not(.Mui-selected)":{"& .MenuItemCheckedIcon":{display:"none"}},"&.Mui-selected":{backgroundColor:"primaryLight.50",color:"primaryDark.600","&:hover":{bgcolor:"primaryLight.50"},"& .MenuItemCheckedIcon":{display:"block"},"& .MenuItemUncheckedIcon":{display:"none"}}}},disableScrollLock:!0,keepMounted:!0},renderValue:function(e){return!e&&n||(null===e||void 0===e||!e.length)&&n||e&&n&&s&&i?(0,u.jsx)(rn.Z,{className:"placeholder-select",fontSize:"14px",sx:{color:tr.IV[400]},children:n}):o instanceof Map?i?e.map((function(e){return o.get(e)})).join(", "):o.get(e):void 0},children:o instanceof Map?Array.from(o,(function(e){var t=(0,Le.Z)(e,2),n=t[0],r=t[1];return(0,u.jsxs)(Nl.Z,{value:n,sx:{justifyContent:"flex-start !important",alignItems:"center"},children:[i&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(H$.Z,{className:"MenuItemCheckedIcon",sx:{color:"primaryLight.500",width:22,height:22,mr:.85}}),(0,u.jsx)(W$.Z,{className:"MenuItemUncheckedIcon",sx:{color:"primaryDark.300",width:22,height:22,mr:.85}})]}),r]},n)})):null})),s&&null!==m&&void 0!==m&&m.length?(0,u.jsx)(nn.Z,{direction:"row",sx:{flexWrap:"wrap",gap:"10px",mt:"16px"},children:m.map((function(e){var t=o instanceof Map?o.get(e):"";return(0,u.jsx)(_d,{label:t,onDelete:function(){f(a,m.filter((function(t){return t!==e}))),h(a)}},e)}))}):null]})},U$=n(63612),q$=function(){var e=L$(),t=e.field,n=e.hasError,r=e.placeholder,i=e.useFormContext,a=e.choices,s=e.multiple,c=e.name,d=e.disabled,p=i(),f=p.getValues,h=p.setValue,m=p.trigger,v=f(c),g=(0,o.useMemo)((function(){return a}),[a]);return(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(U$.Z,(0,l.Z)((0,l.Z)({},t),{},{disabled:d,disablePortal:!0,id:"combo-box-demo",multiple:s,value:""===t.value?null:t.value,onChange:function(e,n){return t.onChange(n)},options:Array.from(g.keys()),getOptionLabel:function(e){return g.get(e)},renderOption:function(e,t,n){return(0,o.createElement)(Nl.Z,(0,l.Z)((0,l.Z)({},e),{},{key:t,value:e.key,sx:{justifyContent:"flex-start !important",alignItems:"center"}}),s&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(H$.Z,{className:"MenuItemCheckedIcon",sx:{color:"primaryLight.500",width:22,height:22,mr:.85}}),(0,u.jsx)(W$.Z,{className:"MenuItemUncheckedIcon",sx:{color:"primaryDark.300",width:22,height:22,mr:.85}})]}),e.key)},popupIcon:(0,u.jsx)(zl.Z,{sx:{pointerEvents:"none !important"}}),renderInput:function(e){return(0,u.jsx)(xd.Z,(0,l.Z)((0,l.Z)({},e),{},{placeholder:r,error:n,variant:"outlined"}))},renderTags:function(e){return[]}})),s&&null!==v&&void 0!==v&&v.length?(0,u.jsx)(nn.Z,{direction:"row",sx:{flexWrap:"wrap",gap:"10px",mt:"16px"},children:v.map((function(e){var t=a instanceof Map?a.get(e):"";return(0,u.jsx)(_d,{label:t,onDelete:function(){h(c,v.filter((function(t){return t!==e}))),m(c)}},e)}))}):null]})},G$=n(90736),Y$=["title","titleId"];function K$(){return K$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K$.apply(this,arguments)}function J$(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function X$(e,t){var n=e.title,r=e.titleId,i=J$(e,Y$);return o.createElement("svg",K$({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,C$||(C$=o.createElement("g",{clipPath:"url(#clip0_2768_11633)"},o.createElement("rect",{x:.7,y:.7,width:14.6,height:14.6,rx:2.3,fill:"#F4F1FE",stroke:"#6D51F6",strokeWidth:1.4}),o.createElement("path",{d:"M11.9865 5.00269C11.7315 5.00269 11.4645 5.08869 11.2695 5.28369L7.55955 9.03368C7.30255 9.29168 7.04454 9.24366 6.84254 8.94066L5.84556 7.44066C5.53956 6.98067 4.90055 6.85268 4.44255 7.15868C3.98455 7.46568 3.85654 8.10569 4.16154 8.56468L5.15956 10.0647C6.05955 11.4187 7.81556 11.5906 8.96256 10.4407L12.7036 6.72167C13.0926 6.33067 13.0926 5.67469 12.7036 5.28369C12.5086 5.08869 12.2415 5.00269 11.9865 5.00269Z",fill:"#6D51F6"}))),j$||(j$=o.createElement("defs",null,o.createElement("clipPath",{id:"clip0_2768_11633"},o.createElement("rect",{width:16,height:16,fill:"white"})))))}var Q$,$$=o.forwardRef(X$),e0=(n.p,["title","titleId"]);function t0(){return t0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t0.apply(this,arguments)}function n0(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function r0(e,t){var n=e.title,r=e.titleId,i=n0(e,e0);return o.createElement("svg",t0({width:16,height:16,viewBox:"0 0 16 16",fill:"white",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,Q$||(Q$=o.createElement("rect",{x:.7,y:.7,width:14.6,height:14.6,rx:2.3,stroke:"#BFC6D7",strokeWidth:1.4})))}var o0=o.forwardRef(r0),i0=(n.p,function(e){var t=e.field;return(0,u.jsx)(G$.Z,(0,l.Z)((0,l.Z)({},t),{},{icon:(0,u.jsx)(o0,{style:{width:18,height:18}}),checkedIcon:(0,u.jsx)($$,{style:{width:18,height:18}}),sx:{p:0}}))}),a0=function(){var e=L$(),t=e.field,n=e.hasError;return(0,u.jsxs)(nn.Z,{spacing:.9,className:n?"UserAgreementError":"",direction:"row",alignItems:"center",sx:{px:"16px",py:"24px",border:"1px solid #E5E8FF",borderRadius:"6px"},children:[(0,u.jsx)(i0,{field:t}),(0,u.jsxs)(rn.Z,{variant:"body1",color:"primaryDark.600",sx:{fontSize:"12px",textTransform:"uppercase",fontFamily:"Gellix-SemiBold",lineHeight:"16px",letterSpacing:"0.05em"},children:["I agree to the"," ",(0,u.jsx)("a",{href:"/terms-of-service",target:"_blank",rel:"noreferrer",style:{color:"#6D51F6"},children:"terms of service"})," ","and"," ",(0,u.jsx)("a",{href:"/terms-of-service/privacy-policy",target:"_blank",rel:"noreferrer",style:{color:"#6D51F6"},children:"privacy policy."})]})]})},s0=n(26798),l0=n(44887),c0=function(){var e=L$(),t=e.field,n=e.placeholder,r=e.useFormContext,i=e.choices,a=e.multiple,s=e.name,c=e.withChips,d=(0,o.useState)(""),p=(0,Le.Z)(d,2),f=p[0],h=p[1],m=r(),v=m.getValues,g=m.setValue,y=m.trigger,b=v(s);return(0,u.jsxs)(nn.Z,{children:[(0,u.jsxs)(Od.Z,(0,l.Z)((0,l.Z)({},t),{},{displayEmpty:!0,multiple:a,IconComponent:zl.Z,onClose:function(){return h("")},MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},disablePortal:!0,disableScrollLock:!0,keepMounted:!1,PaperProps:{sx:{"& .MuiList-padding":{pt:0}}}},renderValue:function(e){return(0,u.jsx)(rn.Z,{fontSize:"14px",sx:{color:tr.IV[600]},children:n})},children:[(0,u.jsx)(s0.Z,{sx:{px:0},children:(0,u.jsx)(_$.Z,{autoFocus:!0,placeholder:"Search",fullWidth:!0,endAdornment:(0,u.jsx)(gy,{position:"start",children:(0,u.jsx)(l0.ZCF,{})}),onChange:function(e){return h(e.target.value)},onKeyDown:function(e){"Escape"!==e.key&&e.stopPropagation()}})}),i&&i instanceof Map?Array.from(i,(function(e){var t=(0,Le.Z)(e,2),n=t[0],r=t[1];return r.toLocaleLowerCase().includes(f.toLocaleLowerCase())?(0,u.jsxs)(Nl.Z,{value:n,sx:{justifyContent:"flex-start !important",alignItems:"center"},children:[a&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(H$.Z,{className:"MenuItemCheckedIcon",sx:{color:"primaryLight.500",width:22,height:22,mr:.85}}),(0,u.jsx)(W$.Z,{className:"MenuItemUncheckedIcon",sx:{color:"primaryDark.300",width:22,height:22,mr:.85}})]}),r]},n):null})):null]})),c&&null!==b&&void 0!==b&&b.length?(0,u.jsx)(nn.Z,{direction:"row",sx:{flexWrap:"wrap",gap:"10px",mt:"16px"},children:b.map((function(e){var t=i instanceof Map?i.get(e):"";return(0,u.jsx)(_d,{label:t,onDelete:function(){g(s,b.filter((function(t){return t!==e}))),y(s)}},e)}))}):null]})},u0=function(e){var t=e.helper,n=e.defaultHelperText,r=((0,uy.Z)()||{}).error;return(0,u.jsx)(u.Fragment,{children:r&&(0,u.jsx)(R$,{error:r,children:(null===t||void 0===t?void 0:t.message)||n})})},d0=function(e){var t=e.input,n=e.name,r=e.type,o=e.defaultHelperText,i=e.required,a=void 0!==i&&i,s=e.customRequiredMessage,c=e.validationRegEx,d=e.validate,p=e.rules,f=e.label,h=e.sx,m=e.startAdornment,v=e.adornment,g=e.placeholder,y=e.choices,b=e.withChips,x=e.multiple,w=e.onBlur,C=e.disabled,j=void 0!==C&&C,S=e.onKeyUp,k=e.multiline,Z=e.rows,O=Xc().control;return(0,u.jsx)(du,{control:O,name:n,rules:(0,l.Z)({required:!!a&&(s||"This field is required"),pattern:c,validate:function(e){return null===d||void 0===d?void 0:d(e)}},p),render:function(e){var i=e.field,a=e.fieldState,s=(e.formState,void 0!==a.error),c={name:n,field:i,type:r,hasError:s,startAdornment:m,adornment:v,placeholder:g,useFormContext:Xc,choices:y,withChips:b,multiple:x,onBlur:w,disabled:j,onKeyUp:S,multiline:k,rows:Z};return(0,u.jsx)(N$.Provider,{value:c,children:(0,u.jsxs)(UQ.Z,{error:s,sx:(0,l.Z)((0,l.Z)((0,l.Z)({},F$),h),{},{".MuiInputBase-formControl.MuiInputBase-multiline":{height:Z?"".concat(20*Z+10,"px"):"unset"}}),children:[f&&(0,u.jsx)(Cd,{text:f}),t,(0,u.jsx)(u0,{helper:a.error,defaultHelperText:o})]})})}})};d0.Text=z$,d0.Select=V$,d0.Autocomplete=q$,d0.UserAgreement=a0,d0.SearchSelect=c0;var p0,f0=d0,h0="1px solid ".concat(tr.dx[100]),m0=function(){var e=Xc(),t=e.setValue,n=e.watch,r=e.setError,i=e.clearErrors,a=e.getValues,s=e.formState,c=n("user"),d=function(){var e=ds(hs().mark((function e(n){var r,o;return hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=null===n||void 0===n?void 0:n[0]){e.next=3;break}return e.abrupt("return");case 3:return i("overview.avatar"),e.next=6,(0,rs.y3)(r);case 6:o=e.sent,t("overview.avatar",o);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();(0,o.useEffect)((function(){a("overview.headquartersLocation.country")!==Kt.bU.Us&&t("overview.headquartersLocation.state","")}),[a("overview.headquartersLocation.country")]),(0,o.useEffect)((function(){a("overview.headquartersLocation.country")===Kt.bU.Us&&r("overview.headquartersLocation.state",{message:"This field is required",type:"onChange"})}),[a("overview.headquartersLocation.country")]);var p=s.errors&&"overview"in s.errors?Object.keys(s.errors.overview).includes("avatar"):null;return(0,u.jsxs)(GR.Z,{children:[(0,u.jsx)(Cd,{text:"company overview"}),(0,u.jsxs)(GR.Z,{flexDirection:"row",sx:{margin:"0 0 32px 0"},children:[(0,u.jsxs)(GR.Z,{spacing:3,flex:1,sx:{padding:"0 24px 0 0",borderRight:h0},children:[c===Kt.ks.SellerService&&(0,u.jsxs)(GR.Z,{alignItems:"center",justifyContent:"center",children:[(0,u.jsx)(E$,{name:"overview.avatar",onUpload:d,required:!0,dropzoneProps:{multiple:!1},renderCustomDroppableAreaWidth:135,renderCustomDroppableAreaHeight:135,renderCustomDroppableArea:function(e){var t=e.getRootProps,n=e.getInputProps;return(0,u.jsxs)(GR.Z,(0,l.Z)((0,l.Z)({alignItems:"center",justifyContent:"center"},t()),{},{spacing:1,sx:{width:135,height:135,borderRadius:"50%",border:"2px dashed",borderColor:p?"secondaryPink.500":"primaryDark.300",".MuiTypography-root":{fontSize:"12px"},backgroundColor:p?"secondaryPink.100":"primaryDark.200"},children:[(0,u.jsx)("input",(0,l.Z)({},n())),(0,u.jsx)(S$,{fill:tr.IV[400]}),(0,u.jsx)(rn.Z,{color:"primaryDark.400",fontWeight:"600",children:"ADD LOGO"})]}))}}),p&&(0,u.jsx)(rn.Z,{color:"secondaryPink.500",variant:"body4",sx:{alignSelf:"start",display:"block",margin:"12px 0"},children:"This field is required"})]}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Text,{}),name:"overview.name",choices:Kt.Dw,type:"email",placeholder:"Add company name",label:"company name",required:!0}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Text,{}),name:"overview.url",choices:Kt.Dw,type:"email",placeholder:"Add company url",label:"company website",required:!0})]}),(0,u.jsxs)(GR.Z,{spacing:3,flex:1,sx:{padding:"0 0 0 24px"},children:[(0,u.jsx)(Cd,{text:"headquarters location",sx:{padding:"0 0 12px 0",margin:"0 0 24px 0",borderBottom:h0,mb:"0px !important"}}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Autocomplete,{}),name:"overview.headquartersLocation.country",choices:Kt.NF,placeholder:"Select country",label:"headquarters location",required:!0}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Text,{}),name:"overview.headquartersLocation.city",choices:Kt.NF,placeholder:"Add city",label:"city",required:!0}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Autocomplete,{}),name:"overview.headquartersLocation.state",label:"State",placeholder:"Select",choices:T$.gS,disabled:n("overview.headquartersLocation.country")!==Kt.bU.Us,required:n("overview.headquartersLocation.country")===Kt.bU.Us})]})]}),(0,u.jsx)(g$,{label:"company description",name:"overview.description",items:P$,required:!0})]})},v0=function(){var e=Pa();return(0,u.jsxs)(GR.Z,{children:[(0,u.jsx)(Cd,{text:"account administrator"}),(0,u.jsxs)(GR.Z,{flexDirection:"row",mt:1,children:[(0,u.jsx)(GR.Z,{width:"100%",pr:3,sx:{borderRight:"1px solid",borderColor:"secondaryBlue.100"},children:(0,u.jsx)(Zd,{name:"admin.email",placeholder:null===e||void 0===e?void 0:e.email,label:"User email",disabled:!0})}),(0,u.jsx)(GR.Z,{width:"100%",pl:3,children:(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Text,{}),name:"admin.jobTitle",placeholder:"Enter job title",label:"Job title",required:!0})})]})]})},g0=["title","titleId"];function y0(){return y0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y0.apply(this,arguments)}function b0(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function x0(e,t){var n=e.title,r=e.titleId,i=b0(e,g0);return o.createElement("svg",y0({width:18,height:18,viewBox:"0 0 18 18",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,p0||(p0=o.createElement("path",{d:"M9.01107 0.665527C7.8619 0.665527 6.93357 1.40636 6.64107 2.4622C5.88691 2.67136 5.24272 3.27969 5.00106 3.99886C4.54939 3.99886 4.1544 3.99886 4.01107 3.99886C2.17023 3.99886 0.677734 5.49135 0.677734 7.33218V13.9988C0.677734 15.8397 2.17023 17.3322 4.01107 17.3322H14.0111C15.8519 17.3322 17.3444 15.8397 17.3444 13.9988V7.33218C17.3444 5.49135 15.8519 3.99886 14.0111 3.99886L13.0211 4.02469C12.8186 3.32886 12.1236 2.59302 11.3811 2.43636C11.0886 1.38053 10.1602 0.665527 9.01107 0.665527ZM9.01107 2.33219C9.47107 2.33219 9.8444 2.70552 9.8444 3.16552C9.8444 3.62552 10.2177 3.99886 10.6777 3.99886C11.1377 3.99886 11.5111 4.37219 11.5111 4.83219C11.5111 5.29219 11.1377 5.66552 10.6777 5.66552H7.3444C6.8844 5.66552 6.51107 5.29219 6.51107 4.83219C6.51107 4.37219 6.8844 3.99886 7.3444 3.99886C7.8044 3.99886 8.17773 3.62552 8.17773 3.16552C8.17773 2.70552 8.55107 2.33219 9.01107 2.33219ZM11.5111 8.99885C11.7244 8.99885 11.9469 9.07052 12.1102 9.23302C12.4352 9.55885 12.4352 10.1055 12.1102 10.4313L8.7769 13.7647C8.45106 14.0897 7.90441 14.0897 7.57857 13.7647L5.91191 12.098C5.58691 11.7722 5.58691 11.2255 5.91191 10.8997C6.23774 10.5747 6.7844 10.5747 7.11023 10.8997L8.17773 11.9672L10.9119 9.23302C11.0752 9.07052 11.2977 8.99885 11.5111 8.99885Z",fill:"current"})))}var w0,C0,j0=o.forwardRef(x0),S0=(n.p,["title","titleId"]);function k0(){return k0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k0.apply(this,arguments)}function Z0(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function O0(e,t){var n=e.title,r=e.titleId,i=Z0(e,S0);return o.createElement("svg",k0({width:16,height:17,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,w0||(w0=o.createElement("rect",{width:16,height:16,transform:"translate(0 0.5)",fill:"#6D51F6"})),C0||(C0=o.createElement("path",{d:"M7.99384 2.45317C7.62584 2.45317 7.32717 2.75183 7.32717 3.11983V7.7865H2.6605C2.2925 7.7865 1.99384 8.08517 1.99384 8.45317C1.99384 8.82117 2.2925 9.11983 2.6605 9.11983H7.32717V13.7865C7.32717 14.1545 7.62584 14.4532 7.99384 14.4532C8.36184 14.4532 8.6605 14.1545 8.6605 13.7865V9.11983H13.3272C13.6952 9.11983 13.9938 8.82117 13.9938 8.45317C13.9938 8.08517 13.6952 7.7865 13.3272 7.7865H8.6605V3.11983C8.6605 2.75183 8.36184 2.45317 7.99384 2.45317Z",fill:"white"})))}var E0,D0=o.forwardRef(O0),P0=(n.p,function(e){var t=e.append,n=fd({defaultValues:{avatar:"",name:""}}),r=(0,o.useState)(0),i=(0,Le.Z)(r,2),a=i[0],s=i[1],c=oa({resource:"company-client"}),d=c.mutate,p=c.isLoading,f=n.watch(),h=f.avatar,m=f.name,v=function(){var e=ds(hs().mark((function e(t,r){var o,i;return hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=null===t||void 0===t?void 0:t[0]){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,(0,rs.y3)(o);case 5:i=e.sent,n.setValue("avatar",i);case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},n),{},{children:(0,u.jsx)("form",{children:(0,u.jsxs)(ms,{direction:"row",alignItems:"center",gap:2.5,justifyContent:"space-between",children:[(0,u.jsx)(ms,{alignItems:"center",justifyContent:"center",children:(0,u.jsx)(E$,{name:"avatar",onUpload:v,required:!0,dropzoneProps:{multiple:!1},renderCustomDroppableAreaWidth:135,renderCustomDroppableAreaHeight:135,renderCustomDroppableArea:function(e){var t=e.getRootProps,n=e.getInputProps;return(0,u.jsxs)(ms,(0,l.Z)((0,l.Z)({alignItems:"center",justifyContent:"center"},t()),{},{spacing:1,sx:{width:135,height:135,borderRadius:"50%",border:"2px dashed",borderColor:"primaryDark.300",".MuiTypography-root":{fontSize:"12px"},backgroundColor:"primaryDark.200"},children:[(0,u.jsx)("input",(0,l.Z)({},n())),(0,u.jsx)(S$,{fill:tr.IV[400]}),(0,u.jsx)(rn.Z,{color:"primaryDark.400",fontWeight:"600",children:"ADD LOGO"})]}))}},a)}),(0,u.jsx)(Zd,{sx:{flex:1,mb:1},name:"name",placeholder:"Add client",required:!0,label:"Client company name"}),(0,u.jsx)(Wo,{variant:"primaryLight",loading:p,sx:{minWidth:"fit-content"},endIcon:(0,u.jsx)(D0,{}),onClick:function(){return e=n.getValues(),void d({avatar:e.avatar,name:e.name},{onSuccess:function(e){var r=e.data;t(r),s((function(e){return e+1})),n.reset({avatar:"",name:""})}});var e},disabled:!(null!==h&&void 0!==h&&h.length&&null!==m&&void 0!==m&&m.length),children:"add"})]})})}))}),A0=function(e){var t=e.isOpen,n=e.setIsOpen,r=Xc(),o=r.control,i=r.watch,a=r.setValue,s=Du({control:o,name:"details.tmpClients"}),l=s.fields,c=s.remove,d=s.append;return(0,u.jsx)(ys,{open:t,width:"50%",children:(0,u.jsxs)(ms,{spacing:2,children:[(0,u.jsxs)(ms,{direction:"row",alignItems:"center",children:[(0,u.jsx)(ms,{width:40,height:40,mr:2,bgcolor:"secondaryBlue.100",borderRadius:1,justifyContent:"center",alignItems:"center",children:(0,u.jsx)(j0,{fill:tr.dx[700]})}),(0,u.jsx)(rn.Z,{variant:"heading5",children:"Clients"})]}),(0,u.jsx)(un,{}),(0,u.jsx)(P0,{append:d}),(0,u.jsx)(un,{}),(0,u.jsx)(ms,{children:(0,u.jsx)(da.Z,{sx:{display:"flex",gap:1,flexWrap:"wrap"},children:null===l||void 0===l?void 0:l.map((function(e,t){return(0,u.jsx)(_d,{sx:{maxWidth:"fit-content"},label:e.name,onDelete:function(){return c(t)},icon:(0,u.jsx)(Ca,{sx:{width:"20px",height:"20px"},src:e.avatar,alt:"Company logo"})},"".concat(e.name,"-").concat(t))}))})}),(0,u.jsx)(un,{}),(0,u.jsxs)(ms,{direction:"row",sx:{justifyContent:"right"},spacing:2,children:[(0,u.jsx)(Wo,{variant:"secondary",onClick:function(){n(!1)},children:"Cancel"}),(0,u.jsx)(Wo,{onClick:function(){a("details.clients",i("details.tmpClients")),n(!1)},children:"Save"})]})]})})},M0=["title","titleId"];function T0(){return T0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T0.apply(this,arguments)}function I0(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function R0(e,t){var n=e.title,r=e.titleId,i=I0(e,M0);return o.createElement("svg",T0({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,E0||(E0=o.createElement("path",{d:"M7.99219 0.941406C7.53219 0.941406 7.15885 1.31474 7.15885 1.77474V7.60807H1.32552C0.865521 7.60807 0.492188 7.98141 0.492188 8.44141C0.492188 8.90141 0.865521 9.27474 1.32552 9.27474H7.15885V15.1081C7.15885 15.5681 7.53219 15.9414 7.99219 15.9414C8.45219 15.9414 8.82552 15.5681 8.82552 15.1081V9.27474H14.6589C15.1189 9.27474 15.4922 8.90141 15.4922 8.44141C15.4922 7.98141 15.1189 7.60807 14.6589 7.60807H8.82552V1.77474C8.82552 1.31474 8.45219 0.941406 7.99219 0.941406Z",fill:"#6D51F6"})))}var F0,B0=o.forwardRef(R0),L0=(n.p,function(){var e=(0,o.useState)(!1),t=(0,Le.Z)(e,2),n=t[0],r=t[1],i=Xc(),a=i.formState,s=a.errors,l=a.isSubmitting,c=i.control,d=i.setValue,p=i.watch,f=i.setError,h=i.clearErrors,m=(i.getValues,Du({control:c,name:"details.clients"})),v=m.fields,g=m.remove;(0,o.useEffect)((function(){var e=p("details.clients");l&&!e.length&&f("details.clients",{types:{required:"This is required",message:"string"}}),e.length&&h("details.clients")}),[p("details.clients"),l]);var y=p("details.currency");return(0,u.jsxs)(GR.Z,{spacing:2,children:[(0,u.jsx)(Cd,{text:"company details"}),(0,u.jsxs)(GR.Z,{flexDirection:"row",sx:{margin:"0 0 32px 0"},children:[(0,u.jsxs)(GR.Z,{spacing:3,width:"50%",pr:3,sx:{borderRight:"1px solid",borderColor:"secondaryBlue.100"},children:[(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Autocomplete,{}),name:"details.services",choices:Kt.Sj,placeholder:"Select services",label:"Offered services",required:!0,multiple:!0,withChips:!0}),(0,u.jsxs)(GR.Z,{children:[(0,u.jsx)(Cd,{text:"Select operating currency"}),(0,u.jsxs)(GR.Z,{direction:"row",children:[(0,u.jsx)(Wo,{variant:"secondary",sx:{borderTopRightRadius:"0px !important",borderBottomRightRadius:"0px !important",borderColor:"secondaryBlue.100",fontSize:"12px",color:y===Kt.CF.Usd?"primaryLight.500":"primaryDark.500",boxShadow:y===Kt.CF.Usd?"6px 6px 15px 0px #3845721A":"initial"},onClick:function(){return d("details.currency",Kt.CF.Usd)},children:"USD"}),(0,u.jsx)(Wo,{variant:"secondary",sx:{borderTopLeftRadius:"0px !important",borderBottomLeftRadius:"0px !important",borderColor:"secondaryBlue.100",fontSize:"12px",color:y===Kt.CF.Eur?"primaryLight.500":"primaryDark.500",boxShadow:y===Kt.CF.Eur?"6px 6px 15px 0px #3845721A":"initial"},onClick:function(){return d("details.currency",Kt.CF.Eur)},children:"EUR"})]})]}),(0,u.jsxs)(GR.Z,{children:[(0,u.jsx)(Cd,{text:"Typical project size"}),(0,u.jsxs)(GR.Z,{direction:"row",alignItems:"baseline",children:[(0,u.jsx)(GR.Z,{sx:{width:60,height:47,alignItems:"center",justifyContent:"center",border:"1px solid",borderColor:"primaryDark.250",borderRightColor:"transparent",borderTopLeftRadius:"4px",borderBottomLeftRadius:"4px"},children:(0,u.jsx)(rn.Z,{sx:{px:2,fontSize:"14px"},children:p("details.currency").toUpperCase()})}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Select,{}),name:"details.averageProjectSize",placeholder:"Select size",choices:Kt.Dw,sx:{width:"100%","& .MuiInputBase-root":{borderTopLeftRadius:"0px",borderBottomLeftRadius:"0px"}},required:!0})]})]}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Select,{}),name:"details.companySize",choices:Kt.Tz,placeholder:"Select size",label:"Company size",required:!0}),(0,u.jsxs)(GR.Z,{children:[(0,u.jsx)(Cd,{text:"Hourly rate"}),(0,u.jsxs)(GR.Z,{direction:"row",maxHeight:"fit-content",alignItems:"baseline",children:[(0,u.jsx)(GR.Z,{sx:{width:60,height:47,alignItems:"center",justifyContent:"center",border:"1px solid",borderColor:"primaryDark.250",borderRightColor:"transparent",borderTopLeftRadius:"4px",borderBottomLeftRadius:"4px"},children:(0,u.jsx)(rn.Z,{sx:{px:2,fontSize:"14px"},children:p("details.currency").toUpperCase()})}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Select,{}),name:"details.hourlyRate",placeholder:"Select rate",choices:Kt.vs,sx:{width:"100%","& .MuiInputBase-root":{borderTopLeftRadius:"0px",borderBottomLeftRadius:"0px"}},required:!0})]})]}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Autocomplete,{}),name:"details.languages",label:"Working languages",placeholder:"Select languages",choices:Kt.u9,multiple:!0,withChips:!0,required:!0})]}),(0,u.jsxs)(GR.Z,{spacing:3,width:"50%",pl:3,children:[(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Autocomplete,{}),name:"details.targetCountries",label:"Target markets",placeholder:"Select country",choices:Kt.NF,required:!0,withChips:!0,multiple:!0}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Autocomplete,{}),name:"details.targetIndustries",label:"company industry",placeholder:"Select industry",choices:Kt.lu,required:!0,multiple:!0,withChips:!0}),(0,u.jsxs)(GR.Z,{spacing:2,children:[(0,u.jsxs)(GR.Z,{direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(Cd,{text:"your clients"}),(0,u.jsx)(Wo,{onClick:function(){d("details.tmpClients",v),r(!0)},variant:"primaryText",endIcon:(0,u.jsx)(B0,{}),children:"add"})]}),s&&"details"in s&&"clients"in s.details&&(0,u.jsx)(R$,{error:s.details.clients,children:"This field is required"})]}),(0,u.jsx)(da.Z,{sx:{display:"flex",gap:1,flexWrap:"wrap"},children:null===v||void 0===v?void 0:v.map((function(e,t){return(0,u.jsx)(_d,{sx:{maxWidth:"fit-content"},label:e.name,onDelete:function(){return g(t)},icon:(0,u.jsx)(Ca,{sx:{width:"20px",height:"20px"},src:e.avatar,alt:"Company logo"})},"".concat(e.name,"-").concat(t))}))})]})]}),(0,u.jsx)(A0,{isOpen:n,setIsOpen:r})]})}),N0=function(){Xc().watch;return(0,u.jsxs)(GR.Z,{spacing:2,children:[(0,u.jsx)(Cd,{text:"company details"}),(0,u.jsxs)(GR.Z,{flexDirection:"row",sx:{margin:"0 0 32px 0"},children:[(0,u.jsxs)(GR.Z,{spacing:3,width:"50%",pr:3,sx:{borderRight:"1px solid",borderColor:"secondaryBlue.100"},children:[(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Autocomplete,{}),name:"details.targetIndustries",label:"company industry",placeholder:"Select industry",choices:Kt.lu,required:!0,multiple:!0,withChips:!0}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Autocomplete,{}),name:"details.targetCountries",label:"Target markets",placeholder:"Select country",choices:Kt.NF,required:!0,multiple:!0,withChips:!0})]}),(0,u.jsxs)(GR.Z,{spacing:3,width:"50%",pl:3,children:[(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Autocomplete,{}),name:"details.companySize",label:"Company size",placeholder:"Select size",choices:Kt.Tz,required:!0}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Autocomplete,{}),name:"details.languages",label:"Working languages",placeholder:"Select languages",choices:Kt.u9,multiple:!0,withChips:!0,required:!0})]})]})]})},_0=["tmpClients"],z0=["User","Overview","Admin","Details"],H0=function(){var e=oa({resource:"companies"}),t=e.mutate,n=e.isSuccess,r=e.isLoading,i=(0,As.Z)({resource:"users"}),a=i.mutate,s=i.isLoading,c=(0,ze.s0)(),d=Pa(),p=null===d||void 0===d?void 0:d.membership,f=Ra({resource:"users",id:null===d||void 0===d?void 0:d.id,enabled:!!n}),h=f.data,m=f.isLoading;(0,o.useEffect)((function(){n&&(localStorage.setItem("userData",JSON.stringify((0,l.Z)((0,l.Z)({},d),{},{membership:null===h||void 0===h?void 0:h.membership}))),c("../end-to-end"))}),[h]);var v=qR({labels:z0,initialState:NF}),g=v.currentStep,y=v.steps,b=v.onStepChange,x=v.form,w=x.watch("user"),C=w===Kt.ks.SellerService?(0,u.jsx)(L0,{}):(0,u.jsx)(N0,{});(0,o.useEffect)((function(){null!==p&&c("/dashboard")}),[p,c]);return(0,u.jsx)(tn,{sx:{width:"70%",p:"".concat(24,"px")},children:(0,u.jsx)(UR,{form:x,steps:y,currentStep:g,onChange:b,onSubmit:function(e){var n=e.details,r=(n.tmpClients,Nn(n,_0)),o=r.clients,i=[];w===Kt.ks.SellerService&&(i=null===o||void 0===o?void 0:o.map((function(e){return e.id}))),a({data:{jobTitle:e.admin.jobTitle},id:null===d||void 0===d?void 0:d.id}),t((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},r),w===Kt.ks.SellerService&&{clients:i}),e.overview),{},{roles:[e.user]}))},helperText:(0,rs.DI)(g,_F),disableCancelButton:!0,isSubmitLoading:!(!0!==r&&!0!==s&&!0!==m),children:(0,u.jsxs)(u.Fragment,{children:[1===g&&(0,u.jsx)(VF,{}),2===g&&(0,u.jsx)(m0,{}),3===g&&(0,u.jsx)(v0,{}),4===g&&C]})})})},W0=["title","titleId"];function V0(){return V0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},V0.apply(this,arguments)}function U0(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function q0(e,t){var n=e.title,r=e.titleId,i=U0(e,W0);return o.createElement("svg",V0({width:18,height:18,viewBox:"0 0 18 18",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,F0||(F0=o.createElement("path",{d:"M8.99937 0.678436C4.39703 0.678436 0.666016 4.40928 0.666016 9.01179C0.666016 13.6143 4.39703 17.3451 8.99937 17.3451C13.6017 17.3451 17.3327 13.6143 17.3327 9.01179C17.3327 4.40928 13.6017 0.678436 8.99937 0.678436ZM8.99937 4.84511C9.45962 4.84511 9.83271 5.21845 9.83271 5.67845C9.83271 6.13845 9.45962 6.51178 8.99937 6.51178C8.53912 6.51178 8.16604 6.13845 8.16604 5.67845C8.16604 5.21845 8.53912 4.84511 8.99937 4.84511ZM8.99937 7.34512C9.45962 7.34512 9.83271 7.71845 9.83271 8.17845V12.3451C9.83271 12.8051 9.45962 13.1785 8.99937 13.1785C8.53912 13.1785 8.16604 12.8051 8.16604 12.3451V8.17845C8.16604 7.71845 8.53912 7.34512 8.99937 7.34512Z",fill:"current"})))}var G0=o.forwardRef(q0),Y0=(n.p,{background:"linear-gradient(240.98deg, rgba(230, 232, 255, 0.9) 0%, rgba(255, 234, 225, 0.9) 68.46%, rgba(255, 251, 234, 0.9) 99.58%)"}),K0=function(e){var t=e.onClick,n=e.withGradientBackdrop,r=void 0===n||n,i=e.isGoToBiggerScreenModalOpen,a=void 0!==i&&i,s=e.automaticallyShowModalIfBelowTreshold,l=void 0===s||s,c=(0,o.useState)(!1),d=(0,Le.Z)(c,2),p=d[0],f=d[1],h=Bn(ir.breakpoints.down("md")),m=(0,o.useState)(0),v=(0,Le.Z)(m,2)[1],g=(0,o.useCallback)((function(e){null!==e&&v(e.getBoundingClientRect().height)}),[]);return(0,o.useEffect)((function(){!0===a&&f(!0)}),[a]),(0,o.useEffect)((function(){l&&f(!!h)}),[h]),(0,u.jsx)(vs.Z,{open:p,hideBackdrop:!0,sx:r?Y0:void 0,disableAutoFocus:!0,children:(0,u.jsx)(tn,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",maxWidth:"360px",minWidth:"280px",border:"2px solid",borderColor:"#4051EC",borderRadius:"6px"},children:(0,u.jsx)(ao.Z,{ref:g,sx:{height:"100%",p:"2rem"},children:(0,u.jsxs)(nn.Z,{height:"100%",justifyContent:"center",spacing:4,children:[(0,u.jsx)(nn.Z,{justifyContent:"center",alignItems:"center",children:(0,u.jsx)(nn.Z,{sx:{backgroundColor:"#E3E7F0",width:"54px",height:"54px",borderRadius:"8px",position:"relative"},justifyContent:"center",alignItems:"center",children:(0,u.jsx)(G0,{fill:tr.dx[700],width:"33px",height:"33px"})})}),(0,u.jsx)(un,{}),(0,u.jsx)(nn.Z,{direction:"row",children:(0,u.jsx)(rn.Z,{fontSize:"1rem",fontWeight:"500",children:"Please view Spona on a device with a larger screen to experience full site functionality."})}),(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(un,{}),(0,u.jsx)(jZ,{onButtonClick:function(){return(null===t||void 0===t?void 0:t())||f(!1)},fontWeight:"500",variant:"contained",color:"secondary",setUpperCase:!0,sx:{width:120,alignSelf:"center",backgroundColor:"#6D51F6",borderRadius:"4px",minWidth:"100%"},children:"Ok"})]})]})})})})},J0=function(e){var t,n,r=e.showSidebar,o=void 0===r||r,i=e.showChat,a=e.padding,s=void 0===a||a,l=e.bgColor,c=void 0===l?"#FFF":l,d=Pa(),p=(0,ze.s0)(),f=Yd(),h=null===f||void 0===f?void 0:f.includes(Kt.ks.Buyer),m=Ra({resource:"companies",id:null===d||void 0===d||null===(t=d.membership)||void 0===t?void 0:t.company,enabled:!!d&&!(null===(n=d.membership)||void 0===n||!n.company),refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1}).data,v=(null===m||void 0===m?void 0:m.status)===Kt.cM.Pending||(null===m||void 0===m?void 0:m.status)===Kt.cM.Rejected;return(0,u.jsxs)(tn,{sx:{backgroundColor:c,minHeight:"100vh",pointerEvents:v&&!h?"none":"inherit"},children:[(0,u.jsx)(K0,{onClick:function(){return p("/",{replace:!0})}}),(0,u.jsx)(gR,{showSidebar:o,showChat:i,padding:s,outlet:(0,u.jsx)(ze.j3,{})})]})};var X0=n.p+"static/media/InclineArrowIcon.6bfb961c6de3e35dd7a28e9d8e93f787.svg";var Q0,$0=n.p+"static/media/DeclineArrowIcon.57e0482163efca838a0df9b863099bad.svg";!function(e){e.Up="up",e.Down="down"}(Q0||(Q0={}));var e1=function(e){var t=e.direction,n=(e.color,e.text),r={background:t===Q0.Up?"#F5FED4":"#FFF2F4",p:"8px",minWidth:"24px",height:"24px",display:"flex",justifyContent:"center",borderRadius:"3px",alignItems:"center",gap:"4px"};return(0,u.jsxs)(da.Z,{component:"div",sx:r,children:[n&&(0,u.jsx)(rn.Z,{variant:"heading5",color:t===Q0.Up?"secondaryGreen.700":"secondaryPink.700",children:n}),(0,u.jsx)(da.Z,{component:"img",src:t===Q0.Up?X0:$0})]})},t1=function(e){var t=e.direction,n=e.name,r=e.value,o=e.text,i=e.className;return(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",className:i||void 0,children:[(0,u.jsxs)(nn.Z,{direction:"row",spacing:1,alignItems:"center",children:[(0,u.jsx)(e1,{color:t===Q0.Up?"#0FA97F":"red",direction:t}),(0,u.jsx)(rn.Z,{variant:"body2",fontWeight:500,color:"primaryDark.600",children:n})]}),(0,u.jsxs)(nn.Z,{spacing:.5,direction:"row",children:[(0,u.jsx)(rn.Z,{variant:"body2",color:"primaryDark.600",children:o}),(0,u.jsx)(rn.Z,{variant:"body2",fontWeight:500,color:"primaryDark.600",children:r})]})]})})};function n1(e){var t=e.health,n=(e.sx,Math.abs(100*(null===t||void 0===t?void 0:t.schedule)).toFixed(1)),r=Math.abs(100*(null===t||void 0===t?void 0:t.cost)).toFixed(1),o=Math.abs(100*(null===t||void 0===t?void 0:t.cost)).toFixed(1),i=Math.abs(null===t||void 0===t?void 0:t.quality).toString();return(0,u.jsxs)(nn.Z,{spacing:2,sx:{position:"relative"},children:[null==t&&(0,u.jsx)(RI,{}),(0,u.jsx)(t1,{className:"react-joyride-step-9-project",name:"Schedule",value:"".concat(n,"%"),text:(null===t||void 0===t?void 0:t.schedule)>=1?"Ahead of schedule":"Behind",direction:(null===t||void 0===t?void 0:t.schedule)>=1?Q0.Up:Q0.Down}),(0,u.jsx)(t1,{className:"react-joyride-step-10-project",name:"Cost",value:"".concat(r,"%"),text:(null===t||void 0===t?void 0:t.cost)<0?"Under budget":"Over budget",direction:(null===t||void 0===t?void 0:t.cost)<=0?Q0.Up:Q0.Down}),(0,u.jsx)(t1,{className:"react-joyride-step-11-project",name:"Scope",value:o,text:"Changes",direction:(null===t||void 0===t?void 0:t.scope)<=0?Q0.Up:Q0.Down}),(0,u.jsx)(t1,{className:"react-joyride-step-12-project",name:"Quality",value:i,text:"Project issues",direction:(null===t||void 0===t?void 0:t.quality)<=0?Q0.Up:Q0.Down})]})}var r1=o.createContext(null);function o1(e){var t=e.children,n=e.value,r=function(){var e=o.useState(null),t=(0,Le.Z)(e,2),n=t[0],r=t[1];return o.useEffect((function(){r("mui-p-".concat(Math.round(1e5*Math.random())))}),[]),n}(),i=o.useMemo((function(){return{idPrefix:r,value:n}}),[r,n]);return(0,u.jsx)(r1.Provider,{value:i,children:t})}var i1=n(42240);function a1(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function s1(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},i=r.ease,a=void 0===i?a1:i,s=r.duration,l=void 0===s?300:s,c=null,u=t[e],d=!1,p=function(){d=!0},f=function r(i){if(d)o(new Error("Animation cancelled"));else{null===c&&(c=i);var s=Math.min(1,(i-c)/l);t[e]=a(s)*(n-u)+u,s>=1?requestAnimationFrame((function(){o(null)})):requestAnimationFrame(r)}};return u===n?(o(new Error("Element already at target position")),p):(requestAnimationFrame(f),p)}var l1=["onChange"],c1={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};var u1=n(86814),d1=n(13692);function p1(e){return(0,F.Z)("MuiTabScrollButton",e)}var f1=(0,R.Z)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),h1=["className","slots","slotProps","direction","orientation","disabled"],m1=(0,P.ZP)(Qy.Z,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.orientation&&t[n.orientation]]}})((function(e){var n=e.ownerState;return(0,r.Z)((0,t.Z)({width:40,flexShrink:0,opacity:.8},"&.".concat(f1.disabled),{opacity:0}),"vertical"===n.orientation&&{width:"100%",height:40,"& svg":{transform:"rotate(".concat(n.isRtl?-90:90,"deg)")}})})),v1=o.forwardRef((function(e,t){var n,o,i=(0,T.Z)({props:e,name:"MuiTabScrollButton"}),a=i.className,s=i.slots,l=void 0===s?{}:s,c=i.slotProps,d=void 0===c?{}:c,p=i.direction,f=(0,b.Z)(i,h1),h="rtl"===(0,j.Z)().direction,m=(0,r.Z)({isRtl:h},i),v=function(e){var t=e.classes,n={root:["root",e.orientation,e.disabled&&"disabled"]};return(0,M.Z)(n,p1,t)}(m),g=null!=(n=l.StartScrollButtonIcon)?n:u1.Z,x=null!=(o=l.EndScrollButtonIcon)?o:d1.Z,w=(0,Ts.Z)({elementType:g,externalSlotProps:d.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),C=(0,Ts.Z)({elementType:x,externalSlotProps:d.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return(0,u.jsx)(m1,(0,r.Z)({component:"div",className:(0,y.default)(v.root,a),ref:t,role:null,ownerState:m,tabIndex:null},f,{children:"left"===p?(0,u.jsx)(g,(0,r.Z)({},w)):(0,u.jsx)(x,(0,r.Z)({},C))}))})),g1=v1,y1=n(51748);function b1(e){return(0,F.Z)("MuiTabs",e)}var x1=(0,R.Z)("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),w1=n(21088),C1=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],j1=function(e,t){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild},S1=function(e,t){return e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild},k1=function(e,t,n){for(var r=!1,o=n(e,t);o;){if(o===e.firstChild){if(r)return;r=!0}var i=o.disabled||"true"===o.getAttribute("aria-disabled");if(o.hasAttribute("tabindex")&&!i)return void o.focus();o=n(e,o)}},Z1=(0,P.ZP)("div",{name:"MuiTabs",slot:"Root",overridesResolver:function(e,n){var r=e.ownerState;return[(0,t.Z)({},"& .".concat(x1.scrollButtons),n.scrollButtons),(0,t.Z)({},"& .".concat(x1.scrollButtons),r.scrollButtonsHideMobile&&n.scrollButtonsHideMobile),n.root,r.vertical&&n.vertical]}})((function(e){var n=e.ownerState,o=e.theme;return(0,r.Z)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},n.vertical&&{flexDirection:"column"},n.scrollButtonsHideMobile&&(0,t.Z)({},"& .".concat(x1.scrollButtons),(0,t.Z)({},o.breakpoints.down("sm"),{display:"none"})))})),O1=(0,P.ZP)("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:function(e,t){var n=e.ownerState;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})((function(e){var t=e.ownerState;return(0,r.Z)({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})})),E1=(0,P.ZP)("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:function(e,t){var n=e.ownerState;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})((function(e){var t=e.ownerState;return(0,r.Z)({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})})),D1=(0,P.ZP)("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:function(e,t){return t.indicator}})((function(e){var t=e.ownerState,n=e.theme;return(0,r.Z)({position:"absolute",height:2,bottom:0,width:"100%",transition:n.transitions.create()},"primary"===t.indicatorColor&&{backgroundColor:(n.vars||n).palette.primary.main},"secondary"===t.indicatorColor&&{backgroundColor:(n.vars||n).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})})),P1=(0,P.ZP)((function(e){var t=e.onChange,n=(0,b.Z)(e,l1),i=o.useRef(),a=o.useRef(null),s=function(){i.current=a.current.offsetHeight-a.current.clientHeight};return(0,Tn.Z)((function(){var e=(0,w.Z)((function(){var e=i.current;s(),e!==i.current&&t(i.current)})),n=(0,k.Z)(a.current);return n.addEventListener("resize",e),function(){e.clear(),n.removeEventListener("resize",e)}}),[t]),o.useEffect((function(){s(),t(i.current)}),[t]),(0,u.jsx)("div",(0,r.Z)({style:c1,ref:a},n))}),{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),A1={},M1=o.forwardRef((function(e,n){var i=(0,T.Z)({props:e,name:"MuiTabs"}),a=(0,j.Z)(),s="rtl"===a.direction,l=i["aria-label"],c=i["aria-labelledby"],d=i.action,p=i.centered,f=void 0!==p&&p,h=i.children,m=i.className,v=i.component,g=void 0===v?"div":v,x=i.allowScrollButtonsMobile,C=void 0!==x&&x,S=i.indicatorColor,Z=void 0===S?"primary":S,O=i.onChange,E=i.orientation,D=void 0===E?"horizontal":E,P=i.ScrollButtonComponent,A=void 0===P?g1:P,I=i.scrollButtons,R=void 0===I?"auto":I,F=i.selectionFollowsFocus,B=i.slots,L=void 0===B?{}:B,N=i.slotProps,_=void 0===N?{}:N,z=i.TabIndicatorProps,H=void 0===z?{}:z,W=i.TabScrollButtonProps,V=void 0===W?{}:W,U=i.textColor,q=void 0===U?"primary":U,G=i.value,Y=i.variant,K=void 0===Y?"standard":Y,J=i.visibleScrollbar,X=void 0!==J&&J,Q=(0,b.Z)(i,C1),$="scrollable"===K,ee="vertical"===D,te=ee?"scrollTop":"scrollLeft",ne=ee?"top":"left",re=ee?"bottom":"right",oe=ee?"clientHeight":"clientWidth",ie=ee?"height":"width",ae=(0,r.Z)({},i,{component:g,allowScrollButtonsMobile:C,indicatorColor:Z,orientation:D,vertical:ee,scrollButtons:R,textColor:q,variant:K,visibleScrollbar:X,fixed:!$,hideScrollbar:$&&!X,scrollableX:$&&!ee,scrollableY:$&&ee,centered:f&&!$,scrollButtonsHideMobile:!C}),se=function(e){var t=e.vertical,n=e.fixed,r=e.hideScrollbar,o=e.scrollableX,i=e.scrollableY,a=e.centered,s=e.scrollButtonsHideMobile,l=e.classes,c={root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]};return(0,M.Z)(c,b1,l)}(ae),le=(0,Ts.Z)({elementType:L.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:ae}),ce=(0,Ts.Z)({elementType:L.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:ae});var ue=o.useState(!1),de=(0,Le.Z)(ue,2),pe=de[0],fe=de[1],he=o.useState(A1),me=(0,Le.Z)(he,2),ve=me[0],ge=me[1],ye=o.useState({start:!1,end:!1}),be=(0,Le.Z)(ye,2),xe=be[0],we=be[1],Ce=o.useState({overflow:"hidden",scrollbarWidth:0}),je=(0,Le.Z)(Ce,2),Se=je[0],ke=je[1],Ze=new Map,Oe=o.useRef(null),Ee=o.useRef(null),De=function(){var e,t,n=Oe.current;if(n){var r=n.getBoundingClientRect();e={clientWidth:n.clientWidth,scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollLeftNormalized:(0,i1.T)(n,a.direction),scrollWidth:n.scrollWidth,top:r.top,bottom:r.bottom,left:r.left,right:r.right}}if(n&&!1!==G){var o=Ee.current.children;if(o.length>0){var i=o[Ze.get(G)];0,t=i?i.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},Pe=(0,y1.Z)((function(){var e,n,r=De(),o=r.tabsMeta,i=r.tabMeta,a=0;if(ee)n="top",i&&o&&(a=i.top-o.top+o.scrollTop);else if(n=s?"right":"left",i&&o){var l=s?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;a=(s?-1:1)*(i[n]-o[n]+l)}var c=(e={},(0,t.Z)(e,n,a),(0,t.Z)(e,ie,i?i[ie]:0),e);if(isNaN(ve[n])||isNaN(ve[ie]))ge(c);else{var u=Math.abs(ve[n]-c[n]),d=Math.abs(ve[ie]-c[ie]);(u>=1||d>=1)&&ge(c)}})),Ae=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.animation,r=void 0===n||n;r?s1(te,Oe.current,e,{duration:a.transitions.duration.standard}):Oe.current[te]=e},Me=function(e){var t=Oe.current[te];ee?t+=e:(t+=e*(s?-1:1),t*=s&&"reverse"===(0,i1.E)()?-1:1),Ae(t)},Te=function(){for(var e=Oe.current[oe],t=0,n=Array.from(Ee.current.children),r=0;r<n.length;r+=1){var o=n[r];if(t+o[oe]>e){0===r&&(t=e);break}t+=o[oe]}return t},Ie=function(){Me(-1*Te())},Re=function(){Me(Te())},Fe=o.useCallback((function(e){ke({overflow:null,scrollbarWidth:e})}),[]),Be=(0,y1.Z)((function(e){var t=De(),n=t.tabsMeta,r=t.tabMeta;if(r&&n)if(r[ne]<n[ne]){var o=n[te]+(r[ne]-n[ne]);Ae(o,{animation:e})}else if(r[re]>n[re]){var i=n[te]+(r[re]-n[re]);Ae(i,{animation:e})}})),Ne=(0,y1.Z)((function(){if($&&!1!==R){var e,t,n=Oe.current,r=n.scrollTop,o=n.scrollHeight,i=n.clientHeight,l=n.scrollWidth,c=n.clientWidth;if(ee)e=r>1,t=r<o-i-1;else{var u=(0,i1.T)(Oe.current,a.direction);e=s?u<l-c-1:u>1,t=s?u>1:u<l-c-1}e===xe.start&&t===xe.end||we({start:e,end:t})}}));o.useEffect((function(){var e,t=(0,w.Z)((function(){Oe.current&&(Pe(),Ne())})),n=(0,k.Z)(Oe.current);return n.addEventListener("resize",t),"undefined"!==typeof ResizeObserver&&(e=new ResizeObserver(t),Array.from(Ee.current.children).forEach((function(t){e.observe(t)}))),function(){t.clear(),n.removeEventListener("resize",t),e&&e.disconnect()}}),[Pe,Ne]);var _e=o.useMemo((function(){return(0,w.Z)((function(){Ne()}))}),[Ne]);o.useEffect((function(){return function(){_e.clear()}}),[_e]),o.useEffect((function(){fe(!0)}),[]),o.useEffect((function(){Pe(),Ne()})),o.useEffect((function(){Be(A1!==ve)}),[Be,ve]),o.useImperativeHandle(d,(function(){return{updateIndicator:Pe,updateScrollButtons:Ne}}),[Pe,Ne]);var ze=(0,u.jsx)(D1,(0,r.Z)({},H,{className:(0,y.default)(se.indicator,H.className),ownerState:ae,style:(0,r.Z)({},ve,H.style)})),He=0,We=o.Children.map(h,(function(e){if(!o.isValidElement(e))return null;var t=void 0===e.props.value?He:e.props.value;Ze.set(t,He);var n=t===G;return He+=1,o.cloneElement(e,(0,r.Z)({fullWidth:"fullWidth"===K,indicator:n&&!pe&&ze,selected:n,selectionFollowsFocus:F,onChange:O,textColor:q,value:t},1!==He||!1!==G||e.props.tabIndex?{}:{tabIndex:0}))})),Ve=function(){var e={};e.scrollbarSizeListener=$?(0,u.jsx)(P1,{onChange:Fe,className:(0,y.default)(se.scrollableX,se.hideScrollbar)}):null;var t=xe.start||xe.end,n=$&&("auto"===R&&t||!0===R);return e.scrollButtonStart=n?(0,u.jsx)(A,(0,r.Z)({slots:{StartScrollButtonIcon:L.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:le},orientation:D,direction:s?"right":"left",onClick:Ie,disabled:!xe.start},V,{className:(0,y.default)(se.scrollButtons,V.className)})):null,e.scrollButtonEnd=n?(0,u.jsx)(A,(0,r.Z)({slots:{EndScrollButtonIcon:L.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:ce},orientation:D,direction:s?"left":"right",onClick:Re,disabled:!xe.end},V,{className:(0,y.default)(se.scrollButtons,V.className)})):null,e}();return(0,u.jsxs)(Z1,(0,r.Z)({className:(0,y.default)(se.root,m),ownerState:ae,ref:n,as:g},Q,{children:[Ve.scrollButtonStart,Ve.scrollbarSizeListener,(0,u.jsxs)(O1,{className:se.scroller,ownerState:ae,style:(0,t.Z)({overflow:Se.overflow},ee?"margin".concat(s?"Left":"Right"):"marginBottom",X?void 0:-Se.scrollbarWidth),ref:Oe,onScroll:_e,children:[(0,u.jsx)(E1,{"aria-label":l,"aria-labelledby":c,"aria-orientation":"vertical"===D?"vertical":null,className:se.flexContainer,ownerState:ae,onKeyDown:function(e){var t=Ee.current,n=(0,w1.Z)(t).activeElement;if("tab"===n.getAttribute("role")){var r="horizontal"===D?"ArrowLeft":"ArrowUp",o="horizontal"===D?"ArrowRight":"ArrowDown";switch("horizontal"===D&&s&&(r="ArrowRight",o="ArrowLeft"),e.key){case r:e.preventDefault(),k1(t,n,S1);break;case o:e.preventDefault(),k1(t,n,j1);break;case"Home":e.preventDefault(),k1(t,null,j1);break;case"End":e.preventDefault(),k1(t,null,S1)}}},ref:Ee,role:"tablist",children:We}),pe&&ze]}),Ve.scrollButtonEnd]}))})),T1=M1;function I1(e){return(0,F.Z)("MuiTab",e)}var R1=(0,R.Z)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),F1=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],B1=(0,P.ZP)(Qy.Z,{name:"MuiTab",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.label&&n.icon&&t.labelIcon,t["textColor".concat((0,Zn.Z)(n.textColor))],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})((function(e){var n,o,i,a=e.theme,s=e.ownerState;return(0,r.Z)({},a.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},s.label&&{flexDirection:"top"===s.iconPosition||"bottom"===s.iconPosition?"column":"row"},{lineHeight:1.25},s.icon&&s.label&&(0,t.Z)({minHeight:72,paddingTop:9,paddingBottom:9},"& > .".concat(R1.iconWrapper),(0,r.Z)({},"top"===s.iconPosition&&{marginBottom:6},"bottom"===s.iconPosition&&{marginTop:6},"start"===s.iconPosition&&{marginRight:a.spacing(1)},"end"===s.iconPosition&&{marginLeft:a.spacing(1)})),"inherit"===s.textColor&&(n={color:"inherit",opacity:.6},(0,t.Z)(n,"&.".concat(R1.selected),{opacity:1}),(0,t.Z)(n,"&.".concat(R1.disabled),{opacity:(a.vars||a).palette.action.disabledOpacity}),n),"primary"===s.textColor&&(o={color:(a.vars||a).palette.text.secondary},(0,t.Z)(o,"&.".concat(R1.selected),{color:(a.vars||a).palette.primary.main}),(0,t.Z)(o,"&.".concat(R1.disabled),{color:(a.vars||a).palette.text.disabled}),o),"secondary"===s.textColor&&(i={color:(a.vars||a).palette.text.secondary},(0,t.Z)(i,"&.".concat(R1.selected),{color:(a.vars||a).palette.secondary.main}),(0,t.Z)(i,"&.".concat(R1.disabled),{color:(a.vars||a).palette.text.disabled}),i),s.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},s.wrapped&&{fontSize:a.typography.pxToRem(12)})})),L1=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiTab"}),i=n.className,a=n.disabled,s=void 0!==a&&a,l=n.disableFocusRipple,c=void 0!==l&&l,d=n.fullWidth,p=n.icon,f=n.iconPosition,h=void 0===f?"top":f,m=n.indicator,v=n.label,g=n.onChange,x=n.onClick,w=n.onFocus,C=n.selected,j=n.selectionFollowsFocus,S=n.textColor,k=void 0===S?"inherit":S,Z=n.value,O=n.wrapped,E=void 0!==O&&O,D=(0,b.Z)(n,F1),P=(0,r.Z)({},n,{disabled:s,disableFocusRipple:c,selected:C,icon:!!p,iconPosition:h,label:!!v,fullWidth:d,textColor:k,wrapped:E}),A=function(e){var t=e.classes,n=e.textColor,r=e.fullWidth,o=e.wrapped,i=e.icon,a=e.label,s=e.selected,l=e.disabled,c={root:["root",i&&a&&"labelIcon","textColor".concat((0,Zn.Z)(n)),r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return(0,M.Z)(c,I1,t)}(P),I=p&&v&&o.isValidElement(p)?o.cloneElement(p,{className:(0,y.default)(A.iconWrapper,p.props.className)}):p;return(0,u.jsxs)(B1,(0,r.Z)({focusRipple:!c,className:(0,y.default)(A.root,i),ref:t,role:"tab","aria-selected":C,disabled:s,onClick:function(e){!C&&g&&g(e,Z),x&&x(e)},onFocus:function(e){j&&!C&&g&&g(e,Z),w&&w(e)},ownerState:P,tabIndex:C?0:-1},D,{children:["top"===h||"start"===h?(0,u.jsxs)(o.Fragment,{children:[I,v]}):(0,u.jsxs)(o.Fragment,{children:[v,I]}),m]}))})),N1=L1,_1=function(e){var t=e.value,n=e.selectedTab,r=e.label,o=e.resultCount,i=t===n,a={cursor:"pointer",borderRadius:"50px",display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",height:"30px",bgcolor:i?"primaryDark.600":"#FFF",border:i?"none":"1px solid #BFC6D7",gap:"8px",px:"12px",color:i?"#FFF":"primaryDark.500",textTransform:"uppercase",fontSize:"11px !important",fontWeight:600};return(0,u.jsxs)(da.Z,{component:"button",sx:a,children:[(0,u.jsx)(rn.Z,{variant:"heading5",children:r})," ",(0,u.jsx)(rn.Z,{color:i?"common.white":"primaryDark.500",variant:"heading5",children:o})]})};function z1(e){return(0,F.Z)("MuiTabPanel",e)}(0,R.Z)("MuiTabPanel",["root"]);var H1=["children","className","value"],W1=(0,P.ZP)("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){return{padding:e.theme.spacing(3)}})),V1=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiTabPanel"}),i=n.children,a=n.className,s=n.value,l=(0,b.Z)(n,H1),c=(0,r.Z)({},n),d=function(e){var t=e.classes;return(0,M.Z)({root:["root"]},z1,t)}(c),p=o.useContext(r1);if(null===p)throw new TypeError("No TabContext provided");var f=function(e,t){return null===e.idPrefix?null:"".concat(e.idPrefix,"-P-").concat(t)}(p,s),h=function(e,t){return null===e.idPrefix?null:"".concat(e.idPrefix,"-T-").concat(t)}(p,s);return(0,u.jsx)(W1,(0,r.Z)({"aria-labelledby":h,className:(0,y.default)(d.root,a),hidden:s!==p.value,id:f,ref:t,role:"tabpanel",ownerState:c},l,{children:s===p.value&&i}))})),U1=V1;function q1(e){return(0,F.Z)("MuiLinearProgress",e)}(0,R.Z)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);var G1,Y1,K1,J1,X1,Q1,$1,e2,t2,n2,r2,o2,i2,a2=["className","color","value","valueBuffer","variant"],s2=(0,Go.F4)($1||($1=G1||(G1=(0,qo.Z)(["\n  0% {\n    left: -35%;\n    right: 100%;\n  }\n\n  60% {\n    left: 100%;\n    right: -90%;\n  }\n\n  100% {\n    left: 100%;\n    right: -90%;\n  }\n"])))),l2=(0,Go.F4)(e2||(e2=Y1||(Y1=(0,qo.Z)(["\n  0% {\n    left: -200%;\n    right: 100%;\n  }\n\n  60% {\n    left: 107%;\n    right: -8%;\n  }\n\n  100% {\n    left: 107%;\n    right: -8%;\n  }\n"])))),c2=(0,Go.F4)(t2||(t2=K1||(K1=(0,qo.Z)(["\n  0% {\n    opacity: 1;\n    background-position: 0 -23px;\n  }\n\n  60% {\n    opacity: 0;\n    background-position: 0 -23px;\n  }\n\n  100% {\n    opacity: 1;\n    background-position: -200px -23px;\n  }\n"])))),u2=function(e,t){return"inherit"===t?"currentColor":e.vars?e.vars.palette.LinearProgress["".concat(t,"Bg")]:"light"===e.palette.mode?(0,A.$n)(e.palette[t].main,.62):(0,A._j)(e.palette[t].main,.5)},d2=(0,P.ZP)("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["color".concat((0,Zn.Z)(n.color))],t[n.variant]]}})((function(e){var t=e.ownerState,n=e.theme;return(0,r.Z)({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:u2(n,t.color)},"inherit"===t.color&&"buffer"!==t.variant&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},"buffer"===t.variant&&{backgroundColor:"transparent"},"query"===t.variant&&{transform:"rotate(180deg)"})})),p2=(0,P.ZP)("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:function(e,t){var n=e.ownerState;return[t.dashed,t["dashedColor".concat((0,Zn.Z)(n.color))]]}})((function(e){var t=e.ownerState,n=e.theme,o=u2(n,t.color);return(0,r.Z)({position:"absolute",marginTop:0,height:"100%",width:"100%"},"inherit"===t.color&&{opacity:.3},{backgroundImage:"radial-gradient(".concat(o," 0%, ").concat(o," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})}),(0,Go.iv)(n2||(n2=J1||(J1=(0,qo.Z)(["\n    animation: "," 3s infinite linear;\n  "]))),c2)),f2=(0,P.ZP)("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:function(e,t){var n=e.ownerState;return[t.bar,t["barColor".concat((0,Zn.Z)(n.color))],("indeterminate"===n.variant||"query"===n.variant)&&t.bar1Indeterminate,"determinate"===n.variant&&t.bar1Determinate,"buffer"===n.variant&&t.bar1Buffer]}})((function(e){var t=e.ownerState,n=e.theme;return(0,r.Z)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:"inherit"===t.color?"currentColor":(n.vars||n).palette[t.color].main},"determinate"===t.variant&&{transition:"transform .".concat(4,"s linear")},"buffer"===t.variant&&{zIndex:1,transition:"transform .".concat(4,"s linear")})}),(function(e){var t=e.ownerState;return("indeterminate"===t.variant||"query"===t.variant)&&(0,Go.iv)(r2||(r2=X1||(X1=(0,qo.Z)(["\n      width: auto;\n      animation: "," 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n    "]))),s2)})),h2=(0,P.ZP)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:function(e,t){var n=e.ownerState;return[t.bar,t["barColor".concat((0,Zn.Z)(n.color))],("indeterminate"===n.variant||"query"===n.variant)&&t.bar2Indeterminate,"buffer"===n.variant&&t.bar2Buffer]}})((function(e){var t=e.ownerState,n=e.theme;return(0,r.Z)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},"buffer"!==t.variant&&{backgroundColor:"inherit"===t.color?"currentColor":(n.vars||n).palette[t.color].main},"inherit"===t.color&&{opacity:.3},"buffer"===t.variant&&{backgroundColor:u2(n,t.color),transition:"transform .".concat(4,"s linear")})}),(function(e){var t=e.ownerState;return("indeterminate"===t.variant||"query"===t.variant)&&(0,Go.iv)(o2||(o2=Q1||(Q1=(0,qo.Z)(["\n      width: auto;\n      animation: "," 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;\n    "]))),l2)})),m2=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiLinearProgress"}),o=n.className,i=n.color,a=void 0===i?"primary":i,s=n.value,l=n.valueBuffer,c=n.variant,d=void 0===c?"indeterminate":c,p=(0,b.Z)(n,a2),f=(0,r.Z)({},n,{color:a,variant:d}),h=function(e){var t=e.classes,n=e.variant,r=e.color,o={root:["root","color".concat((0,Zn.Z)(r)),n],dashed:["dashed","dashedColor".concat((0,Zn.Z)(r))],bar1:["bar","barColor".concat((0,Zn.Z)(r)),("indeterminate"===n||"query"===n)&&"bar1Indeterminate","determinate"===n&&"bar1Determinate","buffer"===n&&"bar1Buffer"],bar2:["bar","buffer"!==n&&"barColor".concat((0,Zn.Z)(r)),"buffer"===n&&"color".concat((0,Zn.Z)(r)),("indeterminate"===n||"query"===n)&&"bar2Indeterminate","buffer"===n&&"bar2Buffer"]};return(0,M.Z)(o,q1,t)}(f),m=(0,j.Z)(),v={},g={bar1:{},bar2:{}};if("determinate"===d||"buffer"===d)if(void 0!==s){v["aria-valuenow"]=Math.round(s),v["aria-valuemin"]=0,v["aria-valuemax"]=100;var x=s-100;"rtl"===m.direction&&(x=-x),g.bar1.transform="translateX(".concat(x,"%)")}else 0;if("buffer"===d)if(void 0!==l){var w=(l||0)-100;"rtl"===m.direction&&(w=-w),g.bar2.transform="translateX(".concat(w,"%)")}else 0;return(0,u.jsxs)(d2,(0,r.Z)({className:(0,y.default)(h.root,o),ownerState:f,role:"progressbar"},v,{ref:t},p,{children:["buffer"===d?(0,u.jsx)(p2,{className:h.dashed,ownerState:f}):null,(0,u.jsx)(f2,{className:h.bar1,ownerState:f,style:g.bar1}),"determinate"===d?null:(0,u.jsx)(h2,{className:h.bar2,ownerState:f,style:g.bar2})]}))})),v2=m2,g2=["sx","value","searchParams","resource","onLoadCount","disableNoRecords","onDataLoaded","height","components","hideFooter"],y2=function(e){var t,n,r,o=e.sx,i=e.value,a=e.searchParams,s=e.resource,c=e.onLoadCount,d=e.disableNoRecords,p=void 0!==d&&d,f=e.onDataLoaded,h=e.height,m=e.components,v=e.hideFooter,g=void 0===v||v,y=Nn(e,g2),b=new URLSearchParams(a).toString(),x=b?"".concat(s,"?").concat(b):"".concat(s),w=hi({resource:x,refetchOnMount:!0,refetchOnReconnect:!1,refetchOnWindowFocus:!0,onSuccess:function(e){if(c(null===e||void 0===e?void 0:e.data.count),e){var t=e.data.count,n=e.data.results;c(t),f&&f(n)}}}),C=w.data,j=w.isLoading;return(0,u.jsxs)(U1,{value:i,sx:{overflow:"hidden",bgcolor:"white",p:0,position:"relative"},children:[(0,u.jsx)(l0._$r,(0,l.Z)({rows:null!==(t=null===C||void 0===C||null===(n=C.data)||void 0===n?void 0:n.results)&&void 0!==t?t:[],getRowId:function(e){return e.id},loading:j,hideFooter:(null===m||void 0===m||!m.Pagination)&&g,components:(0,l.Z)({LoadingOverlay:function(){return(0,u.jsx)(v2,{sx:{backgroundColor:"secondaryBlue.200","& .MuiLinearProgress-bar":{backgroundColor:"secondaryBlue.100"}}})}},m),sx:(0,l.Z)({border:"none","& .MuiDataGrid-main":{height:h},".withDashboardCard & .MuiDataGrid-main":{borderBottom:"1px solid ".concat(tr.IV[250]," !important")},"& .MuiDataGrid-footerContainer":{justifyContent:"center"}},o)},y)),j?null:!p&&!(null!==C&&void 0!==C&&null!==(r=C.data.results)&&void 0!==r&&r.length)&&(0,u.jsx)(RI,{type:"list"})]})},b2=function(e){var t=e.sx,n=e.renderComponent,r=e.headlineSx,o=e.renderComponentSx,i=e.headline,a=e.headlineStartIcon,s=e.headlineStartIconWidth,c=e.headlineEndIcon,d=e.headlineEndElement,p=e.link,f=e.mainCardClassName,h=e.viewAllClassName,m=e.linkText,v=void 0===m?"view all":m,g=e.linkSx,y=e.linkStartIcon,b=e.mainStackSpacing,x=void 0===b?2:b;return(0,u.jsx)(NZ,{className:f||void 0,elevation:0,sx:(0,l.Z)({overflow:"visible",p:3,pt:3.5,backgroundColor:"common.white",border:"1px solid",borderColor:"secondaryBlue.100",borderRadius:2},t),children:(0,u.jsxs)(nn.Z,{spacing:x,minHeight:{xs:"",xl:170},height:"100%",children:[(0,u.jsxs)(nn.Z,{width:"100%",direction:"row",alignItems:"center",justifyContent:"space-between",children:[a?(0,u.jsx)(nn.Z,{direction:"row",width:"100%",justifyContent:"space-between",alignItems:"center",children:(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",children:[a&&(0,u.jsx)(tn,{component:"img",src:a,width:s}),"string"===typeof i?(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",sx:(0,l.Z)({},r),children:i}):{headline:i}]})}):(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",sx:(0,l.Z)({},r),children:i}),c]}),p&&(0,u.jsx)($n,{to:p,children:(0,u.jsxs)(nn.Z,{spacing:1,direction:"row",alignItems:"center",sx:(0,l.Z)({pr:1},g),className:h||void 0,children:[y,(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryLight.500",children:v})]})}),d&&d]}),(0,u.jsx)(tn,{sx:(0,l.Z)({},o),children:n})]})})},x2=[{id:"default-all",title:"All"}],w2=["sx","panelConfig","searchParams","visualStyle","resource","height","disableTabView","tabsClassName","onLoadCount","onDataLoaded"],C2=["sx","panelConfig","searchParams","visualStyle","resource","height","disableTabView","tabsClassName","onLoadCount","onDataLoaded","withDashboardCard"],j2={".MuiDataGrid-virtualScrollerRenderZone":{width:"100%"},".MuiDataGrid-row":{border:"2px solid transparent",width:"100%",borderBottom:"1px solid",borderBottomColor:"primaryDark.150","&:hover":{boxShadow:"none",background:tr.dx[50]}},".Mui-selected":{border:"2px solid",borderColor:"secondaryBlue.200",backgroundColor:"".concat(tr.dx[50]," !important"),"&>*:nth-child(2)>*":{color:"primaryLight.500"}}},S2=function(e){var n=e.sx,r=e.panelConfig,i=void 0===r?x2:r,a=e.searchParams,s=e.visualStyle,c=void 0===s?"secondary":s,d=e.resource,p=e.height,f=e.disableTabView,h=void 0!==f&&f,m=e.tabsClassName,v=e.onLoadCount,g=e.onDataLoaded,y=Nn(e,w2),b=(0,o.useState)("0"),x=(0,Le.Z)(b,2),w=x[0],C=x[1],j=(0,o.useState)({}),S=(0,Le.Z)(j,2),k=S[0],Z=S[1];return(0,u.jsx)(da.Z,{sx:{width:"100%",position:"relative"},children:(0,u.jsx)(o1,{value:w,children:(0,u.jsxs)(nn.Z,{sx:{width:"100%"},children:[!h&&(0,u.jsx)(T1,{className:m||void 0,value:w,onChange:function(e,t){e.stopPropagation(),C(t)},"aria-label":"secondary tabs example",sx:{mb:2,mt:2,p:0},TabIndicatorProps:{style:{display:"none"}},children:null===i||void 0===i?void 0:i.map((function(e,t){var n=e.title,r=k[t];return(0,u.jsx)(N1,{value:"".concat(t),disableRipple:!0,sx:{p:0,mx:1,minHeight:"2rem",minWidth:0,"&.Mui-selected":{p:0}},icon:(0,u.jsx)(_1,{resultCount:r,value:"".concat(t),selectedTab:w,label:n})})}))}),null===i||void 0===i?void 0:i.map((function(e,r){return(0,u.jsx)(y2,(0,l.Z)({hideFooter:!0,resource:null!==d&&void 0!==d?d:"",sx:(0,l.Z)((0,l.Z)({},"secondary"===c&&j2),{},{"& .MuiDataGrid-columnHeaderTitleContainer":{px:0}},n),height:p,value:"".concat(r),searchParams:(0,l.Z)((0,l.Z)({},a),null===e||void 0===e?void 0:e.search),onLoadCount:function(e){!function(e){Z((function(n){return(0,l.Z)((0,l.Z)({},n),{},(0,t.Z)({},r,e))}))}(e),v&&v(e)},onDataLoaded:g?function(e){return g(e)}:function(){}},y),e.id?e.id:r)}))]})})})},k2=function(e){var t,n,r,o,i=e.sx,a=e.panelConfig,s=void 0===a?x2:a,c=e.searchParams,d=e.visualStyle,p=void 0===d?"secondary":d,f=e.resource,h=e.height,m=e.disableTabView,v=void 0!==m&&m,g=e.tabsClassName,y=e.onLoadCount,b=e.onDataLoaded,x=e.withDashboardCard,w=Nn(e,C2);return(0,u.jsx)(u.Fragment,{children:x?(0,u.jsx)(b2,{headline:null!==(t=null===x||void 0===x?void 0:x.headline)&&void 0!==t?t:"",linkText:null!==(n=null===x||void 0===x?void 0:x.linkText)&&void 0!==n?n:"",link:null!==(r=null===x||void 0===x?void 0:x.link)&&void 0!==r?r:"",headlineEndElement:null!==(o=x.headlineEndElement)&&void 0!==o?o:null,sx:null===x||void 0===x?void 0:x.sx,renderComponent:(0,u.jsxs)(nn.Z,{className:"withDashboardCard",children:[(0,u.jsx)(un,{sx:{borderColor:"primaryDark.250"}}),(0,u.jsx)(S2,(0,l.Z)({sx:i,panelConfig:s,searchParams:c,visualStyle:p,resource:f,height:h,disableTabView:v,tabsClassName:g,onLoadCount:y,onDataLoaded:b},w))]})}):(0,u.jsx)(S2,(0,l.Z)({sx:i,panelConfig:s,searchParams:c,visualStyle:p,resource:f,height:h,disableTabView:v,tabsClassName:g,onLoadCount:y,onDataLoaded:b},w))})},Z2=function(e){var n=e.colorInner,r=e.colorOuter,o=e.valueInner,i=e.valueOuter,a=o/(o+i)*100,s={width:"8rem!important",height:"8rem!important",position:"absolute"},c={width:"7.25rem!important",height:"7.25rem!important",padding:".66rem",margin:"0.375rem"},d=function(e){return o===i?e?s:c:e?o>i?c:s:o<i?c:s};return(0,u.jsxs)(nn.Z,{sx:{position:"relative",pt:2,margin:"auto",display:o||i?null:"none"},children:[(0,u.jsx)(Zo.Z,{variant:"determinate",sx:(0,l.Z)((0,t.Z)({filter:"drop-shadow(0px 6px 8px ".concat((0,rs._2)(r),"73)"),color:r},"& .".concat(CM.Z.circle),{strokeLinecap:"round"}),d(!0)),value:100-a,thickness:4}),(0,u.jsx)(Zo.Z,{variant:"determinate",thickness:4,sx:(0,l.Z)((0,t.Z)({filter:"drop-shadow(0px 6px 8px ".concat((0,rs._2)(n),"73)"),color:n},"& .".concat(CM.Z.circle),{strokeLinecap:"round"}),d(!1)),value:a})]})},O2=["title","titleId"];function E2(){return E2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E2.apply(this,arguments)}function D2(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function P2(e,t){var n=e.title,r=e.titleId,i=D2(e,O2);return o.createElement("svg",E2({width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,i2||(i2=o.createElement("path",{d:"M9.01204 0.666016C4.40954 0.666016 0.678711 4.39684 0.678711 8.99934C0.678711 13.6018 4.40954 17.3327 9.01204 17.3327C13.6145 17.3327 17.3454 13.6018 17.3454 8.99934C17.3454 4.39684 13.6145 0.666016 9.01204 0.666016ZM12.3454 6.49934C12.5587 6.49934 12.7812 6.57101 12.9445 6.73351C13.2695 7.05934 13.2695 7.606 12.9445 7.93183L9.81954 11.031C8.86037 11.9893 7.39455 11.846 6.64205 10.7177L5.80872 9.46768C5.55372 9.08518 5.66037 8.55184 6.0437 8.29601C6.4262 8.04101 6.95954 8.14766 7.21537 8.53099L8.04871 9.78099C8.21704 10.0335 8.43289 10.0735 8.64705 9.85851L11.7462 6.73351C11.9095 6.57101 12.132 6.49934 12.3454 6.49934Z",fill:"#ABEB4D"})))}var A2,M2=o.forwardRef(P2),T2=(n.p,["title","titleId"]);function I2(){return I2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I2.apply(this,arguments)}function R2(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function F2(e,t){var n=e.title,r=e.titleId,i=R2(e,T2);return o.createElement("svg",I2({width:23,height:17,viewBox:"0 0 23 17",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,A2||(A2=o.createElement("path",{d:"M3.97656 0.998047C3.42456 0.998047 2.97656 1.44575 2.97656 1.99805C2.97656 2.55035 3.42456 2.99805 3.97656 2.99805H19.9766C20.5286 2.99805 20.9766 2.55035 20.9766 1.99805C20.9766 1.44575 20.5286 0.998047 19.9766 0.998047H3.97656ZM3.97656 4.99805C2.31956 4.99805 0.976562 6.34115 0.976562 7.99805V13.998C0.976562 15.655 2.31956 16.998 3.97656 16.998H19.9766C21.6336 16.998 22.9766 15.655 22.9766 13.998V7.99805C22.9766 6.34115 21.6336 4.99805 19.9766 4.99805H3.97656ZM4.32056 6.99805H4.97656C4.97656 8.10305 4.08156 8.99805 2.97656 8.99805V8.34205C2.97656 7.60505 3.58356 6.99795 4.32056 6.99805ZM18.9766 6.99805H19.6326C20.3696 6.99805 20.9766 7.60505 20.9766 8.34205V8.99805C19.8716 8.99805 18.9766 8.10305 18.9766 6.99805ZM11.9766 7.99805C13.6336 7.99805 14.9766 9.34105 14.9766 10.998C14.9766 12.655 13.6336 13.998 11.9766 13.998C10.3196 13.998 8.97656 12.655 8.97656 10.998C8.97656 9.34105 10.3196 7.99805 11.9766 7.99805ZM11.9766 9.99805C11.4246 9.99805 10.9766 10.446 10.9766 10.998C10.9766 11.55 11.4246 11.998 11.9766 11.998C12.5286 11.998 12.9766 11.55 12.9766 10.998C12.9766 10.446 12.5286 9.99805 11.9766 9.99805ZM2.97656 12.998C4.08156 12.998 4.97656 13.893 4.97656 14.998H4.32056C3.58356 14.998 2.97656 14.391 2.97656 13.654V12.998ZM20.9766 12.998V13.654C20.9766 14.391 20.3696 14.998 19.6326 14.998H18.9766C18.9766 13.893 19.8716 12.998 20.9766 12.998Z",fill:"current"})))}var B2,L2=o.forwardRef(F2),N2=(n.p,["title","titleId"]);function _2(){return _2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_2.apply(this,arguments)}function z2(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function H2(e,t){var n=e.title,r=e.titleId,i=z2(e,N2);return o.createElement("svg",_2({width:18,height:18,viewBox:"0 0 18 18",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,B2||(B2=o.createElement("path",{d:"M9.00096 0.678467C8.12263 0.678467 7.2493 1.02431 6.5793 1.69431L1.68347 6.59013C0.343467 7.93096 0.343467 10.0935 1.68347 11.4343L6.5793 16.3301C7.92013 17.6701 10.0826 17.6701 11.4235 16.3301L16.3193 11.4343C17.6593 10.0935 17.6593 7.93096 16.3193 6.59013L11.4235 1.69431C10.7526 1.02431 9.87929 0.678467 9.00096 0.678467ZM9.00096 4.84513C9.46179 4.84513 9.83429 5.21847 9.83429 5.67847V9.84513C9.83429 10.306 9.46179 10.6785 9.00096 10.6785C8.54096 10.6785 8.16763 10.306 8.16763 9.84513V5.67847C8.16763 5.21847 8.54096 4.84513 9.00096 4.84513ZM9.00096 11.5118C9.46179 11.5118 9.83429 11.8851 9.83429 12.3451C9.83429 12.806 9.46179 13.1785 9.00096 13.1785C8.54096 13.1785 8.16763 12.806 8.16763 12.3451C8.16763 11.8851 8.54096 11.5118 9.00096 11.5118Z",fill:"current"})))}var W2,V2=o.forwardRef(H2),U2=(n.p,function(e){var t=e.resource,n=(0,o.useState)(0),r=(0,Le.Z)(n,2),i=r[0],a=r[1];return(0,Yt.useQueryClient)().setMutationDefaults(["".concat(t,"-create")],{mutationFn:function(e){return pi.Z.post("".concat(t),e,{onUploadProgress:function(e){a(Math.round(100*e.loaded/e.total))}})}}),(0,l.Z)((0,l.Z)({},(0,Yt.useMutation)(["".concat(t,"-create")])),{},{uploadProgress:i})}),q2=["title","titleId"];function G2(){return G2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G2.apply(this,arguments)}function Y2(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function K2(e,t){var n=e.title,r=e.titleId,i=Y2(e,q2);return o.createElement("svg",G2({width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,W2||(W2=o.createElement("path",{d:"M8.99935 0.62793C4.39702 0.62793 0.666016 4.35876 0.666016 8.96126C0.666016 13.5638 4.39702 17.2946 8.99935 17.2946C13.6018 17.2946 17.3327 13.5638 17.3327 8.96126C17.3327 4.35876 13.6018 0.62793 8.99935 0.62793ZM6.49935 5.62793C6.71252 5.62793 6.9356 5.6996 7.09835 5.8621L8.99935 7.76293L10.9002 5.8621C11.0635 5.6996 11.286 5.62793 11.4993 5.62793C11.7127 5.62793 11.9352 5.6996 12.0985 5.8621C12.4235 6.18793 12.4235 6.73459 12.0985 7.06042L10.1977 8.96126L12.0985 10.8621C12.4235 11.1879 12.4235 11.7346 12.0985 12.0604C11.7727 12.3854 11.226 12.3854 10.9002 12.0604L8.99935 10.1596L7.09835 12.0604C6.77293 12.3854 6.22585 12.3854 5.90035 12.0604C5.57493 11.7346 5.57493 11.1879 5.90035 10.8621L7.80101 8.96126L5.90035 7.06042C5.57493 6.73459 5.57493 6.18793 5.90035 5.8621C6.06318 5.6996 6.2861 5.62793 6.49935 5.62793Z",fill:"current"})))}var J2,X2=o.forwardRef(K2),Q2=(n.p,function(e){var t=e.data,n=e.isOpen,r=e.setIsOpen,i=(0,o.useState)({name:"",size:0,errorMsg:null}),a=(0,Le.Z)(i,2),s=a[0],c=a[1],d=(0,o.useState)(!1),p=(0,Le.Z)(d,2),f=p[0],h=p[1],m=(0,Ms.J)(),v=U2({resource:"/milestones/".concat(null===t||void 0===t?void 0:t.id,"/seller-invoice")}),g=v.mutate,y=v.uploadProgress,b=fd({defaultValues:{invoiceFile:null},mode:"onChange"}),x=b.getValues,w=b.setValue,C=b.reset,j=function(){var e=ds(hs().mark((function e(t){var n,r;return hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return n=t[0],c((0,l.Z)((0,l.Z)({},s),{},{name:null===n||void 0===n?void 0:n.name,size:null===n||void 0===n?void 0:n.size})),e.next=6,(0,rs.y3)(t[0]);case 6:(r=e.sent)&&w("invoiceFile",String(r));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,u.jsx)(ys,{open:n,onClose:function(){return r(!1)},children:(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsxs)(nn.Z,{direction:"row",spacing:2,children:[(0,u.jsx)(io.Z,{sx:{borderRadius:"4px",bgcolor:"secondaryBlue.100",width:"3rem",height:"3rem",display:"flex",justifyContent:"center",alignItems:"center","&:hover":{bgcolor:"secondaryBlue.100"}},children:(0,u.jsx)(L2,{fill:tr.dx[700]})}),(0,u.jsxs)(nn.Z,{direction:"column",spacing:1,children:[(0,u.jsx)(rn.Z,{variant:"body3",fontWeight:600,children:"Request payment for"}),(0,u.jsx)(rn.Z,{variant:"body2",children:null===t||void 0===t?void 0:t.name})]})]}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{sx:{mt:2},children:[(0,u.jsx)(da.Z,{sx:{backgroundColor:"primaryDark.200",p:3,gap:1},children:(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"end",spacing:.5,children:[(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.500",children:"Company name:"}),(0,u.jsx)(un,{orientation:"horizontal",sx:{width:"3.5rem",pb:"3px",borderStyle:"dashed"}}),(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.600",fontWeight:600,children:"Top Digital Agency Limited"})]}),(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"end",spacing:.5,children:[(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.500",children:"company id number"}),(0,u.jsx)(un,{orientation:"horizontal",sx:{width:"2rem",pb:"3px",borderStyle:"dashed"}}),(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.600",fontWeight:600,children:"IE3613706OH"})]}),(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"start",sx:{mt:1},width:"100%",justifyContent:"space-between",spacing:.5,children:[(0,u.jsxs)(nn.Z,{direction:"row",children:[(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.500",sx:{whiteSpace:"nowrap"},children:"company address"}),(0,u.jsx)(un,{sx:{width:"3rem",pb:"3px",borderStyle:"dashed"}})]}),(0,u.jsx)(rn.Z,{variant:"body3",width:"100%",color:"primaryDark.600",fontWeight:600,children:"9 Main Street Co. Dublin Blackrock Dublin, A94 N6D0, Ireland"})]})]})}),(0,u.jsxs)(nn.Z,{spacing:2,mt:2,children:[(0,u.jsx)(rn.Z,{variant:"body2",color:"primaryDark.500",children:"Upload invoice"}),(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},b),{},{children:(0,u.jsx)("form",{children:(0,u.jsx)(E$,{name:"invoiceFile",onUpload:j,dropzoneProps:{accept:".pdf"},maxFileSize:1e7,sx:{maxHeight:"170px",width:"100%"}})})})),null!==x("invoiceFile")&&null!==s&&(0,u.jsx)(nn.Z,{spacing:1,width:"100%",children:(0,u.jsxs)(nn.Z,{spacing:1,width:"100%",height:"fit-content",sx:{p:2,textAlign:"center",bgcolor:"secondaryBlue.50",borderRadius:"0.5rem"},children:[(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",alignItems:"stretch",children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",justifyContent:"left",spacing:1.5,children:[(0,u.jsx)(da.Z,{component:"img",sx:{maxWidth:"3.5rem",maxHeight:"3.5rem",objectFit:"contain",borderRadius:"4px",p:0},src:(0,rs.wQ)(null===s||void 0===s?void 0:s.name)}),(0,u.jsxs)(nn.Z,{spacing:.5,alignItems:"start",children:[(0,u.jsxs)(nn.Z,{alignItems:"center",direction:"row",children:[(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.600",fontWeight:600,children:(0,rs.$G)(s.name,30)}),100===y&&null===(null===s||void 0===s?void 0:s.errorMsg)&&(0,u.jsx)(io.Z,{sx:{height:"10px",pointerEvents:"none"},children:(0,u.jsx)(M2,{})}),(null===s||void 0===s?void 0:s.errorMsg)&&(0,u.jsx)(io.Z,{sx:{height:"10px",pointerEvents:"none"},children:(0,u.jsx)(V2,{fill:tr.Us[500]})})]}),s.errorMsg?(0,u.jsx)(rn.Z,{variant:"body3",color:"secondaryPink.500",sx:{alignSelf:"start"},children:s.errorMsg}):(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.500",children:(0,rs.td)(s.size)})]})]}),(0,u.jsx)(io.Z,{onClick:function(){return C({invoiceFile:null}),void c({name:"",size:0,errorMsg:null})},disabled:f,disableRipple:!0,disableTouchRipple:!0,sx:{alignSelf:"start",mb:1,p:0,pt:"2px"},children:(0,u.jsx)(X2,{fill:f?tr.IV[300]:tr.IV[500]})})]}),f&&(0,u.jsxs)(nn.Z,{direction:"row",width:"100%",alignItems:"center",spacing:1,children:[(0,u.jsx)(da.Z,{sx:{height:"4px",width:"100%",borderRadius:"1rem"},children:(0,u.jsx)(v2,{value:y||0,variant:"determinate",color:"secondary"})}),(0,u.jsxs)(rn.Z,{variant:"heading5",color:"primaryDark.500",children:[y,"%"]})]})]})})]})]})]}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",sx:{justifyContent:"right"},children:[(0,u.jsx)(Wo,{variant:"secondary",onClick:function(){r(!1),C({invoiceFile:null}),c({name:"",size:0,errorMsg:null})},children:"Cancel"}),(0,u.jsx)(Wo,{onClick:function(){h(!0),g({invoice:x("invoiceFile")},{onError:function(e){var t=e.message;c((0,l.Z)((0,l.Z)({},s),{},{errorMsg:t}))},onSuccess:function(){setTimeout((function(){r(!1),h(!1),m()}),1e3)}})},disabled:f,children:"Confirm"})]})]})})}),$2=["title","titleId"];function e3(){return e3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e3.apply(this,arguments)}function t3(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function n3(e,t){var n=e.title,r=e.titleId,i=t3(e,$2);return o.createElement("svg",e3({width:21,height:21,viewBox:"0 0 21 21",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,J2||(J2=o.createElement("path",{d:"M10.0142 0.453186C4.49136 0.453186 0.0141602 4.93019 0.0141602 10.4532C0.0141602 15.9762 4.49136 20.4532 10.0142 20.4532C15.537 20.4532 20.0142 15.9762 20.0142 10.4532C20.0142 4.93019 15.537 0.453186 10.0142 0.453186ZM10.0142 5.45319C10.5665 5.45319 11.0142 5.90119 11.0142 6.45319V9.45319H14.0142C14.5665 9.45319 15.0142 9.90119 15.0142 10.4532C15.0142 11.0052 14.5665 11.4532 14.0142 11.4532H11.0142V14.4532C11.0142 15.0052 10.5665 15.4532 10.0142 15.4532C9.46186 15.4532 9.01416 15.0052 9.01416 14.4532V11.4532H6.01416C5.46186 11.4532 5.01416 11.0052 5.01416 10.4532C5.01416 9.90119 5.46186 9.45319 6.01416 9.45319H9.01416V6.45319C9.01416 5.90119 9.46186 5.45319 10.0142 5.45319Z",fill:"current"})))}var r3,o3=o.forwardRef(n3),i3=(n.p,["title","titleId"]);function a3(){return a3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a3.apply(this,arguments)}function s3(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l3(e,t){var n=e.title,r=e.titleId,i=s3(e,i3);return o.createElement("svg",a3({width:17,height:21,viewBox:"0 0 17 21",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,r3||(r3=o.createElement("path",{d:"M3.59033 0.498901C1.63933 0.498901 0.0283203 1.9789 0.0283203 3.8429V17.1549C0.0283203 19.0189 1.63933 20.4989 3.59033 20.4989H12.4663C14.4173 20.4989 16.0283 19.0189 16.0283 17.1549C16.0283 16.5019 16.0283 9.29691 16.0283 7.46791C16.0283 3.9049 12.5893 0.498901 9.02832 0.498901C4.81432 0.498901 4.80433 0.498901 3.59033 0.498901ZM10.0283 2.7489C11.7873 3.21591 13.3063 4.7149 13.7783 6.4679C13.1153 6.4779 12.5293 6.50491 12.0283 6.49891C10.5603 6.48091 10.0143 6.19491 9.99731 4.49891C9.99531 4.32391 10.0193 3.52891 10.0283 2.7489ZM8.02832 8.49891C8.58032 8.49891 9.02832 8.94691 9.02832 9.49892V13.4989H11.0283L8.02832 16.4989L5.02832 13.4989H7.02832V9.49892C7.02832 8.94691 7.47632 8.49891 8.02832 8.49891Z",fill:"current"})))}var c3,u3=o.forwardRef(l3),d3=(n.p,["title","titleId"]);function p3(){return p3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p3.apply(this,arguments)}function f3(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function h3(e,t){var n=e.title,r=e.titleId,i=f3(e,d3);return o.createElement("svg",p3({width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,c3||(c3=o.createElement("g",{id:"file-earmark-fill"},o.createElement("path",{id:"Vector",d:"M7.59033 2.4989C5.63933 2.4989 4.02832 3.9789 4.02832 5.8429V19.1549C4.02832 21.0189 5.63933 22.4989 7.59033 22.4989H16.4663C18.4173 22.4989 20.0283 21.0189 20.0283 19.1549C20.0283 18.5019 20.0283 11.2969 20.0283 9.4679C20.0283 5.9049 16.5893 2.4989 13.0283 2.4989C8.81432 2.4989 8.80433 2.4989 7.59033 2.4989ZM14.0283 4.7489C15.7873 5.2159 17.3063 6.7149 17.7783 8.4679C17.1153 8.4779 16.5293 8.5049 16.0283 8.4989C14.5603 8.4809 14.0143 8.1949 13.9973 6.4989C13.9953 6.3239 14.0193 5.5289 14.0283 4.7489Z",fill:"#BFC6D7"}))))}var m3,v3=o.forwardRef(h3),g3=(n.p,function(e){var t,n,r,i,a=e.projectId,s=(e.sx,e.currency),l=(0,o.useState)(!1),c=(0,Le.Z)(l,2),d=c[0],p=c[1],f=Yd(),h=null===f||void 0===f?void 0:f.includes(Kt.ks.Buyer),m=hi({resource:"/milestones?project=".concat(a),enabled:!!a}).data,v=null===m||void 0===m?void 0:m.data.results,g=[{field:"paymentStatus",headerName:"Status",flex:.2,renderCell:function(e){return(0,u.jsx)(EI,{text:e.value,componentReturnType:"dot"})}},{field:"name",headerName:"Milestone name",flex:.6,renderCell:function(e){return(0,u.jsx)(rn.Z,{variant:"body2",children:e.value})}},{field:"paid",headerName:"Paid",flex:.2,renderCell:function(e){return null!==e.value?(0,u.jsx)(rn.Z,{children:(0,rs.qJ)(e.value)}):(0,u.jsx)(rn.Z,{children:"-"})}},{field:"budget",headerName:"Amount",align:"right",headerAlign:"right",flex:.2,renderCell:function(e){return(0,u.jsx)(rn.Z,{sx:{fontSize:"0.875rem"},children:(0,rs.xG)(e.value,s)})}},{field:"invoice",headerName:" ",align:"right",headerAlign:"right",flex:.01,renderCell:function(e){var t=h&&!e.row.buyerInvoice,n=e.row.status!==Kt.tg.Approved;return(0,u.jsxs)(u.Fragment,{children:[h||e.row.sellerInvoice?(0,u.jsx)("a",{href:h?e.row.buyerInvoice:e.row.sellerInvoice,target:"_blank",rel:"noreferrer",children:(0,u.jsx)(io.Z,{sx:{color:"#fff",fontSize:"0.8rem"},disabled:t,color:"secondary",className:"react-joyride-step-3-active-project",children:(0,u.jsx)(ns,{placement:"top",title:"Download invoice",children:e.row.buyerInvoice?(0,u.jsx)(u3,{href:e.row.sellerInvoice,fill:t?"#A5AAB9":"#384572"}):(0,u.jsx)(v3,{})})})}):(0,u.jsx)(io.Z,{sx:{color:"#fff",fontSize:"0.8rem"},disabled:n,color:"secondary",onClick:function(){return p(!0)},children:(0,u.jsx)(ns,{placement:"top",title:"Upload invoice",className:"react-joyride-step-2-active-project",children:(0,u.jsx)(o3,{fill:n?"#A5AAB9":"#6D51F6"})})}),d&&(0,u.jsx)(Q2,{isOpen:d,setIsOpen:p,data:e.row})]})}}],y=function(){var e=null===v||void 0===v?void 0:v.reduce((function(e,t){return null===t.paid&&(e.unpaid+=t.budget),e}),{unpaid:0});return null===e||void 0===e?void 0:e.unpaid},b=function(){var e=null===v||void 0===v?void 0:v.reduce((function(e,t){return null!==t.paid&&(e.paid+=t.budget),e}),{paid:0});return null===e||void 0===e?void 0:e.paid};return(0,u.jsxs)(nn.Z,{spacing:4,direction:{sm:"column",xl:"row"},width:"100%",height:"100%",justifyContent:"space-between",position:"relative",children:[!(null!==v&&void 0!==v&&v.length)&&(0,u.jsx)(RI,{}),(0,u.jsxs)(nn.Z,{sx:{width:"35%",overflow:"visible",verticalAlign:"center"},margin:"auto",direction:"row",alignItems:"center",justifyContent:"center",spacing:2,children:[(0,u.jsx)(Z2,{colorOuter:"secondaryGreen.500",colorInner:"primaryDark.300",valueInner:null!==(t=y())&&void 0!==t?t:0,valueOuter:null!==(n=b())&&void 0!==n?n:0}),(0,u.jsxs)(nn.Z,{margin:{md:"initial",lg:"auto !important"},justifyContent:"center",spacing:2,children:[(0,u.jsxs)(nn.Z,{direction:"row",spacing:2,children:[(0,u.jsx)(tn,{sx:{borderRadius:"50%",width:18,height:18,border:"3px solid",borderColor:"secondaryGreen.200",backgroundColor:"secondaryGreen.500",alignSelf:"center"}}),(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.600",children:"Paid"}),(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.500",children:(0,rs.xG)(null!==(r=b())&&void 0!==r?r:0,Kt.CF.Usd)})]})]}),(0,u.jsxs)(nn.Z,{direction:"row",spacing:2,margin:"auto",children:[(0,u.jsx)(tn,{sx:{borderRadius:"50%",width:18,height:18,border:"3px solid",borderColor:"primaryDark.200",backgroundColor:"primaryDark.400",alignSelf:"center"}}),(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.600",children:"Due"}),(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.500",children:(0,rs.xG)(null!==(i=y())&&void 0!==i?i:0,Kt.CF.Usd)})]})]})]})]}),(0,u.jsx)(nn.Z,{width:"100%",children:(0,u.jsx)(k2,{columns:g,resource:"milestones",disableTabView:!0,searchParams:{project:a,limit:999},hideFooter:!0,disableNoRecords:!0,sx:{".MuiDataGrid-row":{borderBottom:"1px solid",borderColor:"secondaryBlue.100"}},autoHeight:!0})})]})}),y3=["title","titleId"];function b3(){return b3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b3.apply(this,arguments)}function x3(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function w3(e,t){var n=e.title,r=e.titleId,i=x3(e,y3);return o.createElement("svg",b3({width:16,height:17,viewBox:"0 0 16 17",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,m3||(m3=o.createElement("path",{d:"M4.67167 0.678711C4.21167 0.678711 3.83834 1.05204 3.83834 1.51204C1.9975 1.51204 0.505005 3.00454 0.505005 4.84538V5.73039L15.505 5.67871V4.84538C15.505 3.00454 14.0125 1.51204 12.1717 1.51204C12.1717 1.05204 11.7983 0.678711 11.3383 0.678711C10.8783 0.678711 10.505 1.05204 10.505 1.51204H5.505C5.505 1.05204 5.13167 0.678711 4.67167 0.678711ZM0.505005 7.34538V13.1787C0.505005 15.0195 1.9975 16.512 3.83834 16.512H12.1717C14.0125 16.512 15.505 15.0195 15.505 13.1787V7.34538H0.505005ZM10.505 9.01204C10.7183 9.01204 10.9408 9.08372 11.1042 9.24622C11.4292 9.57205 11.4292 10.1187 11.1042 10.4445L8.60417 12.9445C8.27833 13.2695 7.73168 13.2695 7.40584 12.9445L5.73918 11.2779C5.41418 10.952 5.41418 10.4054 5.73918 10.0795C6.06501 9.75455 6.61167 9.75455 6.9375 10.0795L8.005 11.1471L9.90584 9.24622C10.0692 9.08372 10.2917 9.01204 10.505 9.01204Z",fill:"current"})))}var C3,j3=o.forwardRef(w3),S3=(n.p,function(e){var t=e.variant,n=void 0===t?"start":t,r=e.date,o=e.text,i=e.sx,a=null!==o&&void 0!==o?o:"end"===n?"Due date":"Started",s=(0,l.Z)((0,l.Z)({},{width:127,height:75,borderRadius:"6px",p:"14px",bgcolor:"#F9F9F9",display:"flex",flexDirection:"column",gap:"6px"}),i);return(0,u.jsxs)(NZ,{elevation:0,sx:s,children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",spacing:1,children:["end"===n?(0,u.jsx)(j3,{fill:"#79829B"}):(0,u.jsx)(Pl,{fill:"#79829B"}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",children:a})]}),(0,u.jsx)(nn.Z,{direction:"row",alignItems:"center",spacing:1,justifyContent:"center",children:(0,u.jsx)(rn.Z,{variant:"heading3",color:"primaryDark.600",children:(0,rs.qJ)(r,"---")})})]})}),k3=function(e){var t,n=Pa(),r=(0,o.useState)(null),i=(0,Le.Z)(r,2),a=i[0],s=i[1],l=Ra({resource:"companies",id:null===n||void 0===n||null===(t=n.membership)||void 0===t?void 0:t.company,enabled:!!n,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1}).data,c=Ra({resource:"projects",id:e,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1}).data,u=Ra({resource:"companies",id:a,enabled:!!a,refetchOnWindowFocus:!1}).data;return(0,o.useEffect)((function(){null!==c&&null!==l&&((null===c||void 0===c?void 0:c.seller)===(null===l||void 0===l?void 0:l.id)&&s(null===c||void 0===c?void 0:c.buyer),(null===c||void 0===c?void 0:c.buyer)===(null===l||void 0===l?void 0:l.id)&&s(null===c||void 0===c?void 0:c.seller))}),[c,l]),u},Z3={background:"white",height:"40px",position:"relative",overflow:"hidden"},O3=function(e){var t=e.description,n=e.title,r=e.numberOfLettersToDisplay,i=void 0===r?103:r,a=e.onReadMoreClick,s=e.sx,c=(0,o.useState)(!1),d=(0,Le.Z)(c,2),p=d[0],f=d[1];return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(ys,{open:p,onClose:function(){return f(!1)},width:"35%",children:(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",alignItems:"center",children:[(0,u.jsx)(nn.Z,{alignItems:"center",justifyContent:"center",sx:{bgcolor:"#E5E8FF",width:"fit-content",height:"fit-content",borderRadius:"6px",p:2},children:(0,u.jsx)(j0,{fill:tr.dx[700],style:{width:24,height:24}})}),(0,u.jsx)(rn.Z,{variant:"heading3",color:"primaryDark.600",children:n})]}),(0,u.jsx)(un,{}),(0,u.jsx)(rn.Z,{color:"primaryDark.500",children:t}),(0,u.jsx)(un,{}),(0,u.jsx)(Wo,{onClick:function(){return f(!1)},variant:"primary",sx:{width:120,alignSelf:"end"},children:"Close"})]})}),(0,u.jsxs)(nn.Z,{spacing:2.5,sx:(0,l.Z)({},s),children:[(0,u.jsxs)(nn.Z,{spacing:1,children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",children:"description"}),(0,u.jsx)(rn.Z,{variant:"body2",color:"primaryDark.600",width:"85%",sx:Z3,children:t&&t.length<=i?t:(0,rs.$G)(t||"",i)})]}),t&&t.length>i&&(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryLight.500",sx:{cursor:"pointer",width:"fit-content"},onClick:function(){null===a||void 0===a||a(),f(!0)},children:"Read more"})]})]})},E3=function(e){var t,n=e.data,r=k3(null===n||void 0===n?void 0:n.id);return(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(nn.Z,{direction:"row",children:[(0,u.jsxs)(nn.Z,{spacing:10,width:"50%",className:"react-joyride-step-2-project",children:[(0,u.jsxs)(nn.Z,{spacing:1,children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",children:"Project name"}),(0,u.jsx)(rn.Z,{variant:"heading1",color:"primaryDark.600",sx:{display:"flex",alignItems:"center",gap:"10px"},fontSize:28,children:null===n||void 0===n?void 0:n.name})]}),(0,u.jsx)(nn.Z,{spacing:1,children:(0,u.jsx)(O3,{description:(0,rs.oN)(null===n||void 0===n?void 0:n.description),sx:{mt:3.2,width:"100%"},title:"Project description"})})]}),(0,u.jsxs)(nn.Z,{spacing:10,width:"50%",children:[(0,u.jsxs)(nn.Z,{spacing:1,direction:"row",justifyContent:"end",children:[(0,u.jsx)(S3,{date:null===n||void 0===n?void 0:n.start,text:"start date",sx:{width:"8.55rem"}}),(0,u.jsx)(S3,{date:null===n||void 0===n?void 0:n.end,variant:"end",text:"end date"})]}),(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",children:[(0,u.jsxs)(nn.Z,{width:"50%",spacing:1,children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",children:"cooperation with"}),(0,u.jsx)(rn.Z,{variant:"heading2",color:"primaryDark.600",textTransform:"capitalize",fontSize:"1.125rem",children:null===r||void 0===r?void 0:r.name})]}),(0,u.jsxs)(nn.Z,{width:"50%",spacing:2,children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",children:"budget"}),null!==n&&void 0!==n&&n.budget&&null!==n&&void 0!==n&&n.currency?(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.600",fontSize:{md:"1.45rem",lg:"1.75rem"},children:null!==(t=(0,rs.xG)(null===n||void 0===n?void 0:n.budget,null===n||void 0===n?void 0:n.currency))&&void 0!==t?t:"-"}):(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.600",fontSize:{md:"1.45rem",lg:"1.75rem"},children:"-"})]})]})]})]})})},D3=["title","titleId"];function P3(){return P3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P3.apply(this,arguments)}function A3(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function M3(e,t){var n=e.title,r=e.titleId,i=A3(e,D3);return o.createElement("svg",P3({width:15,height:18,viewBox:"0 0 15 18",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,C3||(C3=o.createElement("path",{d:"M3.82526 0.665527C2.19943 0.665527 0.856934 1.89886 0.856934 3.4522V14.5456C0.856934 16.0989 2.19943 17.3322 3.82526 17.3322H11.2219C12.8478 17.3322 14.1903 16.0989 14.1903 14.5456C14.1903 14.0031 14.1903 8.04722 14.1903 6.49888C14.1903 6.49055 14.1903 6.48137 14.1903 6.47304C14.1903 3.50386 11.3244 0.665527 8.35693 0.665527C4.84527 0.665527 4.83693 0.665527 3.82526 0.665527ZM9.19027 2.43637C10.6669 2.82803 12.0369 4.19304 12.4194 5.66554H10.4919C9.7511 5.66554 9.19027 5.14055 9.19027 4.54554V2.43637ZM5.0236 5.66554H5.85693C6.31693 5.66554 6.69027 6.03888 6.69027 6.49888C6.69027 6.95888 6.31693 7.33221 5.85693 7.33221H5.0236C4.5636 7.33221 4.19027 6.95888 4.19027 6.49888C4.19027 6.03888 4.5636 5.66554 5.0236 5.66554ZM5.0236 8.99889H10.0236C10.4836 8.99889 10.8569 9.37222 10.8569 9.83222C10.8569 10.2922 10.4836 10.6656 10.0236 10.6656H5.0236C4.5636 10.6656 4.19027 10.2922 4.19027 9.83222C4.19027 9.37222 4.5636 8.99889 5.0236 8.99889ZM5.0236 12.3322H10.0236C10.4836 12.3322 10.8569 12.7056 10.8569 13.1656C10.8569 13.6256 10.4836 13.9989 10.0236 13.9989H5.0236C4.5636 13.9989 4.19027 13.6256 4.19027 13.1656C4.19027 12.7056 4.5636 12.3322 5.0236 12.3322Z",fill:"current"})))}var T3,I3=o.forwardRef(M3),R3=(n.p,["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"]),F3=(0,P.ZP)(Qy.Z,{shouldForwardProp:function(e){return(0,P.FO)(e)||"classes"===e},name:"MuiListItemButton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((function(e){var n,o=e.theme,i=e.ownerState;return(0,r.Z)((n={display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:o.transitions.create("background-color",{duration:o.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(o.vars||o).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},(0,t.Z)(n,"&.".concat(ob.selected),(0,t.Z)({backgroundColor:o.vars?"rgba(".concat(o.vars.palette.primary.mainChannel," / ").concat(o.vars.palette.action.selectedOpacity,")"):(0,A.Fq)(o.palette.primary.main,o.palette.action.selectedOpacity)},"&.".concat(ob.focusVisible),{backgroundColor:o.vars?"rgba(".concat(o.vars.palette.primary.mainChannel," / calc(").concat(o.vars.palette.action.selectedOpacity," + ").concat(o.vars.palette.action.focusOpacity,"))"):(0,A.Fq)(o.palette.primary.main,o.palette.action.selectedOpacity+o.palette.action.focusOpacity)})),(0,t.Z)(n,"&.".concat(ob.selected,":hover"),{backgroundColor:o.vars?"rgba(".concat(o.vars.palette.primary.mainChannel," / calc(").concat(o.vars.palette.action.selectedOpacity," + ").concat(o.vars.palette.action.hoverOpacity,"))"):(0,A.Fq)(o.palette.primary.main,o.palette.action.selectedOpacity+o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:o.vars?"rgba(".concat(o.vars.palette.primary.mainChannel," / ").concat(o.vars.palette.action.selectedOpacity,")"):(0,A.Fq)(o.palette.primary.main,o.palette.action.selectedOpacity)}}),(0,t.Z)(n,"&.".concat(ob.focusVisible),{backgroundColor:(o.vars||o).palette.action.focus}),(0,t.Z)(n,"&.".concat(ob.disabled),{opacity:(o.vars||o).palette.action.disabledOpacity}),n),i.divider&&{borderBottom:"1px solid ".concat((o.vars||o).palette.divider),backgroundClip:"padding-box"},"flex-start"===i.alignItems&&{alignItems:"flex-start"},!i.disableGutters&&{paddingLeft:16,paddingRight:16},i.dense&&{paddingTop:4,paddingBottom:4})})),B3=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiListItemButton"}),i=n.alignItems,a=void 0===i?"center":i,s=n.autoFocus,l=void 0!==s&&s,c=n.component,d=void 0===c?"div":c,p=n.children,f=n.dense,h=void 0!==f&&f,m=n.disableGutters,v=void 0!==m&&m,g=n.divider,x=void 0!==g&&g,w=n.focusVisibleClassName,j=n.selected,S=void 0!==j&&j,k=n.className,Z=(0,b.Z)(n,R3),O=o.useContext(eb.Z),E=o.useMemo((function(){return{dense:h||O.dense||!1,alignItems:a,disableGutters:v}}),[a,O.dense,h,v]),D=o.useRef(null);(0,Tn.Z)((function(){l&&D.current&&D.current.focus()}),[l]);var P=(0,r.Z)({},n,{alignItems:a,dense:E.dense,disableGutters:v,divider:x,selected:S}),A=function(e){var t=e.alignItems,n=e.classes,o=e.dense,i=e.disabled,a={root:["root",o&&"dense",!e.disableGutters&&"gutters",e.divider&&"divider",i&&"disabled","flex-start"===t&&"alignItemsFlexStart",e.selected&&"selected"]},s=(0,M.Z)(a,rb,n);return(0,r.Z)({},n,s)}(P),I=(0,C.Z)(D,t);return(0,u.jsx)(eb.Z.Provider,{value:E,children:(0,u.jsx)(F3,(0,r.Z)({ref:I,href:Z.href||Z.to,component:(Z.href||Z.to)&&"div"===d?"button":d,focusVisibleClassName:(0,y.default)(A.focusVisible,w),ownerState:P,className:(0,y.default)(A.root,k)},Z,{classes:A,children:p}))})})),L3=B3,N3=n(77143),_3=n(6937),z3=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],H3=(0,P.ZP)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:function(e,n){var r=e.ownerState;return[(0,t.Z)({},"& .".concat(_3.Z.primary),n.primary),(0,t.Z)({},"& .".concat(_3.Z.secondary),n.secondary),n.root,r.inset&&n.inset,r.primary&&r.secondary&&n.multiline,r.dense&&n.dense]}})((function(e){var t=e.ownerState;return(0,r.Z)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},t.primary&&t.secondary&&{marginTop:6,marginBottom:6},t.inset&&{paddingLeft:56})})),W3=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiListItemText"}),i=n.children,a=n.className,s=n.disableTypography,l=void 0!==s&&s,c=n.inset,d=void 0!==c&&c,p=n.primary,f=n.primaryTypographyProps,h=n.secondary,m=n.secondaryTypographyProps,v=(0,b.Z)(n,z3),g=o.useContext(eb.Z).dense,x=null!=p?p:i,w=h,C=(0,r.Z)({},n,{disableTypography:l,inset:d,primary:!!x,secondary:!!w,dense:g}),j=function(e){var t=e.classes,n=e.inset,r=e.primary,o=e.secondary,i={root:["root",n&&"inset",e.dense&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]};return(0,M.Z)(i,_3.L,t)}(C);return null==x||x.type===rn.Z||l||(x=(0,u.jsx)(rn.Z,(0,r.Z)({variant:g?"body2":"body1",className:j.primary,component:null!=f&&f.variant?void 0:"span",display:"block"},f,{children:x}))),null==w||w.type===rn.Z||l||(w=(0,u.jsx)(rn.Z,(0,r.Z)({variant:"body2",className:j.secondary,color:"text.secondary",display:"block"},m,{children:w}))),(0,u.jsxs)(H3,(0,r.Z)({className:(0,y.default)(j.root,a),ownerState:C,ref:t},v,{children:[x,w]}))})),V3=W3,U3=function(e){var t=e.items,n=e.columns,r=e.onClick,o=e.sx;return(0,u.jsxs)(Xy.Z,{sx:(0,l.Z)({height:"100%",display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"center",py:0,position:"relative",gap:1.5},o),children:[t.map((function(e){return(0,u.jsx)(mb,{sx:{p:0},disablePadding:!0,children:(0,u.jsx)(L3,{disableRipple:!r,onClick:function(){return r?r(e):{}},sx:{borderRadius:2,p:0,py:0},children:(0,u.jsx)(nn.Z,{direction:"row",width:"100%",alignItems:"center",spacing:1,sx:{px:1},children:n.map((function(t){var n=t.field,r=t.columnsStyle,o=t.icon,i=t.renderColumn,a=t.secondaryField,s=t.iconStyle,c=t.align,d=void 0===c?"center":c,p=t.valueFormatter,f=void 0===p?function(e){return e[n]}:p,h=t.flex,m=void 0===h?1:h,v="function"===typeof a?a(e):a;return i?(0,u.jsx)(nn.Z,{flex:m,alignItems:"center",direction:"row",justifyContent:d,sx:{p:0},children:i(e)}):(0,u.jsx)(nn.Z,{flex:m,alignItems:"center",direction:"row",justifyContent:d,children:(0,u.jsxs)(u.Fragment,{children:[o&&(0,u.jsx)(N3.Z,{sx:(0,l.Z)({minWidth:"unset",pr:1},s),children:o}),(0,u.jsx)(V3,{primary:f(e),secondary:v,primaryTypographyProps:(0,l.Z)({variant:"body2",fontWeight:"500",color:"primaryDark.600"},r)})]})})}))})})})})),!t.length&&(0,u.jsx)(RI,{})]})},q3=function(e){return window.innerHeight!==document.body.clientHeight?(0,u.jsx)("div",{style:{height:"90px",width:"100%",position:"fixed",bottom:0,left:0,right:0,background:"linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 51%, rgba(255,255,255,0) 100%)",pointerEvents:"none"}}):(0,u.jsx)(u.Fragment,{})},G3=function(e){var t=e.data,n=(0,o.useState)(!1),r=(0,Le.Z)(n,2),i=r[0],a=r[1],s=(0,o.useState)(),c=(0,Le.Z)(s,2),d=c[0],p=c[1],f=(0,o.useState)(!1),h=(0,Le.Z)(f,2),m=h[0],v=h[1],g=fd({mode:"onChange"}),y=g.formState,b=Yd(),x=(null===b||void 0===b?void 0:b.includes(Kt.ks.SellerService))||(null===b||void 0===b?void 0:b.includes(Kt.ks.SellerTool));return(0,u.jsxs)(u.Fragment,{children:[x&&(0,u.jsx)(Wo,{onClick:function(){return a(!0)},variant:"primaryLight",startIcon:(0,u.jsx)(L2,{fill:tr.E4[500]}),className:"react-joyride-step-14-project",children:"Request payment"}),(0,u.jsx)(ys,{open:i,onClose:function(){return a(!1)},children:(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},g),{},{children:(0,u.jsx)("form",{onSubmit:g.handleSubmit((function(e){var n=t.find((function(t){return t.id===e.milestone}));p(n),v(!0),a(!1)})),children:(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsxs)(nn.Z,{direction:"row",spacing:2,alignItems:"center",children:[(0,u.jsx)(io.Z,{sx:{borderRadius:"4px",bgcolor:"secondaryBlue.100",width:"3rem",height:"3rem",display:"flex",justifyContent:"center",alignItems:"center","&:hover":{bgcolor:"secondaryBlue.100"}},children:(0,u.jsx)(L2,{fill:tr.dx[700]})}),(0,u.jsx)(rn.Z,{variant:"body2",fontWeight:600,children:"Request payment"})]}),(0,u.jsx)(un,{}),(0,u.jsx)(nn.Z,{sx:{mt:2},children:(0,u.jsxs)(nn.Z,{spacing:4,mt:2,children:[(0,u.jsx)(rn.Z,{variant:"body2",color:"primaryDark.500",sx:{mb:2},children:"Select milestone you want to request payment for"}),(0,u.jsx)(Hd,{choices:t,name:"milestone",required:!0,label:"Select milestone",renderCustomMenuItem:function(e){return(0,u.jsx)(Nl.Z,{value:e.id,disabled:e.status!==Kt.tg.Approved,children:(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",width:"100%",height:"4rem",children:[(0,u.jsxs)(nn.Z,{spacing:1,children:[(0,u.jsx)(rn.Z,{variant:"body1",color:"primaryDark.600",children:e.name}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.400",children:"".concat((0,rs.ZW)(e.start)," - ").concat((0,rs.ZW)(e.end))})]}),(0,u.jsx)(EI,{text:e.status})]})},e.id)}})]})}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",sx:{justifyContent:"right"},children:[(0,u.jsx)(Wo,{variant:"secondary",onClick:function(){g.reset(),a(!1)},children:"Cancel"}),(0,u.jsx)(Wo,{disabled:!y.isValid,endIcon:(0,u.jsx)(TR,{fill:"#fff"}),type:"submit",children:"next"})]})]})})}))}),m&&(0,u.jsx)(Q2,{isOpen:m,setIsOpen:v,data:d})]})},Y3=n(563),K3=n(72675),J3=n(5832),X3=["title","titleId"];function Q3(){return Q3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Q3.apply(this,arguments)}function $3(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function e5(e,t){var n=e.title,r=e.titleId,i=$3(e,X3);return o.createElement("svg",Q3({width:18,height:18,viewBox:"0 0 18 18",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,T3||(T3=o.createElement("path",{d:"M9.0118 0.665741C4.4093 0.665741 0.678467 4.39657 0.678467 8.99906C0.678467 13.6016 4.4093 17.3324 9.0118 17.3324C13.6143 17.3324 17.3451 13.6016 17.3451 8.99906C17.3451 4.39657 13.6143 0.665741 9.0118 0.665741ZM12.3451 6.49907C12.5585 6.49907 12.781 6.57074 12.9443 6.73324C13.2693 7.05907 13.2693 7.60573 12.9443 7.93156L9.81929 11.0307C8.86013 11.989 7.3943 11.8457 6.6418 10.7174L5.80847 9.4674C5.55347 9.0849 5.66012 8.55157 6.04346 8.29573C6.42596 8.04073 6.9593 8.14739 7.21513 8.53072L8.04846 9.78072C8.21679 10.0332 8.43264 10.0732 8.64681 9.85823L11.746 6.73324C11.9093 6.57074 12.1318 6.49907 12.3451 6.49907Z",fill:"current"})))}var t5,n5=o.forwardRef(e5),r5=(n.p,["title","titleId"]);function o5(){return o5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o5.apply(this,arguments)}function i5(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function a5(e,t){var n=e.title,r=e.titleId,i=i5(e,r5);return o.createElement("svg",o5({width:18,height:18,viewBox:"0 0 18 18",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,t5||(t5=o.createElement("path",{d:"M9.0118 0.665741C4.4093 0.665741 0.678467 4.39657 0.678467 8.99907C0.678467 13.6016 4.4093 17.3324 9.0118 17.3324C13.6143 17.3324 17.3451 13.6016 17.3451 8.99907C17.3451 4.39657 13.6143 0.665741 9.0118 0.665741ZM9.0118 4.83241C9.4718 4.83241 9.84513 5.20574 9.84513 5.66574V9.83241C9.84513 10.2924 9.4718 10.6657 9.0118 10.6657C8.5518 10.6657 8.17847 10.2924 8.17847 9.83241V5.66574C8.17847 5.20574 8.5518 4.83241 9.0118 4.83241ZM9.0118 11.4991C9.4718 11.4991 9.84513 11.8724 9.84513 12.3324C9.84513 12.7924 9.4718 13.1657 9.0118 13.1657C8.5518 13.1657 8.17847 12.7924 8.17847 12.3324C8.17847 11.8724 8.5518 11.4991 9.0118 11.4991Z",fill:"current"})))}var s5,l5=o.forwardRef(a5);n.p;!function(e){e.green="#F5FED4",e.orange="#FEF9D8",e.red="#FFF2F4",e.blue="#E5E8FF"}(s5||(s5={}));var c5,u5=s5,d5=function(e){var t,n,r=e.notificationText,i=e.color,a=void 0===i?"blue":i,s=e.renderButton,c=e.action,d=e.sx,p=e.id,f=(0,o.useState)(!0),h=(0,Le.Z)(f,2),m=h[0],v=h[1],g=(0,Ms.J)(),y=(0,As.Z)({resource:"notifications"}).mutate,b=function(){y({id:p,suffix:"seen"},{onSuccess:function(){g()}})},x={green:{bgColor:u5.green,icon:(0,u.jsx)(n5,{fill:tr.so[700],style:{width:22,height:22}})},orange:{bgColor:u5.orange,icon:(0,u.jsx)(l5,{fill:tr.oq[700],style:{minWidth:22,minHeight:22}})},red:{bgColor:u5.red,icon:(0,u.jsx)(V2,{fill:tr.Us[700],style:{width:22,height:22}})},blue:{bgColor:u5.blue,icon:(0,u.jsx)(J3.r,{fill:tr.dx[700],style:{width:22,height:22}})}};return m?(0,u.jsx)(ao.Z,{elevation:0,sx:(0,l.Z)({height:"fitContent",borderRadius:"10px",py:1,px:1.5,bgcolor:"grey.200",backgroundColor:null===(t=x[a])||void 0===t?void 0:t.bgColor},d),children:(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",width:"100%",height:"100%",children:[(0,u.jsxs)(nn.Z,{alignItems:"center",spacing:1.5,direction:"row",children:[null===(n=x[a])||void 0===n?void 0:n.icon,(0,u.jsxs)(rn.Z,{variant:"heading4",sx:{textTransform:"unset"},color:"primaryDark.600",children:[c&&"beforeNotificationText"===c.position&&(0,u.jsxs)(rn.Z,{variant:"heading4",component:"span",color:"primaryLight.500",onClick:function(){b(),c.actionOnClick()},sx:{cursor:"pointer",textTransform:"unset"},children:[c.text,". \xa0"]}),r,"\xa0",c&&"afterNotificationText"===c.position&&(0,u.jsxs)(rn.Z,{variant:"heading4",component:"span",color:"primaryLight.500",onClick:function(){b(),c.actionOnClick()},sx:{cursor:"pointer",textTransform:"unset"},children:[c.text,"."]})]})]}),(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",alignItems:"center",ml:6,children:[s&&s({}),(0,u.jsx)(io.Z,{size:"small","aria-label":"close",color:"inherit",onClick:function(e,t){"clickaway"!==t&&(b(),v(!1))},children:(0,u.jsx)(K3.Z,{sx:{fontSize:"1.3rem",color:"primaryDark.600"}})})]})]})}):null},p5=function(e){var t,n,r=e.screen,o=e.customAction,i=(0,ze.s0)(),a=hi({resource:"notifications/banner?screen=".concat(r)}).data;return(0,u.jsx)(ms,{gap:2,children:null===a||void 0===a||null===(t=a.data.results)||void 0===t||null===(n=t.slice(0,3).reverse())||void 0===n?void 0:n.map((function(e){var t=(0,Y3.b)(e);return(0,u.jsx)(d5,{notificationText:null===t||void 0===t?void 0:t.body,color:null===t||void 0===t?void 0:t.type,id:e.id,action:null!==t&&void 0!==t&&t.route?{text:t.customText||"Click here",actionOnClick:function(){(null===o||void 0===o?void 0:o.subcategory)===e.subcategory?o.action(e):i(null===t||void 0===t?void 0:t.route)},position:"afterNotificationText"}:void 0},e.id)}))})},f5=function(){var e,t,n,r=(0,ze.UO)(),i=$P(),a=i.joyride,s=i.runJoyride,c=i.tutorials,d=i.updateJoyride,p=i.update,f=Pa(),h=(0,ze.s0)(),m=((0,ze.UO)().projectId,Ra({resource:"projects",id:r.projectId}).data);hi({resource:"notifications/banner?screen=project_detail"}).data;(0,o.useEffect)((function(){null!==c&&void 0!==c&&c.includes(Kt.y$.ActiveProjectDetail)||(null===m||void 0===m?void 0:m.status)!==Kt.FP.InProgress||(s(),p(Kt.y$.ActiveProjectDetail))}),[null===m||void 0===m?void 0:m.status]);var v=hi({resource:"milestones/snake?project=".concat(r.projectId),enabled:!!r.projectId,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1}).data,g=hi({resource:"contracts/?project=".concat(r.projectId,"&company=").concat(null===f||void 0===f||null===(e=f.membership)||void 0===e?void 0:e.company),enabled:!!f,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1}).data,y=zp({resource:"projects/".concat(null===m||void 0===m?void 0:m.id,"/health"),enabled:!(null===m||void 0===m||!m.id),refetchOnWindowFocus:!1}).data,b=[{field:"name",icon:(0,u.jsx)(I3,{fill:tr.dx[500]})},{field:"created",valueFormatter:function(e){return null!==e.created?(0,rs.qJ)(e.created):"-"},columnsStyle:{textAlign:"end",fontWeight:400}},{field:"status",align:"end",renderColumn:function(e){return(0,u.jsx)(EI,{className:"react-joyride-step-1-active-project",text:e.status,componentReturnType:"chip"})}}],x=null===m||void 0===m?void 0:m.latestContract;return(0,u.jsxs)(nn.Z,{spacing:3,sx:{width:"100%"},children:[(null===c||void 0===c?void 0:c.includes(Kt.y$.ProjectDetail))&&(0,u.jsx)(IP,{steps:[(0,l.Z)({title:"Milestone status",content:(0,u.jsx)(rn.Z,{children:"Milestone status denotes the progress made on a particular milestone. Paid milestones have been fully completed and paid for, In progress milestones are currently being worked on, Pending milestones are yet to be started and Late milestones are overdue for payment."}),target:".react-joyride-step-1-active-project"},KP),(0,l.Z)({title:"Upload invoice",content:(0,u.jsx)(rn.Z,{children:"Once a completed milestone has been approved by the buyer, you will need to upload it here to continue the payment process."}),target:".react-joyride-step-2-active-project"},KP),(0,l.Z)({title:"Download invoice",content:(0,u.jsx)(rn.Z,{children:"You can download invoices for approved milestones here. To complete the payment process, simply download your invoice and pay it off-platform. TDA will forward the full amount to your seller as soon as the payment has been processed."}),target:".react-joyride-step-3-active-project"},KP)],run:a.run,scrollDuration:400,scrollToFirstStep:!0,showSkipButton:!0,disableScrolling:a.steps[a.stepIndex]&&a.steps[a.stepIndex].disableScrolling,stepIndex:a.stepIndex,callback:function(e){return d(e)},continuous:!0,tooltipComponent:function(e){return NP(e)}}),(0,u.jsx)(p5,{screen:Kt.Cx.ProjectDetail}),(0,u.jsxs)(nn.Z,{spacing:4,direction:"column",justifyContent:"space-between",children:[(0,u.jsx)(E3,{data:m}),(0,u.jsxs)(nn.Z,{direction:{md:"column",lg:"row"},spacing:3,width:"100%",children:[(0,u.jsx)(b2,{mainCardClassName:"react-joyride-step-8-project",headline:"Health",sx:{width:{md:"100%"}},renderComponent:(0,u.jsx)(n1,{health:null===y||void 0===y?void 0:y.data})}),(0,u.jsx)(b2,{headline:"Contracts",viewAllClassName:"react-joyride-step-3-project",sx:{width:{md:"100%"},pb:1.5},renderComponentSx:{height:"100%"},link:x?"./contract/".concat(x):"./contract",linkStartIcon:(0,u.jsx)(I3,{fill:tr.dx[500]}),linkText:x?"Edit contract":"New contract",renderComponent:(0,u.jsxs)(nn.Z,{height:"100%",children:[(0,u.jsx)(U3,{items:null!==(t=null===g||void 0===g?void 0:g.data.results.slice(0,3))&&void 0!==t?t:[],columns:b,onClick:function(e){h("../contracts",{state:e})}}),(0,u.jsx)($n,{to:"../contracts",sx:{display:"flex",justifyContent:"end"},children:(0,u.jsx)(rn.Z,{className:"react-joyride-step-4-project",variant:"heading4",color:"primaryLight.500",textAlign:"right",sx:{py:1,pr:1,pt:1},children:"View all"})})]})})]})]}),(0,u.jsx)(b2,{headline:"Payment overview",mainCardClassName:"react-joyride-step-13-project",sx:{position:"relative",width:"100%",border:"none"},headlineEndElement:(0,u.jsx)(G3,{data:null!==(n=null===v||void 0===v?void 0:v.data.results)&&void 0!==n?n:[]}),renderComponent:(0,u.jsx)(g3,{projectId:null===m||void 0===m?void 0:m.id,currency:null===m||void 0===m?void 0:m.currency})}),(0,u.jsx)(q3,{})]})},h5=["title","titleId"];function m5(){return m5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m5.apply(this,arguments)}function v5(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function g5(e,t){var n=e.title,r=e.titleId,i=v5(e,h5);return o.createElement("svg",m5({width:14,height:17,viewBox:"0 0 14 17",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,c5||(c5=o.createElement("path",{d:"M3.65212 0.178223C1.52462 0.178223 0.318787 1.38464 0.318787 3.51156V16.0116C0.318787 16.6098 0.940458 17.002 1.49046 16.7667L6.98545 14.4231L12.4796 16.7667C13.0296 17.0025 13.6521 16.6097 13.6521 16.0116V3.51156C13.6521 1.32539 12.5646 0.178223 10.3188 0.178223H3.65212ZM6.98545 4.34489C7.44545 4.34489 7.81879 4.71797 7.81879 5.17822V6.84489H9.48545C9.94545 6.84489 10.3188 7.21797 10.3188 7.67822C10.3188 8.13847 9.94545 8.51156 9.48545 8.51156H7.81879V10.1782C7.81879 10.6385 7.44545 11.0116 6.98545 11.0116C6.52462 11.0116 6.15212 10.6385 6.15212 10.1782V8.51156H4.48545C4.02462 8.51156 3.65212 8.13847 3.65212 7.67822C3.65212 7.21797 4.02462 6.84489 4.48545 6.84489H6.15212V5.17822C6.15212 4.71797 6.52462 4.34489 6.98545 4.34489Z",fill:"#6D51F6"})))}var y5,b5=o.forwardRef(g5),x5=(n.p,["title","titleId"]);function w5(){return w5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w5.apply(this,arguments)}function C5(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function j5(e,t){var n=e.title,r=e.titleId,i=C5(e,x5);return o.createElement("svg",w5({width:12,height:14,viewBox:"0 0 12 14",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,y5||(y5=o.createElement("path",{d:"M5.99935 0.302185C5.26269 0.302185 4.66602 0.89885 4.66602 1.63551H1.33268C0.964683 1.63551 0.666016 1.93418 0.666016 2.30218C0.666016 2.67018 0.964683 2.96884 1.33268 2.96884H10.666C11.034 2.96884 11.3327 2.67018 11.3327 2.30218C11.3327 1.93418 11.034 1.63551 10.666 1.63551H7.33269C7.33269 0.89885 6.73602 0.302185 5.99935 0.302185ZM1.33268 4.30217V10.9688C1.33268 12.4288 2.53602 13.6148 3.99935 13.6148L8.02003 13.6355C9.48336 13.6355 10.666 12.4321 10.666 10.9688V4.30217H1.33268ZM4.66602 6.30217C5.03402 6.30217 5.33269 6.60083 5.33269 6.96883V10.9688C5.33269 11.3368 5.03402 11.6355 4.66602 11.6355C4.29802 11.6355 3.99935 11.3368 3.99935 10.9688V6.96883C3.99935 6.60083 4.29802 6.30217 4.66602 6.30217ZM7.33269 6.30217C7.70069 6.30217 7.99936 6.60083 7.99936 6.96883V10.9688C7.99936 11.3368 7.70069 11.6355 7.33269 11.6355C6.96469 11.6355 6.66602 11.3368 6.66602 10.9688V6.96883C6.66602 6.60083 6.96469 6.30217 7.33269 6.30217Z",fill:"current"})))}var S5,k5=o.forwardRef(j5),Z5=(n.p,["title","titleId"]);function O5(){return O5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O5.apply(this,arguments)}function E5(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function D5(e,t){var n=e.title,r=e.titleId,i=E5(e,Z5);return o.createElement("svg",O5({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,S5||(S5=o.createElement("path",{d:"M2.99804 0.492188C1.61721 0.492188 0.498047 1.61144 0.498047 2.99219V4.65885V12.1589C0.498047 13.9997 1.99054 15.4922 3.83137 15.4922H12.1647C14.0055 15.4922 15.498 13.9997 15.498 12.1589V4.65885C15.498 4.1986 15.1247 3.82552 14.6647 3.82552C14.6647 3.82552 12.2455 3.82552 10.498 3.82552C9.86886 3.82552 9.66637 3.62144 9.1697 2.6276C8.4172 1.12144 7.78553 0.492188 6.33137 0.492188H2.99804ZM2.99804 2.15885H6.33137C6.96053 2.15885 7.16303 2.36294 7.65969 3.35677C7.76803 3.57435 7.81304 3.64377 7.9197 3.82552C5.04804 3.82552 2.98554 3.82552 2.16471 3.82552V2.99219C2.16471 2.53194 2.53804 2.15885 2.99804 2.15885ZM7.99803 7.15885C8.45803 7.15885 8.83136 7.53219 8.83136 7.99219V8.82552H9.66469C10.1247 8.82552 10.498 9.19885 10.498 9.65885C10.498 10.1189 10.1247 10.4922 9.66469 10.4922H8.83136V11.3255C8.83136 11.7855 8.45803 12.1589 7.99803 12.1589C7.53803 12.1589 7.1647 11.7855 7.1647 11.3255V10.4922H6.33137C5.87137 10.4922 5.49804 10.1189 5.49804 9.65885C5.49804 9.19885 5.87137 8.82552 6.33137 8.82552H7.1647V7.99219C7.1647 7.53219 7.53803 7.15885 7.99803 7.15885Z",fill:"#4051EC"})))}var P5,A5=o.forwardRef(D5);n.p;!function(e){e.Project="project",e.Milestone="milestone",e.Task="task",e.Subtask="subtask"}(P5||(P5={}));var M5,T5=P5;!function(e){e.Flag="flag",e.Unflag="unflag"}(M5||(M5={}));var I5,R5=M5,F5=function(e){var t=e.entityId,n=e.entityType,r=e.actionType,o=e.isModalOpen,i=e.setIsModalOpen,a=(0,Ms.J)(),s=fd({mode:"onChange",defaultValues:{summary:""}}),c=s.handleSubmit,d=s.reset,p=s.formState.isValid,f=(0,As.Z)({resource:"/milestones"}).mutate,h=(0,As.Z)({resource:"/milestones"}).mutate,m=(0,As.Z)({resource:"/tasks"}).mutate,v=(0,As.Z)({resource:"/tasks"}).mutate,g=(0,As.Z)({resource:"/subtasks"}).mutate,y=(0,As.Z)({resource:"/subtasks"}).mutate,b=function(e){switch(n){case T5.Milestone:switch(r){case R5.Flag:e&&f({id:t,suffix:"flag",data:{summary:e.summary}},{onSuccess:function(){d(),a(),i(!1)}});break;case R5.Unflag:h({id:t,suffix:"unflag"},{onSuccess:function(){a(),i(!1)}});break;default:return null}break;case T5.Task:switch(r){case R5.Flag:e&&m({id:t,suffix:"flag",data:{summary:e.summary}},{onSuccess:function(){d(),a(),i(!1)}});break;case R5.Unflag:v({id:t,suffix:"unflag"},{onSuccess:function(){a(),i(!1)}});break;default:return null}break;case T5.Subtask:switch(r){case R5.Flag:e&&g({id:t,suffix:"flag",data:{summary:e.summary}},{onSuccess:function(){d(),a(),i(!1)}});break;case R5.Unflag:y({id:t,suffix:"unflag"},{onSuccess:function(){a(),i(!1)}});break;default:return null}break;default:return null}return null};return(0,u.jsx)(ys,{open:o,onClose:function(){return i(!1)},width:"32%",children:(0,u.jsxs)(nn.Z,{spacing:5,justifyContent:"space-between",children:[(0,u.jsxs)(nn.Z,{spacing:4,children:[(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",alignItems:"center",children:[(0,u.jsx)(nn.Z,{alignItems:"center",justifyContent:"center",sx:{bgcolor:"secondaryPink.100",width:"fit-content",height:"fit-content",borderRadius:"6px",px:2,py:1},children:(0,u.jsx)(BT,{fill:tr.Us[700],style:{width:22,height:22}})}),(0,u.jsx)(rn.Z,{variant:"heading3",color:"primaryDark.600",children:function(e,t){return e===T5.Milestone?t===R5.Unflag?"Remove flag":"Flag milestone":e===T5.Task?t===R5.Unflag?"Remove flag":"Flag task":e===T5.Subtask?t===R5.Unflag?"Remove flag":"Flag subtask":"Flag"}(n,r)})]}),(0,u.jsx)(un,{sx:{borderColor:"#E5E8FF"}})]}),r===R5.Flag&&(0,u.jsxs)(rn.Z,{color:"primaryDark.500",children:["Flagging this"," ",n," ","will send an alert your partner company. Add a summary to resolve the issue as quickly as possible."]})]}),r===R5.Flag&&(0,u.jsx)(nn.Z,{spacing:1,children:(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},s),{},{children:(0,u.jsx)(tn,{id:"flag-and-unflag",component:"form",sx:{height:"100%"},onSubmit:c(b),children:(0,u.jsx)(Zd,{required:!0,label:"description",placeholder:"Type",name:"summary",variant:"outlined",fullWidth:!0,multiline:!0,minRows:5})})}))}),r===R5.Unflag&&(0,u.jsx)(rn.Z,{color:"primaryDark.500",children:"Removing the flagged status from the ".concat(n," notifies\n                your partner company that the issue is resolved.")}),(0,u.jsxs)(nn.Z,{spacing:2.5,children:[(0,u.jsx)(un,{sx:{borderColor:"#E5E8FF"}}),(0,u.jsxs)(nn.Z,{sx:{justifyContent:"end"},spacing:2,direction:"row",children:[(0,u.jsx)(Wo,{variant:"secondary",onClick:function(){d(),i(!1)},children:"Cancel"}),(0,u.jsx)(Wo,{form:"flag-and-unflag",type:"submit",variant:"primary",onClick:function(){r===R5.Unflag&&b()},disabled:r===R5.Flag&&!p,children:r===R5.Flag?"Flag":"Continue"})]})]})]})})},B5=function(e,t){var n=(0,o.useRef)(),r=(0,o.useRef)(),i=function(){r.current&&clearTimeout(r.current)};return(0,o.useEffect)((function(){return i}),[]),function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];n.current=a,i(),r.current=setTimeout((function(){n.current&&e.apply(void 0,(0,dn.Z)(n.current))}),t)}},L5=190,N5=function(e){var n=e.items,r=e.activeIndexItem,i=e.activeItemSx,a=e.renderCarouselItem,s=e.sx,c=e.carouselItemWidth,d=e.renderCustomBackAndNextButtons,p=(0,o.useRef)(null),f=(0,o.useState)(0),h=(0,Le.Z)(f,2),m=h[0],v=h[1],g=(0,o.useState)(!1),y=(0,Le.Z)(g,2),b=y[0],x=y[1],w=(0,o.useState)(!0),C=(0,Le.Z)(w,2),j=C[0],S=C[1],k=(0,o.useContext)(cM);(0,o.useEffect)((function(){if(void 0!==r&&p.current){var e=r*(p.current.scrollWidth/n.length);v(e),e>0&&p.current.scrollTo({left:e,behavior:"smooth"}),x(e>=p.current.scrollWidth-p.current.offsetWidth),S(p.current.offsetWidth>=c*n.length+32)}}),[p.current,r]);var Z=B5((function(){p.current&&(p.current.scrollTo({behavior:"smooth",left:p.current.scrollLeft-p.current.scrollWidth/n.length}),setTimeout((function(){p.current&&v((function(e){var t;return p.current?Math.floor(e-(null===p||void 0===p||null===(t=p.current)||void 0===t?void 0:t.scrollWidth)/n.length):0}))}),L5),x(p.current.scrollLeft-c>=p.current.scrollWidth-p.current.offsetWidth))}),L5),O=B5((function(){p.current&&(p.current.scrollTo({behavior:"smooth",left:p.current.scrollLeft+p.current.scrollWidth/n.length}),v(Math.floor(p.current.scrollLeft+p.current.scrollWidth/n.length)),setTimeout((function(){p.current&&x(m+c>=p.current.scrollWidth-p.current.offsetWidth)}),L5))}),L5);return(0,u.jsxs)(nn.Z,{ref:p,spacing:2,width:"calc(100vw - ".concat(k,"px - var(--scrollbar-width))"),flexWrap:"nowrap",direction:"row",sx:(0,l.Z)((0,t.Z)({overflowX:"hidden",overflowY:"visible"},"&>*:nth-child(".concat(n.length+1,")"),{marginRight:"16px"}),s),children:[!d&&(0,u.jsx)(io.Z,{onClick:function(){Z()},sx:{visibility:m>0?"visible":"hidden",zIndex:4,position:"absolute",left:5,bottom:-7,backgroundColor:"primaryDark.150",border:"1px solid",borderColor:"primaryLight.100",width:"2.9rem",height:"2.9rem",display:j?"none":"flex",alignItems:"center",justifyContent:"center","&:hover":{backgroundColor:(0,rs.HO)(ir.palette.primaryDark[150],-5)}},children:(0,u.jsx)(uM.Z,{sx:{color:"primaryDark.600",fontSize:"2rem"}})}),n.map((function(e,t){return a({item:e,sx:(0,l.Z)({},i)})})),!d&&(0,u.jsx)(io.Z,{onClick:function(){O()},sx:{visibility:b?"hidden":"visible",position:"absolute",right:15,bottom:-7,backgroundColor:"primaryDark.150",border:"1px solid",borderColor:"primaryLight.100",width:"2.9rem",height:"2.9rem",display:j?"none":"flex",alignItems:"center",justifyContent:"center","&:hover":{backgroundColor:(0,rs.HO)(ir.palette.primaryDark[150],-5)}},children:(0,u.jsx)(dM.Z,{sx:{color:"primaryDark.600",fontSize:"2rem"}})}),(0,u.jsx)(nn.Z,{sx:{position:"absolute",right:15,bottom:-10},children:!j&&d&&d({back:{handleGoBack:function(){return Z()},disabled:!(m>0)},next:{handleGoNext:function(){return O()},disabled:b}})})]})},_5=["value"];function z5(e){var t,n=e.value,r=Nn(e,_5);return(0,u.jsxs)(nn.Z,{spacing:1,direction:"row",width:"100%",alignItems:"center",children:[(0,u.jsx)(v2,(0,l.Z)((0,l.Z)({variant:"determinate",value:n},r),{},{sx:{height:"6px",borderRadius:"20px",width:"100%",backgroundColor:"primaryDark.250","& .MuiLinearProgress-bar":{backgroundColor:(t=n,100===t&&void 0!==t?"secondaryGreen.500":"secondaryBlue.500")}}})),(0,u.jsx)(tn,{sx:{minWidth:35},children:(0,u.jsx)(rn.Z,{variant:"body4",color:"primaryDark.500",children:n||0===n?"".concat(Math.round(n),"%"):"-"})})]})}var H5=["title","titleId"];function W5(){return W5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W5.apply(this,arguments)}function V5(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function U5(e,t){var n=e.title,r=e.titleId,i=V5(e,H5);return o.createElement("svg",W5({width:14,height:14,viewBox:"0 0 14 14",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,I5||(I5=o.createElement("path",{d:"M10.33 0.302063C10.1534 0.302063 9.97605 0.364734 9.85071 0.489401C9.48005 0.860068 8.14605 2.19408 7.85005 2.49075L1.84652 8.4941L1.17952 9.16076C1.08639 9.2541 1.03859 9.38609 1.01279 9.51542L0.345718 12.8508C0.252385 13.3174 0.650251 13.7147 1.11698 13.6221C1.53385 13.5381 4.03525 13.0381 4.45212 12.9548C4.58125 12.9288 4.71338 12.8808 4.80645 12.7881L5.47351 12.1208L11.4767 6.11742C11.7734 5.82142 13.1074 4.48673 13.478 4.11673C13.6027 3.99139 13.6654 3.81406 13.6654 3.6374C13.6654 2.54606 13.3874 1.76606 12.8107 1.17739C12.2287 0.583389 11.4514 0.302063 10.33 0.302063ZM10.5927 1.64805C11.1947 1.68339 11.5847 1.82142 11.852 2.09475C12.1254 2.37342 12.298 2.76008 12.3354 3.35008C11.97 3.71475 11.4354 4.24139 10.9974 4.67939C10.4687 4.15072 9.81671 3.49875 9.28805 2.97008C9.72671 2.53208 10.228 2.01272 10.5927 1.64805ZM2.32598 9.93209L4.03525 11.6414L3.97272 11.7041C3.53272 11.7921 2.64419 11.9781 1.82572 12.1421L2.26345 9.99475L2.32598 9.93209Z",fill:"current"})))}var q5,G5=o.forwardRef(U5),Y5=(n.p,["title","titleId"]);function K5(){return K5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K5.apply(this,arguments)}function J5(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function X5(e,t){var n=e.title,r=e.titleId,i=J5(e,Y5);return o.createElement("svg",K5({width:11,height:10,viewBox:"0 0 11 10",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,q5||(q5=o.createElement("path",{d:"M0.00976562 4.99046C0.00976562 4.53046 0.383099 4.15712 0.843099 4.15712H5.8431V0.823792L10.0098 4.99046L5.8431 9.15713V5.82379H0.843099C0.383099 5.82379 0.00976562 5.45046 0.00976562 4.99046Z",fill:"current"})))}var Q5,$5,e4=o.forwardRef(X5),t4=(n.p,n(33967)),n4=n(49535),r4=function(e){var t=e.milestone,n=e.setIsMouseDown,r=e.setTaskId,i=e.showText,a=void 0!==i&&i,s=e.determineWhichTaskToShow,c=e.sx,d=(0,ze.UO)(),p=(0,ze.s0)(),f=(0,o.useState)(null),h=(0,Le.Z)(f,2),m=h[0],v=h[1],g=Boolean(m);return(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(U.Z,{onClickAway:function(){return v(null)},children:(0,u.jsxs)(tn,{onMouseDown:function(e){return null===n||void 0===n?void 0:n(!0)},onMouseUp:function(e){return null===n||void 0===n?void 0:n(!1)},onClick:function(e){e.stopPropagation()},children:[(0,u.jsx)(ko.Z,{disableRipple:!0,onMouseDown:function(e){return null===n||void 0===n?void 0:n(!0)},onMouseUp:function(e){return null===n||void 0===n?void 0:n(!1)},onClick:function(e){e.stopPropagation(),v(m?null:e.currentTarget)},sx:{p:0},children:(0,u.jsx)(nn.Z,{alignItems:"center",justifyContent:"center",sx:(0,l.Z)((0,l.Z)({backgroundColor:"common.white",border:"1px solid",borderColor:"primaryLight.100",px:.8,py:.6,borderRadius:"6px"},a&&{height:"100%"}),c),children:(0,u.jsxs)(nn.Z,{spacing:.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(sI,{fill:"#6D51F6",style:{width:18,height:18}}),a&&(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.600",children:"recurring"}),(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryLight.500",children:t.status===Kt.tg.InProgress||t.status===Kt.tg.Completed?t.activeMilestoneIndex:"-"}),(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryLight.500",children:"/"}),(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryLight.500",children:t.relatedMilestones?t.relatedMilestones.length:0}),g?(0,u.jsx)(n4.Z,{sx:{width:18,height:18,color:"primaryDark.600"}}):(0,u.jsx)(t4.Z,{sx:{width:18,height:18,color:"primaryDark.600"}})]})})}),(0,u.jsx)(Bl.Z,{anchorEl:m,open:g,placement:"bottom-end",children:(0,u.jsx)(ao.Z,{elevation:0,sx:{mt:.85,width:340,maxHeight:320,border:"1px solid",borderColor:"#E5E8FF",borderRadius:"8px",overflowY:"auto"},children:t.relatedMilestones.map((function(e,n){return(0,u.jsx)(Nl.Z,{onClick:function(){p("/dashboard/end-to-end/milestone/".concat(e.id)),e&&r(s(e.tasks))},sx:{height:80,borderBottom:"1px solid",borderBottomColor:"#E5E8FF",bgcolor:e.id===(null===d||void 0===d?void 0:d.milestoneId)?"rgba(0, 0, 0, 0.04)":"common.white"},children:(0,u.jsxs)(nn.Z,{direction:"row",width:"100%",alignItems:"center",justifyContent:"space-between",children:[(0,u.jsx)(nn.Z,{children:(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",alignItems:"center",children:[(0,u.jsxs)(nn.Z,{spacing:.25,height:"100%",alignItems:"center",justifyContent:"center",sx:{py:.5,px:.75,borderRadius:"4px",backgroundColor:"#E5E8FF"},children:[(0,u.jsx)(rn.Z,{variant:"body3",color:"secondaryBlue.700",sx:{borderBottom:"1px solid",borderBottomColor:"secondaryBlue.700"},children:n+1}),(0,u.jsx)(rn.Z,{variant:"body3",children:t.relatedMilestones?t.relatedMilestones.length:0})]}),(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(rn.Z,{fontWeight:"500",color:"primaryDark.600",sx:{textDecoration:e.status===Kt.tg.Completed?"line-through":"none"},children:e.name&&e.name.length<=18?e.name:(0,rs.$G)(e.name||"",18)}),(0,u.jsxs)(nn.Z,{direction:"row",color:"primaryDark.400",children:[(0,u.jsx)(rn.Z,{variant:"heading4",letterSpacing:0,children:e.start?(0,vm.Z)(new Date(e.start),"MM.dd"):"-"}),(0,u.jsx)(rn.Z,{variant:"heading4",letterSpacing:0,children:"\xa0 - \xa0"}),(0,u.jsx)(rn.Z,{variant:"heading4",letterSpacing:0,children:e.end?(0,vm.Z)(new Date(e.end),"MM.dd"):"-"})]})]})]})}),(0,u.jsx)(EI,{text:e.status,componentReturnType:"chip",sx:{pointerEvents:"none"}})]})})}))})})]})})})},o4=function(e){var t=e.setIsOpen,n=e.isOpen,r=e.contractId,o=e.projectId,i=(0,ze.s0)(),a=function(){t(!1)};return(0,u.jsx)(ys,{open:n,width:"30%",onClose:a,children:(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",alignItems:"center",children:[(0,u.jsx)(nn.Z,{alignItems:"center",justifyContent:"center",sx:{bgcolor:"#E5E8FF",borderRadius:"6px",px:2.05,py:2.05},children:(0,u.jsx)(G5,{fill:tr.dx[700],style:{width:18,height:18}})}),(0,u.jsx)(rn.Z,{variant:"heading3",color:"primaryDark.600",children:"Amend contract"})]}),(0,u.jsx)(un,{sx:{borderColor:"#E5E8FF"}}),(0,u.jsx)(rn.Z,{color:"primaryDark.500",children:"Any edits to the contract must be made through an annex. Changes must be formally approved by both parties."}),(0,u.jsxs)(nn.Z,{spacing:2.5,children:[(0,u.jsx)(un,{sx:{borderColor:"#E5E8FF"}}),(0,u.jsxs)(nn.Z,{sx:{justifyContent:"end"},spacing:2,direction:"row",children:[(0,u.jsx)(Wo,{variant:"secondary",onClick:a,children:"Cancel"}),(0,u.jsx)(Wo,{variant:"primary",onClick:function(){i("../project/".concat(o,"/contract/").concat(r))},children:"Continue"})]})]})]})})},i4=function(e){var t,n=e.milestoneData,r=e.recurringMilestonesParent,i=e.setIsFlagAndUnflagModalOpen,a=e.setEntityType,s=e.setEntityId,l=e.setTaskId,c=e.determineWhichTaskToShow,d=Yd(),p=null===d||void 0===d?void 0:d.includes(Kt.ks.Buyer),f=(null===n||void 0===n?void 0:n.buyerFlagged)||(null===n||void 0===n?void 0:n.sellerFlagged),h=(0,o.useState)(!1),m=(0,Le.Z)(h,2),v=m[0],g=m[1],y={key:"edit",icon:(0,u.jsx)(G5,{fill:tr.IV[500],style:{width:18,height:18}}),text:"Edit",disabled:(null===n||void 0===n?void 0:n.status)===Kt.tg.UnderReview||(null===n||void 0===n?void 0:n.status)===Kt.tg.Approved||(null===n||void 0===n?void 0:n.status)===Kt.tg.Completed,onClick:function(){return g(!0)}},b=Ra({enabled:!(null===n||void 0===n||!n.project),resource:"projects",id:null===n||void 0===n?void 0:n.project}).data;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(o4,{isOpen:v,setIsOpen:g,projectId:null===n||void 0===n?void 0:n.project,contractId:null===b||void 0===b?void 0:b.latestContract}),(0,u.jsxs)(nn.Z,{spacing:6,children:[(0,u.jsxs)(nn.Z,{spacing:1.5,children:[(0,u.jsxs)(nn.Z,{spacing:1,direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,u.jsxs)(nn.Z,{spacing:1,direction:"row",alignItems:"center",height:"fit-content",children:[(0,u.jsx)(Dk,{menuItemsContents:function(){if(p){if(null!==n&&void 0!==n&&n.buyerFlagged)return!0;if(null!==n&&void 0!==n&&n.sellerFlagged)return!1}if(!p){if(null!==n&&void 0!==n&&n.buyerFlagged)return!1;if(null!==n&&void 0!==n&&n.sellerFlagged)return!0}return!0}()?[{key:f?"Un-Flag":"Flag",icon:(0,u.jsx)(BT,{fill:tr.IV[500],style:{width:18,height:18}}),text:f?"Un-Flag":"Flag",disabled:(null===n||void 0===n?void 0:n.status)===Kt.tg.Pending||(null===n||void 0===n?void 0:n.status)===Kt.tg.Completed,onClick:function(){i(!0),a(T5.Milestone),s(null===n||void 0===n?void 0:n.id)}},y]:[y]}),(0,u.jsx)(rn.Z,{variant:"heading2",color:"primaryDark.600",children:null===n||void 0===n?void 0:n.name})]}),(0,u.jsxs)(nn.Z,{spacing:1,direction:"row",alignItems:"center",height:"40px",children:[f&&(0,u.jsxs)(nn.Z,{spacing:1,direction:"row",alignItems:"center",sx:{height:"100%",bgcolor:"secondaryPink.100",px:1.5,py:.85,borderRadius:"6px"},children:[(0,u.jsx)(BT,{fill:tr.Us[700],style:{width:20,height:20}}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"secondaryPink.700",children:"flagged"})]}),r&&(0,u.jsx)(r4,{milestone:r,setTaskId:l,showText:!0,determineWhichTaskToShow:c})]})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,alignItems:"center",direction:"row",children:[(0,u.jsx)(Pl,{fill:tr.IV[500],style:{width:20,height:20}}),(null===n||void 0===n?void 0:n.start)&&(0,u.jsx)(rn.Z,{color:"primaryDark.600",fontWeight:600,children:(0,rs.qJ)(n.start,"-")}),(0,u.jsx)(e4,{fill:tr.E4[500],style:{width:16,height:16}}),(0,u.jsx)(j3,{fill:tr.IV[500],style:{width:20,height:20}}),(null===n||void 0===n?void 0:n.end)&&(0,u.jsx)(rn.Z,{color:"primaryDark.600",fontWeight:600,children:(0,rs.qJ)(n.end,"-")})]})]}),(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(O3,{description:null===n||void 0===n?void 0:n.summary,sx:{width:"60%"},title:"Milestone description"}),(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",children:"budget"}),n&&n.budget&&n.currency&&(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.600",fontSize:{md:"1.45rem",lg:"1.75rem"},children:null!==(t=(0,rs.xG)(null===n||void 0===n?void 0:n.budget,null===n||void 0===n?void 0:n.currency))&&void 0!==t?t:"-"})]})]})]})]})},a4=["title","titleId"];function s4(){return s4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s4.apply(this,arguments)}function l4(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c4(e,t){var n=e.title,r=e.titleId,i=l4(e,a4);return o.createElement("svg",s4({width:24,height:25,viewBox:"0 0 24 25",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,Q5||(Q5=o.createElement("circle",{cx:12,cy:12.5,r:7,fill:"#ABEB4D",stroke:"#ABEB4D",strokeWidth:2})),$5||($5=o.createElement("path",{d:"M15.9865 9.50293C15.7315 9.50293 15.4645 9.58894 15.2695 9.78393L11.5595 13.5339C11.3025 13.7919 11.0445 13.7439 10.8425 13.4409L9.84556 11.9409C9.53956 11.4809 8.90055 11.3529 8.44255 11.6589C7.98455 11.9659 7.85654 12.6059 8.16154 13.0649L9.15956 14.5649C10.0596 15.9189 11.8156 16.0909 12.9626 14.9409L16.7036 11.2219C17.0926 10.8309 17.0926 10.1749 16.7036 9.78393C16.5086 9.58894 16.2415 9.50293 15.9865 9.50293Z",fill:"#384572"})))}var u4,d4=o.forwardRef(c4),p4=(n.p,["variant","children","sx"]),f4=(0,u.jsx)(d4,{}),h4=(0,u.jsx)(tn,{sx:{border:"2px solid",borderColor:"primaryDark.300",borderRadius:"50%",width:15,height:15}}),m4={width:{md:"42%",xl:"25%"},p:"6px",height:35,border:"1px solid",boxShadow:"1px 10px 30px rgba(56, 69, 114, 0.1)",borderColor:"#E5E8FF",bgcolor:"common.white",color:"primaryDark.600"},v4=function(e){var t=e.children;return(0,u.jsx)(rn.Z,{variant:"heading4",color:"inherit",whiteSpace:"pre",children:t})},g4=function(e){var t=e.variant,n=e.children,r=(e.sx,Nn(e,p4));return"incompleteDisabled"===t?(0,u.jsx)(ko.Z,(0,l.Z)((0,l.Z)({className:"react-joyride-step-5-milestone",disabled:!0,startIcon:h4,sx:(0,l.Z)((0,l.Z)({},m4),{},{"&:disabled":{border:"none",bgcolor:"primaryDark.150",color:"primaryDark.400"}})},r),{},{children:(0,u.jsx)(v4,{children:n})})):"incompleteEnabled"===t?(0,u.jsx)(ko.Z,(0,l.Z)((0,l.Z)({startIcon:h4,sx:m4},r),{},{className:"react-joyride-step-5-milestone",children:(0,u.jsx)(v4,{children:n})})):(0,u.jsx)(ko.Z,(0,l.Z)((0,l.Z)({disabled:!0,startIcon:f4,className:"react-joyride-step-5-milestone",sx:(0,l.Z)((0,l.Z)({},m4),{},{"&:disabled":{borderColor:"secondaryGreen.500",bgcolor:"common.white",color:"primaryDark.600"}})},r),{},{children:(0,u.jsx)(v4,{children:n})}))},y4=function(e){var t=e.isModalOpen,n=e.setIsModalOpen,r=e.confirmButtonText,o=void 0===r?"Confirm":r,i=e.onCancel,a=e.onConfirm,s=e.title,l=e.message,c=e.showCancelButton,d=void 0===c||c,p=e.iconProps,f=e.width,h=void 0===f?"32%":f,m=e.automaticallyCloseModalOnButtonClick,v=void 0===m||m,g=e.isLoading,y=void 0!==g&&g;return(0,u.jsx)(ys,{open:t,onClose:function(){return n(!1)},width:h,children:(0,u.jsxs)(nn.Z,{spacing:5,justifyContent:"space-between",children:[(0,u.jsxs)(nn.Z,{spacing:4,children:[(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",alignItems:"center",children:[p&&(0,u.jsx)(nn.Z,{alignItems:"center",justifyContent:"center",sx:{bgcolor:null===p||void 0===p?void 0:p.wrapperBackgroundColor,width:"48px",height:"48px",borderRadius:"6px",px:2,py:1},children:null===p||void 0===p?void 0:p.icon}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.600",children:s})]}),(0,u.jsx)(un,{sx:{borderColor:"#E5E8FF"}})]}),l&&"string"===typeof l?(0,u.jsx)(rn.Z,{color:"primaryDark.500",children:l}):l]}),(0,u.jsxs)(nn.Z,{spacing:2.5,children:[(0,u.jsx)(un,{sx:{borderColor:"#E5E8FF"}}),(0,u.jsxs)(nn.Z,{sx:{justifyContent:"end"},spacing:2,direction:"row",children:[d&&(0,u.jsx)(Wo,{variant:"secondary",onClick:function(){null===i||void 0===i||i(),n(!1)},children:"Cancel"}),(0,u.jsx)(Wo,{variant:"primary",onClick:function(){null===a||void 0===a||a(),!v||n(!1)},disabled:y,loading:y,children:o})]})]})]})})},b4=["title","titleId"];function x4(){return x4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x4.apply(this,arguments)}function w4(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function C4(e,t){var n=e.title,r=e.titleId,i=w4(e,b4);return o.createElement("svg",x4({width:19,height:21,viewBox:"0 0 19 21",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,u4||(u4=o.createElement("path",{d:"M7.9983 0.0141602C4.4373 0.0141602 0.998291 3.41996 0.998291 6.98296C0.998291 6.99326 0.998291 7.00376 0.998291 7.01416C0.998291 9.47416 0.998291 12.4105 0.998291 12.6704C0.998291 14.5342 2.60931 16.0142 4.56031 16.0142H4.9983V16.6704C4.9983 18.5342 6.60931 20.0142 8.56032 20.0142H15.4363C17.3873 20.0142 18.9983 18.5342 18.9983 16.6704V7.35796C18.9983 5.49416 17.3873 4.01416 15.4363 4.01416H14.9983V3.35796C14.9983 1.49416 13.3873 0.0141602 11.4363 0.0141602C11.2223 0.0141602 11.2123 0.0141602 7.9983 0.0141602ZM6.9983 2.26416V4.67036C6.9983 5.38396 6.32429 6.01416 5.43629 6.01416H3.21729C3.67629 4.24696 5.2263 2.73456 6.9983 2.26416ZM14.9983 6.01416H15.4363C16.3243 6.01416 16.9983 6.64436 16.9983 7.35796V16.6704C16.9983 17.384 16.3243 18.0142 15.4363 18.0142H8.56032C7.67231 18.0142 6.9983 17.384 6.9983 16.6704V16.0142H11.4363C13.3873 16.0142 14.9983 14.5342 14.9983 12.6704V6.01416Z",fill:"current"})))}var j4,S4=o.forwardRef(C4),k4=(n.p,function(e){var t=e.data;return(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",width:"100%",children:[(0,u.jsx)(rn.Z,{variant:"body3",sx:{lineHeight:"unset"},children:t.name}),(0,u.jsx)(rn.Z,{variant:"body3",sx:{lineHeight:"unset"},children:"".concat((0,rs.qJ)(t.start)," - ").concat((0,rs.qJ)(t.end))})]})}),Z4=function(e){var t,n,r,i=e.isModalOpen,a=e.setIsModalOpen,s=e.previousMilestone,c=e.recurringMilestones,d=(e.sx,e.width),p=(0,Ms.J)(),f=(0,ze.UO)(),h=Pa(),m=function(){return(0,u.jsx)(tn,{sx:{border:"3px solid",borderColor:"primaryDark.300",borderRadius:"50%",width:18,height:18}})},v=function(){return(0,u.jsx)(d4,{fill:tr.so[500],style:{width:30,height:30}})},g=fd({mode:"onChange",defaultValues:{recurringMilestoneId:(null===s||void 0===s?void 0:s.id)||""}}),y=g.control,b=g.reset,x=g.handleSubmit,w=(g.getValues,hi({enabled:!!cu({control:y,name:"recurringMilestoneId"}),resource:"/tasks/?milestone=".concat(cu({control:y,name:"recurringMilestoneId"}),"&company=").concat(null===h||void 0===h||null===(t=h.membership)||void 0===t?void 0:t.company),refetchOnMount:!1,refetchOnReconnect:!1,refetchOnWindowFocus:!1}).data),C=(0,As.Z)({resource:"/milestones"}).mutate,j=null===w||void 0===w||null===(n=w.data)||void 0===n?void 0:n.results,S=(0,o.useState)([]),k=(0,Le.Z)(S,2),Z=k[0],O=k[1],E=[{field:"name",headerName:"Task",flex:1,renderCell:function(e){return(0,u.jsx)(rn.Z,{fontWeight:500,color:"primaryDark.600",children:e.value})}},{field:"subtasksCount",headerName:"Subtasks",flex:.2,align:"center",renderCell:function(e){return(0,u.jsx)(rn.Z,{fontWeight:500,color:"primaryDark.600",children:e.value})}}];return(0,o.useEffect)((function(){s&&b({recurringMilestoneId:s.id})}),[s]),(0,u.jsx)(ys,{open:i,onClose:function(){return a(!1)},width:d,children:(0,u.jsxs)(nn.Z,{spacing:3,height:"100%",justifyContent:"space-between",children:[(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",alignItems:"center",children:[(0,u.jsx)(nn.Z,{alignItems:"center",justifyContent:"center",sx:{bgcolor:"#E5E8FF",width:50,height:50,borderRadius:"6px",px:2,py:1},children:(0,u.jsx)(S4,{fill:tr.dx[700],style:{width:24,height:24}})}),(0,u.jsx)(rn.Z,{variant:"body2",color:"primaryDark.600",fontWeight:600,children:"Copy tasks to new milestone"})]}),(0,u.jsx)(un,{sx:{borderColor:"#E5E8FF"}}),(0,u.jsxs)(nn.Z,{spacing:4,children:[(0,u.jsx)(rn.Z,{color:"primaryDark.500",children:"Choose the milestone and tasks you'd like to copy to the next recurring milestone."}),(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},g),{},{children:(0,u.jsx)(tn,{id:"copy-tasks-form",component:"form",sx:{width:"100%"},onSubmit:x((function(){var e=[],t=null===j||void 0===j?void 0:j.filter((function(e){return Z.includes(e.id)}));if(t){var n,r=_e(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;e.push({name:o.name,description:o.description,status:Kt.YH.Pending,start:o.start,end:o.end,subtasks:o.subtasks&&o.subtasks.length>0?o.subtasks.map((function(e){return{name:e.name,status:!1,end:e.end}})):[]})}}catch(i){r.e(i)}finally{r.f()}}e.length>0&&C({id:f.milestoneId,data:{tasks:e}},{onSuccess:function(){p(),a(!1)}})})),children:(0,u.jsx)(Hd,{name:"recurringMilestoneId",defaultValue:cu({control:y,name:"recurringMilestoneId"}),label:"Choose milestone",choices:c,arrayPropName:"name",renderCustomSelectedValue:function(e){return(0,u.jsx)(k4,{data:e})},renderCustomMenuItem:function(e){return(0,u.jsx)(Nl.Z,{value:e.id,children:(0,u.jsx)(k4,{data:e})})},sx:{mb:"0 !important"}})})}))]}),(0,u.jsx)(tn,{sx:{mt:"0 !important"},children:(0,u.jsx)(k2,{resource:"tasks",columns:E,searchParams:{milestone:cu({control:y,name:"recurringMilestoneId"}),company:null===h||void 0===h||null===(r=h.membership)||void 0===r?void 0:r.company},checkboxSelection:!0,components:{BaseCheckbox:function(e){return(0,u.jsx)(G$.Z,(0,l.Z)({indeterminateIcon:e.checked?(0,u.jsx)(v,{}):(0,u.jsx)(m,{}),icon:(0,u.jsx)(m,{}),checkedIcon:(0,u.jsx)(v,{}),sx:{p:0}},e))}},onSelectionModelChange:function(e){return O(e)},disableTabView:!0,sx:{height:"340px",".Mui-selected":{border:"none",backgroundColor:"white !important"},"& .MuiDataGrid-columnHeaderCheckbox .MuiDataGrid-columnHeaderTitleContainer":{display:"none"}},hideFooter:!0})}),(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",justifyContent:"end",children:[(0,u.jsx)(Wo,{form:"copy-tasks-form",type:"submit",onClick:function(){return a(!1)},variant:"secondary",children:"Cancel"}),(0,u.jsx)(Wo,{form:"copy-tasks-form",type:"submit",variant:"primary",children:"Confirm"})]})]})]})})},O4=["title","titleId"];function E4(){return E4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E4.apply(this,arguments)}function D4(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function P4(e,t){var n=e.title,r=e.titleId,i=D4(e,O4);return o.createElement("svg",E4({width:20,height:20,viewBox:"0 0 20 20",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,j4||(j4=o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.16663 1.66666C2.78579 1.66666 1.66663 2.78591 1.66663 4.16666V5.83332V13.3333C1.66663 15.1742 3.15913 16.6667 4.99996 16.6667H9.60066C8.61616 15.7535 8.00004 14.4487 8.00004 13C8.00004 10.2386 10.2386 7.99999 13 7.99999C14.3261 7.99999 15.5979 8.52677 16.5356 9.46446C16.5802 9.50908 16.6239 9.55447 16.6666 9.60058V5.83332C16.6666 5.37307 16.2933 4.99999 15.8333 4.99999H11.6666C11.0375 4.99999 10.835 4.79591 10.3383 3.80207C9.58581 2.29591 8.95414 1.66666 7.49997 1.66666H4.16663ZM4.16663 3.33332H7.49997C8.12914 3.33332 8.33163 3.53741 8.8283 4.53124C8.93604 4.74763 8.97785 4.81888 9.08323 4.99843L9.08324 4.99844L9.08498 5.00141C7.21549 5.00141 5.69035 5.00081 4.62705 5.00039L4.62407 5.00039L3.33329 4.99999V4.16666C3.33329 3.70641 3.70663 3.33332 4.16663 3.33332ZM8.91658 12.9493C8.91658 10.7222 10.722 8.91662 12.9492 8.91662C15.1764 8.91662 16.9818 10.7222 16.9818 12.9493C16.9818 13.8753 16.6673 14.7493 16.1427 15.4298L18.3523 17.6276C18.5491 17.8247 18.5491 18.1554 18.3523 18.3525C18.1554 18.5491 17.8245 18.5491 17.6276 18.3525L15.4332 16.1396C14.7526 16.6638 13.875 16.9819 12.9492 16.9819C10.722 16.9819 8.91658 15.1763 8.91658 12.9493ZM15.9736 12.9493C15.9736 11.2787 14.6195 9.92478 12.9492 9.92478C11.2788 9.92478 9.92474 11.2787 9.92474 12.9493C9.92474 14.6198 11.2788 15.9738 12.9492 15.9738C14.6195 15.9738 15.9736 14.6198 15.9736 12.9493Z",fill:"current"})))}var A4=o.forwardRef(P4),M4=(n.p,function(e){var t,n=e.showRightColumnn,r=e.setShowRightColumn,i=e.milestoneData,a=e.milestonesArray,s=e.getRecurringMilestonesParentIndex,c=e.setIsFlagAndUnflagModalOpen,d=e.setEntityType,p=e.setEntityId,f=e.setNumberOfRowsTasks,h=e.tasks,m=e.setTasks,v=e.taskId,g=e.setTaskId,y=e.scoreMilestone,b=e.determineWhichTaskToShow,x=e.recurringMilestones,w=e.setIsTaskDateEndEditing,C=e.rightColumnWidth,j=(0,Ms.J)(),S=Yd(),k=null===S||void 0===S?void 0:S.includes(Kt.ks.Buyer),Z=Pa(),O=(0,ze.UO)(),E=((0,ze.s0)(),(0,o.useContext)(cM)),D=(0,o.useState)(!1),P=(0,Le.Z)(D,2),A=P[0],M=P[1],T=(0,o.useState)(!1),I=(0,Le.Z)(T,2),R=I[0],F=I[1],B=(0,o.useState)(!1),L=(0,Le.Z)(B,2),N=L[0],_=L[1],z=(0,o.useState)(null),H=(0,Le.Z)(z,2),W=H[0],V=H[1],U=(0,o.useState)(!1),q=(0,Le.Z)(U,2),G=(q[0],q[1]),Y=function(){return null===x||void 0===x?void 0:x[x.findIndex((function(e){return e.id===O.milestoneId}))-1]},K=fd({mode:"onChange",defaultValues:{name:""}}),J=K.handleSubmit,X=K.reset,Q=K.formState.isValid,$=oa({resource:"/tasks/"}),ee=$.mutate,te=$.isLoading,ne=(0,As.Z)({resource:"/milestones"}).mutate,re=$P(),oe=re.joyride,ie=re.runJoyride,ae=re.tutorials,se=re.updateJoyride,le=re.update;(0,o.useEffect)((function(){void 0!==Y()&&G((function(){var e;return 0!==(null===(e=Y())||void 0===e?void 0:e.tasksCount)}))}),[Y]);var ce,ue=[{field:"status",headerName:"Status",flex:.07,renderCell:function(e){return(0,u.jsx)(EI,{text:e.value})}},{field:"name",headerName:"Task",flex:.4,renderCell:function(e){var t,n,r=(null===e||void 0===e||null===(t=e.row)||void 0===t?void 0:t.buyerFlagged)||(null===e||void 0===e||null===(n=e.row)||void 0===n?void 0:n.sellerFlagged);return(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(rn.Z,{variant:"body2",fontWeight:600,sx:{color:"primaryDark.600"},children:e.value}),r&&(0,u.jsx)(nn.Z,{alignItems:"center",justifyContent:"center",sx:{bgcolor:"secondaryPink.100",width:"36px",height:"29px",borderRadius:"6px"},children:(0,u.jsx)(BT,{fill:tr.Us[700],style:{width:16,height:16}})})]})}},{field:"end",headerName:"End date",flex:.09,renderCell:function(e){return null!==e.value?(0,u.jsx)(rn.Z,{fontSize:"0.875rem",children:(0,rs.qJ)(e.value)}):(0,u.jsx)(rn.Z,{children:"-"})}}];return(0,u.jsxs)(u.Fragment,{children:[(null===ae||void 0===ae?void 0:ae.includes(Kt.y$.MilestoneDetail))&&(0,u.jsx)(IP,{steps:(ce=k,[(0,l.Z)((0,l.Z)({content:ce?(0,u.jsx)(rn.Z,{children:"The task status can be changed by clicking the status button. View the statuses to get a quick overview of task progress."}):(0,u.jsx)(rn.Z,{children:"You can change task status by clicking the status button. For example, if you've started working on a task, change the status to In progress to update the buyer and update your overall milestone progress."})},qP),{},{target:".react-joyride-step-1-task",title:"Task status"}),(0,l.Z)((0,l.Z)({content:(0,u.jsx)(rn.Z,{children:"Click the action button to flag or delete the task."})},qP),{},{target:".react-joyride-step-2-task",title:"Task actions"}),(0,l.Z)((0,l.Z)({content:(0,u.jsx)(rn.Z,{children:"To add subtasks, press the Add subtask button. Enter your subtask name and deadline and click Save when you're ready."})},qP),{},{target:".react-joyride-step-4-task",title:"Add subtask"}),(0,l.Z)((0,l.Z)({content:(0,u.jsx)(rn.Z,{children:"Press the pen icon to edit the task."})},qP),{},{target:".react-joyride-step-3-task",title:"Edit task"})]),run:oe.run,scrollDuration:400,scrollToFirstStep:!0,showSkipButton:!0,disableScrolling:oe.steps[oe.stepIndex]&&oe.steps[oe.stepIndex].disableScrolling,stepIndex:oe.stepIndex,callback:function(e){return se(e)},continuous:!0,floaterProps:{styles:{floaterOpening:{zIndex:999999}}},tooltipComponent:function(e){return NP(e)}}),(0,u.jsx)(y4,{isModalOpen:A,setIsModalOpen:M,title:function(){switch(W){case Kt.tg.UnderReview:return"Milestone review";case Kt.tg.Pending:return"Milestone start";case Kt.tg.Approved:case Kt.tg.Completed:return"Approve milestone";default:return"Confirm action"}}(),message:function(){switch(W){case Kt.tg.UnderReview:return"You are notifying the buyer that that the work on this milestone is ready for review.";case Kt.tg.Pending:return"The milestone will be marked as started. Confirm to notify the buyer that the milestone can now be reviewed.";case Kt.tg.Approved:return"You are confirming that the milestone has been reviewed and approved.";case Kt.tg.Completed:return"This action will confirm that the milestone has been reviewed and approved.";default:return"Confirm"}}(),confirmButtonText:function(){switch(W){case Kt.tg.UnderReview:return"Request review";case Kt.tg.Approved:return"Approve";default:return"Confirm"}}(),onConfirm:function(){switch(W){case Kt.tg.UnderReview:ne({id:null===i||void 0===i?void 0:i.id,suffix:"request-review"},{onSuccess:function(){j()}});break;case Kt.tg.Approved:ne({id:null===i||void 0===i?void 0:i.id,suffix:"approve"},{onSuccess:function(){j()}});break;default:return null}return null},iconProps:{wrapperBackgroundColor:tr.dx[100],icon:(0,u.jsx)(A4,{fill:tr.dx[700],style:{width:22,height:22}})}}),R&&(0,u.jsx)(Q2,{isOpen:R,setIsOpen:F,data:i}),(0,u.jsx)(Z4,{isModalOpen:N,setIsModalOpen:_,previousMilestone:Y(),recurringMilestones:(null===x||void 0===x?void 0:x.filter((function(e){return e.id!==O.milestoneId})))||[],width:"30%"}),(0,u.jsxs)(nn.Z,{spacing:4,width:{md:n?"45%":"100%",lg:"55%"},sx:{ml:"0px !important"},children:[(0,u.jsx)(p5,{screen:Kt.Cx.MilestoneScreen,customAction:{action:function(){return _(!0)},subcategory:Kt.OH.BannerRecurringMilestone}}),(0,u.jsx)(i4,{milestoneData:i,recurringMilestonesParent:null===a||void 0===a?void 0:a[s()],setIsFlagAndUnflagModalOpen:c,setEntityType:d,setEntityId:p,setTaskId:g,determineWhichTaskToShow:b}),(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",width:{md:(null===i||void 0===i?void 0:i.status)===Kt.tg.Completed?"100%":"58%",xl:(null===i||void 0===i?void 0:i.status)===Kt.tg.Completed?"100%":"75%"},children:[(0,u.jsx)(EI,{text:null===i||void 0===i?void 0:i.status,componentReturnType:"chip",className:"react-joyride-step-4-milestone"}),(0,u.jsx)(z5,{value:Number(y)||0})]}),function(){if((null===i||void 0===i?void 0:i.status)===Kt.tg.Completed)return(0,u.jsx)(u.Fragment,{});if(!k){if((null===i||void 0===i?void 0:i.status)===Kt.tg.Pending)return(0,u.jsx)(g4,{variant:"incompleteDisabled",children:"Request review"});if((null===i||void 0===i?void 0:i.status)===Kt.tg.InProgress)return 0===(null===i||void 0===i?void 0:i.tasksCount)?(0,u.jsx)(g4,{variant:"incompleteDisabled",children:"Request review"}):(null===i||void 0===i?void 0:i.tasksCount)-(null===i||void 0===i?void 0:i.tasksCanceledCount)===(null===i||void 0===i?void 0:i.tasksCompletedCount)?(0,u.jsx)(g4,{variant:"incompleteEnabled",onClick:function(){k||(null===i||void 0===i?void 0:i.status)===Kt.tg.InProgress&&(M(!0),V(Kt.tg.UnderReview))},children:"Request review"}):(0,u.jsx)(g4,{variant:"incompleteDisabled",children:"Request review"});if((null===i||void 0===i?void 0:i.status)===Kt.tg.UnderReview)return(0,u.jsx)(g4,{variant:"completedDisabled",children:"Request review"});if((null===i||void 0===i?void 0:i.status)===Kt.tg.Approved)return null!==i&&void 0!==i&&i.sellerInvoice?(0,u.jsx)(g4,{variant:"completedDisabled",children:"Request payment"}):(0,u.jsx)(g4,{variant:"incompleteEnabled",onClick:function(){F(!0)},children:"Request payment"})}if(k){if((null===i||void 0===i?void 0:i.status)===Kt.tg.Pending||(null===i||void 0===i?void 0:i.status)===Kt.tg.InProgress)return(0,u.jsx)(g4,{variant:"incompleteDisabled",children:"Approve"});if((null===i||void 0===i?void 0:i.status)===Kt.tg.UnderReview)return(0,u.jsx)(g4,{variant:"incompleteEnabled",onClick:function(){M(!0),V(Kt.tg.Approved)},children:"Approve"});if((null===i||void 0===i?void 0:i.status)===Kt.tg.Approved)return null!==i&&void 0!==i&&i.buyerInvoice?(0,u.jsx)(g4,{variant:"completedDisabled",disabled:!1,startIcon:(0,u.jsx)(u3,{fill:tr.IV[600]}),href:i.buyerInvoice,target:"_blank",rel:"noreferrer",children:"Pay milestone"}):(0,u.jsx)(g4,{variant:"completedDisabled",children:"Approved"})}}()]}),(0,u.jsxs)(nn.Z,{spacing:2,height:"100%",position:"relative",justifyContent:"space-between",children:[(0,u.jsx)(k2,{resource:"tasks",columns:ue,searchParams:{milestone:null===O||void 0===O?void 0:O.milestoneId,company:null===Z||void 0===Z||null===(t=Z.membership)||void 0===t?void 0:t.company},onLoadCount:function(e){return f(e)},onDataLoaded:function(e){m(e),(null===h&&e.length>0||h&&(null===h||void 0===h?void 0:h.length)>e.length)&&g(b(e))},selectionModel:v||void 0,onRowClick:function(e){g(e.row.id),n||r(!0)},visualStyle:"secondary",disableTabView:!0,sx:{height:"400px",paddingBottom:"50px"},hideFooter:!0}),(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},K),{},{children:(0,u.jsx)(tn,{component:"form",sx:{position:"fixed",bottom:15,zIndex:4,width:{md:"calc(100vw - ".concat(E,"px - ").concat(C,"px - 10px)"),bg:"calc(100vw - ".concat(E,"px - ").concat(C,"px - 68px)")}},onSubmit:J((function(e){ee({milestone:O.milestoneId,description:"",name:e.name,start:new Date,end:new Date((new Date).setDate((new Date).getDate()+1))},{onSuccess:function(e){var t=e.data;X(),j(),g(t.id),w(!0),null!==ae&&void 0!==ae&&ae.includes(Kt.y$.TaskDetail)||(ie(),le(Kt.y$.TaskDetail))}})})),children:(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",width:"100%",children:[(0,u.jsx)(Zd,{disabled:(null===i||void 0===i?void 0:i.status)===Kt.tg.UnderReview||(null===i||void 0===i?void 0:i.status)===Kt.tg.Approved||(null===i||void 0===i?void 0:i.status)===Kt.tg.Completed,required:!0,placeholder:"New task subject",name:"name",variant:"outlined",fullWidth:!0,sx:{width:"100%",bgcolor:"white"}}),(0,u.jsx)(Wo,{className:"react-joyride-step-6-milestone",type:"submit",disabled:!Q||te,variant:"primaryLight",startIcon:(0,u.jsx)(D0,{style:{width:25,height:25}}),sx:{width:160,height:"48px"},children:(0,u.jsx)(rn.Z,{variant:"body3",fontWeight:600,children:"Add Task"})})]})})}))]})]})]})}),T4=n(1068),I4=["name","required","disabled","label","onChange","removeRequiredAsterisk"],R4=function(e){var t=e.name,n=e.required,r=e.disabled,o=e.label,i=e.onChange,a=e.removeRequiredAsterisk,s=void 0!==a&&a,c=Nn(e,I4),d=Xc(),p=d.control,f=d.getValues;return(0,u.jsx)(du,{control:p,name:t,rules:{required:n},render:function(e){var a=e.field;return(0,u.jsx)(iF.Z,{sx:{m:0,".MuiCheckbox-root":{zIndex:2,p:0},".Mui-checked":{color:"".concat(tr.so[500]," !important")},".Mui-checked:after":{content:'""',left:"50%",top:"50%",zIndex:-1,transform:"translate(-50%, -50%)",height:15,width:15,position:"absolute",backgroundColor:"primaryDark.600",borderRadius:"50%"},"& .MuiFormControlLabel-asterisk":{display:s?"none":"block"}},control:(0,u.jsx)(G$.Z,(0,l.Z)((0,l.Z)((0,l.Z)({required:n},a),{},{onChange:function(e){a.onChange(e),null===i||void 0===i||i()}},c),{},{checked:f(t)})),disabled:r,label:o})}})},F4=["name","required","data","onSave","showLabelAndSaveButtonInsideInput","parentElWidth","showPencilIcon","showSaveButton","isTaskTitleEditingProp","shouldDisableEditButton","sx","classNames","disableExternalSaveButton","shouldBoldText","disableClickAway","getContentAndInitialValue","isExistingEntity"],B4=function(e){var t=e.name,n=e.required,r=e.data,i=e.onSave,a=e.showLabelAndSaveButtonInsideInput,s=void 0!==a&&a,c=e.parentElWidth,d=e.showPencilIcon,p=void 0===d||d,f=e.showSaveButton,h=void 0===f||f,m=e.isTaskTitleEditingProp,v=void 0!==m&&m,g=e.shouldDisableEditButton,y=e.sx,b=e.classNames,x=e.disableExternalSaveButton,w=e.shouldBoldText,C=e.disableClickAway,j=void 0!==C&&C,S=e.getContentAndInitialValue,k=e.isExistingEntity,Z=Nn(e,F4),O=Xc(),E=O.control,D=O.setValue,P=O.getValues,A=(0,o.useState)(!1),M=(0,Le.Z)(A,2),T=M[0],I=M[1];(0,o.useEffect)((function(){""===P(t)&&I(!0),""!==P(t)&&I(!1),x&&(""===P(t)&&x(!0),""!==P(t)&&x(!1))}),[P(t)]);var R=(0,o.useRef)(null),F=(0,o.useState)(0),B=(0,Le.Z)(F,2),L=B[0],N=B[1],_=(0,o.useState)(0),z=(0,Le.Z)(_,2),H=z[0],W=z[1],V=(0,o.useState)(""),q=(0,Le.Z)(V,2),G=q[0],Y=q[1],K=(0,o.useState)(null),J=(0,Le.Z)(K,2),X=J[0],Q=J[1],$=(0,o.useState)(!1),ee=(0,Le.Z)($,2),te=ee[0],ne=ee[1];(0,o.useEffect)((function(){ne(v)}),[v]),(0,o.useEffect)((function(){Q(P(t))}),[r]),(0,o.useEffect)((function(){var e;N(null===(e=R.current)||void 0===e?void 0:e.offsetWidth)}),[G]),(0,o.useEffect)((function(){setTimeout((function(){var e;N(null===(e=R.current)||void 0===e?void 0:e.offsetWidth),s&&W(176)}),0)}),[s]),(0,o.useEffect)((function(){""===P(t)&&Z.placeholder?Y(Z.placeholder):Y(P(t))}),[P(),Z.placeholder]);var re=(0,o.useCallback)(Dd().debounce((function(){null===S||void 0===S||S({content:G,initialValue:X||""})}),320),[G,X]);return(0,o.useEffect)((function(){j&&S&&!k&&re()}),[j,re,k]),(0,u.jsx)(U.Z,{onClickAway:function(){j||te&&(D(t,X),Y(X),ne(!1))},children:(0,u.jsxs)(nn.Z,{sx:(0,l.Z)({position:"relative",width:"fit-content",maxWidth:c},y),children:[s&&(0,u.jsxs)(nn.Z,{spacing:1,direction:"row",alignItems:"center",justifyContent:te?"space-between":"initial",sx:{position:"absolute",top:12,zIndex:1,px:1,minWidth:160,maxWidth:c,width:"100%"},children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",children:"description"}),te?(0,u.jsx)(rn.Z,{component:"button",disabled:T,onClick:function(){ne(!1),i()},variant:"heading4",color:T?"primaryDark.300":"primaryLight.500",sx:{cursor:"pointer",border:"none",bgcolor:"transparent",height:30},children:"save"}):(0,u.jsx)(io.Z,{disabled:g||!1,onClick:function(){return ne(!0)},sx:{height:30,p:"6px"},children:(0,u.jsx)(Kw,{fill:g?tr.IV[300]:tr.IV[500],style:{width:18,height:18}})})]}),(0,u.jsx)(du,{control:E,name:t,rules:n?{required:"This field is required"}:{required:!1},render:function(e){return(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",children:[(0,u.jsx)(rn.Z,{ref:R,sx:{position:"absolute",opacity:0,display:"inline",px:"16px",pr:s?0:"16px",zIndex:-100,whiteSpace:"nowrap",overflow:"hidden",fontSize:"1rem",fontWeight:500,maxWidth:c},children:G}),L&&(0,u.jsx)(xd.Z,(0,l.Z)((0,l.Z)({inputRef:function(e){e&&(te?e.focus():e.blur())}},e.field),{},{onChange:function(e){D(t,e.target.value),Y(e.target.value)},multiline:!0,placeholder:Z.placeholder,focused:te,spellCheck:!1,InputProps:{style:{fontWeight:w?600:500,fontSize:"1rem",color:s&&te?tr.IV[400]:tr.IV[600]},endAdornment:te&&!s&&h?(0,u.jsx)(rn.Z,{component:"button",disabled:T,onClick:function(){ne(!1),i()},variant:"heading4",color:T?"primaryDark.300":"primaryLight.500",sx:{cursor:"pointer",border:"none",bgcolor:"transparent",mr:"4px"},children:"save"}):null},onFocus:function(e){ne(!0),e.currentTarget.setSelectionRange(e.currentTarget.value.length,e.currentTarget.value.length)},name:t,variant:"outlined",required:n,sx:{width:s?te?L:L+16:h?te?L+40:L+16:L,whiteSpace:"nowrap",overflow:"hidden",pointerEvents:te?"all":"none","& fieldset":{border:te?"1px solid transparent":"none"},bgcolor:te?"#F6F7FF":"transparent",minWidth:H,flexWrap:"wrap","& .MuiOutlinedInput-root":{p:0,pr:"6px",pt:s?"30px":0,"&.Mui-focused fieldset":{border:"1px solid #BEC6FF"}},"& .MuiOutlinedInput-input":{width:"100%",px:"8px",pr:s?0:"8px",py:"10px"}}})),p&&!te&&!s&&(0,u.jsx)(io.Z,{className:b,disabled:g||!1,onClick:function(){return ne(!0)},sx:{ml:-3.95,p:"6px"},children:(0,u.jsx)(Kw,{fill:g?tr.IV[300]:tr.IV[500],style:{width:18,height:18}})})]})}})]})})},L4=function(e){var t=e.data,n=e.mapToGetTheValueFrom,r=e.status,i=e.menuElements,a=e.onMenuElementClick,s=e.classNames,l=(0,o.useState)(!1),c=(0,Le.Z)(l,2),d=c[0],p=c[1];return(0,u.jsx)(Dk,{classNames:s,renderDropdownButtonElement:function(e){var t=e.onClick;return(0,u.jsx)(EI,{text:r,showChevronIcons:!0,isChipClicked:d,setIsChipClicked:p,onClick:t,sx:{height:"28px",cursor:"pointer"}})},onClickAway:function(){return p(!1)},defaultValue:r,menuItemsContents:Object.values(i).map((function(e){return{key:e,text:n.get(e),onClick:function(){t.status=e,a(),p(!1)}}}))})},N4=["textFieldProps"],_4={"&.MuiFormControl-root":{minWidth:"108px",bgcolor:"#F6F7FF",border:"1px solid #BEC6FF",cursor:"pointer"},".MuiButtonBase-root":{display:"none"},".MuiOutlinedInput-root .MuiInputAdornment-root":{display:"none"},input:{fontSize:"1rem",cursor:"pointer",fontWeight:500,color:"#A5AAB9",padding:"10px 7px"},".MuiFormHelperText-root":{marginLeft:0,boxShadow:"none !important",color:"secondaryPink.500",marginTop:"0 !important",lineHeight:1},fieldset:{border:"0 !important"}},z4=function(e){var t=e.textFieldProps,n=Nn(e,N4);return(0,u.jsx)(xd.Z,(0,l.Z)((0,l.Z)((0,l.Z)({},t),n),{},{focused:!1,label:null===(0,l.Z)({},n).ownerState.value?(0,u.jsx)(rn.Z,{fontWeight:500,color:"primaryDark.400",sx:{mt:"-6px",height:"100%",alignItems:"center",pl:"-13px",width:"100%"},children:"End Date"}):"",InputLabelProps:{shrink:!1},variant:"outlined",sx:function(){var e=(0,l.Z)({},n);return(0,l.Z)((0,l.Z)({},_4),{},{"& .MuiInputLabel-root":{display:null===e.ownerState.value?"flex":"none",width:"100%",height:"100%",alignItems:"center",ml:"-6px",mt:"-2px"},caretColor:"transparent","&.MuiFormControl-root":(0,l.Z)((0,l.Z)({},_4["&.MuiFormControl-root"]),{},{width:"102px"}),input:(0,l.Z)({},_4.input)})}()}))},H4=function(e){var n,r,i,a,s=e.numberOfTasksRows,c=e.showRightColumnn,d=e.isLessThanLarge,p=e.milestoneData,f=e.taskData,h=e.isFetchingTaskLoading,m=e.isTaskDateEndEditing,v=e.setIsTaskDateEndEditing,g=e.setShowRightColumn,y=e.setIsFlagAndUnflagModalOpen,b=e.setEntityType,x=e.setEntityId,w=e.setIsDeleteModalOpen,C=e.task,j=e.getRightColumnRefWidth,S=(0,ze.UO)(),k=(0,Ms.J)(),Z=(0,o.useRef)(null),O=(0,o.useRef)(null),E=(0,o.useRef)(null),D=(0,o.useState)(null),P=(0,Le.Z)(D,2),A=P[0],M=P[1],T=Yd(),I=null===T||void 0===T?void 0:T.includes(Kt.ks.Buyer),R=(0,o.useState)({}),F=(0,Le.Z)(R,2),B=F[0],L=F[1],N=(0,o.useState)(null),_=(0,Le.Z)(N,2),z=_[0],H=_[1],W=(null===f||void 0===f?void 0:f.buyerFlagged)||(null===f||void 0===f?void 0:f.sellerFlagged),V=(0,o.useState)(!1),q=(0,Le.Z)(V,2),G=q[0],Y=q[1],K=(0,o.useState)(""),J=(0,Le.Z)(K,2),X=J[0],Q=J[1],$=(0,o.useState)(null),ee=(0,Le.Z)($,2),te=ee[0],ne=ee[1],re=function(e){if(I){if(null!==e&&void 0!==e&&e.buyerFlagged)return!0;if(null!==e&&void 0!==e&&e.sellerFlagged)return!1}if(!I){if(null!==e&&void 0!==e&&e.buyerFlagged)return!1;if(null!==e&&void 0!==e&&e.sellerFlagged)return!0}return!0},oe=(0,o.useState)(!1),ie=(0,Le.Z)(oe,2),ae=ie[0],se=ie[1],le=(null===p||void 0===p?void 0:p.status)===Kt.tg.UnderReview||(null===p||void 0===p?void 0:p.status)===Kt.tg.Approved||(null===p||void 0===p?void 0:p.status)===Kt.tg.Completed,ce={key:"delete",icon:(0,u.jsx)(k5,{fill:tr.IV[500],style:{width:18,height:18}}),text:"Delete",disabled:!!le,onClick:function(){w(!0),b(T5.Task),x(f.id)}},ue=function(e){return[{key:"edit",icon:(0,u.jsx)(Kw,{fill:tr.IV[500],style:{width:18,height:18}}),disabled:!!le,text:"Edit",onClick:function(){return L((0,t.Z)({},e,!0))}},{key:"delete",icon:(0,u.jsx)(k5,{fill:tr.IV[500],style:{width:18,height:18}}),disabled:!!le,text:"Delete",onClick:function(){w(!0),b(T5.Subtask),x(he("subtasks")[e].id)}}]},de=fd({mode:"onChange",defaultValues:{subtasks:f&&f.subtasks.length>0?f.subtasks.map((function(e){return{id:e.id,status:e.status,name:e.name,end:e.end,buyerFlagged:e.buyerFlagged,sellerFlagged:e.sellerFlagged}})):[{id:"",status:!1,name:"",end:new Date}]}}),pe=de.control,fe=de.reset,he=de.getValues,me=Du({control:pe,name:"subtasks"}),ve=me.fields,ge=me.append,ye=me.remove,be=me.update,xe=(0,As.Z)({resource:"/tasks"}).mutate,we=(0,As.Z)({resource:"/subtasks"}).mutate,Ce=oa({resource:"/subtasks"}).mutate,je=fd({mode:"onChange",defaultValues:{id:"",name:"",description:"",start:null!==f&&void 0!==f&&f.start?f.start:new Date,end:new Date((new Date).setDate((new Date).getDate()+1))}}),Se=je.getValues,ke=je.setValue,Ze=function(){xe({data:{name:Se("name"),description:Se("description"),milestone:null===S||void 0===S?void 0:S.milestoneId,start:Se("start"),end:Se("end")},id:Se("id")},{onSuccess:function(){k(),m&&v(!1),ae&&se(!1)}})};return(0,o.useEffect)((function(){void 0!==f?(ke("id",f.id),ke("name",f.name),ke("description",f.description),ke("start",f.start),ke("end",f.end)):(ke("id",""),ke("name",""),ke("description",""))}),[f]),(0,o.useEffect)((function(){f&&f.subtasks.length>0?fe({subtasks:f.subtasks.map((function(e){return{id:e.id,status:e.status,name:e.name,end:e.end,buyerFlagged:e.buyerFlagged,sellerFlagged:e.sellerFlagged}}))}):fe({subtasks:[]})}),[f]),(0,o.useEffect)((function(){O.current&&M(O.current.offsetHeight)}),[O.current]),(0,o.useEffect)((function(){null!==O.current&&null!==E.current&&H(O.current.offsetWidth-E.current.offsetWidth)}),[E.current,O.current]),(0,o.useEffect)((function(){if(null!==Z.current){var e=new ResizeObserver((function(e){j(e[0].contentRect.width)}));return e.observe(Z.current),function(){return Z.current&&e.unobserve(Z.current)}}}),[]),(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(tn,{ref:Z,sx:{display:c||!d?"block":"none",opacity:null!==s&&s>0?1:0,width:{md:"57%",lg:"45%"},borderTopLeftRadius:"8px",borderBottomLeftRadius:"8px",bgcolor:"common.white",boxShadow:"-1px 10px 30px rgba(56, 69, 114, 0.1)",position:{md:"absolute",lg:"relative"},top:0,right:0,bottom:0},children:void 0!==f&&null!==Z.current&&!h&&(0,u.jsxs)(nn.Z,{spacing:4,height:"100%",sx:{p:3,pl:2},children:[(0,u.jsxs)(nn.Z,{spacing:.75,children:[(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",children:[(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",alignItems:"flex-start",children:[(null===p||void 0===p?void 0:p.status)!==Kt.tg.UnderReview&&(null===p||void 0===p?void 0:p.status)!==Kt.tg.Completed&&(null===p||void 0===p?void 0:p.status)!==Kt.tg.Approved?(0,u.jsx)(L4,{data:f,mapToGetTheValueFrom:T$.qV,status:f.status,menuElements:Kt.YH,classNames:"react-joyride-step-1-task",onMenuElementClick:function(){xe({data:f,id:f.id},{onSuccess:function(){k()}})}}):(0,u.jsx)(EI,{className:"react-joyride-step-1-task",text:f.status,sx:{height:"28px"}}),W&&(0,u.jsx)(nn.Z,{alignItems:"center",justifyContent:"center",sx:{bgcolor:"secondaryPink.100",width:"36px",height:"29px",borderRadius:"6px"},children:(0,u.jsx)(BT,{fill:tr.Us[700],style:{width:16,height:16}})})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,alignItems:"center",children:[d&&(0,u.jsx)(io.Z,{onClick:function(){return g(!1)},sx:{width:"30px",height:"30px"},children:(0,u.jsx)(K3.Z,{sx:{color:"primaryDark.400"}})}),(0,u.jsx)(Dk,{classNames:"react-joyride-step-2-task",dropdownOrientation:"horizontal",menuItemsContents:function(){if(I){if(null!==f&&void 0!==f&&f.buyerFlagged)return!0;if(null!==f&&void 0!==f&&f.sellerFlagged)return!1}if(!I){if(null!==f&&void 0!==f&&f.buyerFlagged)return!1;if(null!==f&&void 0!==f&&f.sellerFlagged)return!0}return!0}()?[{key:W?"Un-Flag":"Flag",icon:(0,u.jsx)(BT,{fill:tr.IV[500],style:{width:18,height:18}}),text:W?"Un-Flag":"Flag",disabled:(null===p||void 0===p?void 0:p.status)===Kt.tg.Completed,onClick:function(){y(!0),b(T5.Task),x(f.id)}},ce]:[ce]})]})]}),""!==Se("name")&&(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},je),{},{children:(0,u.jsx)(tn,{component:"form",sx:{height:"100%"},children:(0,u.jsx)(B4,{name:"name",required:!0,data:C,onSave:Ze,parentElWidth:Z.current.offsetWidth-40,shouldDisableEditButton:le,classNames:"react-joyride-step-3-task",shouldBoldText:!0})})}))]}),(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(rn.Z,{variant:"heading3",color:"primaryDark.600",sx:{ml:1},children:"task details"}),(0,u.jsxs)(nn.Z,{spacing:1.5,alignItems:"center",direction:"row",sx:{ml:"8px !important"},children:[(0,u.jsx)(io.Z,{disabled:!!le,onClick:function(){return se(!0)},children:(0,u.jsx)(j3,{fill:le?tr.IV[300]:tr.IV[500],style:{width:20,height:20}})}),ae?(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},je),{},{children:(0,u.jsx)(tn,{component:"form",sx:{ml:"4px !important"},children:(0,u.jsx)(Eh,{dateAdapter:vg,children:(0,u.jsx)(U.Z,{onClickAway:function(){return se(!1)},children:(0,u.jsx)(tn,{children:(0,u.jsx)(Vw,{name:"start",label:"Start date",required:!0,minDate:new Date(null===p||void 0===p?void 0:p.start),maxDate:new Date(null===p||void 0===p?void 0:p.end),onChange:function(){return Ze()},openDatePicker:ae,RenderInputElement:z4,inputProps:{style:{fontSize:"0.875rem"}}})})})})})})):"string"===typeof(null===(n=Se())||void 0===n?void 0:n.start)&&(0,u.jsx)(rn.Z,{color:"primaryDark.600",fontWeight:600,ml:"2px !important",children:(0,rs.qJ)(null===(r=Se())||void 0===r?void 0:r.start)}),(0,u.jsx)(e4,{fill:tr.E4[500],style:{width:16,height:16}}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",sx:{ml:"5px !important"},children:[(0,u.jsx)(io.Z,{disabled:!!le,onClick:function(){return v(!0)},children:(0,u.jsx)(j3,{fill:le?tr.IV[300]:tr.IV[500],style:{width:20,height:20}})}),m?(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},je),{},{children:(0,u.jsx)(tn,{component:"form",sx:{ml:"4px !important"},children:(0,u.jsx)(Eh,{dateAdapter:vg,children:(0,u.jsx)(U.Z,{onClickAway:function(){return v(!1)},children:(0,u.jsx)(tn,{children:(0,u.jsx)(Vw,{name:"end",label:"End date",required:!0,onChange:function(){return Ze()},openDatePicker:m,RenderInputElement:z4,inputProps:{style:{fontSize:"0.875rem"}}})})})})})})):"string"===typeof(null===(i=Se())||void 0===i?void 0:i.end)&&(0,u.jsx)(rn.Z,{color:"primaryDark.600",fontWeight:600,ml:"2px !important",children:(0,rs.qJ)(null===(a=Se())||void 0===a?void 0:a.end)})]})]}),""!==Se("name")&&(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},je),{},{children:(0,u.jsx)(tn,{component:"form",sx:{height:"100%"},children:(0,u.jsx)(B4,{name:"description",placeholder:"Add description here",data:C,onSave:Ze,showLabelAndSaveButtonInsideInput:!0,parentElWidth:Z.current.offsetWidth-50,shouldDisableEditButton:le})})}))]}),(0,u.jsxs)(nn.Z,{spacing:2,height:"100%",children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{variant:"heading3",color:"primaryDark.600",sx:{ml:1},children:"subtask details"}),(0,u.jsx)(Wo,{startIcon:(0,u.jsx)(T4.Z,{}),className:"react-joyride-step-4-task",disabled:!!le,onClick:function(){ge({status:!1,name:"",end:null}),L((0,l.Z)((0,l.Z)({},B),{},(0,t.Z)({},ve.length,!0)))},variant:"primaryText",sx:{"&, &:hover, &:disabled":{textDecoration:"none"}},children:(0,u.jsx)(rn.Z,{variant:"heading4",children:"add subtask"})})]}),(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},de),{},{children:(0,u.jsx)(tn,{ref:O,component:"form",sx:{height:"100%",width:"100%",maxHeight:A,overflowY:"auto"},children:ve.map((function(e,n){var r,o,i,a,s,c;return(0,u.jsx)(U.Z,{onClickAway:function(){if(B[n]){L((0,l.Z)((0,l.Z)({},B),{},(0,t.Z)({},n,!1))),"id"in he("subtasks")[n]||ye(n);var e=f.subtasks[n].end,r=he("subtasks")[n].end;X===te&&r===e||fe({subtasks:f.subtasks.map((function(e){return{id:e.id,status:e.status,name:e.name,end:e.end,buyerFlagged:e.buyerFlagged,sellerFlagged:e.sellerFlagged}}))})}},children:(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{"&:nth-child(1)":{borderTop:"1px solid #E5E8FF"},minHeight:57,ml:"8px !important",py:"4px",px:"10px",borderBottom:"1px solid #E5E8FF"},children:[(0,u.jsxs)(nn.Z,{spacing:B[n]?5:2,direction:"row",children:[(0,u.jsx)(R4,{disabled:!!le,sx:{display:B[n]?"none":"flex"},name:"subtasks.".concat(n,".status"),label:"",onChange:function(){"id"in he("subtasks")[n]?we({id:he("subtasks")[n].id,data:{name:he("subtasks")[n].name,status:he("subtasks")[n].status,end:he("subtasks")[n].end}},{onSuccess:function(){k()}}):be(n,(0,l.Z)((0,l.Z)({},he("subtasks")[n]),{},{status:he("subtasks")[n].status}))}}),(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",children:[(0,u.jsx)(B4,{required:!0,disableClickAway:!0,getContentAndInitialValue:function(e){var t=e.content,n=e.initialValue;ne(n),Q(t)},isExistingEntity:!("id"in he("subtasks")[n]),name:"subtasks.".concat(n,".name"),data:he("subtasks")[n],placeholder:"New Subtask",showPencilIcon:!1,showSaveButton:!1,isTaskTitleEditingProp:B[n],sx:{maxWidth:z-120},disableExternalSaveButton:function(e){Y(e)},onSave:function(){}}),((null===(r=he("subtasks")[n])||void 0===r?void 0:r.buyerFlagged)||(null===(o=he("subtasks")[n])||void 0===o?void 0:o.sellerFlagged))&&(0,u.jsx)(nn.Z,{alignItems:"center",justifyContent:"center",sx:{bgcolor:"secondaryPink.100",width:"36px",height:"29px",borderRadius:"6px"},children:(0,u.jsx)(BT,{fill:tr.Us[700],style:{width:16,height:16}})})]})]}),(0,u.jsxs)(nn.Z,{ref:E,spacing:3,direction:"row",alignItems:"center",children:[B[n]?(0,u.jsx)(Eh,{dateAdapter:vg,children:(0,u.jsx)(Vw,{name:"subtasks.".concat(n,".end"),RenderInputElement:z4,maxDate:new Date(null===p||void 0===p?void 0:p.end),inputProps:{style:{fontSize:"0.875rem"}}})}):(0,u.jsx)(rn.Z,{color:"primaryDark.600",children:null!==he("subtasks")[n].end&&(0,rs.qJ)(he("subtasks")[n].end)}),B[n]?(0,u.jsx)(rn.Z,{component:"button",disabled:G,onClick:function(e){var t;e.preventDefault(),t=he("subtasks")[n],f.subtasks.map((function(e){return e.id})).includes(t.id)?we({id:t.id,data:{name:t.name,end:t.end,status:t.status}},{onSuccess:function(){k();var e={};ve.forEach((function(t,n){e[n]=!1})),L(e)}}):Ce({name:t.name,end:t.end,status:t.status,task:f.id},{onSuccess:function(){k();var e={};ve.forEach((function(t,n){e[n]=!1})),L(e)}})},variant:"heading4",color:G?"primaryDark.300":"primaryLight.500",sx:{cursor:"pointer",border:"none",bgcolor:"transparent",mr:"4px"},children:"save"}):(0,u.jsx)(Dk,{classNames:"react-joyride-step-1-subtask",menuItemsContents:re(he("subtasks")[n])?[{key:null!==(i=he("subtasks")[n])&&void 0!==i&&i.buyerFlagged||null!==(a=he("subtasks")[n])&&void 0!==a&&a.sellerFlagged?"Un-Flag":"Flag",icon:(0,u.jsx)(BT,{fill:tr.IV[500],style:{width:18,height:18}}),text:null!==(s=he("subtasks")[n])&&void 0!==s&&s.buyerFlagged||null!==(c=he("subtasks")[n])&&void 0!==c&&c.sellerFlagged?"Un-Flag":"Flag",disabled:(null===p||void 0===p?void 0:p.status)===Kt.tg.Completed,onClick:function(){y(!0),b(T5.Subtask),x(he("subtasks")[n].id)}}].concat((0,dn.Z)(ue(n))):(0,dn.Z)(ue(n))})]})]})})}))})}))]})]})})})},W4=function(e){var t,n=e.isMouseDown,r=e.setIsMouseDown,i=e.item,a=e.setTaskId,s=e.determineWhichTaskToShow,c=e.sx,d=e.carouselItemWidth,p=(0,ze.s0)(),f=(0,ze.UO)(),h=i.relatedMilestones.some((function(e){return e.id===f.milestoneId})),m=i.id===f.milestoneId,v=(0,o.useCallback)((function(e){if(e.relatedMilestones.length>0&&h)return tr.dx[50];if(0===e.relatedMilestones.length&&m)return tr.dx[50];return e.status===Kt.tg.Completed||e.status===Kt.tg.Approved?tr.IV[150]:"#fff"}),[h,m,i]),g=(0,o.useCallback)((function(e){if(e.relatedMilestones.length>0&&h)return tr.dx[100];if(0===e.relatedMilestones.length&&m)return tr.dx[100];return e.status===Kt.tg.Completed||e.status===Kt.tg.Approved?"transparent":tr.dx[100]}),[h,m,i]);return(0,u.jsx)(ko.Z,{disableRipple:n,onClick:function(){setTimeout((function(){var e;i.relatedMilestones&&i.relatedMilestones.length>0?(i.currentMilestone&&(p("/dashboard/end-to-end/milestone/".concat(i.currentMilestone)),i&&i.tasks.length>0&&a(s(i.tasks))),p("/dashboard/end-to-end/milestone/".concat(null===(e=i.relatedMilestones[0])||void 0===e?void 0:e.id)),i&&i.relatedMilestones[0].tasks.length>0&&a(s(i.relatedMilestones[0].tasks))):(p("/dashboard/end-to-end/milestone/".concat(i.id)),i&&i.tasks&&a(s(i.tasks)))}),200)},sx:(0,l.Z)({display:"block",flex:1,p:2,backgroundColor:v(i),borderRadius:"10px",border:"1px solid",borderColor:g(i),height:127,boxShadow:h||m?"1px 10px 30px 0px rgba(56, 69, 114, 0.10)":"none",minWidth:d,maxWidth:d,"&:hover":{backgroundColor:h||m?tr.dx[50]:tr.IV[150],borderColor:h||m?tr.dx[100]:tr.dx[200]}},c),children:(0,u.jsxs)(nn.Z,{height:"100%",justifyContent:"space-between",children:[(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,u.jsx)(rn.Z,{color:h||m?"primaryLight.500":i.status===Kt.tg.Completed?"secondaryGreen.700":"primaryDark.600",sx:{alignSelf:"flex-start",typography:{md:"body2",lg:"body1"},textDecoration:i.status===Kt.tg.Completed?"line-through":"none"},children:i.name}),i.relatedMilestones&&(null===(t=i.relatedMilestones)||void 0===t?void 0:t.length)>0?(0,u.jsx)(r4,{milestone:i,setIsMouseDown:r,setTaskId:a,determineWhichTaskToShow:s}):(0,u.jsx)(EI,{text:i.status})]}),(0,u.jsxs)(nn.Z,{spacing:.75,children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.500",children:"Tasks"}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.600",children:i.tasksCount})]}),(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.500",children:"Start date"}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.600",children:(0,rs.qJ)(i.start,"-")})]}),(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.500",children:"End date"}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.600",children:(0,rs.qJ)(i.end,"-")})]})]})]})},null===i||void 0===i?void 0:i.id)},V4=function(e){var t=null,n=e.filter((function(e){return e.status===Kt.YH.InProgress})),r=e.filter((function(e){return e.status===Kt.YH.Pending}));if(e.every((function(e){return e.status===Kt.YH.Completed}))&&(t=e[0]),n.length>0){var o=n.sort((function(e,t){return new Date(e.start).getTime()-new Date(t.start).getTime()}))[0];t=o}return r.length>0&&0===n.length&&(t=r[0]),t?t.id:null},U4=function(){var e=(0,ze.s0)(),t=(0,ze.UO)(),n=(0,Ms.J)(),r=Yd(),i=null===r||void 0===r?void 0:r.includes(Kt.ks.Buyer),a=(0,o.useState)(T5.Milestone),s=(0,Le.Z)(a,2),l=s[0],c=s[1],d=(0,o.useState)(null),p=(0,Le.Z)(d,2),f=p[0],h=p[1],m=(0,o.useState)(!1),v=(0,Le.Z)(m,2),g=v[0],y=v[1],b=(0,o.useState)(!1),x=(0,Le.Z)(b,2),w=x[0],C=x[1],j=(0,o.useState)(!1),S=(0,Le.Z)(j,2),k=S[0],Z=S[1],O=(0,o.useState)(!0),E=(0,Le.Z)(O,2),D=E[0],P=E[1],A=(0,o.useState)(!1),M=(0,Le.Z)(A,2),T=M[0],I=M[1],R=(0,o.useState)(null),F=(0,Le.Z)(R,2),B=F[0],L=F[1],N=(0,o.useState)(null),_=(0,Le.Z)(N,2),z=_[0],H=_[1],W=(0,o.useState)(null),V=(0,Le.Z)(W,2),U=V[0],q=V[1],G=(0,o.useState)(!1),Y=(0,Le.Z)(G,2),K=Y[0],J=Y[1],X=Bn(ir.breakpoints.down("lg")),Q=(0,o.useState)(0),$=(0,Le.Z)(Q,2),ee=$[0],te=$[1],ne=zp({enabled:!(null===t||void 0===t||!t.milestoneId),resource:"milestones/".concat(t.milestoneId),refetchOnMount:!1,refetchOnReconnect:!1,refetchOnWindowFocus:!1}).data,re=null===ne||void 0===ne?void 0:ne.data,oe=hi({resource:"milestones/snake?project=".concat(null===ne||void 0===ne?void 0:ne.data.project),refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1}).data,ie=null===oe||void 0===oe?void 0:oe.data.results,ae=hi({enabled:!(null===t||void 0===t||!t.milestoneId),resource:"/milestones/?related=".concat(null===t||void 0===t?void 0:t.milestoneId),refetchOnMount:!1,refetchOnReconnect:!1,refetchOnWindowFocus:!1}).data,se=null===ae||void 0===ae?void 0:ae.data.results,le=Ra({enabled:!(null===re||void 0===re||!re.project),resource:"projects",id:null===re||void 0===re?void 0:re.project}).data,ce=zp({enabled:!!B,resource:"/tasks/".concat(B)}),ue=ce.data,de=ce.isLoading,pe=ce.refetch,fe=null===ue||void 0===ue?void 0:ue.data,he=zp({enabled:!!f,resource:"/subtasks/".concat(f)}).data,me=null===he||void 0===he?void 0:he.data,ve=zk({resource:"/tasks"}).mutate,ge=zk({resource:"/subtasks"}).mutate,ye=function(){var e=null;return null===ie||void 0===ie||ie.forEach((function(n,r,o){n.relatedMilestones.length>0&&n.relatedMilestones.forEach((function(n){n.id===t.milestoneId&&(e=o.findIndex((function(e){return e.id===n.parent})))}))})),null!==e&&void 0!==e?e:null};return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(F5,{entityId:f,entityType:l,actionType:function(){switch(l){case T5.Milestone:return i?null!==re&&void 0!==re&&re.buyerFlagged?R5.Unflag:R5.Flag:null!==re&&void 0!==re&&re.sellerFlagged?R5.Unflag:R5.Flag;case T5.Task:return i?null!==fe&&void 0!==fe&&fe.buyerFlagged?R5.Unflag:R5.Flag:null!==fe&&void 0!==fe&&fe.sellerFlagged?R5.Unflag:R5.Flag;case T5.Subtask:return i?null!==me&&void 0!==me&&me.buyerFlagged?R5.Unflag:R5.Flag:null!==me&&void 0!==me&&me.sellerFlagged?R5.Unflag:R5.Flag;default:return R5.Flag}}(),isModalOpen:g,setIsModalOpen:y}),(0,u.jsx)(ys,{open:w,width:"35%",children:(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",alignItems:"center",children:[(0,u.jsx)(nn.Z,{alignItems:"center",justifyContent:"center",sx:{bgcolor:"secondaryPink.100",width:"fit-content",height:"fit-content",borderRadius:"6px",px:2,py:1},children:(0,u.jsx)(k5,{fill:tr.Us[700],style:{width:18,height:18}})}),(0,u.jsx)(rn.Z,{variant:"heading3",color:"primaryDark.600",children:"Delete ".concat(l)})]}),(0,u.jsx)(un,{sx:{borderColor:"#E5E8FF"}}),(0,u.jsx)(rn.Z,{color:"primaryDark.500",children:"Are you sure you want to delete the ".concat(l,"?")}),(0,u.jsxs)(nn.Z,{spacing:2.5,children:[(0,u.jsx)(un,{sx:{borderColor:"#E5E8FF"}}),(0,u.jsxs)(nn.Z,{sx:{justifyContent:"end"},spacing:2,direction:"row",children:[(0,u.jsx)(Wo,{variant:"secondary",onClick:function(){return C(!1)},children:"Cancel"}),(0,u.jsx)(Wo,{variant:"primary",onClick:function(){l===T5.Task?function(e){ve({id:e},{onSuccess:function(){w&&C(!1),n()}})}(null===fe||void 0===fe?void 0:fe.id):ge({id:f},{onSuccess:function(){w&&C(!1),n(),pe()}})},children:"Confirm"})]})]})]})}),(0,u.jsx)(ys,{open:k,width:"30%",children:(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",alignItems:"center",children:[(0,u.jsx)(nn.Z,{alignItems:"center",justifyContent:"center",sx:{bgcolor:"#E5E8FF",borderRadius:"6px",px:2.05,py:2.05},children:(0,u.jsx)(A5,{fill:tr.dx[700],style:{width:18,height:18}})}),(0,u.jsx)(rn.Z,{variant:"heading3",color:"primaryDark.600",children:"New milestone"})]}),(0,u.jsx)(un,{sx:{borderColor:"#E5E8FF"}}),(0,u.jsx)(rn.Z,{color:"primaryDark.500",children:"New milestones must be added through a contract annex. Changes must be formally approved by both parties."}),(0,u.jsxs)(nn.Z,{spacing:2.5,children:[(0,u.jsx)(un,{sx:{borderColor:"#E5E8FF"}}),(0,u.jsxs)(nn.Z,{sx:{justifyContent:"end"},spacing:2,direction:"row",children:[(0,u.jsx)(Wo,{variant:"secondary",onClick:function(){return Z(!1)},children:"Cancel"}),(0,u.jsx)(Wo,{variant:"primary",onClick:function(){e("../project/".concat(null===re||void 0===re?void 0:re.project,"/contract/").concat(null===le||void 0===le?void 0:le.latestContract))},children:"Continue"})]})]})]})}),(0,u.jsxs)(nn.Z,{spacing:4,sx:{width:"100%",height:"100%"},children:[(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,u.jsxs)(nn.Z,{spacing:1.75,direction:"row",alignItems:"center",children:[(0,u.jsx)(io.Z,{onClick:function(){return e("../project/".concat(null===re||void 0===re?void 0:re.project))},sx:{border:"1px solid",borderColor:"primaryDark.300",width:"2.875rem",height:"2.875rem"},children:(0,u.jsx)(LR,{})}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",children:"Back"})]}),(0,u.jsx)(Wo,{variant:"primaryLight",className:"react-joyride-step-1-milestone",onClick:function(){return Z(!0)},startIcon:(0,u.jsx)(b5,{}),sx:{height:"3rem",width:"11.5rem","& .MuiButton-startIcon":{mr:1.75}},children:(0,u.jsx)(rn.Z,{variant:"body3",fontWeight:600,children:"new milestone"})})]}),(0,u.jsxs)(nn.Z,{sx:{position:"absolute",mt:"72px !important"},children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",className:"react-joyride-step-2-milestone",children:"milestones"}),(0,u.jsx)(N5,{carouselItemWidth:370,sx:{mt:"10px !important",pb:"20px",ml:"-".concat(24,"px"),"&>*:nth-child(3)":{marginLeft:"22px"}},items:ie||[],activeIndexItem:null===ye()||void 0===ye()?null===ie||void 0===ie?void 0:ie.findIndex((function(e){return e.id===t.milestoneId})):ye(),renderCarouselItem:function(e){var t=e.item,n=e.sx;return t?(0,u.jsx)(W4,{carouselItemWidth:370,item:t,isMouseDown:T,setIsMouseDown:I,setTaskId:L,determineWhichTaskToShow:V4,sx:n}):null}})]}),(0,u.jsx)(un,{sx:{position:"absolute",borderColor:"#DCDCFF",left:0,right:0,top:260,width:"100%"}}),(0,u.jsxs)(nn.Z,{spacing:2.5,direction:"row",sx:{position:"relative",mt:"265px !important",height:"100%"},children:[(0,u.jsx)(M4,{showRightColumnn:D,setShowRightColumn:P,milestoneData:re,milestonesArray:ie,getRecurringMilestonesParentIndex:ye,setIsFlagAndUnflagModalOpen:y,setEntityType:c,setEntityId:h,setNumberOfRowsTasks:q,tasks:z,setTasks:H,taskId:B,setTaskId:L,scoreMilestone:re?re.tasksCompletedCount/(re.tasksCount-re.tasksCanceledCount)*100:0,determineWhichTaskToShow:V4,recurringMilestones:se,setIsTaskDateEndEditing:J,rightColumnWidth:ee}),(0,u.jsx)(H4,{numberOfTasksRows:U,showRightColumnn:D,isLessThanLarge:X,milestoneData:re,taskData:fe,isFetchingTaskLoading:de,isTaskDateEndEditing:K,setIsTaskDateEndEditing:J,setShowRightColumn:P,setIsFlagAndUnflagModalOpen:y,setEntityType:c,setEntityId:h,setIsDeleteModalOpen:C,task:ue,getRightColumnRefWidth:function(e){return te(e)}})]})]})]})},q4=function(e){var t,n=e.dataGridHeight,r=void 0===n?"300px":n,o=(0,ze.s0)(),i=Pa(),a=[{field:"status",headerName:"Status",flex:.2,renderCell:function(e){return(0,u.jsx)(EI,{text:e.value})}},{field:"name",headerName:"Name",flex:.3,renderCell:function(e){return(0,u.jsx)(rn.Z,{variant:"body2",fontWeight:600,sx:{color:"primaryDark.600"},children:e.value})}},{field:"start",headerName:"Start date",flex:.15,renderCell:function(e){return null!==e.value?(0,u.jsx)(rn.Z,{children:(0,rs.qJ)(e.value)}):(0,u.jsx)(rn.Z,{children:"-"})}},{field:"end",headerName:"End date",flex:.15,renderCell:function(e){return null!==e.value?(0,u.jsx)(rn.Z,{children:(0,rs.qJ)(e.value)}):(0,u.jsx)(rn.Z,{children:"-"})}},{field:"milestoneCompletedCount",headerName:"Progress",flex:.2,renderCell:function(e){var t=e.row,n=t.tasksCount,r=t.milestoneCount,o=t.tasksCompletedCount,i=t.tasksCanceledCount,a=t.milestoneCompletedCount,s=t.milestoneApprovedCount,l=(0,rs.pf)(n,r,o,i,a,s);return(0,u.jsx)(z5,{value:Number.isFinite(l)?l:0})}}],s=[{id:"project_list-all",title:"All"},{id:"project_list-in_progress",title:"In progress",search:{status:Kt.tg.InProgress}},{id:"project_list-completed",title:"Completed",search:{status:Kt.tg.Completed}},{id:"project_list-pending",title:"Pending",search:{status:Kt.tg.Pending}}];return(0,u.jsx)(nn.Z,{direction:"column",sx:{height:"fit-content",width:"100%"},spacing:2,children:(0,u.jsxs)(tn,{sx:{position:"relative"},children:[(0,u.jsx)(Wo,{variant:"primaryLight",sx:{height:"2.75rem",width:"9.5rem",position:"absolute",right:0,top:10,cursor:"pointer",zIndex:1},startIcon:(0,u.jsx)(D0,{width:"20px",height:"20px"}),onClick:function(){return o("./project-request")},children:(0,u.jsx)(rn.Z,{variant:"bodyMedium3",children:"new project"})}),(0,u.jsx)(k2,{resource:"projects",columns:a,tabsClassName:"react-joyride-step-9",className:"react-joyride-step-10",panelConfig:s,searchParams:{company:null===i||void 0===i||null===(t=i.membership)||void 0===t?void 0:t.company},onRowClick:function(e){return o("./project/".concat(e.id))},height:r,hideFooter:!0})]})})};function G4(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.indexOf(e)>=0:e===t)}function Y4(e){return(0,F.Z)("MuiToggleButtonGroup",e)}var K4=(0,R.Z)("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical"]),J4=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],X4=(0,P.ZP)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:function(e,n){var r=e.ownerState;return[(0,t.Z)({},"& .".concat(K4.grouped),n.grouped),(0,t.Z)({},"& .".concat(K4.grouped),n["grouped".concat((0,Zn.Z)(r.orientation))]),n.root,"vertical"===r.orientation&&n.vertical,r.fullWidth&&n.fullWidth]}})((function(e){var n=e.ownerState,o=e.theme;return(0,r.Z)({display:"inline-flex",borderRadius:(o.vars||o).shape.borderRadius},"vertical"===n.orientation&&{flexDirection:"column"},n.fullWidth&&{width:"100%"},(0,t.Z)({},"& .".concat(K4.grouped),(0,r.Z)({},"horizontal"===n.orientation?(0,t.Z)({"&:not(:first-of-type)":{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-of-type)":{borderTopRightRadius:0,borderBottomRightRadius:0}},"&.".concat(K4.selected," + .").concat(K4.grouped,".").concat(K4.selected),{borderLeft:0,marginLeft:0}):(0,t.Z)({"&:not(:first-of-type)":{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},"&:not(:last-of-type)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}},"&.".concat(K4.selected," + .").concat(K4.grouped,".").concat(K4.selected),{borderTop:0,marginTop:0}))))})),Q4=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiToggleButtonGroup"}),i=n.children,a=n.className,s=n.color,l=void 0===s?"standard":s,c=n.disabled,d=void 0!==c&&c,p=n.exclusive,f=void 0!==p&&p,h=n.fullWidth,m=void 0!==h&&h,v=n.onChange,g=n.orientation,x=void 0===g?"horizontal":g,w=n.size,C=void 0===w?"medium":w,j=n.value,S=(0,b.Z)(n,J4),k=(0,r.Z)({},n,{disabled:d,fullWidth:m,orientation:x,size:C}),Z=function(e){var t=e.classes,n=e.orientation,r=e.fullWidth,o=e.disabled,i={root:["root","vertical"===n&&"vertical",r&&"fullWidth"],grouped:["grouped","grouped".concat((0,Zn.Z)(n)),o&&"disabled"]};return(0,M.Z)(i,Y4,t)}(k),O=function(e,t){if(v){var n,r=j&&j.indexOf(t);j&&r>=0?(n=j.slice()).splice(r,1):n=j?j.concat(t):[t],v(e,n)}},E=function(e,t){v&&v(e,j===t?null:t)};return(0,u.jsx)(X4,(0,r.Z)({role:"group",className:(0,y.default)(Z.root,a),ref:t,ownerState:k},S,{children:o.Children.map(i,(function(e){return o.isValidElement(e)?o.cloneElement(e,{className:(0,y.default)(Z.grouped,e.props.className),onChange:f?E:O,selected:void 0===e.props.selected?G4(e.props.value,j):e.props.selected,size:e.props.size||C,fullWidth:m,color:e.props.color||l,disabled:e.props.disabled||d}):null}))}))})),$4=Q4;function e6(e){return(0,F.Z)("MuiToggleButton",e)}var t6=(0,R.Z)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge"]),n6=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],r6=(0,P.ZP)(Qy.Z,{name:"MuiToggleButton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["size".concat((0,Zn.Z)(n.size))]]}})((function(e){var n,o,i=e.theme,a=e.ownerState,s="standard"===a.color?i.palette.text.primary:i.palette[a.color].main;return i.vars&&(s="standard"===a.color?i.vars.palette.text.primary:i.vars.palette[a.color].main,o="standard"===a.color?i.vars.palette.text.primaryChannel:i.vars.palette[a.color].mainChannel),(0,r.Z)({},i.typography.button,{borderRadius:(i.vars||i).shape.borderRadius,padding:11,border:"1px solid ".concat((i.vars||i).palette.divider),color:(i.vars||i).palette.action.active},a.fullWidth&&{width:"100%"},(n={},(0,t.Z)(n,"&.".concat(t6.disabled),{color:(i.vars||i).palette.action.disabled,border:"1px solid ".concat((i.vars||i).palette.action.disabledBackground)}),(0,t.Z)(n,"&:hover",{textDecoration:"none",backgroundColor:i.vars?"rgba(".concat(i.vars.palette.text.primaryChannel," / ").concat(i.vars.palette.action.hoverOpacity,")"):(0,A.Fq)(i.palette.text.primary,i.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}),(0,t.Z)(n,"&.".concat(t6.selected),{color:s,backgroundColor:i.vars?"rgba(".concat(o," / ").concat(i.vars.palette.action.selectedOpacity,")"):(0,A.Fq)(s,i.palette.action.selectedOpacity),"&:hover":{backgroundColor:i.vars?"rgba(".concat(o," / calc(").concat(i.vars.palette.action.selectedOpacity," + ").concat(i.vars.palette.action.hoverOpacity,"))"):(0,A.Fq)(s,i.palette.action.selectedOpacity+i.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:i.vars?"rgba(".concat(o," / ").concat(i.vars.palette.action.selectedOpacity,")"):(0,A.Fq)(s,i.palette.action.selectedOpacity)}}}),n),"small"===a.size&&{padding:7,fontSize:i.typography.pxToRem(13)},"large"===a.size&&{padding:15,fontSize:i.typography.pxToRem(15)})})),o6=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiToggleButton"}),o=n.children,i=n.className,a=n.color,s=void 0===a?"standard":a,l=n.disabled,c=void 0!==l&&l,d=n.disableFocusRipple,p=void 0!==d&&d,f=n.fullWidth,h=void 0!==f&&f,m=n.onChange,v=n.onClick,g=n.selected,x=n.size,w=void 0===x?"medium":x,C=n.value,j=(0,b.Z)(n,n6),S=(0,r.Z)({},n,{color:s,disabled:c,disableFocusRipple:p,fullWidth:h,size:w}),k=function(e){var t=e.classes,n=e.fullWidth,r=e.selected,o=e.disabled,i=e.size,a=e.color,s={root:["root",r&&"selected",o&&"disabled",n&&"fullWidth","size".concat((0,Zn.Z)(i)),a]};return(0,M.Z)(s,e6,t)}(S);return(0,u.jsx)(r6,(0,r.Z)({className:(0,y.default)(k.root,i),disabled:c,focusRipple:!p,ref:t,onClick:function(e){v&&(v(e,C),e.defaultPrevented)||m&&m(e,C)},onChange:m,value:C,ownerState:S,"aria-pressed":g},j,{children:o}))})),i6=o6;function a6(e){(0,Th.Z)(1,arguments);var t=e||{},n=(0,Mh.Z)(t.start),r=(0,Mh.Z)(t.end),o=r.getTime(),i=[];if(!(n.getTime()<=o))throw new RangeError("Invalid interval");var a=n;for(a.setHours(0,0,0,0),a.setDate(1);a.getTime()<=o;)i.push((0,Mh.Z)(a)),a.setMonth(a.getMonth()+1);return i}var s6=n(90131),l6=n.n(s6),c6=n(86950),u6=n.n(c6),d6=function(e,t){return d6=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},d6(e,t)};function p6(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}d6(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function f6(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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}var h6="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};var m6=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},v6="object"==typeof h6&&h6&&h6.Object===Object&&h6,g6="object"==typeof self&&self&&self.Object===Object&&self,y6=v6||g6||Function("return this")(),b6=y6,x6=function(){return b6.Date.now()},w6=/\s/;var C6=function(e){for(var t=e.length;t--&&w6.test(e.charAt(t)););return t},j6=C6,S6=/^\s+/;var k6=function(e){return e?e.slice(0,j6(e)+1).replace(S6,""):e},Z6=y6.Symbol,O6=Z6,E6=Object.prototype,D6=E6.hasOwnProperty,P6=E6.toString,A6=O6?O6.toStringTag:void 0;var M6=function(e){var t=D6.call(e,A6),n=e[A6];try{e[A6]=void 0;var r=!0}catch(i){}var o=P6.call(e);return r&&(t?e[A6]=n:delete e[A6]),o},T6=Object.prototype.toString;var I6=function(e){return T6.call(e)},R6=M6,F6=I6,B6=Z6?Z6.toStringTag:void 0;var L6=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":B6&&B6 in Object(e)?R6(e):F6(e)};var N6=function(e){return null!=e&&"object"==typeof e},_6=L6,z6=N6;var H6=function(e){return"symbol"==typeof e||z6(e)&&"[object Symbol]"==_6(e)},W6=k6,V6=m6,U6=H6,q6=/^[-+]0x[0-9a-f]+$/i,G6=/^0b[01]+$/i,Y6=/^0o[0-7]+$/i,K6=parseInt;var J6=function(e){if("number"==typeof e)return e;if(U6(e))return NaN;if(V6(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=V6(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=W6(e);var n=G6.test(e);return n||Y6.test(e)?K6(e.slice(2),n?2:8):q6.test(e)?NaN:+e},X6=m6,Q6=x6,$6=J6,e9=Math.max,t9=Math.min;var n9=function(e,t,n){var r,o,i,a,s,l,c=0,u=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function h(e){return c=e,s=setTimeout(v,t),u?f(e):a}function m(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=i}function v(){var e=Q6();if(m(e))return g(e);s=setTimeout(v,function(e){var n=t-(e-l);return d?t9(n,i-(e-c)):n}(e))}function g(e){return s=void 0,p&&r?f(e):(r=o=void 0,a)}function y(){var e=Q6(),n=m(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return h(l);if(d)return clearTimeout(s),s=setTimeout(v,t),f(l)}return void 0===s&&(s=setTimeout(v,t)),a}return t=$6(t)||0,X6(n)&&(u=!!n.leading,i=(d="maxWait"in n)?e9($6(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),y.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},y.flush=function(){return void 0===s?a:g(Q6())},y},r9=n9,o9=m6;var i9=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o9(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),r9(e,t,{leading:r,maxWait:t,trailing:o})},a9=function(e,t,n,r){switch(t){case"debounce":return n9(e,n,r);case"throttle":return i9(e,n,r);default:return e}},s9=function(e){return"function"===typeof e},l9=function(){return"undefined"===typeof window},c9=function(e){return e instanceof Element||e instanceof HTMLDocument},u9=function(e,t,n,r){return function(o){var i=o.width,a=o.height;t((function(t){return t.width===i&&t.height===a||t.width===i&&!r||t.height===a&&!n?t:(e&&s9(e)&&e(i,a),{width:i,height:a})}))}},d9=function(e){function t(t){var n=e.call(this,t)||this;n.cancelHandler=function(){n.resizeHandler&&n.resizeHandler.cancel&&(n.resizeHandler.cancel(),n.resizeHandler=null)},n.attachObserver=function(){var e=n.props,t=e.targetRef,r=e.observerOptions;if(!l9()){t&&t.current&&(n.targetRef.current=t.current);var o=n.getElement();o&&(n.observableElement&&n.observableElement===o||(n.observableElement=o,n.resizeObserver.observe(o,r)))}},n.getElement=function(){var e=n.props,t=e.querySelector,r=e.targetDomEl;if(l9())return null;if(t)return document.querySelector(t);if(r&&c9(r))return r;if(n.targetRef&&c9(n.targetRef.current))return n.targetRef.current;var o=(0,g.findDOMNode)(n);if(!o)return null;switch(n.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return o;default:return o.parentElement}},n.createResizeHandler=function(e){var t=n.props,r=t.handleWidth,o=void 0===r||r,i=t.handleHeight,a=void 0===i||i,s=t.onResize;if(o||a){var l=u9(s,n.setState.bind(n),o,a);e.forEach((function(e){var t=e&&e.contentRect||{},r=t.width,o=t.height;!n.skipOnMount&&!l9()&&l({width:r,height:o}),n.skipOnMount=!1}))}},n.getRenderType=function(){var e=n.props,t=e.render,r=e.children;return s9(t)?"renderProp":s9(r)?"childFunction":(0,o.isValidElement)(r)?"child":Array.isArray(r)?"childArray":"parent"};var r=t.skipOnMount,i=t.refreshMode,a=t.refreshRate,s=void 0===a?1e3:a,l=t.refreshOptions;return n.state={width:void 0,height:void 0},n.skipOnMount=r,n.targetRef=(0,o.createRef)(),n.observableElement=null,l9()||(n.resizeHandler=a9(n.createResizeHandler,i,s,l),n.resizeObserver=new window.ResizeObserver(n.resizeHandler)),n}return p6(t,e),t.prototype.componentDidMount=function(){this.attachObserver()},t.prototype.componentDidUpdate=function(){this.attachObserver()},t.prototype.componentWillUnmount=function(){l9()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},t.prototype.render=function(){var e,t=this.props,n=t.render,r=t.children,i=t.nodeType,a=void 0===i?"div":i,s=this.state,l={width:s.width,height:s.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return n&&n(l);case"childFunction":return(e=r)(l);case"child":if((e=r).type&&"string"===typeof e.type){var c=f6(l,["targetRef"]);return(0,o.cloneElement)(e,c)}return(0,o.cloneElement)(e,l);case"childArray":return(e=r).map((function(e){return!!e&&(0,o.cloneElement)(e,l)}));default:return o.createElement(a,null)}},t}(o.PureComponent);l9()?o.useEffect:o.useLayoutEffect;var p9=n(76865),f9=n.n(p9),h9=n(24460),m9=n.n(h9),v9=n(75821),g9=n.n(v9),y9=n(85078),b9=n.n(y9),x9=n(59588),w9=n.n(x9),C9=function(e){return 0===e?0:e>0?1:-1},j9=function(e){return w9()(e)&&e.indexOf("%")===e.length-1},S9=function(e){return b9()(e)&&!g9()(e)},k9=function(e){return S9(e)||w9()(e)},Z9=0,O9=function(e){var t=++Z9;return"".concat(e||"").concat(t)},E9=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!S9(e)&&!w9()(e))return r;if(j9(e)){var i=e.indexOf("%");n=t*parseFloat(e.slice(0,i))/100}else n=+e;return g9()(n)&&(n=r),o&&n>t&&(n=t),n},D9=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},P9=function(e,t){return S9(e)&&S9(t)?function(n){return e+n*(t-e)}:function(){return t}};function A9(e,t,n){return e&&e.length?e.find((function(e){return e&&("function"===typeof t?t(e):f9()(e,t))===n})):null}var M9=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o]};function T9(){return T9=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T9.apply(this,arguments)}function I9(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return R9(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return R9(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R9(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var F9=(0,o.forwardRef)((function(e,t){var n=e.aspect,r=e.width,i=void 0===r?"100%":r,a=e.height,s=void 0===a?"100%":a,l=e.minWidth,c=e.minHeight,u=e.maxHeight,d=e.children,p=e.debounce,f=void 0===p?0:p,h=e.id,m=e.className,v=I9((0,o.useState)({containerWidth:-1,containerHeight:-1}),2),g=v[0],y=v[1],b=(0,o.useRef)(null);(0,o.useImperativeHandle)(t,(function(){return b}),[b]);var x=I9((0,o.useState)(!1),2),w=x[0],C=x[1],j=function(){return b.current?{containerWidth:b.current.clientWidth,containerHeight:b.current.clientHeight}:null},S=function(){if(w){var e=j();if(e){var t=g.containerWidth,n=g.containerHeight,r=e.containerWidth,o=e.containerHeight;r===t&&o===n||y({containerWidth:r,containerHeight:o})}}},k=f>0?l6()(S,f):S;(0,o.useEffect)((function(){if(w){var e=j();e&&y(e)}}),[w]),(0,o.useEffect)((function(){C(!0)}),[]);var Z={width:i,height:s,minWidth:l,minHeight:c,maxHeight:u};return o.createElement(d9,{handleWidth:!0,handleHeight:!0,onResize:k,targetRef:b},o.createElement("div",T9({},null!=h?{id:"".concat(h)}:{},{className:u6()("recharts-responsive-container",m),style:Z,ref:b}),function(){var e=g.containerWidth,t=g.containerHeight;if(e<0||t<0)return null;M9(j9(i)||j9(s),"The width(%s) and height(%s) are both fixed numbers,\n       maybe you don't need to use a ResponsiveContainer.",i,s),M9(!n||n>0,"The aspect(%s) must be greater than zero.",n);var r=j9(i)?e:i,a=j9(s)?t:s;return n&&n>0&&(r?a=r/n:a&&(r=a*n),u&&a>u&&(a=u)),M9(r>0||a>0,"The width(%s) and height(%s) of chart should be greater than 0,\n       please check the style of container, or the props width(%s) and height(%s),\n       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n       height and width.",r,a,i,s,l,c,n),(0,o.cloneElement)(d,{width:r,height:a})}()))})),B9=n(33294),L9=n.n(B9),N9=n(82386),_9=n.n(N9),z9=n(78523),H9=n.n(z9),W9=n(55766),V9=n.n(W9),U9=n(28264),q9=n.n(U9),G9=n(25872),Y9=n.n(G9),K9=n(83587),J9=n.n(K9),X9=n(83760),Q9=n.n(X9),$9=n(83838),e8=n.n($9);function t8(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function n8(e){return n8="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n8(e)}var r8=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","type","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],o8=["points","pathLength"],i8={svg:["viewBox","children"],polygon:o8,polyline:o8},a8=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],s8=function(e,t){if(!e||"function"===typeof e||"boolean"===typeof e)return null;var n=e;if((0,o.isValidElement)(e)&&(n=e.props),!e8()(n))return null;var r={};return Object.keys(n).forEach((function(e){a8.includes(e)&&(r[e]=t||function(t){return n[e](n,t)})})),r},l8=function(e,t,n){if(!e8()(e)||"object"!==n8(e))return null;var r=null;return Object.keys(e).forEach((function(o){var i=e[o];a8.includes(o)&&"function"===typeof i&&(r||(r={}),r[o]=function(e,t,n){return function(r){return e(t,n,r),null}}(i,t,n))})),r},c8=["children"],u8=["children"];function d8(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var p8={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},f8=function(e){return"string"===typeof e?e:e?e.displayName||e.name||"Component":""},h8=null,m8=null,v8=function e(t){if(t===h8&&m9()(m8))return m8;var n=[];return o.Children.forEach(t,(function(t){J9()(t)||((0,kO.isFragment)(t)?n=n.concat(e(t.props.children)):n.push(t))})),m8=n,h8=t,n};function g8(e,t){var n=[],r=[];return r=m9()(t)?t.map((function(e){return f8(e)})):[f8(t)],v8(e).forEach((function(e){var t=f9()(e,"type.displayName")||f9()(e,"type.name");-1!==r.indexOf(t)&&n.push(e)})),n}function y8(e,t){var n=g8(e,t);return n&&n[0]}var b8=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!S9(n)||n<=0||!S9(r)||r<=0)},x8=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],w8=function(e){return e&&e.type&&w9()(e.type)&&x8.indexOf(e.type)>=0},C8=function(e,t,n){var r;if(!e||"function"===typeof e||"boolean"===typeof e)return null;var i=e;if((0,o.isValidElement)(e)&&(i=e.props),!e8()(i))return null;var a={},s=null!==(r=null===i8||void 0===i8?void 0:i8[n])&&void 0!==r?r:[];return Object.keys(i).forEach((function(e){(n&&s.includes(e)||r8.includes(e)||t&&a8.includes(e))&&(a[e]=i[e])})),a},j8=function e(t,n){if(t===n)return!0;var r=o.Children.count(t);if(r!==o.Children.count(n))return!1;if(0===r)return!0;if(1===r)return S8(m9()(t)?t[0]:t,m9()(n)?n[0]:n);for(var i=0;i<r;i++){var a=t[i],s=n[i];if(m9()(a)||m9()(s)){if(!e(a,s))return!1}else if(!S8(a,s))return!1}return!0},S8=function(e,t){if(J9()(e)&&J9()(t))return!0;if(!J9()(e)&&!J9()(t)){var n=e.props||{},r=n.children,o=d8(n,c8),i=t.props||{},a=i.children,s=d8(i,u8);return r&&a?t8(o,s)&&j8(r,a):!r&&!a&&t8(o,s)}return!1},k8=function(e,t){var n=[],r={};return v8(e).forEach((function(e,o){if(w8(e))n.push(e);else if(e){var i=f8(e.type),a=t[i]||{},s=a.handler,l=a.once;if(s&&(!l||!r[i])){var c=s(e,i,o);n.push(c),r[i]=!0}}})),n},Z8=["children","width","height","viewBox","className","style"];function O8(){return O8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O8.apply(this,arguments)}function E8(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function D8(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,a=e.className,s=e.style,l=E8(e,Z8),c=i||{width:n,height:r,x:0,y:0},u=u6()("recharts-surface",a);return o.createElement("svg",O8({},C8(l,!0,"svg"),{className:u,width:n,height:r,style:s,viewBox:"".concat(c.x," ").concat(c.y," ").concat(c.width," ").concat(c.height)}),o.createElement("title",null,e.title),o.createElement("desc",null,e.desc),t)}var P8=["children","className"];function A8(){return A8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A8.apply(this,arguments)}function M8(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var T8=o.forwardRef((function(e,t){var n=e.children,r=e.className,i=M8(e,P8),a=u6()("recharts-layer",r);return o.createElement("g",A8({className:a},C8(i,!0),{ref:t}),n)})),I8=n(26501),R8=n.n(I8),F8=n(41384);function B8(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,r=function r(o){n<0&&(n=o),o-n>t?(e(o),n=-1):requestAnimationFrame(r)};requestAnimationFrame(r)}function L8(e){return L8="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},L8(e)}function N8(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return _8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _8(e,t)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _8(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function z8(){var e=function(){return null},t=!1,n=function n(r){if(!t){if(Array.isArray(r)){if(!r.length)return;var o=N8(r),i=o[0],a=o.slice(1);return"number"===typeof i?void B8(n.bind(null,a),i):(n(i),void B8(n.bind(null,a)))}"object"===L8(r)&&e(r),"function"===typeof r&&r()}};return{stop:function(){t=!0},start:function(e){t=!1,n(e)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}function H8(e){return H8="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H8(e)}function W8(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 V8(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W8(Object(n),!0).forEach((function(t){U8(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W8(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function U8(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==H8(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==H8(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===H8(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var q8=["Webkit","Moz","O","ms"],G8=["-webkit-","-moz-","-o-","-ms-"],Y8=["transform","transformOrigin","transition"],K8=function(e){return e},J8=function(e,t){return Object.keys(t).reduce((function(n,r){return V8(V8({},n),{},U8({},r,e(r,t[r])))}),{})},X8=function(e){return Object.keys(e).reduce((function(e,t){return V8(V8({},e),function(e,t){if(-1===Y8.indexOf(e))return U8({},e,t);var n="transition"===e,r=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),o=t;return q8.reduce((function(e,i,a){return n&&(o=t.replace(/(transform|transform-origin)/gim,"".concat(G8[a],"$1"))),V8(V8({},e),{},U8({},i+r,o))}),{})}(t,e[t]))}),e)},Q8=function(e,t,n){return e.map((function(e){return"".concat((r=e,r.replace(/([A-Z])/g,(function(e){return"-".concat(e.toLowerCase())})))," ").concat(t,"ms ").concat(n);var r})).join(",")};function $8(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||t7(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e7(e){return function(e){if(Array.isArray(e))return n7(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||t7(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t7(e,t){if(e){if("string"===typeof e)return n7(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?n7(e,t):void 0}}function n7(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var r7=1e-4,o7=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},i7=function(e,t){return e.map((function(e,n){return e*Math.pow(t,n)})).reduce((function(e,t){return e+t}))},a7=function(e,t){return function(n){var r=o7(e,t);return i7(r,n)}},s7=function(e,t){return function(n){var r=o7(e,t),o=[].concat(e7(r.map((function(e,t){return e*t})).slice(1)),[0]);return i7(o,n)}},l7=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];if(1===t.length)switch(t[0]){case"linear":r=0,o=0,i=1,a=1;break;case"ease":r=.25,o=.1,i=.25,a=1;break;case"ease-in":r=.42,o=0,i=1,a=1;break;case"ease-out":r=.42,o=0,i=.58,a=1;break;case"ease-in-out":r=0,o=0,i=.58,a=1;break;default:var s=t[0].split("(");if("cubic-bezier"===s[0]&&4===s[1].split(")")[0].split(",").length){var l=s[1].split(")")[0].split(",").map((function(e){return parseFloat(e)})),c=$8(l,4);r=c[0],o=c[1],i=c[2],a=c[3]}}[r,i,o,a].every((function(e){return"number"===typeof e&&e>=0&&e<=1}));var u=a7(r,i),d=a7(o,a),p=s7(r,i),f=function(e){return e>1?1:e<0?0:e},h=function(e){for(var t=e>1?1:e,n=t,r=0;r<8;++r){var o=u(n)-t,i=p(n);if(Math.abs(o-t)<r7||i<r7)return d(n);n=f(n-o/i)}return d(n)};return h.isStepper=!1,h},c7=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,o=void 0===r?8:r,i=e.dt,a=void 0===i?17:i,s=function(e,t,r){var i=r+(-(e-t)*n-r*o)*a/1e3,s=r*a/1e3+e;return Math.abs(s-t)<r7&&Math.abs(i)<r7?[t,0]:[s,i]};return s.isStepper=!0,s.dt=a,s};function u7(e){return u7="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u7(e)}function d7(e){return function(e){if(Array.isArray(e))return g7(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||v7(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p7(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 f7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p7(Object(n),!0).forEach((function(t){h7(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p7(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h7(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==u7(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==u7(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===u7(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m7(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||v7(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v7(e,t){if(e){if("string"===typeof e)return g7(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g7(e,t):void 0}}function g7(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var y7=function(e,t,n){return e+(t-e)*n},b7=function(e){return e.from!==e.to},x7=function e(t,n,r){var o=J8((function(e,n){if(b7(n)){var r=m7(t(n.from,n.to,n.velocity),2),o=r[0],i=r[1];return f7(f7({},n),{},{from:o,velocity:i})}return n}),n);return r<1?J8((function(e,t){return b7(t)?f7(f7({},t),{},{velocity:y7(t.velocity,o[e].velocity,r),from:y7(t.from,o[e].from,r)}):t}),n):e(t,o,r-1)},w7=function(e,t,n,r,o){var i,a,s,l,c=(i=e,a=t,[Object.keys(i),Object.keys(a)].reduce((function(e,t){return e.filter((function(e){return t.includes(e)}))}))),u=c.reduce((function(n,r){return f7(f7({},n),{},h7({},r,[e[r],t[r]]))}),{}),d=c.reduce((function(n,r){return f7(f7({},n),{},h7({},r,{from:e[r],velocity:0,to:t[r]}))}),{}),p=-1,f=function(){return null};return f=n.isStepper?function(r){s||(s=r);var i=(r-s)/n.dt;d=x7(n,d,i),o(f7(f7(f7({},e),t),J8((function(e,t){return t.from}),d))),s=r,Object.values(d).filter(b7).length&&(p=requestAnimationFrame(f))}:function(i){l||(l=i);var a=(i-l)/r,s=J8((function(e,t){return y7.apply(void 0,d7(t).concat([n(a)]))}),u);if(o(f7(f7(f7({},e),t),s)),a<1)p=requestAnimationFrame(f);else{var c=J8((function(e,t){return y7.apply(void 0,d7(t).concat([n(1)]))}),u);o(f7(f7(f7({},e),t),c))}},function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(p)}}},C7=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function j7(e){return j7="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j7(e)}function S7(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function k7(e){return function(e){if(Array.isArray(e))return Z7(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return Z7(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Z7(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Z7(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function O7(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 E7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O7(Object(n),!0).forEach((function(t){R7(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O7(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function D7(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,F7(r.key),r)}}function P7(e,t){return P7=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},P7(e,t)}function A7(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=I7(e);if(t){var o=I7(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return M7(this,n)}}function M7(e,t){if(t&&("object"===j7(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return T7(e)}function T7(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function I7(e){return I7=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},I7(e)}function R7(e,t,n){return(t=F7(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F7(e){var t=function(e,t){if("object"!==j7(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==j7(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===j7(t)?t:String(t)}var B7=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&P7(e,t)}(a,e);var t,n,r,i=A7(a);function a(e,t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var r=(n=i.call(this,e,t)).props,o=r.isActive,s=r.attributeName,l=r.from,c=r.to,u=r.steps,d=r.children;if(n.handleStyleChange=n.handleStyleChange.bind(T7(n)),n.changeStyle=n.changeStyle.bind(T7(n)),!o)return n.state={style:{}},"function"===typeof d&&(n.state={style:c}),M7(n);if(u&&u.length)n.state={style:u[0].style};else if(l){if("function"===typeof d)return n.state={style:l},M7(n);n.state={style:s?R7({},s,l):l}}else n.state={style:{}};return n}return t=a,n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.isActive,n=e.canBegin;this.mounted=!0,t&&n&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isActive,r=t.canBegin,o=t.attributeName,i=t.shouldReAnimate;if(r)if(n){if(!((0,F8.deepEqual)(e.to,this.props.to)&&e.canBegin&&e.isActive)){var a=!e.canBegin||!e.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var s=a||i?this.props.from:e.to;if(this.state&&this.state.style){var l={style:o?R7({},o,s):s};(o&&this.state.style[o]!==s||!o&&this.state.style!==s)&&this.setState(l)}this.runAnimation(E7(E7({},this.props),{},{from:s,begin:0}))}}else{var c={style:o?R7({},o,this.props.to):this.props.to};this.state&&this.state.style&&(o&&this.state.style[o]!==this.props.to||!o&&this.state.style!==this.props.to)&&this.setState(c)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1,this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation()}},{key:"runJSAnimation",value:function(e){var t=this,n=e.from,r=e.to,o=e.duration,i=e.easing,a=e.begin,s=e.onAnimationEnd,l=e.onAnimationStart,c=w7(n,r,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0];if("string"===typeof r)switch(r){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return l7(r);case"spring":return c7();default:if("cubic-bezier"===r.split("(")[0])return l7(r)}return"function"===typeof r?r:null}(i),o,this.changeStyle);this.manager.start([l,a,function(){t.stopJSAnimation=c()},o,s])}},{key:"runStepAnimation",value:function(e){var t=this,n=e.steps,r=e.begin,o=e.onAnimationStart,i=n[0],a=i.style,s=i.duration,l=void 0===s?0:s;return this.manager.start([o].concat(k7(n.reduce((function(e,r,o){if(0===o)return e;var i=r.duration,a=r.easing,s=void 0===a?"ease":a,l=r.style,c=r.properties,u=r.onAnimationEnd,d=o>0?n[o-1]:r,p=c||Object.keys(l);if("function"===typeof s||"spring"===s)return[].concat(k7(e),[t.runJSAnimation.bind(t,{from:d.style,to:l,duration:i,easing:s}),i]);var f=Q8(p,i,s),h=E7(E7(E7({},d.style),l),{},{transition:f});return[].concat(k7(e),[h,i,u]).filter(K8)}),[a,Math.max(l,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=z8());var t=e.begin,n=e.duration,r=e.attributeName,o=e.to,i=e.easing,a=e.onAnimationStart,s=e.onAnimationEnd,l=e.steps,c=e.children,u=this.manager;if(this.unSubscribe=u.subscribe(this.handleStyleChange),"function"!==typeof i&&"function"!==typeof c&&"spring"!==i)if(l.length>1)this.runStepAnimation(e);else{var d=r?R7({},r,o):o,p=Q8(Object.keys(d),n,i);u.start([a,t,E7(E7({},d),{},{transition:p}),n,s])}else this.runJSAnimation(e)}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.begin,e.duration,e.attributeName,e.easing,e.isActive),r=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,S7(e,C7)),i=o.Children.count(t),a=X8(this.state.style);if("function"===typeof t)return t(a);if(!n||0===i)return t;var s=function(e){var t=e.props,n=t.style,i=void 0===n?{}:n,s=t.className;return(0,o.cloneElement)(e,E7(E7({},r),{},{style:E7(E7({},i),a),className:s}))};return 1===i?s(o.Children.only(t)):o.createElement("div",null,o.Children.map(t,(function(e){return s(e)})))}}],n&&D7(t.prototype,n),r&&D7(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.PureComponent);R7(B7,"displayName","Animate"),R7(B7,"propTypes",{from:$e().oneOfType([$e().object,$e().string]),to:$e().oneOfType([$e().object,$e().string]),attributeName:$e().string,duration:$e().number,begin:$e().number,easing:$e().oneOfType([$e().string,$e().func]),steps:$e().arrayOf($e().shape({duration:$e().number.isRequired,style:$e().object.isRequired,easing:$e().oneOfType([$e().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),$e().func]),properties:$e().arrayOf("string"),onAnimationEnd:$e().func})),children:$e().oneOfType([$e().node,$e().func]),isActive:$e().bool,canBegin:$e().bool,onAnimationEnd:$e().func,shouldReAnimate:$e().bool,onAnimationStart:$e().func,onAnimationReStart:$e().func}),R7(B7,"defaultProps",{begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}});var L7=B7,N7=n(59499),_7=["children","appearOptions","enterOptions","leaveOptions"];function z7(e){return z7="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z7(e)}function H7(){return H7=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H7.apply(this,arguments)}function W7(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function V7(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 U7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V7(Object(n),!0).forEach((function(t){$7(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V7(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function q7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G7(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,eee(r.key),r)}}function Y7(e,t){return Y7=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Y7(e,t)}function K7(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Q7(e);if(t){var o=Q7(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return J7(this,n)}}function J7(e,t){if(t&&("object"===z7(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return X7(e)}function X7(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Q7(e){return Q7=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Q7(e)}function $7(e,t,n){return(t=eee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eee(e){var t=function(e,t){if("object"!==z7(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==z7(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===z7(t)?t:String(t)}void 0===Number.isFinite&&(Number.isFinite=function(e){return"number"===typeof e&&isFinite(e)});var tee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.steps,n=e.duration;return t&&t.length?t.reduce((function(e,t){return e+(Number.isFinite(t.duration)&&t.duration>0?t.duration:0)}),0):Number.isFinite(n)?n:0},nee=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Y7(e,t)}(a,e);var t,n,r,i=K7(a);function a(){var e;q7(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return $7(X7(e=i.call.apply(i,[this].concat(n))),"state",{isActive:!1}),$7(X7(e),"handleEnter",(function(t,n){var r=e.props,o=r.appearOptions,i=r.enterOptions;e.handleStyleActive(n?o:i)})),$7(X7(e),"handleExit",(function(){e.handleStyleActive(e.props.leaveOptions)})),e}return t=a,n=[{key:"handleStyleActive",value:function(e){if(e){var t=e.onAnimationEnd?function(){e.onAnimationEnd()}:null;this.setState(U7(U7({},e),{},{onAnimationEnd:t,isActive:!0}))}}},{key:"parseTimeout",value:function(){var e=this.props,t=e.appearOptions,n=e.enterOptions,r=e.leaveOptions;return tee(t)+tee(n)+tee(r)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=(t.appearOptions,t.enterOptions,t.leaveOptions,W7(t,_7));return o.createElement(N7.Transition,H7({},r,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),(function(){return o.createElement(L7,e.state,o.Children.only(n))}))}}],n&&G7(t.prototype,n),r&&G7(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.Component);$7(nee,"propTypes",{appearOptions:$e().object,enterOptions:$e().object,leaveOptions:$e().object,children:$e().element});var ree=nee;function oee(e){var t=e.component,n=e.children,r=e.appear,i=e.enter,a=e.leave;return o.createElement(N7.TransitionGroup,{component:t},o.Children.map(n,(function(e,t){return o.createElement(ree,{appearOptions:r,enterOptions:i,leaveOptions:a,key:"child-".concat(t)},e)})))}oee.propTypes={appear:$e().object,enter:$e().object,leave:$e().object,children:$e().oneOfType([$e().array,$e().element]),component:$e().any},oee.defaultProps={component:"span"};var iee=L7;function aee(e){return aee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},aee(e)}function see(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return lee(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lee(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cee(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 uee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cee(Object(n),!0).forEach((function(t){gee(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yee(r.key),r)}}function fee(e,t){return fee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fee(e,t)}function hee(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=vee(e);if(t){var o=vee(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mee(this,n)}}function mee(e,t){if(t&&("object"===aee(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function vee(e){return vee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vee(e)}function gee(e,t,n){return(t=yee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yee(e){var t=function(e,t){if("object"!==aee(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==aee(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===aee(t)?t:String(t)}function bee(e){return m9()(e)&&k9(e[0])&&k9(e[1])?e.join(" ~ "):e}var xee=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fee(e,t)}(a,e);var t,n,r,i=hee(a);function a(){return dee(this,a),i.apply(this,arguments)}return t=a,n=[{key:"renderContent",value:function(){var e=this.props,t=e.payload,n=e.separator,r=e.formatter,i=e.itemStyle,a=e.itemSorter;if(t&&t.length){var s=(a?q9()(t,a):t).map((function(e,a){if("none"===e.type)return null;var s=uee({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},i),l=e.formatter||r||bee,c=e.value,u=e.name;if(l&&null!=c&&null!=u){var d=l(c,u,e,a,t);if(Array.isArray(d)){var p=see(d,2);c=p[0],u=p[1]}else c=d}return o.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(a),style:s},k9(u)?o.createElement("span",{className:"recharts-tooltip-item-name"},u):null,k9(u)?o.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,o.createElement("span",{className:"recharts-tooltip-item-value"},c),o.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))}));return o.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},s)}return null}},{key:"render",value:function(){var e=this.props,t=e.wrapperClassName,n=e.contentStyle,r=e.labelClassName,i=e.labelStyle,a=e.label,s=e.labelFormatter,l=e.payload,c=uee({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},n),u=uee({margin:0},i),d=!J9()(a),p=d?a:"",f=u6()("recharts-default-tooltip",t),h=u6()("recharts-tooltip-label",r);return d&&s&&void 0!==l&&null!==l&&(p=s(a,l)),o.createElement("div",{className:f,style:c},o.createElement("p",{className:h,style:u},o.isValidElement(p)?p:"".concat(p)),this.renderContent())}}],n&&pee(t.prototype,n),r&&pee(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.PureComponent);gee(xee,"displayName","DefaultTooltipContent"),gee(xee,"defaultProps",{separator:" : ",contentStyle:{},itemStyle:{},labelStyle:{}});var wee={isSsr:!("undefined"!==typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(e){return wee[e]},set:function(e,t){if("string"===typeof e)wee[e]=t;else{var n=Object.keys(e);n&&n.length&&n.forEach((function(t){wee[t]=e[t]}))}}};function Cee(e){return Cee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cee(e)}function jee(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 See(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jee(Object(n),!0).forEach((function(t){Mee(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Tee(r.key),r)}}function Oee(e,t){return Oee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Oee(e,t)}function Eee(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Aee(e);if(t){var o=Aee(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Dee(this,n)}}function Dee(e,t){if(t&&("object"===Cee(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Pee(e)}function Pee(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Aee(e){return Aee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Aee(e)}function Mee(e,t,n){return(t=Tee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tee(e){var t=function(e,t){if("object"!==Cee(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Cee(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Cee(t)?t:String(t)}var Iee="recharts-tooltip-wrapper";function Ree(e){return e.dataKey}var Fee=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Oee(e,t)}(a,e);var t,n,r,i=Eee(a);function a(){var e;kee(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Mee(Pee(e=i.call.apply(i,[this].concat(n))),"state",{boxWidth:-1,boxHeight:-1,dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),Mee(Pee(e),"getTranslate",(function(t){var n=t.key,r=t.tooltipDimension,o=t.viewBoxDimension,i=e.props,a=i.allowEscapeViewBox,s=i.reverseDirection,l=i.coordinate,c=i.offset,u=i.position,d=i.viewBox;if(u&&S9(u[n]))return u[n];var p=l[n]-r-c,f=l[n]+c;return a[n]?s[n]?p:f:s[n]?p<d[n]?Math.max(f,d[n]):Math.max(p,d[n]):f+r>d[n]+o?Math.max(p,d[n]):Math.max(f,d[n])})),e}return t=a,n=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight;if(e.dismissed?(this.wrapperNode.blur(),this.props.coordinate.x===this.state.dismissedAtCoordinate.x&&this.props.coordinate.y===this.state.dismissedAtCoordinate.y||this.setState({dismissed:!1})):this.wrapperNode.focus({preventScroll:!0}),this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-t)>1||Math.abs(r.height-n)>1)&&this.setState({boxWidth:r.width,boxHeight:r.height})}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){var e,t,n,r=this,i=this.props,a=i.payload,s=i.isAnimationActive,l=i.animationDuration,c=i.animationEasing,u=i.filterNull,d=function(e,t){return!0===e?R8()(t,Ree):H9()(e)?R8()(t,e):t}(i.payloadUniqBy,u&&a&&a.length?a.filter((function(e){return!J9()(e.value)})):a),p=d&&d.length,f=this.props,h=f.content,m=f.viewBox,v=f.coordinate,g=f.position,y=f.active,b=f.wrapperStyle,x=See({pointerEvents:"none",visibility:!this.state.dismissed&&y&&p?"visible":"hidden",position:"absolute",top:0,left:0},b);if(g&&S9(g.x)&&S9(g.y))t=g.x,n=g.y;else{var w=this.state,C=w.boxWidth,j=w.boxHeight;C>0&&j>0&&v?(t=this.getTranslate({key:"x",tooltipDimension:C,viewBoxDimension:m.width}),n=this.getTranslate({key:"y",tooltipDimension:j,viewBoxDimension:m.height})):x.visibility="hidden"}x=See(See({},X8({transform:this.props.useTranslate3d?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")})),x),s&&y&&(x=See(See({},X8({transition:"transform ".concat(l,"ms ").concat(c)})),x));var S=u6()(Iee,(Mee(e={},"".concat(Iee,"-right"),S9(t)&&v&&S9(v.x)&&t>=v.x),Mee(e,"".concat(Iee,"-left"),S9(t)&&v&&S9(v.x)&&t<v.x),Mee(e,"".concat(Iee,"-bottom"),S9(n)&&v&&S9(v.y)&&n>=v.y),Mee(e,"".concat(Iee,"-top"),S9(n)&&v&&S9(v.y)&&n<v.y),e));return o.createElement("div",{tabIndex:-1,role:"dialog",onKeyDown:function(e){"Escape"===e.key&&r.setState({dismissed:!0,dismissedAtCoordinate:See(See({},r.state.dismissedAtCoordinate),{},{x:r.props.coordinate.x,y:r.props.coordinate.y})})},className:S,style:x,ref:function(e){r.wrapperNode=e}},function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):H9()(e)?o.createElement(e,t):o.createElement(xee,t)}(h,See(See({},this.props),{},{payload:d})))}}],n&&Zee(t.prototype,n),r&&Zee(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.PureComponent);Mee(Fee,"displayName","Tooltip"),Mee(Fee,"defaultProps",{active:!1,allowEscapeViewBox:{x:!1,y:!1},reverseDirection:{x:!1,y:!1},offset:10,viewBox:{x1:0,x2:0,y1:0,y2:0},coordinate:{x:0,y:0},cursorStyle:{},separator:" : ",wrapperStyle:{},contentStyle:{},itemStyle:{},labelStyle:{},cursor:!0,trigger:"hover",isAnimationActive:!wee.isSsr,animationEasing:"ease",animationDuration:400,filterNull:!0,useTranslate3d:!1});var Bee=n(37081),Lee=n.n(Bee),Nee=(Math.abs,Math.atan2,Math.cos),_ee=(Math.max,Math.min,Math.sin),zee=Math.sqrt,Hee=Math.PI,Wee=2*Hee;var Vee,Uee,qee,Gee,Yee,Kee,Jee,Xee,Qee,$ee,ete,tte,nte,rte,ote={draw:function(e,t){var n=zee(t/Hee);e.moveTo(n,0),e.arc(0,0,n,0,Wee)}},ite={draw:function(e,t){var n=zee(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},ate=zee(1/3),ste=2*ate,lte={draw:function(e,t){var n=zee(t/ste),r=n*ate;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},cte={draw:function(e,t){var n=zee(t),r=-n/2;e.rect(r,r,n,n)}},ute=_ee(Hee/10)/_ee(7*Hee/10),dte=_ee(Wee/10)*ute,pte=-Nee(Wee/10)*ute,fte={draw:function(e,t){var n=zee(.8908130915292852*t),r=dte*n,o=pte*n;e.moveTo(0,-n),e.lineTo(r,o);for(var i=1;i<5;++i){var a=Wee*i/5,s=Nee(a),l=_ee(a);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*o,l*r+s*o)}e.closePath()}},hte=zee(3),mte={draw:function(e,t){var n=-zee(t/(3*hte));e.moveTo(0,2*n),e.lineTo(-hte*n,-n),e.lineTo(hte*n,-n),e.closePath()}},vte=-.5,gte=zee(3)/2,yte=1/zee(12),bte=3*(yte/2+1),xte={draw:function(e,t){var n=zee(t/bte),r=n/2,o=n*yte,i=r,a=n*yte+n,s=-i,l=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(s,l),e.lineTo(vte*r-gte*o,gte*r+vte*o),e.lineTo(vte*i-gte*a,gte*i+vte*a),e.lineTo(vte*s-gte*l,gte*s+vte*l),e.lineTo(vte*r+gte*o,vte*o-gte*r),e.lineTo(vte*i+gte*a,vte*a-gte*i),e.lineTo(vte*s+gte*l,vte*l-gte*s),e.closePath()}};function wte(e){return function(){return e}}var Cte=Math.PI,jte=2*Cte,Ste=1e-6,kte=jte-Ste;function Zte(e){this._+=e[0];for(var t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}var Ote=function(){function e(t){(0,Ph.Z)(this,e),this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?Zte:function(e){var t=Math.floor(e);if(!(t>=0))throw new Error("invalid digits: ".concat(e));if(t>15)return Zte;var n=Math.pow(10,t);return function(e){this._+=e[0];for(var t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(t)}return(0,Dh.Z)(e,[{key:"moveTo",value:function(e,t){this._append(Vee||(Vee=(0,qo.Z)(["M",",",""])),this._x0=this._x1=+e,this._y0=this._y1=+t)}},{key:"closePath",value:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append(Uee||(Uee=(0,qo.Z)(["Z"]))))}},{key:"lineTo",value:function(e,t){this._append(qee||(qee=(0,qo.Z)(["L",",",""])),this._x1=+e,this._y1=+t)}},{key:"quadraticCurveTo",value:function(e,t,n,r){this._append(Gee||(Gee=(0,qo.Z)(["Q",",",",",",",""])),+e,+t,this._x1=+n,this._y1=+r)}},{key:"bezierCurveTo",value:function(e,t,n,r,o,i){this._append(Yee||(Yee=(0,qo.Z)(["C",",",",",",",",",",",""])),+e,+t,+n,+r,this._x1=+o,this._y1=+i)}},{key:"arcTo",value:function(e,t,n,r,o){if(e=+e,t=+t,n=+n,r=+r,(o=+o)<0)throw new Error("negative radius: ".concat(o));var i=this._x1,a=this._y1,s=n-e,l=r-t,c=i-e,u=a-t,d=c*c+u*u;if(null===this._x1)this._append(Kee||(Kee=(0,qo.Z)(["M",",",""])),this._x1=e,this._y1=t);else if(d>Ste)if(Math.abs(u*s-l*c)>Ste&&o){var p=n-i,f=r-a,h=s*s+l*l,m=p*p+f*f,v=Math.sqrt(h),g=Math.sqrt(d),y=o*Math.tan((Cte-Math.acos((h+d-m)/(2*v*g)))/2),b=y/g,x=y/v;Math.abs(b-1)>Ste&&this._append(Xee||(Xee=(0,qo.Z)(["L",",",""])),e+b*c,t+b*u),this._append(Qee||(Qee=(0,qo.Z)(["A",",",",0,0,",",",",",""])),o,o,+(u*p>c*f),this._x1=e+x*s,this._y1=t+x*l)}else this._append(Jee||(Jee=(0,qo.Z)(["L",",",""])),this._x1=e,this._y1=t);else;}},{key:"arc",value:function(e,t,n,r,o,i){if(e=+e,t=+t,i=!!i,(n=+n)<0)throw new Error("negative radius: ".concat(n));var a=n*Math.cos(r),s=n*Math.sin(r),l=e+a,c=t+s,u=1^i,d=i?r-o:o-r;null===this._x1?this._append($ee||($ee=(0,qo.Z)(["M",",",""])),l,c):(Math.abs(this._x1-l)>Ste||Math.abs(this._y1-c)>Ste)&&this._append(ete||(ete=(0,qo.Z)(["L",",",""])),l,c),n&&(d<0&&(d=d%jte+jte),d>kte?this._append(tte||(tte=(0,qo.Z)(["A",",",",0,1,",",",",","A",",",",0,1,",",",",",""])),n,n,u,e-a,t-s,n,n,u,this._x1=l,this._y1=c):d>Ste&&this._append(nte||(nte=(0,qo.Z)(["A",",",",0,",",",",",",",""])),n,n,+(d>=Cte),u,this._x1=e+n*Math.cos(o),this._y1=t+n*Math.sin(o)))}},{key:"rect",value:function(e,t,n,r){this._append(rte||(rte=(0,qo.Z)(["M",",","h","v","h","Z"])),this._x0=this._x1=+e,this._y0=this._y1=+t,n=+n,+r,-n)}},{key:"toString",value:function(){return this._}}]),e}();function Ete(e){var t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{var r=Math.floor(n);if(!(r>=0))throw new RangeError("invalid digits: ".concat(n));t=r}return e},function(){return new Ote(t)}}Ote.prototype;zee(3),zee(3);function Dte(e){return Dte="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dte(e)}function Pte(){return Pte=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pte.apply(this,arguments)}function Ate(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mte(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Lte(r.key),r)}}function Tte(e,t){return Tte=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Tte(e,t)}function Ite(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Fte(e);if(t){var o=Fte(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Rte(this,n)}}function Rte(e,t){if(t&&("object"===Dte(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Fte(e){return Fte=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fte(e)}function Bte(e,t,n){return(t=Lte(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lte(e){var t=function(e,t){if("object"!==Dte(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Dte(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Dte(t)?t:String(t)}var Nte={symbolCircle:ote,symbolCross:ite,symbolDiamond:lte,symbolSquare:cte,symbolStar:fte,symbolTriangle:mte,symbolWye:xte},_te=Math.PI/180,zte=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tte(e,t)}(a,e);var t,n,r,i=Ite(a);function a(){return Ate(this,a),i.apply(this,arguments)}return t=a,n=[{key:"getPath",value:function(){var e=this.props,t=e.size,n=e.sizeType,r=e.type,o=function(e){var t="symbol".concat(Lee()(e));return Nte[t]||ote}(r),i=function(e,t){var n=null,r=Ete(o);function o(){var o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return e="function"===typeof e?e:wte(e||ote),t="function"===typeof t?t:wte(void 0===t?64:+t),o.type=function(t){return arguments.length?(e="function"===typeof t?t:wte(t),o):e},o.size=function(e){return arguments.length?(t="function"===typeof e?e:wte(+e),o):t},o.context=function(e){return arguments.length?(n=null==e?null:e,o):n},o}().type(o).size(function(e,t,n){if("area"===t)return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var r=18*_te;return 1.25*e*e*(Math.tan(r)-Math.tan(2*r)*Math.pow(Math.tan(r),2));case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}}(t,n,r));return i()}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.cx,r=e.cy,i=e.size,a=C8(this.props,!0);return n===+n&&r===+r&&i===+i?o.createElement("path",Pte({},a,{className:u6()("recharts-symbols",t),transform:"translate(".concat(n,", ").concat(r,")"),d:this.getPath()})):null}}],n&&Mte(t.prototype,n),r&&Mte(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.PureComponent);function Hte(e){return Hte="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hte(e)}function Wte(){return Wte=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wte.apply(this,arguments)}function Vte(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 Ute(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qte(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Qte(r.key),r)}}function Gte(e,t){return Gte=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Gte(e,t)}function Yte(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Jte(e);if(t){var o=Jte(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Kte(this,n)}}function Kte(e,t){if(t&&("object"===Hte(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Jte(e){return Jte=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Jte(e)}function Xte(e,t,n){return(t=Qte(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qte(e){var t=function(e,t){if("object"!==Hte(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Hte(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Hte(t)?t:String(t)}Bte(zte,"defaultProps",{type:"circle",size:64,sizeType:"area"}),Bte(zte,"registerSymbol",(function(e,t){Nte["symbol".concat(Lee()(e))]=t}));var $te=32,ene=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gte(e,t)}(a,e);var t,n,r,i=Yte(a);function a(){return Ute(this,a),i.apply(this,arguments)}return t=a,n=[{key:"renderIcon",value:function(e){var t=this.props.inactiveColor,n=16,r=$te/6,i=$te/3,a=e.inactive?t:e.color;if("plainline"===e.type)return o.createElement("line",{strokeWidth:4,fill:"none",stroke:a,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:n,x2:$te,y2:n,className:"recharts-legend-icon"});if("line"===e.type)return o.createElement("path",{strokeWidth:4,fill:"none",stroke:a,d:"M0,".concat(n,"h").concat(i,"\n            A").concat(r,",").concat(r,",0,1,1,").concat(2*i,",").concat(n,"\n            H").concat($te,"M").concat(2*i,",").concat(n,"\n            A").concat(r,",").concat(r,",0,1,1,").concat(i,",").concat(n),className:"recharts-legend-icon"});if("rect"===e.type)return o.createElement("path",{stroke:"none",fill:a,d:"M0,".concat(4,"h").concat($te,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(o.isValidElement(e.legendIcon)){var s=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vte(Object(n),!0).forEach((function(t){Xte(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vte(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e);return delete s.legendIcon,o.cloneElement(e.legendIcon,s)}return o.createElement(zte,{fill:a,cx:n,cy:n,size:$te,sizeType:"diameter",type:e.type})}},{key:"renderItems",value:function(){var e=this,t=this.props,n=t.payload,r=t.iconSize,i=t.layout,a=t.formatter,s=t.inactiveColor,l={x:0,y:0,width:$te,height:$te},c={display:"horizontal"===i?"inline-block":"block",marginRight:10},u={display:"inline-block",verticalAlign:"middle",marginRight:4};return n.map((function(t,n){var i,d=t.formatter||a,p=u6()((Xte(i={"recharts-legend-item":!0},"legend-item-".concat(n),!0),Xte(i,"inactive",t.inactive),i));if("none"===t.type)return null;var f=t.inactive?s:t.color;return o.createElement("li",Wte({className:p,style:c,key:"legend-item-".concat(n)},l8(e.props,t,n)),o.createElement(D8,{width:r,height:r,viewBox:l,style:u},e.renderIcon(t)),o.createElement("span",{className:"recharts-legend-item-text",style:{color:f}},d?d(t.value,t,n):t.value))}))}},{key:"render",value:function(){var e=this.props,t=e.payload,n=e.layout,r=e.align;if(!t||!t.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===n?r:"left"};return o.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}],n&&qte(t.prototype,n),r&&qte(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.PureComponent);function tne(e){return tne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tne(e)}Xte(ene,"displayName","Legend"),Xte(ene,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var nne=["ref"];function rne(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 one(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rne(Object(n),!0).forEach((function(t){pne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ine(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ane(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fne(r.key),r)}}function sne(e,t){return sne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sne(e,t)}function lne(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=dne(e);if(t){var o=dne(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return cne(this,n)}}function cne(e,t){if(t&&("object"===tne(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return une(e)}function une(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dne(e){return dne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dne(e)}function pne(e,t,n){return(t=fne(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fne(e){var t=function(e,t){if("object"!==tne(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==tne(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===tne(t)?t:String(t)}function hne(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function mne(e){return e.value}function vne(e,t){return!0===e?R8()(t,mne):H9()(e)?R8()(t,e):t}var gne=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sne(e,t)}(a,e);var t,n,r,i=lne(a);function a(){var e;ine(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return pne(une(e=i.call.apply(i,[this].concat(n))),"state",{boxWidth:-1,boxHeight:-1}),e}return t=a,n=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){return this.wrapperNode&&this.wrapperNode.getBoundingClientRect?this.wrapperNode.getBoundingClientRect():null}},{key:"getBBoxSnapshot",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight;return t>=0&&n>=0?{width:t,height:n}:null}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,o=r.layout,i=r.align,a=r.verticalAlign,s=r.margin,l=r.chartWidth,c=r.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===i&&"vertical"===o?{left:((l||0)-(this.getBBoxSnapshot()||{width:0}).width)/2}:"right"===i?{right:s&&s.right||0}:{left:s&&s.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===a?{top:((c||0)-(this.getBBoxSnapshot()||{height:0}).height)/2}:"bottom"===a?{bottom:s&&s.bottom||0}:{top:s&&s.top||0}),one(one({},t),n)}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight,r=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var o=this.wrapperNode.getBoundingClientRect();(Math.abs(o.width-t)>1||Math.abs(o.height-n)>1)&&this.setState({boxWidth:o.width,boxHeight:o.height},(function(){r&&r(o)}))}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1},(function(){r&&r(null)}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.content,r=t.width,i=t.height,a=t.wrapperStyle,s=t.payloadUniqBy,l=t.payload,c=one(one({position:"absolute",width:r||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return o.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(t){e.wrapperNode=t}},function(e,t){if(o.isValidElement(e))return o.cloneElement(e,t);if(H9()(e))return o.createElement(e,t);t.ref;var n=hne(t,nne);return o.createElement(ene,n)}(n,one(one({},this.props),{},{payload:vne(s,l)})))}}],r=[{key:"getWithHeight",value:function(e,t){var n=e.props.layout;return"vertical"===n&&S9(e.props.height)?{height:e.props.height}:"horizontal"===n?{width:e.props.width||t}:null}}],n&&ane(t.prototype,n),r&&ane(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.PureComponent);function yne(){}function bne(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function xne(e){this._context=e}function wne(e){this._context=e}function Cne(e){this._context=e}function jne(e){this._context=e}function Sne(e){this._context=e}function kne(e){return new Sne(e)}function Zne(e){return e<0?-1:1}function One(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(Zne(i)+Zne(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function Ene(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Dne(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function Pne(e){this._context=e}function Ane(e){this._context=new Mne(e)}function Mne(e){this._context=e}function Tne(e){this._context=e}function Ine(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,i[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/i[t-1],i[t]-=n,a[t]-=n*a[t-1];for(o[r-1]=a[r-1]/i[r-1],t=r-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function Rne(e,t){this._context=e,this._t=t}pne(gne,"displayName","Legend"),pne(gne,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"}),xne.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:bne(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:bne(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},wne.prototype={areaStart:yne,areaEnd:yne,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:bne(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Cne.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:bne(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},jne.prototype={areaStart:yne,areaEnd:yne,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},Sne.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},Pne.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Dne(this,this._t0,Ene(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Dne(this,Ene(this,n=One(this,e,t)),n);break;default:Dne(this,this._t0,n=One(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(Ane.prototype=Object.create(Pne.prototype)).point=function(e,t){Pne.prototype.point.call(this,t,e)},Mne.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}},Tne.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=Ine(e),o=Ine(t),i=0,a=1;a<n;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},Rne.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};Array.prototype.slice;function Fne(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function Bne(e){return e[0]}function Lne(e){return e[1]}function Nne(e,t){var n=wte(!0),r=null,o=kne,i=null,a=Ete(s);function s(s){var l,c,u,d=(s=Fne(s)).length,p=!1;for(null==r&&(i=o(u=a())),l=0;l<=d;++l)!(l<d&&n(c=s[l],l,s))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+e(c,l,s),+t(c,l,s));if(u)return i=null,u+""||null}return e="function"===typeof e?e:void 0===e?Bne:wte(e),t="function"===typeof t?t:void 0===t?Lne:wte(t),s.x=function(t){return arguments.length?(e="function"===typeof t?t:wte(+t),s):e},s.y=function(e){return arguments.length?(t="function"===typeof e?e:wte(+e),s):t},s.defined=function(e){return arguments.length?(n="function"===typeof e?e:wte(!!e),s):n},s.curve=function(e){return arguments.length?(o=e,null!=r&&(i=o(r)),s):o},s.context=function(e){return arguments.length?(null==e?r=i=null:i=o(r=e),s):r},s}function _ne(e,t,n){var r=null,o=wte(!0),i=null,a=kne,s=null,l=Ete(c);function c(c){var u,d,p,f,h,m=(c=Fne(c)).length,v=!1,g=new Array(m),y=new Array(m);for(null==i&&(s=a(h=l())),u=0;u<=m;++u){if(!(u<m&&o(f=c[u],u,c))===v)if(v=!v)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),p=u-1;p>=d;--p)s.point(g[p],y[p]);s.lineEnd(),s.areaEnd()}v&&(g[u]=+e(f,u,c),y[u]=+t(f,u,c),s.point(r?+r(f,u,c):g[u],n?+n(f,u,c):y[u]))}if(h)return s=null,h+""||null}function u(){return Nne().defined(o).curve(a).context(i)}return e="function"===typeof e?e:void 0===e?Bne:wte(+e),t="function"===typeof t?t:wte(void 0===t?0:+t),n="function"===typeof n?n:void 0===n?Lne:wte(+n),c.x=function(t){return arguments.length?(e="function"===typeof t?t:wte(+t),r=null,c):e},c.x0=function(t){return arguments.length?(e="function"===typeof t?t:wte(+t),c):e},c.x1=function(e){return arguments.length?(r=null==e?null:"function"===typeof e?e:wte(+e),c):r},c.y=function(e){return arguments.length?(t="function"===typeof e?e:wte(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"===typeof e?e:wte(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"===typeof e?e:wte(+e),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(e){return arguments.length?(o="function"===typeof e?e:wte(!!e),c):o},c.curve=function(e){return arguments.length?(a=e,null!=i&&(s=a(i)),c):a},c.context=function(e){return arguments.length?(null==e?i=s=null:s=a(i=e),c):i},c}function zne(e){return zne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zne(e)}function Hne(){return Hne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hne.apply(this,arguments)}function Wne(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 Vne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wne(Object(n),!0).forEach((function(t){Xne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Une(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Qne(r.key),r)}}function Gne(e,t){return Gne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Gne(e,t)}function Yne(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Jne(e);if(t){var o=Jne(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Kne(this,n)}}function Kne(e,t){if(t&&("object"===zne(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Jne(e){return Jne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Jne(e)}function Xne(e,t,n){return(t=Qne(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qne(e){var t=function(e,t){if("object"!==zne(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==zne(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===zne(t)?t:String(t)}var $ne={curveBasisClosed:function(e){return new wne(e)},curveBasisOpen:function(e){return new Cne(e)},curveBasis:function(e){return new xne(e)},curveLinearClosed:function(e){return new jne(e)},curveLinear:kne,curveMonotoneX:function(e){return new Pne(e)},curveMonotoneY:function(e){return new Ane(e)},curveNatural:function(e){return new Tne(e)},curveStep:function(e){return new Rne(e,.5)},curveStepAfter:function(e){return new Rne(e,1)},curveStepBefore:function(e){return new Rne(e,0)}},ere=function(e){return e.x===+e.x&&e.y===+e.y},tre=function(e){return e.x},nre=function(e){return e.y},rre=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gne(e,t)}(a,e);var t,n,r,i=Yne(a);function a(){return Une(this,a),i.apply(this,arguments)}return t=a,n=[{key:"getPath",value:function(){var e,t=this.props,n=t.type,r=t.points,o=t.baseLine,i=t.layout,a=t.connectNulls,s=function(e,t){if(H9()(e))return e;var n="curve".concat(Lee()(e));return"curveMonotone"===n&&t?$ne["".concat(n).concat("vertical"===t?"Y":"X")]:$ne[n]||kne}(n,i),l=a?r.filter((function(e){return ere(e)})):r;if(m9()(o)){var c=a?o.filter((function(e){return ere(e)})):o,u=l.map((function(e,t){return Vne(Vne({},e),{},{base:c[t]})}));return e="vertical"===i?_ne().y(nre).x1(tre).x0((function(e){return e.base.x})):_ne().x(tre).y1(nre).y0((function(e){return e.base.y})),e.defined(ere).curve(s),e(u)}return(e="vertical"===i&&S9(o)?_ne().y(nre).x1(tre).x0(o):S9(o)?_ne().x(tre).y1(nre).y0(o):Nne().x(tre).y(nre)).defined(ere).curve(s),e(l)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.points,r=e.path,i=e.pathRef;if((!n||!n.length)&&!r)return null;var a=n&&n.length?this.getPath():r;return o.createElement("path",Hne({},C8(this.props),s8(this.props),{className:u6()("recharts-curve",t),d:a,ref:i}))}}],n&&qne(t.prototype,n),r&&qne(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.PureComponent);function ore(e){return ore="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ore(e)}function ire(){return ire=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ire.apply(this,arguments)}function are(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sre(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pre(r.key),r)}}function lre(e,t){return lre=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lre(e,t)}function cre(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=dre(e);if(t){var o=dre(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ure(this,n)}}function ure(e,t){if(t&&("object"===ore(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function dre(e){return dre=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dre(e)}function pre(e){var t=function(e,t){if("object"!==ore(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ore(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ore(t)?t:String(t)}Xne(rre,"defaultProps",{type:"linear",points:[],connectNulls:!1});var fre=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lre(e,t)}(a,e);var t,n,r,i=cre(a);function a(){return are(this,a),i.apply(this,arguments)}return t=a,n=[{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,s=e.top,l=e.left,c=e.className;return S9(t)&&S9(n)&&S9(r)&&S9(i)&&S9(s)&&S9(l)?o.createElement("path",ire({},C8(this.props,!0),{className:u6()("recharts-cross",c),d:a.getPath(t,n,r,i,s,l)})):null}}],r=[{key:"getPath",value:function(e,t,n,r,o,i){return"M".concat(e,",").concat(o,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n)}}],n&&sre(t.prototype,n),r&&sre(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.PureComponent);function hre(e){return hre="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hre(e)}function mre(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 vre(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mre(Object(n),!0).forEach((function(t){gre(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mre(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gre(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==hre(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==hre(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===hre(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e,t,n){(t=pre(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(fre,"defaultProps",{x:0,y:0,top:0,left:0,width:0,height:0});var yre=Math.PI/180,bre=function(e){return 180*e/Math.PI},xre=function(e,t,n,r){return{x:e+Math.cos(-yre*r)*n,y:t+Math.sin(-yre*r)*n}},wre=function(e,t){var n=e.x,r=e.y,o=t.cx,i=t.cy,a=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(r-i,2))}({x:n,y:r},{x:o,y:i});if(a<=0)return{radius:a};var s=(n-o)/a,l=Math.acos(s);return r>i&&(l=2*Math.PI-l),{radius:a,angle:bre(l),angleInRadian:l}},Cre=function(e,t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),i=Math.floor(r/360);return e+360*Math.min(o,i)},jre=function(e,t){var n=e.x,r=e.y,o=wre({x:n,y:r},t),i=o.radius,a=o.angle,s=t.innerRadius,l=t.outerRadius;if(i<s||i>l)return!1;if(0===i)return!0;var c,u=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),o=Math.floor(n/360),i=Math.min(r,o);return{startAngle:t-360*i,endAngle:n-360*i}}(t),d=u.startAngle,p=u.endAngle,f=a;if(d<=p){for(;f>p;)f-=360;for(;f<d;)f+=360;c=f>=d&&f<=p}else{for(;f>d;)f-=360;for(;f<p;)f+=360;c=f>=p&&f<=d}return c?vre(vre({},t),{},{radius:i,angle:Cre(f,t)}):null};function Sre(e){return Sre="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sre(e)}function kre(){return kre=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kre.apply(this,arguments)}function Zre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ore(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Mre(r.key),r)}}function Ere(e,t){return Ere=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ere(e,t)}function Dre(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Are(e);if(t){var o=Are(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Pre(this,n)}}function Pre(e,t){if(t&&("object"===Sre(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Are(e){return Are=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Are(e)}function Mre(e){var t=function(e,t){if("object"!==Sre(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Sre(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Sre(t)?t:String(t)}var Tre=function(e){var t=e.cx,n=e.cy,r=e.radius,o=e.angle,i=e.sign,a=e.isExternal,s=e.cornerRadius,l=e.cornerIsExternal,c=s*(a?1:-1)+r,u=Math.asin(s/c)/yre,d=l?o:o+i*u,p=l?o-i*u:o;return{center:xre(t,n,c,d),circleTangency:xre(t,n,r,d),lineTangency:xre(t,n,c*Math.cos(u*yre),p),theta:u}},Ire=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.startAngle,a=function(e,t){return C9(t-e)*Math.min(Math.abs(t-e),359.999)}(i,e.endAngle),s=i+a,l=xre(t,n,o,i),c=xre(t,n,o,s),u="M ".concat(l.x,",").concat(l.y,"\n    A ").concat(o,",").concat(o,",0,\n    ").concat(+(Math.abs(a)>180),",").concat(+(i>s),",\n    ").concat(c.x,",").concat(c.y,"\n  ");if(r>0){var d=xre(t,n,r,i),p=xre(t,n,r,s);u+="L ".concat(p.x,",").concat(p.y,"\n            A ").concat(r,",").concat(r,",0,\n            ").concat(+(Math.abs(a)>180),",").concat(+(i<=s),",\n            ").concat(d.x,",").concat(d.y," Z")}else u+="L ".concat(t,",").concat(n," Z");return u},Rre=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ere(e,t)}(a,e);var t,n,r,i=Dre(a);function a(){return Zre(this,a),i.apply(this,arguments)}return t=a,n=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,a=e.cornerRadius,s=e.forceCornerRadius,l=e.cornerIsExternal,c=e.startAngle,u=e.endAngle,d=e.className;if(i<r||c===u)return null;var p,f=u6()("recharts-sector",d),h=i-r,m=E9(a,h,0,!0);return p=m>0&&Math.abs(c-u)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,s=e.cornerIsExternal,l=e.startAngle,c=e.endAngle,u=C9(c-l),d=Tre({cx:t,cy:n,radius:o,angle:l,sign:u,cornerRadius:i,cornerIsExternal:s}),p=d.circleTangency,f=d.lineTangency,h=d.theta,m=Tre({cx:t,cy:n,radius:o,angle:c,sign:-u,cornerRadius:i,cornerIsExternal:s}),v=m.circleTangency,g=m.lineTangency,y=m.theta,b=s?Math.abs(l-c):Math.abs(l-c)-h-y;if(b<0)return a?"M ".concat(f.x,",").concat(f.y,"\n        a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n        a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n      "):Ire({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:l,endAngle:c});var x="M ".concat(f.x,",").concat(f.y,"\n    A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(p.x,",").concat(p.y,"\n    A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(u<0),",").concat(v.x,",").concat(v.y,"\n    A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(g.x,",").concat(g.y,"\n  ");if(r>0){var w=Tre({cx:t,cy:n,radius:r,angle:l,sign:u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),C=w.circleTangency,j=w.lineTangency,S=w.theta,k=Tre({cx:t,cy:n,radius:r,angle:c,sign:-u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),Z=k.circleTangency,O=k.lineTangency,E=k.theta,D=s?Math.abs(l-c):Math.abs(l-c)-S-E;if(D<0&&0===i)return"".concat(x,"L").concat(t,",").concat(n,"Z");x+="L".concat(O.x,",").concat(O.y,"\n      A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(Z.x,",").concat(Z.y,"\n      A").concat(r,",").concat(r,",0,").concat(+(D>180),",").concat(+(u>0),",").concat(C.x,",").concat(C.y,"\n      A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(j.x,",").concat(j.y,"Z")}else x+="L".concat(t,",").concat(n,"Z");return x}({cx:t,cy:n,innerRadius:r,outerRadius:i,cornerRadius:Math.min(m,h/2),forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:u}):Ire({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:c,endAngle:u}),o.createElement("path",kre({},C8(this.props,!0),{className:f,d:p,role:"img"}))}}],n&&Ore(t.prototype,n),r&&Ore(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.PureComponent);function Fre(e){return Fre="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fre(e)}function Bre(){return Bre=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bre.apply(this,arguments)}function Lre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nre(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_re(r.key),r)}}function _re(e){var t=function(e,t){if("object"!==Fre(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Fre(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Fre(t)?t:String(t)}function zre(e,t){return zre=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zre(e,t)}function Hre(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Vre(e);if(t){var o=Vre(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Wre(this,n)}}function Wre(e,t){if(t&&("object"===Fre(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Vre(e){return Vre=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Vre(e)}!function(e,t,n){(t=Mre(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(Rre,"defaultProps",{cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1});var Ure=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zre(e,t)}(a,e);var t,n,r,i=Hre(a);function a(){return Lre(this,a),i.apply(this,arguments)}return t=a,n=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.r,i=e.className,a=u6()("recharts-dot",i);return t===+t&&n===+n&&r===+r?o.createElement("circle",Bre({},C8(this.props),s8(this.props),{className:a,cx:t,cy:n,r:r})):null}}],n&&Nre(t.prototype,n),r&&Nre(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.PureComponent);function qre(e){return qre="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qre(e)}function Gre(){return Gre=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gre.apply(this,arguments)}function Yre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kre(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,noe(r.key),r)}}function Jre(e,t){return Jre=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Jre(e,t)}function Xre(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=eoe(e);if(t){var o=eoe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Qre(this,n)}}function Qre(e,t){if(t&&("object"===qre(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return $re(e)}function $re(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eoe(e){return eoe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eoe(e)}function toe(e,t,n){return(t=noe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function noe(e){var t=function(e,t){if("object"!==qre(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==qre(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qre(t)?t:String(t)}var roe=function(e,t,n,r,o){var i,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),s=r>=0?1:-1,l=n>=0?1:-1,c=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&o instanceof Array){for(var u=[0,0,0,0],d=0;d<4;d++)u[d]=o[d]>a?a:o[d];i="M".concat(e,",").concat(t+s*u[0]),u[0]>0&&(i+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(c,",").concat(e+l*u[0],",").concat(t)),i+="L ".concat(e+n-l*u[1],",").concat(t),u[1]>0&&(i+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(c,",\n        ").concat(e+n,",").concat(t+s*u[1])),i+="L ".concat(e+n,",").concat(t+r-s*u[2]),u[2]>0&&(i+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(c,",\n        ").concat(e+n-l*u[2],",").concat(t+r)),i+="L ".concat(e+l*u[3],",").concat(t+r),u[3]>0&&(i+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(c,",\n        ").concat(e,",").concat(t+r-s*u[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(e,",").concat(t+s*p,"\n            A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e+l*p,",").concat(t,"\n            L ").concat(e+n-l*p,",").concat(t,"\n            A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e+n,",").concat(t+s*p,"\n            L ").concat(e+n,",").concat(t+r-s*p,"\n            A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e+n-l*p,",").concat(t+r,"\n            L ").concat(e+l*p,",").concat(t+r,"\n            A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e,",").concat(t+r-s*p," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},ooe=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,o=t.x,i=t.y,a=t.width,s=t.height;if(Math.abs(a)>0&&Math.abs(s)>0){var l=Math.min(o,o+a),c=Math.max(o,o+a),u=Math.min(i,i+s),d=Math.max(i,i+s);return n>=l&&n<=c&&r>=u&&r<=d}return!1},ioe=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jre(e,t)}(a,e);var t,n,r,i=Xre(a);function a(){var e;Yre(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return toe($re(e=i.call.apply(i,[this].concat(n))),"state",{totalLength:-1}),e}return t=a,n=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var e=this.node.getTotalLength();e&&this.setState({totalLength:e})}catch(t){}}},{key:"render",value:function(){var e=this,t=this.props,n=t.x,r=t.y,i=t.width,a=t.height,s=t.radius,l=t.className,c=this.state.totalLength,u=this.props,d=u.animationEasing,p=u.animationDuration,f=u.animationBegin,h=u.isAnimationActive,m=u.isUpdateAnimationActive;if(n!==+n||r!==+r||i!==+i||a!==+a||0===i||0===a)return null;var v=u6()("recharts-rectangle",l);return m?o.createElement(iee,{canBegin:c>0,from:{width:i,height:a,x:n,y:r},to:{width:i,height:a,x:n,y:r},duration:p,animationEasing:d,isActive:m},(function(t){var n=t.width,r=t.height,i=t.x,a=t.y;return o.createElement(iee,{canBegin:c>0,from:"0px ".concat(-1===c?1:c,"px"),to:"".concat(c,"px 0px"),attributeName:"strokeDasharray",begin:f,duration:p,isActive:h,easing:d},o.createElement("path",Gre({},C8(e.props,!0),{className:v,d:roe(i,a,n,r,s),ref:function(t){e.node=t}})))})):o.createElement("path",Gre({},C8(this.props,!0),{className:v,d:roe(n,r,i,a,s)}))}}],n&&Kre(t.prototype,n),r&&Kre(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.PureComponent);function aoe(e){return aoe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},aoe(e)}function soe(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 loe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?soe(Object(n),!0).forEach((function(t){coe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):soe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function coe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==aoe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==aoe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===aoe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uoe(e){return function(e){if(Array.isArray(e))return doe(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return doe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return doe(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function doe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}toe(ioe,"defaultProps",{x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"});var poe={widthCache:{},cacheCount:0},foe={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},hoe=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],moe="recharts_measurement_span";var voe=function(e){return Object.keys(e).reduce((function(t,n){return"".concat(t).concat(function(e){var t=e.split("").reduce((function(e,t){return t===t.toUpperCase()?[].concat(uoe(e),["-",t.toLowerCase()]):[].concat(uoe(e),[t])}),[]);return t.join("")}(n),":").concat(function(e,t){return hoe.indexOf(e)>=0&&t===+t?"".concat(t,"px"):t}(n,e[n]),";")}),"")},goe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e||null===e||wee.isSsr)return{width:0,height:0};var n="".concat(e),r=voe(t),o="".concat(n,"-").concat(r);if(poe.widthCache[o])return poe.widthCache[o];try{var i=document.getElementById(moe);i||((i=document.createElement("span")).setAttribute("id",moe),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=loe(loe({},foe),t);Object.keys(a).map((function(e){return i.style[e]=a[e],e})),i.textContent=n;var s=i.getBoundingClientRect(),l={width:s.width,height:s.height};return poe.widthCache[o]=l,++poe.cacheCount>2e3&&(poe.cacheCount=0,poe.widthCache={}),l}catch(c){return{width:0,height:0}}},yoe=n(86455),boe=n.n(yoe),xoe=["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className","breakAll"];function woe(e){return woe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},woe(e)}function Coe(){return Coe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Coe.apply(this,arguments)}function joe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Soe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function koe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Foe(r.key),r)}}function Zoe(e,t){return Zoe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Zoe(e,t)}function Ooe(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Poe(e);if(t){var o=Poe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Eoe(this,n)}}function Eoe(e,t){if(t&&("object"===woe(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Doe(e)}function Doe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Poe(e){return Poe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Poe(e)}function Aoe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return Moe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Moe(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Moe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Toe(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 Ioe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Toe(Object(n),!0).forEach((function(t){Roe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Toe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Roe(e,t,n){return(t=Foe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Foe(e){var t=function(e,t){if("object"!==woe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==woe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===woe(t)?t:String(t)}var Boe=/[ \f\n\r\t\v\u2028\u2029]+/,Loe=function(e){try{var t=[];return J9()(e.children)||(t=e.breakAll?e.children.toString().split(""):e.children.toString().split(Boe)),{wordsWithComputedWidth:t.map((function(t){return{word:t,width:goe(t,e.style).width}})),spaceWidth:e.breakAll?0:goe("\xa0",e.style).width}}catch(n){return null}},Noe=function(e){return[{words:J9()(e)?[]:e.toString().split(Boe)}]},_oe=function(e,t){if((e.width||e.scaleToFit)&&!wee.isSsr&&t){var n=Loe(e);return n?function(e,t,n,r,o){var i=S9(e.maxLines),a=e.children,s=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var i=t.word,a=t.width,s=e[e.length-1];if(s&&(null==r||o||s.width+a+n<r))s.words.push(i),s.width+=a+n;else{var l={words:[i],width:a};e.push(l)}return e}),[])},l=s(t);if(!i)return l;for(var c,u=function(t){var n=a.slice(0,t),o=Loe(Ioe(Ioe({},e),{},{children:n+"\u2026"})).wordsWithComputedWidth,i=s(o),l=i.length>e.maxLines||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(i).width>r;return[l,i]},d=0,p=a.length-1,f=0;d<=p&&f<=a.length-1;){var h=Math.floor((d+p)/2),m=Aoe(u(h-1),2),v=m[0],g=m[1],y=Aoe(u(h),1)[0];if(v||y||(d=h+1),v&&y&&(p=h-1),!v&&y){c=g;break}f++}return c||l}(e,n.wordsWithComputedWidth,n.spaceWidth,e.width,e.scaleToFit):Noe(e.children)}return Noe(e.children)},zoe=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zoe(e,t)}(a,e);var t,n,r,i=Ooe(a);function a(){var e;Soe(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Roe(Doe(e=i.call.apply(i,[this].concat(n))),"state",{}),e}return t=a,n=[{key:"render",value:function(){var e=this.props,t=e.dx,n=e.dy,r=e.textAnchor,i=e.verticalAnchor,s=e.scaleToFit,l=e.angle,c=e.lineHeight,u=e.capHeight,d=e.className,p=e.breakAll,f=joe(e,xoe),h=this.state.wordsByLines;if(!k9(f.x)||!k9(f.y))return null;var m,v=f.x+(S9(t)?t:0),g=f.y+(S9(n)?n:0);switch(i){case"start":m=boe()("calc(".concat(u,")"));break;case"middle":m=boe()("calc(".concat((h.length-1)/2," * -").concat(c," + (").concat(u," / 2))"));break;default:m=boe()("calc(".concat(h.length-1," * -").concat(c,")"))}var y=[];if(s){var b=h[0].width,x=this.props.width;y.push("scale(".concat((S9(x)?x/b:1)/b,")"))}return l&&y.push("rotate(".concat(l,", ").concat(v,", ").concat(g,")")),y.length&&(f.transform=y.join(" ")),o.createElement("text",Coe({},C8(f,!0),{x:v,y:g,className:u6()("recharts-text",d),textAnchor:r,fill:f.fill.includes("url")?a.defaultProps.fill:f.fill}),h.map((function(e,t){return o.createElement("tspan",{x:v,dy:0===t?m:c,key:t},e.words.join(p?"":" "))})))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){if(e.width!==t.prevWidth||e.scaleToFit!==t.prevScaleToFit||e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll){var n=e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll;return{prevWidth:e.width,prevScaleToFit:e.scaleToFit,prevChildren:e.children,prevStyle:e.style,wordsByLines:_oe(e,n)}}return null}}],n&&koe(t.prototype,n),r&&koe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.Component);function Hoe(e){return Hoe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hoe(e)}function Woe(e){return function(e){if(Array.isArray(e))return Voe(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return Voe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Voe(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Voe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Uoe(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 qoe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uoe(Object(n),!0).forEach((function(t){Goe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uoe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Goe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Hoe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Hoe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Hoe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yoe(){return Yoe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yoe.apply(this,arguments)}Roe(zoe,"defaultProps",{x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",fill:"#808080"});var Koe=function(e,t,n){var r,i,a=e.position,s=e.viewBox,l=e.offset,c=e.className,u=s,d=u.cx,p=u.cy,f=u.innerRadius,h=u.outerRadius,m=u.startAngle,v=u.endAngle,g=u.clockWise,y=(f+h)/2,b=function(e,t){return C9(t-e)*Math.min(Math.abs(t-e),360)}(m,v),x=b>=0?1:-1;"insideStart"===a?(r=m+x*l,i=g):"insideEnd"===a?(r=v-x*l,i=!g):"end"===a&&(r=v+x*l,i=g),i=b<=0?i:!i;var w=xre(d,p,y,r),C=xre(d,p,y,r+359*(i?1:-1)),j="M".concat(w.x,",").concat(w.y,"\n    A").concat(y,",").concat(y,",0,1,").concat(i?0:1,",\n    ").concat(C.x,",").concat(C.y),S=J9()(e.id)?O9("recharts-radial-line-"):e.id;return o.createElement("text",Yoe({},n,{dominantBaseline:"central",className:u6()("recharts-radial-bar-label",c)}),o.createElement("defs",null,o.createElement("path",{id:S,d:j})),o.createElement("textPath",{xlinkHref:"#".concat(S)},t))};function Joe(e){var t,n=e.viewBox,r=e.position,i=e.value,a=e.children,s=e.content,l=e.className,c=void 0===l?"":l,u=e.textBreakAll;if(!n||J9()(i)&&J9()(a)&&!(0,o.isValidElement)(s)&&!H9()(s))return null;if((0,o.isValidElement)(s))return(0,o.cloneElement)(s,e);if(H9()(s)){if(t=(0,o.createElement)(s,e),(0,o.isValidElement)(t))return t}else t=function(e){var t=e.value,n=e.formatter,r=J9()(e.children)?t:e.children;return H9()(n)?n(r):r}(e);var d=function(e){return S9(e.cx)}(n),p=C8(e,!0);if(d&&("insideStart"===r||"insideEnd"===r||"end"===r))return Koe(e,t,p);var f=d?function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t,i=o.cx,a=o.cy,s=o.innerRadius,l=o.outerRadius,c=(o.startAngle+o.endAngle)/2;if("outside"===r){var u=xre(i,a,l+n,c),d=u.x;return{x:d,y:u.y,textAnchor:d>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=xre(i,a,(s+l)/2,c);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}}(e):function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,o=e.position,i=t,a=i.x,s=i.y,l=i.width,c=i.height,u=c>=0?1:-1,d=u*r,p=u>0?"end":"start",f=u>0?"start":"end",h=l>=0?1:-1,m=h*r,v=h>0?"end":"start",g=h>0?"start":"end";if("top"===o)return qoe(qoe({},{x:a+l/2,y:s-u*r,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(s-n.y,0),width:l}:{});if("bottom"===o)return qoe(qoe({},{x:a+l/2,y:s+c+d,textAnchor:"middle",verticalAnchor:f}),n?{height:Math.max(n.y+n.height-(s+c),0),width:l}:{});if("left"===o){var y={x:a-m,y:s+c/2,textAnchor:v,verticalAnchor:"middle"};return qoe(qoe({},y),n?{width:Math.max(y.x-n.x,0),height:c}:{})}if("right"===o){var b={x:a+l+m,y:s+c/2,textAnchor:g,verticalAnchor:"middle"};return qoe(qoe({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:c}:{})}var x=n?{width:l,height:c}:{};return"insideLeft"===o?qoe({x:a+m,y:s+c/2,textAnchor:g,verticalAnchor:"middle"},x):"insideRight"===o?qoe({x:a+l-m,y:s+c/2,textAnchor:v,verticalAnchor:"middle"},x):"insideTop"===o?qoe({x:a+l/2,y:s+d,textAnchor:"middle",verticalAnchor:f},x):"insideBottom"===o?qoe({x:a+l/2,y:s+c-d,textAnchor:"middle",verticalAnchor:p},x):"insideTopLeft"===o?qoe({x:a+m,y:s+d,textAnchor:g,verticalAnchor:f},x):"insideTopRight"===o?qoe({x:a+l-m,y:s+d,textAnchor:v,verticalAnchor:f},x):"insideBottomLeft"===o?qoe({x:a+m,y:s+c-d,textAnchor:g,verticalAnchor:p},x):"insideBottomRight"===o?qoe({x:a+l-m,y:s+c-d,textAnchor:v,verticalAnchor:p},x):e8()(o)&&(S9(o.x)||j9(o.x))&&(S9(o.y)||j9(o.y))?qoe({x:a+E9(o.x,l),y:s+E9(o.y,c),textAnchor:"end",verticalAnchor:"end"},x):qoe({x:a+l/2,y:s+c/2,textAnchor:"middle",verticalAnchor:"middle"},x)}(e);return o.createElement(zoe,Yoe({className:u6()("recharts-label",c)},p,f,{breakAll:u}),t)}Joe.displayName="Label",Joe.defaultProps={offset:5};var Xoe=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,s=e.radius,l=e.innerRadius,c=e.outerRadius,u=e.x,d=e.y,p=e.top,f=e.left,h=e.width,m=e.height,v=e.clockWise,g=e.labelViewBox;if(g)return g;if(S9(h)&&S9(m)){if(S9(u)&&S9(d))return{x:u,y:d,width:h,height:m};if(S9(p)&&S9(f))return{x:p,y:f,width:h,height:m}}return S9(u)&&S9(d)?{x:u,y:d,width:0,height:0}:S9(t)&&S9(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:l||0,outerRadius:c||s||a||0,clockWise:v}:e.viewBox?e.viewBox:{}},Qoe=function(e,t){return e?!0===e?o.createElement(Joe,{key:"label-implicit",viewBox:t}):k9(e)?o.createElement(Joe,{key:"label-implicit",viewBox:t,value:e}):(0,o.isValidElement)(e)?e.type===Joe?(0,o.cloneElement)(e,{key:"label-implicit",viewBox:t}):o.createElement(Joe,{key:"label-implicit",content:e,viewBox:t}):H9()(e)?o.createElement(Joe,{key:"label-implicit",content:e,viewBox:t}):e8()(e)?o.createElement(Joe,Yoe({viewBox:t},e,{key:"label-implicit"})):null:null};Joe.parseViewBox=Xoe,Joe.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=Xoe(e),a=g8(r,Joe).map((function(e,n){return(0,o.cloneElement)(e,{viewBox:t||i,key:"label-".concat(n)})}));if(!n)return a;var s=Qoe(e.label,t||i);return[s].concat(Woe(a))};var $oe=["viewBox"],eie=["viewBox"],tie=["ticks"];function nie(e){return nie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nie(e)}function rie(){return rie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rie.apply(this,arguments)}function oie(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 iie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oie(Object(n),!0).forEach((function(t){pie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aie(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function sie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fie(r.key),r)}}function lie(e,t){return lie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lie(e,t)}function cie(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=die(e);if(t){var o=die(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return uie(this,n)}}function uie(e,t){if(t&&("object"===nie(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function die(e){return die=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},die(e)}function pie(e,t,n){return(t=fie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fie(e){var t=function(e,t){if("object"!==nie(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==nie(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===nie(t)?t:String(t)}var hie=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lie(e,t)}(a,e);var t,n,r,i=cie(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={fontSize:"",letterSpacing:""},t}return t=a,n=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=aie(e,$oe),o=this.props,i=o.viewBox,a=aie(o,eie);return!t8(n,i)||!t8(r,a)||!t8(t,this.state)}},{key:"componentDidMount",value:function(){var e=this.layerReference;if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];t&&this.setState({fontSize:window.getComputedStyle(t).fontSize,letterSpacing:window.getComputedStyle(t).letterSpacing})}}},{key:"getTickLineCoord",value:function(e){var t,n,r,o,i,a,s=this.props,l=s.x,c=s.y,u=s.width,d=s.height,p=s.orientation,f=s.tickSize,h=s.mirror,m=s.tickMargin,v=h?-1:1,g=e.tickSize||f,y=S9(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){case"top":t=n=e.coordinate,a=(r=(o=c+ +!h*d)-v*g)-v*m,i=y;break;case"left":r=o=e.coordinate,i=(t=(n=l+ +!h*u)-v*g)-v*m,a=y;break;case"right":r=o=e.coordinate,i=(t=(n=l+ +h*u)+v*g)+v*m,a=y;break;default:t=n=e.coordinate,a=(r=(o=c+ +h*d)+v*g)+v*m,i=y}return{line:{x1:t,y1:r,x2:n,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,n=t.orientation,r=t.mirror;switch(n){case"left":e=r?"start":"end";break;case"right":e=r?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,a=e.orientation,s=e.mirror,l=e.axisLine,c=iie(iie(iie({},C8(this.props)),C8(l)),{},{fill:"none"});if("top"===a||"bottom"===a){var u=+("top"===a&&!s||"bottom"===a&&s);c=iie(iie({},c),{},{x1:t,y1:n+u*i,x2:t+r,y2:n+u*i})}else{var d=+("left"===a&&!s||"right"===a&&s);c=iie(iie({},c),{},{x1:t+d*r,y1:n,x2:t+d*r,y2:n+i})}return o.createElement("line",rie({},c,{className:u6()("recharts-cartesian-axis-line",f9()(l,"className"))}))}},{key:"renderTicks",value:function(e,t,n){var r=this,i=this.props,s=i.tickLine,l=i.stroke,c=i.tick,u=i.tickFormatter,d=i.unit,p=a.getTicks(iie(iie({},this.props),{},{ticks:e}),t,n),f=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),m=C8(this.props),v=C8(c),g=iie(iie({},m),{},{fill:"none"},C8(s)),y=p.map((function(e,t){var n=r.getTickLineCoord(e),i=n.line,y=n.tick,b=iie(iie(iie(iie({textAnchor:f,verticalAnchor:h},m),{},{stroke:"none",fill:l},v),y),{},{index:t,payload:e,visibleTicksCount:p.length,tickFormatter:u});return o.createElement(T8,rie({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t)},l8(r.props,e,t)),s&&o.createElement("line",rie({},g,i,{className:u6()("recharts-cartesian-axis-tick-line",f9()(s,"className"))})),c&&a.renderTickItem(c,b,"".concat(H9()(u)?u(e.value,t):e.value).concat(d||"")))}));return o.createElement("g",{className:"recharts-cartesian-axis-ticks"},y)}},{key:"render",value:function(){var e=this,t=this.props,n=t.axisLine,r=t.width,i=t.height,a=t.ticksGenerator,s=t.className;if(t.hide)return null;var l=this.props,c=l.ticks,u=aie(l,tie),d=c;return H9()(a)&&(d=c&&c.length>0?a(this.props):a(u)),r<=0||i<=0||!d||!d.length?null:o.createElement(T8,{className:u6()("recharts-cartesian-axis",s),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(d,this.state.fontSize,this.state.letterSpacing),Joe.renderCallByParent(this.props))}}],r=[{key:"getTicks",value:function(e,t,n){var r=e.tick,o=e.ticks,i=e.viewBox,s=e.minTickGap,l=e.orientation,c=e.interval,u=e.tickFormatter,d=e.unit;return o&&o.length&&r?S9(c)||wee.isSsr?a.getNumberIntervalTicks(o,"number"===typeof c&&S9(c)?c:0):"preserveStartEnd"===c?a.getTicksStart({ticks:o,tickFormatter:u,viewBox:i,orientation:l,minTickGap:s,unit:d,fontSize:t,letterSpacing:n},!0):"preserveStart"===c?a.getTicksStart({ticks:o,tickFormatter:u,viewBox:i,orientation:l,minTickGap:s,unit:d,fontSize:t,letterSpacing:n}):a.getTicksEnd({ticks:o,tickFormatter:u,viewBox:i,orientation:l,minTickGap:s,unit:d,fontSize:t,letterSpacing:n}):[]}},{key:"getNumberIntervalTicks",value:function(e,t){return e.filter((function(e,n){return n%(t+1)===0}))}},{key:"getTicksStart",value:function(e,t){var n,r,o=e.ticks,i=e.tickFormatter,a=e.viewBox,s=e.orientation,l=e.minTickGap,c=e.unit,u=e.fontSize,d=e.letterSpacing,p=a.x,f=a.y,h=a.width,m=a.height,v="top"===s||"bottom"===s?"width":"height",g=(o||[]).slice(),y=c&&"width"===v?goe(c,{fontSize:u,letterSpacing:d})[v]:0,b=g.length,x=b>=2?C9(g[1].coordinate-g[0].coordinate):1;if(1===x?(n="width"===v?p:f,r="width"===v?p+h:f+m):(n="width"===v?p+h:f+m,r="width"===v?p:f),t){var w=o[b-1],C=H9()(i)?i(w.value,b-1):w.value,j=goe(C,{fontSize:u,letterSpacing:d})[v]+y,S=x*(w.coordinate+x*j/2-r);g[b-1]=w=iie(iie({},w),{},{tickCoord:S>0?w.coordinate-S*x:w.coordinate}),x*(w.tickCoord-x*j/2-n)>=0&&x*(w.tickCoord+x*j/2-r)<=0&&(r=w.tickCoord-x*(j/2+l),g[b-1]=iie(iie({},w),{},{isShow:!0}))}for(var k=t?b-1:b,Z=0;Z<k;Z++){var O=g[Z],E=H9()(i)?i(O.value,Z):O.value,D=goe(E,{fontSize:u,letterSpacing:d})[v]+y;if(0===Z){var P=x*(O.coordinate-x*D/2-n);g[Z]=O=iie(iie({},O),{},{tickCoord:P<0?O.coordinate-P*x:O.coordinate})}else g[Z]=O=iie(iie({},O),{},{tickCoord:O.coordinate});x*(O.tickCoord-x*D/2-n)>=0&&x*(O.tickCoord+x*D/2-r)<=0&&(n=O.tickCoord+x*(D/2+l),g[Z]=iie(iie({},O),{},{isShow:!0}))}return g.filter((function(e){return e.isShow}))}},{key:"getTicksEnd",value:function(e){var t,n,r=e.ticks,o=e.tickFormatter,i=e.viewBox,a=e.orientation,s=e.minTickGap,l=e.unit,c=e.fontSize,u=e.letterSpacing,d=i.x,p=i.y,f=i.width,h=i.height,m="top"===a||"bottom"===a?"width":"height",v=l&&"width"===m?goe(l,{fontSize:c,letterSpacing:u})[m]:0,g=(r||[]).slice(),y=g.length,b=y>=2?C9(g[1].coordinate-g[0].coordinate):1;1===b?(t="width"===m?d:p,n="width"===m?d+f:p+h):(t="width"===m?d+f:p+h,n="width"===m?d:p);for(var x=y-1;x>=0;x--){var w=g[x],C=H9()(o)?o(w.value,y-x-1):w.value,j=goe(C,{fontSize:c,letterSpacing:u})[m]+v;if(x===y-1){var S=b*(w.coordinate+b*j/2-n);g[x]=w=iie(iie({},w),{},{tickCoord:S>0?w.coordinate-S*b:w.coordinate})}else g[x]=w=iie(iie({},w),{},{tickCoord:w.coordinate});b*(w.tickCoord-b*j/2-t)>=0&&b*(w.tickCoord+b*j/2-n)<=0&&(n=w.tickCoord-b*(j/2+s),g[x]=iie(iie({},w),{},{isShow:!0}))}return g.filter((function(e){return e.isShow}))}},{key:"renderTickItem",value:function(e,t,n){return o.isValidElement(e)?o.cloneElement(e,t):H9()(e)?e(t):o.createElement(zoe,rie({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],n&&sie(t.prototype,n),r&&sie(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.Component);function mie(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}function vie(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function gie(e,t){switch(arguments.length){case 0:break;case 1:"function"===typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"===typeof t?this.interpolator(t):this.range(t)}return this}pie(hie,"displayName","CartesianAxis"),pie(hie,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var yie=n(27597);function bie(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=(0,yie.Z)(e)););return e}function xie(){return xie="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=bie(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},xie.apply(this,arguments)}var wie=n(37373),Cie=function(e){(0,qF.Z)(n,e);var t=(0,GF.Z)(n);function n(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Zie;if((0,Ph.Z)(this,n),r=t.call(this),Object.defineProperties((0,UF.Z)(r),{_intern:{value:new Map},_key:{value:o}}),null!=e){var i,a=_e(e);try{for(a.s();!(i=a.n()).done;){var s=(0,Le.Z)(i.value,2),l=s[0],c=s[1];r.set(l,c)}}catch(u){a.e(u)}finally{a.f()}}return r}return(0,Dh.Z)(n,[{key:"get",value:function(e){return xie((0,yie.Z)(n.prototype),"get",this).call(this,jie(this,e))}},{key:"has",value:function(e){return xie((0,yie.Z)(n.prototype),"has",this).call(this,jie(this,e))}},{key:"set",value:function(e,t){return xie((0,yie.Z)(n.prototype),"set",this).call(this,Sie(this,e),t)}},{key:"delete",value:function(e){return xie((0,yie.Z)(n.prototype),"delete",this).call(this,kie(this,e))}}]),n}((0,wie.Z)(Map));Set;function jie(e,t){var n=e._intern,r=(0,e._key)(t);return n.has(r)?n.get(r):t}function Sie(e,t){var n=e._intern,r=(0,e._key)(t);return n.has(r)?n.get(r):(n.set(r,t),t)}function kie(e,t){var n=e._intern,r=(0,e._key)(t);return n.has(r)&&(t=n.get(r),n.delete(r)),t}function Zie(e){return null!==e&&"object"===typeof e?e.valueOf():e}var Oie=Symbol("implicit");function Eie(){var e=new Cie,t=[],n=[],r=Oie;function o(o){var i=e.get(o);if(void 0===i){if(r!==Oie)return r;e.set(o,i=t.push(o)-1)}return n[i%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Cie;var r,i=_e(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;e.has(a)||e.set(a,t.push(a)-1)}}catch(s){i.e(s)}finally{i.f()}return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return Eie(t,n).unknown(r)},vie.apply(o,arguments),o}function Die(){var e,t,n=Eie().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,s=!1,l=0,c=0,u=.5;function d(){var n=r().length,d=a<i,p=d?a:i,f=d?i:a;e=(f-p)/Math.max(1,n-l+2*c),s&&(e=Math.floor(e)),p+=(f-p-e*(n-l))*u,t=e*(1-l),s&&(p=Math.round(p),t=Math.round(t));var h=mie(n).map((function(t){return p+e*t}));return o(d?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),d()):r()},n.range=function(e){var t,n;return arguments.length?(t=e,n=(0,Le.Z)(t,2),i=n[0],a=n[1],i=+i,a=+a,d()):[i,a]},n.rangeRound=function(e){var t,n;return t=e,n=(0,Le.Z)(t,2),i=n[0],a=n[1],i=+i,a=+a,s=!0,d()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,d()):s},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),d()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),d()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,d()):c},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},n.copy=function(){return Die(r(),[i,a]).round(s).paddingInner(l).paddingOuter(c).align(u)},vie.apply(d(),arguments)}function Pie(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Pie(t())},e}function Aie(){return Pie(Die.apply(null,arguments).paddingInner(1))}var Mie=n(79122),Tie=n.n(Mie),Iie=n(83424),Rie=n.n(Iie),Fie=n(63454),Bie=n.n(Fie),Lie=n(25093),Nie=n.n(Lie),_ie=Math.sqrt(50),zie=Math.sqrt(10),Hie=Math.sqrt(2);function Wie(e,t,n){var r,o,i,a=(t-e)/Math.max(0,n),s=Math.floor(Math.log10(a)),l=a/Math.pow(10,s),c=l>=_ie?10:l>=zie?5:l>=Hie?2:1;return s<0?(i=Math.pow(10,-s)/c,(r=Math.round(e*i))/i<e&&++r,(o=Math.round(t*i))/i>t&&--o,i=-i):(i=Math.pow(10,s)*c,(r=Math.round(e/i))*i<e&&++r,(o=Math.round(t/i))*i>t&&--o),o<r&&.5<=n&&n<2?Wie(e,t,2*n):[r,o,i]}function Vie(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];var r=t<e,o=r?Wie(t,e,n):Wie(e,t,n),i=(0,Le.Z)(o,3),a=i[0],s=i[1],l=i[2];if(!(s>=a))return[];var c=s-a+1,u=new Array(c);if(r)if(l<0)for(var d=0;d<c;++d)u[d]=(s-d)/-l;else for(var p=0;p<c;++p)u[p]=(s-p)*l;else if(l<0)for(var f=0;f<c;++f)u[f]=(a+f)/-l;else for(var h=0;h<c;++h)u[h]=(a+h)*l;return u}function Uie(e,t,n){return Wie(e=+e,t=+t,n=+n)[2]}function qie(e,t,n){n=+n;var r=(t=+t)<(e=+e),o=r?Uie(t,e,n):Uie(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function Gie(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Yie(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Kie(e){var t,n,r;function o(e,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(o<i){if(0!==t(r,r))return i;do{var a=o+i>>>1;n(e[a],r)<0?o=a+1:i=a}while(o<i)}return o}return 2!==e.length?(t=Gie,n=function(t,n){return Gie(e(t),n)},r=function(t,n){return e(t)-n}):(t=e===Gie||e===Yie?e:Jie,n=e,r=e),{left:o,center:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length,a=o(e,t,n,i-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(o<i){if(0!==t(r,r))return i;do{var a=o+i>>>1;n(e[a],r)<=0?o=a+1:i=a}while(o<i)}return o}}}function Jie(){return 0}var Xie=fs.mark($ie);function Qie(e){return null===e?NaN:+e}function $ie(e,t){var n,r,o,i,a,s,l;return fs.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:if(void 0!==t){c.next=21;break}n=_e(e),c.prev=2,n.s();case 4:if((r=n.n()).done){c.next=11;break}if(!(null!=(o=r.value)&&(o=+o)>=o)){c.next=9;break}return c.next=9,o;case 9:c.next=4;break;case 11:c.next=16;break;case 13:c.prev=13,c.t0=c.catch(2),n.e(c.t0);case 16:return c.prev=16,n.f(),c.finish(16);case 19:c.next=40;break;case 21:i=-1,a=_e(e),c.prev=23,a.s();case 25:if((s=a.n()).done){c.next=32;break}if(l=s.value,!(null!=(l=t(l,++i,e))&&(l=+l)>=l)){c.next=30;break}return c.next=30,l;case 30:c.next=25;break;case 32:c.next=37;break;case 34:c.prev=34,c.t1=c.catch(23),a.e(c.t1);case 37:return c.prev=37,a.f(),c.finish(37);case 40:case"end":return c.stop()}}),Xie,null,[[2,13,16,19],[23,34,37,40]])}var eae=Kie(Gie),tae=eae.right,nae=(eae.left,Kie(Qie).center,tae);function rae(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function oae(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function iae(){}var aae=.7,sae=1/aae,lae="\\s*([+-]?\\d+)\\s*",cae="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",uae="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",dae=/^#([0-9a-f]{3,8})$/,pae=new RegExp("^rgb\\(".concat(lae,",").concat(lae,",").concat(lae,"\\)$")),fae=new RegExp("^rgb\\(".concat(uae,",").concat(uae,",").concat(uae,"\\)$")),hae=new RegExp("^rgba\\(".concat(lae,",").concat(lae,",").concat(lae,",").concat(cae,"\\)$")),mae=new RegExp("^rgba\\(".concat(uae,",").concat(uae,",").concat(uae,",").concat(cae,"\\)$")),vae=new RegExp("^hsl\\(".concat(cae,",").concat(uae,",").concat(uae,"\\)$")),gae=new RegExp("^hsla\\(".concat(cae,",").concat(uae,",").concat(uae,",").concat(cae,"\\)$")),yae={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function bae(){return this.rgb().formatHex()}function xae(){return this.rgb().formatRgb()}function wae(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=dae.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Cae(t):3===n?new Zae(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?jae(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?jae(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=pae.exec(e))?new Zae(t[1],t[2],t[3],1):(t=fae.exec(e))?new Zae(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=hae.exec(e))?jae(t[1],t[2],t[3],t[4]):(t=mae.exec(e))?jae(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=vae.exec(e))?Mae(t[1],t[2]/100,t[3]/100,1):(t=gae.exec(e))?Mae(t[1],t[2]/100,t[3]/100,t[4]):yae.hasOwnProperty(e)?Cae(yae[e]):"transparent"===e?new Zae(NaN,NaN,NaN,0):null}function Cae(e){return new Zae(e>>16&255,e>>8&255,255&e,1)}function jae(e,t,n,r){return r<=0&&(e=t=n=NaN),new Zae(e,t,n,r)}function Sae(e){return e instanceof iae||(e=wae(e)),e?new Zae((e=e.rgb()).r,e.g,e.b,e.opacity):new Zae}function kae(e,t,n,r){return 1===arguments.length?Sae(e):new Zae(e,t,n,null==r?1:r)}function Zae(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Oae(){return"#".concat(Aae(this.r)).concat(Aae(this.g)).concat(Aae(this.b))}function Eae(){var e=Dae(this.opacity);return"".concat(1===e?"rgb(":"rgba(").concat(Pae(this.r),", ").concat(Pae(this.g),", ").concat(Pae(this.b)).concat(1===e?")":", ".concat(e,")"))}function Dae(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Pae(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Aae(e){return((e=Pae(e))<16?"0":"")+e.toString(16)}function Mae(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Iae(e,t,n,r)}function Tae(e){if(e instanceof Iae)return new Iae(e.h,e.s,e.l,e.opacity);if(e instanceof iae||(e=wae(e)),!e)return new Iae;if(e instanceof Iae)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new Iae(a,s,l,e.opacity)}function Iae(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Rae(e){return(e=(e||0)%360)<0?e+360:e}function Fae(e){return Math.max(0,Math.min(1,e||0))}function Bae(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function Lae(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}rae(iae,wae,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:bae,formatHex:bae,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Tae(this).formatHsl()},formatRgb:xae,toString:xae}),rae(Zae,kae,oae(iae,{brighter:function(e){return e=null==e?sae:Math.pow(sae,e),new Zae(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?aae:Math.pow(aae,e),new Zae(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},clamp:function(){return new Zae(Pae(this.r),Pae(this.g),Pae(this.b),Dae(this.opacity))},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Oae,formatHex:Oae,formatHex8:function(){return"#".concat(Aae(this.r)).concat(Aae(this.g)).concat(Aae(this.b)).concat(Aae(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:Eae,toString:Eae})),rae(Iae,(function(e,t,n,r){return 1===arguments.length?Tae(e):new Iae(e,t,n,null==r?1:r)}),oae(iae,{brighter:function(e){return e=null==e?sae:Math.pow(sae,e),new Iae(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?aae:Math.pow(aae,e),new Iae(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Zae(Bae(e>=240?e-240:e+120,o,r),Bae(e,o,r),Bae(e<120?e+240:e-120,o,r),this.opacity)},clamp:function(){return new Iae(Rae(this.h),Fae(this.s),Fae(this.l),Dae(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=Dae(this.opacity);return"".concat(1===e?"hsl(":"hsla(").concat(Rae(this.h),", ").concat(100*Fae(this.s),"%, ").concat(100*Fae(this.l),"%").concat(1===e?")":", ".concat(e,")"))}}));var Nae=function(e){return function(){return e}};function _ae(e,t){return function(n){return e+n*t}}function zae(e){return 1===(e=+e)?Hae:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Nae(isNaN(t)?n:t)}}function Hae(e,t){var n=t-e;return n?_ae(e,n):Nae(isNaN(e)?t:e)}var Wae=function e(t){var n=zae(t);function r(e,t){var r=n((e=kae(e)).r,(t=kae(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Hae(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Vae(e){return function(t){var n,r,o=t.length,i=new Array(o),a=new Array(o),s=new Array(o);for(n=0;n<o;++n)r=kae(t[n]),i[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return i=e(i),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=i(e),r.g=a(e),r.b=s(e),r+""}}}Vae((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],a=r>0?e[r-1]:2*o-i,s=r<t-1?e[r+2]:2*i-o;return Lae((n-r/t)*t,a,o,i,s)}})),Vae((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),o=e[(r+t-1)%t],i=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return Lae((n-r/t)*t,o,i,a,s)}}));function Uae(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=$ae(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}}function qae(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Gae(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Yae(e,t){var n,r={},o={};for(n in null!==e&&"object"===typeof e||(e={}),null!==t&&"object"===typeof t||(t={}),t)n in e?r[n]=$ae(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var Kae=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Jae=new RegExp(Kae.source,"g");function Xae(e,t){var n,r,o,i=Kae.lastIndex=Jae.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=Kae.exec(e))&&(r=Jae.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:Gae(n,r)})),i=Jae.lastIndex;return i<t.length&&(o=t.slice(i),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function Qae(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}}function $ae(e,t){var n,r=typeof t;return null==t||"boolean"===r?Nae(t):("number"===r?Gae:"string"===r?(n=wae(t))?(t=n,Wae):Xae:t instanceof wae?Wae:t instanceof Date?qae:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?Qae:Array.isArray(t)?Uae:"function"!==typeof t.valueOf&&"function"!==typeof t.toString||isNaN(t)?Yae:Gae)(e,t)}function ese(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function tse(e){return+e}var nse=[0,1];function rse(e){return e}function ose(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function ise(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=ose(o,r),i=n(a,i)):(r=ose(r,o),i=n(i,a)),function(e){return i(r(e))}}function ase(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=ose(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=nae(e,t,1,r)-1;return i[n](o[n](t))}}function sse(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function lse(){var e,t,n,r,o,i,a=nse,s=nse,l=$ae,c=rse;function u(){var e=Math.min(a.length,s.length);return c!==rse&&(c=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?ase:ise,o=i=null,d}function d(t){return null==t||isNaN(t=+t)?n:(o||(o=r(a.map(e),s,l)))(e(c(t)))}return d.invert=function(n){return c(t((i||(i=r(s,a.map(e),Gae)))(n)))},d.domain=function(e){return arguments.length?(a=Array.from(e,tse),u()):a.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),u()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=ese,u()},d.clamp=function(e){return arguments.length?(c=!!e||rse,u()):c!==rse},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}function cse(){return lse()(rse,rse)}var use,dse=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function pse(e){if(!(t=dse.exec(e)))throw new Error("invalid format: "+e);var t;return new fse({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function fse(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function hse(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function mse(e){return(e=hse(Math.abs(e)))?e[1]:NaN}function vse(e,t){var n=hse(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}pse.prototype=fse.prototype,fse.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var gse={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return vse(100*e,t)},r:vse,s:function(e,t){var n=hse(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(use=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+hse(e,Math.max(0,t+i-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function yse(e){return e}var bse,xse,wse,Cse=Array.prototype.map,jse=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Sse(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?yse:(t=Cse.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,s=t[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(e.substring(o-=s,o+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?yse:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Cse.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"\u2212":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=pse(e)).fill,n=e.align,d=e.sign,p=e.symbol,f=e.zero,h=e.width,m=e.comma,v=e.precision,g=e.trim,y=e.type;"n"===y?(m=!0,y="g"):gse[y]||(void 0===v&&(v=12),g=!0,y="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var b="$"===p?o:"#"===p&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",x="$"===p?i:/[%p]/.test(y)?l:"",w=gse[y],C=/[defgprs%]/.test(y);function j(e){var o,i,l,p=b,j=x;if("c"===y)j=w(e)+j,e="";else{var S=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:w(Math.abs(e),v),g&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),S&&0===+e&&"+"!==d&&(S=!1),p=(S?"("===d?d:c:"-"===d||"("===d?"":d)+p,j=("s"===y?jse[8+use/3]:"")+j+(S&&"("===d?")":""),C)for(o=-1,i=e.length;++o<i;)if(48>(l=e.charCodeAt(o))||l>57){j=(46===l?a+e.slice(o+1):e.slice(o))+j,e=e.slice(0,o);break}}m&&!f&&(e=r(e,1/0));var k=p.length+e.length+j.length,Z=k<h?new Array(h-k+1).join(t):"";switch(m&&f&&(e=r(Z+e,Z.length?h-j.length:1/0),Z=""),n){case"<":e=p+e+j+Z;break;case"=":e=p+Z+e+j;break;case"^":e=Z.slice(0,k=Z.length>>1)+p+e+j+Z.slice(k);break;default:e=Z+p+e+j}return s(e)}return v=void 0===v?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),j.toString=function(){return e+""},j}return{format:d,formatPrefix:function(e,t){var n=d(((e=pse(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(mse(t)/3))),o=Math.pow(10,-r),i=jse[8+r/3];return function(e){return n(o*e)+i}}}}function kse(e,t,n,r){var o,i=qie(e,t,n);switch((r=pse(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(mse(t)/3)))-mse(Math.abs(e)))}(i,a))||(r.precision=o),wse(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,mse(t)-mse(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-mse(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return xse(r)}function Zse(e){var t=e.domain;return e.ticks=function(e){var n=t();return Vie(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return kse(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,i=t(),a=0,s=i.length-1,l=i[a],c=i[s],u=10;for(c<l&&(o=l,l=c,c=o,o=a,a=s,s=o);u-- >0;){if((o=Uie(l,c,n))===r)return i[a]=l,i[s]=c,t(i);if(o>0)l=Math.floor(l/o)*o,c=Math.ceil(c/o)*o;else{if(!(o<0))break;l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}r=o}return e},e}function Ose(){var e=cse();return e.copy=function(){return sse(e,Ose())},vie.apply(e,arguments),Zse(e)}function Ese(e){var t;function n(e){return null==e||isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,tse),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return Ese(e).unknown(t)},e=arguments.length?Array.from(e,tse):[0,1],Zse(n)}function Dse(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e}function Pse(e){return Math.log(e)}function Ase(e){return Math.exp(e)}function Mse(e){return-Math.log(-e)}function Tse(e){return-Math.exp(-e)}function Ise(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Rse(e){return function(t,n){return-e(-t,n)}}function Fse(e){var t,n,r=e(Pse,Ase),o=r.domain,i=10;function a(){return t=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}(i),n=function(e){return 10===e?Ise:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}(i),o()[0]<0?(t=Rse(t),n=Rse(n),e(Mse,Tse)):e(Pse,Ase),r}return r.base=function(e){return arguments.length?(i=+e,a()):i},r.domain=function(e){return arguments.length?(o(e),a()):o()},r.ticks=function(e){var r=o(),a=r[0],s=r[r.length-1],l=s<a;if(l){var c=[s,a];a=c[0],s=c[1]}var u,d,p=t(a),f=t(s),h=null==e?10:+e,m=[];if(!(i%1)&&f-p<h){if(p=Math.floor(p),f=Math.ceil(f),a>0){for(;p<=f;++p)for(u=1;u<i;++u)if(!((d=p<0?u/n(-p):u*n(p))<a)){if(d>s)break;m.push(d)}}else for(;p<=f;++p)for(u=i-1;u>=1;--u)if(!((d=p>0?u/n(-p):u*n(p))<a)){if(d>s)break;m.push(d)}2*m.length<h&&(m=Vie(a,s,h))}else m=Vie(p,f,Math.min(f-p,h)).map(n);return l?m.reverse():m},r.tickFormat=function(e,o){if(null==e&&(e=10),null==o&&(o=10===i?"s":","),"function"!==typeof o&&(i%1||null!=(o=pse(o)).precision||(o.trim=!0),o=xse(o)),e===1/0)return o;var a=Math.max(1,i*e/r.ticks().length);return function(e){var r=e/n(Math.round(t(e)));return r*i<i-.5&&(r*=i),r<=a?o(e):""}},r.nice=function(){return o(Dse(o(),{floor:function(e){return n(Math.floor(t(e)))},ceil:function(e){return n(Math.ceil(t(e)))}}))},r}function Bse(){var e=Fse(lse()).domain([1,10]);return e.copy=function(){return sse(e,Bse()).base(e.base())},vie.apply(e,arguments),e}function Lse(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Nse(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function _se(e){var t=1,n=e(Lse(t),Nse(t));return n.constant=function(n){return arguments.length?e(Lse(t=+n),Nse(t)):t},Zse(n)}function zse(){var e=_se(lse());return e.copy=function(){return sse(e,zse()).constant(e.constant())},vie.apply(e,arguments)}function Hse(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Wse(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Vse(e){return e<0?-e*e:e*e}function Use(e){var t=e(rse,rse),n=1;function r(){return 1===n?e(rse,rse):.5===n?e(Wse,Vse):e(Hse(n),Hse(1/n))}return t.exponent=function(e){return arguments.length?(n=+e,r()):n},Zse(t)}function qse(){var e=Use(lse());return e.copy=function(){return sse(e,qse()).exponent(e.exponent())},vie.apply(e,arguments),e}function Gse(){return qse.apply(null,arguments).exponent(.5)}function Yse(e){return Math.sign(e)*e*e}function Kse(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Jse(){var e,t=cse(),n=[0,1],r=!1;function o(n){var o=Kse(t(n));return isNaN(o)?e:r?Math.round(o):o}return o.invert=function(e){return t.invert(Yse(e))},o.domain=function(e){return arguments.length?(t.domain(e),o):t.domain()},o.range=function(e){return arguments.length?(t.range((n=Array.from(e,tse)).map(Yse)),o):n.slice()},o.rangeRound=function(e){return o.range(e).round(!0)},o.round=function(e){return arguments.length?(r=!!e,o):r},o.clamp=function(e){return arguments.length?(t.clamp(e),o):t.clamp()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return Jse(t.domain(),n).round(r).clamp(t.clamp()).unknown(e)},vie.apply(o,arguments),Zse(o)}function Xse(e,t){var n;if(void 0===t){var r,o=_e(e);try{for(o.s();!(r=o.n()).done;){var i=r.value;null!=i&&(n<i||void 0===n&&i>=i)&&(n=i)}}catch(u){o.e(u)}finally{o.f()}}else{var a,s=-1,l=_e(e);try{for(l.s();!(a=l.n()).done;){var c=a.value;null!=(c=t(c,++s,e))&&(n<c||void 0===n&&c>=c)&&(n=c)}}catch(u){l.e(u)}finally{l.f()}}return n}function Qse(e,t){var n;if(void 0===t){var r,o=_e(e);try{for(o.s();!(r=o.n()).done;){var i=r.value;null!=i&&(n>i||void 0===n&&i>=i)&&(n=i)}}catch(u){o.e(u)}finally{o.f()}}else{var a,s=-1,l=_e(e);try{for(l.s();!(a=l.n()).done;){var c=a.value;null!=(c=t(c,++s,e))&&(n>c||void 0===n&&c>=c)&&(n=c)}}catch(u){l.e(u)}finally{l.f()}}return n}function $se(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gie;if(e===Gie)return ele;if("function"!==typeof e)throw new TypeError("compare is not a function");return function(t,n){var r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}function ele(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}function tle(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,o=arguments.length>4?arguments[4]:void 0;if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=void 0===o?ele:$se(o);r>n;){if(r-n>600){var i=r-n+1,a=t-n+1,s=Math.log(i),l=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*l*(i-l)/i)*(a-i/2<0?-1:1),u=Math.max(n,Math.floor(t-a*l/i+c)),d=Math.min(r,Math.floor(t+(i-a)*l/i+c));tle(e,t,u,d,o)}var p=e[t],f=n,h=r;for(nle(e,n,t),o(e[r],p)>0&&nle(e,n,r);f<h;){for(nle(e,f,h),++f,--h;o(e[f],p)<0;)++f;for(;o(e[h],p)>0;)--h}0===o(e[n],p)?nle(e,n,h):nle(e,++h,r),h<=t&&(n=h+1),t<=h&&(r=h-1)}return e}function nle(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function rle(e,t,n){if((r=(e=Float64Array.from($ie(e,n))).length)&&!isNaN(t=+t)){if(t<=0||r<2)return Qse(e);if(t>=1)return Xse(e);var r,o=(r-1)*t,i=Math.floor(o),a=Xse(tle(e,i).subarray(0,i+1));return a+(Qse(e.subarray(i+1))-a)*(o-i)}}function ole(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Qie;if((r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e),s=+n(e[i+1],i+1,e);return a+(s-a)*(o-i)}}function ile(){var e,t=[],n=[],r=[];function o(){var e=0,o=Math.max(1,n.length);for(r=new Array(o-1);++e<o;)r[e-1]=ole(t,e/o);return i}function i(t){return null==t||isNaN(t=+t)?e:n[nae(r,t)]}return i.invertExtent=function(e){var o=n.indexOf(e);return o<0?[NaN,NaN]:[o>0?r[o-1]:t[0],o<r.length?r[o]:t[t.length-1]]},i.domain=function(e){if(!arguments.length)return t.slice();t=[];var n,r=_e(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;null==i||isNaN(i=+i)||t.push(i)}}catch(a){r.e(a)}finally{r.f()}return t.sort(Gie),o()},i.range=function(e){return arguments.length?(n=Array.from(e),o()):n.slice()},i.unknown=function(t){return arguments.length?(e=t,i):e},i.quantiles=function(){return r.slice()},i.copy=function(){return ile().domain(t).range(n).unknown(e)},vie.apply(i,arguments)}function ale(){var e,t=0,n=1,r=1,o=[.5],i=[0,1];function a(t){return null!=t&&t<=t?i[nae(o,t,0,r)]:e}function s(){var e=-1;for(o=new Array(r);++e<r;)o[e]=((e+1)*n-(e-r)*t)/(r+1);return a}return a.domain=function(e){var r,o;return arguments.length?(r=e,o=(0,Le.Z)(r,2),t=o[0],n=o[1],t=+t,n=+n,s()):[t,n]},a.range=function(e){return arguments.length?(r=(i=Array.from(e)).length-1,s()):i.slice()},a.invertExtent=function(e){var a=i.indexOf(e);return a<0?[NaN,NaN]:a<1?[t,o[0]]:a>=r?[o[r-1],n]:[o[a-1],o[a]]},a.unknown=function(t){return arguments.length?(e=t,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return ale().domain([t,n]).range(i).unknown(e)},vie.apply(Zse(a),arguments)}function sle(){var e,t=[.5],n=[0,1],r=1;function o(o){return null!=o&&o<=o?n[nae(t,o,0,r)]:e}return o.domain=function(e){return arguments.length?(t=Array.from(e),r=Math.min(t.length,n.length-1),o):t.slice()},o.range=function(e){return arguments.length?(n=Array.from(e),r=Math.min(t.length,n.length-1),o):n.slice()},o.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return sle().domain(t).range(n).unknown(e)},vie.apply(o,arguments)}bse=Sse({thousands:",",grouping:[3],currency:["$",""]}),xse=bse.format,wse=bse.formatPrefix;var lle=1e3,cle=6e4,ule=36e5,dle=864e5,ple=6048e5,fle=2592e6,hle=31536e6,mle=new Date,vle=new Date;function gle(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=function(t){return e(t=new Date(+t)),t},o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},o.range=function(n,r,i){var a,s=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r)||!(i>0))return s;do{s.push(a=new Date(+n)),t(n,i),e(n)}while(a<n&&n<r);return s},o.filter=function(n){return gle((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(o.count=function(t,r){return mle.setTime(+t),vle.setTime(+r),e(mle),e(vle),Math.floor(n(mle,vle))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e===0}:function(t){return o.count(0,t)%e===0}):o:null}),o}var yle=gle((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));yle.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?gle((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):yle:null};yle.range;var ble=gle((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*lle)}),(function(e,t){return(t-e)/lle}),(function(e){return e.getUTCSeconds()})),xle=(ble.range,gle((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*lle)}),(function(e,t){e.setTime(+e+t*cle)}),(function(e,t){return(t-e)/cle}),(function(e){return e.getMinutes()}))),wle=(xle.range,gle((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*cle)}),(function(e,t){return(t-e)/cle}),(function(e){return e.getUTCMinutes()}))),Cle=(wle.range,gle((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*lle-e.getMinutes()*cle)}),(function(e,t){e.setTime(+e+t*ule)}),(function(e,t){return(t-e)/ule}),(function(e){return e.getHours()}))),jle=(Cle.range,gle((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*ule)}),(function(e,t){return(t-e)/ule}),(function(e){return e.getUTCHours()}))),Sle=(jle.range,gle((function(e){return e.setHours(0,0,0,0)}),(function(e,t){return e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*cle)/dle}),(function(e){return e.getDate()-1}))),kle=(Sle.range,gle((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/dle}),(function(e){return e.getUTCDate()-1}))),Zle=(kle.range,gle((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/dle}),(function(e){return Math.floor(e/dle)})));Zle.range;function Ole(e){return gle((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*cle)/ple}))}var Ele=Ole(0),Dle=Ole(1),Ple=Ole(2),Ale=Ole(3),Mle=Ole(4),Tle=Ole(5),Ile=Ole(6);Ele.range,Dle.range,Ple.range,Ale.range,Mle.range,Tle.range,Ile.range;function Rle(e){return gle((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/ple}))}var Fle=Rle(0),Ble=Rle(1),Lle=Rle(2),Nle=Rle(3),_le=Rle(4),zle=Rle(5),Hle=Rle(6),Wle=(Fle.range,Ble.range,Lle.range,Nle.range,_le.range,zle.range,Hle.range,gle((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}))),Vle=(Wle.range,gle((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}))),Ule=(Vle.range,gle((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()})));Ule.every=function(e){return isFinite(e=Math.floor(e))&&e>0?gle((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};Ule.range;var qle=gle((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));qle.every=function(e){return isFinite(e=Math.floor(e))&&e>0?gle((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};qle.range;function Gle(e,t,n,r,o,i){var a=[[ble,1,lle],[ble,5,5e3],[ble,15,15e3],[ble,30,3e4],[i,1,cle],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,ule],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,dle],[r,2,1728e5],[n,1,ple],[t,1,fle],[t,3,7776e6],[e,1,hle]];function s(t,n,r){var o=Math.abs(n-t)/r,i=Kie((function(e){return(0,Le.Z)(e,3)[2]})).right(a,o);if(i===a.length)return e.every(qie(t/hle,n/hle,r));if(0===i)return yle.every(Math.max(qie(t,n,r),1));var s=(0,Le.Z)(a[o/a[i-1][2]<a[i][2]/o?i-1:i],2),l=s[0],c=s[1];return l.every(c)}return[function(e,t,n){var r=t<e;if(r){var o=[t,e];e=o[0],t=o[1]}var i=n&&"function"===typeof n.range?n:s(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a},s]}var Yle=Gle(qle,Vle,Fle,Zle,jle,wle),Kle=(0,Le.Z)(Yle,2),Jle=Kle[0],Xle=Kle[1],Qle=Gle(Ule,Wle,Ele,Sle,Cle,xle),$le=(0,Le.Z)(Qle,2),ece=$le[0],tce=$le[1];function nce(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function rce(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function oce(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var ice,ace,sce,lce={"-":"",_:" ",0:"0"},cce=/^\s*\d+/,uce=/^%/,dce=/[\\^$*+?|[\]().{}]/g;function pce(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function fce(e){return e.replace(dce,"\\$&")}function hce(e){return new RegExp("^(?:"+e.map(fce).join("|")+")","i")}function mce(e){return new Map(e.map((function(e,t){return[e.toLowerCase(),t]})))}function vce(e,t,n){var r=cce.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function gce(e,t,n){var r=cce.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function yce(e,t,n){var r=cce.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function bce(e,t,n){var r=cce.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function xce(e,t,n){var r=cce.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function wce(e,t,n){var r=cce.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Cce(e,t,n){var r=cce.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function jce(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Sce(e,t,n){var r=cce.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function kce(e,t,n){var r=cce.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Zce(e,t,n){var r=cce.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Oce(e,t,n){var r=cce.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Ece(e,t,n){var r=cce.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Dce(e,t,n){var r=cce.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Pce(e,t,n){var r=cce.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Ace(e,t,n){var r=cce.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Mce(e,t,n){var r=cce.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Tce(e,t,n){var r=uce.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Ice(e,t,n){var r=cce.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Rce(e,t,n){var r=cce.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Fce(e,t){return pce(e.getDate(),t,2)}function Bce(e,t){return pce(e.getHours(),t,2)}function Lce(e,t){return pce(e.getHours()%12||12,t,2)}function Nce(e,t){return pce(1+Sle.count(Ule(e),e),t,3)}function _ce(e,t){return pce(e.getMilliseconds(),t,3)}function zce(e,t){return _ce(e,t)+"000"}function Hce(e,t){return pce(e.getMonth()+1,t,2)}function Wce(e,t){return pce(e.getMinutes(),t,2)}function Vce(e,t){return pce(e.getSeconds(),t,2)}function Uce(e){var t=e.getDay();return 0===t?7:t}function qce(e,t){return pce(Ele.count(Ule(e)-1,e),t,2)}function Gce(e){var t=e.getDay();return t>=4||0===t?Mle(e):Mle.ceil(e)}function Yce(e,t){return e=Gce(e),pce(Mle.count(Ule(e),e)+(4===Ule(e).getDay()),t,2)}function Kce(e){return e.getDay()}function Jce(e,t){return pce(Dle.count(Ule(e)-1,e),t,2)}function Xce(e,t){return pce(e.getFullYear()%100,t,2)}function Qce(e,t){return pce((e=Gce(e)).getFullYear()%100,t,2)}function $ce(e,t){return pce(e.getFullYear()%1e4,t,4)}function eue(e,t){var n=e.getDay();return pce((e=n>=4||0===n?Mle(e):Mle.ceil(e)).getFullYear()%1e4,t,4)}function tue(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+pce(t/60|0,"0",2)+pce(t%60,"0",2)}function nue(e,t){return pce(e.getUTCDate(),t,2)}function rue(e,t){return pce(e.getUTCHours(),t,2)}function oue(e,t){return pce(e.getUTCHours()%12||12,t,2)}function iue(e,t){return pce(1+kle.count(qle(e),e),t,3)}function aue(e,t){return pce(e.getUTCMilliseconds(),t,3)}function sue(e,t){return aue(e,t)+"000"}function lue(e,t){return pce(e.getUTCMonth()+1,t,2)}function cue(e,t){return pce(e.getUTCMinutes(),t,2)}function uue(e,t){return pce(e.getUTCSeconds(),t,2)}function due(e){var t=e.getUTCDay();return 0===t?7:t}function pue(e,t){return pce(Fle.count(qle(e)-1,e),t,2)}function fue(e){var t=e.getUTCDay();return t>=4||0===t?_le(e):_le.ceil(e)}function hue(e,t){return e=fue(e),pce(_le.count(qle(e),e)+(4===qle(e).getUTCDay()),t,2)}function mue(e){return e.getUTCDay()}function vue(e,t){return pce(Ble.count(qle(e)-1,e),t,2)}function gue(e,t){return pce(e.getUTCFullYear()%100,t,2)}function yue(e,t){return pce((e=fue(e)).getUTCFullYear()%100,t,2)}function bue(e,t){return pce(e.getUTCFullYear()%1e4,t,4)}function xue(e,t){var n=e.getUTCDay();return pce((e=n>=4||0===n?_le(e):_le.ceil(e)).getUTCFullYear()%1e4,t,4)}function wue(){return"+0000"}function Cue(){return"%"}function jue(e){return+e}function Sue(e){return Math.floor(+e/1e3)}function kue(e){return new Date(e)}function Zue(e){return e instanceof Date?+e:+new Date(+e)}function Oue(e,t,n,r,o,i,a,s,l,c){var u=cse(),d=u.invert,p=u.domain,f=c(".%L"),h=c(":%S"),m=c("%I:%M"),v=c("%I %p"),g=c("%a %d"),y=c("%b %d"),b=c("%B"),x=c("%Y");function w(e){return(l(e)<e?f:s(e)<e?h:a(e)<e?m:i(e)<e?v:r(e)<e?o(e)<e?g:y:n(e)<e?b:x)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?p(Array.from(e,Zue)):p().map(kue)},u.ticks=function(t){var n=p();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?w:c(t)},u.nice=function(e){var n=p();return e&&"function"===typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?p(Dse(n,e)):u},u.copy=function(){return sse(u,Oue(e,t,n,r,o,i,a,s,l,c))},u}function Eue(){return vie.apply(Oue(ece,tce,Ule,Wle,Ele,Sle,Cle,xle,ble,ace).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Due(){return vie.apply(Oue(Jle,Xle,qle,Vle,Fle,kle,jle,wle,ble,sce).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Pue(){var e,t,n,r,o,i=0,a=1,s=rse,l=!1;function c(t){return null==t||isNaN(t=+t)?o:s(0===n?.5:(t=(r(t)-e)*n,l?Math.max(0,Math.min(1,t)):t))}function u(e){return function(t){var n,r,o,i;return arguments.length?(n=t,o=(r=(0,Le.Z)(n,2))[0],i=r[1],s=e(o,i),c):[s(0),s(1)]}}return c.domain=function(o){var s,l;return arguments.length?(s=o,l=(0,Le.Z)(s,2),i=l[0],a=l[1],e=r(i=+i),t=r(a=+a),n=e===t?0:1/(t-e),c):[i,a]},c.clamp=function(e){return arguments.length?(l=!!e,c):l},c.interpolator=function(e){return arguments.length?(s=e,c):s},c.range=u($ae),c.rangeRound=u(ese),c.unknown=function(e){return arguments.length?(o=e,c):o},function(o){return r=o,e=o(i),t=o(a),n=e===t?0:1/(t-e),c}}function Aue(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Mue(){var e=Zse(Pue()(rse));return e.copy=function(){return Aue(e,Mue())},gie.apply(e,arguments)}function Tue(){var e=Fse(Pue()).domain([1,10]);return e.copy=function(){return Aue(e,Tue()).base(e.base())},gie.apply(e,arguments)}function Iue(){var e=_se(Pue());return e.copy=function(){return Aue(e,Iue()).constant(e.constant())},gie.apply(e,arguments)}function Rue(){var e=Use(Pue());return e.copy=function(){return Aue(e,Rue()).exponent(e.exponent())},gie.apply(e,arguments)}function Fue(){return Rue.apply(null,arguments).exponent(.5)}function Bue(){var e=[],t=rse;function n(n){if(null!=n&&!isNaN(n=+n))return t((nae(e,n,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];var r,o=_e(t);try{for(o.s();!(r=o.n()).done;){var i=r.value;null==i||isNaN(i=+i)||e.push(i)}}catch(a){o.e(a)}finally{o.f()}return e.sort(Gie),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.range=function(){return e.map((function(n,r){return t(r/(e.length-1))}))},n.quantiles=function(t){return Array.from({length:t+1},(function(n,r){return rle(e,r/t)}))},n.copy=function(){return Bue(t).domain(e)},gie.apply(n,arguments)}function Lue(e,t){void 0===t&&(t=e,e=$ae);for(var n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(o,o=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return i[t](e-t)}}function Nue(){var e,t,n,r,o,i,a,s=0,l=.5,c=1,u=1,d=rse,p=!1;function f(e){return isNaN(e=+e)?a:(e=.5+((e=+i(e))-t)*(u*e<u*t?r:o),d(p?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var n,r,o,i,a;return arguments.length?(n=t,o=(r=(0,Le.Z)(n,3))[0],i=r[1],a=r[2],d=Lue(e,[o,i,a]),f):[d(0),d(.5),d(1)]}}return f.domain=function(a){var d,p;return arguments.length?(d=a,p=(0,Le.Z)(d,3),s=p[0],l=p[1],c=p[2],e=i(s=+s),t=i(l=+l),n=i(c=+c),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),u=t<e?-1:1,f):[s,l,c]},f.clamp=function(e){return arguments.length?(p=!!e,f):p},f.interpolator=function(e){return arguments.length?(d=e,f):d},f.range=h($ae),f.rangeRound=h(ese),f.unknown=function(e){return arguments.length?(a=e,f):a},function(a){return i=a,e=a(s),t=a(l),n=a(c),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),u=t<e?-1:1,f}}function _ue(){var e=Zse(Nue()(rse));return e.copy=function(){return Aue(e,_ue())},gie.apply(e,arguments)}function zue(){var e=Fse(Nue()).domain([.1,1,10]);return e.copy=function(){return Aue(e,zue()).base(e.base())},gie.apply(e,arguments)}function Hue(){var e=_se(Nue());return e.copy=function(){return Aue(e,Hue()).constant(e.constant())},gie.apply(e,arguments)}function Wue(){var e=Use(Nue());return e.copy=function(){return Aue(e,Wue()).exponent(e.exponent())},gie.apply(e,arguments)}function Vue(){return Wue.apply(null,arguments).exponent(.5)}function Uue(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],s=a.length;i<o;++i)for(r=a,a=e[t[i]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function que(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Gue(e,t){return e[t]}function Yue(e){var t=[];return t.key=e,t}!function(e){ice=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=hce(o),u=mce(o),d=hce(i),p=mce(i),f=hce(a),h=mce(a),m=hce(s),v=mce(s),g=hce(l),y=mce(l),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:Fce,e:Fce,f:zce,g:Qce,G:eue,H:Bce,I:Lce,j:Nce,L:_ce,m:Hce,M:Wce,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:jue,s:Sue,S:Vce,u:Uce,U:qce,V:Yce,w:Kce,W:Jce,x:null,X:null,y:Xce,Y:$ce,Z:tue,"%":Cue},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:nue,e:nue,f:sue,g:yue,G:xue,H:rue,I:oue,j:iue,L:aue,m:lue,M:cue,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:jue,s:Sue,S:uue,u:due,U:pue,V:hue,w:mue,W:vue,x:null,X:null,y:gue,Y:bue,Z:wue,"%":Cue},w={a:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return S(e,t,n,r)},d:Zce,e:Zce,f:Mce,g:Cce,G:wce,H:Ece,I:Ece,j:Oce,L:Ace,m:kce,M:Dce,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:Sce,Q:Ice,s:Rce,S:Pce,u:gce,U:yce,V:bce,w:vce,W:xce,x:function(e,t,r){return S(e,n,t,r)},X:function(e,t,n){return S(e,r,t,n)},y:Cce,Y:wce,Z:jce,"%":Tce};function C(e,t){return function(n){var r,o,i,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(o=lce[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function j(e,t){return function(n){var r,o,i=oce(1900,void 0,1);if(S(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=rce(oce(i.y,0,1))).getUTCDay(),r=o>4||0===o?Ble.ceil(r):Ble(r),r=kle.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=nce(oce(i.y,0,1))).getDay(),r=o>4||0===o?Dle.ceil(r):Dle(r),r=Sle.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?rce(oce(i.y,0,1)).getUTCDay():nce(oce(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,rce(i)):nce(i)}}function S(e,t,n,r){for(var o,i,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=w[o in lce?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=C(n,b),b.X=C(r,b),b.c=C(t,b),x.x=C(n,x),x.X=C(r,x),x.c=C(t,x),{format:function(e){var t=C(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=j(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=C(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=j(e+="",!0);return t.toString=function(){return e},t}}}(e),ace=ice.format,ice.parse,sce=ice.utcFormat,ice.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Kue=n(14469),Jue=n.n(Kue);function Xue(e){return function(e){if(Array.isArray(e))return Que(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return Que(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Que(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Que(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var $ue=function(e){return e},ede={"@@functional/placeholder":!0},tde=function(e){return e===ede},nde=function(e){return function t(){return 0===arguments.length||1===arguments.length&&tde(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},rde=function e(t,n){return 1===t?n:nde((function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o.filter((function(e){return e!==ede})).length;return a>=t?n.apply(void 0,o):e(t-a,nde((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=o.map((function(e){return tde(e)?t.shift():e}));return n.apply(void 0,Xue(i).concat(t))})))}))},ode=function(e){return rde(e.length,e)},ide=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},ade=ode((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)})),sde=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return $ue;var r=t.reverse(),o=r[0],i=r.slice(1);return function(){return i.reduce((function(e,t){return t(e)}),o.apply(void 0,arguments))}},lde=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},cde=function(e){var t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t&&o.every((function(e,n){return e===t[n]}))?n:(t=o,n=e.apply(void 0,o))}};var ude=ode((function(e,t,n){var r=+e;return r+n*(+t-r)})),dde=ode((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),pde=ode((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))})),fde={rangeStep:function(e,t,n){for(var r=new(Jue())(e),o=0,i=[];r.lt(t)&&o<1e5;)i.push(r.toNumber()),r=r.add(n),o++;return i},getDigitCount:function(e){return 0===e?1:Math.floor(new(Jue())(e).abs().log(10).toNumber())+1},interpolateNumber:ude,uninterpolateNumber:dde,uninterpolateTruncation:pde};function hde(e){return function(e){if(Array.isArray(e))return gde(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||vde(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mde(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){o=!0,i=l}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||vde(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vde(e,t){if(e){if("string"===typeof e)return gde(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gde(e,t):void 0}}function gde(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yde(e){var t=mde(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function bde(e,t,n){if(e.lte(0))return new(Jue())(0);var r=fde.getDigitCount(e.toNumber()),o=new(Jue())(10).pow(r),i=e.div(o),a=1!==r?.05:.1,s=new(Jue())(Math.ceil(i.div(a).toNumber())).add(n).mul(a).mul(o);return t?s:new(Jue())(Math.ceil(s))}function xde(e,t,n){var r=1,o=new(Jue())(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new(Jue())(10).pow(fde.getDigitCount(e)-1),o=new(Jue())(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new(Jue())(Math.floor(e)))}else 0===e?o=new(Jue())(Math.floor((t-1)/2)):n||(o=new(Jue())(Math.floor(e)));var a=Math.floor((t-1)/2);return sde(ade((function(e){return o.add(new(Jue())(e-a).mul(r)).toNumber()})),ide)(0,t)}function wde(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new(Jue())(0),tickMin:new(Jue())(0),tickMax:new(Jue())(0)};var i,a=bde(new(Jue())(t).sub(e).div(n-1),r,o);i=e<=0&&t>=0?new(Jue())(0):(i=new(Jue())(e).add(t).div(2)).sub(new(Jue())(i).mod(a));var s=Math.ceil(i.sub(e).div(a).toNumber()),l=Math.ceil(new(Jue())(t).sub(i).div(a).toNumber()),c=s+l+1;return c>n?wde(e,t,n,r,o+1):(c<n&&(l=t>0?l+(n-c):l,s=t>0?s:s+(n-c)),{step:a,tickMin:i.sub(new(Jue())(s).mul(a)),tickMax:i.add(new(Jue())(l).mul(a))})}var Cde=cde((function(e){var t=mde(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),s=yde([n,r]),l=mde(s,2),c=l[0],u=l[1];if(c===-1/0||u===1/0){var d=u===1/0?[c].concat(hde(ide(0,o-1).map((function(){return 1/0})))):[].concat(hde(ide(0,o-1).map((function(){return-1/0}))),[u]);return n>r?lde(d):d}if(c===u)return xde(c,o,i);var p=wde(c,u,a,i),f=p.step,h=p.tickMin,m=p.tickMax,v=fde.rangeStep(h,m.add(new(Jue())(.1).mul(f)),f);return n>r?lde(v):v})),jde=(cde((function(e){var t=mde(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),s=yde([n,r]),l=mde(s,2),c=l[0],u=l[1];if(c===-1/0||u===1/0)return[n,r];if(c===u)return xde(c,o,i);var d=bde(new(Jue())(u).sub(c).div(a-1),i,0),p=sde(ade((function(e){return new(Jue())(c).add(new(Jue())(e).mul(d)).toNumber()})),ide),f=p(0,a).filter((function(e){return e>=c&&e<=u}));return n>r?lde(f):f})),cde((function(e,t){var n=mde(e,2),r=n[0],o=n[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=yde([r,o]),s=mde(a,2),l=s[0],c=s[1];if(l===-1/0||c===1/0)return[r,o];if(l===c)return[l];var u=Math.max(t,2),d=bde(new(Jue())(c).sub(l).div(u-1),i,0),p=[].concat(hde(fde.rangeStep(new(Jue())(l),new(Jue())(c).sub(new(Jue())(.99).mul(d)),d)),[c]);return r>o?lde(p):p}))),Sde=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function kde(){return kde=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kde.apply(this,arguments)}function Zde(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return Ode(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ode(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ode(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ede(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Dde(e){var t=e.offset,n=e.layout,r=e.width,i=e.dataKey,a=e.data,s=e.dataPointFormatter,l=e.xAxis,c=e.yAxis,u=Ede(e,Sde),d=C8(u),p=a.map((function(e,a){var u=s(e,i),p=u.x,f=u.y,h=u.value,m=u.errorVal;if(!m)return null;var v,g,y=[];if(Array.isArray(m)){var b=Zde(m,2);v=b[0],g=b[1]}else v=g=m;if("vertical"===n){var x=l.scale,w=f+t,C=w+r,j=w-r,S=x(h-v),k=x(h+g);y.push({x1:k,y1:C,x2:k,y2:j}),y.push({x1:S,y1:w,x2:k,y2:w}),y.push({x1:S,y1:C,x2:S,y2:j})}else if("horizontal"===n){var Z=c.scale,O=p+t,E=O-r,D=O+r,P=Z(h-v),A=Z(h+g);y.push({x1:E,y1:A,x2:D,y2:A}),y.push({x1:O,y1:P,x2:O,y2:A}),y.push({x1:E,y1:P,x2:D,y2:P})}return o.createElement(T8,kde({className:"recharts-errorBar",key:"bar-".concat(a)},d),y.map((function(e,t){return o.createElement("line",kde({},e,{key:"line-".concat(t)}))})))}));return o.createElement(T8,{className:"recharts-errorBars"},p)}function Pde(e){return Pde="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pde(e)}function Ade(e){return function(e){if(Array.isArray(e))return Mde(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return Mde(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mde(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mde(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Tde(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 Ide(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tde(Object(n),!0).forEach((function(t){Rde(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tde(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rde(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Pde(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Pde(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Pde(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fde(e,t,n){return J9()(e)||J9()(t)?n:k9(t)?f9()(e,t,n):H9()(t)?t(e):n}function Bde(e,t,n,r){var o=Nie()(e,(function(e){return Fde(e,t)}));if("number"===n){var i=o.filter((function(e){return S9(e)||parseFloat(e)}));return i.length?[Bie()(i),Rie()(i)]:[1/0,-1/0]}return(r?o.filter((function(e){return!J9()(e)})):o).map((function(e){return k9(e)||e instanceof Date?e:""}))}Dde.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},Dde.displayName="ErrorBar";var Lde=function(e){var t,n=e.type.displayName,r=e.props,o=r.stroke,i=r.fill;switch(n){case"Line":t=o;break;case"Area":case"Radar":t=o&&"none"!==o?o:i;break;default:t=i}return t},Nde=function(e){var t,n=e.children,r=e.formattedGraphicalItems,o=e.legendWidth,i=e.legendContent,a=y8(n,gne);return a?(t=a.props&&a.props.payload?a.props&&a.props.payload:"children"===i?(r||[]).reduce((function(e,t){var n=t.item,r=t.props,o=r.sectors||r.data||[];return e.concat(o.map((function(e){return{type:a.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}})))}),[]):(r||[]).map((function(e){var t=e.item,n=t.props,r=n.dataKey,o=n.name,i=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||i||"square",color:Lde(t),value:o||r,payload:t.props}})),Ide(Ide(Ide({},a.props),gne.getWithHeight(a,o)),{},{payload:t,item:a})):null},_de=function(e,t,n,r,o){var i=g8(t.props.children,Dde).filter((function(e){return function(e,t,n){return!!J9()(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===n?"xAxis"===t:"y"!==n||"yAxis"===t)}(r,o,e.props.direction)}));if(i&&i.length){var a=i.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=Fde(t,n,0),o=m9()(r)?[Bie()(r),Rie()(r)]:[r,r],i=a.reduce((function(e,n){var r=Fde(t,n,0),i=o[0]-Math.abs(m9()(r)?r[0]:r),a=o[1]+Math.abs(m9()(r)?r[1]:r);return[Math.min(i,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]}),[1/0,-1/0])}return null},zde=function(e,t,n,r,o){var i=t.map((function(t){var i=t.props.dataKey;return"number"===n&&i&&_de(e,t,i,r)||Bde(e,i,n,o)}));if("number"===n)return i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var a={};return i.reduce((function(e,t){for(var n=0,r=t.length;n<r;n++)a[t[n]]||(a[t[n]]=!0,e.push(t[n]));return e}),[])},Hde=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},Wde=function(e,t,n){var r,o,i=e.map((function(e){return e.coordinate===t&&(r=!0),e.coordinate===n&&(o=!0),e.coordinate}));return r||i.push(t),o||i.push(n),i},Vde=function(e,t,n){if(!e)return null;var r=e.scale,o=e.duplicateDomain,i=e.type,a=e.range,s="scaleBand"===e.realScaleType?r.bandwidth()/2:2,l=(t||n)&&"category"===i&&r.bandwidth?r.bandwidth()/s:0;return l="angleAxis"===e.axisType?2*C9(a[0]-a[1])*l:l,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=o?o.indexOf(e):e;return{coordinate:r(t)+l,value:e,offset:l}})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:r(e)+l,value:e,index:t,offset:l}})):r.ticks&&!n?r.ticks(e.tickCount).map((function(e){return{coordinate:r(e)+l,value:e,offset:l}})):r.domain().map((function(e,t){return{coordinate:r(e)+l,value:o?o[e]:e,index:t,offset:l}}))},Ude=function(e,t,n){var r;return H9()(n)?r=n:H9()(t)&&(r=t),H9()(e)||r?function(t,n,o,i){H9()(e)&&e(t,n,o,i),H9()(r)&&r(t,n,o,i)}:null},qde=1e-4,Gde={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0,a=0;a<t;++a){var s=g9()(e[a][n][1])?e[a][n][0]:e[a][n][1];s>=0?(e[a][n][0]=o,e[a][n][1]=o+s,o=e[a][n][1]):(e[a][n][0]=i,e[a][n][1]=i+s,i=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}Uue(e,t)}},none:Uue,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;r<i;++r){for(var a=0,s=0;a<n;++a)s+=e[a][r][1]||0;o[r][1]+=o[r][0]=-s/2}Uue(e,t)}},wiggle:function(e,t){if((o=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a<r;++a){for(var s=0,l=0,c=0;s<o;++s){for(var u=e[t[s]],d=u[a][1]||0,p=(d-(u[a-1][1]||0))/2,f=0;f<s;++f){var h=e[t[f]];p+=(h[a][1]||0)-(h[a-1][1]||0)}l+=d,c+=p*d}n[a-1][1]+=n[a-1][0]=i,l&&(i-=c/l)}n[a-1][1]+=n[a-1][0]=i,Uue(e,t)}},positive:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0;i<t;++i){var a=g9()(e[i][n][1])?e[i][n][0]:e[i][n][1];a>=0?(e[i][n][0]=o,e[i][n][1]=o+a,o=e[i][n][1]):(e[i][n][0]=0,e[i][n][1]=0)}}},Yde=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),o=function(){var e=wte([]),t=que,n=Uue,r=Gue;function o(o){var i,a,s,l=Array.from(e.apply(this,arguments),Yue),c=l.length,u=-1,d=_e(o);try{for(d.s();!(s=d.n()).done;){var p=s.value;for(i=0,++u;i<c;++i)(l[i][u]=[0,+r(p,l[i].key,u,o)]).data=p}}catch(f){d.e(f)}finally{d.f()}for(i=0,a=Fne(t(l));i<c;++i)l[a[i]].index=i;return n(l,a),l}return o.keys=function(t){return arguments.length?(e="function"===typeof t?t:wte(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"===typeof e?e:wte(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?que:"function"===typeof e?e:wte(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?Uue:e,o):n},o}().keys(r).value((function(e,t){return+Fde(e,t,0)})).order(que).offset(Gde[n]);return o(e)},Kde=function(e){var t=e.axis,n=e.ticks,r=e.bandSize,o=e.entry,i=e.index,a=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!J9()(o[t.dataKey])){var s=A9(n,"value",o[t.dataKey]);if(s)return s.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var l=Fde(o,J9()(a)?t.dataKey:a);return J9()(l)?null:t.scale(l)},Jde=function(e){var t=e.axis,n=e.ticks,r=e.offset,o=e.bandSize,i=e.entry,a=e.index;if("category"===t.type)return n[a]?n[a].coordinate+r:null;var s=Fde(i,t.dataKey,t.domain[a]);return J9()(s)?null:t.scale(s)-o/2+r},Xde=function(e,t,n){return Object.keys(e).reduce((function(r,o){var i=e[o].stackedData.reduce((function(e,r){var o=r.slice(t,n+1).reduce((function(e,t){return[Bie()(t.concat([e[0]]).filter(S9)),Rie()(t.concat([e[1]]).filter(S9))]}),[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],r[0]),Math.max(i[1],r[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},Qde=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,$de=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,epe=function(e,t,n){if(H9()(e))return e(t,n);if(!m9()(e))return t;var r=[];if(S9(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(Qde.test(e[0])){var o=+Qde.exec(e[0])[1];r[0]=t[0]-o}else H9()(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(S9(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if($de.test(e[1])){var i=+$de.exec(e[1])[1];r[1]=t[1]+i}else H9()(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},tpe=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var o=q9()(t,(function(e){return e.coordinate})),i=1/0,a=1,s=o.length;a<s;a++){var l=o[a],c=o[a-1];i=Math.min((l.coordinate||0)-(c.coordinate||0),i)}return i===1/0?0:i}return n?void 0:0},npe=function(e,t,n){return e&&e.length?Tie()(e,f9()(n,"type.defaultProps.domain"))?t:e:t},rpe=function(e,t){var n=e.props,r=n.dataKey,o=n.name,i=n.unit,a=n.formatter,s=n.tooltipType,l=n.chartType;return Ide(Ide({},C8(e)),{},{dataKey:r,unit:i,formatter:a,name:o||r,color:Lde(e),value:Fde(t,r),type:s,payload:t,chartType:l})};function ope(e){return ope="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ope(e)}function ipe(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 ape(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ipe(Object(n),!0).forEach((function(t){spe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ipe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function spe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ope(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ope(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ope(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lpe=["Webkit","Moz","O","ms"];function cpe(e){return cpe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cpe(e)}function upe(){return upe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},upe.apply(this,arguments)}function dpe(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 ppe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dpe(Object(n),!0).forEach((function(t){bpe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dpe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fpe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xpe(r.key),r)}}function hpe(e,t){return hpe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hpe(e,t)}function mpe(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ype(e);if(t){var o=ype(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return vpe(this,n)}}function vpe(e,t){if(t&&("object"===cpe(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return gpe(e)}function gpe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ype(e){return ype=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ype(e)}function bpe(e,t,n){return(t=xpe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xpe(e){var t=function(e,t){if("object"!==cpe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==cpe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===cpe(t)?t:String(t)}var wpe=function(e){return e.changedTouches&&!!e.changedTouches.length},Cpe=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hpe(e,t)}(a,e);var t,n,r,i=mpe(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),bpe(gpe(t=i.call(this,e)),"handleDrag",(function(e){t.leaveTimer&&(clearTimeout(t.leaveTimer),t.leaveTimer=null),t.state.isTravellerMoving?t.handleTravellerMove(e):t.state.isSlideMoving&&t.handleSlideDrag(e)})),bpe(gpe(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])})),bpe(gpe(t),"handleDragEnd",(function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1}),t.detachDragEndListener()})),bpe(gpe(t),"handleLeaveWrapper",(function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))})),bpe(gpe(t),"handleEnterSlideOrTraveller",(function(){t.setState({isTextActive:!0})})),bpe(gpe(t),"handleLeaveSlideOrTraveller",(function(){t.setState({isTextActive:!1})})),bpe(gpe(t),"handleSlideDragStart",(function(e){var n=wpe(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()})),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(gpe(t),"startX"),endX:t.handleTravellerDragStart.bind(gpe(t),"endX")},t.state={},t}return t=a,n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,r=this.state.scaleValues,o=this.props,i=o.gap,s=o.data.length-1,l=Math.min(t,n),c=Math.max(t,n),u=a.getIndexInRange(r,l),d=a.getIndexInRange(r,c);return{startIndex:u-u%i,endIndex:d===s?s:d-d%i}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,i=Fde(n[e],o,e);return H9()(r)?r(i,e):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,i=this.props,a=i.x,s=i.width,l=i.travellerWidth,c=i.startIndex,u=i.endIndex,d=i.onChange,p=e.pageX-n;p>0?p=Math.min(p,a+s-l-o,a+s-l-r):p<0&&(p=Math.max(p,a-r,a-o));var f=this.getIndex({startX:r+p,endX:o+p});f.startIndex===c&&f.endIndex===u||!d||d(f),this.setState({startX:r+p,endX:o+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=wpe(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,r=n.brushMoveStartX,o=n.movingTravellerId,i=n.endX,a=n.startX,s=this.state[o],l=this.props,c=l.x,u=l.width,d=l.travellerWidth,p=l.onChange,f=l.gap,h=l.data,m={startX:this.state.startX,endX:this.state.endX},v=e.pageX-r;v>0?v=Math.min(v,c+u-d-s):v<0&&(v=Math.max(v,c-s)),m[o]=s+v;var g=this.getIndex(m),y=g.startIndex,b=g.endIndex;this.setState((bpe(t={},o,s+v),bpe(t,"brushMoveStartX",e.pageX),t),(function(){p&&function(){var e=h.length-1;return"startX"===o&&(i>a?y%f===0:b%f===0)||i<a&&b===e||"endX"===o&&(i>a?b%f===0:y%f===0)||i>a&&b===e}()&&p(g)}))}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,a=e.fill,s=e.stroke;return o.createElement("rect",{stroke:s,fill:a,x:t,y:n,width:r,height:i})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,a=e.data,s=e.children,l=e.padding,c=o.Children.only(s);return c?o.cloneElement(c,{x:t,y:n,width:r,height:i,margin:l,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,t){var n=this.props,r=n.y,i=n.travellerWidth,s=n.height,l=n.traveller,c=Math.max(e,this.props.x),u=ppe(ppe({},C8(this.props)),{},{x:c,y:r,width:i,height:s});return o.createElement(T8,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],style:{cursor:"col-resize"}},a.renderTraveller(l,u))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,i=n.height,a=n.stroke,s=n.travellerWidth,l=Math.min(e,t)+s,c=Math.max(Math.abs(t-e)-s,0);return o.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:l,y:r,width:c,height:i})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,i=e.height,a=e.travellerWidth,s=e.stroke,l=this.state,c=l.startX,u=l.endX,d={pointerEvents:"none",fill:s};return o.createElement(T8,{className:"recharts-brush-texts"},o.createElement(zoe,upe({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,u)-5,y:r+i/2},d),this.getTextOfTick(t)),o.createElement(zoe,upe({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,u)+a+5,y:r+i/2},d),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,i=e.x,a=e.y,s=e.width,l=e.height,c=e.alwaysShowText,u=this.state,d=u.startX,p=u.endX,f=u.isTextActive,h=u.isSlideMoving,m=u.isTravellerMoving;if(!t||!t.length||!S9(i)||!S9(a)||!S9(s)||!S9(l)||s<=0||l<=0)return null;var v=u6()("recharts-brush",n),g=1===o.Children.count(r),y=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=lpe.reduce((function(e,r){return ape(ape({},e),{},spe({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return o.createElement(T8,{className:v,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:y},this.renderBackground(),g&&this.renderPanorama(),this.renderSlide(d,p),this.renderTravellerLayer(d,"startX"),this.renderTravellerLayer(p,"endX"),(f||h||m||c)&&this.renderText())}}],r=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=e.stroke,s=Math.floor(n+i/2)-1;return o.createElement(o.Fragment,null,o.createElement("rect",{x:t,y:n,width:r,height:i,fill:a,stroke:"none"}),o.createElement("line",{x1:t+1,y1:s,x2:t+r-1,y2:s,fill:"none",stroke:"#fff"}),o.createElement("line",{x1:t+1,y1:s+2,x2:t+r-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):H9()(e)?e(t):a.renderDefaultTraveller(t)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.x,i=e.travellerWidth,a=e.updateId,s=e.startIndex,l=e.endIndex;if(n!==t.prevData||a!==t.prevUpdateId)return ppe({prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r},n&&n.length?function(e){var t=e.data,n=e.startIndex,r=e.endIndex,o=e.x,i=e.width,a=e.travellerWidth;if(!t||!t.length)return{};var s=t.length,l=Aie().domain(Y9()(0,s)).range([o,o+i-a]),c=l.domain().map((function(e){return l(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:l(n),endX:l(r),scale:l,scaleValues:c}}({data:n,width:r,x:o,travellerWidth:i,startIndex:s,endIndex:l}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||o!==t.prevX||i!==t.prevTravellerWidth)){t.scale.range([o,o+r-i]);var c=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:c}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var o=Math.floor((n+r)/2);e[o]>t?r=o:n=o}return t>=e[r]?r:n}}],n&&fpe(t.prototype,n),r&&fpe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.PureComponent);bpe(Cpe,"displayName","Brush"),bpe(Cpe,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var jpe=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},Spe=n(17483),kpe=n.n(Spe),Zpe=function(e){return null};Zpe.displayName="Cell";var Ope=n(86217),Epe=n.n(Ope);function Dpe(e){return Dpe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dpe(e)}var Ppe=["data","valueAccessor","dataKey","clockWise","id","textBreakAll"];function Ape(e){return function(e){if(Array.isArray(e))return Mpe(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return Mpe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mpe(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mpe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Tpe(){return Tpe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tpe.apply(this,arguments)}function Ipe(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 Rpe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ipe(Object(n),!0).forEach((function(t){Fpe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ipe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fpe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Dpe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Dpe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Dpe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bpe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Lpe={valueAccessor:function(e){return m9()(e.value)?Epe()(e.value):e.value}};function Npe(e){var t=e.data,n=e.valueAccessor,r=e.dataKey,i=e.clockWise,a=e.id,s=e.textBreakAll,l=Bpe(e,Ppe);return t&&t.length?o.createElement(T8,{className:"recharts-label-list"},t.map((function(e,t){var c=J9()(r)?n(e,t):Fde(e&&e.payload,r),u=J9()(a)?{}:{id:"".concat(a,"-").concat(t)};return o.createElement(Joe,Tpe({},C8(e,!0),l,u,{parentViewBox:e.parentViewBox,index:t,value:c,textBreakAll:s,viewBox:Joe.parseViewBox(J9()(i)?e:Rpe(Rpe({},e),{},{clockWise:i})),key:"label-".concat(t)}))}))):null}function _pe(e,t){return e?!0===e?o.createElement(Npe,{key:"labelList-implicit",data:t}):o.isValidElement(e)||H9()(e)?o.createElement(Npe,{key:"labelList-implicit",data:t,content:e}):e8()(e)?o.createElement(Npe,Tpe({data:t},e,{key:"labelList-implicit"})):null:null}Npe.displayName="LabelList",Npe.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=g8(r,Npe).map((function(e,n){return(0,o.cloneElement)(e,{data:t,key:"labelList-".concat(n)})}));if(!n)return i;var a=_pe(e.label,t);return[a].concat(Ape(i))},Npe.defaultProps=Lpe;var zpe=["value","background"];function Hpe(e){return Hpe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hpe(e)}function Wpe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Vpe(){return Vpe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vpe.apply(this,arguments)}function Upe(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 qpe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Upe(Object(n),!0).forEach((function(t){efe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Upe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gpe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ype(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tfe(r.key),r)}}function Kpe(e,t){return Kpe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Kpe(e,t)}function Jpe(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=$pe(e);if(t){var o=$pe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xpe(this,n)}}function Xpe(e,t){if(t&&("object"===Hpe(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Qpe(e)}function Qpe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $pe(e){return $pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$pe(e)}function efe(e,t,n){return(t=tfe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tfe(e){var t=function(e,t){if("object"!==Hpe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Hpe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Hpe(t)?t:String(t)}var nfe=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kpe(e,t)}(a,e);var t,n,r,i=Jpe(a);function a(){var e;Gpe(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return efe(Qpe(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),efe(Qpe(e),"id",O9("recharts-bar-")),efe(Qpe(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),efe(Qpe(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()})),e}return t=a,n=[{key:"renderRectanglesStatically",value:function(e){var t=this,n=this.props.shape,r=C8(this.props);return e&&e.map((function(e,i){var s=qpe(qpe(qpe({},r),e),{},{index:i});return o.createElement(T8,Vpe({className:"recharts-bar-rectangle"},l8(t.props,e,i),{key:"rectangle-".concat(i),role:"img"}),a.renderRectangle(n,s))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,t=this.props,n=t.data,r=t.layout,i=t.isAnimationActive,a=t.animationBegin,s=t.animationDuration,l=t.animationEasing,c=t.animationId,u=this.state.prevData;return o.createElement(iee,{begin:a,duration:s,isActive:i,easing:l,from:{t:0},to:{t:1},key:"bar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var i=t.t,a=n.map((function(e,t){var n=u&&u[t];if(n){var o=P9(n.x,e.x),a=P9(n.y,e.y),s=P9(n.width,e.width),l=P9(n.height,e.height);return qpe(qpe({},e),{},{x:o(i),y:a(i),width:s(i),height:l(i)})}if("horizontal"===r){var c=P9(0,e.height)(i);return qpe(qpe({},e),{},{y:e.y+e.height-c,height:c})}var d=P9(0,e.width)(i);return qpe(qpe({},e),{},{width:d})}));return o.createElement(T8,null,e.renderRectanglesStatically(a))}))}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&Tie()(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props.data,n=C8(this.props.background);return t.map((function(t,r){t.value;var o=t.background,i=Wpe(t,zpe);if(!o)return null;var s=qpe(qpe(qpe(qpe(qpe({},i),{},{fill:"#eee"},o),n),l8(e.props,t,r)),{},{index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return a.renderRectangle(e.props.background,s)}))}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,t=e.data,n=e.xAxis,r=e.yAxis,i=e.layout,a=g8(e.children,Dde);if(!a)return null;var s="vertical"===i?t[0].height/2:t[0].width/2;function l(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:Fde(e,t)}}return a.map((function(e,a){return o.cloneElement(e,{key:"error-bar-".concat(a),data:t,xAxis:n,yAxis:r,layout:i,offset:s,dataPointFormatter:l})}))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,i=e.xAxis,a=e.yAxis,s=e.left,l=e.top,c=e.width,u=e.height,d=e.isAnimationActive,p=e.background,f=e.id;if(t||!n||!n.length)return null;var h=this.state.isAnimationFinished,m=u6()("recharts-bar",r),v=i&&i.allowDataOverflow||a&&a.allowDataOverflow,g=J9()(f)?this.id:f;return o.createElement(T8,{className:m},v?o.createElement("defs",null,o.createElement("clipPath",{id:"clipPath-".concat(g)},o.createElement("rect",{x:s,y:l,width:c,height:u}))):null,o.createElement(T8,{className:"recharts-bar-rectangles",clipPath:v?"url(#clipPath-".concat(g,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(),(!d||h)&&Npe.renderCallByParent(this.props,n))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}},{key:"renderRectangle",value:function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):H9()(e)?e(t):o.createElement(ioe,t)}}],n&&Ype(t.prototype,n),r&&Ype(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.PureComponent);function rfe(e){return rfe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rfe(e)}function ofe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lfe(r.key),r)}}function ife(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 afe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ife(Object(n),!0).forEach((function(t){sfe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ife(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sfe(e,t,n){return(t=lfe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lfe(e){var t=function(e,t){if("object"!==rfe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==rfe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===rfe(t)?t:String(t)}efe(nfe,"displayName","Bar"),efe(nfe,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",isAnimationActive:!wee.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),efe(nfe,"getComposedData",(function(e){var t=e.props,n=e.item,r=e.barPosition,o=e.bandSize,i=e.xAxis,a=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,c=e.stackedData,u=e.dataStartIndex,d=e.displayedData,p=e.offset,f=function(e,t){if(!e)return null;for(var n=0,r=e.length;n<r;n++)if(e[n].item===t)return e[n].position;return null}(r,n);if(!f)return null;var h=t.layout,m=n.props,v=m.dataKey,g=m.children,y=m.minPointSize,b="horizontal"===h?a:i,x=c?b.scale.domain():null,w=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return r<=0&&o>=0?0:o<0?o:r}return n[0]}({numericAxis:b}),C=g8(g,Zpe),j=d.map((function(e,t){var r,d,p,m,g,b;if(c?r=function(e,t){if(!t||2!==t.length||!S9(t[0])||!S9(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!S9(e[0])||e[0]<n)&&(o[0]=n),(!S9(e[1])||e[1]>r)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]<n&&(o[1]=n),o}(c[u+t],x):(r=Fde(e,v),m9()(r)||(r=[w,r])),"horizontal"===h){if(d=Jde({axis:i,ticks:s,bandSize:o,offset:f.offset,entry:e,index:t}),p=a.scale(r[1]),m=f.size,g=a.scale(r[0])-a.scale(r[1]),b={x:d,y:a.y,width:m,height:a.height},Math.abs(y)>0&&Math.abs(g)<Math.abs(y)){var j=C9(g||y)*(Math.abs(y)-Math.abs(g));p-=j,g+=j}}else d=i.scale(r[0]),p=Jde({axis:a,ticks:l,bandSize:o,offset:f.offset,entry:e,index:t}),m=i.scale(r[1])-i.scale(r[0]),g=f.size,b={x:i.x,y:p,width:i.width,height:g},Math.abs(y)>0&&Math.abs(m)<Math.abs(y)&&(m+=C9(m||y)*(Math.abs(y)-Math.abs(m)));return qpe(qpe(qpe({},e),{},{x:d,y:p,width:m,height:g,value:c?r:r[1],payload:e,background:b},C&&C[t]&&C[t].props),{},{tooltipPayload:[rpe(n,e)],tooltipPosition:{x:d+m/2,y:p+g/2}})}));return qpe({data:j,layout:h},p)}));var cfe=function(t,n,r,o,i){var a=t.width,s=t.height,l=t.layout,c=t.children,u=Object.keys(n),d={left:r.left,leftMirror:r.left,right:a-r.right,rightMirror:a-r.right,top:r.top,topMirror:r.top,bottom:s-r.bottom,bottomMirror:s-r.bottom},p=!!y8(c,nfe);return u.reduce((function(a,s){var c,u,f,h,m,v=n[s],g=v.orientation,y=v.domain,b=v.padding,x=void 0===b?{}:b,w=v.mirror,C=v.reversed,j="".concat(g).concat(w?"Mirror":"");if("number"===v.type&&("gap"===v.padding||"no-gap"===v.padding)){var S=y[1]-y[0],k=1/0,Z=v.categoricalDomain.sort();Z.forEach((function(e,t){t>0&&(k=Math.min((e||0)-(Z[t-1]||0),k))}));var O=k/S,E="vertical"===v.layout?r.height:r.width;if("gap"===v.padding&&(c=O*E/2),"no-gap"===v.padding){var D=E9(t.barCategoryGap,O*E),P=O*E/2;c=P-D-(P-D)/E*D}}u="xAxis"===o?[r.left+(x.left||0)+(c||0),r.left+r.width-(x.right||0)-(c||0)]:"yAxis"===o?"horizontal"===l?[r.top+r.height-(x.bottom||0),r.top+(x.top||0)]:[r.top+(x.top||0)+(c||0),r.top+r.height-(x.bottom||0)-(c||0)]:v.range,C&&(u=[u[1],u[0]]);var A=function(t,n,r){var o=t.scale,i=t.type,a=t.layout,s=t.axisType;if("auto"===o)return"radial"===a&&"radiusAxis"===s?{scale:Die(),realScaleType:"band"}:"radial"===a&&"angleAxis"===s?{scale:Ose(),realScaleType:"linear"}:"category"===i&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Aie(),realScaleType:"point"}:"category"===i?{scale:Die(),realScaleType:"band"}:{scale:Ose(),realScaleType:"linear"};if(w9()(o)){var l="scale".concat(Lee()(o));return{scale:(e[l]||Aie)(),realScaleType:e[l]?l:"point"}}return H9()(o)?{scale:o}:{scale:Aie(),realScaleType:"point"}}(v,i,p),M=A.scale,T=A.realScaleType;M.domain(y).range(u),function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-qde,i=Math.max(r[0],r[1])+qde,a=e(t[0]),s=e(t[n-1]);(a<o||a>i||s<o||s>i)&&e.domain([t[0],t[n-1]])}}(M);var I=function(e,t){var n=t.realScaleType,r=t.type,o=t.tickCount,i=t.originalDomain,a=t.allowDecimals,s=n||t.scale;if("auto"!==s&&"linear"!==s)return null;if(o&&"number"===r&&i&&("auto"===i[0]||"auto"===i[1])){var l=e.domain();if(!l.length)return null;var c=Cde(l,o,a);return e.domain([Bie()(c),Rie()(c)]),{niceTicks:c}}if(o&&"number"===r){var u=e.domain();return{niceTicks:jde(u,o,a)}}return null}(M,afe(afe({},v),{},{realScaleType:T}));"xAxis"===o?(m="top"===g&&!w||"bottom"===g&&w,f=r.left,h=d[j]-m*v.height):"yAxis"===o&&(m="left"===g&&!w||"right"===g&&w,f=d[j]-m*v.width,h=r.top);var R=afe(afe(afe({},v),I),{},{realScaleType:T,x:f,y:h,scale:M,width:"xAxis"===o?r.width:v.width,height:"yAxis"===o?r.height:v.height});return R.bandSize=tpe(R,I),v.hide||"xAxis"!==o?v.hide||(d[j]+=(m?-1:1)*R.width):d[j]+=(m?-1:1)*R.height,afe(afe({},a),{},sfe({},s,R))}),{})},ufe=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return{x:Math.min(n,o),y:Math.min(r,i),width:Math.abs(o-n),height:Math.abs(i-r)}},dfe=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scale=t}var t,n,r;return t=e,n=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],r=[{key:"create",value:function(t){return new e(t)}}],n&&ofe(t.prototype,n),r&&ofe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();sfe(dfe,"EPS",1e-4);var pfe=function(e){var t=Object.keys(e).reduce((function(t,n){return afe(afe({},t),{},sfe({},n,dfe.create(e[n])))}),{});return afe(afe({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return kpe()(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:o})}))},isInRange:function(e){return L9()(e,(function(e,n){return t[n].isInRange(e)}))}})};function ffe(e){return ffe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ffe(e)}function hfe(){return hfe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hfe.apply(this,arguments)}function mfe(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 vfe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mfe(Object(n),!0).forEach((function(t){gfe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mfe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gfe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ffe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ffe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ffe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yfe(e){var t=e.x,n=e.y,r=e.r,i=e.alwaysShow,a=e.clipPathId,s=k9(t),l=k9(n);if(M9(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!l)return null;var c=function(e){var t=e.x,n=e.y,r=e.xAxis,o=e.yAxis,i=pfe({x:r.scale,y:o.scale}),a=i.apply({x:t,y:n},{bandAware:!0});return jpe(e,"discard")&&!i.isInRange(a)?null:a}(e);if(!c)return null;var u=c.x,d=c.y,p=e.shape,f=e.className,h=vfe(vfe({clipPath:jpe(e,"hidden")?"url(#".concat(a,")"):void 0},C8(e,!0)),{},{cx:u,cy:d});return o.createElement(T8,{className:u6()("recharts-reference-dot",f)},yfe.renderDot(p,h),Joe.renderCallByParent(e,{x:u-r,y:d-r,width:2*r,height:2*r}))}yfe.displayName="ReferenceDot",yfe.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},yfe.renderDot=function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):H9()(e)?e(t):o.createElement(Ure,hfe({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"}))};var bfe=n(15701),xfe=n.n(bfe);function wfe(e){return wfe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wfe(e)}function Cfe(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 jfe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cfe(Object(n),!0).forEach((function(t){Sfe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cfe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sfe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==wfe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==wfe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===wfe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kfe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return Zfe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zfe(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zfe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ofe(){return Ofe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ofe.apply(this,arguments)}function Efe(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxis,a=e.yAxis,s=e.shape,l=e.className,c=e.alwaysShow,u=e.clipPathId;M9(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=function(e,t,n,r,o){var i=o.viewBox,a=i.x,s=i.y,l=i.width,c=i.height,u=o.position;if(n){var d=o.y,p=o.yAxis.orientation,f=e.y.apply(d,{position:u});if(jpe(o,"discard")&&!e.y.isInRange(f))return null;var h=[{x:a+l,y:f},{x:a,y:f}];return"left"===p?h.reverse():h}if(t){var m=o.x,v=o.xAxis.orientation,g=e.x.apply(m,{position:u});if(jpe(o,"discard")&&!e.x.isInRange(g))return null;var y=[{x:g,y:s+c},{x:g,y:s}];return"top"===v?y.reverse():y}if(r){var b=o.segment.map((function(t){return e.apply(t,{position:u})}));return jpe(o,"discard")&&xfe()(b,(function(t){return!e.isInRange(t)}))?null:b}return null}(pfe({x:i.scale,y:a.scale}),k9(t),k9(n),r&&2===r.length,e);if(!d)return null;var p=kfe(d,2),f=p[0],h=f.x,m=f.y,v=p[1],g=v.x,y=v.y,b=jfe(jfe({clipPath:jpe(e,"hidden")?"url(#".concat(u,")"):void 0},C8(e,!0)),{},{x1:h,y1:m,x2:g,y2:y});return o.createElement(T8,{className:u6()("recharts-reference-line",l)},function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):H9()(e)?e(t):o.createElement("line",Ofe({},t,{className:"recharts-reference-line-line"}))}(s,b),Joe.renderCallByParent(e,function(e){var t=e.x1,n=e.y1,r=e.x2,o=e.y2;return ufe({x:t,y:n},{x:r,y:o})}({x1:h,y1:m,x2:g,y2:y})))}function Dfe(e){return Dfe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dfe(e)}function Pfe(){return Pfe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pfe.apply(this,arguments)}function Afe(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 Mfe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Afe(Object(n),!0).forEach((function(t){Tfe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Afe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tfe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Dfe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Dfe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Dfe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Efe.displayName="ReferenceLine",Efe.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function Ife(e){var t=e.x1,n=e.x2,r=e.y1,i=e.y2,a=e.className,s=e.alwaysShow,l=e.clipPathId;M9(void 0===s,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var c=k9(t),u=k9(n),d=k9(r),p=k9(i),f=e.shape;if(!c&&!u&&!d&&!p&&!f)return null;var h=function(e,t,n,r,o){var i=o.x1,a=o.x2,s=o.y1,l=o.y2,c=o.xAxis,u=o.yAxis;if(!c||!u)return null;var d=pfe({x:c.scale,y:u.scale}),p={x:e?d.x.apply(i,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(s,{position:"start"}):d.y.rangeMin},f={x:t?d.x.apply(a,{position:"end"}):d.x.rangeMax,y:r?d.y.apply(l,{position:"end"}):d.y.rangeMax};return!jpe(o,"discard")||d.isInRange(p)&&d.isInRange(f)?ufe(p,f):null}(c,u,d,p,e);if(!h&&!f)return null;var m=jpe(e,"hidden")?"url(#".concat(l,")"):void 0;return o.createElement(T8,{className:u6()("recharts-reference-area",a)},Ife.renderRect(f,Mfe(Mfe({clipPath:m},C8(e,!0)),h)),Joe.renderCallByParent(e,h))}function Rfe(e){return function(e){if(Array.isArray(e))return Ffe(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return Ffe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ffe(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ffe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Ife.displayName="ReferenceArea",Ife.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},Ife.renderRect=function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):H9()(e)?e(t):o.createElement(ioe,Pfe({},t,{className:"recharts-reference-area-rect"}))};var Bfe=function(e,t,n,r,o){var i=g8(e,Efe),a=g8(e,yfe),s=[].concat(Rfe(i),Rfe(a)),l=g8(e,Ife),c="".concat(r,"Id"),u=r[0],d=t;if(s.length&&(d=s.reduce((function(e,t){if(t.props[c]===n&&jpe(t.props,"extendDomain")&&S9(t.props[u])){var r=t.props[u];return[Math.min(e[0],r),Math.max(e[1],r)]}return e}),d)),l.length){var p="".concat(u,"1"),f="".concat(u,"2");d=l.reduce((function(e,t){if(t.props[c]===n&&jpe(t.props,"extendDomain")&&S9(t.props[p])&&S9(t.props[f])){var r=t.props[p],o=t.props[f];return[Math.min(e[0],r,o),Math.max(e[1],r,o)]}return e}),d)}return o&&o.length&&(d=o.reduce((function(e,t){return S9(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),d)),d},Lfe=n(90176),Nfe=new(n.n(Lfe)());Nfe.setMaxListeners&&Nfe.setMaxListeners(10);var _fe="recharts.syncMouseEvents",zfe=["item"],Hfe=["children","className","width","height","style","compact","title","desc"];function Wfe(e){return Wfe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wfe(e)}function Vfe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||ehe(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ufe(){return Ufe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ufe.apply(this,arguments)}function qfe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Gfe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ihe(r.key),r)}}function Yfe(e,t){return Yfe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Yfe(e,t)}function Kfe(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Qfe(e);if(t){var o=Qfe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Jfe(this,n)}}function Jfe(e,t){if(t&&("object"===Wfe(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Xfe(e)}function Xfe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qfe(e){return Qfe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qfe(e)}function $fe(e){return function(e){if(Array.isArray(e))return the(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ehe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ehe(e,t){if(e){if("string"===typeof e)return the(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?the(e,t):void 0}}function the(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function nhe(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 rhe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nhe(Object(n),!0).forEach((function(t){ohe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nhe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ohe(e,t,n){return(t=ihe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ihe(e){var t=function(e,t){if("object"!==Wfe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Wfe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Wfe(t)?t:String(t)}var ahe={xAxis:["bottom","top"],yAxis:["left","right"]},she={x:0,y:0},lhe=Number.isFinite?Number.isFinite:isFinite,che="function"===typeof requestAnimationFrame?requestAnimationFrame:"function"===typeof setImmediate?setImmediate:setTimeout,uhe="function"===typeof cancelAnimationFrame?cancelAnimationFrame:"function"===typeof clearImmediate?clearImmediate:clearTimeout,dhe=function(e,t,n){var r=t.graphicalItems,o=t.dataStartIndex,i=t.dataEndIndex,a=(r||[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat($fe(e),$fe(n)):e}),[]);return a&&a.length>0?a:n&&n.props&&n.props.data&&n.props.data.length>0?n.props.data:e&&e.length&&S9(o)&&S9(i)?e.slice(o,i+1):[]},phe=function(e,t,n,r){var o=e.graphicalItems,i=e.tooltipAxis,a=dhe(t,e);return n<0||!o||!o.length||n>=a.length?null:o.reduce((function(e,t){if(t.props.hide)return e;var o,s=t.props.data;i.dataKey&&!i.allowDuplicatedCategory?o=A9(void 0===s?a:s,i.dataKey,r):o=s&&s[n]||a[n];return o?[].concat($fe(e),[rpe(t,o)]):e}),[])},fhe=function(e,t,n,r){var o=r||{x:e.chartX,y:e.chartY},i=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(o,n),a=e.orderedTooltipTicks,s=e.tooltipAxis,l=e.tooltipTicks,c=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(t=null===n||void 0===n?void 0:n.length)&&void 0!==t?t:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var s=o.range,l=0;l<a;l++){var c=l>0?r[l-1].coordinate:r[a-1].coordinate,u=r[l].coordinate,d=l>=a-1?r[0].coordinate:r[l+1].coordinate,p=void 0;if(C9(u-c)!==C9(d-u)){var f=[];if(C9(d-u)===C9(s[1]-s[0])){p=d;var h=u+s[1]-s[0];f[0]=Math.min(h,(h+c)/2),f[1]=Math.max(h,(h+c)/2)}else{p=c;var m=d+s[1]-s[0];f[0]=Math.min(u,(m+u)/2),f[1]=Math.max(u,(m+u)/2)}var v=[Math.min(u,(p+u)/2),Math.max(u,(p+u)/2)];if(e>v[0]&&e<=v[1]||e>=f[0]&&e<=f[1]){i=r[l].index;break}}else{var g=Math.min(c,d),y=Math.max(c,d);if(e>(g+u)/2&&e<=(y+u)/2){i=r[l].index;break}}}else for(var b=0;b<a;b++)if(0===b&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b>0&&b<a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b===a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2){i=n[b].index;break}return i}(i,a,l,s);if(c>=0&&l){var u=l[c]&&l[c].value,d=phe(e,t,c,u),p=function(e,t,n,r){var o=t.find((function(e){return e&&e.index===n}));if(o){if("horizontal"===e)return{x:o.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:o.coordinate};if("centric"===e){var i=o.coordinate,a=r.radius;return rhe(rhe(rhe({},r),xre(r.cx,r.cy,a,i)),{},{angle:i,radius:a})}var s=o.coordinate,l=r.angle;return rhe(rhe(rhe({},r),xre(r.cx,r.cy,s,l)),{},{angle:l,radius:s})}return she}(n,a,c,o);return{activeTooltipIndex:c,activeLabel:u,activePayload:d,activeCoordinate:p}}return null},hhe=function(e,t){var n=t.axes,r=t.graphicalItems,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,c=e.layout,u=e.children,d=e.stackOffset,p=Hde(c,o),f=n.reduce((function(t,n){var f=n.props,h=f.type,m=f.dataKey,v=f.allowDataOverflow,g=f.allowDuplicatedCategory,y=f.scale,b=f.ticks,x=n.props[i];if(t[x])return t;var w,C,j,S=dhe(e.data,{graphicalItems:r.filter((function(e){return e.props[i]===x})),dataStartIndex:s,dataEndIndex:l}),k=S.length;if(m){if(w=Bde(S,m,h),"category"===h&&p){var Z=function(e){if(!m9()(e))return!1;for(var t=e.length,n={},r=0;r<t;r++){if(n[e[r]])return!0;n[e[r]]=!0}return!1}(w);g&&Z?(C=w,w=Y9()(0,k)):g||(w=npe(n.props.domain,w,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat($fe(e),[t])}),[]))}else if("category"===h)w=g?w.filter((function(e){return""!==e&&!J9()(e)})):npe(n.props.domain,w,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||J9()(t)?e:[].concat($fe(e),[t])}),[]);else if("number"===h){var O=function(e,t,n,r,o){var i=t.map((function(t){return _de(e,t,n,o,r)})).filter((function(e){return!J9()(e)}));return i&&i.length?i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(S,r.filter((function(e){return e.props[i]===x&&!e.props.hide})),m,o,c);O&&(w=O)}!p||"number"!==h&&"auto"===y||(j=Bde(S,m,"category"))}else w=p?Y9()(0,k):a&&a[x]&&a[x].hasStack&&"number"===h?"expand"===d?[0,1]:Xde(a[x].stackGroups,s,l):zde(S,r.filter((function(e){return e.props[i]===x&&!e.props.hide})),h,c,!0);if("number"===h)w=Bfe(u,w,x,o,b),n.props.domain&&(w=epe(n.props.domain,w,v));else if("category"===h&&n.props.domain){var E=n.props.domain;w.every((function(e){return E.indexOf(e)>=0}))&&(w=E)}return rhe(rhe({},t),{},ohe({},x,rhe(rhe({},n.props),{},{axisType:o,domain:w,categoricalDomain:j,duplicateDomain:C,originalDomain:n.props.domain,isCategorical:p,layout:c})))}),{});return f},mhe=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,c=e.children,u="".concat(r,"Id"),d=g8(c,o),p={};return d&&d.length?p=hhe(e,{axes:d,graphicalItems:i,axisType:r,axisIdKey:u,stackGroups:a,dataStartIndex:s,dataEndIndex:l}):i&&i.length&&(p=function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,c=e.layout,u=e.children,d=dhe(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:l}),p=d.length,f=Hde(c,o),h=-1,m=n.reduce((function(e,t){var m,v=t.props[i];return e[v]?e:(h++,f?m=Y9()(0,p):a&&a[v]&&a[v].hasStack?(m=Xde(a[v].stackGroups,s,l),m=Bfe(u,m,v,o)):(m=epe(r.defaultProps.domain,zde(d,n.filter((function(e){return e.props[i]===v&&!e.props.hide})),"number",c),r.defaultProps.allowDataOverflow),m=Bfe(u,m,v,o)),rhe(rhe({},e),{},ohe({},v,rhe(rhe({axisType:o},r.defaultProps),{},{hide:!0,orientation:f9()(ahe,"".concat(o,".").concat(h%2),null),domain:m,originalDomain:r.defaultProps.domain,isCategorical:f,layout:c}))))}),{});return m}(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:u,stackGroups:a,dataStartIndex:s,dataEndIndex:l})),p},vhe=function(e){var t,n,r=e.children,o=e.defaultShowTooltip,i=y8(r,Cpe);return{chartX:0,chartY:0,dataStartIndex:i&&i.props&&i.props.startIndex||0,dataEndIndex:void 0!==(null===i||void 0===i||null===(t=i.props)||void 0===t?void 0:t.endIndex)?null===i||void 0===i||null===(n=i.props)||void 0===n?void 0:n.endIndex:e.data&&e.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!J9()(o)&&o}},ghe=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},yhe=function(e,t){var n=e.props,r=(e.graphicalItems,e.xAxisMap),o=void 0===r?{}:r,i=e.yAxisMap,a=void 0===i?{}:i,s=n.width,l=n.height,c=n.children,u=n.margin||{},d=y8(c,Cpe),p=y8(c,gne),f=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:rhe(rhe({},e),{},ohe({},r,e[r]+n.width))}),{left:u.left||0,right:u.right||0}),h=Object.keys(o).reduce((function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:rhe(rhe({},e),{},ohe({},r,f9()(e,"".concat(r))+n.height))}),{top:u.top||0,bottom:u.bottom||0}),m=rhe(rhe({},h),f),v=m.bottom;return d&&(m.bottom+=d.props.height||Cpe.defaultProps.height),p&&t&&(m=function(e,t,n,r){var o=n.children,i=n.width,a=n.margin,s=i-(a.left||0)-(a.right||0),l=Nde({children:o,legendWidth:s}),c=e;if(l){var u=r||{},d=l.align,p=l.verticalAlign,f=l.layout;("vertical"===f||"horizontal"===f&&"middle"===p)&&S9(e[d])&&(c=Ide(Ide({},e),{},Rde({},d,c[d]+(u.width||0)))),("horizontal"===f||"vertical"===f&&"center"===d)&&S9(e[p])&&(c=Ide(Ide({},e),{},Rde({},p,c[p]+(u.height||0))))}return c}(m,0,n,t)),rhe(rhe({brushBottom:v},m),{},{width:s-m.left-m.right,height:l-m.top-m.bottom})},bhe=function(e){var t,n=e.chartName,r=e.GraphicalChild,i=e.defaultTooltipEventType,a=void 0===i?"axis":i,s=e.validateTooltipEventTypes,l=void 0===s?["axis"]:s,c=e.axisComponents,u=e.legendContent,d=e.formatAxisMap,p=e.defaultProps,f=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,i=t.updateId,a=t.dataStartIndex,s=t.dataEndIndex,l=e.barSize,u=e.layout,d=e.barGap,p=e.barCategoryGap,f=e.maxBarSize,h=ghe(u),m=h.numericAxisName,v=h.cateAxisName,g=function(e){return!(!e||!e.length)&&e.some((function(e){var t=f8(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n),y=g&&function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var o={},i=Object.keys(r),a=0,s=i.length;a<s;a++)for(var l=r[i[a]].stackGroups,c=Object.keys(l),u=0,d=c.length;u<d;u++){var p=l[c[u]],f=p.items,h=p.cateAxisId,m=f.filter((function(e){return f8(e.type).indexOf("Bar")>=0}));if(m&&m.length){var v=m[0].props.barSize,g=m[0].props[h];o[g]||(o[g]=[]),o[g].push({item:m[0],stackList:m.slice(1),barSize:J9()(v)?t:v})}}return o}({barSize:l,stackGroups:r}),b=[];return n.forEach((function(n,l){var h=dhe(e.data,{dataStartIndex:a,dataEndIndex:s},n),g=n.props,x=g.dataKey,w=g.maxBarSize,C=n.props["".concat(m,"Id")],j=n.props["".concat(v,"Id")],S=c.reduce((function(e,r){var o,i=t["".concat(r.axisType,"Map")],a=n.props["".concat(r.axisType,"Id")],s=i&&i[a];return rhe(rhe({},e),{},(ohe(o={},r.axisType,s),ohe(o,"".concat(r.axisType,"Ticks"),Vde(s)),o))}),{}),k=S[v],Z=S["".concat(v,"Ticks")],O=r&&r[C]&&r[C].hasStack&&function(e,t){var n=e.props.stackId;if(k9(n)){var r=t[n];if(r&&r.items.length){for(var o=-1,i=0,a=r.items.length;i<a;i++)if(r.items[i]===e){o=i;break}return o>=0?r.stackedData[o]:null}}return null}(n,r[C].stackGroups),E=f8(n.type).indexOf("Bar")>=0,D=tpe(k,Z),P=[];if(E){var A,M,T=J9()(w)?f:w,I=null!==(A=null!==(M=tpe(k,Z,!0))&&void 0!==M?M:T)&&void 0!==A?A:0;P=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,o=e.sizeList,i=void 0===o?[]:o,a=e.maxBarSize,s=i.length;if(s<1)return null;var l,c=E9(t,r,0,!0);if(i[0].barSize===+i[0].barSize){var u=!1,d=r/s,p=i.reduce((function(e,t){return e+t.barSize||0}),0);(p+=(s-1)*c)>=r&&(p-=(s-1)*c,c=0),p>=r&&d>0&&(u=!0,p=s*(d*=.9));var f={offset:((r-p)/2>>0)-c,size:0};l=i.reduce((function(e,t){var n=[].concat(Ade(e),[{item:t.item,position:{offset:f.offset+f.size+c,size:u?d:t.barSize}}]);return f=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:f})})),n}),[])}else{var h=E9(n,r,0,!0);r-2*h-(s-1)*c<=0&&(c=0);var m=(r-2*h-(s-1)*c)/s;m>1&&(m>>=0);var v=a===+a?Math.min(m,a):m;l=i.reduce((function(e,t,n){var r=[].concat(Ade(e),[{item:t.item,position:{offset:h+(m+c)*n+(m-v)/2,size:v}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:r[r.length-1].position})})),r}),[])}return l}({barGap:d,barCategoryGap:p,bandSize:I!==D?I:D,sizeList:y[j],maxBarSize:T}),I!==D&&(P=P.map((function(e){return rhe(rhe({},e),{},{position:rhe(rhe({},e.position),{},{offset:e.position.offset-I/2})})})))}var R,F,B,L=n&&n.type&&n.type.getComposedData;L&&b.push({props:rhe(rhe({},L(rhe(rhe({},S),{},{displayedData:h,props:e,dataKey:x,item:n,bandSize:D,barPosition:P,offset:o,stackedData:O,layout:u,dataStartIndex:a,dataEndIndex:s}))),{},(R={key:n.key||"item-".concat(l)},ohe(R,m,S[m]),ohe(R,v,S[v]),ohe(R,"animationId",i),R)),childIndex:(F=n,B=e.children,v8(B).indexOf(F)),item:n})})),b},h=function(e,t){var o=e.props,i=e.dataStartIndex,a=e.dataEndIndex,s=e.updateId;if(!b8({props:o}))return null;var l=o.children,u=o.layout,p=o.stackOffset,h=o.data,m=o.reverseStackOrder,v=ghe(u),g=v.numericAxisName,y=v.cateAxisName,b=g8(l,r),x=function(e,t,n,r,o,i){if(!e)return null;var a=(i?t.reverse():t).reduce((function(e,t){var o=t.props,i=o.stackId;if(o.hide)return e;var a=t.props[n],s=e[a]||{hasStack:!1,stackGroups:{}};if(k9(i)){var l=s.stackGroups[i]||{numericAxisId:n,cateAxisId:r,items:[]};l.items.push(t),s.hasStack=!0,s.stackGroups[i]=l}else s.stackGroups[O9("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return Ide(Ide({},e),{},Rde({},a,s))}),{});return Object.keys(a).reduce((function(t,i){var s=a[i];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce((function(t,i){var a=s.stackGroups[i];return Ide(Ide({},t),{},Rde({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:Yde(e,a.items,o)}))}),{})),Ide(Ide({},t),{},Rde({},i,s))}),{})}(h,b,"".concat(g,"Id"),"".concat(y,"Id"),p,m),w=c.reduce((function(e,t){var n="".concat(t.axisType,"Map");return rhe(rhe({},e),{},ohe({},n,mhe(o,rhe(rhe({},t),{},{graphicalItems:b,stackGroups:t.axisType===g&&x,dataStartIndex:i,dataEndIndex:a}))))}),{}),C=yhe(rhe(rhe({},w),{},{props:o,graphicalItems:b}),null===t||void 0===t?void 0:t.legendBBox);Object.keys(w).forEach((function(e){w[e]=d(o,w[e],C,e.replace("Map",""),n)}));var j=function(e){var t=D9(e),n=Vde(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:q9()(n,(function(e){return e.coordinate})),tooltipAxis:t,tooltipAxisBandSize:tpe(t,n)}}(w["".concat(y,"Map")]),S=f(o,rhe(rhe({},w),{},{dataStartIndex:i,dataEndIndex:a,updateId:s,graphicalItems:b,stackGroups:x,offset:C}));return rhe(rhe({formattedGraphicalItems:S,graphicalItems:b,offset:C,stackGroups:x},j),w)};return t=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yfe(e,t)}(c,e);var t,r,i,s=Kfe(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),ohe(Xfe(t=s.call(this,e)),"clearDeferId",(function(){!J9()(t.deferId)&&uhe&&uhe(t.deferId),t.deferId=null})),ohe(Xfe(t),"handleLegendBBoxUpdate",(function(e){if(e){var n=t.state,r=n.dataStartIndex,o=n.dataEndIndex,i=n.updateId;t.setState(rhe({legendBBox:e},h({props:t.props,dataStartIndex:r,dataEndIndex:o,updateId:i},rhe(rhe({},t.state),{},{legendBBox:e}))))}})),ohe(Xfe(t),"handleReceiveSyncEvent",(function(e,n,r){t.props.syncId===e&&n!==t.uniqueChartId&&(t.clearDeferId(),t.deferId=che&&che(t.applySyncEvent.bind(Xfe(t),r)))})),ohe(Xfe(t),"handleBrushChange",(function(e){var n=e.startIndex,r=e.endIndex;if(n!==t.state.dataStartIndex||r!==t.state.dataEndIndex){var o=t.state.updateId;t.setState((function(){return rhe({dataStartIndex:n,dataEndIndex:r},h({props:t.props,dataStartIndex:n,dataEndIndex:r,updateId:o},t.state))})),t.triggerSyncEvent({dataStartIndex:n,dataEndIndex:r})}})),ohe(Xfe(t),"handleMouseEnter",(function(e){var n=t.props.onMouseEnter,r=t.getMouseInfo(e);if(r){var o=rhe(rhe({},r),{},{isTooltipActive:!0});t.setState(o),t.triggerSyncEvent(o),H9()(n)&&n(o,e)}})),ohe(Xfe(t),"triggeredAfterMouseMove",(function(e){var n=t.props.onMouseMove,r=t.getMouseInfo(e),o=r?rhe(rhe({},r),{},{isTooltipActive:!0}):{isTooltipActive:!1};t.setState(o),t.triggerSyncEvent(o),H9()(n)&&n(o,e)})),ohe(Xfe(t),"handleItemMouseEnter",(function(e){t.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))})),ohe(Xfe(t),"handleItemMouseLeave",(function(){t.setState((function(){return{isTooltipActive:!1}}))})),ohe(Xfe(t),"handleMouseMove",(function(e){e&&H9()(e.persist)&&e.persist(),t.triggeredAfterMouseMove(e)})),ohe(Xfe(t),"handleMouseLeave",(function(e){var n=t.props.onMouseLeave,r={isTooltipActive:!1};t.setState(r),t.triggerSyncEvent(r),H9()(n)&&n(r,e),t.cancelThrottledTriggerAfterMouseMove()})),ohe(Xfe(t),"handleOuterEvent",(function(e){var n=function(e){var t=e&&e.type;return t&&p8[t]?p8[t]:null}(e),r=f9()(t.props,"".concat(n));n&&H9()(r)&&r(/.*touch.*/i.test(n)?t.getMouseInfo(e.changedTouches[0]):t.getMouseInfo(e),e)})),ohe(Xfe(t),"handleClick",(function(e){var n=t.props.onClick,r=t.getMouseInfo(e);if(r){var o=rhe(rhe({},r),{},{isTooltipActive:!0});t.setState(o),t.triggerSyncEvent(o),H9()(n)&&n(o,e)}})),ohe(Xfe(t),"handleMouseDown",(function(e){var n=t.props.onMouseDown;H9()(n)&&n(t.getMouseInfo(e),e)})),ohe(Xfe(t),"handleMouseUp",(function(e){var n=t.props.onMouseUp;H9()(n)&&n(t.getMouseInfo(e),e)})),ohe(Xfe(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseMove(e.changedTouches[0])})),ohe(Xfe(t),"handleTouchStart",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseDown(e.changedTouches[0])})),ohe(Xfe(t),"handleTouchEnd",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseUp(e.changedTouches[0])})),ohe(Xfe(t),"verticalCoordinatesGenerator",(function(e){var t=e.xAxis,n=e.width,r=e.height,o=e.offset;return Wde(hie.getTicks(rhe(rhe(rhe({},hie.defaultProps),t),{},{ticks:Vde(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.left,o.left+o.width)})),ohe(Xfe(t),"horizontalCoordinatesGenerator",(function(e){var t=e.yAxis,n=e.width,r=e.height,o=e.offset;return Wde(hie.getTicks(rhe(rhe(rhe({},hie.defaultProps),t),{},{ticks:Vde(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.top,o.top+o.height)})),ohe(Xfe(t),"axesTicksGenerator",(function(e){return Vde(e,!0)})),ohe(Xfe(t),"renderCursor",(function(e){var r=t.state,i=r.isTooltipActive,a=r.activeCoordinate,s=r.activePayload,l=r.offset,c=r.activeTooltipIndex,u=t.getTooltipEventType();if(!e||!e.props.cursor||!i||!a||"ScatterChart"!==n&&"axis"!==u)return null;var d,p=t.props.layout,f=rre;if("ScatterChart"===n)d=a,f=fre;else if("BarChart"===n)d=t.getCursorRectangle(),f=ioe;else if("radial"===p){var h=t.getCursorPoints(),m=h.cx,v=h.cy,g=h.radius;d={cx:m,cy:v,startAngle:h.startAngle,endAngle:h.endAngle,innerRadius:g,outerRadius:g},f=Rre}else d={points:t.getCursorPoints()},f=rre;var y=e.key||"_recharts-cursor",b=rhe(rhe(rhe(rhe({stroke:"#ccc",pointerEvents:"none"},l),d),C8(e.props.cursor)),{},{payload:s,payloadIndex:c,key:y,className:"recharts-tooltip-cursor"});return(0,o.isValidElement)(e.props.cursor)?(0,o.cloneElement)(e.props.cursor,b):(0,o.createElement)(f,b)})),ohe(Xfe(t),"renderPolarAxis",(function(e,n,r){var i=f9()(e,"type.axisType"),a=f9()(t.state,"".concat(i,"Map")),s=a&&a[e.props["".concat(i,"Id")]];return(0,o.cloneElement)(e,rhe(rhe({},s),{},{className:i,key:e.key||"".concat(n,"-").concat(r),ticks:Vde(s,!0)}))})),ohe(Xfe(t),"renderXAxis",(function(e,n,r){var o=t.state.xAxisMap[e.props.xAxisId];return t.renderAxis(o,e,n,r)})),ohe(Xfe(t),"renderYAxis",(function(e,n,r){var o=t.state.yAxisMap[e.props.yAxisId];return t.renderAxis(o,e,n,r)})),ohe(Xfe(t),"renderGrid",(function(e){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,a=n.offset,s=t.props,l=s.width,c=s.height,u=D9(r),d=_9()(i,(function(e){return L9()(e.domain,lhe)}))||D9(i),p=e.props||{};return(0,o.cloneElement)(e,{key:e.key||"grid",x:S9(p.x)?p.x:a.left,y:S9(p.y)?p.y:a.top,width:S9(p.width)?p.width:a.width,height:S9(p.height)?p.height:a.height,xAxis:u,yAxis:d,offset:a,chartWidth:l,chartHeight:c,verticalCoordinatesGenerator:p.verticalCoordinatesGenerator||t.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:p.horizontalCoordinatesGenerator||t.horizontalCoordinatesGenerator})})),ohe(Xfe(t),"renderPolarGrid",(function(e){var n=e.props,r=n.radialLines,i=n.polarAngles,a=n.polarRadius,s=t.state,l=s.radiusAxisMap,c=s.angleAxisMap,u=D9(l),d=D9(c),p=d.cx,f=d.cy,h=d.innerRadius,m=d.outerRadius;return(0,o.cloneElement)(e,{polarAngles:m9()(i)?i:Vde(d,!0).map((function(e){return e.coordinate})),polarRadius:m9()(a)?a:Vde(u,!0).map((function(e){return e.coordinate})),cx:p,cy:f,innerRadius:h,outerRadius:m,key:e.key||"polar-grid",radialLines:r})})),ohe(Xfe(t),"renderLegend",(function(){var e=t.state.formattedGraphicalItems,n=t.props,r=n.children,i=n.width,a=n.height,s=t.props.margin||{},l=i-(s.left||0)-(s.right||0),c=Nde({children:r,formattedGraphicalItems:e,legendWidth:l,legendContent:u});if(!c)return null;var d=c.item,p=qfe(c,zfe);return(0,o.cloneElement)(d,rhe(rhe({},p),{},{chartWidth:i,chartHeight:a,margin:s,ref:function(e){t.legendInstance=e},onBBoxUpdate:t.handleLegendBBoxUpdate}))})),ohe(Xfe(t),"renderTooltip",(function(){var e=y8(t.props.children,Fee);if(!e)return null;var n=t.state,r=n.isTooltipActive,i=n.activeCoordinate,a=n.activePayload,s=n.activeLabel,l=n.offset;return(0,o.cloneElement)(e,{viewBox:rhe(rhe({},l),{},{x:l.left,y:l.top}),active:r,label:s,payload:r?a:[],coordinate:i})})),ohe(Xfe(t),"renderBrush",(function(e){var n=t.props,r=n.margin,i=n.data,a=t.state,s=a.offset,l=a.dataStartIndex,c=a.dataEndIndex,u=a.updateId;return(0,o.cloneElement)(e,{key:e.key||"_recharts-brush",onChange:Ude(t.handleBrushChange,null,e.props.onChange),data:i,x:S9(e.props.x)?e.props.x:s.left,y:S9(e.props.y)?e.props.y:s.top+s.height+s.brushBottom-(r.bottom||0),width:S9(e.props.width)?e.props.width:s.width,startIndex:l,endIndex:c,updateId:"brush-".concat(u)})})),ohe(Xfe(t),"renderReferenceElement",(function(e,n,r){if(!e)return null;var i=Xfe(t).clipPathId,a=t.state,s=a.xAxisMap,l=a.yAxisMap,c=a.offset,u=e.props,d=u.xAxisId,p=u.yAxisId;return(0,o.cloneElement)(e,{key:e.key||"".concat(n,"-").concat(r),xAxis:s[d],yAxis:l[p],viewBox:{x:c.left,y:c.top,width:c.width,height:c.height},clipPathId:i})})),ohe(Xfe(t),"renderActivePoints",(function(e){var t=e.item,n=e.activePoint,r=e.basePoint,o=e.childIndex,i=e.isRange,a=[],s=t.props.key,l=t.item.props,u=l.activeDot,d=rhe(rhe({index:o,dataKey:l.dataKey,cx:n.x,cy:n.y,r:4,fill:Lde(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(s,"-activePoint-").concat(o)},C8(u)),s8(u));return a.push(c.renderActiveDot(u,d)),r?a.push(c.renderActiveDot(u,rhe(rhe({},d),{},{cx:r.x,cy:r.y,key:"".concat(s,"-basePoint-").concat(o)}))):i&&a.push(null),a})),ohe(Xfe(t),"renderGraphicChild",(function(e,n,r){var i=t.filterFormatItem(e,n,r);if(!i)return null;var a=t.getTooltipEventType(),s=t.state,l=s.isTooltipActive,c=s.tooltipAxis,u=s.activeTooltipIndex,d=s.activeLabel,p=y8(t.props.children,Fee),f=i.props,h=f.points,m=f.isRange,v=f.baseLine,g=i.item.props,y=g.activeDot,b=!g.hide&&l&&p&&y&&u>=0,x={};"axis"!==a&&p&&"click"===p.props.trigger?x={onClick:Ude(t.handleItemMouseEnter,null,e.props.onCLick)}:"axis"!==a&&(x={onMouseLeave:Ude(t.handleItemMouseLeave,null,e.props.onMouseLeave),onMouseEnter:Ude(t.handleItemMouseEnter,null,e.props.onMouseEnter)});var w=(0,o.cloneElement)(e,rhe(rhe({},i.props),x));if(b){var C,j;if(c.dataKey&&!c.allowDuplicatedCategory){var S="function"===typeof c.dataKey?function(e){return"function"===typeof c.dataKey?c.dataKey(e.payload):null}:"payload.".concat(c.dataKey.toString());C=A9(h,S,d),j=m&&v&&A9(v,S,d)}else C=h[u],j=m&&v&&v[u];if(!J9()(C))return[w].concat($fe(t.renderActivePoints({item:i,activePoint:C,basePoint:j,childIndex:u,isRange:m})))}return m?[w,null,null]:[w,null]})),ohe(Xfe(t),"renderCustomized",(function(e,n,r){return(0,o.cloneElement)(e,rhe(rhe({key:"recharts-customized-".concat(r)},t.props),t.state))})),t.uniqueChartId=J9()(e.id)?O9("recharts"):e.id,t.clipPathId="".concat(t.uniqueChartId,"-clip"),e.throttleDelay&&(t.triggeredAfterMouseMove=V9()(t.triggeredAfterMouseMove,e.throttleDelay)),t.state={},t}return t=c,r=[{key:"componentDidMount",value:function(){J9()(this.props.syncId)||this.addListener()}},{key:"componentDidUpdate",value:function(e){J9()(e.syncId)&&!J9()(this.props.syncId)&&this.addListener(),!J9()(e.syncId)&&J9()(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),J9()(this.props.syncId)||this.removeListener(),this.cancelThrottledTriggerAfterMouseMove()}},{key:"cancelThrottledTriggerAfterMouseMove",value:function(){"function"===typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=y8(this.props.children,Fee);if(e&&Q9()(e.props.shared)){var t=e.props.shared?"axis":"item";return l.indexOf(t)>=0?t:a}return a}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=function(e){var t=e.ownerDocument.documentElement,n={top:0,left:0};return"undefined"!==typeof e.getBoundingClientRect&&(n=e.getBoundingClientRect()),{top:n.top+window.pageYOffset-t.clientTop,left:n.left+window.pageXOffset-t.clientLeft}}(this.container),n=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}(e,t),r=this.inRange(n.chartX,n.chartY);if(!r)return null;var o=this.state,i=o.xAxisMap,a=o.yAxisMap;if("axis"!==this.getTooltipEventType()&&i&&a){var s=D9(i).scale,l=D9(a).scale,c=s&&s.invert?s.invert(n.chartX):null,u=l&&l.invert?l.invert(n.chartY):null;return rhe(rhe({},n),{},{xValue:c,yValue:u})}var d=fhe(this.state,this.props.data,this.props.layout,r);return d?rhe(rhe({},n),d):null}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,o=t.tooltipAxisBandSize,i=o/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?n.x-i:r.left+.5,y:"horizontal"===e?r.top+.5:n.y-i,width:"horizontal"===e?o:r.width-1,height:"horizontal"===e?r.height-1:o}}},{key:"getCursorPoints",value:function(){var e,t,n,r,o=this.props.layout,i=this.state,a=i.activeCoordinate,s=i.offset;if("horizontal"===o)n=e=a.x,t=s.top,r=s.top+s.height;else if("vertical"===o)r=t=a.y,e=s.left,n=s.left+s.width;else if(!J9()(a.cx)||!J9()(a.cy)){if("centric"!==o){var l=a.cx,c=a.cy,u=a.radius,d=a.startAngle,p=a.endAngle;return{points:[xre(l,c,u,d),xre(l,c,u,p)],cx:l,cy:c,radius:u,startAngle:d,endAngle:p}}var f=a.cx,h=a.cy,m=a.innerRadius,v=a.outerRadius,g=a.angle,y=xre(f,h,m,g),b=xre(f,h,v,g);e=y.x,t=y.y,n=b.x,r=b.y}return[{x:e,y:t},{x:n,y:r}]}},{key:"inRange",value:function(e,t){var n=this.props.layout;if("horizontal"===n||"vertical"===n){var r=this.state.offset;return e>=r.left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height?{x:e,y:t}:null}var o=this.state,i=o.angleAxisMap,a=o.radiusAxisMap;if(i&&a){var s=D9(i);return jre({x:e,y:t},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=y8(e,Fee),r={};return n&&"axis"===t&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),rhe(rhe({},s8(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){Nfe.on(_fe,this.handleReceiveSyncEvent),Nfe.setMaxListeners&&Nfe._maxListeners&&Nfe.setMaxListeners(Nfe._maxListeners+1)}},{key:"removeListener",value:function(){Nfe.removeListener(_fe,this.handleReceiveSyncEvent),Nfe.setMaxListeners&&Nfe._maxListeners&&Nfe.setMaxListeners(Nfe._maxListeners-1)}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;J9()(t)||Nfe.emit(_fe,t,this.uniqueChartId,e)}},{key:"applySyncEvent",value:function(e){var t=this.props,n=t.layout,r=t.syncMethod,o=this.state.updateId,i=e.dataStartIndex,a=e.dataEndIndex;if(J9()(e.dataStartIndex)&&J9()(e.dataEndIndex))if(J9()(e.activeTooltipIndex))this.setState(e);else{var s=e.chartX,l=e.chartY,c=e.activeTooltipIndex,u=this.state,d=u.offset,p=u.tooltipTicks;if(!d)return;if("function"===typeof r)c=r(p,e);else if("value"===r){c=-1;for(var f=0;f<p.length;f++)if(p[f].value===e.activeLabel){c=f;break}}var m=rhe(rhe({},d),{},{x:d.left,y:d.top}),v=Math.min(s,m.x+m.width),g=Math.min(l,m.y+m.height),y=p[c]&&p[c].value,b=phe(this.state,this.props.data,c),x=p[c]?{x:"horizontal"===n?p[c].coordinate:v,y:"horizontal"===n?g:p[c].coordinate}:she;this.setState(rhe(rhe({},e),{},{activeLabel:y,activeCoordinate:x,activePayload:b,activeTooltipIndex:c}))}else this.setState(rhe({dataStartIndex:i,dataEndIndex:a},h({props:this.props,dataStartIndex:i,dataEndIndex:a,updateId:o},this.state)))}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,o=0,i=r.length;o<i;o++){var a=r[o];if(a.item===e||a.props.key===e.key||t===f8(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderAxis",value:function(e,t,n,r){var i=this.props,a=i.width,s=i.height;return o.createElement(hie,Ufe({},e,{className:"recharts-".concat(e.axisType," ").concat(e.axisType),key:t.key||"".concat(n,"-").concat(r),viewBox:{x:0,y:0,width:a,height:s},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var e=this.clipPathId,t=this.state.offset,n=t.left,r=t.top,i=t.height,a=t.width;return o.createElement("defs",null,o.createElement("clipPath",{id:e},o.createElement("rect",{x:n,y:r,height:i,width:a})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=Vfe(t,2),r=n[0],o=n[1];return rhe(rhe({},e),{},ohe({},r,o.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=Vfe(t,2),r=n[0],o=n[1];return rhe(rhe({},e),{},ohe({},r,o.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(e){var t,n;return null===(t=this.state.xAxisMap)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.scale}},{key:"getYScaleByAxisId",value:function(e){var t,n;return null===(t=this.state.yAxisMap)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.scale}},{key:"getItemByXY",value:function(e){var t=this.state.formattedGraphicalItems;if(t&&t.length)for(var n=0,r=t.length;n<r;n++){var o=t[n],i=o.props,a=o.item,s=f8(a.type);if("Bar"===s){var l=(i.data||[]).find((function(t){return ooe(e,t)}));if(l)return{graphicalItem:o,payload:l}}else if("RadialBar"===s){var c=(i.data||[]).find((function(t){return jre(e,t)}));if(c)return{graphicalItem:o,payload:c}}}return null}},{key:"render",value:function(){var e=this;if(!b8(this))return null;var t=this.props,n=t.children,r=t.className,i=t.width,a=t.height,s=t.style,l=t.compact,c=t.title,u=t.desc,d=qfe(t,Hfe),p=C8(d),f={CartesianGrid:{handler:this.renderGrid,once:!0},ReferenceArea:{handler:this.renderReferenceElement},ReferenceLine:{handler:this.renderReferenceElement},ReferenceDot:{handler:this.renderReferenceElement},XAxis:{handler:this.renderXAxis},YAxis:{handler:this.renderYAxis},Brush:{handler:this.renderBrush,once:!0},Bar:{handler:this.renderGraphicChild},Line:{handler:this.renderGraphicChild},Area:{handler:this.renderGraphicChild},Radar:{handler:this.renderGraphicChild},RadialBar:{handler:this.renderGraphicChild},Scatter:{handler:this.renderGraphicChild},Pie:{handler:this.renderGraphicChild},Funnel:{handler:this.renderGraphicChild},Tooltip:{handler:this.renderCursor,once:!0},PolarGrid:{handler:this.renderPolarGrid,once:!0},PolarAngleAxis:{handler:this.renderPolarAxis},PolarRadiusAxis:{handler:this.renderPolarAxis},Customized:{handler:this.renderCustomized}};if(l)return o.createElement(D8,Ufe({},p,{width:i,height:a,title:c,desc:u}),this.renderClipPath(),k8(n,f));var h=this.parseEventsOfWrapper();return o.createElement("div",Ufe({className:u6()("recharts-wrapper",r),style:rhe({position:"relative",cursor:"default",width:i,height:a},s)},h,{ref:function(t){e.container=t},role:"region"}),o.createElement(D8,Ufe({},p,{width:i,height:a,title:c,desc:u}),this.renderClipPath(),k8(n,f)),this.renderLegend(),this.renderTooltip())}}],r&&Gfe(t.prototype,r),i&&Gfe(t,i),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component),ohe(t,"displayName",n),ohe(t,"defaultProps",rhe({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},p)),ohe(t,"getDerivedStateFromProps",(function(e,t){var n=e.data,r=e.children,o=e.width,i=e.height,a=e.layout,s=e.stackOffset,l=e.margin;if(J9()(t.updateId)){var c=vhe(e);return rhe(rhe(rhe({},c),{},{updateId:0},h(rhe(rhe({props:e},c),{},{updateId:0}),t)),{},{prevData:n,prevWidth:o,prevHeight:i,prevLayout:a,prevStackOffset:s,prevMargin:l,prevChildren:r})}if(n!==t.prevData||o!==t.prevWidth||i!==t.prevHeight||a!==t.prevLayout||s!==t.prevStackOffset||!t8(l,t.prevMargin)){var u=vhe(e),d={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},p=rhe(rhe({},fhe(t,n,a)),{},{updateId:t.updateId+1}),f=rhe(rhe(rhe({},u),d),p);return rhe(rhe(rhe({},f),h(rhe({props:e},f),t)),{},{prevData:n,prevWidth:o,prevHeight:i,prevLayout:a,prevStackOffset:s,prevMargin:l,prevChildren:r})}if(!j8(r,t.prevChildren)){var m=!J9()(n)?t.updateId:t.updateId+1;return rhe(rhe({updateId:m},h(rhe(rhe({props:e},t),{},{updateId:m}),t)),{},{prevChildren:r})}return null})),ohe(t,"renderActiveDot",(function(e,t){var n;return n=(0,o.isValidElement)(e)?(0,o.cloneElement)(e,t):H9()(e)?e(t):o.createElement(Ure,t),o.createElement(T8,{className:"recharts-active-dot",key:t.key},n)})),t},xhe=["layout","type","stroke","connectNulls","isRange","ref"];function whe(e){return whe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},whe(e)}function Che(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function jhe(){return jhe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jhe.apply(this,arguments)}function She(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 khe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?She(Object(n),!0).forEach((function(t){The(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):She(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zhe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ohe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ihe(r.key),r)}}function Ehe(e,t){return Ehe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ehe(e,t)}function Dhe(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Mhe(e);if(t){var o=Mhe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Phe(this,n)}}function Phe(e,t){if(t&&("object"===whe(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ahe(e)}function Ahe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mhe(e){return Mhe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Mhe(e)}function The(e,t,n){return(t=Ihe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ihe(e){var t=function(e,t){if("object"!==whe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==whe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===whe(t)?t:String(t)}var Rhe=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ehe(e,t)}(a,e);var t,n,r,i=Dhe(a);function a(){var e;Zhe(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return The(Ahe(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!0}),The(Ahe(e),"id",O9("recharts-area-")),The(Ahe(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),H9()(t)&&t()})),The(Ahe(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),H9()(t)&&t()})),e}return t=a,n=[{key:"renderDots",value:function(e,t){var n=this.props.isAnimationActive,r=this.state.isAnimationFinished;if(n&&!r)return null;var i=this.props,s=i.dot,l=i.points,c=i.dataKey,u=C8(this.props),d=C8(s,!0),p=l.map((function(e,t){var n=khe(khe(khe({key:"dot-".concat(t),r:3},u),d),{},{dataKey:c,cx:e.x,cy:e.y,index:t,value:e.value,payload:e.payload});return a.renderDotItem(s,n)})),f={clipPath:e?"url(#clipPath-".concat(t,")"):null};return o.createElement(T8,jhe({className:"recharts-area-dots"},f),p)}},{key:"renderHorizontalRect",value:function(e){var t=this.props,n=t.baseLine,r=t.points,i=t.strokeWidth,a=r[0].x,s=r[r.length-1].x,l=e*Math.abs(a-s),c=Rie()(r.map((function(e){return e.y||0})));return S9(n)&&"number"===typeof n?c=Math.max(n,c):n&&m9()(n)&&n.length&&(c=Math.max(Rie()(n.map((function(e){return e.y||0}))),c)),S9(c)?o.createElement("rect",{x:a<s?a:a-l,y:0,width:l,height:Math.floor(c+(i?parseInt("".concat(i),10):1))}):null}},{key:"renderVerticalRect",value:function(e){var t=this.props,n=t.baseLine,r=t.points,i=t.strokeWidth,a=r[0].y,s=r[r.length-1].y,l=e*Math.abs(a-s),c=Rie()(r.map((function(e){return e.x||0})));return S9(n)&&"number"===typeof n?c=Math.max(n,c):n&&m9()(n)&&n.length&&(c=Math.max(Rie()(n.map((function(e){return e.x||0}))),c)),S9(c)?o.createElement("rect",{x:0,y:a<s?a:a-l,width:c+(i?parseInt("".concat(i),10):1),height:Math.floor(l)}):null}},{key:"renderClipRect",value:function(e){return"vertical"===this.props.layout?this.renderVerticalRect(e):this.renderHorizontalRect(e)}},{key:"renderAreaStatically",value:function(e,t,n,r){var i=this.props,a=i.layout,s=i.type,l=i.stroke,c=i.connectNulls,u=i.isRange,d=(i.ref,Che(i,xhe));return o.createElement(T8,{clipPath:n?"url(#clipPath-".concat(r,")"):null},o.createElement(rre,jhe({},C8(d,!0),{points:e,connectNulls:c,type:s,baseLine:t,layout:a,stroke:"none",className:"recharts-area-area"})),"none"!==l&&o.createElement(rre,jhe({},C8(this.props),{className:"recharts-area-curve",layout:a,type:s,connectNulls:c,fill:"none",points:e})),"none"!==l&&u&&o.createElement(rre,jhe({},C8(this.props),{className:"recharts-area-curve",layout:a,type:s,connectNulls:c,fill:"none",points:t})))}},{key:"renderAreaWithAnimation",value:function(e,t){var n=this,r=this.props,i=r.points,a=r.baseLine,s=r.isAnimationActive,l=r.animationBegin,c=r.animationDuration,u=r.animationEasing,d=r.animationId,p=this.state,f=p.prevPoints,h=p.prevBaseLine;return o.createElement(iee,{begin:l,duration:c,isActive:s,easing:u,from:{t:0},to:{t:1},key:"area-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var s=r.t;if(f){var l,c=f.length/i.length,u=i.map((function(e,t){var n=Math.floor(t*c);if(f[n]){var r=f[n],o=P9(r.x,e.x),i=P9(r.y,e.y);return khe(khe({},e),{},{x:o(s),y:i(s)})}return e}));return l=S9(a)&&"number"===typeof a?P9(h,a)(s):J9()(a)||g9()(a)?P9(h,0)(s):a.map((function(e,t){var n=Math.floor(t*c);if(h[n]){var r=h[n],o=P9(r.x,e.x),i=P9(r.y,e.y);return khe(khe({},e),{},{x:o(s),y:i(s)})}return e})),n.renderAreaStatically(u,l,e,t)}return o.createElement(T8,null,o.createElement("defs",null,o.createElement("clipPath",{id:"animationClipPath-".concat(t)},n.renderClipRect(s))),o.createElement(T8,{clipPath:"url(#animationClipPath-".concat(t,")")},n.renderAreaStatically(i,a,e,t)))}))}},{key:"renderArea",value:function(e,t){var n=this.props,r=n.points,o=n.baseLine,i=n.isAnimationActive,a=this.state,s=a.prevPoints,l=a.prevBaseLine,c=a.totalLength;return i&&r&&r.length&&(!s&&c>0||!Tie()(s,r)||!Tie()(l,o))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,o,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,i=e.className,a=e.top,s=e.left,l=e.xAxis,c=e.yAxis,u=e.width,d=e.height,p=e.isAnimationActive,f=e.id;if(t||!r||!r.length)return null;var h=this.state.isAnimationFinished,m=1===r.length,v=u6()("recharts-area",i),g=l&&l.allowDataOverflow||c&&c.allowDataOverflow,y=J9()(f)?this.id:f;return o.createElement(T8,{className:v},g?o.createElement("defs",null,o.createElement("clipPath",{id:"clipPath-".concat(y)},o.createElement("rect",{x:s,y:a,width:u,height:Math.floor(d)}))):null,m?null:this.renderArea(g,y),(n||m)&&this.renderDots(g,y),(!p||h)&&Npe.renderCallByParent(this.props,r))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,curBaseLine:e.baseLine,prevPoints:t.curPoints,prevBaseLine:t.curBaseLine}:e.points!==t.curPoints||e.baseLine!==t.curBaseLine?{curPoints:e.points,curBaseLine:e.baseLine}:null}}],n&&Ohe(t.prototype,n),r&&Ohe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.PureComponent);The(Rhe,"displayName","Area"),The(Rhe,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!wee.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),The(Rhe,"getBaseValue",(function(e,t,n,r){var o=e.layout,i=e.baseValue,a=t.props.baseValue,s=null!==a&&void 0!==a?a:i;if(S9(s)&&"number"===typeof s)return s;var l="horizontal"===o?r:n,c=l.scale.domain();if("number"===l.type){var u=Math.max(c[0],c[1]),d=Math.min(c[0],c[1]);return"dataMin"===s?d:"dataMax"===s||u<0?u:Math.max(Math.min(c[0],c[1]),0)}return"dataMin"===s?c[0]:"dataMax"===s?c[1]:c[0]})),The(Rhe,"getComposedData",(function(e){var t,n=e.props,r=e.item,o=e.xAxis,i=e.yAxis,a=e.xAxisTicks,s=e.yAxisTicks,l=e.bandSize,c=e.dataKey,u=e.stackedData,d=e.dataStartIndex,p=e.displayedData,f=e.offset,h=n.layout,m=u&&u.length,v=Rhe.getBaseValue(n,r,o,i),g=!1,y=p.map((function(e,t){var n,r=Fde(e,c);m?n=u[d+t]:(n=r,m9()(n)?g=!0:n=[v,n]);var p=J9()(n[1])||m&&J9()(r);return"horizontal"===h?{x:Kde({axis:o,ticks:a,bandSize:l,entry:e,index:t}),y:p?null:i.scale(n[1]),value:n,payload:e}:{x:p?null:o.scale(n[1]),y:Kde({axis:i,ticks:s,bandSize:l,entry:e,index:t}),value:n,payload:e}}));return t=m||g?y.map((function(e){return"horizontal"===h?{x:e.x,y:J9()(f9()(e,"value[0]"))||J9()(f9()(e,"y"))?null:i.scale(f9()(e,"value[0]"))}:{x:J9()(f9()(e,"value[0]"))?null:o.scale(f9()(e,"value[0]")),y:e.y}})):"horizontal"===h?i.scale(v):o.scale(v),khe({points:y,baseLine:t,layout:h,isRange:g},f)})),The(Rhe,"renderDotItem",(function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):H9()(e)?e(t):o.createElement(Ure,jhe({},t,{className:"recharts-area-dot"}))}));var Fhe=function(){return null};Fhe.displayName="XAxis",Fhe.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",domain:[0,"auto"],padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0};var Bhe=function(){return null};Bhe.displayName="YAxis",Bhe.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",domain:[0,"auto"],padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1};var Lhe=bhe({chartName:"AreaChart",GraphicalChild:Rhe,axisComponents:[{axisType:"xAxis",AxisComp:Fhe},{axisType:"yAxis",AxisComp:Bhe}],formatAxisMap:cfe}),Nhe=["x1","y1","x2","y2","key"];function _he(e){return _he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_he(e)}function zhe(){return zhe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zhe.apply(this,arguments)}function Hhe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Whe(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 Vhe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Whe(Object(n),!0).forEach((function(t){Xhe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Whe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Uhe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qhe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Qhe(r.key),r)}}function Ghe(e,t){return Ghe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ghe(e,t)}function Yhe(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Jhe(e);if(t){var o=Jhe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Khe(this,n)}}function Khe(e,t){if(t&&("object"===_he(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Jhe(e){return Jhe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Jhe(e)}function Xhe(e,t,n){return(t=Qhe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qhe(e){var t=function(e,t){if("object"!==_he(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==_he(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_he(t)?t:String(t)}var $he,eme=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ghe(e,t)}(a,e);var t,n,r,i=Yhe(a);function a(){return Uhe(this,a),i.apply(this,arguments)}return t=a,n=[{key:"renderHorizontal",value:function(e){var t=this,n=this.props,r=n.x,i=n.width,s=n.horizontal;if(!e||!e.length)return null;var l=e.map((function(e,n){var o=Vhe(Vhe({},t.props),{},{x1:r,y1:e,x2:r+i,y2:e,key:"line-".concat(n),index:n});return a.renderLineItem(s,o)}));return o.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}},{key:"renderVertical",value:function(e){var t=this,n=this.props,r=n.y,i=n.height,s=n.vertical;if(!e||!e.length)return null;var l=e.map((function(e,n){var o=Vhe(Vhe({},t.props),{},{x1:e,y1:r,x2:e,y2:r+i,key:"line-".concat(n),index:n});return a.renderLineItem(s,o)}));return o.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}},{key:"renderVerticalStripes",value:function(e){var t=this.props.verticalFill;if(!t||!t.length)return null;var n=this.props,r=n.fillOpacity,i=n.x,a=n.y,s=n.width,l=n.height,c=e.map((function(e){return Math.round(e+i-i)})).sort((function(e,t){return e-t}));i!==c[0]&&c.unshift(0);var u=c.map((function(e,n){var u=c[n+1]?c[n+1]-e:i+s-e;if(u<=0)return null;var d=n%t.length;return o.createElement("rect",{key:"react-".concat(n),x:e,y:a,width:u,height:l,stroke:"none",fill:t[d],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return o.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},u)}},{key:"renderHorizontalStripes",value:function(e){var t=this.props.horizontalFill;if(!t||!t.length)return null;var n=this.props,r=n.fillOpacity,i=n.x,a=n.y,s=n.width,l=n.height,c=e.map((function(e){return Math.round(e+a-a)})).sort((function(e,t){return e-t}));a!==c[0]&&c.unshift(0);var u=c.map((function(e,n){var u=c[n+1]?c[n+1]-e:a+l-e;if(u<=0)return null;var d=n%t.length;return o.createElement("rect",{key:"react-".concat(n),y:e,x:i,height:u,width:s,stroke:"none",fill:t[d],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return o.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},u)}},{key:"renderBackground",value:function(){var e=this.props.fill;if(!e||"none"===e)return null;var t=this.props,n=t.fillOpacity,r=t.x,i=t.y,a=t.width,s=t.height;return o.createElement("rect",{x:r,y:i,width:a,height:s,stroke:"none",fill:e,fillOpacity:n,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,a=e.horizontal,s=e.vertical,l=e.horizontalCoordinatesGenerator,c=e.verticalCoordinatesGenerator,u=e.xAxis,d=e.yAxis,p=e.offset,f=e.chartWidth,h=e.chartHeight;if(!S9(r)||r<=0||!S9(i)||i<=0||!S9(t)||t!==+t||!S9(n)||n!==+n)return null;var m=this.props,v=m.horizontalPoints,g=m.verticalPoints;return v&&v.length||!H9()(l)||(v=l({yAxis:d,width:f,height:h,offset:p})),g&&g.length||!H9()(c)||(g=c({xAxis:u,width:f,height:h,offset:p})),o.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),a&&this.renderHorizontal(v),s&&this.renderVertical(g),a&&this.renderHorizontalStripes(v),s&&this.renderVerticalStripes(g))}}],r=[{key:"renderLineItem",value:function(e,t){var n;if(o.isValidElement(e))n=o.cloneElement(e,t);else if(H9()(e))n=e(t);else{var r=t.x1,i=t.y1,a=t.x2,s=t.y2,l=t.key,c=Hhe(t,Nhe);n=o.createElement("line",zhe({},C8(c),{x1:r,y1:i,x2:a,y2:s,fill:"none",key:l}))}return n}}],n&&qhe(t.prototype,n),r&&qhe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.PureComponent);Xhe(eme,"displayName","CartesianGrid"),Xhe(eme,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var tme=new Uint8Array(16);function nme(){if(!$he&&!($he="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return $he(tme)}var rme=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var ome=function(e){return"string"===typeof e&&rme.test(e)},ime=[],ame=0;ame<256;++ame)ime.push((ame+256).toString(16).substr(1));var sme,lme,cme=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(ime[e[t+0]]+ime[e[t+1]]+ime[e[t+2]]+ime[e[t+3]]+"-"+ime[e[t+4]]+ime[e[t+5]]+"-"+ime[e[t+6]]+ime[e[t+7]]+"-"+ime[e[t+8]]+ime[e[t+9]]+"-"+ime[e[t+10]]+ime[e[t+11]]+ime[e[t+12]]+ime[e[t+13]]+ime[e[t+14]]+ime[e[t+15]]).toLowerCase();if(!ome(n))throw TypeError("Stringified UUID is invalid");return n},ume=0,dme=0;var pme,fme=function(e,t,n){var r=t&&n||0,o=t||new Array(16),i=(e=e||{}).node||sme,a=void 0!==e.clockseq?e.clockseq:lme;if(null==i||null==a){var s=e.random||(e.rng||nme)();null==i&&(i=sme=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==a&&(a=lme=16383&(s[6]<<8|s[7]))}var l=void 0!==e.msecs?e.msecs:Date.now(),c=void 0!==e.nsecs?e.nsecs:dme+1,u=l-ume+(c-dme)/1e4;if(u<0&&void 0===e.clockseq&&(a=a+1&16383),(u<0||l>ume)&&void 0===e.nsecs&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");ume=l,dme=c,lme=a;var d=(1e4*(268435455&(l+=122192928e5))+c)%4294967296;o[r++]=d>>>24&255,o[r++]=d>>>16&255,o[r++]=d>>>8&255,o[r++]=255&d;var p=l/4294967296*1e4&268435455;o[r++]=p>>>8&255,o[r++]=255&p,o[r++]=p>>>24&15|16,o[r++]=p>>>16&255,o[r++]=a>>>8|128,o[r++]=255&a;for(var f=0;f<6;++f)o[r+f]=i[f];return t||cme(o)},hme=function(e){var t=e.sx,n=e.currency,r=e.milestones,i=(0,o.useState)([]),a=(0,Le.Z)(i,2),s=a[0],c=a[1],d=(0,o.useState)(null),p=(0,Le.Z)(d,2),f=p[0],h=p[1],m=(0,o.useState)("month"),v=(0,Le.Z)(m,2),g=v[0],y=v[1],b=function(e){var t=e.payload,r=e.label,o=e.active;if(t&&o&&t.length){var i,a,s,l,c,d,p,f,h,m,v=new Date(r),g=[],y=[];if(null!==(i=t[0].payload)&&void 0!==i&&i.paidMilestones)g=null===(c=t[0])||void 0===c||null===(d=c.payload)||void 0===d||null===(p=d.paidMilestones)||void 0===p?void 0:p.split(",");if(null!==(a=t[0].payload)&&void 0!==a&&a.unpaidMilestones)y=null===(f=t[0])||void 0===f||null===(h=f.payload)||void 0===h||null===(m=h.unpaidMilestones)||void 0===m?void 0:m.split(",");return(0,u.jsx)(ko.Z,{sx:{py:2,opacity:1},size:"small",variant:"contained",children:(0,u.jsxs)(nn.Z,{spacing:1,alignItems:"start",justifyContent:"space-between",children:[(0,u.jsx)(nn.Z,{spacing:1,alignItems:"start",children:(0,u.jsx)(rn.Z,{component:"span",fontWeight:"600",color:"grey.300",children:(0,vm.Z)(v,"MMM d, yyyy")})}),g.length>0&&(0,u.jsxs)(nn.Z,{alignItems:"start",children:[(0,u.jsxs)(nn.Z,{alignItems:"start",children:[(0,u.jsx)(rn.Z,{component:"span",fontWeight:"600",children:"Paid Milestones:"}),(0,u.jsx)(nn.Z,{alignItems:"start",children:g.map((function(e){return(0,u.jsx)(rn.Z,{children:e})}))}),(0,u.jsx)(rn.Z,{children:null===(s=t[0])||void 0===s||null===(l=s.payload)||void 0===l?void 0:l.name})]}),0!==t[0].payload.paid&&(0,u.jsxs)(rn.Z,{children:["Payment: ",(0,rs.xG)(t[0].payload.paid,n)]})]}),t[0].payload.name&&0===t[0].payload.unpaid&&(0,u.jsxs)(nn.Z,{alignItems:"start",children:[(0,u.jsx)(rn.Z,{component:"span",fontWeight:"600",alignItems:"start",children:"Paid Milestone:"}),(0,u.jsx)(rn.Z,{alignItems:"start",children:t[0].payload.name}),0!==t[0].payload.paid&&(0,u.jsxs)(rn.Z,{children:["Payment: ",(0,rs.xG)(t[0].payload.paid,n)]})]}),y.length>0&&(0,u.jsxs)(nn.Z,{alignItems:"start",children:[(0,u.jsxs)(nn.Z,{alignItems:"start",children:[(0,u.jsx)(rn.Z,{component:"span",fontWeight:"600",alignItems:"start",children:"Unpaid Milestones:"}),(0,u.jsx)(nn.Z,{alignItems:"start",children:y.map((function(e){return(0,u.jsx)(rn.Z,{children:e})}))})]}),0!==t[1].payload.unpaid&&(0,u.jsxs)(rn.Z,{children:["Expected payment:"," ",(0,rs.xG)(t[1].payload.unpaid,n)]})]}),t[0].payload.name&&0===t[0].payload.paid&&(0,u.jsxs)(nn.Z,{alignItems:"start",children:[(0,u.jsx)(rn.Z,{component:"span",fontWeight:"600",alignItems:"start",children:"Unpaid Milestone:"}),(0,u.jsx)(rn.Z,{alignItems:"start",children:t[0].payload.name}),0!==t[0].payload.unpaid&&(0,u.jsxs)(rn.Z,{children:["Expected payment:"," ",(0,rs.xG)(t[0].payload.unpaid,n)]})]})]})})}return null},x=function(){var e=new Date,t=e.getFullYear(),n=e.getMonth(),r=ym(new Date(t,n));return fm({start:new Date(t,n,1),end:new Date(t,n,r)})},w=function(){var e=new Date,t=new Date(e.getFullYear(),e.getMonth()-2,e.getDate()),n=new Date(e.getFullYear(),e.getMonth()+3,e.getDate()),r=a6({start:new Date(t),end:new Date}),o=a6({start:new Date(e.getFullYear(),e.getMonth()+1),end:new Date(n)}),i=r.concat(o);return fm({start:new Date(i[0]),end:new Date(i[i.length-1])})},C=function(){var e=new Date((new Date).getFullYear(),0,1),t=new Date((new Date).getFullYear(),11,31);return fm({start:new Date(e),end:new Date(t)})};(0,o.useEffect)((function(){h({month:x(),halfyear:w(),year:C()})}),[]),(0,o.useEffect)((function(){var e=[];if(r&&null!==f){f[g].forEach((function(t,n){var o;r.forEach((function(n){(0,vm.Z)(t,"P")===(0,vm.Z)(new Date(null===n||void 0===n?void 0:n.paid),"P")&&e.push({id:n.id,name:n.name,date:t,paid:n.budget,unpaid:0}),null===(null===n||void 0===n?void 0:n.paid)&&(0,vm.Z)(t,"P")===(0,vm.Z)(new Date(n.end),"P")&&e.push({id:n.id,name:n.name,date:t,paid:0,unpaid:n.budget})})),(null===(o=e[n])||void 0===o?void 0:o.date)!==t&&e.push({date:t,paid:0,unpaid:0})}));var t=[],n=e.filter((function(e,n,r){var o=[];if(r.findIndex((function(t){return t.date===e.date}))!==n){var i=(0,dn.Z)(r),a=i[n-1];i.slice(i.findIndex((function(t){return t.date===e.date}))).forEach((function(e){e.date===a.date&&o.push(e)}));var s=o.filter((function(e){return void 0!==e.name})),l=s.reduce((function(e,t,n){return 0===t.unpaid&&t.name?e.paidMilestones+="".concat(t.name,", "):0===t.paid&&t.name&&(e.unpaidMilestones+="".concat(t.name,", ")),e.id=fme(),e.date=t.date,e.paid+=t.paid,e.unpaid+=t.unpaid,s.length-1===n&&e.unpaidMilestones&&(e.unpaidMilestones=e.unpaidMilestones.replace(/,\s*$/,"")),s.length-1===n&&e.paidMilestones&&(e.paidMilestones=e.paidMilestones.replace(/,\s*$/,"")),e}),{id:"",unpaidMilestones:"",paidMilestones:"",date:null,paid:0,unpaid:0});t.push(l)}return r.findIndex((function(t){return t.date===e.date}))===n})),o=t.map((function(e){return n.findIndex((function(t){return t.date===e.date}))})),i=(0,dn.Z)(n);i.forEach((function(e,n){void 0!==o[n]&&(i[o[n]]=t[n])})),c(i)}}),[r,g,f]);var j={py:.1,px:1.2,border:"none",color:"primaryDark.500",fontWeight:600},S={color:"primaryLight.500",boxShadow:"6px 6px 15px rgba(56, 69, 114, 0.1)"},k=2.25,Z=Bn(ir.breakpoints.up("lg")),O=(0,o.useState)("100%"),E=(0,Le.Z)(O,2),D=E[0],P=E[1];return(0,o.useEffect)((function(){P(Z?"100%":"93%")}),[Z]),(0,u.jsxs)(nn.Z,{sx:(0,l.Z)((0,l.Z)({},t),{},{position:"relative"}),width:"100%",height:"100%",justifyContent:"end",children:[(0,u.jsxs)($4,{color:"secondary",value:g,exclusive:!0,onChange:function(e,t){null!==t&&y(t)},"aria-label":"Platform",sx:{position:"absolute",top:-40,left:0,right:0,margin:"auto",width:"fit-content",gap:0,border:"1px solid ".concat(ir.palette.secondaryBlue[100]),justifyContent:"center",display:null!==r&&void 0!==r&&r.length?"block":"none"},children:[(0,u.jsx)(i6,{value:"month",sx:(0,l.Z)((0,l.Z)({},j),{},{borderRight:"1px solid ".concat(ir.palette.secondaryBlue[100]),"&.Mui-selected":(0,l.Z)({},S)}),children:"1M"}),(0,u.jsx)(i6,{value:"halfyear",sx:(0,l.Z)((0,l.Z)({},j),{},{borderRight:"1px solid ".concat(ir.palette.secondaryBlue[100]),"&.Mui-selected":(0,l.Z)({},S)}),children:"6M"}),(0,u.jsx)(i6,{value:"year",sx:(0,l.Z)((0,l.Z)({},j),{},{"&.Mui-selected":(0,l.Z)({},S)}),children:"1Y"})]}),(0,u.jsx)(F9,{width:D,height:"90%",children:(0,u.jsxs)(Lhe,{data:s.length>0?s:[],style:{fontSize:"1rem",fontFamily:ir.typography.fontFamily},margin:{top:20,right:10,bottom:0},children:[(0,u.jsxs)("defs",{children:[(0,u.jsxs)("linearGradient",{id:"paid",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,u.jsx)("stop",{offset:"5%",stopColor:"#7F57FF",stopOpacity:.8}),(0,u.jsx)("stop",{offset:"100%",stopColor:"#7F57FF",stopOpacity:0})]}),(0,u.jsxs)("linearGradient",{id:"unpaid",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,u.jsx)("stop",{offset:"5%",stopColor:"#808080",stopOpacity:.8}),(0,u.jsx)("stop",{offset:"100%",stopColor:"#808080",stopOpacity:0})]})]}),(0,u.jsx)(gne,{wrapperStyle:{fontFamily:ir.typography.fontFamily,fontSize:"1rem",display:null!==r&&void 0!==r&&r.length?"block":"none"},verticalAlign:"bottom",height:15}),(0,u.jsx)(eme,{opacity:.3,vertical:!1}),(0,u.jsx)(Fee,{content:(0,u.jsx)(b,{}),wrapperStyle:{outline:"none",zIndex:35}}),n&&(0,u.jsx)(Bhe,{dataKey:function(){var e={paid:0,unpaid:0};return s.filter((function(e){return 0!==e.paid||0!==e.unpaid})).forEach((function(t){t.paid>(null===e||void 0===e?void 0:e.paid)&&(e.paid=t.paid),t.unpaid>(null===e||void 0===e?void 0:e.unpaid)&&(e.unpaid=t.unpaid)})),e?e.paid>e.unpaid?"paid":"unpaid":null}(),axisLine:!1,tickLine:!1,tick:{fill:ir.palette.primaryDark[400]},tickFormatter:function(e){return e.toLocaleString("en-US",{style:"currency",currency:n,notation:"compact",minimumFractionDigits:0})},dx:-5,style:{fontSize:"0.875rem",fontWeight:600}}),(0,u.jsx)(Fhe,{dataKey:"date",axisLine:!1,tickLine:!1,padding:{left:25,right:25},tick:{fill:ir.palette.primaryDark[400]},scale:"point",tickMargin:15,height:50,interval:0,tickFormatter:function(e){if("month"===g){if(1===e.getDate())return(0,vm.Z)(e,"MMM d").toUpperCase();if(1!==e.getMonth()){if(e.getDate()%10===0&&30!==e.getDate())return(0,vm.Z)(e,"MMM d").toUpperCase();if(e.getDate()%10===0&&30===e.getDate()&&Kh(e))return(0,vm.Z)(e,"MMM d").toUpperCase();if(31===e.getDate()&&Kh(e))return(0,vm.Z)(e,"MMM d").toUpperCase()}if(1===e.getMonth()){if(e.getDate()%10===0)return(0,vm.Z)(e,"MMM d").toUpperCase();if(28===e.getDate()||29===e.getDate())return(0,vm.Z)(e,"MMM d").toUpperCase()}}if("halfyear"===g&&1===e.getDate())return(0,vm.Z)(e,"MMM d").toUpperCase();if("year"===g){if(0===e.getMonth()&&1===e.getDate())return(0,vm.Z)(e,"MMM d").toUpperCase();if(3===e.getMonth()&&1===e.getDate())return(0,vm.Z)(e,"MMM d").toUpperCase();if(6===e.getMonth()&&1===e.getDate())return(0,vm.Z)(e,"MMM d").toUpperCase();if(9===e.getMonth()&&1===e.getDate())return(0,vm.Z)(e,"MMM d").toUpperCase();if(11===e.getMonth()&&31===e.getDate())return(0,vm.Z)(e,"MMM d").toUpperCase()}return""},style:{fontSize:"0.875rem",fontWeight:600}}),(0,u.jsx)(Rhe,{dataKey:"paid",legendType:"circle",type:"monotone",stroke:"#7F57FF",fillOpacity:1,isAnimationActive:!1,strokeWidth:1.5,fill:"url(#paid)",activeDot:{r:k,stroke:"#32009A",fill:"#32009A"},dot:function(e){return e&&0!==e.payload.paid?"halfyear"===g||"year"===g?(0,u.jsx)(u.Fragment,{}):(0,u.jsx)("circle",{r:k,stroke:"#32009A",fill:"#32009A",strokeWidth:k,cx:e.cx,cy:e.cy},e.cx):(0,u.jsx)(u.Fragment,{})}}),!s.every((function(e){return 0===e.unpaid}))&&(0,u.jsx)(Rhe,{dataKey:"unpaid",legendType:"circle",isAnimationActive:!1,activeDot:function(e){return e&&0!==e.payload.unpaid?(0,u.jsx)("circle",{r:k,stroke:"grey",fill:"grey",strokeWidth:k,cx:e.cx,cy:e.cy},e.cx):(0,u.jsx)(u.Fragment,{})},type:"monotone",stroke:"#808080",fillOpacity:1,strokeWidth:1.5,fill:"url(#unpaid)"})]})}),!(null!==r&&void 0!==r&&r.length)&&(0,u.jsx)(RI,{})]})},mme=(0,o.memo)(hme),vme=["title","titleId"];function gme(){return gme=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gme.apply(this,arguments)}function yme(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function bme(e,t){var n=e.title,r=e.titleId,i=yme(e,vme);return o.createElement("svg",gme({width:14,height:18,viewBox:"0 0 14 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,pme||(pme=o.createElement("path",{d:"M3.32528 0.665527C1.69944 0.665527 0.356934 1.89886 0.356934 3.45219V14.5455C0.356934 16.0989 1.69944 17.3322 3.32528 17.3322H10.7219C12.3478 17.3322 13.6903 16.0989 13.6903 14.5455C13.6903 14.0014 13.6903 7.99719 13.6903 6.47302C13.6903 3.50386 10.8244 0.665527 7.85693 0.665527C4.34527 0.665527 4.33694 0.665527 3.32528 0.665527ZM8.69027 2.54053C10.1561 2.92969 11.4219 4.17886 11.8153 5.63969C11.2628 5.64802 10.7744 5.67053 10.3569 5.66553C9.1336 5.65053 8.6786 5.41219 8.66443 3.99886C8.66276 3.85303 8.68277 3.19053 8.69027 2.54053Z",fill:"#384572"})))}var xme=o.forwardRef(bme),wme=(n.p,["id","displayName","resource","renderComponent"]),Cme=function(e){var t=e.id,n=e.displayName,r=void 0===n?"name":n,o=e.resource,i=e.renderComponent,a=Nn(e,wme),s=Ra({id:t,resource:"".concat(o)}),c=s.data;return s.isLoading?(0,u.jsx)(Zo.Z,{size:20}):(0,u.jsx)(u.Fragment,{children:i?i(c):(0,u.jsx)(rn.Z,(0,l.Z)((0,l.Z)({},a),{},{children:c?c[r]:"---"}))})},jme=function(){var e,t,n,r,i,a,s,l,c,d=(0,ze.s0)(),p=Bn(ir.breakpoints.down("lg")),f=Bn(ir.breakpoints.between("md","lg")),h=Bn(ir.breakpoints.between("lg","gr")),m=Bn(ir.breakpoints.between("gr","xl")),v=Bn(ir.breakpoints.between("xl","xxl")),g=Bn(ir.breakpoints.up("xxl")),y=(0,o.useState)(!0),b=(0,Le.Z)(y,2),x=b[0],w=b[1];(0,o.useEffect)((function(){w(!p)}),[p]);var C=Yd(),j=null===C||void 0===C?void 0:C.includes(Kt.ks.Buyer),S=Pa(),k=(0,o.useState)(null),Z=(0,Le.Z)(k,2),O=Z[0],E=Z[1],D=hi({resource:"/contracts/?company=".concat(null===S||void 0===S||null===(e=S.membership)||void 0===e?void 0:e.company,"&limit=3&orderBy=-updated"),enabled:!!S,refetchOnWindowFocus:!1}).data,P=Ra({resource:"companies",id:null===S||void 0===S||null===(t=S.membership)||void 0===t?void 0:t.company,enabled:!!S}).data,A=((null===P||void 0===P?void 0:P.status)===Kt.cM.Pending||(null===P||void 0===P||P.status,Kt.cM.Rejected),hi({resource:"/milestones/?company=".concat(null===S||void 0===S||null===(n=S.membership)||void 0===n?void 0:n.company),enabled:!!S,refetchOnWindowFocus:!1}).data),M=hi({resource:"/tasks/?company=".concat(null===S||void 0===S||null===(r=S.membership)||void 0===r?void 0:r.company),enabled:!!S,refetchOnWindowFocus:!1}).data;(0,o.useEffect)((function(){A&&M&&E(function(){if(A&&M){for(var e=[],t=0;t<A.data.results.length;t+=1)e.push({id:A.data.results[t].id,status:A.data.results[t].status,name:A.data.results[t].name,end:A.data.results[t].end,type:"milestone"});for(var n=0;n<M.data.results.length;n+=1)e.push({id:M.data.results[n].milestone,status:M.data.results[n].status,name:M.data.results[n].name,end:M.data.results[n].end,type:"task"});return e.sort((function(e,t){return new Date(e.end).getTime()-new Date(t.end).getTime()}))}return null}())}),[A,M]);var T=[{field:"name",flex:.6,icon:x?(0,u.jsx)(xme,{fill:"primaryDark.600"}):void 0,valueFormatter:function(e){var t=k3(e.project);return null===t||void 0===t?void 0:t.name}},{field:"budget",flex:.4,columnsStyle:{textAlign:"right",fontWeight:400,variant:"body2"},valueFormatter:function(e){return(0,rs.xG)(e.budget,e.currency)}},{field:"paymentStatus",flex:.01,columnsStyle:{textAlign:"right"},renderColumn:function(e){return(0,u.jsx)(EI,{text:e.paymentStatus,componentReturnType:"dot"})}}],I=[{field:"name",flex:.6},{field:"end",flex:.4,columnsStyle:{textAlign:"right",fontWeight:400,variant:"body2"},valueFormatter:function(e){return null!==e.end?(0,rs.qJ)(e.end):"-"}},{field:"status",flex:.01,columnsStyle:{textAlign:"right"},renderColumn:function(e){return(0,u.jsx)(EI,{text:e.status,componentReturnType:"dot"})}}],R=[{field:"name",flex:1,icon:(0,u.jsx)(I3,{fill:tr.dx[500]}),iconStyle:{mb:"1.2rem"},secondaryField:function(e){return(0,u.jsx)(Cme,{resource:"projects",id:e.project,displayName:"name",variant:"heading4",color:"primaryDark.400",renderComponent:function(e){var t=26;return f&&(t=62),h&&(t=26),m&&(t=42),v&&(t=55),g&&(t=80),(0,u.jsx)(ns,{title:e.name,placement:"top",children:(0,u.jsx)(rn.Z,{variant:"body2",color:"primaryDark.400",children:(0,rs.$G)(e.name||"",t)})})}})}},{field:"status",flex:.5,align:"end",renderColumn:function(e){return(0,u.jsx)(EI,{text:e.status,componentReturnType:"chip"})}}];return(0,u.jsxs)(nn.Z,{spacing:6.5,direction:"column",width:"100%",children:[(0,u.jsx)(p5,{screen:Kt.Cx.DashboardHome}),(0,u.jsxs)(nn.Z,{spacing:vR,children:[(0,u.jsxs)(nn.Z,{height:{sm:"100%",lg:250},spacing:3,direction:{sm:"column",lg:"row"},justifyContent:"space-between",children:[(0,u.jsx)(b2,{headline:"Payment summary",link:"./payments",mainCardClassName:"react-joyride-step-5",sx:{width:{sm:"100%",lg:"49%"},pb:1.5},renderComponentSx:{height:"100%",overflowY:"auto"},renderComponent:(0,u.jsx)(U3,{items:null!==(i=null===A||void 0===A||null===(a=A.data)||void 0===a?void 0:a.results.slice(-3))&&void 0!==i?i:[],columns:T})}),(0,u.jsx)(b2,{headline:"Upcoming deadlines",sx:{width:{sm:"100%",lg:"49%"},pb:1.5},mainCardClassName:"react-joyride-step-6",renderComponentSx:{height:"100%",overflowY:"auto"},renderComponent:(0,u.jsx)(U3,{items:null!==(s=null===O||void 0===O?void 0:O.slice(-3))&&void 0!==s?s:[],onClick:function(e){return d("./milestone/".concat(e.id))},columns:I})})]}),(0,u.jsxs)(nn.Z,{height:{sm:"100%",lg:323},spacing:vR,direction:{sm:"column",lg:"row"},justifyContent:"space-between",children:[(0,u.jsx)(b2,{headline:j?"Payments":"Earnings",mainCardClassName:"react-joyride-step-7",sx:{width:{sm:"100%",lg:"49%"},height:{sm:296,lg:"100%"}},renderComponent:(0,u.jsx)(mme,{milestones:null===A||void 0===A?void 0:A.data.results,currency:null===A||void 0===A||null===(l=A.data.results[0])||void 0===l?void 0:l.currency}),renderComponentSx:{height:"100%",width:"100%"}}),(0,u.jsx)(b2,{headline:"Contracts",link:"./contracts",mainCardClassName:"react-joyride-step-8",sx:{position:"relative",width:{sm:"100%",lg:"49%"},height:{sm:296,lg:"100%"}},renderComponentSx:{height:"100%",width:"100%"},renderComponent:(0,u.jsx)(U3,{items:null!==(c=null===D||void 0===D?void 0:D.data.results)&&void 0!==c?c:[],columns:R,onClick:function(e){d("./contracts",{state:e})},sx:{gap:0}})})]})]}),(0,u.jsx)(q4,{}),(0,u.jsx)(q3,{})]})},Sme=n(21747),kme=n(27858),Zme=n(71134),Ome=n(99528),Eme=n(85308),Dme=n(77130),Pme=function(e){var t=e.variant,n=e.size,r=(e.color,e.children),o=e.loading,i=e.setUpperCase,a=e.setBorderRadius,s=e.fontWeight,c=e.type,d=e.linkTo,p=e.minWidth,f=e.onButtonClick,h=e.href,m=e.startIcon,v=e.endIcon,g=e.disabled,y=e.hasShadow,b=void 0===y||y,x=e.sx,w=(0,ze.s0)();return(0,u.jsx)(Io,{variant:t,size:n,onClick:function(){return d?w(d):f(d)},href:h,startIcon:null!==m&&void 0!==m?m:null,endIcon:null!==v&&void 0!==v?v:null,disabled:null!==g&&void 0!==g&&g,loading:o,type:c,sx:(0,l.Z)({textTransform:i?"uppercase":"none",borderRadius:a?1:"none",fontWeight:s||"normal",fontSize:"12px",minWidth:null!==p&&void 0!==p?p:64,backgroundColor:"primaryLight.500",height:"45px",boxShadow:b?"6px 6px 15px rgba(109, 81, 246, 0.4);":"",color:"primaryDark.150","&:hover":{boxShadow:"none",backgroundColor:"primaryLight.500"},"&.Mui-disabled":{backgroundColor:"primaryLight.100",color:"primaryDark.150"}},x),children:r})},Ame=function(e){var t=e.subtask,n=(0,o.useState)(!1),r=(0,Le.Z)(n,2),i=r[0],a=r[1],s=(0,ze.UO)().taskId,c=(0,As.Z)({resource:"/subtasks"}).mutate,d=(0,Ms.J)(),p=fd({mode:"onChange",defaultValues:(0,l.Z)((0,l.Z)({},t),{},{task:s})}),f=p.handleSubmit;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(Nl.Z,{onClick:function(){return a(!0)},onFocus:function(){return null},children:[(0,u.jsx)(N3.Z,{children:(0,u.jsx)(Dme.Z,{})}),"Edit"]}),(0,u.jsx)(vs.Z,{open:i,onClose:function(){return a(!1)},children:(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},p),{},{children:(0,u.jsx)("form",{onSubmit:f((function(e){c({data:e,id:t.id},{onSuccess:function(e){a(!1),d()}})})),children:(0,u.jsx)(nn.Z,{sx:{width:"50%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:(0,u.jsx)(Eh,{dateAdapter:vg,children:(0,u.jsx)(ao.Z,{sx:{padding:"2em"},children:(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(nn.Z,{children:(0,u.jsx)(rn.Z,{sx:{fontSize:"1.25em",fontWeight:600},children:"Edit subtask"})}),(0,u.jsx)(nn.Z,{children:(0,u.jsxs)(nn.Z,{direction:"row",spacing:2,children:[(0,u.jsx)(R4,{name:"status",label:"",icon:(0,u.jsx)(Ome.Z,{sx:{color:"#C5C7C3"}}),checkedIcon:(0,u.jsx)(Eme.Z,{sx:{color:"#015732"}}),onKeyDown:function(e){return e.stopPropagation()}}),(0,u.jsx)(Zd,{name:"name",onKeyDown:function(e){return e.stopPropagation()}}),(0,u.jsx)(Vw,{name:"end"})]})}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",sx:{justifyContent:"right"},children:[(0,u.jsx)(jZ,{variant:"text",setBorderRadius:!0,onButtonClick:function(){return a(!1)},sx:{borderRadius:"100px",fontWeight:500},children:"Cancel"}),(0,u.jsx)(Pme,{variant:"contained",color:"secondary",setBorderRadius:!0,type:"submit",onButtonClick:function(){},children:"Confirm"})]})]})})})})})}))})]})},Mme=n(85950),Tme=function(e){var t=e.subtask,n=(0,o.useState)(!1),r=(0,Le.Z)(n,2),i=r[0],a=r[1],s=zk({resource:"/subtasks"}).mutate,l=(0,Ms.J)();return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(Nl.Z,{onClick:function(){return a(!0)},children:[(0,u.jsx)(N3.Z,{children:(0,u.jsx)(Mme.Z,{})}),"Delete"]}),(0,u.jsx)(vs.Z,{open:i,onClose:function(){return a(!1)},children:(0,u.jsx)(nn.Z,{sx:{width:"40%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:(0,u.jsx)(Eh,{dateAdapter:vg,children:(0,u.jsx)(ao.Z,{sx:{padding:"2em"},children:(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(nn.Z,{children:(0,u.jsx)(rn.Z,{sx:{fontSize:"1.25em",fontWeight:600,my:2},children:"Delete subtask"})}),(0,u.jsx)(nn.Z,{children:(0,u.jsx)(rn.Z,{sx:{fontSize:"1em",fontWeight:500,mt:1},children:"Are you sure you want to delete the subtask?"})}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",sx:{justifyContent:"space-between"},children:[(0,u.jsx)(jZ,{variant:"text",setBorderRadius:!0,onButtonClick:function(){return a(!1)},sx:{borderRadius:"100px",fontWeight:500},children:"Cancel"}),(0,u.jsx)(jZ,{variant:"contained",color:"secondary",setBorderRadius:!0,onButtonClick:function(){s({id:t.id},{onSuccess:function(e){a(!1),l()}})},sx:{borderRadius:"100px",fontWeight:500},children:"Confirm"})]})]})})})})})]})},Ime=function(e){var t=e.params,n=(0,o.useState)(!1),r=(0,Le.Z)(n,2),i=r[0],a=r[1],s=(0,o.useState)(null),l=(0,Le.Z)(s,2),c=l[0],d=l[1],p=Yd(),f=null===p||void 0===p?void 0:p.includes(Kt.ks.Buyer),h=(0,o.useState)(null),m=(0,Le.Z)(h,2),v=m[0],g=m[1],y=(0,o.useState)(!1),b=(0,Le.Z)(y,2),x=b[0],w=b[1],C=function(e){d(null),a(!1),g(e.row.id),w(!0)};return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(F5,{entityId:v,entityType:T5.Subtask,actionType:f?t.row.buyerFlagged?R5.Unflag:R5.Flag:t.row.sellerFlagged?R5.Unflag:R5.Flag,isModalOpen:x,setIsModalOpen:w}),(0,u.jsx)(io.Z,{className:"react-joyride-step-8-task",onClick:function(e){return function(e){d(e.currentTarget),a(!0)}(e)},children:(0,u.jsx)(Ok.Z,{sx:{fontSize:"1.55rem"}})}),(0,u.jsxs)(Uo.Z,{id:"menu-".concat(t.row.id),transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{vertical:"bottom",horizontal:"right"},elevation:1,open:i,anchorEl:c,onClose:function(){return a(!i)},sx:{"& .MuiPaper-root":{backgroundColor:"grey.50"}},children:[(0,u.jsxs)(Nl.Z,{onClick:function(){return C(t)},children:[(0,u.jsx)(N3.Z,{children:(0,u.jsx)(Zme.Z,{})}),f?t.row.buyerFlagged?"Un-Flag subtask":"Flag subtask":t.row.sellerFlagged?"Un-Flag subtask":"Flag subtask"]}),(0,u.jsx)(Ame,{subtask:t.row}),(0,u.jsx)(Tme,{subtask:t.row})]},"menu-".concat(t.row.id))]})};function Rme(e){var t=e.onChange,n=e.checked,r=e.onClick,o=e.className;return(0,u.jsx)(G$.Z,{className:o||void 0,onChange:t,onClick:r,checked:n})}var Fme,Bme=function(e){var t=e.data,n=e.className,r=(0,As.Z)({resource:"/subtasks"}).mutate,o=(0,Ms.J)();return(0,u.jsx)(Rme,{className:n||void 0,checked:t.status,onClick:function(e){t.status=!t.status,r({data:t,id:t.id},{onSuccess:function(e){o()}})}})},Lme=function(e){var t=e.value,n=e.rows,r=e.tabIndex,o=Yd(),i=null===o||void 0===o?void 0:o.includes(Kt.ks.Buyer),a=[{field:"id",headerName:" ",flex:.03,disableColumnMenu:!0,sortable:!1,renderCell:function(e){return(0,u.jsx)(Bme,{className:"react-joyride-step-7-task",data:e.row})}},{field:"name",headerName:"Name",width:400,editable:!0,flex:.9,renderCell:function(e){return(0,u.jsxs)(nn.Z,{spacing:1,direction:"row",children:[(0,u.jsx)(rn.Z,{sx:{fontSize:"0.875rem"},children:e.row.name}),(i&&e.row.buyerFlagged||!i&&e.row.sellerFlagged)&&(0,u.jsx)(io.Z,{disableRipple:!0,color:"primary",component:"span",sx:{"&.MuiIconButton-root":{backgroundColor:kme.Z[50],padding:1.25,width:"1rem",height:"1rem"}},children:(0,u.jsx)(Sme.Z,{sx:{height:"1.1rem",color:kme.Z[700]}})})]})}},{field:"end",headerName:"End date",editable:!1,width:180,renderCell:function(e){return(0,u.jsx)(rn.Z,{sx:{fontSize:"0.875rem"},children:(0,rs.qJ)(e.value)})}},{field:"menu",headerName:"",flex:.01,align:"center",sortable:!1,editable:!1,disableColumnMenu:!0,renderCell:function(e){return(0,u.jsx)(Ime,{params:e})}}];return(0,u.jsx)(U1,{sx:{overflow:"hidden",bgcolor:"white",p:0,borderRadius:"16px",border:"1px solid #C5C7C3"},value:t,tabIndex:r,children:(0,u.jsx)(l0._$r,{columns:a,rows:n,getRowId:function(e){return e.id},disableSelectionOnClick:!0,hideFooter:!0,sx:{height:"400px"}})})};!function(e){e.ALL="All",e.TODO="To do",e.COMPLETE="Complete"}(Fme||(Fme={}));var Nme=[Fme.ALL,Fme.TODO,Fme.COMPLETE],_me=function(e){var t,n,r=e.task,i=(0,o.useState)(Nme[0]),a=(0,Le.Z)(i,2),s=a[0],l=a[1],c=hi({resource:"/subtasks?task=".concat(null===r||void 0===r?void 0:r.id)}).data,d=null===c||void 0===c?void 0:c.data.results;return(0,u.jsx)(tn,{sx:{width:"100%"},children:(0,u.jsx)(nn.Z,{direction:"column",spacing:1,children:(0,u.jsx)(o1,{value:s,children:(0,u.jsxs)(tn,{children:[(0,u.jsxs)(T1,{className:"react-joyride-step-5-task",sx:{mb:1.5,"& .MuiTabs-indicator":{bgcolor:"secondary.main",mb:"8px !important"}},value:s,onChange:function(e,t){return l(t)},textColor:"secondary",indicatorColor:"secondary",children:[(0,u.jsx)(N1,{value:Fme.ALL,label:"All (".concat(null===r||void 0===r?void 0:r.subtasksCount,")")}),(0,u.jsx)(N1,{value:Fme.TODO,label:"To do (".concat((null===r||void 0===r?void 0:r.subtasksCount)-(null===r||void 0===r?void 0:r.subtasksCompletedCount),")")}),(0,u.jsx)(N1,{value:Fme.COMPLETE,label:"Completed (".concat(null===r||void 0===r?void 0:r.subtasksCompletedCount,")")})]}),(0,u.jsx)(Lme,{value:Fme.ALL,tabIndex:0,rows:null!==d&&void 0!==d?d:[]}),(0,u.jsx)(Lme,{value:Fme.TODO,tabIndex:1,rows:null!==(t=null===d||void 0===d?void 0:d.filter((function(e){return!0!==(null===e||void 0===e?void 0:e.status)})))&&void 0!==t?t:[]}),(0,u.jsx)(Lme,{value:Fme.COMPLETE,tabIndex:2,rows:null!==(n=null===d||void 0===d?void 0:d.filter((function(e){return!0===(null===e||void 0===e?void 0:e.status)})))&&void 0!==n?n:[]})]})})})})},zme=function(e){var t=e.taskData,n=e.taskStatus,r=e.isTaskFlagged,o=e.setIsModalOpen,i=(e.sx,Math.ceil((null===t||void 0===t?void 0:t.subtasksCompletedCount)/(null===t||void 0===t?void 0:t.subtasksCount)*100));return(0,u.jsxs)(nn.Z,{spacing:4,children:[(0,u.jsx)(nn.Z,{direction:"row",sx:{justifyContent:"space-around"},children:(0,u.jsx)(jM,{displayScore:!0,size:10,truePercentage:isNaN(i)?0:i})}),(0,u.jsx)(jZ,{color:"secondary",className:"react-joyride-step-2-task",variant:"outlined",setBorderRadius:!0,disabled:n===Kt.YH.Pending,onButtonClick:function(){return o(!0)},startIcon:(0,u.jsx)(Sme.Z,{}),size:"large",children:r?"Un-Flag task":"Flag task"})]})};function Hme(e){var t=e.detailScreenType,n=e.price,r=e.start,o=e.end,i=e.sx;return(0,u.jsx)(NZ,{elevation:0,sx:(0,l.Z)({border:"1px solid #C5C7C3",borderRadius:"1rem"},i),children:(0,u.jsxs)(nn.Z,{sx:{padding:"1em"},spacing:2,children:[t!==T5.Task&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(nn.Z,{direction:"row",sx:{justifyContent:"space-between"},children:[(0,u.jsx)(rn.Z,{sx:{fontSize:".875em",fontWeight:600},children:"Budget"}),(0,u.jsx)(rn.Z,{sx:{fontSize:".875em"},children:n})]}),(0,u.jsx)(un,{})]}),(0,u.jsxs)(nn.Z,{direction:"row",sx:{justifyContent:"space-between"},children:[(0,u.jsx)(rn.Z,{sx:{fontSize:".875em",fontWeight:600},children:"Start date"}),(0,u.jsx)(rn.Z,{sx:{fontSize:".875em"},children:r})]}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{direction:"row",sx:{justifyContent:"space-between"},children:[(0,u.jsx)(rn.Z,{sx:{fontSize:".875em",fontWeight:600},children:"End date"}),(0,u.jsx)(rn.Z,{sx:{fontSize:".875em"},children:o})]})]})})}var Wme=n(19425),Vme=function(e){var t=e.task,n=(0,o.useState)(!1),r=(0,Le.Z)(n,2),i=r[0],a=r[1],s=(0,ze.UO)().taskId,c=(0,As.Z)({resource:"/tasks"}).mutate,d=(0,Ms.J)(),p=fd({mode:"onChange"}),f=p.handleSubmit,h=p.reset;(0,o.useEffect)((function(){h((0,l.Z)({},t))}),[i]);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(jZ,{onButtonClick:function(){return a(!0)},startIcon:(0,u.jsx)(Dme.Z,{sx:{fontSize:"1.45rem !important"}}),fontWeight:"500",setBorderRadius:!0,size:"large",className:"react-joyride-step-4-task",variant:"outlined",color:"secondary",children:"Edit"}),(0,u.jsx)(vs.Z,{open:i,onClose:function(){return a(!1)},children:(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},p),{},{children:(0,u.jsx)("form",{onSubmit:f((function(e){c({data:e,id:s},{onSuccess:function(e){a(!1),d()}})})),children:(0,u.jsx)(nn.Z,{sx:{width:"50%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:(0,u.jsx)(Eh,{dateAdapter:vg,children:(0,u.jsx)(ao.Z,{sx:{padding:"2em"},children:(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(nn.Z,{children:(0,u.jsx)(rn.Z,{sx:{fontSize:"1.25em",fontWeight:600},children:"Edit task"})}),(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsxs)(nn.Z,{direction:"row",spacing:2,children:[(0,u.jsx)(R4,{name:"status",label:"",icon:(0,u.jsx)(Ome.Z,{sx:{color:"#C5C7C3"}}),checkedIcon:(0,u.jsx)(Eme.Z,{sx:{color:"#015732"}})}),(0,u.jsx)(Zd,{name:"name"}),(0,u.jsx)(Vw,{name:"start"}),(0,u.jsx)(Vw,{name:"end"})]}),(0,u.jsx)(Zd,{name:"description",multiline:!0,minRows:4,label:"Task description",placeholder:"Type",variant:"outlined"})]}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",sx:{justifyContent:"right"},children:[(0,u.jsx)(jZ,{variant:"text",onButtonClick:function(){return a(!1)},sx:{borderRadius:"100px",fontWeight:500},children:"Cancel"}),(0,u.jsx)(Pme,{variant:"contained",color:"secondary",onButtonClick:function(){},type:"submit",sx:{borderRadius:"100px",fontWeight:500},children:"Confirm"})]})]})})})})})}))})]})},Ume=n(43615),qme=function(e){var t=e.task,n=(0,o.useState)(!1),r=(0,Le.Z)(n,2),i=r[0],a=r[1],s=(0,ze.UO)().taskId,l=(0,ze.s0)(),c=zk({resource:"/tasks"}).mutate;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(jZ,{onButtonClick:function(){return a(!0)},startIcon:(0,u.jsx)(Ume.Z,{sx:{fontSize:"1.45rem !important"}}),fontWeight:"500",setBorderRadius:!0,size:"large",variant:"outlined",className:"react-joyride-step-3-task",color:"secondary",children:"Delete"}),(0,u.jsx)(vs.Z,{open:i,onClose:function(){return a(!1)},children:(0,u.jsx)(nn.Z,{sx:{width:"40%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:(0,u.jsx)(Eh,{dateAdapter:vg,children:(0,u.jsx)(ao.Z,{sx:{padding:"2em"},children:(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(nn.Z,{children:(0,u.jsx)(rn.Z,{sx:{fontSize:"1.25em",fontWeight:600,mt:3,mb:2},children:"Delete task"})}),(0,u.jsx)(nn.Z,{children:(0,u.jsx)(rn.Z,{sx:{fontSize:"1em",fontWeight:500,mt:3},children:"Are you sure you want to delete the task?"})}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",sx:{justifyContent:"right"},children:[(0,u.jsx)(jZ,{setBorderRadius:!0,variant:"text",onButtonClick:function(){return a(!1)},sx:{borderRadius:"100px",fontWeight:500},children:"Cancel"}),(0,u.jsx)(jZ,{setBorderRadius:!0,color:"secondary",variant:"contained",onButtonClick:function(){c({id:s},{onSuccess:function(e){a(!1),l("../milestone/".concat(t.milestone))}})},sx:{borderRadius:"100px",fontWeight:500},children:"Confirm"})]})]})})})})})]})},Gme=function(e){var t=e.taskData;e.sx;return(0,u.jsxs)(nn.Z,{spacing:8,sx:{justifyContent:"center",alignItems:"center"},children:[(0,u.jsx)(da.Z,{component:"img",sx:{width:"8.5em",mx:"auto",mt:"1em"},src:Wme,alt:"task-edit-img"}),(0,u.jsxs)(nn.Z,{direction:"row",sx:{justifyContent:"space-between",width:"100%"},children:[(0,u.jsx)(qme,{task:t}),(0,u.jsx)(Vme,{task:t})]})]})},Yme=new Map([[Kt.YH.Completed,"Completed"],[Kt.YH.InProgress,"In Progress"],[Kt.YH.Pending,"Pending"],[Kt.YH.Canceled,"Canceled"]]),Kme=function(e){var t=e.task,n=e.fontSize,r=void 0===n?"10px !important":n,o=e.className,i=(0,As.Z)({resource:"/tasks"}).mutate,a=(0,Ms.J)(),s=null===t||void 0===t?void 0:t.status;return(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(UQ.Z,{sx:{m:1,width:"fit-content",my:"auto"},children:(0,u.jsx)(Od.Z,{className:o||void 0,sx:{fontSize:r,"&.MuiInputBase-root":{borderRadius:6,background:function(e){switch(e){case Kt.YH.Completed:return"#D1F6D0";case Kt.YH.InProgress:return"#DFE0FF";case Kt.YH.Canceled:return"#FFB4A9";case Kt.YH.Pending:return"#F8EBCB";default:return"#C5C7C3"}}(s)},"& .MuiSelect-select":{padding:"3.5px 10px"},"& .MuiOutlinedInput-notchedOutline":{border:"none"}},displayEmpty:!0,value:s,onChange:function(e){t.status=e.target.value,i({data:t,id:t.id},{onSuccess:function(e){a()}})},input:(0,u.jsx)(_$.Z,{}),renderValue:function(e){return e?Yme.get(e):(0,u.jsx)("em",{children:Yme.get(s)})},inputProps:{"aria-label":"Without label"},children:Object.values(Kt.YH).map((function(e){return(0,u.jsx)(Nl.Z,{value:e,children:(0,u.jsx)(rn.Z,{sx:{fontSize:r},children:Yme.get(e)})},e)}))})})})},Jme=n(96152),Xme=function(e){e.task;var t=(0,o.useState)(!1),n=(0,Le.Z)(t,2),r=n[0],i=n[1],a=(0,ze.UO)().taskId,s=(0,As.Z)({resource:"/tasks"}).mutate,c=(0,Ms.J)(),d=fd({mode:"onChange",defaultValues:{subtasks:[{status:!1,name:"",end:new Date}]}}),p=d.control,f=d.reset,h=Du({control:p,name:"subtasks"}),m=h.fields,v=h.append,g=h.remove,y=d.handleSubmit,b=d.formState;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(jZ,{onButtonClick:function(){return i(!0)},startIcon:(0,u.jsx)(Jme.Z,{sx:{fontSize:"1.45rem !important"}}),fontWeight:"500",setBorderRadius:!0,size:"large",variant:"outlined",className:"react-joyride-step-6-task",color:"secondary",children:"Add subtask"}),(0,u.jsx)(vs.Z,{open:r,onClose:function(){return i(!1)},children:(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},d),{},{children:(0,u.jsx)("form",{onSubmit:y((function(e){s({data:e,id:a},{onSuccess:function(e){i(!1),f({subtasks:[{status:!1,name:"",end:new Date}]}),c()}})})),children:(0,u.jsx)(nn.Z,{sx:{width:"50%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:(0,u.jsx)(Eh,{dateAdapter:vg,children:(0,u.jsx)(ao.Z,{sx:{padding:"2em"},children:(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(nn.Z,{children:(0,u.jsx)(rn.Z,{sx:{fontSize:"1.25em",fontWeight:600},children:"Add new task"})}),(0,u.jsxs)(nn.Z,{children:[m.map((function(e,t){return(0,u.jsxs)(nn.Z,{direction:"row",spacing:2,sx:{alignItems:"center"},children:[(0,u.jsx)(R4,{name:"subtasks.".concat(t,".status"),label:"",sx:{mt:3},icon:(0,u.jsx)(Ome.Z,{sx:{color:"#C5C7C3"}}),checkedIcon:(0,u.jsx)(Eme.Z,{sx:{color:"#015732"}})}),(0,u.jsx)(Zd,{name:"subtasks.".concat(t,".name"),label:"Name",required:!0}),(0,u.jsx)(Vw,{name:"subtasks.".concat(t,".end"),label:"End date",required:!0}),(0,u.jsx)(io.Z,{onClick:function(){0!==t?g(t):i(!1)},disabled:0===t,children:(0,u.jsx)(Mme.Z,{sx:{mt:2}})})]})})),(0,u.jsx)(jZ,{onButtonClick:function(){v({status:!1,name:"",end:new Date})},variant:"outlined",endIcon:(0,u.jsx)(Jme.Z,{}),sx:{mt:2,width:"12em",border:2,borderRadius:"100px",fontWeight:500},children:"Add subtask"})]}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",sx:{justifyContent:"right"},children:[(0,u.jsx)(jZ,{variant:"text",onButtonClick:function(){i(!1),f({subtasks:[{status:!1,name:"",end:new Date}]})},sx:{borderRadius:"100px",fontWeight:500},children:"Cancel"}),(0,u.jsx)(Pme,{variant:"contained",onButtonClick:function(){return null},type:"submit",disabled:!b.isValid,sx:{borderRadius:"100px",fontWeight:500},children:"Confirm"})]})]})})})})})}))})]})},Qme=function(){var e=(0,ze.UO)().taskId,t=Ra({resource:"tasks",id:e}).data,n=(0,o.useState)(!1),r=(0,Le.Z)(n,2),i=r[0],a=r[1],s=Yd(),l=null===s||void 0===s?void 0:s.includes(Kt.ks.Buyer),c=(0,o.useState)(!1),d=(0,Le.Z)(c,2),p=d[0],f=d[1];return(0,o.useEffect)((function(){var e=l?null===t||void 0===t?void 0:t.buyerFlagged:null===t||void 0===t?void 0:t.sellerFlagged;a(e)}),[t]),(0,u.jsx)(u.Fragment,{children:t&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(F5,{entityId:t.id,entityType:T5.Task,actionType:l?t.buyerFlagged?R5.Unflag:R5.Flag:t.sellerFlagged?R5.Unflag:R5.Flag,isModalOpen:p,setIsModalOpen:f}),(0,u.jsxs)(nn.Z,{spacing:8,sx:{width:"100%"},children:[(0,u.jsxs)(nn.Z,{spacing:{xs:2,xl:3},direction:{xs:"column",xl:"row"},justifyContent:"space-between",children:[(0,u.jsxs)(nn.Z,{spacing:{xs:2,xl:3},width:{xs:"100%",xl:"35%"},direction:{xs:"row",xl:"column"},justifyContent:"space-between",children:[(0,u.jsxs)(nn.Z,{spacing:2,width:{xs:"50%",xl:"100%"},children:[(0,u.jsx)(nn.Z,{spacing:.5,children:(0,u.jsx)(rn.Z,{variant:"h3",fontSize:"2rem",fontWeight:"500",children:null===t||void 0===t?void 0:t.name})}),(0,u.jsx)(rn.Z,{children:t.description})]}),(0,u.jsx)(Hme,{detailScreenType:T5.Task,start:(0,rs.qJ)(null===t||void 0===t?void 0:t.start,"-"),end:(0,rs.qJ)(null===t||void 0===t?void 0:t.end,"-"),sx:{width:{xs:"50%",xl:"100%"}}})]}),(0,u.jsxs)(nn.Z,{direction:{xs:"row",xl:"row"},spacing:{xs:2,xl:3},width:{xs:"100%",xl:"65%"},children:[(0,u.jsx)(b2,{sx:{width:{xs:"50%",xl:"50%"}},renderComponent:(0,u.jsx)(Gme,{taskData:t})}),(0,u.jsx)(b2,{mainCardClassName:"react-joyride-step-1-task",headline:"Status",headlineSx:{fontSize:"1rem",color:"#938F99",fontWeight:"500"},sx:{width:{xs:"50%",xl:"50%"}},renderComponent:(0,u.jsx)(zme,{taskData:t,taskStatus:t.status,isTaskFlagged:l?t.buyerFlagged:t.sellerFlagged,setIsModalOpen:f}),headlineEndIcon:i&&(0,u.jsx)(io.Z,{disableRipple:!0,color:"primary",component:"span",sx:{"&.MuiIconButton-root":{backgroundColor:kme.Z[50],padding:1.75,width:"1rem",height:"1rem"}},children:(0,u.jsx)(Sme.Z,{sx:{height:"1.1rem",color:kme.Z[700]}})}),headlineEndElement:(0,u.jsx)(Kme,{task:t,fontSize:"0.875rem !important"})})]})]}),(0,u.jsxs)(nn.Z,{spacing:1,direction:"column",sx:{height:"fit-content",width:"100%"},children:[(0,u.jsxs)(nn.Z,{direction:"row",sx:{justifyContent:"space-between",my:"auto"},children:[(0,u.jsx)(rn.Z,{sx:{fontWeight:500,fontSize:"1.7em"},children:"Subtasks"}),(0,u.jsx)(Xme,{task:t})]}),(0,u.jsx)(_me,{task:t})]})]})]})})};Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function $me(e,t){return function(n,r,o){var i=!1;"string"!==typeof t||i||(console.warn("[zustand devtools middleware]: passing `name` as directly will be not allowed in next majorpass the `name` in an object `{ name: ... }` instead"),i=!0);var a,s=void 0===t?{name:void 0,anonymousActionType:void 0}:"string"===typeof t?{name:t}:t;try{a=window.__REDUX_DEVTOOLS_EXTENSION__||window.top.__REDUX_DEVTOOLS_EXTENSION__}catch(v){}if(!a)return"undefined"!==typeof window&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,o);var l=Object.create(a.connect(s)),c=!1;Object.defineProperty(o,"devtools",{get:function(){return c||(console.warn("[zustand devtools middleware] `devtools` property on the store is deprecated it will be removed in the next major.\nYou shouldn't interact with the extension directly. But in case you still want to you can patch `window.__REDUX_DEVTOOLS_EXTENSION__` directly"),c=!0),l},set:function(e){c||(console.warn("[zustand devtools middleware] `api.devtools` is deprecated, it will be removed in the next major.\nYou shouldn't interact with the extension directly. But in case you still want to you can patch `window.__REDUX_DEVTOOLS_EXTENSION__` directly"),c=!0),l=e}});var u=!1;Object.defineProperty(l,"prefix",{get:function(){return u||(console.warn("[zustand devtools middleware] along with `api.devtools`, `api.devtools.prefix` is deprecated.\nWe no longer prefix the actions/names"+s.name===void 0?", pass the `name` option to create a separate instance of devtools for each store.":", because the `name` option already creates a separate instance of devtools for each store."),u=!0),""},set:function(){u||(console.warn("[zustand devtools middleware] along with `api.devtools`, `api.devtools.prefix` is deprecated.\nWe no longer prefix the actions/names"+s.name===void 0?", pass the `name` option to create a separate instance of devtools for each store.":", because the `name` option already creates a separate instance of devtools for each store."),u=!0)}});var d=!0;o.setState=function(e,t,o){n(e,t),d&&l.send(void 0===o?{type:s.anonymousActionType||"anonymous"}:"string"===typeof o?{type:o}:o,r())};var p=function(){var e=d;d=!1,n.apply(void 0,arguments),d=e},f=e(o.setState,r,o);if(l.init(f),o.dispatchFromDevtools&&"function"===typeof o.dispatch){var h=!1,m=o.dispatch;o.dispatch=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"__setState"!==t[0].type||h||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),h=!0),m.apply(void 0,t)}}return l.subscribe((function(e){var t;switch(e.type){case"ACTION":return"string"!==typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):tve(e.payload,(function(e){"__setState"!==e.type?o.dispatchFromDevtools&&"function"===typeof o.dispatch&&o.dispatch(e):p(e.state)}));case"DISPATCH":switch(e.payload.type){case"RESET":return p(f),l.init(o.getState());case"COMMIT":return l.init(o.getState());case"ROLLBACK":return tve(e.state,(function(e){p(e),l.init(o.getState())}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return tve(e.state,(function(e){p(e)}));case"IMPORT_STATE":var n=e.payload.nextLiftedState,r=null==(t=n.computedStates.slice(-1)[0])?void 0:t.state;if(!r)return;return p(r),void l.send(null,n);case"PAUSE_RECORDING":return d=!d}return}})),f}}var eve,tve=function(e,t){var n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}void 0!==n&&t(n)},nve=(Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,ZS($me((function(e){return{canGoNext:!1,setCanGoNext:function(t){return e((function(){return{canGoNext:t}}))},canSaveAsDraft:!1,setCanSaveAsDraft:function(t){return e((function(){return{canSaveAsDraft:t}}))},canSubmit:!1,setCanSubmit:function(t){return e((function(){return{canSubmit:t}}))}}})))),rve=nve;!function(e){e.REGULAR="Regular",e.PREVIEW="Preview"}(eve||(eve={}));var ove,ive=function(e){var t,n,r,i,a,s,c=e.stepComponents,d=e.finishComponent,p=e.onFinish,f=e.onSaveDraft,h=e.width,m=(e.height,e.minHeight),v=e.sx,g=e.showComponent,y=void 0===g||g,b=e.setShowComponent,x=e.pushButtonsToBottom,w=e.centerButtons,C=e.buttonsVerticalMargins,j=e.buttonsTopPadding,S=e.buttonsBottomPadding,k=e.buttonsHaveRadius,Z=e.shouldGoBackOnFirstStep,O=e.showSaveDraftButton,E=e.isSubmitButtonLoading,D=e.isSubmitSuccessful,A=e.horizontalLineColor,M=e.setIsCurrentStepPreview,T=e.shouldShowStepper,I=void 0===T||T,R=e.liftActiveStep,F=(0,P.ZP)("div")((function(e){var t=e.theme,n=e.ownerState;return(0,l.Z)((0,l.Z)({color:"dark"===t.palette.mode?t.palette.grey[700]:null!==A&&void 0!==A?A:"#eaeaf0",display:"flex",height:22,alignItems:"center"},n.active&&{color:t.palette.secondary.main}),{},{"& .HorizontalLine-base":{width:120,height:5,borderRadius:"20px",backgroundColor:"currentColor"},"& .HorizontalLine-completed":{color:"#CCBEFF",zIndex:1,fontSize:18}})}));function B(e){var t=e.active,n=e.completed,r=e.className;return(0,u.jsx)(F,{ownerState:{active:t},className:r,children:n?(0,u.jsx)("div",{className:"HorizontalLine-base HorizontalLine-completed"}):(0,u.jsx)("div",{className:"HorizontalLine-base"})})}var L=rve((function(e){return e.canGoNext})),N=rve((function(e){return e.canSaveAsDraft})),_=rve((function(e){return e.canSubmit})),z=(0,o.useState)(0),H=(0,Le.Z)(z,2),W=H[0],V=H[1],U=(0,o.useState)(null===I||void 0===I||I),q=(0,Le.Z)(U,2),G=q[0],Y=q[1],K=(0,o.useState)(!1),J=(0,Le.Z)(K,2)[1],X=(0,o.useState)(!0),Q=(0,Le.Z)(X,2),$=Q[0],ee=Q[1],te=(0,o.useState)(!1),ne=(0,Le.Z)(te,2),re=ne[0],oe=ne[1],ie=(0,o.useState)(!0),ae=(0,Le.Z)(ie,2),se=ae[0],le=ae[1];return(0,o.useEffect)((function(){D&&(oe(!0),J(!1),le(!1),ee(!1),Y(!1))}),[D]),(0,o.useEffect)((function(){M&&(c[W].type===eve.PREVIEW?M(!0):M(!1)),R&&R(W)}),[W]),(0,u.jsx)(u.Fragment,{children:y&&(0,u.jsxs)(nn.Z,{sx:(0,l.Z)({width:null!==h&&void 0!==h?h:"100%",minHeight:null!==m&&void 0!==m?m:"100%"},v),children:[G&&(0,u.jsx)(_M,{activeStep:W,connector:null,sx:{mb:4},children:c.map((function(e,t){return(0,u.jsx)(UM,{sx:{height:"100%",minHeight:"62px"},children:(0,u.jsx)(uT,{StepIconComponent:B,sx:{height:"100%",flexDirection:"column-reverse","& .MuiStepLabel-label":{maxWidth:"fit-content",fontWeight:"bold","&.Mui-active":{fontWeight:"bold",color:"#7E0CF5"},"&.Mui-completed":{fontWeight:"bold",color:"#CCBEFF"},"&.Mui-disabled":{fontWeight:"bold",color:"#C5C7C3"}}},children:e.label})},e.label)}))}),$&&"heading"in c[W]&&"subheading"in c[W]&&"string"===typeof(null===(t=c[W])||void 0===t?void 0:t.heading)&&"string"===typeof(null===(n=c[W])||void 0===n?void 0:n.subheading)?(0,u.jsxs)(nn.Z,{spacing:1.5,sx:{mb:7},children:[(0,u.jsx)(rn.Z,{variant:"h5",sx:{fontWeight:"600"},children:null===(r=c[W])||void 0===r?void 0:r.heading}),(0,u.jsx)(rn.Z,{variant:"body1",children:null===(i=c[W])||void 0===i?void 0:i.subheading})]}):(0,u.jsxs)(nn.Z,{spacing:1.5,sx:{mb:7},children:[null===(a=c[W])||void 0===a?void 0:a.heading,null===(s=c[W])||void 0===s?void 0:s.subheading]}),$&&(0,u.jsx)(tn,{sx:{flexGrow:x?1:0},children:W!==c.length&&c[W].component}),(0,u.jsx)("div",{hidden:W!==c.length&&!re,style:{width:"100%",height:"100%"},children:d}),(0,u.jsx)(un,{sx:{mb:2,mt:4}}),W!==c.length&&se&&(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{width:w?"55%":"100%",alignSelf:w?"center":"auto",my:null!==C&&void 0!==C?C:0,pb:null!==S&&void 0!==S?S:0,pt:null!==j&&void 0!==j?j:0},children:[(0,u.jsx)(jZ,{disabled:0===W&&!Z,onButtonClick:function(){b&&0===W?b(!1):V((function(e){return e-1}))},setBorderRadius:null===k||void 0===k||k,fontWeight:"bold",variant:"outlined",color:"secondary",minWidth:120,children:"Back"}),(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",children:[O&&(0,u.jsx)(jZ,{disabled:!N,onButtonClick:function(){f&&f()},setBorderRadius:null===k||void 0===k||k,fontWeight:"bold",variant:"outlined",color:"secondary",minWidth:120,children:"Save Draft"}),W===c.length-1?(0,u.jsx)(Pme,{disabled:!_,loading:E,onButtonClick:p,setBorderRadius:null===k||void 0===k||k,fontWeight:"bold",variant:"contained",color:"secondary",minWidth:120,children:"Submit"}):(0,u.jsx)(jZ,{disabled:!L,onButtonClick:function(){V((function(e){return e+1}))},setBorderRadius:null===k||void 0===k||k,fontWeight:"bold",variant:"contained",color:"secondary",minWidth:120,children:c[W+1].type===eve.PREVIEW?"Preview":"Next"})]})]})]})})};!function(e){e.Draft="Draft",e.Active="Active",e.Paid="Paid",e.Finished="Finished",e.In_progress="In progress",e.InProgress="In_progress",e.Paused="Paused",e.Cancelled="Cancelled",e.Pending="Pending",e.Due="Due"}(ove||(ove={}));var ave=ove;function sve(e){var t=e.text,n=e.fontSize,r=void 0===n?"10px !important":n,i=e.sx,a=e.className,s=e.componentReturnType,c=void 0===s?"default":s,d=(0,o.useState)(""),p=(0,Le.Z)(d,2),f=p[0],h=p[1],m=(0,o.useState)(""),v=(0,Le.Z)(m,2),g=v[0],y=v[1],b=(0,o.useState)(""),x=(0,Le.Z)(b,2),w=x[0],C=x[1],j=(0,o.useState)(null),S=(0,Le.Z)(j,2),k=S[0],Z=S[1];(0,o.useEffect)((function(){Object.values(ave).includes(t)?Z(T$.mi):Object.values(Kt.FP).includes(t)?Z(T$.R2):Object.values(Kt.bG).includes(t)?Z(T$.ud):Object.values(Kt.Ru).includes(t)?Z(T$.r9):Object.values(Kt.tg).includes(t)&&Z(T$.SC)}),[t]),(0,o.useEffect)((function(){switch(t){case Kt.FP.InProgress:case Kt.tg.UnderReview:case Kt.Ru.Negotiation:case ave.In_progress:case ave.InProgress:case ave.Pending:case ave.Active:if("default"===c){h("#DFE0FF"),C("#202578");break}h(tr.dx[700]),y(tr.dx[100]);break;case Kt.Ru.Active:case Kt.Ru.Accepted:case Kt.bG.Paid:case Kt.FP.Completed:case Kt.tg.Approved:case ave.Paid:if("default"===c){h("#D1F6D0"),C("#015733");break}h(tr.so[500]),y(tr.so[200]),C(tr.so[200]);break;case Kt.FP.Pending:case Kt.bG.Late:case Kt.bG.InProgress:if("default"===c){h("#F8EBCB"),C("#553F05");break}h(tr.oq[700]),y(tr.oq[200]),C(tr.oq[200]);break;case Kt.Ru.Draft:case ave.Draft:if("default"===c){h("#E8DEFF"),C("#202578");break}h(tr.Us[700]),y(tr.Us[200]),C(tr.oq[200]);break;case ave.Cancelled:case Kt.FP.Canceled:case Kt.Ru.Canceled:h("#C5C7C3"),C("#2D312E");break;default:"default"===c&&(h("#C5C7C3"),C("#202578")),h(tr.so[500])}}));var O={padding:".25em .875em",borderRadius:"1em",backgroundColor:"".concat(f)};return(0,u.jsx)(u.Fragment,{children:"default"===c?(0,u.jsx)(nn.Z,{direction:"row",className:a||void 0,children:(0,u.jsx)(tn,{sx:O,children:k&&(0,u.jsx)(rn.Z,{sx:(0,l.Z)({fontSize:r,color:w||(0,rs.HO)(f,-140)},i),children:k.get(t)})})}):(0,u.jsx)(tn,{sx:{backgroundColor:""!==f?f:"secondaryGreen.500",borderRadius:"50%",width:18,height:18,border:"3px solid",borderColor:""!==g?g:"secondaryGreen.200"}})})}var lve=ZS($me((function(e){return{initialState:{},taskManagementInput:{},setTaskManagementInput:function(t){return e((function(e){return{taskManagementInput:(0,l.Z)((0,l.Z)({},e.taskManagementInput),t)}}))}}}))),cve=lve;function uve(){var e=cve((function(e){return e.taskManagementInput}));return(0,u.jsx)(nn.Z,{spacing:6,sx:{marginBottom:"4em"},children:(0,u.jsxs)(rn.Z,{sx:{textAlign:"center"},children:[(0,u.jsx)(nn.Z,{children:(0,u.jsx)(rn.Z,{children:"You have successfully created a new task."})}),(0,u.jsx)(nn.Z,{children:(0,u.jsxs)(rn.Z,{sx:{display:"flex",justifyContent:"center"},children:["Task is currently in",(0,u.jsx)(tn,{sx:{marginRight:"0.5em"},children:(0,u.jsx)(sve,{text:e.taskStatus})}),"status."]})}),(0,u.jsx)(nn.Z,{children:(0,u.jsx)(rn.Z,{children:"When the agency confirms it the task will be treated as valid within the contract."})})]})})}function dve(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}function pve(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e}),{})}var fve=o.createContext();var hve=fve,mve="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vve="object"===("undefined"===typeof window?"undefined":mve(window))&&"object"===("undefined"===typeof document?"undefined":mve(document))&&9===document.nodeType,gve={}.constructor;function yve(e){if(null==e||"object"!==typeof e)return e;if(Array.isArray(e))return e.map(yve);if(e.constructor!==gve)return e;var t={};for(var n in e)t[n]=yve(e[n]);return t}function bve(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=yve(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var xve=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},wve=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=xve(e[n]," ");else t=xve(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function Cve(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function jve(e,t){for(var n="",r=0;r<t;r++)n+="  ";return n+e}function Sve(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(i=-1/0);var s=Cve(n),l=s.linebreak,c=s.space;if(e&&i++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var p in d){var f=d[p];null!=f&&(r&&(r+=l),r+=jve(p+":"+c+wve(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(r&&(r+=l),r+=jve(h+":"+c+wve(m)+";",i))}for(var v in t){var g=t[v];null!=g&&"fallbacks"!==v&&(r&&(r+=l),r+=jve(v+":"+c+wve(g)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),jve(""+e+c+"{"+r,--i)+jve("}",i)):r}var kve=/([[\].#*$><+~=|^:(),"'`\s])/g,Zve="undefined"!==typeof CSS&&CSS.escape,Ove=function(e){return Zve?Zve(e):e.replace(kve,"\\$1")},Eve=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Dve=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l((0,UF.Z)((0,UF.Z)(o)),s),o.selectorText="."+Ove(o.id)),o}(0,hx.Z)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!==typeof n?e[t]=n:Array.isArray(n)&&(e[t]=wve(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,r.Z)({},e,{allowEmpty:!0}):e;return Sve(this.selectorText,this.style,n)},(0,Dh.Z)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(Eve),Pve={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new Dve(e,t,n)}},Ave={indent:1,children:!0},Mve=/@([\w-]+)/,Tve=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var o=e.match(Mve);for(var i in this.at=o?o[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new rge((0,r.Z)({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=Ave);var t=Cve(e).linebreak;if(null==e.indent&&(e.indent=Ave.indent),null==e.children&&(e.children=Ave.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),Ive=/@container|@media|@supports\s+/,Rve={onCreateRule:function(e,t,n){return Ive.test(e)?new Tve(e,t,n):null}},Fve={indent:1,children:!0},Bve=/@keyframes\s+([\w-]+)/,Lve=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var o=e.match(Bve);o&&o[1]?this.name=o[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,a=n.sheet,s=n.generateId;for(var l in this.id=!1===i?this.name:Ove(s(this,a)),this.rules=new rge((0,r.Z)({},n,{parent:this})),t)this.rules.add(l,t[l],(0,r.Z)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Fve);var t=Cve(e).linebreak;if(null==e.indent&&(e.indent=Fve.indent),null==e.children&&(e.children=Fve.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),Nve=/@keyframes\s+/,_ve=/\$([\w-]+)/g,zve=function(e,t){return"string"===typeof e?e.replace(_ve,(function(e,n){return n in t?t[n]:e})):e},Hve=function(e,t,n){var r=e[t],o=zve(r,n);o!==r&&(e[t]=o)},Wve={onCreateRule:function(e,t,n){return"string"===typeof e&&Nve.test(e)?new Lve(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&Hve(e,"animation-name",n.keyframes),"animation"in e&&Hve(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return zve(e,r.keyframes);default:return e}}},Vve=function(e){function t(){return e.apply(this,arguments)||this}return(0,hx.Z)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,r.Z)({},e,{allowEmpty:!0}):e;return Sve(this.key,this.style,n)},t}(Eve),Uve={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new Vve(e,t,n):null}},qve=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=Cve(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=Sve(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return Sve(this.at,this.style,e)},e}(),Gve=/@font-face/,Yve={onCreateRule:function(e,t,n){return Gve.test(e)?new qve(e,t,n):null}},Kve=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return Sve(this.key,this.style,e)},e}(),Jve={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new Kve(e,t,n):null}},Xve=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),Qve={"@charset":!0,"@import":!0,"@namespace":!0},$ve={onCreateRule:function(e,t,n){return e in Qve?new Xve(e,t,n):null}},ege=[Pve,Rve,Wve,Uve,Yve,Jve,$ve],tge={process:!0},nge={force:!0,process:!0},rge=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var o=this.options,i=o.parent,a=o.sheet,s=o.jss,l=o.Renderer,c=o.generateId,u=o.scoped,d=(0,r.Z)({classes:this.classes,parent:i,sheet:a,jss:s,Renderer:l,generateId:c,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),p=e;e in this.raw&&(p=e+"-d"+this.counter++),this.raw[p]=t,p in this.classes&&(d.selector="."+Ove(this.classes[p]));var f=bve(p,t,d);if(!f)return null;this.register(f);var h=void 0===d.index?this.index.length:d.index;return this.index.splice(h,0,f),f},t.replace=function(e,t,n){var o=this.get(e),i=this.index.indexOf(o);o&&this.remove(o);var a=n;return-1!==i&&(a=(0,r.Z)({},n,{index:i})),this.add(e,t,a)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Dve?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Lve&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Dve?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Lve&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"===typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=tge);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(i.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,nge)}for(var u in s){var d=t.style[u],p=s[u];null==d&&d!==p&&t.prop(u,null,nge)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=Cve(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+=o),t+=a)}return t},e}(),oge=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=(0,r.Z)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new rge(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"===typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),ige=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),age=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=(0,b.Z)(t,["attached"]),o=Cve(r).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(i&&(i+=o),i+=s.toString(r))}return i},(0,Dh.Z)(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),sge=new age,lge="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window&&window.Math===Math?window:"undefined"!==typeof self&&self.Math===Math?self:Function("return this")(),cge="2f1acc6c3a606b082e5eef5e54414ffb";null==lge[cge]&&(lge[cge]=0);var uge=lge[cge]++,dge=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+uge+o+t:i+n.key+"-"+uge+(o?"-"+o:"")+"-"+t}},pge=function(e){var t;return function(){return t||(t=e()),t}},fge=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(n){return""}},hge=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=wve(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(a){return!1}return!0},mge=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(n){}},vge=function(e,t){return e.selectorText=t,e.selectorText===t},gge=pge((function(){return document.querySelector("head")}));function yge(e){var t=sge.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"===typeof r){var o=function(e){for(var t=gge(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var bge=pge((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),xge=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(r){return!1}return e.cssRules[n]},wge=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},Cge=function(){function e(e){this.getPropertyValue=fge,this.setProperty=hge,this.removeProperty=mge,this.setSelector=vge,this.hasInsertedRules=!1,this.cssRules=[],e&&sge.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=bge();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=yge(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"===typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else gge().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=wge(n,t);if(!1===(o=xge(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var s=wge(n,t),l=xge(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof oge&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),jge=0,Sge=function(){function e(e){this.id=jge++,this.version="10.10.0",this.plugins=new ige,this.options={id:{minify:!1},createGenerateId:dge,Renderer:vve?Cge:null,plugins:[]},this.generateId=dge({minify:!1});for(var t=0;t<ege.length;t++)this.plugins.use(ege[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=(0,r.Z)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!==typeof n&&(n=0===sge.index?0:sge.index+1);var o=new oge(e,(0,r.Z)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(o),o},t.removeStyleSheet=function(e){return e.detach(),sge.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"===typeof e)return this.createRule(void 0,e,t);var o=(0,r.Z)({},n,{name:e,jss:this,Renderer:this.options.Renderer});o.generateId||(o.generateId=this.generateId),o.classes||(o.classes={}),o.keyframes||(o.keyframes={});var i=bve(e,t,o);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),kge=function(e){return new Sge(e)},Zge="object"===typeof CSS&&null!=CSS&&"number"in CSS;function Oge(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=Oge(r);i&&(t||(t={}),t[n]=i)}}return t}kge();function Ege(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var o=(0,r.Z)({},t);return Object.keys(n).forEach((function(e){n[e]&&(o[e]="".concat(t[e]," ").concat(n[e]))})),o}var Dge={set:function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},Pge=Dge;var Age=o.createContext(null);function Mge(){return o.useContext(Age)}var Tge="function"===typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Ige=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var Rge=Date.now(),Fge="fnValues"+Rge,Bge="fnStyle"+ ++Rge,Lge=function(){return{onCreateRule:function(e,t,n){if("function"!==typeof t)return null;var r=bve(e,{},n);return r[Bge]=t,r},onProcessStyle:function(e,t){if(Fge in t||Bge in t)return e;var n={};for(var r in e){var o=e[r];"function"===typeof o&&(delete e[r],n[r]=o)}return t[Fge]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Bge];i&&(o.style=i(e)||{});var a=o[Fge];if(a)for(var s in a)o.prop(s,a[s](e),r)}}},Nge="@global",_ge="@global ",zge=function(){function e(e,t,n){for(var o in this.type="global",this.at=Nge,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new rge((0,r.Z)({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Hge=function(){function e(e,t,n){this.type="global",this.at=Nge,this.isProcessed=!1,this.key=e,this.options=n;var o=e.substr(_ge.length);this.rule=n.jss.createRule(o,t,(0,r.Z)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Wge=/\s*,\s*/g;function Vge(e,t){for(var n=e.split(Wge),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}var Uge=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Nge)return new zge(e,t,n);if("@"===e[0]&&e.substr(0,_ge.length)===_ge)return new Hge(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,o=e.style,i=o?o[Nge]:null;if(i){for(var a in i)t.addRule(a,i[a],(0,r.Z)({},n,{selector:Vge(a,e.selector)}));delete o[Nge]}}(e,t),function(e,t){var n=e.options,o=e.style;for(var i in o)if("@"===i[0]&&i.substr(0,Nge.length)===Nge){var a=Vge(i.substr(Nge.length),e.selector);t.addRule(a,o[i],(0,r.Z)({},n,{selector:a})),delete o[i]}}(e,t))}}},qge=/\s*,\s*/g,Gge=/&/g,Yge=/\$([\w-]+)/g;var Kge=function(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(qge),r=e.split(qge),o="",i=0;i<n.length;i++)for(var a=n[i],s=0;s<r.length;s++){var l=r[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(Gge,a):a+" "+l}return o}function n(e,t,n){if(n)return(0,r.Z)({},n,{index:n.index+1});var o=e.options.nestingLevel;o=void 0===o?1:o+1;var i=(0,r.Z)({},e.options,{nestingLevel:o,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(o,i,a){if("style"!==i.type)return o;var s,l,c=i,u=c.options.parent;for(var d in o){var p=-1!==d.indexOf("&"),f="@"===d[0];if(p||f){if(s=n(c,u,s),p){var h=t(d,c.selector);l||(l=e(u,a)),h=h.replace(Yge,l);var m=c.key+"-"+d;"replaceRule"in u?u.replaceRule(m,o[d],(0,r.Z)({},s,{selector:h})):u.addRule(m,o[d],(0,r.Z)({},s,{selector:h}))}else f&&u.addRule(d,{},s).addRule(c.key,o[d],{selector:c.selector});delete o[d]}}return o}}},Jge=/[A-Z]/g,Xge=/^ms-/,Qge={};function $ge(e){return"-"+e.toLowerCase()}var eye=function(e){if(Qge.hasOwnProperty(e))return Qge[e];var t=e.replace(Jge,$ge);return Qge[e]=Xge.test(t)?"-"+t:t};function tye(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:eye(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(tye):t.fallbacks=tye(e.fallbacks)),t}var nye=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=tye(e[t]);return e}return tye(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=eye(t);return t===r?e:(n.prop(r,e),null)}}},rye=Zge&&CSS?CSS.px:"px",oye=Zge&&CSS?CSS.ms:"ms",iye=Zge&&CSS?CSS.percent:"%";function aye(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var sye=aye({"animation-delay":oye,"animation-duration":oye,"background-position":rye,"background-position-x":rye,"background-position-y":rye,"background-size":rye,border:rye,"border-bottom":rye,"border-bottom-left-radius":rye,"border-bottom-right-radius":rye,"border-bottom-width":rye,"border-left":rye,"border-left-width":rye,"border-radius":rye,"border-right":rye,"border-right-width":rye,"border-top":rye,"border-top-left-radius":rye,"border-top-right-radius":rye,"border-top-width":rye,"border-width":rye,"border-block":rye,"border-block-end":rye,"border-block-end-width":rye,"border-block-start":rye,"border-block-start-width":rye,"border-block-width":rye,"border-inline":rye,"border-inline-end":rye,"border-inline-end-width":rye,"border-inline-start":rye,"border-inline-start-width":rye,"border-inline-width":rye,"border-start-start-radius":rye,"border-start-end-radius":rye,"border-end-start-radius":rye,"border-end-end-radius":rye,margin:rye,"margin-bottom":rye,"margin-left":rye,"margin-right":rye,"margin-top":rye,"margin-block":rye,"margin-block-end":rye,"margin-block-start":rye,"margin-inline":rye,"margin-inline-end":rye,"margin-inline-start":rye,padding:rye,"padding-bottom":rye,"padding-left":rye,"padding-right":rye,"padding-top":rye,"padding-block":rye,"padding-block-end":rye,"padding-block-start":rye,"padding-inline":rye,"padding-inline-end":rye,"padding-inline-start":rye,"mask-position-x":rye,"mask-position-y":rye,"mask-size":rye,height:rye,width:rye,"min-height":rye,"max-height":rye,"min-width":rye,"max-width":rye,bottom:rye,left:rye,top:rye,right:rye,inset:rye,"inset-block":rye,"inset-block-end":rye,"inset-block-start":rye,"inset-inline":rye,"inset-inline-end":rye,"inset-inline-start":rye,"box-shadow":rye,"text-shadow":rye,"column-gap":rye,"column-rule":rye,"column-rule-width":rye,"column-width":rye,"font-size":rye,"font-size-delta":rye,"letter-spacing":rye,"text-decoration-thickness":rye,"text-indent":rye,"text-stroke":rye,"text-stroke-width":rye,"word-spacing":rye,motion:rye,"motion-offset":rye,outline:rye,"outline-offset":rye,"outline-width":rye,perspective:rye,"perspective-origin-x":iye,"perspective-origin-y":iye,"transform-origin":iye,"transform-origin-x":iye,"transform-origin-y":iye,"transform-origin-z":iye,"transition-delay":oye,"transition-duration":oye,"vertical-align":rye,"flex-basis":rye,"shape-margin":rye,size:rye,gap:rye,grid:rye,"grid-gap":rye,"row-gap":rye,"grid-row-gap":rye,"grid-column-gap":rye,"grid-template-rows":rye,"grid-template-columns":rye,"grid-auto-rows":rye,"grid-auto-columns":rye,"box-shadow-x":rye,"box-shadow-y":rye,"box-shadow-blur":rye,"box-shadow-spread":rye,"font-line-height":rye,"text-shadow-x":rye,"text-shadow-y":rye,"text-shadow-blur":rye});function lye(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=lye(e,t[r],n);else if("object"===typeof t)if("fallbacks"===e)for(var o in t)t[o]=lye(o,t[o],n);else for(var i in t)t[i]=lye(e+"-"+i,t[i],n);else if("number"===typeof t&&!1===isNaN(t)){var a=n[e]||sye[e];return!a||0===t&&a===rye?t.toString():"function"===typeof a?a(t).toString():""+t+a}return t}var cye=function(e){void 0===e&&(e={});var t=aye(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=lye(r,e[r],t);return e},onChangeValue:function(e,n){return lye(n,e,t)}}},uye="",dye="",pye="",fye="",hye=vve&&"ontouchstart"in document.documentElement;if(vve){var mye={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},vye=document.createElement("p").style;for(var gye in mye)if(gye+"Transform"in vye){uye=gye,dye=mye[gye];break}"Webkit"===uye&&"msHyphens"in vye&&(uye="ms",dye=mye.ms,fye="edge"),"Webkit"===uye&&"-apple-trailing-word"in vye&&(pye="apple")}var yye=uye,bye=dye,xye=pye,wye=fye,Cye=hye;var jye={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===yye?"-webkit-"+e:bye+e)}},Sye={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===yye?bye+"print-"+e:e)}},kye=/[-\s]+(.)?/g;function Zye(e,t){return t?t.toUpperCase():""}function Oye(e){return e.replace(kye,Zye)}function Eye(e){return Oye("-"+e)}var Dye,Pye={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===yye){var n="mask-image";if(Oye(n)in t)return e;if(yye+Eye(n)in t)return bye+e}return e}},Aye={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==xye||Cye?e:bye+e)}},Mye={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:bye+e)}},Tye={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:bye+e)}},Iye={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===yye||"ms"===yye&&"edge"!==wye?bye+e:e)}},Rye={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===yye||"ms"===yye||"apple"===xye?bye+e:e)}},Fye={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===yye?"WebkitColumn"+Eye(e)in t&&bye+"column-"+e:"Moz"===yye&&("page"+Eye(e)in t&&"page-"+e))}},Bye={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===yye)return e;var n=e.replace("-inline","");return yye+Eye(n)in t&&bye+n}},Lye={supportedProperty:function(e,t){return Oye(e)in t&&e}},Nye={supportedProperty:function(e,t){var n=Eye(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:yye+n in t?bye+e:"Webkit"!==yye&&"Webkit"+n in t&&"-webkit-"+e}},_ye={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===yye?""+bye+e:e)}},zye={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===yye?bye+"scroll-chaining":e)}},Hye={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Wye={supportedProperty:function(e,t){var n=Hye[e];return!!n&&(yye+Eye(n)in t&&bye+n)}},Vye={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Uye=Object.keys(Vye),qye=function(e){return bye+e},Gye={supportedProperty:function(e,t,n){var r=n.multiple;if(Uye.indexOf(e)>-1){var o=Vye[e];if(!Array.isArray(o))return yye+Eye(o)in t&&bye+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(yye+Eye(o[0])in t))return!1;return o.map(qye)}return!1}},Yye=[jye,Sye,Pye,Aye,Mye,Tye,Iye,Rye,Fye,Bye,Lye,Nye,_ye,zye,Wye,Gye],Kye=Yye.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Jye=Yye.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,(0,dn.Z)(t.noPrefill)),e}),[]),Xye={};if(vve){Dye=document.createElement("p");var Qye=window.getComputedStyle(document.documentElement,"");for(var $ye in Qye)isNaN($ye)||(Xye[Qye[$ye]]=Qye[$ye]);Jye.forEach((function(e){return delete Xye[e]}))}function ebe(e,t){if(void 0===t&&(t={}),!Dye)return e;if(null!=Xye[e])return Xye[e];"transition"!==e&&"transform"!==e||(t[e]=e in Dye.style);for(var n=0;n<Kye.length&&(Xye[e]=Kye[n](e,Dye.style,t),!Xye[e]);n++);try{Dye.style[e]=""}catch(r){return!1}return Xye[e]}var tbe,nbe={},rbe={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},obe=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function ibe(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?ebe(t):", "+ebe(n);return r||(t||n)}function abe(e,t){var n=t;if(!tbe||"content"===e)return t;if("string"!==typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=nbe[r])return nbe[r];try{tbe.style[e]=n}catch(o){return nbe[r]=!1,!1}if(rbe[e])n=n.replace(obe,ibe);else if(""===tbe.style[e]&&("-ms-flex"===(n=bye+n)&&(tbe.style[e]="-ms-flexbox"),tbe.style[e]=n,""===tbe.style[e]))return nbe[r]=!1,!1;return tbe.style[e]="",nbe[r]=n,nbe[r]}vve&&(tbe=document.createElement("p"));var sbe=function(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=ebe(n);i&&i!==n&&(o=!0);var a=!1,s=abe(i,wve(r));s&&s!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===yye?e:"@"+bye+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return abe(t,wve(e))||e}}};var lbe=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}}};var cbe=kge({plugins:[Lge(),Uge(),Kge(),nye(),cye(),"undefined"===typeof window?null:sbe(),lbe()]}),ube=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,c=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Ige.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[Tge]&&""===a?"".concat(i,"-").concat(c()):i}return"".concat(s).concat(o).concat(c())}}(),dbe={disableGeneration:!1,generateClassName:ube,jss:cbe,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},pbe=o.createContext(dbe);var fbe=-1e9;function hbe(){return fbe+=1}var mbe=n(33940);function vbe(e){return e&&"object"===(0,mbe.Z)(e)&&e.constructor===Object}function gbe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},o=n.clone?(0,r.Z)({},e):e;return vbe(e)&&vbe(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(vbe(t[r])&&r in e?o[r]=gbe(e[r],t[r],n):o[r]=t[r])})),o}function ybe(e){var t="function"===typeof e;return{create:function(n,o){var i;try{i=t?e(n):e}catch(l){throw l}if(!o||!n.overrides||!n.overrides[o])return i;var a=n.overrides[o],s=(0,r.Z)({},i);return Object.keys(a).forEach((function(e){s[e]=gbe(s[e],a[e])})),s},options:{}}}var bbe={};function xbe(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=Ege({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function wbe(e,t){var n=e.state,o=e.theme,i=e.stylesOptions,a=e.stylesCreator,s=e.name;if(!i.disableGeneration){var l=Pge.get(i.sheetsManager,a,o);l||(l={refs:0,staticSheet:null,dynamicStyles:null},Pge.set(i.sheetsManager,a,o,l));var c=(0,r.Z)({},a.options,i,{theme:o,flip:"boolean"===typeof i.flip?i.flip:"rtl"===o.direction});c.generateId=c.serverGenerateClassName||c.generateClassName;var u=i.sheetsRegistry;if(0===l.refs){var d;i.sheetsCache&&(d=Pge.get(i.sheetsCache,a,o));var p=a.create(o,s);d||((d=i.jss.createStyleSheet(p,(0,r.Z)({link:!1},c))).attach(),i.sheetsCache&&Pge.set(i.sheetsCache,a,o,d)),u&&u.add(d),l.staticSheet=d,l.dynamicStyles=Oge(p)}if(l.dynamicStyles){var f=i.jss.createStyleSheet(l.dynamicStyles,(0,r.Z)({link:!0},c));f.update(t),f.attach(),n.dynamicSheet=f,n.classes=Ege({baseClasses:l.staticSheet.classes,newClasses:f.classes}),u&&u.add(f)}else n.classes=l.staticSheet.classes;l.refs+=1}}function Cbe(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function jbe(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=Pge.get(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(Pge.delete(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function Sbe(e,t){var n,r=o.useRef([]),i=o.useMemo((function(){return{}}),t);r.current!==i&&(r.current=i,n=e()),o.useEffect((function(){return function(){n&&n()}}),[i])}function kbe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,i=t.classNamePrefix,a=t.Component,s=t.defaultTheme,l=void 0===s?bbe:s,c=Nn(t,["name","classNamePrefix","Component","defaultTheme"]),u=ybe(e),d=n||i||"makeStyles";u.options={index:hbe(),name:n,meta:d,classNamePrefix:d};var p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Mge()||l,i=(0,r.Z)({},o.useContext(pbe),c),s=o.useRef(),d=o.useRef();Sbe((function(){var r={name:n,state:{},stylesCreator:u,stylesOptions:i,theme:t};return wbe(r,e),d.current=!1,s.current=r,function(){jbe(r)}}),[t,u]),o.useEffect((function(){d.current&&Cbe(s.current,e),d.current=!0}));var p=xbe(s.current,e.classes,a);return p};return p}function Zbe(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}var Obe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var i=t.defaultTheme,a=t.withTheme,s=void 0!==a&&a,l=t.name,c=Nn(t,["defaultTheme","withTheme","name"]);var u=l,d=kbe(e,(0,r.Z)({defaultTheme:i,Component:n,name:l||n.displayName,classNamePrefix:u},c)),p=o.forwardRef((function(e,t){e.classes;var a,c=e.innerRef,u=Nn(e,["classes","innerRef"]),p=d((0,r.Z)({},n.defaultProps,e)),f=u;return("string"===typeof l||s)&&(a=Mge()||i,l&&(f=Zbe({theme:a,name:l,props:u})),s&&!f.theme&&(f.theme=a)),o.createElement(n,(0,r.Z)({ref:c||t,classes:p},f))}));return G()(p,n),p}},Ebe=["xs","sm","md","lg","xl"];function Dbe(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,o=e.unit,i=void 0===o?"px":o,a=e.step,s=void 0===a?5:a,l=Nn(e,["values","unit","step"]);function c(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(i,")")}function u(e,t){var r=Ebe.indexOf(t);return r===Ebe.length-1?c(e):"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(i,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[Ebe[r+1]]?n[Ebe[r+1]]:t)-s/100).concat(i,")")}return(0,r.Z)({keys:Ebe,values:n,up:c,down:function(e){var t=Ebe.indexOf(e)+1,r=n[Ebe[t]];return t===Ebe.length?c("xs"):"@media (max-width:".concat(("number"===typeof r&&t>0?r:e)-s/100).concat(i,")")},between:u,only:function(e){return u(e,e)},width:function(e){return n[e]}},l)}function Pbe(e,n,o){var i;return(0,r.Z)({gutters:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n      paddingLeft: theme.spacing(2),\n      paddingRight: theme.spacing(2),\n      [theme.breakpoints.up('sm')]: {\n        paddingLeft: theme.spacing(3),\n        paddingRight: theme.spacing(3),\n      },\n      "].join("\n")),(0,r.Z)({paddingLeft:n(2),paddingRight:n(2)},o,(0,t.Z)({},e.up("sm"),(0,r.Z)({paddingLeft:n(3),paddingRight:n(3)},o[e.up("sm")])))},toolbar:(i={minHeight:56},(0,t.Z)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.Z)(i,e.up("sm"),{minHeight:64}),i)},o)}var Abe={black:"#000",white:"#fff"},Mbe={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},Tbe={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},Ibe={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},Rbe={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Fbe={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Bbe={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Lbe={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function Nbe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function _be(e){if(e.type)return e;if("#"===e.charAt(0))return _be(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(dve(3,e));var r=e.substring(t+1,e.length-1).split(",");return r=r.map((function(e){return parseFloat(e)})),{type:n,values:r}}function zbe(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function Hbe(e){var t="hsl"===(e=_be(e)).type?_be(function(e){var t=(e=_be(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),zbe({type:s,values:l})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Wbe(e,t){if(e=_be(e),t=Nbe(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return zbe(e)}function Vbe(e,t){if(e=_be(e),t=Nbe(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return zbe(e)}var Ube={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Abe.white,default:Mbe[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},qbe={text:{primary:Abe.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:Mbe[800],default:"#303030"},action:{active:Abe.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Gbe(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Vbe(e.main,o):"dark"===t&&(e.dark=Wbe(e.main,i)))}function Ybe(e){var t=e.primary,n=void 0===t?{light:Tbe[300],main:Tbe[500],dark:Tbe[700]}:t,o=e.secondary,i=void 0===o?{light:Ibe.A200,main:Ibe.A400,dark:Ibe.A700}:o,a=e.error,s=void 0===a?{light:Rbe[300],main:Rbe[500],dark:Rbe[700]}:a,l=e.warning,c=void 0===l?{light:Fbe[300],main:Fbe[500],dark:Fbe[700]}:l,u=e.info,d=void 0===u?{light:Bbe[300],main:Bbe[500],dark:Bbe[700]}:u,p=e.success,f=void 0===p?{light:Lbe[300],main:Lbe[500],dark:Lbe[700]}:p,h=e.type,m=void 0===h?"light":h,v=e.contrastThreshold,g=void 0===v?3:v,y=e.tonalOffset,b=void 0===y?.2:y,x=Nn(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function w(e){var t=function(e,t){var n=Hbe(e),r=Hbe(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,qbe.text.primary)>=g?qbe.text.primary:Ube.text.primary;return t}var C=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,r.Z)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(dve(4,t));if("string"!==typeof e.main)throw new Error(dve(5,JSON.stringify(e.main)));return Gbe(e,"light",n,b),Gbe(e,"dark",o,b),e.contrastText||(e.contrastText=w(e.main)),e},j={dark:qbe,light:Ube};return gbe((0,r.Z)({common:Abe,type:m,primary:C(n),secondary:C(i,"A400","A200","A700"),error:C(s),warning:C(c),info:C(d),success:C(f),grey:Mbe,contrastThreshold:g,getContrastText:w,augmentColor:C,tonalOffset:b},j[m]),x)}function Kbe(e){return Math.round(1e5*e)/1e5}function Jbe(e){return Kbe(e)}var Xbe={textTransform:"uppercase"},Qbe='"Roboto", "Helvetica", "Arial", sans-serif';function $be(e,t){var n="function"===typeof t?t(e):t,o=n.fontFamily,i=void 0===o?Qbe:o,a=n.fontSize,s=void 0===a?14:a,l=n.fontWeightLight,c=void 0===l?300:l,u=n.fontWeightRegular,d=void 0===u?400:u,p=n.fontWeightMedium,f=void 0===p?500:p,h=n.fontWeightBold,m=void 0===h?700:h,v=n.htmlFontSize,g=void 0===v?16:v,y=n.allVariants,b=n.pxToRem,x=Nn(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var w=s/14,C=b||function(e){return"".concat(e/g*w,"rem")},j=function(e,t,n,o,a){return(0,r.Z)({fontFamily:i,fontWeight:e,fontSize:C(t),lineHeight:n},i===Qbe?{letterSpacing:"".concat(Kbe(o/t),"em")}:{},a,y)},S={h1:j(c,96,1.167,-1.5),h2:j(c,60,1.2,-.5),h3:j(d,48,1.167,0),h4:j(d,34,1.235,.25),h5:j(d,24,1.334,0),h6:j(f,20,1.6,.15),subtitle1:j(d,16,1.75,.15),subtitle2:j(f,14,1.57,.1),body1:j(d,16,1.5,.15),body2:j(d,14,1.43,.15),button:j(f,14,1.75,.4,Xbe),caption:j(d,12,1.66,.4),overline:j(d,12,2.66,1,Xbe)};return gbe((0,r.Z)({htmlFontSize:g,pxToRem:C,round:Jbe,fontFamily:i,fontSize:s,fontWeightLight:c,fontWeightRegular:d,fontWeightMedium:f,fontWeightBold:m},S),x,{clone:!1})}function exe(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var txe=["none",exe(0,2,1,-1,0,1,1,0,0,1,3,0),exe(0,3,1,-2,0,2,2,0,0,1,5,0),exe(0,3,3,-2,0,3,4,0,0,1,8,0),exe(0,2,4,-1,0,4,5,0,0,1,10,0),exe(0,3,5,-1,0,5,8,0,0,1,14,0),exe(0,3,5,-1,0,6,10,0,0,1,18,0),exe(0,4,5,-2,0,7,10,1,0,2,16,1),exe(0,5,5,-3,0,8,10,1,0,3,14,2),exe(0,5,6,-3,0,9,12,1,0,3,16,2),exe(0,6,6,-3,0,10,14,1,0,4,18,3),exe(0,6,7,-4,0,11,15,1,0,4,20,3),exe(0,7,8,-4,0,12,17,2,0,5,22,4),exe(0,7,8,-4,0,13,19,2,0,5,24,4),exe(0,7,9,-4,0,14,21,2,0,5,26,4),exe(0,8,9,-5,0,15,22,2,0,6,28,5),exe(0,8,10,-5,0,16,24,2,0,6,30,5),exe(0,8,11,-5,0,17,26,2,0,6,32,5),exe(0,9,11,-5,0,18,28,2,0,7,34,6),exe(0,9,12,-6,0,19,29,2,0,7,36,6),exe(0,10,13,-6,0,20,31,3,0,8,38,7),exe(0,10,13,-6,0,21,33,3,0,8,40,7),exe(0,10,14,-6,0,22,35,3,0,8,42,7),exe(0,11,14,-7,0,23,36,3,0,9,44,8),exe(0,11,15,-7,0,24,38,3,0,9,46,8)],nxe={borderRadius:4},rxe={xs:0,sm:600,md:960,lg:1280,xl:1920},oxe={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(rxe[e],"px)")}};var ixe=function(e,t){return t?gbe(e,t,{clone:!1}):e};var axe={m:"margin",p:"padding"},sxe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},lxe={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},cxe=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!lxe[e])return[e];e=lxe[e]}var t=e.split(""),n=(0,Le.Z)(t,2),r=n[0],o=n[1],i=axe[r],a=sxe[o]||"";return Array.isArray(a)?a.map((function(e){return i+e})):[i+a]})),uxe=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function dxe(e){var t=e.spacing||8;return"number"===typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"===typeof t?t:function(){}}function pxe(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function fxe(e){var t=dxe(e.theme);return Object.keys(e).map((function(n){if(-1===uxe.indexOf(n))return null;var r=pxe(cxe(n),t),o=e[n];return function(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||oxe;return t.reduce((function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===(0,mbe.Z)(t)){var o=e.theme.breakpoints||oxe;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}(e,o,r)})).reduce(ixe,{})}fxe.propTypes={},fxe.filterProps=uxe;function hxe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=dxe({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"===typeof e)return e;var n=t(e);return"number"===typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var mxe={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},vxe={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function gxe(e){return"".concat(Math.round(e),"ms")}var yxe={easing:mxe,duration:vxe,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?vxe.standard:n,o=t.easing,i=void 0===o?mxe.easeInOut:o,a=t.delay,s=void 0===a?0:a;Nn(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof r?r:gxe(r)," ").concat(i," ").concat("string"===typeof s?s:gxe(s))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},bxe={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function xxe(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,o=void 0===r?{}:r,i=e.palette,a=void 0===i?{}:i,s=e.spacing,l=e.typography,c=void 0===l?{}:l,u=Nn(e,["breakpoints","mixins","palette","spacing","typography"]),d=Ybe(a),p=Dbe(n),f=hxe(s),h=gbe({breakpoints:p,direction:"ltr",mixins:Pbe(p,f,o),overrides:{},palette:d,props:{},shadows:txe,typography:$be(d,c),spacing:f,shape:nxe,transitions:yxe,zIndex:bxe},u),m=arguments.length,v=new Array(m>1?m-1:0),g=1;g<m;g++)v[g-1]=arguments[g];return h=v.reduce((function(e,t){return gbe(e,t)}),h)}var wxe=xxe();var Cxe=function(e,t){return Obe(e,(0,r.Z)({defaultTheme:wxe},t))};function jxe(e){if("string"!==typeof e)throw new Error(dve(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Sxe(e,t){"function"===typeof e?e(t):e&&(e.current=t)}function kxe(e,t){return o.useMemo((function(){return null==e&&null==t?null:function(n){Sxe(e,n),Sxe(t,n)}}),[e,t])}function Zxe(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this,s=function(){e.apply(a,o)};clearTimeout(t),t=setTimeout(s,n)}return r.clear=function(){clearTimeout(t)},r}function Oxe(e,t){return parseInt(e[t],10)||0}var Exe="undefined"!==typeof window?o.useLayoutEffect:o.useEffect,Dxe={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},Pxe=o.forwardRef((function(e,t){var n=e.onChange,i=e.rows,a=e.rowsMax,s=e.rowsMin,l=e.maxRows,c=e.minRows,u=void 0===c?1:c,d=e.style,p=e.value,f=Nn(e,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),h=l||a,m=i||s||u,v=o.useRef(null!=p).current,g=o.useRef(null),y=kxe(t,g),b=o.useRef(null),x=o.useRef(0),w=o.useState({}),C=w[0],j=w[1],S=o.useCallback((function(){var t=g.current,n=window.getComputedStyle(t),r=b.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var o=n["box-sizing"],i=Oxe(n,"padding-bottom")+Oxe(n,"padding-top"),a=Oxe(n,"border-bottom-width")+Oxe(n,"border-top-width"),s=r.scrollHeight-i;r.value="x";var l=r.scrollHeight-i,c=s;m&&(c=Math.max(Number(m)*l,c)),h&&(c=Math.min(Number(h)*l,c));var u=(c=Math.max(c,l))+("border-box"===o?i+a:0),d=Math.abs(c-s)<=1;j((function(e){return x.current<20&&(u>0&&Math.abs((e.outerHeightStyle||0)-u)>1||e.overflow!==d)?(x.current+=1,{overflow:d,outerHeightStyle:u}):e}))}),[h,m,e.placeholder]);o.useEffect((function(){var e=Zxe((function(){x.current=0,S()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[S]),Exe((function(){S()})),o.useEffect((function(){x.current=0}),[p]);return o.createElement(o.Fragment,null,o.createElement("textarea",(0,r.Z)({value:p,onChange:function(e){x.current=0,v||S(),n&&n(e)},ref:y,rows:m,style:(0,r.Z)({height:C.outerHeightStyle,overflow:C.overflow?"hidden":null},d)},f)),o.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:b,tabIndex:-1,style:(0,r.Z)({},Dxe,d)}))})),Axe=Pxe;function Mxe(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Txe(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(Mxe(e.value)&&""!==e.value||t&&Mxe(e.defaultValue)&&""!==e.defaultValue)}var Ixe="undefined"===typeof window?o.useEffect:o.useLayoutEffect,Rxe=o.forwardRef((function(e,t){var n=e["aria-describedby"],i=e.autoComplete,a=e.autoFocus,s=e.classes,l=e.className,c=(e.color,e.defaultValue),u=e.disabled,d=e.endAdornment,p=(e.error,e.fullWidth),f=void 0!==p&&p,h=e.id,m=e.inputComponent,v=void 0===m?"input":m,g=e.inputProps,b=void 0===g?{}:g,x=e.inputRef,w=(e.margin,e.multiline),C=void 0!==w&&w,j=e.name,S=e.onBlur,k=e.onChange,Z=e.onClick,O=e.onFocus,E=e.onKeyDown,D=e.onKeyUp,P=e.placeholder,A=e.readOnly,M=e.renderSuffix,T=e.rows,I=e.rowsMax,R=e.rowsMin,F=e.maxRows,B=e.minRows,L=e.startAdornment,N=e.type,_=void 0===N?"text":N,z=e.value,H=Nn(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","maxRows","minRows","startAdornment","type","value"]),W=null!=b.value?b.value:z,V=o.useRef(null!=W).current,U=o.useRef(),q=o.useCallback((function(e){0}),[]),G=kxe(b.ref,q),Y=kxe(x,G),K=kxe(U,Y),J=o.useState(!1),X=J[0],Q=J[1],$=o.useContext(fve);var ee=pve({props:e,muiFormControl:$,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});ee.focused=$?$.focused:X,o.useEffect((function(){!$&&u&&X&&(Q(!1),S&&S())}),[$,u,X,S]);var te=$&&$.onFilled,ne=$&&$.onEmpty,re=o.useCallback((function(e){Txe(e)?te&&te():ne&&ne()}),[te,ne]);Ixe((function(){V&&re({value:W})}),[W,re,V]);o.useEffect((function(){re(U.current)}),[]);var oe=v,ie=(0,r.Z)({},b,{ref:K});"string"!==typeof oe?ie=(0,r.Z)({inputRef:K,type:_},ie,{ref:null}):C?!T||F||B||I||R?(ie=(0,r.Z)({minRows:T||B,rowsMax:I,maxRows:F},ie),oe=Axe):oe="textarea":ie=(0,r.Z)({type:_},ie);return o.useEffect((function(){$&&$.setAdornedStart(Boolean(L))}),[$,L]),o.createElement("div",(0,r.Z)({className:(0,y.default)(s.root,s["color".concat(jxe(ee.color||"primary"))],l,ee.disabled&&s.disabled,ee.error&&s.error,f&&s.fullWidth,ee.focused&&s.focused,$&&s.formControl,C&&s.multiline,L&&s.adornedStart,d&&s.adornedEnd,"dense"===ee.margin&&s.marginDense),onClick:function(e){U.current&&e.currentTarget===e.target&&U.current.focus(),Z&&Z(e)},ref:t},H),L,o.createElement(hve.Provider,{value:null},o.createElement(oe,(0,r.Z)({"aria-invalid":ee.error,"aria-describedby":n,autoComplete:i,autoFocus:a,defaultValue:c,disabled:ee.disabled,id:h,onAnimationStart:function(e){re("mui-auto-fill-cancel"===e.animationName?U.current:{value:"x"})},name:j,placeholder:P,readOnly:A,required:ee.required,rows:T,value:W,onKeyDown:E,onKeyUp:D},ie,{className:(0,y.default)(s.input,b.className,ee.disabled&&s.disabled,C&&s.inputMultiline,ee.hiddenLabel&&s.inputHiddenLabel,L&&s.inputAdornedStart,d&&s.inputAdornedEnd,"search"===_&&s.inputTypeSearch,"dense"===ee.margin&&s.inputMarginDense),onBlur:function(e){S&&S(e),b.onBlur&&b.onBlur(e),$&&$.onBlur?$.onBlur(e):Q(!1)},onChange:function(e){if(!V){var t=e.target||U.current;if(null==t)throw new Error(dve(1));re({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];b.onChange&&b.onChange.apply(b,[e].concat(r)),k&&k.apply(void 0,[e].concat(r))},onFocus:function(e){ee.disabled?e.stopPropagation():(O&&O(e),b.onFocus&&b.onFocus(e),$&&$.onFocus?$.onFocus(e):Q(!0))}}))),d,M?M((0,r.Z)({},ee,{startAdornment:L})):null)})),Fxe=Cxe((function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={opacity:"0 !important"},i={opacity:t?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:(0,r.Z)({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}}),{name:"MuiInputBase"})(Rxe),Bxe=o.forwardRef((function(e,t){var n=e.disableUnderline,i=e.classes,a=e.fullWidth,s=void 0!==a&&a,l=e.inputComponent,c=void 0===l?"input":l,u=e.multiline,d=void 0!==u&&u,p=e.type,f=void 0===p?"text":p,h=Nn(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return o.createElement(Fxe,(0,r.Z)({classes:(0,r.Z)({},i,{root:(0,y.default)(i.root,!n&&i.underline),underline:null}),fullWidth:s,inputComponent:c,multiline:d,ref:t,type:f},h))}));Bxe.muiName="Input";var Lxe=Cxe((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}}),{name:"MuiInput"})(Bxe);function Nxe(){var e=cve((function(e){return e.taskManagementInput})),t=cve((function(e){return e.setTaskManagementInput})),n=rve((function(e){return e.setCanGoNext})),r=fd({mode:"onChange",defaultValues:{title:e.title||"",estStartOn:e.estStartOn||"",estEndOn:e.estEndOn||"",description:(null===e||void 0===e?void 0:e.description)||""}}),i=r.register,a=r.watch,s=r.control,c=r.setValue,d=r.formState.isValid;return(0,o.useEffect)((function(){n(d)}),[d]),(0,o.useEffect)((function(){var e=a((function(){return t(a())}));return function(){return e.unsubscribe()}}),[a]),(0,u.jsx)(Eh,{dateAdapter:vg,children:(0,u.jsx)(da.Z,{sx:{marginBottom:"1em"},children:(0,u.jsxs)(nn.Z,{spacing:4,children:[(0,u.jsx)(nn.Z,{direction:"row",children:(0,u.jsx)(du,{control:s,name:"title",render:function(t){var n=t.field,r=n.onChange,o=n.value;return(0,u.jsx)(Lxe,(0,l.Z)((0,l.Z)({placeholder:"Task name",fullWidth:!0},i("title",{required:"This field is required"})),{},{value:o||(null===e||void 0===e?void 0:e.title),onChange:r}))}})}),(0,u.jsxs)(nn.Z,{direction:"row",sx:{justifyContent:"space-between",width:"100%"},children:[(0,u.jsx)(du,{control:s,name:"estStartOn",render:function(e){var t=e.field;return(0,u.jsx)(Rw,(0,l.Z)((0,l.Z)({},t),{},{onChange:function(e){return c("estStartOn",(0,rs.pu)(new Date(e)))},value:t.value||null}))}}),(0,u.jsx)(du,{control:s,name:"estEndOn",render:function(e){var t=e.field;return(0,u.jsx)(Rw,(0,l.Z)((0,l.Z)({},t),{},{onChange:function(e){return c("estEndOn",(0,rs.pu)(new Date(e)))},value:t.value||null}))}})]}),(0,u.jsx)(nn.Z,{direction:"row",children:(0,u.jsx)(du,{control:s,name:"description",render:function(t){var n=t.field,r=n.onChange,o=n.value;return(0,u.jsx)(Lxe,(0,l.Z)((0,l.Z)({placeholder:"Description",fullWidth:!0,minRows:5,multiline:!0},i("description")),{},{value:o||(null===e||void 0===e?void 0:e.description),onChange:r}))}})})]})})})}var _xe=n(21278);function zxe(){var e,t=cve((function(e){return e.taskManagementInput})),n=cve((function(e){return e.setTaskManagementInput})),r=rve((function(e){return e.setCanGoNext})),i="This field is required",a=fd({mode:"onChange",defaultValues:{ProjectSubtasks:t.ProjectSubtasks?null===t||void 0===t||null===(e=t.ProjectSubtasks)||void 0===e?void 0:e.map((function(e){var t,n;return{title:null!==(t=null===e||void 0===e?void 0:e.title)&&void 0!==t?t:void 0,estStartOn:null!==e&&void 0!==e&&e.estStartOn?(0,rs.pu)(new Date(null===e||void 0===e?void 0:e.estStartOn)):void 0,estEndOn:null!==e&&void 0!==e&&e.estEndOn?(0,rs.pu)(new Date(null===e||void 0===e?void 0:e.estEndOn)):void 0,description:null!==(n=null===e||void 0===e?void 0:e.description)&&void 0!==n?n:void 0}})):[{title:void 0,estStartOn:void 0,estEndOn:void 0,description:void 0}]}}),s=a.register,c=a.watch,d=a.formState.isValid,p=a.control,f=Du({control:p,name:"ProjectSubtasks"}),h=f.fields,m=f.append,v=f.remove;return(0,o.useEffect)((function(){r(d)}),[d]),(0,o.useEffect)((function(){var e,r,o,i,a=c((function(){return n(c())}));0!==(null===(e=t.body)||void 0===e||null===(r=e.subtaskList)||void 0===r?void 0:r.length)&&null!==(o=t.body)&&void 0!==o&&o.subtaskList&&(v(0),m(null===(i=t.body)||void 0===i?void 0:i.subtaskList));return function(){return a.unsubscribe()}}),[c]),(0,u.jsx)(Eh,{dateAdapter:vg,children:(0,u.jsx)(da.Z,{sx:{marginBottom:"1em"},children:(0,u.jsxs)(nn.Z,{spacing:4,children:[h.map((function(e,n){return(0,u.jsxs)(NZ,{sx:{padding:"2em",position:"relative"},children:[(0,u.jsx)(_xe.Z,{onClick:function(){return v(n)},sx:{position:"absolute",top:".5em",right:".5em",cursor:"pointer"}}),(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(nn.Z,{direction:"row",children:(0,u.jsx)(du,{control:p,name:"ProjectSubtasks.".concat(n,".title"),render:function(e){var r,o,a,c=e.field,d=c.onChange,p=c.value;return(0,u.jsx)(Lxe,(0,l.Z)((0,l.Z)({placeholder:"Subtask name",fullWidth:!0},s("ProjectSubtasks.".concat(n,".title"),{required:i})),{},{value:p||(null===(r=t.body)||void 0===r||null===(o=r.subtaskList)||void 0===o||null===(a=o[n])||void 0===a?void 0:a.title)||"",onChange:d}))}})}),(0,u.jsx)(nn.Z,{direction:"row",sx:{justifyContent:"space-between",width:"100%",margin:"1em 0"},children:(0,u.jsx)(du,{control:p,name:"ProjectSubtasks.".concat(n,".estEndOn"),render:function(e){var r,o,a,c=e.field,d=c.onChange,p=c.value;return(0,u.jsx)(Rw,(0,l.Z)((0,l.Z)({value:p||(null===(r=t.body)||void 0===r||null===(o=r.subtaskList)||void 0===o||null===(a=o[n])||void 0===a?void 0:a.estEndOn)||""},s("ProjectSubtasks.".concat(n,".estEndOn"),{required:i})),{},{onChange:d}))}})})]},n)]})})),(0,u.jsxs)(jZ,{sx:{margin:"auto",border:"1px dashed black",width:"100%"},onButtonClick:function(){return m({title:void 0,description:void 0,startDate:void 0,endDate:void 0})},children:["ADD NEW ",(0,u.jsx)(Jme.Z,{})]})]})})})}function Hxe(e){var t=e.sx,n=cve((function(e){return e.taskManagementInput}));cve((function(e){return e.setTaskManagementInput})),(0,ze.s0)(),(0,ze.UO)();return(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(tn,{sx:(0,l.Z)({},t),children:(0,u.jsx)(ao.Z,{sx:{padding:"2em"},children:(null===n||void 0===n?void 0:n.title)&&(0,u.jsx)(ive,{stepComponents:[{component:(0,u.jsx)(Nxe,{}),label:"Edit task",heading:"Edit task"},{component:(0,u.jsx)(zxe,{}),label:"Subtasks",heading:"Subtasks"},{component:(0,u.jsx)(uve,{}),label:"Confirm"}],onFinish:function(){}})})})})}var Wxe=n(22616),Vxe=[{title:"Pre-Structured Processes",content:"We take care of organizing your projects and supplier workflows with our pre-built structures, so you don\u2019t have to spend time setting up.",buttonTitle:"post a project",link:"how-to-hire/timed-projects"},{title:"Unified Platform",content:"Connect contracts, tasks, milestones, and payments all in one place. Say goodbye to fragmented data and multiple tools.",buttonTitle:"spona Connect",link:"how-to-hire/spona-connect"},{title:"Embrace Simplicity",content:"Tired of overwhelming feautures and complicated onboarding? Spona offers a streamlined, ready-to-use platform that gets you started immediately - no IT integration needed.",buttonTitle:"how to hire",link:"how-to-hire"}],Uxe=function(){var e=Bn(ir.breakpoints.down("lg"));return(0,u.jsxs)(nn.Z,{position:"relative",alignItems:"center",sx:(0,l.Z)((0,l.Z)({height:"50rem",mb:{xs:34,sm:20,bg:12,lg:0}},ar),{},{mt:{xs:10,md:6}}),children:[(0,u.jsx)(tn,{title:"A team working on a project",sx:{position:"relative",width:"100%",backgroundRepeat:"no-repeat",height:"83%",backgroundSize:"cover",backgroundPositionX:"center",backgroundImage:{xs:"url(".concat((0,rs.mB)(Wxe.W.BuildYourProjectTeam),")"),md:"url(".concat((0,rs.mB)(Wxe.W.BuildYourProjectTeam),")")},borderRadius:"20px"},children:(0,u.jsxs)(nn.Z,{height:{xs:"160%",md:"151%",lg:"25%",gr:"fit-content"},sx:e?{zIndex:2,justifyContent:"center",pb:2,px:"5%"}:{position:"absolute",bottom:"20%",zIndex:2,left:"5%"},spacing:1,children:[(0,u.jsx)(rn.Z,{variant:"publicHeading3",color:"common.white",sx:{maxWidth:"75%"},children:"Why Spona?"}),(0,u.jsx)(rn.Z,{variant:"publicBody3Regular",color:"common.white",children:"Why choose Spona over complex tools?"})]})}),(0,u.jsx)(nn.Z,{direction:{xs:"column",lg:"row"},alignItems:"center",justifyContent:"center",spacing:2,width:{xs:"100%",lg:"90%"},height:{xs:"0%",sm:"32%",bg:"40%",lg:"31%",gr:"27%"},sx:{position:"absolute",bottom:{xs:-200,md:-133,lg:0}},children:Vxe.map((function(e){return(0,u.jsx)(qxe,{title:e.title,buttonTitle:e.buttonTitle,content:e.content,link:e.link})}))})]})},qxe=function(e){var t=e.title,n=(e.buttonTitle,e.content);e.link,(0,ze.s0)();return(0,u.jsx)(nn.Z,{spacing:3,alignItems:"start",justifyContent:"space-between",sx:{backgroundColor:"primaryLight.500",zIndex:2,p:3,borderRadius:"10px",height:{xs:"auto",sm:"100%"},width:"90%",boxShadow:"1px 10px 30px 0px rgba(56, 69, 114, 0.10)"},children:(0,u.jsxs)(nn.Z,{spacing:1,children:[(0,u.jsx)(rn.Z,{variant:"publicHeading5",color:"common.white",fontWeight:"400",children:t}),(0,u.jsx)(rn.Z,{variant:"publicBody4Regular",color:"common.white",children:n})]})})},Gxe=function(){(0,ze.s0)();return(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",sx:(0,l.Z)({position:"relative",bgcolor:"primaryLight.100",px:{xs:4,lg:5},py:{xs:9,lg:5,xl:5},pb:{xs:3,sm:6,lg:5},borderRadius:"20px",width:{xs:"fit-content",xl:"auto"},overflow:{xs:"hidden",lg:"visible"},mt:{xs:"360px",sm:"260px",md:"120px",lg:"60px"},my:8},ar),children:[(0,u.jsxs)(nn.Z,{spacing:"36px",sx:{maxWidth:{xs:"100%",lg:"55%"}},children:[(0,u.jsx)(rn.Z,{color:"common.black",whiteSpace:"pre-line",sx:{typography:{xs:"publicHeading4",lg:"publicHeading3"}},children:"Evolve Your Business - Streamline, Simplify and Grow"}),(0,u.jsxs)(rn.Z,{color:"common.black",variant:"publicBody3Light",sx:{maxWidth:{xs:"100%",sm:"50%",lg:"90%"},zIndex:10},children:["Managing projects and suppliers doesn\u2019t have to be complex. With Spona, you get an all-in-one platform that is ready to use from day one. Forget about complicated setups and fragmented tools - Spona helps you sign digital contracts, set milestones, manage payments and get clear project insights hassle free.",(0,u.jsx)("br",{}),(0,u.jsx)("br",{}),"Our pre-assembled solution is designed to make your work life easier. Whether its\u2019s handling contracts, tracking milestones, or automating payments, everything is streamlined in one place, so you can focus on growing your business, not managing chaos."]}),(0,u.jsx)(tn,{alt:"Mock-up of a laptop showing a screenshot of Spona\u2019s tool ",component:"img",src:(0,rs.mB)(Wxe.W.Laptop2),sx:{display:{xs:"block",sm:"none"},bottom:6,right:10,width:{xs:"90%",lg:"auto"}}})]}),(0,u.jsx)(tn,{alt:"Mock-up of a laptop showing a screenshot of Spona\u2019s tool ",component:"img",src:(0,rs.mB)(Wxe.W.Laptop2),sx:{display:{xs:"none",sm:"block"},position:{sm:"absolute",xl:"relative"},right:{xs:10,bg:0,lg:-85,xxl:-150},width:"54%"}})]})};var Yxe=o.createContext({});function Kxe(e){return(0,F.Z)("MuiAccordion",e)}var Jxe=(0,R.Z)("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),Xxe=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],Qxe=(0,P.ZP)(ao.Z,{name:"MuiAccordion",slot:"Root",overridesResolver:function(e,n){var r=e.ownerState;return[(0,t.Z)({},"& .".concat(Jxe.region),n.region),n.root,!r.square&&n.rounded,!r.disableGutters&&n.gutters]}})((function(e){var n,r=e.theme,o={duration:r.transitions.duration.shortest};return n={position:"relative",transition:r.transitions.create(["margin"],o),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(r.vars||r).palette.divider,transition:r.transitions.create(["opacity","background-color"],o)},"&:first-of-type":{"&:before":{display:"none"}}},(0,t.Z)(n,"&.".concat(Jxe.expanded),{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}}),(0,t.Z)(n,"&.".concat(Jxe.disabled),{backgroundColor:(r.vars||r).palette.action.disabledBackground}),n}),(function(e){var n=e.theme,o=e.ownerState;return(0,r.Z)({},!o.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(n.vars||n).shape.borderRadius,borderTopRightRadius:(n.vars||n).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(n.vars||n).shape.borderRadius,borderBottomRightRadius:(n.vars||n).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!o.disableGutters&&(0,t.Z)({},"&.".concat(Jxe.expanded),{margin:"16px 0"}))})),$xe=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiAccordion"}),i=n.children,a=n.className,s=n.defaultExpanded,l=void 0!==s&&s,c=n.disabled,d=void 0!==c&&c,p=n.disableGutters,f=void 0!==p&&p,h=n.expanded,m=n.onChange,v=n.square,g=void 0!==v&&v,x=n.TransitionComponent,w=void 0===x?W:x,C=n.TransitionProps,j=(0,b.Z)(n,Xxe),S=(0,eF.Z)({controlled:h,default:l,name:"Accordion",state:"expanded"}),k=(0,Le.Z)(S,2),Z=k[0],O=k[1],E=o.useCallback((function(e){O(!Z),m&&m(e,!Z)}),[Z,m,O]),D=wT(o.Children.toArray(i)),P=D[0],A=D.slice(1),I=o.useMemo((function(){return{expanded:Z,disabled:d,disableGutters:f,toggle:E}}),[Z,d,f,E]),R=(0,r.Z)({},n,{square:g,disabled:d,disableGutters:f,expanded:Z}),F=function(e){var t=e.classes,n={root:["root",!e.square&&"rounded",e.expanded&&"expanded",e.disabled&&"disabled",!e.disableGutters&&"gutters"],region:["region"]};return(0,M.Z)(n,Kxe,t)}(R);return(0,u.jsxs)(Qxe,(0,r.Z)({className:(0,y.default)(F.root,a),ref:t,ownerState:R,square:g},j,{children:[(0,u.jsx)(Yxe.Provider,{value:I,children:P}),(0,u.jsx)(w,(0,r.Z)({in:Z,timeout:"auto"},C,{children:(0,u.jsx)("div",{"aria-labelledby":P.props.id,id:P.props["aria-controls"],role:"region",className:F.region,children:A})}))]}))})),ewe=$xe;function twe(e){return(0,F.Z)("MuiAccordionSummary",e)}var nwe=(0,R.Z)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),rwe=["children","className","expandIcon","focusVisibleClassName","onClick"],owe=(0,P.ZP)(Qy.Z,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){var n,o=e.theme,i=e.ownerState,a={duration:o.transitions.duration.shortest};return(0,r.Z)((n={display:"flex",minHeight:48,padding:o.spacing(0,2),transition:o.transitions.create(["min-height","background-color"],a)},(0,t.Z)(n,"&.".concat(nwe.focusVisible),{backgroundColor:(o.vars||o).palette.action.focus}),(0,t.Z)(n,"&.".concat(nwe.disabled),{opacity:(o.vars||o).palette.action.disabledOpacity}),(0,t.Z)(n,"&:hover:not(.".concat(nwe.disabled,")"),{cursor:"pointer"}),n),!i.disableGutters&&(0,t.Z)({},"&.".concat(nwe.expanded),{minHeight:64}))})),iwe=(0,P.ZP)("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:function(e,t){return t.content}})((function(e){var n=e.theme,o=e.ownerState;return(0,r.Z)({display:"flex",flexGrow:1,margin:"12px 0"},!o.disableGutters&&(0,t.Z)({transition:n.transitions.create(["margin"],{duration:n.transitions.duration.shortest})},"&.".concat(nwe.expanded),{margin:"20px 0"}))})),awe=(0,P.ZP)("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:function(e,t){return t.expandIconWrapper}})((function(e){var n=e.theme;return(0,t.Z)({display:"flex",color:(n.vars||n).palette.action.active,transform:"rotate(0deg)",transition:n.transitions.create("transform",{duration:n.transitions.duration.shortest})},"&.".concat(nwe.expanded),{transform:"rotate(180deg)"})})),swe=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiAccordionSummary"}),i=n.children,a=n.className,s=n.expandIcon,l=n.focusVisibleClassName,c=n.onClick,d=(0,b.Z)(n,rwe),p=o.useContext(Yxe),f=p.disabled,h=void 0!==f&&f,m=p.disableGutters,v=p.expanded,g=p.toggle,x=(0,r.Z)({},n,{expanded:v,disabled:h,disableGutters:m}),w=function(e){var t=e.classes,n=e.expanded,r=e.disabled,o=e.disableGutters,i={root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]};return(0,M.Z)(i,twe,t)}(x);return(0,u.jsxs)(owe,(0,r.Z)({focusRipple:!1,disableRipple:!0,disabled:h,component:"div","aria-expanded":v,className:(0,y.default)(w.root,a),focusVisibleClassName:(0,y.default)(w.focusVisible,l),onClick:function(e){g&&g(e),c&&c(e)},ref:t,ownerState:x},d,{children:[(0,u.jsx)(iwe,{className:w.content,ownerState:x,children:i}),s&&(0,u.jsx)(awe,{className:w.expandIconWrapper,ownerState:x,children:s})]}))})),lwe=swe;function cwe(e){return(0,F.Z)("MuiAccordionDetails",e)}(0,R.Z)("MuiAccordionDetails",["root"]);var uwe=["className"],dwe=(0,P.ZP)("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){return{padding:e.theme.spacing(1,2,2)}})),pwe=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiAccordionDetails"}),o=n.className,i=(0,b.Z)(n,uwe),a=n,s=function(e){var t=e.classes;return(0,M.Z)({root:["root"]},cwe,t)}(a);return(0,u.jsx)(dwe,(0,r.Z)({className:(0,y.default)(s.root,o),ref:t,ownerState:a},i))})),fwe=pwe,hwe=(0,pa.Z)((0,u.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),mwe={border:"none",boxShadow:"none"},vwe=function(e){var t=e.group,n=(e.image,(0,o.useState)("accordion0")),r=(0,Le.Z)(n,2),i=r[0],a=r[1],s=(0,o.useState)(!1),c=(0,Le.Z)(s,2),d=(c[0],c[1]);return(0,u.jsx)(nn.Z,{width:"100%",spacing:3,children:t.map((function(e,t){return(0,u.jsxs)(ewe,{expanded:i==="accordion".concat(t),onChange:(n="accordion".concat(t),function(e,t){a(!!t&&n)}),sx:(0,l.Z)((0,l.Z)({m:0},mwe),{},{"&.MuiAccordion-root::before":{content:"unset"}}),children:[(0,u.jsx)(lwe,{expandIcon:(0,u.jsx)(hwe,{sx:{color:i==="accordion".concat(t)?"#fff":"#000"}}),"aria-controls":"panel1d-content",id:"panel1d-header",sx:(0,l.Z)({backgroundColor:"primaryDark.200","&.Mui-expanded":{backgroundColor:"primaryLight.500",color:"#fff"},expandIcon:{color:"#fff",backgroundColor:"#fff"},borderRadius:"0.3rem"},mwe),children:(0,u.jsx)(rn.Z,{sx:{typography:{xs:"publicBody4Light",sm:"publicBody3Light"}},children:e.summary})}),(0,u.jsx)(fwe,{sx:(0,l.Z)({backgroundColor:"transparent",mt:1,pb:1},mwe),children:(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(rn.Z,{variant:"publicBody4Light",children:e.details}),e.link&&e.href&&(0,u.jsx)(Wo,{onClick:function(){return d(!0)},sx:{maxWidth:"fit-content",pt:1},variant:"primaryText",endIcon:(0,u.jsx)(TR,{fill:tr.E4[500]}),children:e.link})]})})]});var n}))})};var gwe=n.p+"static/media/moi.908b608f49400eba857fed8f00c08a61.svg";var ywe=n.p+"static/media/gameboost.6d159d7c69d9e71c1acaea69bd5c4507.svg",bwe=n(67580);var xwe=n.p+"static/media/moi-big.2f889e76eb1c051187d0c3ac1984097e.svg";n(24110);var wwe=n.p+"static/media/gameboost-big.a0db36dca7f54b6cac2cf87acfce60bf.svg";var Cwe=n.p+"static/media/flw-pr.d681582698010f54552926a0023aa30e.svg",jwe=n(45790);var Swe=n.p+"static/media/ice-studio.7736e9a661d5d66f589e22117849ce47.svg",kwe=n(4943);var Zwe=n.p+"static/media/museum-of-illusions.75fc5382b7bf857f0f6a04756474bcb0.svg";var Owe,Ewe,Dwe,Pwe=n.p+"static/media/weeve.30ec43b74ca87584eee5f524b6ced68d.svg",Awe=[{subtitle:"Milestone & Task Management"},{subtitle:"Payment Scheduling & Analytics "},{subtitle:"Smart Contracts with DocuSign Integration"},{subtitle:"Simple Analytics Dashboard"}],Mwe=[(0,u.jsx)(tn,{src:(0,rs.mB)(Wxe.W.HomeMilestones),component:"img",width:"100%",height:"100%",alt:"Milestones and task management"}),(0,u.jsx)(tn,{src:(0,rs.mB)(Wxe.W.HomePayments),component:"img",width:"100%",height:"100%",alt:"Payment scheduling and analytics"}),(0,u.jsx)(tn,{src:(0,rs.mB)(Wxe.W.HomeContracts),component:"img",width:"100%",height:"100%",alt:"Smart contracts with DocuSign integration"}),(0,u.jsx)(tn,{src:(0,rs.mB)(Wxe.W.HomeHealth),component:"img",width:"100%",height:"100%",alt:"Simple analytics dashboard"})],Twe=[{summary:"Milestone and Task Management",details:"Organize your projects with clear milestones and tasks. Keep everyone on the same page without the clutter."},{summary:"Payment Scheduling and Analytics",details:"Automate your payment schedules linked directly to project milestones. Simplify your financial workflows."},{summary:"Smart Contracts with DocuSign Integration",details:"Create and manage contracts effortlessly with our integrated DocuSign capabilities. Secure, fast and legally binding."},{summary:"Simple Analytics Dashboard",details:"Get quick insights into supplier activities and project progress with our easy-to-read analytics. No complex reports - just the information you need."}],Iwe=[{icon:Cwe,subject:"We have never had a middleman support like we had with Spona. Your project managers provided us with answers to several questions that we had been unable to obtain for months. It's a great support system and a good buffer; if something goes wrong, paying someone a bit more to do your work for you is definitely worth it.",author:"Jennifer Peros",title:"Director of Talent at Famous Last Words PR",alt:"Famous Last Words logo - representing the brand"},{icon:jwe,subject:"The platform offers a very quick and efficient service that really does save your time and money. We were a bit strapped for time as the project was being planned during the holiday season and we wanted to kick it off as soon as possible, but thanks to TDA, everything worked out as fast as possible for us.",author:"Nora Mlinari\u0107",title:"PR & Marketing Specialist at Gruntek",alt:"Gruntek logo - representing the brand"},{icon:Swe,subject:"There are many benefits of working with Spona, especially payment processing and support, but also the extensive access to new potential clients. The platform is easy to use and Spona has provided us with excellent support during the entire process.",author:"Ivana Cvetkovi\u0107 Lako\u0161",title:"Designer and Creative Director at ICE STUDIO",alt:"iceStudio logo - representing the brand"},{icon:kwe,subject:"We were especially happy with the amount of pitches we received thanks to Spona. Talking with different companies helped us refine and structure our project needs precisely. During the second round of interviews, we were able to find the perfect seller right away, which saved us a lot of time.",author:"Tamara Budhan Caldwell",title:"Founder and CEO at Impress Education",alt:"Impress Education logo - representing the brand"},{icon:Zwe,subject:"We enjoyed working with Spona - it was great to get help with centralizing our outsourcing and resolving any issues that might arise. For us, Spona's level of support and the wide pool of diverse talent are the main advantages of using the platform.",author:"Kata Proli\u0107",title:"CMO at Museum of Illusions",alt:"Museum of Illusions logo - representing the brand"},{icon:Pwe,subject:"The Spona team has done a great job supporting us during the project and following up on issues, and saved us resources looking for digital service sellers.",author:"Christos Zachiotis",title:"IoT Solutions Manager at weeve",alt:"Weeve logo - representing the brand"}],Rwe=[{summary:"No Complex Onborading",details:"Forget about the long, frustrating setup times that come with other tools. With Spona , everything is pre-assembled and ready to use immediately. Start managing your contracts, tasks and payments right away, without requiring IT support or advanced training."},{summary:"Automate Your Workflow",details:"Spona brings automation to your entire workflow. Create smart contracts, link payments to milestones, and track tasks - all on one platform. Simplify how you handle projects so you can spend less time on administration and more time on what you do best."},{summary:"Simple Analytics",details:"Get quick insights into your project status and supplier activities with our easy-to-understand analytics. Track progress, identify bottlenecks and keep your team and suppliers accountable - all from one straightforward dashboard."}],Fwe=function(){return(0,u.jsxs)(nn.Z,{direction:"row",spacing:{md:8},my:{xs:10,md:10},sx:(0,l.Z)({},ar),justifyContent:"space-between",alignItems:"center",children:[(0,u.jsx)(tn,{src:(0,rs.mB)(Wxe.W.HomeFeatures),alt:"Creating a project on the Spona platform",component:"img",sx:{width:"37%",display:{xs:"none",md:"block"}}}),(0,u.jsxs)(nn.Z,{justifyContent:"start",alignItems:"start",spacing:{xs:3,lg:6},sx:{width:{xs:"100%",lg:"50%"}},children:[(0,u.jsx)(rn.Z,{sx:{typography:{xs:"publicHeading4",lg:"publicHeading3"}},children:"Features"}),(0,u.jsx)(tn,{alt:"Creating a project on the Spona platform",src:(0,rs.mB)(Wxe.W.HomeFeatures),component:"img",sx:{width:"100%",display:{xs:"block",md:"none"}}}),(0,u.jsx)(vwe,{group:Twe,image:(0,rs.mB)(Wxe.W.HomeFeatures)})]})]})},Bwe=function(){var e=null!==localStorage.getItem("AccessToken"),t=(0,ze.s0)(),n=(Bn(ir.breakpoints.down("gr")),Bn(ir.breakpoints.down("md")));return(0,u.jsxs)(nn.Z,{spacing:3,justifyContent:"center",sx:(0,l.Z)((0,l.Z)({},ar),{},{marginTop:"".concat(117,"px")}),children:[(0,u.jsx)(rn.Z,{variant:"publicBody2",sx:{color:"primaryLight.500"},children:"Keep it together"}),(0,u.jsx)(nn.Z,{justifyContent:"center",alignItems:"center",width:"fit-content",children:(0,u.jsxs)(rn.Z,{display:{xs:"grid",md:"grid"},sx:{typography:{xs:"publicHeadline7",md:"publicHeadline7",lg:"publicHeadline7"},fontSize:{xs:"2.9rem",md:"4rem",lg:"4rem"},lineHeight:"106%"},children:["Your Pre-Assembled Project"," ",(0,u.jsxs)(rn.Z,{component:"span",sx:{position:"relative",typography:{xs:"publicHeadline7",md:"publicHeadline7",lg:"publicHeadline7"},fontSize:{xs:"2.9rem",md:"4rem",lg:"4rem"},lineHeight:"106%"},children:["and Supplier Management Tool",(0,u.jsx)(tn,{sx:{backgroundColor:"primaryLight.500",width:"100%",height:n?"0.5rem":"1rem",borderRadius:"7rem",position:"absolute",bottom:{xs:"-15px",md:"-20px"},left:0,zIndex:-1}})]})]})}),(0,u.jsxs)(nn.Z,{spacing:{md:8},direction:"row",justifyContent:"space-between",alignItems:"center",sx:{pt:"1.5rem"},children:[(0,u.jsx)(nn.Z,{spacing:6,maxWidth:{xs:"100%",xl:"40%"},children:(0,u.jsxs)(nn.Z,{spacing:4,children:[(0,u.jsx)(rn.Z,{variant:"publicBody3Regular",sx:{zIndex:9},children:"Forget complex setups. With Spona, you can manage projects and suppliers instantly - simple, effective and all in one place."}),!e&&(0,u.jsx)(Wo,{variant:"primary",withNextArrow:!0,sx:{width:{xs:"55%",md:"45%"},py:{xs:"18px"}},onClick:function(){return t("/register")},children:"Get started"})]})}),(0,u.jsx)(nn.Z,{display:{xs:"none",md:"flex"},sx:{width:{xs:"100%",xl:"50%"}},alignItems:"flex-end",children:(0,u.jsx)(tn,{component:"img",src:(0,rs.mB)(Wxe.W.HomeE2E),alt:"Mock-up of a laptop showing a screenshot of Spona\u2019s tool.",sx:{width:{md:"53vw",xl:"48vw"}}})})]})]})},Lwe=function(){return(0,u.jsxs)(nn.Z,{direction:"row",spacing:{md:8},my:{xs:10,lg:10},sx:(0,l.Z)({},ar),justifyContent:"space-between",alignItems:"center",children:[(0,u.jsxs)(nn.Z,{justifyContent:"start",alignItems:"start",spacing:{xs:3,lg:6},sx:{width:{xs:"100%",lg:"50%"}},children:[(0,u.jsx)(rn.Z,{sx:{typography:{xs:"publicHeading4",lg:"publicHeading3"}},children:"Simplify, Automate and Achieve More"}),(0,u.jsx)(tn,{src:(0,rs.mB)(Wxe.W.HomeSimplify),component:"img",sx:{width:"100%",display:{xs:"block",md:"none"}},alt:"Person analyzing data on a tablet"}),(0,u.jsx)(vwe,{group:Rwe,image:(0,rs.mB)(Wxe.W.HomeSimplify)})]}),(0,u.jsx)(tn,{src:(0,rs.mB)(Wxe.W.HomeSimplify),component:"img",sx:{width:"37%",display:{xs:"none",md:"block"}},alt:"Person analyzing data on a tablet"})]})},Nwe=function(e){var t=e.testimonial;return(0,u.jsx)(tn,{sx:{borderRadius:4,backgroundColor:"#fff",height:{xs:520,sm:560},width:{xs:"100%"},p:{xs:4}},children:(0,u.jsxs)(nn.Z,{spacing:4,sx:{height:"100%"},justifyContent:"space-between",children:[(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsx)(tn,{src:t.icon,alt:t.alt,sx:{mb:1.2,borderRadius:2},width:{xs:"30% !important",lg:"16% !important"},component:"img"}),(0,u.jsx)(tn,{sx:{mb:2,maxWidth:{xs:"100%",md:"80%"}},children:(0,u.jsx)(rn.Z,{variant:"publicBody5Light",color:"common.black",lineHeight:"140%",children:t.subject})})]}),(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(rn.Z,{variant:"publicBody5Light",color:"primaryDark.600",children:t.author}),(0,u.jsx)(rn.Z,{variant:"publicBody5Light",color:"primaryDark.600",lineHeight:"100%",children:t.title})]})]})})},_we=n(92020),zwe=n.n(_we),Hwe=["items","buttonStyles","onChangedSlide"],Wwe=function(e){var t=e.items,n=e.buttonStyles,r=e.onChangedSlide,i=Nn(e,Hwe),a=(0,o.useRef)(null),s=function(e){var t=e.sx;return(0,u.jsx)(io.Z,{onClick:function(){return a.current.slideNext(500)},sx:(0,l.Z)({position:"absolute",width:"2.7rem",height:"2.7rem",zIndex:2,backgroundColor:"primaryLight.100",top:{xs:"58%",lg:"48%",xl:"45%"},right:{xs:"0%"},boxShadow:"6px 6px 15px 0px rgba(56, 69, 114, 0.10)"},t),children:(0,u.jsx)(dM.Z,{sx:{color:"primaryLight.700",fontSize:"1.9rem"}})})};return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(zwe(),(0,l.Z)({ref:a,onSlideChanged:function(e){return null===r||void 0===r?void 0:r(e.item)},mouseTracking:!0,touchTracking:!0,items:t,animationType:"slide",paddingLeft:0,paddingRight:0,autoPlay:!0,autoPlayInterval:4500,controlsStrategy:"alternate",infinite:!0,disableButtonsControls:!0},i)),(0,u.jsx)(s,{sx:(0,l.Z)({},n)})]})},Vwe=(Owe={},(0,t.Z)(Owe,ir.breakpoints.values.xs,{items:1}),(0,t.Z)(Owe,ir.breakpoints.values.sm,{items:2}),(0,t.Z)(Owe,ir.breakpoints.values.xxl,{items:1}),Owe),Uwe=function(e){var t=e.testimonials,n=e.subtext,r=void 0===n?"Find out what members of our community have to say about their experience with Spona.":n,o=e.showbackgroundColor,i=e.sx;return(0,u.jsx)(nn.Z,{py:8,sx:(0,l.Z)({backgroundColor:o?"transparent":"primaryDark.200",position:"relative"},i),children:(0,u.jsxs)(nn.Z,{spacing:{xs:7,lg:20},direction:{xs:"column",lg:"row"},alignItems:"center",justifyContent:"start",sx:(0,l.Z)((0,l.Z)({},ar),{},{position:"relative"}),children:[(0,u.jsxs)(nn.Z,{spacing:2.5,width:{xs:"100%",lg:"60%"},children:[(0,u.jsx)(rn.Z,{sx:{typography:{xs:"publicHeading4",lg:"publicHeading3"},mr:12,pb:{xs:0,md:1,lg:2}},children:"Testimonials"}),(0,u.jsx)(rn.Z,{maxWidth:{xs:"100%",lg:"90%"},variant:"publicBody3Light",children:r})]}),(0,u.jsx)(tn,{sx:{width:"100%",position:{xs:"relative",lg:"initial"}},children:(0,u.jsx)(Wwe,{responsive:Vwe,items:t.map((function(e){return(0,u.jsx)(Nwe,{testimonial:e})})),buttonStyles:{top:"50%",transform:"translateY(-50%)",right:{xs:"-4%",md:"-1%",lg:"0%",xxl:"-15%"}}})})]})})},qwe=(Ewe={},(0,t.Z)(Ewe,ir.breakpoints.values.xs,{items:1}),(0,t.Z)(Ewe,ir.breakpoints.values.sm,{items:2}),(0,t.Z)(Ewe,ir.breakpoints.values.md,{items:3}),(0,t.Z)(Ewe,ir.breakpoints.values.lg,{items:2}),(0,t.Z)(Ewe,ir.breakpoints.values.xl,{items:3}),(0,t.Z)(Ewe,ir.breakpoints.values.xxl,{items:2}),Ewe),Gwe=function(){var e=(0,o.useState)(0),t=(0,Le.Z)(e,2),n=t[0],r=t[1];return(0,u.jsx)(nn.Z,{pt:2,pb:8,sx:{backgroundColor:"primaryDark.200",position:"relative"},children:(0,u.jsxs)(nn.Z,{spacing:{xs:7,lg:20},direction:{xs:"column",lg:"row"},alignItems:"center",justifyContent:"start",sx:(0,l.Z)((0,l.Z)({},ar),{},{position:"relative"}),children:[(0,u.jsx)(nn.Z,{spacing:2.5,width:{xs:"100%",lg:"60%"},minHeight:{xs:"123px",sm:"82px",md:0,lg:"308px"},minWidth:"310px",justifyContent:"center",children:(0,u.jsx)(rn.Z,{maxWidth:{xs:"100%",lg:"90%"},variant:"publicHeading3",fontSize:{xs:"2rem",lg:"3rem"},children:Awe[n].subtitle})}),(0,u.jsx)(tn,{sx:{width:"100%",position:{xs:"relative",lg:"initial"}},children:(0,u.jsx)(Wwe,{responsive:qwe,items:Mwe,onChangedSlide:function(e){return r(e)},buttonStyles:{top:"50%",transform:"translateY(-50%)",right:{xs:"-4%",md:"-1%",lg:"0%",xxl:"-15%"}}})})]})})},Ywe=function(e){var t=e.title,n=e.subtitle,r=void 0===n?"Become a part of Spona to get started on your next big project.":n,o=e.bgcolor,i=void 0===o?tr.E4[500]:o,a=e.color,s=void 0===a?"white":a,c=e.dividerColor,d=void 0===c?tr.dx[100]:c,p=e.borderColor,f=e.boxShadow,h=void 0===f||f,m=e.buttonBgColor,v=void 0===m?"white":m,g=e.onButtonClick,y=(0,ze.s0)(),b=null!==localStorage.getItem("AccessToken");return(0,u.jsx)(nn.Z,{alignItems:"center",sx:(0,l.Z)((0,l.Z)({},ar),{},{pb:"12px"}),children:(0,u.jsxs)(nn.Z,{spacing:2,sx:{bgcolor:i,width:"100%",borderRadius:"20px",border:p?"1px solid ".concat(p):"none",boxShadow:h?"6px 6px 15px 0px rgba(56, 69, 114, 0.10)":"none",p:{xs:3,md:6}},children:[(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,u.jsx)(rn.Z,{sx:{typography:{xs:"publicHeading4",lg:"publicHeading3"}},color:s,width:{xs:"60%",sm:"60%",md:"100%"},children:t}),(0,u.jsx)(io.Z,{onClick:function(){return g?null===g||void 0===g?void 0:g():y(b?"/dashboard/end-to-end":"/register")},sx:{backgroundColor:v,boxShadow:"6px 6px 15px 0px rgba(56, 69, 114, 0.10)",height:{xs:"2rem",lg:"3.5rem"},width:{xs:"2rem",lg:"3.5rem"},"&:hover":{bgcolor:"primaryDark.150"}},children:(0,u.jsx)(TR,{fill:tr.dx[500],width:"1rem",height:"1rem"})})]}),(0,u.jsx)(un,{sx:{borderColor:d}}),(0,u.jsx)(rn.Z,{sx:{typography:{xs:"publicBody3Light",lg:"publicBody3Regular"}},color:s,children:r})]})})},Kwe=function(e){var t=e.description,n=e.title;return(0,u.jsxs)(Gt,{children:[n&&(0,u.jsx)("meta",{property:"og:title",content:n}),n&&(0,u.jsx)("title",{children:n}),(0,u.jsx)("meta",{name:"description",content:t}),(0,u.jsx)("meta",{name:"og:description",content:t}),(0,u.jsx)("meta",{name:"twitter:card",content:t}),(0,u.jsx)("meta",{name:"pinterest:description",content:t})]})},Jwe=function(){var e=(0,ze.s0)();return(0,u.jsxs)(nn.Z,{direction:{xs:"column",md:"row"},spacing:{xs:6,md:0},alignItems:"center",sx:(0,l.Z)({position:"relative",bgcolor:"primaryLight.100",px:{xs:4,lg:5},py:{xs:9,lg:5,xl:5},pb:{xs:3,sm:6,lg:5},borderRadius:"20px",width:{xs:"fit-content",xl:"auto"},overflow:{xs:"hidden",lg:"visible"},mt:"60px",my:8},ar),children:[(0,u.jsxs)(nn.Z,{spacing:"36px",sx:{maxWidth:{xs:"100%",lg:"55%"}},children:[(0,u.jsx)(rn.Z,{color:"common.black",whiteSpace:"pre-line",sx:{typography:{xs:"publicHeading4",lg:"publicHeading3"}},children:"Why stop at project management? Have a project but no service supplier?"}),(0,u.jsx)(rn.Z,{color:"common.black",variant:"publicBody3Light",sx:{maxWidth:{xs:"100%",md:"50%",lg:"90%"},zIndex:10},children:"With over 10,000 service sellers in our marketplace from 130+ countries, and our dedicated Spona matchmaking tool, you get started with your projects immediately."}),(0,u.jsx)(Wo,{onClick:function(){return e("/how-to-hire")},variant:"primaryLight",sx:{width:"fit-content"},children:"Explore Our Marketplace"})]}),(0,u.jsx)(tn,{alt:"Mock-up of a laptop showing a screenshot of Spona\u2019s tool ",component:"img",src:(0,rs.mB)(Wxe.W.HomeMapSvg),sx:{maxWidth:{xs:"none",sm:"580px",md:"none"},width:{xs:"100%",md:"54%"}}})]})},Xwe={title:"Spona - Streamline project collaboration, management, finance",description:"Spona simplifies project collaboration, management, and financing, offering new clients extensive access and excellent support on a single platform."},Qwe=function(){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Kwe,(0,l.Z)({},Xwe)),(0,u.jsxs)(nn.Z,{width:"100%",overflow:"hidden",children:[(0,u.jsx)(Bwe,{}),(0,u.jsx)(Uxe,{}),(0,u.jsx)(Gxe,{}),(0,u.jsx)(Gwe,{}),(0,u.jsx)(Fwe,{}),(0,u.jsx)(Uwe,{testimonials:Iwe}),(0,u.jsx)(Lwe,{}),(0,u.jsx)(Ywe,{title:"Ready to Simplify Your Project & Supplier Management?"}),(0,u.jsx)(Jwe,{})]})]})},$we=n(24565),eCe={description:"Spona.io 404 Error Page"},tCe=function(){var e=(0,ze.s0)();return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Kwe,(0,l.Z)({},eCe)),(0,u.jsx)(nn.Z,{overflow:"hidden",width:"100%",mt:{xs:"3rem",sm:"4rem",lg:"4.5rem"},children:(0,u.jsx)(tn,{sx:{backgroundColor:"primaryLight.700",display:"flex",justifyContent:"center",alignItems:"center",backgroundImage:"url(".concat($we,")"),height:"70vh",backgroundRepeat:"no-repeat",backgroundPosition:"right",backgroundSize:"cover"},children:(0,u.jsxs)(nn.Z,{sx:{paddingX:"30px"},spacing:3.5,children:[(0,u.jsx)(rn.Z,{color:"#fff",variant:"publicHeading1",sx:(0,t.Z)({},ir.breakpoints.down("sm"),{fontSize:"32px"}),children:"Oops! This page does not exist."}),(0,u.jsx)(rn.Z,{color:"#fff",variant:"publicBody2",mb:"1rem",children:"Click below to go back to safety. If the link is broken, let us know and we'll fix it shortly."}),(0,u.jsx)(Wo,{startIcon:(0,u.jsx)(LR,{}),variant:"primaryLight",sx:{width:"fit-content",color:"#384572"},onClick:function(){return e(-1)},children:"BACK"})]})})})]})},nCe=(0,Dh.Z)((function e(t,n,r,o){(0,Ph.Z)(this,e),this.presignedUrl=void 0,this.file=void 0,this.resourceUrl=void 0,this.resourceType=void 0,this.presignedUrl=t,this.file=n,this.resourceUrl=r,this.resourceType=o})),rCe=(0,Dh.Z)((function e(t){(0,Ph.Z)(this,e),this.banner=void 0,this.logo=void 0,this.profile=void 0,this.carousel=void 0,Object.assign(this,t)})),oCe=ZS($me((function(e){return{createArticleInput:{},setCreateArticleInput:function(t){return e((function(e){return{createArticleInput:(0,l.Z)((0,l.Z)({},e.createArticleInput),t)}}))},deleteEverything:function(){return e({createArticleInput:{}})}}}))),iCe=oCe,aCe=function(e){var t,n,r,i,a,s,c,d=e.adminMode,p=void 0!==d&&d,f=e.companies,h=iCe((function(e){return e.createArticleInput})),m=iCe((function(e){return e.setCreateArticleInput})),v=rve((function(e){return e.setCanGoNext})),g=rve((function(e){return e.setCanSaveAsDraft})),y=(0,o.useState)(null!==(t=h.files)&&void 0!==t?t:new rCe),b=(0,Le.Z)(y,2),x=b[0],w=(b[1],"This field is required"),C=p?{company:null===h||void 0===h?void 0:h.company}:{},j=fd({mode:"onChange",defaultValues:(0,l.Z)((0,l.Z)({},C),{},{title:null!==(n=h.title)&&void 0!==n?n:"",body:{articleBody:null!==(r=null===h||void 0===h||null===(i=h.body)||void 0===i?void 0:i.articleBody)&&void 0!==r?r:null,authorBiography:null!==(a=null===h||void 0===h||null===(s=h.body)||void 0===s?void 0:s.authorBiography)&&void 0!==a?a:null},authorName:null!==(c=null===h||void 0===h?void 0:h.authorName)&&void 0!==c?c:null})}),S=j.register,k=j.watch,Z=j.setValue,O=j.formState,E=O.errors,D=O.isValid,P=j.control;return(0,o.useEffect)((function(){m({files:x})}),[x]),(0,o.useEffect)((function(){g(!(!D||void 0===x.banner)),v(!(!D||void 0===x.banner||null===k("body.articleBody")))}),[D,x,k("body.articleBody")]),(0,o.useEffect)((function(){var e=k((function(){return m(k())}));return function(){return e.unsubscribe()}}),[k]),(0,u.jsx)(tn,{component:"form",children:(0,u.jsxs)(nn.Z,{spacing:5,children:[p&&(0,u.jsxs)(tn,{children:[(0,u.jsx)(rn.Z,{variant:"body1",sx:{fontWeight:"bold",mb:.5},children:"Company"}),(0,u.jsx)(du,{name:"company",control:P,rules:{required:w},render:function(e){var t=e.field;return(0,u.jsx)(Od.Z,(0,l.Z)((0,l.Z)({},t),{},{sx:{background:"#fff"},displayEmpty:!0,fullWidth:!0,renderValue:function(e){var t;return void 0===e?(0,u.jsx)(rn.Z,{sx:{color:"grey.500"},children:"Select*"}):null===f||void 0===f||null===(t=f.find((function(t){return t.id===e})))||void 0===t?void 0:t.name},children:null===f||void 0===f?void 0:f.map((function(e){return(0,u.jsx)(Nl.Z,{value:e.id,children:e.name},e.id)}))}))}})]}),(0,u.jsxs)(tn,{children:[(0,u.jsxs)(tn,{sx:{mb:.5},children:[(0,u.jsx)(rn.Z,{variant:"body1",sx:{fontWeight:"bold"},children:"Title"}),(0,u.jsx)(rn.Z,{variant:"body1",children:"The title should include the necessery keywords and be between 4-9 words long."})]}),(0,u.jsx)(xd.Z,(0,l.Z)((0,l.Z)({},S("title",{required:w})),{},{fullWidth:!0,type:"text",variant:"outlined",placeholder:"Type*",sx:{background:"#fff"},helperText:E.title&&(0,u.jsx)(I$.Z,{error:!0,sx:{ml:0},children:E.title.message})}))]}),(0,u.jsxs)(tn,{sx:{mb:3},children:[(0,u.jsx)(rn.Z,{variant:"body1",sx:{fontWeight:"bold"},children:"Upload Featured image"}),(0,u.jsx)(rn.Z,{variant:"body1",sx:{mb:1,maxWidth:800},children:"We\u2019ll need an image that represents your article on the archive page and the thumbnail. Suggested dimensions: 1920x1080 pixels, .jpg or .png. Maximum 10MB."})]}),(0,u.jsxs)(tn,{children:[(0,u.jsxs)(tn,{sx:{py:1},children:[(0,u.jsx)(rn.Z,{variant:"body1",sx:{fontWeight:"bold"},children:"Article text"}),(0,u.jsx)(rn.Z,{variant:"body1",children:"Write and format your article here. Be sure to add headings, relevant links and keywords."})]}),(0,u.jsx)(m$,{items:D$,isEditable:!0,onUpdateContent:function(e){return Z("body.articleBody",e,{shouldValidate:!0})},onValidationChange:function(e){e||Z("body.articleBody",null)}})]}),(0,u.jsxs)(tn,{children:[(0,u.jsx)(rn.Z,{variant:"h6",sx:{color:"grey.500"},children:"OPTIONAL"}),(0,u.jsx)(un,{})]}),(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsxs)(tn,{children:[(0,u.jsx)(rn.Z,{variant:"body1",sx:{fontWeight:"bold"},children:"Author"}),(0,u.jsx)(rn.Z,{variant:"body1",children:"Placeholder something blah blah"})]}),(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsxs)(tn,{children:[(0,u.jsx)(rn.Z,{variant:"body1",sx:{fontWeight:"bold"},children:"Name"}),(0,u.jsx)(xd.Z,(0,l.Z)((0,l.Z)({},S("authorName")),{},{fullWidth:!0,type:"text",variant:"outlined",placeholder:"Type",sx:{background:"#fff"},helperText:E.title&&(0,u.jsx)(I$.Z,{error:!0,sx:{ml:0},children:E.title.message})}))]}),(0,u.jsxs)(tn,{children:[(0,u.jsx)(rn.Z,{variant:"body1",sx:{fontWeight:"bold"},children:"Biography"}),(0,u.jsx)(xd.Z,(0,l.Z)((0,l.Z)({},S("body.authorBiography")),{},{fullWidth:!0,multiline:!0,rows:5,type:"text",variant:"outlined",placeholder:"Type",sx:{background:"#fff"},helperText:E.title&&(0,u.jsx)(I$.Z,{error:!0,sx:{ml:0},children:E.title.message})}))]})]})]})]})})},sCe=function(){var e,t=iCe((function(e){return e.createArticleInput})),n=iCe((function(e){return e.setCreateArticleInput})),r=rve((function(e){return e.setCanGoNext})),i=fd({mode:"onChange",defaultValues:{articleTypes:null!==(e=t.articleTypes)&&void 0!==e?e:[]}}),a=i.watch,s=i.control,c=i.formState.isValid;return(0,o.useEffect)((function(){r(c)}),[c]),(0,o.useEffect)((function(){var e=a((function(){return n(a())}));return function(){return e.unsubscribe()}}),[a]),(0,u.jsx)(tn,{component:"form",children:(0,u.jsxs)(nn.Z,{spacing:1,children:[(0,u.jsx)(rn.Z,{variant:"body1",sx:{fontWeight:"bold"},children:"Article types"}),(0,u.jsx)(du,{name:"articleTypes",control:s,render:function(e){var n=e.field;return(0,u.jsx)(kn,{direction:"row",justifyContent:"space-between",container:!0,columns:{md:3},children:Array.from(T$.AF,(function(e){var r,i=(0,Le.Z)(e,2),a=i[0],s=i[1];return(0,u.jsx)(kn,{item:!0,md:1,children:(0,o.createElement)(iF.Z,(0,l.Z)((0,l.Z)({},n),{},{key:a,label:s,control:(0,u.jsx)(G$.Z,{color:"secondary",checked:null===t||void 0===t||null===(r=t.articleTypes)||void 0===r?void 0:r.includes(a),onChange:function(){if(n.value.includes(a)){var e=n.value.filter((function(e){return e!==a}));n.onChange(e)}else n.onChange([].concat((0,dn.Z)(n.value),[a]))}})}))},a)}))})}})]})})},lCe={PaperProps:{style:{maxHeight:224,width:250}}},cCe=function(e){var t,n,r=e.enumMap,o=e.elements,i=e.getElementTitle,a=e.watch,s=e.control,c=e.valuesName,d=e.isRequired,p=e.requiredMessage,f=e.backgroundColor,h=(e.chipBackgroundColor,e.chipRoundedCorners,e.shouldHaveRemove),m=e.remove;e.deleteIconColor;return(0,u.jsxs)(nn.Z,{spacing:1.5,width:"100%",children:[(0,u.jsx)(du,{name:c,control:s,rules:{required:!!d&&p},render:function(e){var t=e.field;return(0,u.jsxs)(Od.Z,(0,l.Z)((0,l.Z)({},t),{},{sx:{background:null!==f&&void 0!==f?f:"transparent"},multiple:!0,displayEmpty:!0,MenuProps:lCe,fullWidth:!0,renderValue:function(e){return(null===e||void 0===e?void 0:e.length)>=0?(0,u.jsx)(rn.Z,{sx:{color:"grey.500"},children:"Select*"}):null},children:[r&&Array.from(r,(function(e){var t=(0,Le.Z)(e,2),n=t[0],r=t[1];return(0,u.jsx)(Nl.Z,{value:n,children:r},n)})),o&&o.map((function(e){return(0,u.jsx)(Nl.Z,{value:null===e||void 0===e?void 0:e.id,children:null===e||void 0===e?void 0:e.title},null===e||void 0===e?void 0:e.id)}))]}))}}),(0,u.jsx)(nn.Z,{direction:"row",sx:{flexWrap:"wrap",gap:"10px"},children:h?(null!==(t=a(c))&&void 0!==t?t:[]).map((function(e,t){return(0,u.jsx)(_d,{onDelete:function(){m&&m(t)},variant:"filled",label:r?null===r||void 0===r?void 0:r.get(e):null===i||void 0===i?void 0:i(e)},e)})):(null!==(n=a(c))&&void 0!==n?n:[]).map((function(e,t){return(0,u.jsx)(_d,{variant:"filled",label:r?null===r||void 0===r?void 0:r.get(e):null===i||void 0===i?void 0:i(e)},e)}))})]})},uCe=function(){var e,t,n,r,i=iCe((function(e){return e.createArticleInput})),a=iCe((function(e){return e.setCreateArticleInput})),s=rve((function(e){return e.setCanGoNext})),l="This field is required",c=fd({mode:"onChange",defaultValues:{services:null!==(e=i.services)&&void 0!==e?e:[],techLanguages:null!==(t=i.techLanguages)&&void 0!==t?t:[],techPlatforms:null!==(n=i.techPlatforms)&&void 0!==n?n:[],techTools:null!==(r=i.techTools)&&void 0!==r?r:[]}}),d=c.watch,p=c.control,f=c.formState.isValid,h=c.getValues,m=c.setValue,v=function(e,t){var n=[];switch(t){case"services":(n=h("services")).splice(e,1),m("services",n);break;case"techLanguages":(n=h("techLanguages")).splice(e,1),m("techLanguages",n);break;case"techPlatforms":(n=h("techPlatforms")).splice(e,1),m("techPlatforms",n);break;case"techTools":(n=h("techTools")).splice(e,1),m("techTools",n)}};return(0,o.useEffect)((function(){s(f)}),[f]),(0,o.useEffect)((function(){var e=d((function(){return a(d())}));return function(){return e.unsubscribe()}}),[d]),(0,u.jsx)(tn,{component:"form",children:(0,u.jsxs)(nn.Z,{children:[(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsxs)(tn,{children:[(0,u.jsx)(rn.Z,{variant:"body1",sx:{fontWeight:"bold"},children:"Expertise"}),(0,u.jsx)(rn.Z,{variant:"body1",children:"Select the expertise & concepts expressed in your article."})]}),(0,u.jsx)(cCe,{enumMap:Kt.Sj,watch:d,control:p,valuesName:"services",isRequired:!0,requiredMessage:l,backgroundColor:"#fff",shouldHaveRemove:!0,remove:function(e){return v(e,"services")}})]}),(0,u.jsxs)(tn,{sx:{mt:6,mb:2},children:[(0,u.jsx)(rn.Z,{variant:"h6",sx:{color:"grey.500"},children:"OPTIONAL"}),(0,u.jsx)(un,{})]}),(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsxs)(tn,{children:[(0,u.jsx)(rn.Z,{variant:"body1",sx:{fontWeight:"bold",mb:.5},children:"Tech languages"}),(0,u.jsx)(cCe,{enumMap:T$.G3,watch:d,control:p,valuesName:"techLanguages",isRequired:!0,requiredMessage:l,backgroundColor:"#fff",shouldHaveRemove:!0,remove:function(e){return v(e,"techLanguages")}})]}),(0,u.jsxs)(tn,{children:[(0,u.jsx)(rn.Z,{variant:"body1",sx:{fontWeight:"bold",mb:.5},children:"Tech platforms"}),(0,u.jsx)(cCe,{enumMap:T$.VA,watch:d,control:p,valuesName:"techPlatforms",isRequired:!0,requiredMessage:l,backgroundColor:"#fff",shouldHaveRemove:!0,remove:function(e){return v(e,"techPlatforms")}})]}),(0,u.jsxs)(tn,{children:[(0,u.jsx)(rn.Z,{variant:"body1",sx:{fontWeight:"bold",mb:.5},children:"Tech tools"}),(0,u.jsx)(cCe,{enumMap:T$.oz,watch:d,control:p,valuesName:"techTools",isRequired:!0,requiredMessage:l,backgroundColor:"#fff",shouldHaveRemove:!0,remove:function(e){return v(e,"techTools")}})]})]})]})})},dCe=function(){var e,t=iCe((function(e){return e.createArticleInput})),n=iCe((function(e){return e.setCreateArticleInput})),r=rve((function(e){return e.setCanGoNext})),i=fd({mode:"onChange",defaultValues:{industries:null!==(e=t.industries)&&void 0!==e?e:[]}}),a=i.watch,s=i.control,l=i.formState.isValid,c=i.getValues,d=i.setValue;return(0,o.useEffect)((function(){r(l)}),[l]),(0,o.useEffect)((function(){var e=a((function(){return n(a())}));return function(){return e.unsubscribe()}}),[a]),(0,u.jsx)(tn,{component:"form",children:(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsxs)(tn,{children:[(0,u.jsx)(rn.Z,{variant:"body1",sx:{fontWeight:"bold"},children:"Industry focus"}),(0,u.jsx)(rn.Z,{variant:"body1",children:"Select any industries that apply to your article."})]}),(0,u.jsx)(cCe,{enumMap:Kt.lu,watch:a,control:s,valuesName:"industries",isRequired:!0,requiredMessage:"This field is required",backgroundColor:"#fff",shouldHaveRemove:!0,remove:function(e){return function(e){var t=c("industries");t.splice(e,1),d("industries",t)}(e)}})]})})},pCe=function(e){var t=e.heading,n=e.subheading,r=e.buttonText,o=e.buttonLinkTo,i=(0,ze.s0)();return(0,u.jsxs)(nn.Z,{alignItems:"center",justifyContent:"center",spacing:4,sx:{width:"100%",height:"100%"},children:[(0,u.jsx)(rn.Z,{variant:"h2",children:t}),(0,u.jsx)(rn.Z,{sx:{maxWidth:"68%",textAlign:"center"},children:n}),(0,u.jsx)(jZ,{linkTo:o,onButtonClick:function(e){i(null!==e&&void 0!==e?e:"/")},setBorderRadius:!0,fontWeight:"bold",variant:"contained",color:"secondary",setUpperCase:!0,minWidth:220,children:r})]})},fCe=(n(45133),function(e){var t=e.reduce((function(e,t){var n=t;return n.toUpload?(e.push(new nCe(n.toUpload.presignedUrl,n.toUpload.file,n.toUpload.resourceUrl,n.toUpload.resourceType)),delete n.toUpload,e):e}),[]);return t}),hCe=function(e){var t=new Array;if(e.carousel&&e.carousel.length>0){var n=fCe(e.carousel);t=t.concat(n)}else{var r=null;e.banner&&e.banner.toUpload&&(r=e.banner.toUpload,delete e.banner.toUpload),e.logo&&e.logo.toUpload&&(r=e.logo.toUpload,delete e.logo.toUpload),e.profile&&e.profile.toUpload&&(r=e.profile.toUpload,delete e.profile.toUpload),r&&t.push(r)}return t},mCe=n(35004),vCe=n(93499),gCe=n(64369);!function(e){e.Article="article",e.CaseStudy="case study",e.CaseStudyReview="case study review",e.TimedProject="timed project detail screen"}(Dwe||(Dwe={}));var yCe,bCe=Dwe;!function(e){e.Service="service",e.Industry="industry",e.TechLanguage="tech language",e.TechPlatform="tech platform",e.TechTool="tech tool",e.Country="country",e.ProjectSize="project size"}(yCe||(yCe={}));var xCe=yCe;var wCe=n.p+"static/media/icon-service-animation.da30c66e0426e36d1af9fe5f7f853d73.svg";var CCe=n.p+"static/media/icon-service-app-design.1ebe1b87a8227f05a83827916291c672.svg";var jCe=n.p+"static/media/icon-service-app-development.fc81699f4f3fa8fd8caa5694b3f7f85e.svg";var SCe=n.p+"static/media/icon-service-augmented-reality-ar.dfd516e1c5b4f9d762bec4ec4ef07299.svg";var kCe=n.p+"static/media/icon-service-blockchain.83cd266826b9bde29e0ab3e23693cecd.svg";var ZCe=n.p+"static/media/icon-service-branding.a017f37d59d74d5a90e0c134234beb27.svg";var OCe=n.p+"static/media/icon-service-community-management.6299e47dc906f965c73e811d4d8064b1.svg";var ECe=n.p+"static/media/icon-service-content-marketing.4d5d4a5c382ea4dec1b2be0ccf4d059b.svg";var DCe=n.p+"static/media/icon-service-copywriting.6616bb298cb024f1ebc813f903b7616c.svg";var PCe=n.p+"static/media/icon-service-data-analytics.ee4962b7533697ef34efbe81139a6f35.svg";var ACe=n.p+"static/media/icon-service-data-engineering.dede48fe91d737414c66647f79391753.svg";var MCe=n.p+"static/media/icon-service-data-science.7f8ab5a5e2a88f0108213e39c8c21ec0.svg";var TCe=n.p+"static/media/icon-service-default.7508498e22f5cae1e644c52f5815a4b6.svg";var ICe=n.p+"static/media/icon-service-design-strategy.259451f548f49280938d46a4f12cb5f0.svg";var RCe=n.p+"static/media/icon-service-devops.950302cf690cb8150cc6a0cc778dfba6.svg";var FCe=n.p+"static/media/icon-service-digital-strategy.a3559a12af44abbc562a36324b946979.svg";var BCe=n.p+"static/media/icon-service-e-commerce.ecd1314dd2c137c6b217bb8a92729a6c.svg";var LCe=n.p+"static/media/icon-service-email-marketing.9d8622ab36ad5eb1722a97f818c64cc8.svg";var NCe=n.p+"static/media/icon-service-extended-reality-xr.b47846b74af050aae4914e362911369d.svg";var _Ce=n.p+"static/media/icon-service-game-development.f759083f450d2bfeec5179c01a131284.svg";var zCe=n.p+"static/media/icon-service-graphic-design.308c1c05f4f47103253b1ec9f738eb63.svg";var HCe=n.p+"static/media/icon-service-influencer-marketing.fd5ad9fd92733ff52d3c441b8d88cc5d.svg";var WCe=n.p+"static/media/icon-service-machine-learning.95490a4d643672c0b95e5f383da6de04.svg";var VCe=n.p+"static/media/icon-service-market-research.787b58fb45afc13994f89b48445799b4.svg";var UCe=n.p+"static/media/icon-service-media-buying.afe9a5625234853efe363c4e6097d7be.svg";var qCe=n.p+"static/media/icon-service-mobile-advertising.7793deb3ed9149beaf03f9b584639c3a.svg";var GCe=n.p+"static/media/icon-service-mobile-app-design.8e58cba7f143f053d27bfe679c6f964c.svg";var YCe=n.p+"static/media/icon-service-mobile-app-development.d90553ad998e77529fdb9aea3b72f279.svg";var KCe=n.p+"static/media/icon-service-motion-design.263e777386cbcdb64bcf999eadec254c.svg";var JCe=n.p+"static/media/icon-service-paid-search-marketing.2e164c94e5d076c2f28a8c82dab36703.svg";var XCe=n.p+"static/media/icon-service-public-relations.546c890372d6ce48194ddcdc0e60ef9a.svg";var QCe=n.p+"static/media/icon-service-search-engine-optimization.f8df2887ce7707430446f76b319ab7dc.svg";var $Ce=n.p+"static/media/icon-service-social-media-advertising.569dc597494f3d2276138c3595d249bd.svg";var eje=n.p+"static/media/icon-service-social-media-management.b0927e3b2d3317410b93b3e67098d184.svg";var tje=n.p+"static/media/icon-service-user-experience-design.6c924c578ce16c896bdd72b236d2a260.svg";var nje=n.p+"static/media/icon-service-user-interface-design.1769e2a86edea2f00dfc8f35308a9198.svg";var rje=n.p+"static/media/icon-expertise-video.169dec0c8a797ca6c776f9e8c91063dd.svg";var oje=n.p+"static/media/icon-expertise-virtual-reality-vr.d369a76ea54990db9004cda1f20235a2.svg";var ije=n.p+"static/media/icon-expertise-web-design.d112e55564da4177f94ac9b41c1785ec.svg";var aje=n.p+"static/media/icon-expertise-web-development.cd92386d444a55cd0e44ce59d12f2774.svg",sje=new Map([["Animation",wCe],["App_Design",CCe],["App_Development",jCe],["Augmented_Reality",SCe],["Blockchain",kCe],["Branding",ZCe],["Community_Management",OCe],["Content_Marketing",ECe],["Copywriting",DCe],["Data_Analytics",PCe],["Data_Engineering",ACe],["Data_Science",MCe],["Default",TCe],["Design_Strategy",ICe],["DevOps",RCe],["Digital_Strategy",FCe],["Ecommerce",BCe],["Email_Marketing",LCe],["Extended_Reality",NCe],["Game_Development",_Ce],["Graphic_Design",zCe],["Influencer_Marketing",HCe],["Machine_Learning",WCe],["Market_Research",VCe],["Media_Buying",UCe],["Mobile_Advertising",qCe],["Mobile_App_Design",GCe],["Mobile_App_Development",YCe],["Motion_Design",KCe],["Paid_Search_Marketing",JCe],["Public_Relations",XCe],["Search_Engine_Optimization",QCe],["Social_Media_Advertising",$Ce],["Social_Media_Management",eje],["User_Experience_Design",tje],["User_Interface_Design",nje],["Video",rje],["Virtual_Reality",oje],["Web_Design",ije],["Web_Development",aje]]);var lje=n.p+"static/media/icon-technology-expertise-angular-js.2e8c84891a0f22ee26eee341e9cd9693.svg";var cje=n.p+"static/media/icon-technology-expertise-asp-net.9c355e052af17618a947de8af30c1f2f.svg";var uje=n.p+"static/media/icon-technology-expertise-drupal.3937987378f6324145b8fd4937e50820.svg";var dje=n.p+"static/media/icon-technology-expertise-joomla.48f0ea8b10aefb58e8e44aadd8eba5f0.svg";var pje=n.p+"static/media/icon-technology-expertise-laravel.46e31f715449edec2ac6d36dc1aae849.svg";var fje=n.p+"static/media/icon-technology-expertise-mongodb.99deda5727131b25251e68e8d2989af7.svg";var hje=n.p+"static/media/icon-technology-expertise-mariadb-mysql.c3db570d9b0088155408d515b5154d8b.svg";var mje=n.p+"static/media/icon-technology-expertise-node-js.edbf0dd542465e2befc644ca43186f40.svg";var vje=n.p+"static/media/icon-technology-expertise-react-js.7ec0ea4348bd09ffd755fdc3067560af.svg";var gje=n.p+"static/media/icon-technology-expertise-ruby-on-rails.8c35e82328bbfea3cfc6c5ca2a93a147.svg";var yje=n.p+"static/media/icon-technology-expertise-symfony.1318a5745fc1b9eee355f9393181023f.svg";var bje=n.p+"static/media/icon-technology-expertise-unity.473213e312506174c2adb97782fb090e.svg";var xje=n.p+"static/media/icon-technology-expertise-vue-js.0e3823cb028a650402ba9ea1a2849c1c.svg";var wje=n.p+"static/media/icon-technology-expertise-wordpress.8756cf90f6529cd28aa4aabae6edb106.svg",Cje=new Map([["Default",TCe],["Angular",lje],["ASPdotNET",cje],["Drupal",uje],["Joomla",dje],["Laravel",pje],["MongoDB",fje],["MySQL_or_MariaDB",hje],["NodeJS",mje],["React",vje],["Ruby_on_Rails",gje],["Symfony",yje],["Unity",bje],["VueJS",xje],["WordPress",wje]]);var jje=n.p+"static/media/icon-technology-expertise-c.a69dc79df4cf51dec8c20306d1f570ce.svg";var Sje=n.p+"static/media/icon-technology-expertise-elixir.40771351884f67df8239507d611f8bc0.svg";var kje=n.p+"static/media/icon-technology-expertise-java.be58fc77811c0e46ae88418c46ae950f.svg";var Zje=n.p+"static/media/icon-technology-expertise-javascript.dbc44cc248da64ea71894221a4c8bb04.svg";var Oje=n.p+"static/media/icon-technology-expertise-php.9d2b61c3d8e2c7d5e7249df1a04197e1.svg";var Eje=n.p+"static/media/icon-technology-expertise-python.dd153e4d19aa99bc7b9e6b7cff232077.svg";var Dje=n.p+"static/media/icon-technology-expertise-swift.78b78f740d2b3423a0671ecd06349387.svg",Pje=new Map([["Default",TCe],["Csharp",jje],["Elixir",Sje],["Java",kje],["JavaScript",Zje],["PHP",Oje],["Python",Eje],["Swift",Dje]]);var Aje=n.p+"static/media/icon-technology-expertise-aws.14f734c378908b16982a39c750d50680.svg";var Mje=n.p+"static/media/icon-technology-expertise-ms-azure.6e71ef6d7336946d9924563e55ae34c1.svg";var Tje=n.p+"static/media/icon-technology-expertise-google-cloud-platform.53af43e9e9f084aedaa048612f425224.svg";var Ije=n.p+"static/media/icon-technology-expertise-linux.f3f6f081498138b6ed500a29bc70e163.svg",Rje=new Map([["Default",TCe],["Amazon_Web_Services",Aje],["Azure",Mje],["Google_Cloud",Tje],["Linux",Ije]]),Fje=function(e){var t,n=e.entityType,r=e.entityArray,i=e.entity,a=(e.contentType,e.bgcolor),s=(e.showIcon,e.chipRoundedCorners,e.chipBackgroundColor,(0,o.useState)(!1)),l=(0,Le.Z)(s,2),c=l[0],d=l[1],p=(0,o.useState)(null),f=(0,Le.Z)(p,2),h=f[0],m=f[1],v=(0,o.useState)(null),g=(0,Le.Z)(v,2),y=(g[0],g[1]),b=(0,o.useState)(null),x=(0,Le.Z)(b,2),w=x[0],C=x[1],j=c?"rotate(90deg)":"rotate(0)";return(0,o.useEffect)((function(){!function(){switch(n){case xCe.Service:m("Expertise"),y(sje),C(Kt.Sj);break;case xCe.Industry:m("Industry focus"),C(Kt.lu);break;case xCe.TechLanguage:m("Tech languages"),y(Pje),C(T$.G3);break;case xCe.TechPlatform:m("Tech platforms"),y(Rje),C(T$.VA);break;case xCe.TechTool:m("Tech tools"),y(Cje),C(T$.oz);break;case xCe.Country:m("Geography focus"),C(Kt.NF);break;case xCe.ProjectSize:m("Project size"),C(Kt.Dw)}}()}),[]),(0,u.jsxs)(ewe,{elevation:0,sx:{pt:2,width:"100%",bgcolor:null!==a&&void 0!==a?a:"grey.200","& .MuiAccordionSummary-content":{m:0},"&.MuiAccordion-root::before":{content:"unset"}},children:[(0,u.jsx)(lwe,{onClick:function(){return d(!c)},sx:{"& .MuiAccordionSummary-content.Mui-expanded":{m:0},"& .MuiAccordionSummary-content":{m:0}},children:(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"column",width:"100%",sx:{mt:1},children:[(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",justifyContent:"space-between",alignItems:"center",width:"100%",sx:{px:1},children:[(0,u.jsx)(rn.Z,{sx:{color:"grey.600",fontSize:"0.95rem",fontWeight:"bold",flexGrow:1},children:h}),(0,u.jsx)(dM.Z,{sx:{visibility:(null===(t=r||[])||void 0===t?void 0:t.length)>2?"visible":"hidden",color:"grey.600",pt:.5,transform:j,transition:"all 0.2s linear"}})]}),(0,u.jsx)(nn.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",children:(0,u.jsxs)(nn.Z,{direction:"row",sx:{flexWrap:"wrap",gap:1},children:[null===r||void 0===r?void 0:r.map((function(e){return(0,u.jsx)(_d,{variant:"outlined",label:null===w||void 0===w?void 0:w.get(e)})})).slice(0,2),i&&(0,u.jsx)(_d,{variant:"outlined",label:null===w||void 0===w?void 0:w.get(i)})]})})]})}),(0,u.jsx)(fwe,{children:(0,u.jsx)(nn.Z,{direction:"row",sx:{flexWrap:"wrap",gap:1},children:null===r||void 0===r?void 0:r.map((function(e){return(0,u.jsx)(_d,{variant:"outlined",label:null===w||void 0===w?void 0:w.get(e)})})).slice(2)})})]})},Bje=function(e){var t=e.contentType,n=e.services,r=e.industries,o=e.techLanguages,i=e.techPlatforms,a=e.techTools,s=e.geographyFocus,c=e.projectSize,d=e.sx,p=function(){return(0,u.jsx)(NZ,{sx:(0,l.Z)((0,l.Z)({},d),{},{bgcolor:"grey.200"}),elevation:4,children:(0,u.jsxs)(nn.Z,{direction:"column",justifyContent:"center",alignItems:"flex-start",sx:{mb:3},children:[(0,u.jsx)(Fje,{showIcon:!0,chipRoundedCorners:!0,chipBackgroundColor:"grey.50",entityType:xCe.Service,entityArray:n}),(0,u.jsx)(Fje,{chipRoundedCorners:!0,chipBackgroundColor:"grey.50",entityType:xCe.Industry,entityArray:r}),o&&o.length>0&&(0,u.jsx)(Fje,{showIcon:!0,chipRoundedCorners:!0,chipBackgroundColor:"grey.50",entityType:xCe.TechLanguage,entityArray:o}),i&&i.length>0&&(0,u.jsx)(Fje,{showIcon:!0,chipRoundedCorners:!0,chipBackgroundColor:"grey.50",entityType:xCe.TechPlatform,entityArray:i}),a&&a.length>0&&(0,u.jsx)(Fje,{showIcon:!0,chipRoundedCorners:!0,chipBackgroundColor:"grey.50",entityType:xCe.TechTool,entityArray:a})]})})},f=function(e){var t=e.addRatingFromTheClient;return(0,u.jsxs)(NZ,{sx:{bgcolor:"grey.200"},elevation:2,children:[(0,u.jsxs)(nn.Z,{direction:"column",justifyContent:"center",alignItems:"flex-start",sx:{mb:3},children:[(0,u.jsx)(Fje,{showIcon:!0,chipRoundedCorners:!0,chipBackgroundColor:"grey.50",entityType:xCe.Service,entityArray:n}),o&&(null===o||void 0===o?void 0:o.length)>0&&(0,u.jsx)(Fje,{chipRoundedCorners:!0,chipBackgroundColor:"grey.50",entityType:xCe.TechLanguage,entityArray:o}),i&&i.length>0&&(0,u.jsx)(Fje,{showIcon:!0,chipRoundedCorners:!0,chipBackgroundColor:"grey.50",entityType:xCe.TechPlatform,entityArray:i}),a&&a.length>0&&(0,u.jsx)(Fje,{showIcon:!0,chipRoundedCorners:!0,chipBackgroundColor:"grey.50",entityType:xCe.TechTool,entityArray:a}),(0,u.jsx)(Fje,{chipRoundedCorners:!0,chipBackgroundColor:"grey.50",entityType:xCe.Industry,entityArray:r}),(0,u.jsx)(Fje,{chipRoundedCorners:!0,chipBackgroundColor:"grey.50",entityType:xCe.ProjectSize,entity:c}),(0,u.jsx)(Fje,{chipRoundedCorners:!0,chipBackgroundColor:"grey.50",entityType:xCe.Country,entityArray:s})]}),t&&(0,u.jsx)(tn,{sx:{mx:2,my:5},children:(0,u.jsx)(NZ,{elevation:3,sx:{py:2},children:(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"center",alignItems:"center",spacing:4,children:[(0,u.jsx)(rn.Z,{sx:{fontWeight:"bold"},children:"Rating from the client "}),(0,u.jsx)(jM,{displayScore:!0,score:2,size:3})]})})})]})},h=function(){return(0,u.jsx)(NZ,{sx:{bgcolor:"grey.200"},elevation:2,children:(0,u.jsxs)(nn.Z,{direction:"column",justifyContent:"center",alignItems:"flex-start",sx:{mb:3},children:[(0,u.jsx)(Fje,{chipRoundedCorners:!0,chipBackgroundColor:"grey.50",entityType:xCe.Industry,entityArray:r}),(0,u.jsx)(Fje,{showIcon:!0,chipRoundedCorners:!0,chipBackgroundColor:"grey.50",entityType:xCe.Service,entityArray:n}),o&&(null===o||void 0===o?void 0:o.length)>0&&(0,u.jsx)(Fje,{chipRoundedCorners:!0,chipBackgroundColor:"grey.50",entityType:xCe.TechLanguage,entityArray:o}),i&&i.length>0&&(0,u.jsx)(Fje,{showIcon:!0,chipRoundedCorners:!0,chipBackgroundColor:"grey.50",entityType:xCe.TechPlatform,entityArray:i}),a&&a.length>0&&(0,u.jsx)(Fje,{showIcon:!0,chipRoundedCorners:!0,chipBackgroundColor:"grey.50",entityType:xCe.TechTool,entityArray:a}),(0,u.jsx)(Fje,{chipRoundedCorners:!0,chipBackgroundColor:"grey.50",entityType:xCe.Country,entityArray:s})]})})};return(0,u.jsxs)(u.Fragment,{children:[t===bCe.Article&&(0,u.jsx)(p,{}),t===bCe.CaseStudy&&(0,u.jsx)(f,{}),t===bCe.CaseStudyReview&&(0,u.jsx)(f,{addRatingFromTheClient:!0}),t===bCe.TimedProject&&(0,u.jsx)(h,{})]})},Lje=n(52141),Nje=n(57974),_je=n(97421),zje=n(68368),Hje=["className","component","disableGutters","fixed","maxWidth","classes"],Wje=(0,zje.Z)(),Vje=(0,_je.Z)("div",{name:"MuiContainer",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["maxWidth".concat((0,Lje.Z)(String(n.maxWidth)))],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),Uje=function(e){return(0,Nje.Z)({props:e,name:"MuiContainer",defaultTheme:Wje})},qje=function(e,t){var n=e.classes,r=e.fixed,o=e.disableGutters,i=e.maxWidth,a={root:["root",i&&"maxWidth".concat((0,Lje.Z)(String(i))),r&&"fixed",o&&"disableGutters"]};return(0,M.Z)(a,(function(e){return(0,F.Z)(t,e)}),n)};var Gje,Yje=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.createStyledComponent,i=void 0===n?Vje:n,a=e.useThemeProps,s=void 0===a?Uje:a,l=e.componentName,c=void 0===l?"MuiContainer":l,d=i((function(e){var n=e.theme,o=e.ownerState;return(0,r.Z)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!o.disableGutters&&(0,t.Z)({paddingLeft:n.spacing(2),paddingRight:n.spacing(2)},n.breakpoints.up("sm"),{paddingLeft:n.spacing(3),paddingRight:n.spacing(3)}))}),(function(e){var t=e.theme;return e.ownerState.fixed&&Object.keys(t.breakpoints.values).reduce((function(e,n){var r=n,o=t.breakpoints.values[r];return 0!==o&&(e[t.breakpoints.up(r)]={maxWidth:"".concat(o).concat(t.breakpoints.unit)}),e}),{})}),(function(e){var n=e.theme,o=e.ownerState;return(0,r.Z)({},"xs"===o.maxWidth&&(0,t.Z)({},n.breakpoints.up("xs"),{maxWidth:Math.max(n.breakpoints.values.xs,444)}),o.maxWidth&&"xs"!==o.maxWidth&&(0,t.Z)({},n.breakpoints.up(o.maxWidth),{maxWidth:"".concat(n.breakpoints.values[o.maxWidth]).concat(n.breakpoints.unit)}))})),p=o.forwardRef((function(e,t){var n=s(e),o=n.className,i=n.component,a=void 0===i?"div":i,l=n.disableGutters,p=void 0!==l&&l,f=n.fixed,h=void 0!==f&&f,m=n.maxWidth,v=void 0===m?"lg":m,g=(0,b.Z)(n,Hje),x=(0,r.Z)({},n,{component:a,disableGutters:p,fixed:h,maxWidth:v}),w=qje(x,c);return(0,u.jsx)(d,(0,r.Z)({as:a,ownerState:x,className:(0,y.default)(w.root,o),ref:t},g))}));return p}({createStyledComponent:(0,P.ZP)("div",{name:"MuiContainer",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["maxWidth".concat((0,Zn.Z)(String(n.maxWidth)))],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:function(e){return(0,T.Z)({props:e,name:"MuiContainer"})}}),Kje=Yje,Jje={XS:2,SM:4,MD:6,LG:12,XL:20},Xje=function(e){var t=e.disableGutters,n=e.maxWidth,r=e.xs,o=e.sm,i=e.md,a=e.lg,s=e.xl,c=e.height,d=e.children,p=e.sx;return(0,u.jsx)(Kje,{disableGutters:null===t||void 0===t||t,maxWidth:null!==n&&void 0!==n?n:"xl",sx:(0,l.Z)({px:{xs:r?Jje.XS:"none",sm:o?Jje.SM:"none",md:i?Jje.MD:"none",lg:a?Jje.LG:"none",xl:s?Jje.XL:"none"},height:null!==c&&void 0!==c?c:"auto"},p),children:d})},Qje=function(e){var t,n,r,i,a,s,l,c,d,p,f,h,m=e.articleCreationData,v=(new Date).toDateString().slice(4,16),g=((0,ze.UO)(),(0,o.useState)(null)),y=(0,Le.Z)(g,2),b=y[0],x=(y[1],(0,o.useState)({})),w=(0,Le.Z)(x,2),C=w[0],j=w[1],S=(0,o.useState)(0),k=(0,Le.Z)(S,2),Z=k[0],O=k[1];return(0,o.useEffect)((function(){m&&j(m)}),[m]),(0,u.jsx)(Xje,{xs:!0,sm:!0,lg:!0,sx:{mt:6},children:(0,u.jsxs)(nn.Z,{direction:"row",width:"100%",justifyContent:"space-between",children:[(0,u.jsxs)(nn.Z,{spacing:3,width:"70%",children:[(0,u.jsx)(nn.Z,{width:"100%",direction:"row",alignItems:"center",justifyContent:"space-between",children:(0,u.jsxs)(nn.Z,{height:"100%",width:"100%",spacing:3,direction:"row",alignItems:"center",children:[(0,u.jsx)(Ca,{alt:null===b||void 0===b||null===(t=b.images)||void 0===t||null===(n=t.logo)||void 0===n?void 0:n.altText,src:null===b||void 0===b||null===(r=b.images)||void 0===r||null===(i=r.logo)||void 0===i?void 0:i.uri,sx:{width:150,height:150}}),(0,u.jsxs)(nn.Z,{height:"100%",width:"100%",justifyContent:"space-between",children:[(0,u.jsxs)(tn,{children:[(0,u.jsx)(rn.Z,{variant:"h4",fontWeight:500,fontSize:"1.45rem",children:null===b||void 0===b?void 0:b.title}),(0,u.jsx)(rn.Z,{color:"grey.600",children:C&&(null===C||void 0===C?void 0:C.authorName)})]}),(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",justifyContent:"end",children:[(0,u.jsx)(mCe.Z,{sx:{fontSize:"1.75rem",cursor:"pointer"}}),(0,u.jsx)(vCe.Z,{sx:{fontSize:"1.75rem",cursor:"pointer"}}),(0,u.jsx)(gCe.Z,{sx:{fontSize:"1.75rem",cursor:"pointer"}})]}),(0,u.jsxs)(nn.Z,{width:"100%",direction:"row",justifyContent:"space-between",children:[(0,u.jsxs)(nn.Z,{spacing:1,direction:"row",justifyContent:"space-between",alignItems:"center",children:[C&&(null===C||void 0===C?void 0:C.articleTypes)&&(null===C||void 0===C?void 0:C.articleTypes.map((function(e,t){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(rn.Z,{children:e}),t+1!==C.articleTypes.length?(0,u.jsx)(tn,{sx:{width:7,height:7,bgcolor:"grey.600",borderRadius:"50%"}}):null]})}))),(0,u.jsx)(tn,{sx:{width:7,height:7,bgcolor:"grey.600",borderRadius:"50%"}}),(0,u.jsx)(rn.Z,{color:"grey.600",children:v}),(0,u.jsx)(tn,{sx:{width:7,height:7,bgcolor:"grey.600",borderRadius:"50%"}}),(0,u.jsxs)(rn.Z,{color:"grey.600",children:[Z&&Z," ","min read"]})]}),(0,u.jsx)(rn.Z,{color:"grey.600",children:"Awaiting client review"})]})]})]})}),(0,u.jsx)(tn,{component:"img",src:null!==(a=null===C||void 0===C||null===(s=C.files)||void 0===s||null===(l=s.banner)||void 0===l?void 0:l.uri)&&void 0!==a?a:null===C||void 0===C||null===(c=C.files)||void 0===c||null===(d=c.banner)||void 0===d||null===(p=d.toUpload)||void 0===p||null===(f=p.file)||void 0===f?void 0:f.preview,width:"100%",height:500,sx:{objectFit:"cover"}}),(0,u.jsx)(rn.Z,{variant:"h2",children:null===C||void 0===C?void 0:C.title}),(0,u.jsx)(nn.Z,{children:C&&(0,u.jsx)(m$,{items:[],isEditable:!1,setReadingTime:O,content:null===C||void 0===C||null===(h=C.body)||void 0===h?void 0:h.articleBody},fme())})]}),(0,u.jsx)(tn,{sx:{position:"sticky",top:90,width:"23%",minHeight:300,height:"100%",pb:3},children:C&&(0,u.jsx)(Bje,{contentType:bCe.Article,services:null===C||void 0===C?void 0:C.services,industries:null===C||void 0===C?void 0:C.industries,techLanguages:null===C||void 0===C?void 0:C.techLanguages,techPlatforms:null===C||void 0===C?void 0:C.techPlatforms,techTools:null===C||void 0===C?void 0:C.techTools})})]})})},$je=function(e){var t,n,r,i,a,s,c=e.adminMode,d=void 0!==c&&c,p=iCe((function(e){return e.createArticleInput})),f=iCe((function(e){return e.setCreateArticleInput})),h=(iCe((function(e){return e.deleteEverything})),(0,o.useState)(!1)),m=(0,Le.Z)(h,2),v=m[0],g=m[1],y=(0,o.useState)(!1),b=(0,Le.Z)(y,2),x=b[0],w=(b[1],(0,o.useState)({})),C=(0,Le.Z)(w,2),j=C[0],S=(C[1],(0,o.useState)([])),k=(0,Le.Z)(S,2),Z=k[0];k[1];(0,o.useEffect)((function(){f({id:fme()})}),[]);null===p||void 0===p||p.id,null===p||void 0===p||p.title,null!==p&&void 0!==p&&null!==(t=p.files)&&void 0!==t&&null!==(n=t.banner)&&void 0!==n&&n.uri&&(null===p||void 0===p||null===(r=p.files)||void 0===r||null===(i=r.banner)||void 0===i||i.uri),null===p||void 0===p||p.authorName,null===p||void 0===p||null===(a=p.body)||void 0===a||a.articleBody,null===p||void 0===p||null===(s=p.body)||void 0===s||s.authorBiography,null===p||void 0===p||p.services,null===p||void 0===p||p.techLanguages,null===p||void 0===p||p.techPlatforms,null===p||void 0===p||p.techTools,null===p||void 0===p||p.industries,null===p||void 0===p||p.articleTypes;var O=function(){var e=ds(hs().mark((function e(){return hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:hCe(null===p||void 0===p?void 0:p.files);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),E=function(){var e=ds(hs().mark((function e(){return hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:hCe(null===p||void 0===p?void 0:p.files),g(!0);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,u.jsxs)(nn.Z,{spacing:20,height:"100%",direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(ive,{stepComponents:[{component:(0,u.jsx)(aCe,{adminMode:d,companies:Z}),label:"General"},{component:(0,u.jsx)(uCe,{}),label:"Technologies"},{component:(0,u.jsx)(dCe,{}),label:"Industry"},{component:(0,u.jsx)(sCe,{}),label:"Type"},{component:(0,u.jsx)(Qje,{articleCreationData:p}),label:"Preview",type:eve.PREVIEW}],showSaveDraftButton:!0,setIsCurrentStepPreview:g,width:"100%",onFinish:function(){return O()},onSaveDraft:function(){return E()},finishComponent:(0,u.jsx)(pCe,(0,l.Z)({},j)),isSubmitButtonLoading:!1,minHeight:800,pushButtonsToBottom:!0,isSubmitSuccessful:x,horizontalLineColor:ir.palette.grey[400],buttonsTopPadding:6}),!v&&(0,u.jsx)(tn,{sx:{width:"28%",color:"common.white"},children:(0,u.jsx)(tn,{sx:{position:"sticky",top:15,height:"88vh",bgcolor:"primary.main"},children:(0,u.jsx)(nn.Z,{height:"100%",justifyContent:"center",alignItems:"center",children:(0,u.jsxs)(nn.Z,{spacing:3,width:"100%",sx:{px:4},children:[(0,u.jsx)(rn.Z,{variant:"h4",sx:{fontSize:"2rem",maxWidth:100},children:"What happens next?"}),(0,u.jsx)(rn.Z,{children:"As soon as we receive your request, we\u2019ll be in touch to chat about next steps, and to connect you with your chosen service provider."}),(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(jZ,{onButtonClick:function(){},fontWeight:"bold",variant:"contained",color:"secondary",minWidth:"100%",setUpperCase:!0,children:"Review draft"}),(0,u.jsx)(jZ,{onButtonClick:function(){},fontWeight:"bold",variant:"contained",color:"secondary",minWidth:"100%",setUpperCase:!0,children:"Save as draft"})]})]})})})})]})},eSe=function(e){var t,n,r,i,a,s,c,d=e.adminMode;d=null!==(t=d)&&void 0!==t&&t;(0,ze.UO)(),(0,ze.s0)();var p=(0,o.useState)(new rCe),f=(0,Le.Z)(p,2),h=f[0],m=(f[1],(0,o.useState)(null)),v=(0,Le.Z)(m,2),g=v[0],y=v[1],b=(0,o.useState)(null),x=(0,Le.Z)(b,2),w=x[0],C=x[1],j=(0,o.useState)(null),S=(0,Le.Z)(j,2),k=S[0],Z=S[1],O=(0,o.useState)(null),E=(0,Le.Z)(O,2),D=E[0],P=E[1],A=(0,o.useState)(null),M=(0,Le.Z)(A,2),T=M[0],I=(M[1],(0,o.useState)([])),R=(0,Le.Z)(I,2),F=R[0];R[1];(0,o.useEffect)((function(){window.scrollTo(0,0),y(document.getElementById("general")),C(document.getElementById("technologies")),Z(document.getElementById("industry")),P(document.getElementById("type"))}),[]);var B=fd({mode:"onChange",defaultValues:(0,l.Z)({title:"",body:{articleBody:{},authorBiography:""},authorName:"",services:null!==(n=null===T||void 0===T?void 0:T.services)&&void 0!==n?n:[],techLanguages:null!==(r=null===T||void 0===T?void 0:T.techLanguages)&&void 0!==r?r:[],techPlatforms:null!==(i=null===T||void 0===T?void 0:T.techPlatforms)&&void 0!==i?i:[],techTools:null!==(a=null===T||void 0===T?void 0:T.techTools)&&void 0!==a?a:[],industries:null!==(s=null===T||void 0===T?void 0:T.industries)&&void 0!==s?s:[],articleTypes:[]},d&&{Company:{id:""}})}),L=B.register,N=B.watch,_=B.setValue,z=B.control,H=B.reset,W=B.formState.errors,V=B.getValues;L("body.articleBody",{required:!0});var U="This field is required";(0,o.useEffect)((function(){H(T)}),[T]);var q=function(e,t){var n;switch(t){case"services":(n=V("services")).splice(e,1),_("services",n);break;case"techLanguages":(n=V("techLanguages")).splice(e,1),_("techLanguages",n);break;case"techPlatforms":(n=V("techPlatforms")).splice(e,1),_("techPlatforms",n);break;case"techTools":(n=V("techTools")).splice(e,1),_("techTools",n);break;case"industries":(n=V("industries")).splice(e,1),_("industries",n)}},G=(null===T||void 0===T||T.id,(0,l.Z)({title:N("title"),body:{articleBody:N("body.articleBody"),authorBiography:N("body.authorBiography")},authorName:N("authorName"),services:N("services"),techLanguages:N("techLanguages"),techPlatforms:N("techPlatforms"),techTools:N("techTools"),industries:N("industries"),articleTypes:N("articleTypes")},d&&{company:N("Company.id")}),function(){var e=ds(hs().mark((function e(){return hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:void 0!==(null===h||void 0===h?void 0:h.banner)&&hCe(h);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}());return(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",sx:{py:3},children:[(0,u.jsx)(tn,{sx:{width:"25%"},children:(0,u.jsxs)(nn.Z,{spacing:2,width:"fit-content",alignItems:"flex-start",sx:{position:"sticky",top:85},children:[(0,u.jsx)(jZ,{onButtonClick:function(){},variant:"text",color:"inherit",minWidth:120,linkTo:"../list",startIcon:(0,u.jsx)(uM.Z,{}),sx:{width:"fit-content",fontSize:"1.1rem"},children:"Back to Article list"}),(0,u.jsxs)(nn.Z,{sx:{pl:3},children:[(0,u.jsx)(jZ,{onButtonClick:function(){},variant:"text",color:"inherit",target:null!==g&&void 0!==g?g:null,sx:{width:"fit-content",fontSize:"1.1rem"},children:"General"}),(0,u.jsx)(jZ,{onButtonClick:function(){},variant:"text",target:null!==w&&void 0!==w?w:null,color:"inherit",sx:{width:"fit-content",fontSize:"1.1rem"},children:"Technologies"}),(0,u.jsx)(jZ,{onButtonClick:function(){},variant:"text",color:"inherit",target:null!==k&&void 0!==k?k:null,sx:{width:"fit-content",fontSize:"1.1rem"},children:"Industry"}),(0,u.jsx)(jZ,{onButtonClick:function(){},variant:"text",color:"inherit",target:null!==D&&void 0!==D?D:null,sx:{width:"fit-content",fontSize:"1.1rem"},children:"Type"})]})]})}),(0,u.jsxs)(nn.Z,{spacing:3,width:"55%",children:[(0,u.jsx)(rn.Z,{variant:"h3",children:"Edit"}),(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsxs)(tn,{children:[(0,u.jsx)(rn.Z,{id:"general",sx:{fontWeight:"bold",fontSize:"1.2rem"},children:"Overview"}),(0,u.jsx)(un,{})]}),d&&(0,u.jsx)(ao.Z,{sx:{p:3,bgcolor:"grey.100"},children:(0,u.jsxs)(nn.Z,{spacing:1,children:[(0,u.jsx)(tn,{sx:{mb:.5},children:(0,u.jsx)(rn.Z,{variant:"body1",sx:{fontWeight:"bold"},children:"Company"})}),(0,u.jsx)(du,{name:"Company.id",control:z,rules:{required:U},render:function(e){var t=e.field;return(0,u.jsx)(Od.Z,(0,l.Z)((0,l.Z)({},t),{},{sx:{background:"#fff"},displayEmpty:!0,fullWidth:!0,renderValue:function(e){var t;return void 0===e?(0,u.jsx)(rn.Z,{sx:{color:"grey.500"},children:"Select*"}):null===F||void 0===F||null===(t=F.find((function(t){return t.id===e})))||void 0===t?void 0:t.name},children:null===F||void 0===F?void 0:F.map((function(e){return(0,u.jsx)(Nl.Z,{value:e.id,children:e.name},e.id)}))}))}})]})}),(0,u.jsx)(ao.Z,{sx:{p:3,bgcolor:"grey.100"},children:(0,u.jsxs)(nn.Z,{spacing:1,children:[(0,u.jsxs)(tn,{sx:{mb:.5},children:[(0,u.jsx)(rn.Z,{variant:"body1",sx:{fontWeight:"bold"},children:"Title"}),(0,u.jsx)(rn.Z,{variant:"body1",children:"The title should include the necessery keywords and be between 4-9 words long."})]}),(0,u.jsx)(xd.Z,(0,l.Z)((0,l.Z)({},L("title",{required:U})),{},{fullWidth:!0,type:"text",variant:"outlined",placeholder:"Type",sx:{background:"#fff"},helperText:W.title&&(0,u.jsx)(I$.Z,{error:!0,sx:{ml:0},children:W.title.message})}))]})}),(0,u.jsx)(ao.Z,{sx:{p:3,bgcolor:"grey.100"},children:(0,u.jsx)(nn.Z,{spacing:1,children:(0,u.jsxs)(tn,{sx:{mb:.5},children:[(0,u.jsx)(rn.Z,{variant:"body1",sx:{fontWeight:"bold"},children:"Upload Featured Image"}),(0,u.jsx)(rn.Z,{variant:"body1",children:"We\u2019ll need an image that represents your article on the archive page and the thumbnail. Suggested dimensions: 1920x1080 pixels, .jpg or .png. Maximum 10MB."})]})})}),(0,u.jsxs)(nn.Z,{spacing:1,children:[(0,u.jsxs)(ao.Z,{sx:{bgcolor:"grey.100",px:3,py:2},children:[(0,u.jsx)(rn.Z,{variant:"body1",sx:{fontWeight:"bold"},children:"Article text"}),(0,u.jsx)(rn.Z,{variant:"body1",children:"Write and format your article here. Be sure to add headings, relevant links and keywords."})]}),T&&(null===T||void 0===T||null===(c=T.body)||void 0===c?void 0:c.articleBody)&&(0,u.jsx)(m$,{items:D$,content:N("body.articleBody"),isEditable:!0,onUpdateContent:function(e){_("body.articleBody",e,{shouldValidate:!0})},onValidationChange:function(e){e||_("body.articleBody","")}},fme())]}),(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsxs)(tn,{children:[(0,u.jsx)(rn.Z,{variant:"h6",sx:{color:"grey.500"},children:"OPTIONAL"}),(0,u.jsx)(un,{})]}),(0,u.jsxs)(tn,{children:[(0,u.jsx)(rn.Z,{variant:"body1",sx:{fontWeight:"bold"},children:"Author"}),(0,u.jsx)(rn.Z,{variant:"body1",children:"Placeholder something blah blah"})]}),(0,u.jsxs)(ao.Z,{sx:{bgcolor:"grey.100",p:3},children:[(0,u.jsx)(tn,{sx:{mb:.5},children:(0,u.jsx)(rn.Z,{variant:"body1",sx:{fontWeight:"bold"},children:"Name"})}),(0,u.jsx)(xd.Z,(0,l.Z)((0,l.Z)({},L("authorName",{required:U})),{},{fullWidth:!0,type:"text",variant:"outlined",placeholder:"Type*",sx:{background:"#fff"},helperText:W.title&&(0,u.jsx)(I$.Z,{error:!0,sx:{ml:0},children:W.title.message})}))]}),(0,u.jsxs)(ao.Z,{sx:{bgcolor:"grey.100",p:3},children:[(0,u.jsx)(tn,{sx:{mb:.5},children:(0,u.jsx)(rn.Z,{variant:"body1",sx:{fontWeight:"bold"},children:"Biography"})}),(0,u.jsx)(xd.Z,(0,l.Z)((0,l.Z)({},L("body.authorBiography")),{},{fullWidth:!0,multiline:!0,rows:5,type:"text",variant:"outlined",placeholder:"Type",sx:{background:"#fff"},helperText:W.title&&(0,u.jsx)(I$.Z,{error:!0,sx:{ml:0},children:W.title.message})}))]})]})]}),(0,u.jsxs)(nn.Z,{spacing:3,sx:{pt:5},children:[(0,u.jsxs)(tn,{children:[(0,u.jsx)(rn.Z,{id:"technologies",sx:{fontWeight:"bold",fontSize:"1.2rem"},children:"Technologies"}),(0,u.jsx)(un,{})]}),(0,u.jsx)(ao.Z,{sx:{bgcolor:"grey.100",p:3},children:(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsxs)(tn,{children:[(0,u.jsx)(rn.Z,{variant:"body1",sx:{fontWeight:"bold"},children:"Expertise"}),(0,u.jsx)(rn.Z,{variant:"body1",children:"Select the expertise & concepts expressed in your article."})]}),(0,u.jsx)(cCe,{enumMap:Kt.Sj,watch:N,control:z,valuesName:"services",isRequired:!0,requiredMessage:U,backgroundColor:"#fff",shouldHaveRemove:!0,remove:function(e){return q(e,"services")}})]})}),(0,u.jsxs)(tn,{children:[(0,u.jsx)(rn.Z,{variant:"h6",sx:{color:"grey.500"},children:"OPTIONAL"}),(0,u.jsx)(un,{})]}),(0,u.jsx)(ao.Z,{sx:{bgcolor:"grey.100",p:3},children:(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(rn.Z,{variant:"body1",sx:{fontWeight:"bold"},children:"Tech languages"}),(0,u.jsx)(cCe,{enumMap:T$.G3,watch:N,control:z,valuesName:"techLanguages",isRequired:!0,requiredMessage:U,backgroundColor:"#fff",shouldHaveRemove:!0,remove:function(e){return q(e,"techLanguages")}})]})}),(0,u.jsx)(ao.Z,{sx:{bgcolor:"grey.100",p:3},children:(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(rn.Z,{variant:"body1",sx:{fontWeight:"bold"},children:"Tech platforms"}),(0,u.jsx)(cCe,{enumMap:T$.VA,watch:N,control:z,valuesName:"techPlatforms",isRequired:!0,requiredMessage:U,backgroundColor:"#fff",shouldHaveRemove:!0,remove:function(e){return q(e,"techPlatforms")}})]})}),(0,u.jsx)(ao.Z,{sx:{bgcolor:"grey.100",p:3},children:(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(rn.Z,{variant:"body1",sx:{fontWeight:"bold"},children:"Tech tools"}),(0,u.jsx)(cCe,{enumMap:T$.oz,watch:N,control:z,valuesName:"techTools",isRequired:!0,requiredMessage:U,backgroundColor:"#fff",shouldHaveRemove:!0,remove:function(e){return q(e,"techTools")}})]})})]}),(0,u.jsxs)(nn.Z,{spacing:3,sx:{pt:5},children:[(0,u.jsxs)(tn,{children:[(0,u.jsx)(rn.Z,{id:"industry",sx:{fontWeight:"bold",fontSize:"1.2rem"},children:"Industry"}),(0,u.jsx)(un,{})]}),(0,u.jsx)(ao.Z,{sx:{bgcolor:"grey.100",p:3},children:(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsxs)(tn,{children:[(0,u.jsx)(rn.Z,{variant:"body1",sx:{fontWeight:"bold"},children:"Industry focus"}),(0,u.jsx)(rn.Z,{variant:"body1",children:"Select any industries that apply to your article."})]}),(0,u.jsx)(cCe,{enumMap:Kt.lu,watch:N,control:z,valuesName:"industries",isRequired:!0,requiredMessage:U,backgroundColor:"#fff",shouldHaveRemove:!0,remove:function(e){return q(e,"industries")}})]})})]}),(0,u.jsxs)(nn.Z,{spacing:3,sx:{pt:5},children:[(0,u.jsxs)(tn,{children:[(0,u.jsx)(rn.Z,{id:"type",sx:{fontWeight:"bold",fontSize:"1.2rem"},children:"Type"}),(0,u.jsx)(un,{})]}),(0,u.jsx)(ao.Z,{sx:{bgcolor:"grey.100",p:3},children:(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(tn,{children:(0,u.jsx)(rn.Z,{variant:"body1",sx:{fontWeight:"bold"},children:"Article types"})}),T&&(null===T||void 0===T?void 0:T.articleTypes)&&(0,u.jsx)(du,{name:"articleTypes",control:z,render:function(e){var t=e.field;return(0,u.jsx)(kn,{direction:"row",justifyContent:"space-between",container:!0,columns:{md:3},children:Array.from(T$.AF,(function(e){var n,r=(0,Le.Z)(e,2),i=r[0],a=r[1];return(0,u.jsx)(kn,{item:!0,md:1,children:(0,o.createElement)(iF.Z,(0,l.Z)((0,l.Z)({},t),{},{key:i,label:a,control:(0,u.jsx)(G$.Z,{color:"secondary",checked:null===(n=N("articleTypes"))||void 0===n?void 0:n.includes(i),onChange:function(){if(t.value.includes(i)){var e=t.value.filter((function(e){return e!==i}));t.onChange(e)}else t.onChange([].concat((0,dn.Z)(t.value),[i]))}})}))},i)}))})}})]})})]}),(0,u.jsx)(un,{sx:{pt:10}}),T&&(0,u.jsx)(Pme,{onButtonClick:function(){return G()},sx:{alignSelf:"end"},variant:"contained",size:"medium",color:"secondary",setBorderRadius:!0,fontWeight:"bold",minWidth:102,children:"Save"})]})]})},tSe=(0,pa.Z)((0,u.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack"),nSe=["title","titleId"];function rSe(){return rSe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rSe.apply(this,arguments)}function oSe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function iSe(e,t){var n=e.title,r=e.titleId,i=oSe(e,nSe);return o.createElement("svg",rSe({width:11,height:10,viewBox:"0 0 11 10",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,Gje||(Gje=o.createElement("path",{d:"M0.00976562 4.99046C0.00976562 4.53046 0.383099 4.15712 0.843099 4.15712H5.8431V0.823792L10.0098 4.99046L5.8431 9.15713V5.82379H0.843099C0.383099 5.82379 0.00976562 5.45046 0.00976562 4.99046Z",fill:"current"})))}var aSe,sSe=o.forwardRef(iSe),lSe=(n.p,["title","titleId"]);function cSe(){return cSe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cSe.apply(this,arguments)}function uSe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function dSe(e,t){var n=e.title,r=e.titleId,i=uSe(e,lSe);return o.createElement("svg",cSe({width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,aSe||(aSe=o.createElement("path",{d:"M10.3412 0.302094C10.0934 0.302094 9.94777 0.428077 9.84983 0.526744L8.70137 1.66875L8.13203 1.1681C7.81817 0.854101 7.40437 0.697439 6.99297 0.697439C6.58157 0.697439 6.14783 0.87941 5.8339 1.19341L2.52877 4.49541C2.26877 4.75541 2.2799 5.18211 2.53997 5.44211C2.79997 5.70277 3.23443 5.69142 3.4945 5.43076L6.7897 2.13075C6.89737 2.02275 7.0653 1.97477 7.19603 2.11077L7.7501 2.61341L3.8363 6.52674C3.17496 7.18874 2.56683 8.08075 1.98437 9.13075C1.53857 9.93408 1.1261 10.7948 0.777498 11.6514C0.655631 11.9508 0.332031 12.8174 0.332031 12.9768C0.332031 13.1354 0.384365 13.2841 0.486232 13.4014C0.496298 13.4128 0.692831 13.6294 0.999631 13.6354L10.3076 13.6301C10.6754 13.6301 10.9735 13.3321 10.9735 12.9634C10.9735 12.5954 10.6754 12.2968 10.3076 12.2968L4.27663 12.2981C4.48137 12.1941 4.68937 12.0841 4.88803 11.9734C5.93643 11.3908 6.7931 10.7887 7.45343 10.1274L11.785 5.81808L13.4497 4.13075C13.5442 4.03475 13.6642 3.93409 13.6646 3.63209C13.6662 2.31409 13.1283 1.5081 12.8002 1.17144C12.4722 0.835438 11.673 0.303427 10.3412 0.302094ZM10.5856 1.66277C10.8647 1.6541 11.5522 1.81541 11.8503 2.09807C12.1484 2.38141 12.3199 3.11674 12.3104 3.39474L11.475 4.22942L9.68483 2.57675L10.5856 1.66277Z",fill:"current"})))}var pSe,fSe=o.forwardRef(dSe),hSe=(n.p,["title","titleId"]);function mSe(){return mSe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mSe.apply(this,arguments)}function vSe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function gSe(e,t){var n=e.title,r=e.titleId,i=vSe(e,hSe);return o.createElement("svg",mSe({width:12,height:14,viewBox:"0 0 12 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,pSe||(pSe=o.createElement("path",{d:"M5.99935 0.302185C5.26269 0.302185 4.66602 0.89885 4.66602 1.63551H1.33268C0.964683 1.63551 0.666016 1.93418 0.666016 2.30218C0.666016 2.67018 0.964683 2.96884 1.33268 2.96884H10.666C11.034 2.96884 11.3327 2.67018 11.3327 2.30218C11.3327 1.93418 11.034 1.63551 10.666 1.63551H7.33269C7.33269 0.89885 6.73602 0.302185 5.99935 0.302185ZM1.33268 4.30217V10.9688C1.33268 12.4288 2.53602 13.6148 3.99935 13.6148L8.02003 13.6355C9.48336 13.6355 10.666 12.4321 10.666 10.9688V4.30217H1.33268ZM4.66602 6.30217C5.03402 6.30217 5.33269 6.60083 5.33269 6.96883V10.9688C5.33269 11.3368 5.03402 11.6355 4.66602 11.6355C4.29802 11.6355 3.99935 11.3368 3.99935 10.9688V6.96883C3.99935 6.60083 4.29802 6.30217 4.66602 6.30217ZM7.33269 6.30217C7.70069 6.30217 7.99936 6.60083 7.99936 6.96883V10.9688C7.99936 11.3368 7.70069 11.6355 7.33269 11.6355C6.96469 11.6355 6.66602 11.3368 6.66602 10.9688V6.96883C6.66602 6.60083 6.96469 6.30217 7.33269 6.30217Z",fill:"current"})))}var ySe,bSe=o.forwardRef(gSe),xSe=(n.p,function(e){var t=e.data,n=(0,o.useState)(!1),r=(0,Le.Z)(n,2),i=r[0],a=r[1],s=(0,Ms.J)(),l=(0,Yt.useMutation)({mutationFn:function(){return pi.Z.post("/contracts/".concat(t.id,"/request-cancellation"))},onSuccess:function(){s(),a(!1)}}).mutate,c=(0,Yt.useMutation)({mutationFn:function(){return pi.Z.delete("/contracts/".concat(t.id))},onSuccess:function(){s(),a(!1)}}).mutate;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(io.Z,{sx:{p:0},disableRipple:!0,className:"react-joyride-step-3-contract-drawer",onClick:function(){return a(!0)},disabled:(null===t||void 0===t?void 0:t.status)===Kt.Ru.Canceled,children:(0,u.jsx)(bSe,{fill:(null===t||void 0===t?void 0:t.status)===Kt.Ru.Canceled?tr.IV[500]:tr.E4[500]})}),(0,u.jsx)(ys,{open:i,onClose:function(){return a(!1)},children:(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",spacing:1,width:"100%",children:[(0,u.jsx)(da.Z,{sx:{height:"2rem",width:"2rem",display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"4px"},bgcolor:tr.dx[100],children:(0,u.jsx)(bSe,{fill:tr.dx[700]})}),(0,u.jsx)(rn.Z,{variant:"heading3",children:"Request to end contract negotiations"})]}),(0,u.jsx)(un,{}),(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.500",children:"You are about to request for contract negotiations to be cancelled. This action will need to be confirmed by your partner company and TDA before it takes effect. Are you sure you want to proceed?"}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",sx:{justifyContent:"right"},children:[(0,u.jsx)(Wo,{variant:"secondary",onClick:function(){return a(!1)},children:"Cancel"}),(0,u.jsx)(Wo,{onClick:function(){t.status===Kt.Ru.Draft?c():l()},children:"Confirm"})]})]})})]})}),wSe=function(e){var t,n=e.open,r=e.setIsOpen,o=e.setActiveCard,i=e.item,a=null===(t=Yd())||void 0===t?void 0:t.includes(Kt.ks.Buyer),s=(0,ze.s0)();return(0,u.jsx)(ec,{anchor:"right",open:n,onClose:function(){r(!1),o("")},hideBackdrop:!0,elevation:4,PaperProps:{sx:{mt:"".concat(bR,"px")}},children:(0,u.jsx)(U.Z,{onClickAway:function(e){var t=e.target;(t.classList.contains("react-joyride__overlay")||t.classList.contains("MuiModal-root"))&&(r(!1),o(""))},children:(0,u.jsxs)(nn.Z,{width:{md:"50vw",lg:"40vw"},p:2,pt:3,children:[(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(EI,{text:i.status}),(0,u.jsxs)(nn.Z,{direction:"row",spacing:1.5,children:[(0,u.jsx)(io.Z,{sx:{p:0},disableRipple:!0,onClick:function(){return s("../project/".concat(i.project,"/contract/").concat(i.latestContract))},className:"react-joyride-step-2-contract-drawer",children:(0,u.jsx)(fSe,{fill:tr.E4[500]})}),(0,u.jsx)(xSe,{data:i})]})]}),(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"start",alignItems:"center",spacing:1,mt:2,children:[(0,u.jsx)(Cme,{resource:"projects",id:i.project,displayName:"name",color:"primaryDark.600",variant:"heading2"}),(0,u.jsx)(io.Z,{sx:{borderRadius:"3px",p:.6,bgcolor:tr.dx[100]},href:"../end-to-end/project/".concat(i.project),target:"_blank",className:"react-joyride-step-1-contract-drawer",children:(0,u.jsx)(yM,{fill:tr.dx[700]})})]}),(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"start",alignItems:"start",spacing:10,mt:5,children:[(0,u.jsxs)(nn.Z,{spacing:1,children:[(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.500",children:"Cooperation with"}),a?(0,u.jsx)(rn.Z,{color:"primaryDark.600",variant:"body2",children:i.body.seller.companyName}):(0,u.jsx)(rn.Z,{color:"primaryDark.600",variant:"body2",children:i.body.buyer.companyName})]}),(0,u.jsxs)(nn.Z,{alignItems:"start",children:[(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.500",children:"Contract"}),(0,u.jsx)(io.Z,{disabled:!(null!==i&&void 0!==i&&i.document),color:"secondary",href:i.document,target:"_blank",className:"react-joyride-step-4-contract-drawer",children:(0,u.jsx)(u3,{fill:null!==i&&void 0!==i&&i.document?tr.IV[600]:tr.IV[400]})})]})]}),(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"start",alignItems:"start",spacing:2,mt:5,children:[(0,u.jsxs)(nn.Z,{spacing:1,children:[(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.500",children:"Created"}),(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",spacing:1,children:[(0,u.jsx)(Pl,{fill:tr.IV[500]}),(0,u.jsx)(rn.Z,{color:"primaryDark.600",variant:"body3",pr:1,children:(0,rs.qJ)(i.created)}),(0,u.jsx)(sSe,{fill:tr.E4[500]})]})]}),(0,u.jsxs)(nn.Z,{spacing:1,children:[(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.500",children:"Last signed"}),(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",spacing:1,children:[(0,u.jsx)(j3,{fill:tr.IV[500]}),(0,u.jsx)(rn.Z,{color:"primaryDark.600",variant:"body3",children:(0,rs.qJ)(i.signed)})]})]})]}),(0,u.jsx)(rn.Z,{className:"react-joyride-step-5-contract-drawer",mt:5,variant:"heading5",color:"primaryDark.500",children:"Annexes"}),(0,u.jsx)(k2,{columns:CSe,resource:"contracts",disableTabView:!0,searchParams:{project:i.project,limit:999,type:"annex"},hideFooter:!0,headerHeight:0,disableSelectionOnClick:!0,sx:{".MuiDataGrid-row":{borderBottom:"1px solid",borderColor:"secondaryBlue.100"},minHeight:"16rem"}})]})})})},CSe=[{field:"status",flex:.2,renderCell:function(e){return(0,u.jsx)(EI,{text:e.value})}},{field:"name",flex:.2,renderCell:function(e){return(0,u.jsx)(rn.Z,{variant:"heading5",children:e.value})}},{field:"",align:"left",headerAlign:"left",flex:.4,renderCell:function(e){return(0,u.jsxs)(nn.Z,{direction:"row",spacing:1,alignItems:"center",children:[(0,u.jsx)(rn.Z,{variant:"heading5",children:(0,rs.qJ)(e.row.created)}),(0,u.jsx)(sSe,{fill:tr.E4[500]}),(0,u.jsx)(rn.Z,{variant:"heading5",children:(0,rs.qJ)(e.row.signed)})]})}},{field:"document",flex:.01,renderCell:function(e){return e.value&&(0,u.jsx)(io.Z,{href:e.value,target:"_blank",children:(0,u.jsx)(I3,{fill:tr.dx[500]})})}}],jSe=function(e,t){var n=e===t;return{p:2,mb:2,borderRadius:"0px 8px 8px 8px",transition:"0.2s all ease-in",border:"1px solid",borderColor:n?"secondaryBlue.200":"secondaryBlue.100",position:"relative",overflow:"visible",background:"#FFF",boxShadow:n?"1px 10px 30px rgba(56, 69, 114, 0.1)":"none","&:before":{position:"absolute",top:"calc(-10% - 2px)",left:"-1px",content:'""',width:"30%",height:"10%",clipPath:"polygon(0 0, 75% 0, 100% 100%, 0% 100%)",backgroundColor:n?"secondaryBlue.200":"secondaryBlue.100",border:"1px solid",borderColor:n?"secondaryBlue.200":"secondaryBlue.100",borderTopLeftRadius:"8px",zIndex:0},"&:hover":{backgroundColor:"secondaryBlue.50",cursor:"pointer"}}},SSe=function(e){var t,n=e.item,r=e.onCardClick,i=null===(t=Yd())||void 0===t?void 0:t.includes(Kt.ks.Buyer),a=(0,o.useState)(""),s=(0,Le.Z)(a,2),l=s[0],c=s[1],d=(0,o.useState)(!1),p=(0,Le.Z)(d,2),f=p[0],h=p[1],m=(0,ze.TH)(),v=null===m||void 0===m?void 0:m.state,g=$P().tutorials;return(0,o.useEffect)((function(){v&&(v.name.includes("Annex")&&n.id===v.originalContract&&(c(v.originalContract),h(!0)),n.id===v.id&&null!==g&&void 0!==g&&g.includes(Kt.y$.ContractDetail)&&v&&n.id===v.id&&(c(v.id),h(!0)))}),[v]),(0,u.jsxs)(NZ,{elevation:0,onClick:function(){h(!0),r(!0),c(n.id)},sx:jSe(n.id,l),children:[(0,u.jsxs)(nn.Z,{spacing:1.5,className:"react-joyride-step-7-contracts",children:[(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,u.jsx)(EI,{text:null===n||void 0===n?void 0:n.status}),(0,u.jsx)(rn.Z,{color:"primaryLight.500",variant:"heading5",children:"View all"})]}),(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(Cme,{resource:"projects",id:n.project,displayName:"name",variant:"body2"}),i?(0,u.jsx)(rn.Z,{color:"primaryDark.400",variant:"body3",children:n.body.seller.companyName}):(0,u.jsx)(rn.Z,{color:"primaryDark.400",variant:"body3",children:n.body.buyer.companyName})]}),(0,u.jsxs)(nn.Z,{spacing:.2,children:[(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{color:"primaryDark.400",variant:"heading5",children:"documents"}),(0,u.jsx)(Cme,{id:n.project,resource:"projects",displayName:"documents",color:"primaryDark.600",variant:"heading5"})]}),(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{color:"primaryDark.400",variant:"heading5",children:"created"}),(0,u.jsx)(rn.Z,{color:"primaryDark.600",variant:"heading5",children:(0,rs.qJ)(n.created)})]}),(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{color:"primaryDark.400",variant:"heading5",children:"last signed"}),(0,u.jsx)(rn.Z,{color:"primaryDark.600",variant:"heading5",children:(0,rs.qJ)(n.signed)})]})]})]}),(0,u.jsx)(wSe,{open:f,setIsOpen:h,item:n,setActiveCard:c})]})},kSe=["resultCount","selectedTab","value","label"],ZSe=function(e){var t=e.resultCount,n=e.selectedTab,r=e.value,o=e.label,i=Nn(e,kSe);return(0,u.jsx)(N1,(0,l.Z)((0,l.Z)({},i),{},{value:r,disableRipple:!0,sx:{p:0,mx:1,minHeight:"2rem",minWidth:0,"&.Mui-selected":{p:0}},icon:(0,u.jsx)(_1,{resultCount:t,value:r,selectedTab:n,label:o})},i))},OSe=function(e){var t=e.value,n=e.data,r=e.onCardClick;return(0,u.jsxs)(U1,{value:t,sx:{overflow:"hidden",bgcolor:"white",p:0,pt:0,position:"relative",minHeight:"10rem"},children:[(0,u.jsx)(kn,{container:!0,spacing:3,pt:4,children:null===n||void 0===n?void 0:n.map((function(e,t){return(0,u.jsx)(kn,{item:!0,xs:4,children:(0,u.jsx)(SSe,{item:e,onCardClick:function(e){return r(e)}})},e.id)}))}),!(null!==n&&void 0!==n&&n.length)&&(0,u.jsx)(RI,{})]})},ESe=["title","titleId"];function DSe(){return DSe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},DSe.apply(this,arguments)}function PSe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ASe(e,t){var n=e.title,r=e.titleId,i=PSe(e,ESe);return o.createElement("svg",DSe({width:10,height:8,viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,ySe||(ySe=o.createElement("path",{d:"M1.175 0.943577L5 4.72075L8.825 0.943577L10 2.10642L5 7.05469L5.90075e-08 2.10642L1.175 0.943577Z",fill:"current"})))}var MSe=o.forwardRef(ASe),TSe=(n.p,function(e){var t=e.setSort,n=e.sort,r=e.sortingMap,i=(0,o.useState)(null),a=(0,Le.Z)(i,2),s=a[0],l=a[1],c=Boolean(s),d=function(){l(null)};return(0,u.jsxs)(nn.Z,{direction:"row",spacing:1,alignItems:"center",children:[(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.500",children:"Sort by"}),(0,u.jsx)(Wo,{"aria-controls":c?"account-menu":void 0,"aria-haspopup":"true","aria-expanded":c?"true":void 0,variant:"primaryText",endIcon:(0,u.jsx)(MSe,{fill:tr.IV[600]}),sx:{color:"primaryDark.600"},onClick:function(e){l(e.currentTarget)},children:r.get(n)}),(0,u.jsx)(Uo.Z,{anchorEl:s,disableScrollLock:!0,id:"account-menu",open:c,onClose:d,onClick:d,sx:{width:"100%"},children:Array.from(r).map((function(e){var n=(0,Le.Z)(e,2),r=n[0],o=n[1];return(0,u.jsx)(Nl.Z,{children:(0,u.jsx)(rn.Z,{variant:"heading5",onClick:function(){return t(r)},color:"primaryDark.500",children:o})})}))})]})}),ISe=new Map([["created","Date created - First"],["-created","Date created - Last"],["name","Alphabetical A-Z"],["-name","Alphabetical Z-A"],["signed","Last signed - First"],["-signed","Last signed - Last"]]),RSe=ISe.keys().next().value,FSe=function(){var e,t,n,r,i,a,s=Pa(),c=(null===(e=Yd())||void 0===e||e.includes(Kt.ks.Buyer),(0,o.useState)("-1")),d=(0,Le.Z)(c,2),p=d[0],f=d[1],h=(0,o.useState)(RSe),m=(0,Le.Z)(h,2),v=m[0],g=m[1],y=(0,ze.s0)(),b=hi({resource:"/contracts?company=".concat(null===s||void 0===s||null===(t=s.membership)||void 0===t?void 0:t.company,"&type=contract&orderBy=").concat(v),enabled:!!s}).data,x=hi({resource:"/contracts?company=".concat(null===s||void 0===s||null===(n=s.membership)||void 0===n?void 0:n.company,"&type=contract&orderBy=").concat(v,"&status=active"),enabled:!!s,refetchOnMount:!1,refetchOnWindowFocus:!1}).data,w=hi({resource:"/contracts?company=".concat(null===s||void 0===s||null===(r=s.membership)||void 0===r?void 0:r.company,"&type=contract&orderBy=").concat(v,"&status=negotiation"),enabled:!!s,refetchOnMount:!1,refetchOnWindowFocus:!1}).data,C=hi({resource:"/contracts?company=".concat(null===s||void 0===s||null===(i=s.membership)||void 0===i?void 0:i.company,"&type=contract&orderBy=").concat(v,"&status=accepted"),enabled:!!s,refetchOnMount:!1,refetchOnWindowFocus:!1}).data,j=hi({resource:"/contracts?company=".concat(null===s||void 0===s||null===(a=s.membership)||void 0===a?void 0:a.company,"&type=contract&orderBy=").concat(v,"&status=canceled"),enabled:!!s,refetchOnMount:!1,refetchOnWindowFocus:!1}).data,S=$P(),k=S.joyride,Z=S.runJoyride,O=S.tutorials,E=S.updateJoyride,D=S.update,P=(0,o.useState)(!1),A=(0,Le.Z)(P,2),M=A[0],T=A[1];return(0,o.useEffect)((function(){O&&(O.includes(Kt.y$.IndividualContractDetail)||setTimeout((function(){Z(),D(Kt.y$.IndividualContractDetail)}),400))}),[M,O]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(IP,{steps:[(0,l.Z)((0,l.Z)({content:(0,u.jsx)(rn.Z,{children:"You can click on the project shortcut to enter your project screen."})},_P),{},{target:".react-joyride-step-1-contract-drawer",title:"Project shortcut"}),(0,l.Z)((0,l.Z)({content:(0,u.jsx)(rn.Z,{children:"By editing your contract terms, you will automatically create a contract annex that needs to be accepted and signed by both parties."})},_P),{},{target:".react-joyride-step-2-contract-drawer",title:"Edit contract"}),(0,l.Z)((0,l.Z)({content:(0,u.jsx)(rn.Z,{children:"Deleting your contract will stop all your current project progress on the platform. Your deletion request will also need to be verified by the other party and by TDA."})},_P),{},{target:".react-joyride-step-3-contract-drawer",title:"Delete contract"}),(0,l.Z)((0,l.Z)({content:(0,u.jsx)(rn.Z,{children:"The original version of your contract will be available for download here. Simply click the icon to receive your contract in pdf format."})},_P),{},{target:".react-joyride-step-4-contract-drawer",title:"Download contract"}),(0,l.Z)((0,l.Z)({content:(0,u.jsx)(rn.Z,{children:"All of your contract annexes will be listed here, along with their current status and date signed overviews. Once they have been signed by both parties, they will also be available for download."})},_P),{},{target:".react-joyride-step-5-contract-drawer",title:"Annexes"})],run:k.run,scrollDuration:400,scrollToFirstStep:!0,showSkipButton:!0,disableOverlayClose:!0,disableScrolling:k.steps[k.stepIndex]&&k.steps[k.stepIndex].disableScrolling,stepIndex:k.stepIndex,callback:function(e){return E(e)},continuous:!0,tooltipComponent:function(e){return NP(e)}}),(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsxs)(nn.Z,{direction:"row",sx:{alignItems:"center"},children:[(0,u.jsx)(io.Z,{onClick:function(){return y("../")},sx:{border:"1px solid",borderColor:"primaryDark.300",mr:"24px",width:"45px",height:"45px"},children:(0,u.jsx)(tSe,{sx:{height:"0.75em"}})}),(0,u.jsx)(rn.Z,{sx:{textTransform:"uppercase"},children:"back"})]}),(0,u.jsx)(nn.Z,{direction:"row",spacing:2,children:(0,u.jsx)(nn.Z,{direction:"column",sx:{width:"100%"},children:(0,u.jsx)(da.Z,{sx:{width:"100%",height:"fit-content",position:"relative"},children:(0,u.jsx)(o1,{value:p,children:(0,u.jsxs)(nn.Z,{sx:{width:"100%"},children:[(0,u.jsxs)(nn.Z,{sx:{width:"100%"},direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,u.jsxs)(T1,{className:"react-joyride-step-1-contracts",value:p,onChange:function(e,t){e.stopPropagation(),f(t)},"aria-label":"secondary tabs example",sx:{mt:2,p:0,zIndex:1},TabIndicatorProps:{style:{display:"none"}},children:[(0,u.jsx)(ZSe,{resultCount:null===b||void 0===b?void 0:b.data.count,value:"-1",selectedTab:p,label:"All"}),(0,u.jsx)(ZSe,{resultCount:null===x||void 0===x?void 0:x.data.count,value:"-2",selectedTab:p,label:"Active",className:"react-joyride-step-2-contracts"}),(0,u.jsx)(ZSe,{resultCount:null===w||void 0===w?void 0:w.data.count,value:"-3",selectedTab:p,label:"Negotiation",className:"react-joyride-step-3-contracts"}),(0,u.jsx)(ZSe,{resultCount:null===C||void 0===C?void 0:C.data.count,value:"-4",selectedTab:p,label:"Accepted",className:"react-joyride-step-4-contracts"}),(0,u.jsx)(ZSe,{resultCount:null===j||void 0===j?void 0:j.data.count,value:"-5",selectedTab:p,label:"Canceled",className:"react-joyride-step-5-contracts"})]}),(0,u.jsx)(TSe,{sortingMap:ISe,setSort:g,sort:v})]}),(0,u.jsx)(OSe,{value:"-1",data:null===b||void 0===b?void 0:b.data.results,onCardClick:function(e){return T(e)}}),(0,u.jsx)(OSe,{data:null===x||void 0===x?void 0:x.data.results,value:"-2",onCardClick:function(e){return T(e)}}),(0,u.jsx)(OSe,{data:null===w||void 0===w?void 0:w.data.results,value:"-3",onCardClick:function(e){return T(e)}}),(0,u.jsx)(OSe,{data:null===w||void 0===w?void 0:w.data.results,value:"-4",onCardClick:function(e){return T(e)}}),(0,u.jsx)(OSe,{data:null===w||void 0===w?void 0:w.data.results,value:"-5",onCardClick:function(e){return T(e)}})]})})})})})]})]})},BSe=function(){return(0,u.jsx)(ze.j3,{})},LSe=function(e){var t=e.outlet,n=(0,o.useState)(!1),r=(0,Le.Z)(n,2),i=r[0],a=r[1];return(0,u.jsx)(tn,{sx:{flexGrow:1,mt:"90px"},children:(0,u.jsxs)(nn.Z,{direction:"row",children:[(0,u.jsx)(kR,{isSidebarOpen:i,setIsSidebarOpen:a,items:lM,isAdmin:!0}),(0,u.jsx)(tn,{component:"main",sx:{flexGrow:1,py:"24px",px:"24px",height:"100%"},children:t})]})})},NSe=function(){return(0,u.jsx)(tn,{sx:{backgroundColor:"#FFF",minHeight:"100vh"},children:(0,u.jsx)(LSe,{outlet:(0,u.jsx)(ze.j3,{})})})},_Se=function(){return(0,u.jsx)(NZ,{sx:{my:3,p:3},children:(0,u.jsx)(rn.Z,{children:"Admin home"})})},zSe=function(){return(0,u.jsx)(tn,{sx:{width:"100%"},children:(0,u.jsx)(ze.j3,{})})},HSe=function(){var e=(0,o.useState)(!1),t=(0,Le.Z)(e,2),n=t[0],r=t[1],i=(0,o.useState)(void 0),a=((0,Le.Z)(i,1)[0],(0,o.useState)("")),s=((0,Le.Z)(a,2)[1],(0,o.useState)([])),l=(0,Le.Z)(s,2),c=l[0],d=(l[1],(0,o.useState)([])),p=(0,Le.Z)(d,2),f=p[0],h=(p[1],(0,o.useState)([])),m=(0,Le.Z)(h,2),v=m[0],g=(m[1],(0,o.useState)("1")),y=(0,Le.Z)(g,2),b=y[0],x=y[1];var w=[{field:"title",headerName:"Title",flex:.3},{field:"status",headerName:"Status",flex:.2},{field:"buyerFlagged",headerName:"Buyer Flagged",flex:.1,type:"boolean"},{field:"sellerFlagged",headerName:"Seller Flagged",flex:.1,type:"boolean"},{field:"projectTitle",headerName:"Project",flex:.3}],C=function(){r(!1)};return(0,u.jsxs)(tn,{sx:{p:3,flexGrow:1},children:[(0,u.jsx)(o1,{value:b,children:(0,u.jsxs)(ao.Z,{sx:{width:"100%"},children:[(0,u.jsxs)(T1,{value:b,onChange:function(e,t){x(t)},centered:!0,sx:{mb:2},children:[(0,u.jsx)(N1,{value:"1",label:"Milestones"}),(0,u.jsx)(N1,{value:"2",label:"Tasks"}),(0,u.jsx)(N1,{value:"3",label:"Subtask"})]}),(0,u.jsx)(U1,{value:"1",tabIndex:0,children:(0,u.jsx)("div",{style:{height:"600px"},children:(0,u.jsx)(l0._$r,{columns:w,rows:c})})}),(0,u.jsx)(U1,{value:"2",tabIndex:-1,children:(0,u.jsx)("div",{style:{height:"600px"},children:(0,u.jsx)(l0._$r,{columns:w,rows:f})})}),(0,u.jsx)(U1,{value:"3",tabIndex:-2,children:(0,u.jsx)("div",{style:{height:"600px"},children:(0,u.jsx)(l0._$r,{columns:w,rows:v})})})]})}),(0,u.jsxs)(Fj,{open:n,onClose:C,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[(0,u.jsx)(n$,{id:"alert-dialog-title",children:"Confirm Article delete"}),(0,u.jsx)(Sj,{children:(0,u.jsx)(l$,{id:"alert-dialog-description",children:"Do you really want to delete article?"})}),(0,u.jsx)(Yy,{children:(0,u.jsx)(ko.Z,{onClick:C,children:"Cancel"})})]})]})},WSe=n(17491),VSe=n(88549),USe=n(70961),qSe=n(38761),GSe=n(15977),YSe=n(36750),KSe=n(65519);var JSe=n.p+"static/media/upload-icon.d242a97c05e6ad17a6085265f56b3b25.svg",XSe=function(e){var t=e.setFile,n=e.setFileName,r=(e.uploadSubject,function(){var e=ds(hs().mark((function e(r){var o,i;return hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=null===r||void 0===r?void 0:r[0]){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,(0,rs.y3)(o);case 5:i=e.sent,n(null===o||void 0===o?void 0:o.name),t(i);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());return(0,u.jsx)(Jf,{onDrop:r,accept:".pdf",children:function(e){var t=e.getRootProps,n=e.getInputProps;return(0,u.jsxs)(NZ,(0,l.Z)((0,l.Z)({},t()),{},{variant:"outlined",component:"div",sx:{p:3,mt:5,flexDirection:"column",textAlign:"center",color:"#5C5F5C",border:"1px dashed #A9ACA8"},children:[(0,u.jsx)("input",(0,l.Z)({},n())),(0,u.jsx)(tn,{component:"img",src:JSe,sx:{mr:"1em",mb:"1em"}}),(0,u.jsxs)("p",{children:["Drag & drop to upload file (PDF) or"," ",(0,u.jsx)("span",{style:{color:"#7F57FF"},children:"browse"}),(0,u.jsx)("br",{}),"Max. size: 10 MB"]})]}))}})},QSe=function(e){var t=e.data,n=e.isOpen,r=e.setIsOpen,i=(0,o.useState)(null),a=(0,Le.Z)(i,2),s=a[0],c=a[1],d=(0,o.useState)(!1),p=(0,Le.Z)(d,2),f=p[0],h=p[1],m=(0,o.useState)(""),v=(0,Le.Z)(m,2),g=v[0],y=v[1],b=oa({resource:"/milestones/".concat(null===t||void 0===t?void 0:t.id,"/buyer-invoice")}).mutate,x=(0,Ms.J)(),w=fd({defaultValues:{dueDate:new Date}});return(0,u.jsx)(vs.Z,{open:n,onClose:function(){return r(!1)},children:(0,u.jsx)(nn.Z,{sx:{width:"40%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:(0,u.jsx)(Eh,{dateAdapter:vg,children:(0,u.jsx)(ao.Z,{sx:{padding:"2em"},children:(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(nn.Z,{children:(0,u.jsx)(rn.Z,{sx:{fontSize:"1.25em",fontWeight:600,mt:3},children:"Attach the invoice"})}),(0,u.jsxs)(nn.Z,{sx:{mt:2},spacing:1,children:[(0,u.jsx)(XSe,{setFile:c,setFileName:y}),g&&(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{p:3,mt:1,textAlign:"center",color:"#5C5F5C",border:"1px solid #A9ACA8",borderRadius:1},children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",justifyContent:"left",width:"50%",gap:1,children:[(0,u.jsx)(da.Z,{sx:{p:1,background:"#E1E3DF",borderRadius:1},children:(0,u.jsx)(YSe.Z,{sx:{fontSize:"1rem"}})}),(0,u.jsx)(rn.Z,{variant:"caption",children:g})]}),(0,u.jsx)(io.Z,{onClick:function(){c(null),y("")},children:(0,u.jsx)(KSe.Z,{})})]})]}),(0,u.jsx)($R,{children:(0,u.jsx)(iF.Z,{control:(0,u.jsx)(GSe.Z,{checked:f,onChange:function(e){h(e.target.checked)}}),label:"Set due date"})}),f&&(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(rn.Z,{sx:{fontSize:"1em",fontWeight:600,mt:0,mb:1},children:"Invoice due date:"}),(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},w),{},{children:(0,u.jsx)(Eh,{dateAdapter:vg,children:(0,u.jsx)(Vw,{name:"dueDate"})})}))]}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",sx:{justifyContent:"right"},children:[(0,u.jsx)(jZ,{variant:"text",onButtonClick:function(){return r(!1)},sx:{borderRadius:"100px",fontWeight:500},children:"Cancel"}),(0,u.jsx)(jZ,{variant:"contained",color:"secondary",onButtonClick:function(){b((0,l.Z)({invoice:s},f&&{dueDate:w.getValues("dueDate")}),{onSuccess:function(){r(!1),c(null),y(""),x()}})},disabled:!g,sx:{borderRadius:"100px",fontWeight:500},children:"Confirm"})]})]})})})})})},$Se=function(e){var t=e.data,n=e.isOpen,r=e.setIsOpen,o=(0,As.Z)({resource:"/milestones"}).mutate,i=(0,Ms.J)();return(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(vs.Z,{open:n,onClose:function(){return r(!1)},children:(0,u.jsx)(nn.Z,{sx:{width:"40%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:(0,u.jsx)(Eh,{dateAdapter:vg,children:(0,u.jsx)(ao.Z,{sx:{padding:"2em"},children:(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(nn.Z,{}),(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(rn.Z,{sx:{fontSize:"1.25em",fontWeight:600,mt:3,mb:2},children:"Complete payment"}),(0,u.jsx)(rn.Z,{sx:{fontSize:"1em",fontWeight:500,mt:3},children:"Are you sure you want to complete payment?"})]}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",sx:{justifyContent:"right"},children:[(0,u.jsx)(jZ,{variant:"text",onButtonClick:function(){return r(!1)},sx:{borderRadius:"100px",fontWeight:500},children:"Cancel"}),(0,u.jsx)(jZ,{variant:"contained",onButtonClick:function(){o({data:(0,l.Z)((0,l.Z)({},t),{},{paid:new Date}),id:t.id,suffix:"mark-paid"},{onSuccess:function(){r(!1),i()}})},sx:{borderRadius:"100px",fontWeight:500},children:"Confirm"})]})]})})})})})})},eke=function(e){var n,r=e.data,o=e.isOpen,i=e.setIsOpen,a=e.propertyName,s=void 0===a?"sellerInvoiceDueDate":a,c=fd({defaultValues:{dueDate:new Date(null!==(n=r[s])&&void 0!==n?n:Date.now())}}),d=(0,As.Z)({resource:"/milestones"}).mutate,p=(0,Ms.J)();return(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(vs.Z,{open:o,onClose:function(){return i(!1)},children:(0,u.jsx)(nn.Z,{sx:{width:"30%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:(0,u.jsx)(Eh,{dateAdapter:vg,children:(0,u.jsx)(ao.Z,{sx:{padding:"2em"},children:(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsxs)(nn.Z,{children:[(0,u.jsxs)(rn.Z,{sx:{fontSize:"1.3em",fontWeight:600,mt:2,mb:2},children:["sellerInvoiceDueDate"===s?"Seller":"Buyer"," Invoice Due Date"]}),(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",sx:{mt:2},children:[(0,u.jsx)(rn.Z,{sx:{fontSize:"1em",fontWeight:600},children:"Current value:"}),(0,u.jsx)(rn.Z,{sx:{fontSize:"1em",fontWeight:800},children:null!==r[s]?new Date(r[s]).toLocaleDateString():"-"})]}),(0,u.jsx)(rn.Z,{sx:{fontSize:"1em",fontWeight:600,mt:4,mb:0},children:"Set new value:"}),(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},c),{},{children:(0,u.jsx)(Vw,{name:"dueDate"})}))]}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",sx:{justifyContent:"right"},children:[(0,u.jsx)(jZ,{variant:"text",onButtonClick:function(){return i(!1)},sx:{borderRadius:"100px",fontWeight:500},children:"Cancel"}),(0,u.jsx)(jZ,{variant:"contained",onButtonClick:function(){d({data:(0,t.Z)({},s,c.getValues("dueDate")),id:r.id},{onSuccess:function(){i(!1),p()}})},sx:{borderRadius:"100px",fontWeight:500},children:"Confirm"})]})]})})})})})})},tke=function(e){var t=e.params,n=(0,o.useState)(!1),r=(0,Le.Z)(n,2),i=r[0],a=r[1],s=(0,o.useState)(null),l=(0,Le.Z)(s,2),c=l[0],d=l[1],p=(0,o.useState)(!1),f=(0,Le.Z)(p,2),h=f[0],m=f[1],v=(0,o.useState)(!1),g=(0,Le.Z)(v,2),y=g[0],b=g[1],x=(0,o.useState)(!1),w=(0,Le.Z)(x,2),C=w[0],j=w[1],S=(0,o.useState)(!1),k=(0,Le.Z)(S,2),Z=k[0],O=k[1];return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(io.Z,{onClick:function(e){return function(e){d(e.currentTarget),a(!0)}(e)},children:(0,u.jsx)(Ok.Z,{sx:{fontSize:"1.55rem"}})}),(0,u.jsxs)(Uo.Z,{id:"menu-".concat(t.row.id),transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{vertical:"bottom",horizontal:"right"},elevation:1,open:i,anchorEl:c,onClose:function(){return a(!i)},sx:{"& .MuiPaper-root":{backgroundColor:"grey.50"}},children:[t.row.buyerInvoice?(0,u.jsx)(Nl.Z,{onClick:function(){},children:(0,u.jsxs)("a",{href:t.row.buyerInvoice,download:"invoice",style:{textDecoration:"none",display:"flex",alignItems:"center",color:"#747474"},target:"_blank",rel:"noreferrer",children:[(0,u.jsx)(N3.Z,{children:(0,u.jsx)(WSe.Z,{})}),(0,u.jsx)(rn.Z,{sx:{color:"#666666"},children:"Buyer invoice"})]})}):(0,u.jsxs)(Nl.Z,{disabled:!t.row.sellerInvoice,onClick:function(){m(!0)},children:[(0,u.jsx)(N3.Z,{children:(0,u.jsx)(qSe.Z,{})}),(0,u.jsx)(rn.Z,{sx:{color:"#666666"},children:"Upload buyer invoice"})]}),(0,u.jsx)(Nl.Z,{disabled:!t.row.sellerInvoice,onClick:function(){},children:(0,u.jsxs)("a",{href:t.row.sellerInvoice,style:{textDecoration:"none",display:"flex",alignItems:"center"},target:"_blank",rel:"noreferrer",download:"invoice",children:[(0,u.jsx)(N3.Z,{children:(0,u.jsx)(WSe.Z,{})}),(0,u.jsx)(rn.Z,{sx:{color:"#666666"},children:"Seller invoice"})]})}),(0,u.jsxs)(Nl.Z,{disabled:!t.row.sellerInvoice||t.row.paymentStatus===Kt.bG.Paid,onClick:function(){j(!0)},children:[(0,u.jsx)(N3.Z,{children:(0,u.jsx)(USe.Z,{})}),(0,u.jsx)(rn.Z,{sx:{color:"#666666"},children:"Seller Invoice Due Date"})]}),(0,u.jsxs)(Nl.Z,{disabled:!t.row.buyerInvoice||t.row.paymentStatus===Kt.bG.Paid,onClick:function(){O(!0)},children:[(0,u.jsx)(N3.Z,{children:(0,u.jsx)(USe.Z,{})}),(0,u.jsx)(rn.Z,{sx:{color:"#666666"},children:"Buyer Invoice Due Date"})]}),(0,u.jsxs)(Nl.Z,{disabled:!t.row.buyerInvoice||t.row.paymentStatus===Kt.bG.Paid,onClick:function(){b(!0)},children:[(0,u.jsx)(N3.Z,{children:(0,u.jsx)(VSe.Z,{})}),(0,u.jsx)(rn.Z,{sx:{color:"#666666"},children:"Complete payment"})]})]},"menu-".concat(t.row.id)),h&&(0,u.jsx)(QSe,{data:t.row,isOpen:h,setIsOpen:m}),(0,u.jsx)($Se,{data:t.row,isOpen:y,setIsOpen:b}),(0,u.jsx)(eke,{data:t.row,isOpen:C,setIsOpen:j,propertyName:"sellerInvoiceDueDate"}),(0,u.jsx)(eke,{data:t.row,isOpen:Z,setIsOpen:O,propertyName:"buyerInvoiceDueDate"})]})},nke=function(){var e=(0,o.useState)(0),t=(0,Le.Z)(e,2),n=t[0],r=t[1],i=(0,o.useState)(1),a=(0,Le.Z)(i,2);return{offset:n,setOffset:r,currentPage:a[0],setCurrentPage:a[1]}},rke=["endpoints"],oke=function(e){var t=e.endpoints,n=Nn(e,rke);return t?(0,Yt.useQueries)(t.map((function(e){return(0,l.Z)({queryKey:[e],queryFn:function(){return t=e,pi.Z.get(t);var t}},n)}))):[]},ike=["resourceUrl","resourceLimit","queryParams"],ake=function(e){var t,n=e.resourceUrl,r=e.resourceLimit,i=void 0===r?30:r,a=e.queryParams,s=Nn(e,ike),c=nke(),u=Object.assign({},c),d=(0,o.useState)([]),p=(0,Le.Z)(d,2),f=p[0],h=p[1],m=(0,o.useState)(""),v=(0,Le.Z)(m,2),g=v[0],y=v[1],b=(0,o.useState)(0),x=(0,Le.Z)(b,2),w=x[0],C=x[1],j=(0,o.useState)(0),S=(0,Le.Z)(j,2),k=S[0],Z=S[1],O="limit=".concat(i),E="offset=".concat(u.offset),D=a?"&".concat(a):"",P=""!==g?"&".concat(g):"",A="".concat(n,"?").concat(O,"&").concat(E).concat(D).concat(P),M=s.withTabs?s.chipFilterQueryParams.map((function(e){return"".concat(n,"?").concat(new URLSearchParams(e.search).toString(),"&").concat(O,"&").concat(E).concat(D).concat(P)})):[],T=hi({resource:s.withTabs?M[k]:A,refetchOnMount:!1,refetchOnReconnect:!1,refetchOnWindowFocus:!1}),I=T.data,R=T.isLoading,F=oke({staleTime:1/0,cacheTime:1/0,retry:!1,endpoints:s.withTabs?M:[],enabled:0===u.offset,refetchOnMount:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!1}),B=null===I||void 0===I?void 0:I.data.count,L=null!==(t=null===I||void 0===I?void 0:I.data.results)&&void 0!==t?t:[],N=F.map((function(e){var t;return null===(t=e.data)||void 0===t?void 0:t.data.count})),_=s.withTabs?s.chipFilterQueryParams.map((function(e,t){return{label:e.title,isLoading:F[t].isLoading,count:f[t]}})):[];return(0,o.useEffect)((function(){C((function(e){return void 0!==B?B:e}))}),[B]),(0,o.useEffect)((function(){s.withTabs&&0===f.length&&(N.every((function(e){return void 0!==e}))?h(N):N.some((function(e){return void 0!==e}))&&h((function(e){return e})))}),[f,N]),(0,o.useEffect)((function(){s.withTabs&&(u.setOffset(0),u.setCurrentPage(1))}),[k]),(0,l.Z)((0,l.Z)((0,l.Z)({loading:R,rows:L,totalRowsCount:w,activeChip:k,setActiveChip:Z},s.withTabs&&{chipFilters:_}),u),{},{resourceLimit:i,setQueryOptions:y})};function ske(e){return(0,F.Z)("MuiPaginationItem",e)}var lke=(0,R.Z)("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon"]),cke=n(54098),uke=n(20604),dke=(0,pa.Z)((0,u.jsx)("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),pke=(0,pa.Z)((0,u.jsx)("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),fke=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],hke=function(e,t){var n=e.ownerState;return[t.root,t[n.variant],t["size".concat((0,Zn.Z)(n.size))],"text"===n.variant&&t["text".concat((0,Zn.Z)(n.color))],"outlined"===n.variant&&t["outlined".concat((0,Zn.Z)(n.color))],"rounded"===n.shape&&t.rounded,"page"===n.type&&t.page,("start-ellipsis"===n.type||"end-ellipsis"===n.type)&&t.ellipsis,("previous"===n.type||"next"===n.type)&&t.previousNext,("first"===n.type||"last"===n.type)&&t.firstLast]},mke=(0,P.ZP)("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:hke})((function(e){var n=e.theme,o=e.ownerState;return(0,r.Z)({},n.typography.body2,(0,t.Z)({borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(n.vars||n).palette.text.primary,height:"auto"},"&.".concat(lke.disabled),{opacity:(n.vars||n).palette.action.disabledOpacity}),"small"===o.size&&{minWidth:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===o.size&&{minWidth:40,borderRadius:20,padding:"0 10px",fontSize:n.typography.pxToRem(15)})})),vke=(0,P.ZP)(Qy.Z,{name:"MuiPaginationItem",slot:"Root",overridesResolver:hke})((function(e){var n,o,i=e.theme,a=e.ownerState;return(0,r.Z)({},i.typography.body2,(o={borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(i.vars||i).palette.text.primary},(0,t.Z)(o,"&.".concat(lke.focusVisible),{backgroundColor:(i.vars||i).palette.action.focus}),(0,t.Z)(o,"&.".concat(lke.disabled),{opacity:(i.vars||i).palette.action.disabledOpacity}),(0,t.Z)(o,"transition",i.transitions.create(["color","background-color"],{duration:i.transitions.duration.short})),(0,t.Z)(o,"&:hover",{backgroundColor:(i.vars||i).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}),(0,t.Z)(o,"&.".concat(lke.selected),(n={backgroundColor:(i.vars||i).palette.action.selected,"&:hover":{backgroundColor:i.vars?"rgba(".concat(i.vars.palette.action.selected," / calc(").concat(i.vars.palette.action.selectedOpacity," + ").concat(i.vars.palette.action.hoverOpacity,"))"):(0,A.Fq)(i.palette.action.selected,i.palette.action.selectedOpacity+i.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(i.vars||i).palette.action.selected}}},(0,t.Z)(n,"&.".concat(lke.focusVisible),{backgroundColor:i.vars?"rgba(".concat(i.vars.palette.action.selected," / calc(").concat(i.vars.palette.action.selectedOpacity," + ").concat(i.vars.palette.action.focusOpacity,"))"):(0,A.Fq)(i.palette.action.selected,i.palette.action.selectedOpacity+i.palette.action.focusOpacity)}),(0,t.Z)(n,"&.".concat(lke.disabled),{opacity:1,color:(i.vars||i).palette.action.disabled,backgroundColor:(i.vars||i).palette.action.selected}),n)),o),"small"===a.size&&{minWidth:26,height:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===a.size&&{minWidth:40,height:40,borderRadius:20,padding:"0 10px",fontSize:i.typography.pxToRem(15)},"rounded"===a.shape&&{borderRadius:(i.vars||i).shape.borderRadius})}),(function(e){var n=e.theme,o=e.ownerState;return(0,r.Z)({},"text"===o.variant&&(0,t.Z)({},"&.".concat(lke.selected),(0,r.Z)({},"standard"!==o.color&&(0,t.Z)({color:(n.vars||n).palette[o.color].contrastText,backgroundColor:(n.vars||n).palette[o.color].main,"&:hover":{backgroundColor:(n.vars||n).palette[o.color].dark,"@media (hover: none)":{backgroundColor:(n.vars||n).palette[o.color].main}}},"&.".concat(lke.focusVisible),{backgroundColor:(n.vars||n).palette[o.color].dark}),(0,t.Z)({},"&.".concat(lke.disabled),{color:(n.vars||n).palette.action.disabled}))),"outlined"===o.variant&&(0,t.Z)({border:n.vars?"1px solid rgba(".concat(n.vars.palette.common.onBackgroundChannel," / 0.23)"):"1px solid ".concat("light"===n.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")},"&.".concat(lke.selected),(0,r.Z)({},"standard"!==o.color&&(0,t.Z)({color:(n.vars||n).palette[o.color].main,border:"1px solid ".concat(n.vars?"rgba(".concat(n.vars.palette[o.color].mainChannel," / 0.5)"):(0,A.Fq)(n.palette[o.color].main,.5)),backgroundColor:n.vars?"rgba(".concat(n.vars.palette[o.color].mainChannel," / ").concat(n.vars.palette.action.activatedOpacity,")"):(0,A.Fq)(n.palette[o.color].main,n.palette.action.activatedOpacity),"&:hover":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette[o.color].mainChannel," / calc(").concat(n.vars.palette.action.activatedOpacity," + ").concat(n.vars.palette.action.focusOpacity,"))"):(0,A.Fq)(n.palette[o.color].main,n.palette.action.activatedOpacity+n.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&.".concat(lke.focusVisible),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette[o.color].mainChannel," / calc(").concat(n.vars.palette.action.activatedOpacity," + ").concat(n.vars.palette.action.focusOpacity,"))"):(0,A.Fq)(n.palette[o.color].main,n.palette.action.activatedOpacity+n.palette.action.focusOpacity)}),(0,t.Z)({},"&.".concat(lke.disabled),{borderColor:(n.vars||n).palette.action.disabledBackground,color:(n.vars||n).palette.action.disabled}))))})),gke=(0,P.ZP)("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:function(e,t){return t.icon}})((function(e){var t=e.theme,n=e.ownerState;return(0,r.Z)({fontSize:t.typography.pxToRem(20),margin:"0 -8px"},"small"===n.size&&{fontSize:t.typography.pxToRem(18)},"large"===n.size&&{fontSize:t.typography.pxToRem(22)})})),yke=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiPaginationItem"}),o=n.className,i=n.color,a=void 0===i?"standard":i,s=n.component,l=n.components,c=void 0===l?{}:l,d=n.disabled,p=void 0!==d&&d,f=n.page,h=n.selected,m=void 0!==h&&h,v=n.shape,g=void 0===v?"circular":v,x=n.size,w=void 0===x?"medium":x,C=n.slots,S=void 0===C?{}:C,k=n.type,Z=void 0===k?"page":k,O=n.variant,E=void 0===O?"text":O,D=(0,b.Z)(n,fke),P=(0,r.Z)({},n,{color:a,disabled:p,selected:m,shape:g,size:w,type:Z,variant:E}),A=(0,j.Z)(),I=function(e){var t=e.classes,n=e.color,r=e.disabled,o=e.selected,i=e.size,a=e.shape,s=e.type,l=e.variant,c={root:["root","size".concat((0,Zn.Z)(i)),l,a,"standard"!==n&&"".concat(l).concat((0,Zn.Z)(n)),r&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return(0,M.Z)(c,ske,t)}(P),R=("rtl"===A.direction?{previous:S.next||c.next||pke,next:S.previous||c.previous||dke,last:S.first||c.first||cke.Z,first:S.last||c.last||uke.Z}:{previous:S.previous||c.previous||dke,next:S.next||c.next||pke,first:S.first||c.first||cke.Z,last:S.last||c.last||uke.Z})[Z];return"start-ellipsis"===Z||"end-ellipsis"===Z?(0,u.jsx)(mke,{ref:t,ownerState:P,className:(0,y.default)(I.root,o),children:"\u2026"}):(0,u.jsxs)(vke,(0,r.Z)({ref:t,ownerState:P,component:s,disabled:p,className:(0,y.default)(I.root,o)},D,{children:["page"===Z&&f,R?(0,u.jsx)(gke,{as:R,ownerState:P,className:I.icon}):null]}))})),bke=yke;function xke(e){return(0,F.Z)("MuiPagination",e)}(0,R.Z)("MuiPagination",["root","ul","outlined","text"]);var wke=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];var Cke=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],jke=(0,P.ZP)("nav",{name:"MuiPagination",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant]]}})({}),Ske=(0,P.ZP)("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:function(e,t){return t.ul}})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function kke(e,t,n){return"page"===e?"".concat(n?"":"Go to ","page ").concat(t):"Go to ".concat(e," page")}var Zke=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiPagination"}),o=n.boundaryCount,i=void 0===o?1:o,a=n.className,s=n.color,l=void 0===s?"standard":s,c=n.count,d=void 0===c?1:c,p=n.defaultPage,f=void 0===p?1:p,h=n.disabled,m=void 0!==h&&h,v=n.getItemAriaLabel,g=void 0===v?kke:v,x=n.hideNextButton,w=void 0!==x&&x,C=n.hidePrevButton,j=void 0!==C&&C,S=n.renderItem,k=void 0===S?function(e){return(0,u.jsx)(bke,(0,r.Z)({},e))}:S,Z=n.shape,O=void 0===Z?"circular":Z,E=n.showFirstButton,D=void 0!==E&&E,P=n.showLastButton,A=void 0!==P&&P,I=n.siblingCount,R=void 0===I?1:I,F=n.size,B=void 0===F?"medium":F,L=n.variant,N=void 0===L?"text":L,_=(0,b.Z)(n,Cke),z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.boundaryCount,n=void 0===t?1:t,o=e.componentName,i=void 0===o?"usePagination":o,a=e.count,s=void 0===a?1:a,l=e.defaultPage,c=void 0===l?1:l,u=e.disabled,d=void 0!==u&&u,p=e.hideNextButton,f=void 0!==p&&p,h=e.hidePrevButton,m=void 0!==h&&h,v=e.onChange,g=e.page,y=e.showFirstButton,x=void 0!==y&&y,w=e.showLastButton,C=void 0!==w&&w,j=e.siblingCount,S=void 0===j?1:j,k=(0,b.Z)(e,wke),Z=(0,Fs.Z)({controlled:g,default:c,name:i,state:"page"}),O=(0,Le.Z)(Z,2),E=O[0],D=O[1],P=function(e,t){g||D(t),v&&v(e,t)},A=function(e,t){var n=t-e+1;return Array.from({length:n},(function(t,n){return e+n}))},M=A(1,Math.min(n,s)),T=A(Math.max(s-n+1,n+1),s),I=Math.max(Math.min(E-S,s-n-2*S-1),n+2),R=Math.min(Math.max(E+S,n+2*S+2),T.length>0?T[0]-2:s-1),F=[].concat((0,dn.Z)(x?["first"]:[]),(0,dn.Z)(m?[]:["previous"]),(0,dn.Z)(M),(0,dn.Z)(I>n+2?["start-ellipsis"]:n+1<s-n?[n+1]:[]),(0,dn.Z)(A(I,R)),(0,dn.Z)(R<s-n-1?["end-ellipsis"]:s-n>n?[s-n]:[]),(0,dn.Z)(T),(0,dn.Z)(f?[]:["next"]),(0,dn.Z)(C?["last"]:[])),B=function(e){switch(e){case"first":return 1;case"previous":return E-1;case"next":return E+1;case"last":return s;default:return null}},L=F.map((function(e){return"number"===typeof e?{onClick:function(t){P(t,e)},type:"page",page:e,selected:e===E,disabled:d,"aria-current":e===E?"true":void 0}:{onClick:function(t){P(t,B(e))},type:e,page:B(e),selected:!1,disabled:d||-1===e.indexOf("ellipsis")&&("next"===e||"last"===e?E>=s:E<=1)}}));return(0,r.Z)({items:L},k)}((0,r.Z)({},n,{componentName:"Pagination"})),H=z.items,W=(0,r.Z)({},n,{boundaryCount:i,color:l,count:d,defaultPage:f,disabled:m,getItemAriaLabel:g,hideNextButton:w,hidePrevButton:j,renderItem:k,shape:O,showFirstButton:D,showLastButton:A,siblingCount:R,size:B,variant:N}),V=function(e){var t=e.classes,n={root:["root",e.variant],ul:["ul"]};return(0,M.Z)(n,xke,t)}(W);return(0,u.jsx)(jke,(0,r.Z)({"aria-label":"pagination navigation",className:(0,y.default)(V.root,a),ownerState:W,ref:t},_,{children:(0,u.jsx)(Ske,{className:V.ul,ownerState:W,children:H.map((function(e,t){return(0,u.jsx)("li",{children:k((0,r.Z)({},e,{color:l,"aria-label":g(e.type,e.page,e.selected),shape:O,size:B,variant:N}))},t)}))})}))})),Oke=Zke,Eke=n(47081),Dke=n(62558),Pke=function(e){var t=e.totalRowsCount,n=e.numberOfRowsPerPage,r=e.setOffset,i=e.currentPage,a=e.setCurrentPage,s=e.sx,c=(0,o.useMemo)((function(){return Math.ceil(t/n)}),[t,n]),d=function(e){var t=e.direction;return(0,u.jsx)(u.Fragment,{children:"previous"===t?(0,u.jsx)(Wo,{startIcon:(0,u.jsx)(Eke.Z,{sx:{width:"0.8rem",height:"0.8rem",alignItems:"center"}}),variant:"secondaryText",sx:{fontSize:"14px"},children:"Previous"}):(0,u.jsx)(Wo,{endIcon:(0,u.jsx)(Dke.Z,{sx:{width:"0.8rem",height:"0.8rem",alignItems:"center"}}),variant:"secondaryText",sx:{fontSize:"14px"},children:"Next"})})};return(0,u.jsx)(Oke,{shape:"rounded",page:i,count:c,onChange:function(e,t){a(t),r((t-1)*n)},sx:(0,l.Z)({width:"100%","&>ul>:first-child":{marginRight:"auto"},"&>ul>:last-child":{marginLeft:"auto"},"&>ul>:not(:first-child):not(:last-child)":{"& .MuiButtonBase-root":{color:"primaryDark.500"},"& .Mui-selected":{backgroundColor:"".concat(tr.dx[50]," !important"),"&>*:nth-child(2)>*":{color:"primaryLight.500"},color:"primaryLight.500",border:"none"}}},s),renderItem:function(e){return(0,u.jsx)(bke,(0,l.Z)({slots:{previous:function(){return(0,u.jsx)(d,{direction:"previous"})},next:function(){return(0,u.jsx)(d,{direction:"next"})}}},e))}})},Ake=(0,o.memo)(Pke),Mke=["rows","columns","height","sx","withElements","components","totalRowsCount","setOffset","currentPage","setCurrentPage","baseUrl","numberOfRowsPerPage","loading"],Tke={".MuiDataGrid-virtualScrollerRenderZone":{width:"100%"},".MuiDataGrid-row":{border:"2px solid transparent",width:"100%",borderBottom:"1px solid",borderBottomColor:"primaryDark.150","&:hover":{boxShadow:"none",background:tr.dx[50]}},".Mui-selected":{border:"2px solid",borderColor:"secondaryBlue.200",backgroundColor:"".concat(tr.dx[50]," !important"),"&>*:nth-child(2)>*":{color:"primaryLight.500"}}},Ike={overflow:"visible",p:.5,px:2,backgroundColor:"common.white",border:"1px solid",borderColor:"secondaryBlue.100",borderRadius:2},Rke=function(e){var t=e.rows,n=e.columns,r=e.height,i=void 0===r?"580px":r,a=e.sx,s=e.withElements,c=void 0===s?{withTitle:"Table name"}:s,d=e.components,p=e.totalRowsCount,f=e.setOffset,h=e.currentPage,m=e.setCurrentPage,v=(e.baseUrl,e.numberOfRowsPerPage),g=e.loading,y=Nn(e,Mke),b=(0,o.useState)(null),x=(0,Le.Z)(b,2);x[0],x[1];return(0,u.jsx)(NZ,{elevation:0,sx:Ike,children:(0,u.jsxs)(nn.Z,{sx:{overflow:"hidden",bgcolor:"white",p:0},children:[(0,u.jsxs)(nn.Z,{alignItems:"center",direction:"row",justifyContent:"space-between",sx:{my:2},children:[c.withTitle&&(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",children:c.withTitle}),c.withCta&&c.withCta]}),(0,u.jsx)(un,{sx:{borderColor:"primaryDark.250",m:0}}),c.withTabs&&c.withTabs,(0,u.jsxs)(tn,{sx:{position:"relative"},children:[(0,u.jsx)(l0._$r,(0,l.Z)({loading:g,pageSize:v,disableSelectionOnClick:!0,rows:t,columns:n,initialState:{pagination:{pageSize:v}},components:(0,l.Z)({LoadingOverlay:function(){return(0,u.jsx)(v2,{sx:{backgroundColor:"secondaryBlue.200","& .MuiLinearProgress-bar":{backgroundColor:"secondaryBlue.100"}}})},Pagination:function(){return(0,u.jsx)(Ake,{totalRowsCount:p,numberOfRowsPerPage:v,setOffset:f,currentPage:h,setCurrentPage:m,sx:{py:1.5,mb:2.5,borderTop:"1px solid",borderColor:"primaryDark.250"}})}},d),sx:(0,l.Z)((0,l.Z)({border:"none","& .MuiDataGrid-main":{height:i}},Tke),a),componentsProps:{}},y),h),!(null!==t&&void 0!==t&&t.length)&&!g&&(0,u.jsx)(RI,{type:"list"})]})]})})},Fke=["resourceLimit"];function Bke(e){e.payments;var t=[{field:"paymentStatus",headerName:"Status",flex:.3,renderCell:function(e){return(0,u.jsx)(sve,{text:e.value})}},{field:"name",headerName:"Milestone",flex:.5},{field:"project",headerName:"Project",flex:.5,renderCell:function(e){return(0,u.jsx)(Cme,{sx:{fontSize:"1rem"},resource:"projects",id:e.value,displayName:"name"})}},{field:"buyerName",headerName:"Buyer company",flex:.5},{field:"sellerName",headerName:"Seller company",flex:.5},{field:"budget",headerName:"Budget",flex:.5,renderCell:function(e){return(0,u.jsx)(rn.Z,{sx:{fontSize:"1rem"},children:e.value?(0,rs.xG)(e.value,e.row.currency):"-"})}},{field:"sellerInvoiceDueDate",headerName:"Due date (seller)",flex:.5,renderCell:function(e){return(0,u.jsx)(rn.Z,{sx:{fontSize:"0.875rem"},children:(0,rs.qJ)(e.value)})}},{field:"buyerInvoiceDueDate",headerName:"Due date (buyer)",flex:.5,renderCell:function(e){return(0,u.jsx)(rn.Z,{sx:{fontSize:"0.875rem"},children:(0,rs.qJ)(e.value)})}},{field:"invoiceAction",headerName:"Invoice",flex:.2,renderCell:function(e){return(0,u.jsx)(tke,{params:e})}}],n=ake({resourceUrl:"milestones"}),r=n.resourceLimit,o=Nn(n,Fke);return(0,u.jsx)(nn.Z,{spacing:2,children:(0,u.jsx)(Rke,(0,l.Z)({disableSelectionOnClick:!0,numberOfRowsPerPage:r,columns:t,withElements:{withTitle:"Payments (tabs & filters will be added)"}},o))})}var Lke=function(){var e=hi({resource:"/milestones/?limit=1000"}).data;return(0,u.jsx)(da.Z,{sx:{width:"100%"},children:(0,u.jsx)(Bke,{payments:(null===e||void 0===e?void 0:e.data.results)||[]})})},Nke=n(52693),_ke=["name","required","choices","displayName","displayValue","label","displayLabel"],zke={PaperProps:{style:{maxHeight:224,width:250}}},Hke=function(e){var t=e.name,n=e.required,r=e.choices,o=e.displayName,i=e.displayValue,a=e.label,s=void 0===a?"Select":a,c=e.displayLabel,d=void 0===c||c,p=Nn(e,_ke),f=Xc(),h=f.register,m=f.control,v=f.formState.errors;return(0,u.jsxs)(UQ.Z,{variant:"standard",children:[d&&(0,u.jsx)(Nke.Z,{id:"select-label",children:s}),(0,u.jsx)(Od.Z,(0,l.Z)((0,l.Z)((0,l.Z)({},h(t,n?{required:"This field is required"}:{required:!1})),{},{displayEmpty:!0,value:cu({control:m,name:t}),MenuProps:zke,fullWidth:!0},p),{},{children:null===r||void 0===r?void 0:r.map((function(e,t){return(0,u.jsx)(Nl.Z,{value:e[i],children:e[o]},t)}))})),v[t]&&(0,u.jsx)(I$.Z,{error:!0,children:v[t].message})]})},Wke=function(){var e=(0,ze.s0)(),t=fd(),n=hi({resource:"/companies?role=seller_tool&role=seller_service&status=approved"}).data,r=hi({resource:"/companies?role=buyer&status=approved"}).data,o=oa({resource:"/projects"}),i=o.mutate,a=o.isLoading,s=t.handleSubmit;return(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},t),{},{children:(0,u.jsx)("form",{onSubmit:s((function(t){i(t,{onSuccess:function(t){e("../projects")}})})),children:(0,u.jsx)(nn.Z,{spacing:2,direction:"row",sx:{py:3},children:(0,u.jsxs)(nn.Z,{spacing:3,width:"100%",children:[(0,u.jsx)(rn.Z,{variant:"h3",children:"Create Project"}),(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsx)(tn,{children:(0,u.jsx)(un,{})}),(0,u.jsx)(ao.Z,{sx:{p:3,bgcolor:"grey.100"},children:(0,u.jsx)(nn.Z,{spacing:1,children:(0,u.jsxs)(nn.Z,{spacing:6,children:[(0,u.jsxs)(nn.Z,{spacing:1,sx:{px:5},children:[(0,u.jsxs)(tn,{sx:{mb:0},children:[(0,u.jsx)(rn.Z,{variant:"body1",sx:{fontWeight:"bold"},children:"Title"}),(0,u.jsx)(rn.Z,{variant:"caption",children:"The title should include the necessery keywords and be between 4-9 words long."})]}),(0,u.jsx)(Zd,{name:"name",placeholder:"Title",required:!0})]}),(0,u.jsxs)(nn.Z,{spacing:1,sx:{px:5},children:[(0,u.jsx)(tn,{sx:{mb:0},children:(0,u.jsx)(rn.Z,{variant:"body1",sx:{fontWeight:"bold"},children:"Buyer"})}),(0,u.jsx)(Hke,{name:"buyer",choices:null===r||void 0===r?void 0:r.data.results,displayName:"name",displayValue:"id",required:!0})]}),(0,u.jsxs)(nn.Z,{spacing:1,sx:{px:5},children:[(0,u.jsx)(tn,{sx:{mb:0},children:(0,u.jsx)(rn.Z,{variant:"body1",sx:{fontWeight:"bold"},children:"Seller"})}),(0,u.jsx)(Hke,{name:"seller",choices:null===n||void 0===n?void 0:n.data.results,displayName:"name",displayValue:"id",required:!0})]}),(0,u.jsxs)(nn.Z,{spacing:1,sx:{px:5},children:[(0,u.jsx)(tn,{sx:{mb:0},children:(0,u.jsx)(rn.Z,{variant:"body1",sx:{fontWeight:"bold"},children:"Description"})}),(0,u.jsx)(Zd,{name:"description",multiline:!0,minRows:4,required:!0})]})]})})}),(0,u.jsx)(un,{sx:{pt:5}}),(0,u.jsx)(Pme,{onButtonClick:function(){return null},sx:{alignSelf:"end"},variant:"contained",size:"medium",fontWeight:"bold",minWidth:102,type:"submit",loading:a,children:"Save"})]})]})})})}))},Vke=function(e){var t=e.data,n=e.Icon,r=(0,ze.s0)(),o=(0,Ms.J)(),i=(0,As.Z)({resource:"notifications"}).mutate,a=(0,Y3.Z)(t);return(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(da.Z,{sx:{p:2,px:3,backgroundColor:t.seen?"transparent":"secondaryBlue.50",display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer","&:hover":{zIndex:999,boxShadow:"6px 6px 15px rgba(56, 69, 114, 0.1)"}},onClick:function(){r(a),i({id:t.id,suffix:"seen"},{onSuccess:function(){o()}})},children:[(0,u.jsxs)(nn.Z,{direction:"row",spacing:1,children:[(0,u.jsx)(io.Z,{sx:{borderRadius:"4px",bgcolor:"secondaryBlue.100",width:"40px",height:"40px",display:"flex",justifyContent:"center",alignItems:"center","&:hover":{bgcolor:"secondaryBlue.100"}},children:(0,u.jsx)(n,{fill:tr.dx[700]})}),(0,u.jsxs)(nn.Z,{direction:"column",children:[(0,u.jsx)(rn.Z,{flexWrap:"wrap",color:"primaryDark.600",variant:"body2",children:t.short}),(0,u.jsxs)(rn.Z,{variant:"body3",color:"primaryDark.400",fontWeight:"600",children:[(0,rs.VG)(t.created)," ","ago"]})]})]}),!t.seen&&(0,u.jsx)(da.Z,{sx:{backgroundColor:"primaryLight.500",borderRadius:"50%",minWidth:"12px",minHeight:"12px",width:"12px",height:"12px",border:"2px solid",borderColor:"primaryLight.100"}})]})})},Uke={transition:"0.3s all ease",textDecoration:"underline",cursor:"pointer","&:hover":{color:"primaryLight.300"}},qke=(new Map([["","All"],[Kt.W6.Content,"Content"],[Kt.W6.Marketplace,"Marketplace"],[Kt.W6.E2EManagment,"E2E Management"],[Kt.W6.Achievements,"Achievements"],[Kt.W6.TDCNotifications,"TDA"],[Kt.W6.Premium,"Premium"]]),function(){var e=(0,o.useState)(""),t=(0,Le.Z)(e,2),n=t[0],r=(t[1],hi({queryKey:["notifications",n],resource:"notifications?orderByCreatedOn=desc".concat(n?"&category=".concat(n):n)})),i=r.data,a=r.refetch,s=oa({resource:"/notifications/mark-all-as-seen"}).mutate,l=null===i||void 0===i?void 0:i.data.results;return(0,u.jsxs)(nn.Z,{direction:"row",width:"100%",height:"100%",justifyContent:"center",children:[(0,u.jsxs)(nn.Z,{direction:"column",width:"50%",children:[(0,u.jsx)(nn.Z,{direction:"row",justifyContent:"space-between",p:3,alignItems:"end",children:(0,u.jsx)(rn.Z,{variant:"body3",fontWeight:600,color:"primaryDark.500",sx:Uke,onClick:function(){s({},{onSuccess:function(){a()}})},children:"Mark all as read"})}),(0,u.jsx)(nn.Z,{children:0===(null===l||void 0===l?void 0:l.length)?(0,u.jsx)(rn.Z,{color:"primary",variant:"body1",fontSize:18,sx:{p:3,textAlign:"center"},children:"0 notifications"}):null===l||void 0===l?void 0:l.map((function(e){return(0,u.jsx)(Vke,{data:e,Icon:sa.get(e.category)})}))})]}),(0,u.jsx)(da.Z,{width:"50%",height:"100%",sx:{borderLeft:"1px solid",borderColor:"secondaryBlue.100"},children:(0,u.jsx)(nn.Z,{width:"80%",p:3,sx:{position:"sticky",top:ir.spacing(11)}})})]})}),Gke=function(e){var t=e.routePath,n=e.className,r=(0,ze.s0)();return(0,u.jsx)(dM.Z,{className:n||void 0,sx:{cursor:"pointer"},onClick:function(){return r(t)}})};function Yke(e){var t=e.payments,n=Yd(),r=function(e){return(null===n||void 0===n?void 0:n[0])===Kt.ks.Buyer?null===e||void 0===e?void 0:e.seller:null===e||void 0===e?void 0:e.buyer},o=[{field:"status",headerName:"Status",flex:.4,renderCell:function(e){return(0,u.jsx)(sve,{text:e.value})}},{field:"name",headerName:"Project name",flex:.8,renderCell:function(e){return(0,u.jsx)(rn.Z,{sx:{fontSize:"0.875rem"},children:e.value})}},{field:"company",headerName:"Partner company",flex:.8,renderCell:function(e){return(0,u.jsx)(Cme,{id:r(e.row),resource:"companies",displayName:"name",sx:{fontSize:"0.875rem"}})}},{field:"budget",headerName:"Budget",flex:.5,renderCell:function(e){return(0,u.jsx)(rn.Z,{sx:{fontSize:"0.875rem"},children:e.value?(0,rs.xG)(e.value,e.row.currency):"-"})}},{field:"Navigate",headerName:"",flex:.01,sortable:!1,disableColumnMenu:!0,renderCell:function(e){return(0,u.jsx)(Gke,{routePath:"./".concat(e.row.id),className:"react-joyride-step-5-payments"})}}];return(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(rn.Z,{variant:"h5",fontSize:"1.2rem",fontWeight:500,children:"Payment overview"}),(0,u.jsx)(tn,{sx:{overflow:"hidden",bgcolor:"white",p:0,borderRadius:"16px",border:"1px solid #C5C7C3"},className:"react-joyride-step-4-payments",children:(0,u.jsx)(l0._$r,{columns:o,rows:t,disableSelectionOnClick:!0,hideFooter:!0,sx:{minHeight:"400px"}})})]})}var Kke,Jke=function(e){var t=e.rows,n=Yd(),r=function(e){return(null===n||void 0===n?void 0:n[0])===Kt.ks.Buyer?null===e||void 0===e?void 0:e.sellerName:null===e||void 0===e?void 0:e.buyerName},o=[{field:"paymentStatus",headerName:"Status",flex:.4,renderCell:function(e){return(0,u.jsx)(sve,{text:e.value})}},{field:"company",headerName:"Company",flex:.8,renderCell:function(e){return(0,u.jsx)(rn.Z,{sx:{fontSize:"0.875rem"},children:r(e.row)})}},{field:"budget",headerName:"Amount",flex:.5,renderCell:function(e){return(0,u.jsx)(rn.Z,{sx:{fontSize:"0.875rem"},children:(0,rs.xG)(e.value,Kt.CF.Usd)})}}];return(0,u.jsx)(l0._$r,{columns:o,rows:t,rowHeight:70,disableSelectionOnClick:!0,hideFooter:!0,sx:{height:284}})},Xke=function(e){var t=e.payments,n=Yd(),r=null===n||void 0===n?void 0:n.includes(Kt.ks.Buyer),o=null===t||void 0===t?void 0:t.filter((function(e){return e.paymentStatus===Kt.bG.Paid})).map((function(e){return e.budget})),i=null===t||void 0===t?void 0:t.filter((function(e){return e.paymentStatus!==Kt.bG.Paid})).map((function(e){return e.budget})),a=function(e){return null!==e&&void 0!==e&&e.length?null===e||void 0===e?void 0:e.reduce((function(e,t){return e+t})):0};return(0,u.jsxs)(NZ,{elevation:0,sx:{pt:5,px:3,pb:3,borderRadius:"8px",width:"100%"},className:"react-joyride-step-3-payments",children:[(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",width:"100%",sx:{p:1},children:[(0,u.jsx)(rn.Z,{fontSize:"1.2rem",fontWeight:600,children:r?"Paid":"Earned"}),(0,u.jsx)(rn.Z,{fontSize:"1.2rem",fontWeight:600,children:r?"Remaining":"Expected"})]}),(0,u.jsx)(nn.Z,{direction:"row",justifyContent:"space-between",width:"100%",children:(0,u.jsx)(da.Z,{sx:{width:"100%"},children:(0,u.jsx)(v2,{variant:"determinate",value:function(){var e=a(o)/a(null===t||void 0===t?void 0:t.map((function(e){return e.budget})));return Number.isNaN(e)?0:100*e}(),sx:{height:"0.6rem",borderRadius:"16px",backgroundColor:"#FFDAD4",".MuiLinearProgress-barColorPrimary":{backgroundColor:"#52AF66"}}})})}),(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",width:"100%",sx:{p:1},children:[(0,u.jsx)(rn.Z,{fontWeight:400,children:(0,rs.xG)(a(o),Kt.CF.Usd)}),(0,u.jsx)(rn.Z,{fontWeight:400,children:(0,rs.xG)(a(i),Kt.CF.Usd)})]})]})},Qke=function(){var e,t,n,r,o=Pa(),i=hi({resource:"/milestones?company=".concat(null===o||void 0===o||null===(e=o.membership)||void 0===e?void 0:e.company)}).data,a=hi({resource:"/projects?company=".concat(null===o||void 0===o||null===(t=o.membership)||void 0===t?void 0:t.company)}).data;return(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(nn.Z,{spacing:5,sx:{py:2},children:[(0,u.jsx)(nn.Z,{spacing:.2,children:(0,u.jsx)(rn.Z,{variant:"h4",children:"Payments"})}),(0,u.jsxs)(nn.Z,{spacing:4,direction:"row",children:[(0,u.jsx)(b2,{mainCardClassName:"react-joyride-step-1-payments",headline:"Total balance",sx:{width:"49%"},renderComponent:(0,u.jsx)(mme,{milestones:null===i||void 0===i?void 0:i.data.results,currency:null===i||void 0===i||null===(n=i.data.results[0])||void 0===n?void 0:n.currency}),renderComponentSx:{height:"100%"}}),(0,u.jsx)(b2,{mainCardClassName:"react-joyride-step-2-payments",headline:"Payment summary",sx:{width:"49%"},renderComponent:(0,u.jsx)(Jke,{rows:null!==(r=null===i||void 0===i?void 0:i.data.results)&&void 0!==r?r:[]})})]}),(0,u.jsx)(Xke,{payments:null===i||void 0===i?void 0:i.data.results}),(0,u.jsx)(Yke,{payments:(null===a||void 0===a?void 0:a.data.results)||[]})]})})},$ke=function(e){var t=e.value,n=e.rows,r=e.tabIndex,o=e.navigateRoute,i=(0,ze.s0)();return(0,u.jsx)(U1,{sx:{overflow:"hidden",bgcolor:"white",p:0,borderRadius:"16px",border:"1px solid #C5C7C3"},value:t,tabIndex:r,children:(0,u.jsx)(l0._$r,{columns:tZe,rows:n,getRowId:function(e){return e.id},disableSelectionOnClick:!0,onRowClick:function(e){var t;return i(null!==(t="".concat(null!==o&&void 0!==o?o:"").concat(e.id))&&void 0!==t?t:"./".concat(e.id))},hideFooter:!0,sx:nZe})})},eZe=new Map([[Kt.FP.Completed,"Completed"],[Kt.FP.InProgress,"In Progress"],[Kt.FP.Pending,"Pending"],[Kt.FP.Canceled,"Canceled"]]),tZe=(new Map([[Kt.FP.Completed,"#D1F6D0"],[Kt.FP.InProgress,"#DFE0FF"],[Kt.FP.Pending,"#FFB4A9"],[Kt.FP.Canceled,"#F8EBCB"]]),[{field:"name",headerName:"Name",editable:!1,flex:.3,renderCell:function(e){return(0,u.jsx)(rn.Z,{sx:{fontSize:"0.875rem",fontWeight:600},children:e.row.name})}},{field:"status",headerName:"Status",editable:!1,flex:.3,renderCell:function(e){return(0,u.jsx)(_d,{label:eZe.get(e.value)})}},{field:"start",headerName:"Start date",editable:!1,flex:.3,renderCell:function(e){return(0,u.jsx)(rn.Z,{sx:{fontSize:"0.8rem"},children:(0,rs.qJ)(e.value)})}},{field:"end",headerName:"End date",editable:!1,flex:.3,renderCell:function(e){return(0,u.jsx)(rn.Z,{sx:{fontSize:"0.8rem"},children:(0,rs.qJ)(e.value)})}},{field:"buyer",headerName:"Buyer",editable:!1,flex:.3,renderCell:function(e){return(0,u.jsx)(Cme,{sx:{fontSize:"0.8rem"},resource:"companies",id:e.value,displayName:"name"})}},{field:"seller",headerName:"Seller",editable:!1,flex:.3,renderCell:function(e){return(0,u.jsx)(Cme,{sx:{fontSize:"0.8rem"},resource:"companies",id:e.value,displayName:"name"})}}]),nZe={height:"400px",cursor:"pointer",backgroundColor:"#fff",".MuiDataGrid-columnHeaderTitle":{fontFamily:"Poppins, sans-serif"},".MuiDataGrid-columnSeparator":{display:"none !important"},"&.MuiDataGrid-root .MuiDataGrid-cell:focus-within":{outline:"none !important"},".MuiDataGrid-columnHeaders":{backgroundColor:"#FBFDF8"},"& .MuiDataGrid-columnHeaderTitle":{fontWeight:"600"}},rZe=["resourceLimit"];!function(e){e.All="all",e.Canceled="canceled",e.Completed="completed",e.In_progress="in_progress",e.Negotiation="negotiation",e.Pending="pending"}(Kke||(Kke={}));var oZe=[Kke.All,Kke.Canceled,Kke.Completed,Kke.In_progress,Kke.Negotiation,Kke.Pending],iZe=function(){var e=(0,o.useState)(oZe[0]),t=(0,Le.Z)(e,2),n=t[0],r=(t[1],Pa()),i=(0,ze.s0)(),a=n==oZe[0]?"/projects":"/projects?status=".concat(n.toLocaleLowerCase()),s=hi({resource:a,enabled:!!r}).data,c=(hi({resource:"/projects",enabled:!!r}).data,null===s||void 0===s||s.data.results,[{field:"name",headerName:"Name",editable:!1,flex:.3,renderCell:function(e){return(0,u.jsx)(rn.Z,{sx:{fontSize:"0.875rem",fontWeight:600},children:e.row.name})}},{field:"status",headerName:"Status",editable:!1,flex:.3,renderCell:function(e){return(0,u.jsx)(_d,{label:eZe.get(e.value)})}},{field:"start",headerName:"Start date",editable:!1,flex:.3,renderCell:function(e){return(0,u.jsx)(rn.Z,{sx:{fontSize:"0.8rem"},children:(0,rs.qJ)(e.value)})}},{field:"end",headerName:"End date",editable:!1,flex:.3,renderCell:function(e){return(0,u.jsx)(rn.Z,{sx:{fontSize:"0.8rem"},children:(0,rs.qJ)(e.value)})}},{field:"buyer",headerName:"Buyer",editable:!1,flex:.3,renderCell:function(e){return(0,u.jsx)(Cme,{sx:{fontSize:"0.8rem"},resource:"companies",id:e.value,displayName:"name"})}},{field:"seller",headerName:"Seller",editable:!1,flex:.3,renderCell:function(e){return(0,u.jsx)(Cme,{sx:{fontSize:"0.8rem"},resource:"companies",id:e.value,displayName:"name"})}}]),d=ake({resourceUrl:"projects"}),p=d.resourceLimit,f=Nn(d,rZe);return(0,u.jsx)(tn,{sx:{width:"100%"},children:(0,u.jsx)(nn.Z,{direction:"column",spacing:1,children:(0,u.jsx)(Rke,(0,l.Z)({numberOfRowsPerPage:p,columns:c,onRowClick:function(e){var t;return i(null!==(t="".concat(e.id))&&void 0!==t?t:"./".concat(e.id))},withElements:{withTitle:"Projects (e2e) (tabs & filters will be added)",withCta:(0,u.jsx)(Wo,{onClick:function(){return i("../create-project")},children:"Add project"})}},f))})})},aZe=function(e){var t=e.property,n=e.value;return(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(nn.Z,{direction:"row",width:"100%",sx:{justifyContent:"space-between",marginY:"12px"},children:[(0,u.jsx)(rn.Z,{sx:{fontWeight:500},children:t}),(0,u.jsx)(rn.Z,{children:null!==n&&void 0!==n?n:"-"})]})})},sZe=function(e){var t=e.projectData;return(0,u.jsxs)(nn.Z,{spacing:4,width:"30%",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{sx:{fontWeight:500,fontSize:"2em"},children:null===t||void 0===t?void 0:t.name}),(0,u.jsx)(rn.Z,{sx:{fontSize:"1em"},children:null===t||void 0===t?void 0:t.description}),(0,u.jsxs)(NZ,{sx:{padding:"16px",borderRadius:"8px",width:"100%"},children:[(0,u.jsx)(aZe,{property:"Budget",value:t?(0,rs.xG)(t.budget,t.currency):"-"}),(0,u.jsx)(un,{}),(0,u.jsx)(aZe,{property:"Start date",value:(0,rs.qJ)(null===t||void 0===t?void 0:t.start)}),(0,u.jsx)(un,{}),(0,u.jsx)(aZe,{property:"End date",value:(0,rs.qJ)(null===t||void 0===t?void 0:t.end)})]})]})},lZe=function(e){e.projectData;var t=(0,o.useState)(!1),n=(0,Le.Z)(t,2),r=n[0],i=n[1],a=(0,ze.UO)().projectId,s=(0,Ms.J)(),l=(0,As.Z)({resource:"/projects"}).mutate;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(jZ,{color:"secondary",sx:{width:"90%",border:2,borderRadius:"100px",fontWeight:500},variant:"outlined",size:"large",onButtonClick:function(){return i(!0)},children:"Cancel"}),(0,u.jsx)(vs.Z,{open:r,onClose:function(){return i(!1)},children:(0,u.jsx)(nn.Z,{sx:{width:"40%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:(0,u.jsx)(Eh,{dateAdapter:vg,children:(0,u.jsx)(ao.Z,{sx:{padding:"2em"},children:(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(nn.Z,{children:(0,u.jsx)(rn.Z,{sx:{fontSize:"1.25em",fontWeight:600,mt:3,mb:2},children:"Cancel project"})}),(0,u.jsx)(nn.Z,{children:(0,u.jsx)(rn.Z,{sx:{fontSize:"1em",fontWeight:500,mt:3},children:"Are you sure you want to cancel project?"})}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",sx:{justifyContent:"right"},children:[(0,u.jsx)(jZ,{variant:"text",onButtonClick:function(){return i(!1)},sx:{borderRadius:"100px",fontWeight:500},children:"Cancel"}),(0,u.jsx)(jZ,{variant:"contained",onButtonClick:function(){l({data:{status:"canceled"},id:a},{onSuccess:function(){s(),i(!1)}})},sx:{borderRadius:"100px",fontWeight:500},children:"Confirm"})]})]})})})})})]})},cZe=function(e){var t=e.initialContract,n=(0,o.useState)(!1),r=(0,Le.Z)(n,2),i=r[0],a=r[1],s=(0,Ms.J)(),l=(0,ze.UO)().projectId,c=(0,Yt.useMutation)({mutationFn:function(){return pi.Z.patch("/projects/".concat(l,"/start"))},onSuccess:function(){return s()}}).mutate,d=!(null===t||void 0===t||!t.signed)||!(null!==t&&void 0!==t&&t.buyerApproved&&null!==t&&void 0!==t&&t.sellerApproved);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(jZ,{color:"secondary",sx:{width:"90%",fontWeight:500},setBorderRadius:!0,variant:"contained",disabled:d,size:"large",onButtonClick:function(){return a(!0)},children:"Start"}),(0,u.jsx)(vs.Z,{open:i,onClose:function(){return a(!1)},children:(0,u.jsx)(nn.Z,{sx:{width:"40%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:(0,u.jsx)(ao.Z,{sx:{padding:"2em"},children:(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(nn.Z,{children:(0,u.jsx)(rn.Z,{sx:{fontSize:"1.25em",fontWeight:600,mt:3,mb:2},children:"Start project"})}),(0,u.jsx)(nn.Z,{children:(0,u.jsx)(rn.Z,{sx:{fontSize:"1em",fontWeight:500,mt:3},children:"Contract is signed by both parties. Project is ready to start."})}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",sx:{justifyContent:"right"},children:[(0,u.jsx)(jZ,{variant:"text",onButtonClick:function(){return a(!1)},sx:{borderRadius:"100px",fontWeight:500},children:"Cancel"}),(0,u.jsx)(jZ,{variant:"contained",onButtonClick:function(){return c(),void a(!1)},sx:{borderRadius:"100px",fontWeight:500},children:"Confirm"})]})]})})})})]})},uZe=function(e){var t=e.projectData,n=e.initialContract,r=Math.ceil((null===t||void 0===t?void 0:t.tasksCompletedCount)/(null===t||void 0===t?void 0:t.tasksCount)*100);return(0,u.jsx)(NZ,{elevation:3,sx:{width:"30%",borderRadius:"8px"},children:(0,u.jsxs)(nn.Z,{spacing:4,sx:{p:"1em"},height:"100%",justifyContent:"space-between",children:[(0,u.jsxs)(nn.Z,{justifyContent:"space-between",direction:"row",children:[(0,u.jsx)(rn.Z,{variant:"body2",sx:{my:"auto"},children:"Status"}),(0,u.jsx)(_d,{label:T$.R2.get(null===t||void 0===t?void 0:t.status)})]}),(0,u.jsx)(nn.Z,{direction:"row",justifyContent:"center",children:(0,u.jsx)(jM,{displayScore:!0,size:10,truePercentage:Number.isNaN(r)?0:r})}),(0,u.jsxs)(nn.Z,{direction:"column",width:"100%",spacing:1,alignItems:"center",children:[(0,u.jsx)(lZe,{projectData:t}),(0,u.jsx)(cZe,{initialContract:n})]})]})})},dZe=function(e){var t=e.rows;return(0,u.jsxs)(NZ,{sx:{padding:"16px",borderRadius:"16px",width:"40%"},children:[(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{sx:{fontWeight:500,fontSize:"1.2em",marginBottom:"12px"},children:"Contracts"}),(0,u.jsx)($n,{to:"./contracts",children:(0,u.jsx)(rn.Z,{fontSize:"0.865rem",color:"grey.600",children:"view all"})})]}),(0,u.jsx)(l0._$r,{columns:pZe,rows:t,getRowId:function(e){return e.id},disableSelectionOnClick:!0,hideFooter:!0,sx:{minHeight:"284px",maxHeight:"90%"}})]})},pZe=(new Map([[Kt.tg.Approved,"Approved"],[Kt.tg.Completed,"Completed"],[Kt.tg.InProgress,"In progress"],[Kt.tg.Negotiation,"Negotiation"],[Kt.tg.Pending,"Pending"],[Kt.tg.UnderReview,"Under review"]]),[{field:"status",headerName:"Status",editable:!1,flex:.3,renderCell:function(e){return(0,u.jsx)(sve,{text:e.value})}},{field:"name",headerName:"Name",editable:!1,flex:.3,renderCell:function(e){var t;return(0,u.jsx)(rn.Z,{sx:{fontSize:"0.875rem"},children:null!==(t=e.row.name)&&void 0!==t?t:"-"})}},{field:"signed",headerName:"Signed",editable:!1,flex:.3,renderCell:function(e){return(0,u.jsx)(rn.Z,{sx:{fontSize:"0.875rem",paddingLeft:e.value?0:"38px"},children:(0,rs.qJ)(e.row.signed,"-")})}}]),fZe=function(e){var t=e.rows;return(0,u.jsxs)(NZ,{sx:{padding:"16px",borderRadius:"16px",width:"60%"},children:[(0,u.jsx)(rn.Z,{sx:{fontWeight:500,fontSize:"1.2em",marginBottom:"12px"},children:"Milestones"}),(0,u.jsx)(l0._$r,{columns:mZe,rows:t,getRowId:function(e){return e.id},disableSelectionOnClick:!0,hideFooter:!0,sx:{height:"400px"}})]})},hZe=new Map([[Kt.tg.Approved,"Approved"],[Kt.tg.Completed,"Completed"],[Kt.tg.InProgress,"In progress"],[Kt.tg.Negotiation,"Negotiation"],[Kt.tg.Pending,"Pending"],[Kt.tg.UnderReview,"Under review"]]),mZe=[{field:"name",headerName:"Name",editable:!1,flex:.3,renderCell:function(e){return(0,u.jsx)(rn.Z,{sx:{fontSize:"0.875rem",fontWeight:600},children:e.row.name})}},{field:"status",headerName:"Status",editable:!1,flex:.3,renderCell:function(e){return(0,u.jsx)(_d,{label:hZe.get(e.value)})}},{field:"start",headerName:"Start date",editable:!1,flex:.3,renderCell:function(e){return(0,u.jsx)(rn.Z,{sx:{fontSize:"0.875rem",paddingLeft:e.value?0:"38px"},children:(0,rs.qJ)(e.value)})}},{field:"end",headerName:"End date",editable:!1,flex:.3,renderCell:function(e){return(0,u.jsx)(rn.Z,{sx:{fontSize:"0.875rem",paddingLeft:e.value?0:"38px"},children:(0,rs.qJ)(e.value)})}},{field:"budget",headerName:"Budget",editable:!1,flex:.3,renderCell:function(e){return(0,u.jsx)(rn.Z,{sx:{fontSize:"0.875rem",fontWeight:600},children:(0,rs.xG)(e.value,e.row.currency)})}}],vZe=n(15817),gZe=function(e){var t=e.flagData,n=(0,o.useState)(!1),r=(0,Le.Z)(n,2),i=r[0],a=r[1],s=yZe(t);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(io.Z,{onClick:function(){return a(!0)},children:(0,u.jsx)(vZe.Z,{})}),(0,u.jsx)(vs.Z,{open:i,onClose:function(){return a(!1)},children:(0,u.jsx)(nn.Z,{sx:{width:"40%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:(0,u.jsx)(Eh,{dateAdapter:vg,children:(0,u.jsx)(ao.Z,{sx:{padding:"2em"},children:(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(nn.Z,{children:(0,u.jsx)(rn.Z,{sx:{fontSize:"1.25em",fontWeight:600,mt:3,mb:2},children:"Flag details"})}),(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsxs)(rn.Z,{sx:{fontSize:"1em",fontWeight:600},children:["Flag for:",(0,u.jsx)(Cme,{sx:{fontSize:"1em",fontWeight:500,mb:3},resource:"".concat(s,"s"),id:s&&t[s],displayName:"name"})]}),(0,u.jsxs)(rn.Z,{sx:{fontSize:"1em",fontWeight:600},children:["Summary:",(0,u.jsx)(rn.Z,{sx:{fontSize:"1em",fontWeight:500},children:t.summary})]})]}),(0,u.jsx)(un,{}),(0,u.jsx)(nn.Z,{spacing:2,direction:"row",sx:{justifyContent:"right"},children:(0,u.jsx)(jZ,{variant:"contained",onButtonClick:function(){return a(!1)},sx:{borderRadius:"100px",fontWeight:500},children:"Close"})})]})})})})})]})},yZe=function(e){return e.hasOwnProperty("milestone")?"milestone":e.hasOwnProperty("task")?"task":e.hasOwnProperty("subtask")?"subtask":void 0},bZe=function(e){var t=e.rows;return(0,u.jsxs)(NZ,{sx:{padding:"16px",borderRadius:"16px",width:"40%"},children:[(0,u.jsx)(nn.Z,{direction:"row",justifyContent:"space-between",children:(0,u.jsx)(rn.Z,{sx:{fontWeight:500,fontSize:"1.2em",marginBottom:"12px"},children:"Project flags"})}),(0,u.jsx)(l0._$r,{columns:xZe,rows:t,getRowId:function(e){return e.id},disableSelectionOnClick:!0,hideFooter:!0,sx:{height:"400px"}})]})},xZe=[{field:"entity",headerName:"Type",editable:!1,disableColumnMenu:!0,flex:.3,renderCell:function(e){return(0,u.jsx)(rn.Z,{children:(0,rs.RK)(yZe(e.row))})}},{field:"flaggedBy",headerName:"Flagged by",editable:!1,flex:.3,disableColumnMenu:!0,renderCell:function(e){return(0,u.jsx)(Cme,{resource:"companies",id:e.value,displayName:"name"})}},{field:"action",headerName:"",editable:!1,disableColumnMenu:!0,sortable:!1,flex:.01,renderCell:function(e){return(0,u.jsx)(gZe,{flagData:e.row})}}],wZe=function(){var e,t,n,r=(0,ze.UO)().projectId,o=Ra({resource:"projects",id:r,enabled:!!r}).data,i=hi({resource:"/milestones?company=".concat(null===o||void 0===o?void 0:o.buyer,"&project=").concat(null===o||void 0===o?void 0:o.id),enabled:!!o}).data,a=hi({resource:"/contracts?company=".concat(null===o||void 0===o?void 0:o.buyer,"&project=").concat(null===o||void 0===o?void 0:o.id),enabled:!!o}).data,s=hi({resource:"/flags?project=".concat(r)}).data,l=null===a||void 0===a?void 0:a.data.results,c=null===l||void 0===l?void 0:l[(null===l||void 0===l?void 0:l.length)-1];return(0,u.jsxs)(nn.Z,{width:"100%",sx:{mt:4},spacing:4,children:[(0,u.jsxs)(nn.Z,{direction:"row",spacing:4,width:"100%",justifyContent:"space-between",children:[(0,u.jsx)(sZe,{projectData:o}),(0,u.jsx)(uZe,{projectData:o,initialContract:c}),(0,u.jsx)(dZe,{rows:null!==(e=l)&&void 0!==e?e:[]})]}),(0,u.jsxs)(nn.Z,{direction:"row",spacing:4,width:"100%",children:[(0,u.jsx)(bZe,{rows:null!==(t=null===s||void 0===s?void 0:s.data.results)&&void 0!==t?t:[]}),(0,u.jsx)(fZe,{rows:null!==(n=null===i||void 0===i?void 0:i.data.results)&&void 0!==n?n:[]})]})]})},CZe=n(10501),jZe=["chipFilters"],SZe={lineHeight:1,fontWeight:600,fontFamily:"Gellix-SemiBold",fontSize:"11px"},kZe=function(e){var t=e.chipFilters,n=Nn(e,jZe),r=n.rows,o=n.setActiveChip,i=n.activeChip,a=function(e){return i===e};return(0,u.jsx)(nn.Z,{children:(0,u.jsx)(Rke,(0,l.Z)((0,l.Z)({},n),{},{rows:r,withElements:(0,l.Z)((0,l.Z)({},n.withElements),{},{withTabs:(0,u.jsx)(nn.Z,{spacing:1,direction:"row",sx:{my:2},children:t.map((function(e,t){return(0,u.jsx)(_d,{styleVariant:"rounded",onClick:function(){return o(t)},sx:{position:"relative",width:"fitContent",bgcolor:a(t)?"primaryDark.600":"transparent",color:a(t)?"common.white":"primaryDark.500",border:a(t)?"none":"1px solid","&:hover":{bgcolor:a(t)?"primaryDark.600":"primaryDark.100"}},label:(0,u.jsxs)(nn.Z,{spacing:1,direction:"row",alignItems:"center",children:[(0,u.jsx)(rn.Z,{sx:(0,l.Z)({},SZe),children:e.label}),e.isLoading?(0,u.jsx)(Zo.Z,{size:12,sx:{color:a(t)?"common.white":"primaryDark.500"}}):(0,u.jsx)(rn.Z,{sx:(0,l.Z)({},SZe),children:e.count})]})})}))})})}))})},ZZe=["resourceLimit","chipFilters"],OZe=function(e){var t=e.companyType,n=(0,ze.s0)(),r=[{field:"status",headerName:"Status",editable:!1,flex:.3,renderCell:function(e){return(0,u.jsx)(sve,{text:e.value})}},{field:"name",headerName:"Name",editable:!1,flex:.3,renderCell:function(e){return(0,u.jsx)(rn.Z,{sx:{fontSize:"0.875rem",fontWeight:600},children:e.row.name})}},{field:"companySize",headerName:"Company size",editable:!1,flex:.3,renderCell:function(e){return(0,u.jsx)(rn.Z,{children:Kt.Tz.get(e.value)})}},{field:"averageProjectSize",headerName:"Avg. project size",editable:!1,flex:.3,renderCell:function(e){return(0,u.jsx)(rn.Z,{children:Kt.Dw.get(e.value)})}},{field:"url",headerName:"Website",editable:!1,flex:.2,renderCell:function(e){return(0,u.jsx)(Xn,{underline:"none",href:e.value,onClick:function(e){return e.stopPropagation()},target:"_blank",rel:"noreferrer",children:e.value})}},{field:"Navigate",headerName:"Created by admin",flex:.2,sortable:!1,disableColumnMenu:!0,renderCell:function(e){return e.row.createdByAdmin?(0,u.jsx)(CZe.Z,{}):(0,u.jsx)(_xe.Z,{})}},{field:"agreementDate",headerName:"Agreement date",editable:!1,flex:.2,renderCell:function(e){return null===e.row.agreement_date?(0,u.jsx)(_xe.Z,{}):(0,u.jsx)(rn.Z,{children:(0,rs.qJ)(e.row.agreement_date)})}},{field:"originId",headerName:"TDA ID",editable:!1,flex:.2,renderCell:function(e){return(0,u.jsx)(rn.Z,{children:e.value})}}],o=ake({resourceUrl:"companies",queryParams:"role=".concat(t),withTabs:t!==Kt.ks.Buyer,chipFilterQueryParams:[{title:"All"},{title:"approved",search:{status:Kt.cM.Approved}},{title:"Pending",search:{status:Kt.cM.Pending}},{title:"Rejected",search:{status:Kt.cM.Rejected}}]}),i=o.resourceLimit,a=o.chipFilters,s=Nn(o,ZZe);return(0,u.jsx)(tn,{sx:{width:"100%"},children:(0,u.jsx)(nn.Z,{direction:"column",spacing:1,children:t!==Kt.ks.Buyer?(0,u.jsx)(kZe,(0,l.Z)({numberOfRowsPerPage:i,columns:r,onRowClick:function(e){return n("../".concat(e.id))},withElements:{withTitle:"Companies",withCta:(0,u.jsx)(Wo,{onClick:function(){return n("../create-company",{state:{fromBuyerPage:"buyer"===t}})},children:"Add new"})},chipFilters:a},s)):(0,u.jsx)(Rke,(0,l.Z)({numberOfRowsPerPage:i,columns:r,onRowClick:function(e){return n("../".concat(e.id))},withElements:{withTitle:"Companies (tabs & filters will be added)",withCta:(0,u.jsx)(Wo,{onClick:function(){return n("../create-company",{state:{fromBuyerPage:"buyer"===t}})},children:"Add new"})}},s))})})},EZe=function(e){var t=e.label,n=e.values,r=e.enums,i=(0,o.useState)(null),a=(0,Le.Z)(i,2),s=a[0],l=a[1],c=Boolean(s),d=c?"simple-popover":void 0;return(0,u.jsxs)(nn.Z,{sx:{padding:"0.5em 1em"},spacing:1,children:[(0,u.jsxs)(nn.Z,{direction:"row",sx:{justifyContent:"space-between"},children:[(0,u.jsx)(rn.Z,{sx:{fontSize:".875em",fontWeight:600},children:t}),(0,u.jsx)(un,{})]}),(0,u.jsxs)(nn.Z,{direction:"row",sx:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:.5},justifyContent:"space-between",children:[(0,u.jsx)(_d,{label:"".concat(n.length," selected")}),(0,u.jsx)(ko.Z,{"aria-describedby":d,onClick:function(e){l(e.currentTarget)},color:"secondary",disabled:0===n.length,children:"See all"}),(0,u.jsx)(PS.ZP,{id:d,open:c,anchorEl:s,onClose:function(){l(null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},children:(0,u.jsx)(nn.Z,{spacing:1,sx:{p:3},children:null===n||void 0===n?void 0:n.map((function(e){return(0,u.jsx)(_d,{label:r.get(e)})}))})})]})]})},DZe=n(30689),PZe=function(e){var t=e.company,n=(0,o.useState)(!1),r=(0,Le.Z)(n,2),i=r[0],a=r[1],s=(0,As.Z)({resource:"/companies"}).mutate,l=(0,Ms.J)();return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(jZ,{onButtonClick:function(){return a(!0)},setBorderRadius:!0,color:"secondary",variant:"contained",startIcon:(0,u.jsx)(DZe.Z,{}),children:"Approve"}),(0,u.jsx)(vs.Z,{open:i,onClose:function(){return a(!1)},children:(0,u.jsx)(nn.Z,{sx:{width:"40%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:(0,u.jsx)(Eh,{dateAdapter:vg,children:(0,u.jsx)(ao.Z,{sx:{padding:"2em"},children:(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(nn.Z,{children:(0,u.jsx)(rn.Z,{sx:{fontSize:"1.25em",fontWeight:600,mt:3,mb:2},children:"Approve company"})}),(0,u.jsx)(nn.Z,{children:(0,u.jsxs)(rn.Z,{sx:{fontSize:"1em",fontWeight:500,mt:3},children:["Are you sure you want to approve company: ",null===t||void 0===t?void 0:t.name,"?"]})}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",sx:{justifyContent:"right"},children:[(0,u.jsx)(jZ,{variant:"text",onButtonClick:function(){return a(!1)},sx:{borderRadius:"100px",fontWeight:500},children:"Cancel"}),(0,u.jsx)(jZ,{variant:"contained",onButtonClick:function(){s({data:{status:Kt.cM.Approved},id:t.id},{onSuccess:function(){a(!1),l()}})},sx:{borderRadius:"100px",fontWeight:500},children:"Confirm"})]})]})})})})})]})},AZe=function(e){var t,n,r,o=e.data,i=(0,ze.s0)();return(0,u.jsx)(da.Z,{sx:{height:"100% !important"},children:(0,u.jsx)(NZ,{elevation:3,sx:{borderRadius:"16px",height:"100%"},children:(0,u.jsxs)(nn.Z,{sx:{padding:"0.5em 1em"},spacing:1,children:[(0,u.jsxs)(nn.Z,{direction:"row",sx:{justifyContent:"space-between",mt:1,mb:3},children:[(0,u.jsx)(rn.Z,{sx:{fontSize:".875em"},children:"Status"}),(0,u.jsx)(sve,{text:null===o||void 0===o?void 0:o.status})]}),(0,u.jsxs)(nn.Z,{direction:"row",sx:{justifyContent:"space-between",pb:1},children:[(0,u.jsx)(rn.Z,{sx:{fontSize:".875em",fontWeight:600},children:"Average project size"}),(0,u.jsx)(rn.Z,{sx:{fontSize:".875em"},children:null!==(t=Kt.Dw.get(null===o||void 0===o?void 0:o.averageProjectSize))&&void 0!==t?t:"-"})]}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{direction:"row",sx:{justifyContent:"space-between",pb:1},children:[(0,u.jsx)(rn.Z,{sx:{fontSize:".875em",fontWeight:600},children:"Hourly rate"}),(0,u.jsx)(rn.Z,{sx:{fontSize:".875em"},children:null!==(n=Kt.vs.get(null===o||void 0===o?void 0:o.hourlyRate))&&void 0!==n?n:"-"})]}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{direction:"row",sx:{justifyContent:"space-between",pb:1},children:[(0,u.jsx)(rn.Z,{sx:{fontSize:".875em",fontWeight:600},children:"Company size"}),(0,u.jsx)(rn.Z,{sx:{fontSize:".875em"},children:null!==(r=Kt.Tz.get(null===o||void 0===o?void 0:o.companySize))&&void 0!==r?r:"-"})]}),(0,u.jsx)(un,{}),(0,u.jsx)(nn.Z,{direction:"row",spacing:2,sx:{justifyContent:"space-between",pt:2.5}}),(0,u.jsx)(jZ,{onButtonClick:function(){return i("./edit")},setBorderRadius:!0,variant:"outlined",startIcon:(0,u.jsx)(Dme.Z,{}),children:"Edit"}),(0,u.jsx)(PZe,{company:o})]})})})},MZe=function(e){var t=e.rows;return(0,u.jsx)(l0._$r,{columns:TZe,rows:t,getRowId:function(e){return e.id},disableSelectionOnClick:!0,hideFooter:!0,sx:IZe})},TZe=[{field:"avatar",headerName:" ",editable:!1,flex:.2,renderCell:function(e){return(0,u.jsx)(Ca,{alt:"Avatar",src:e.value})}},{field:"name",headerName:"Name",editable:!1,flex:.8,renderCell:function(e){return(0,u.jsx)(rn.Z,{sx:{fontSize:"0.875rem",fontWeight:600},children:e.row.name})}}],IZe={height:"400px",cursor:"pointer",backgroundColor:"#fff",".MuiDataGrid-columnHeaderTitle":{fontFamily:"Poppins, sans-serif"},".MuiDataGrid-columnSeparator":{display:"none !important"},"&.MuiDataGrid-root .MuiDataGrid-cell:focus-within":{outline:"none !important"},".MuiDataGrid-columnHeaders":{backgroundColor:"#FBFDF8"},"& .MuiDataGrid-columnHeaderTitle":{fontWeight:"600"}},RZe=function(){var e,t,n,r,o=(0,ze.UO)(),i=Ra({resource:"companies",id:o.companyId,refetchOnWindowFocus:!1}).data,a=hi({resource:"/projects?company=".concat(o.companyId)}).data,s=hi({resource:"/company-client?company=".concat(o.companyId)}).data,l=null===a||void 0===a?void 0:a.data.results,c=null===s||void 0===s?void 0:s.data.results;return(0,u.jsxs)(nn.Z,{spacing:3,direction:"column",children:[(0,u.jsxs)(nn.Z,{spacing:3,direction:"row",justifyContent:"space-between",alignItems:"stretch",sx:{mt:6,mb:0,pb:0},children:[(0,u.jsx)(nn.Z,{spacing:6,width:"30%",height:"100%",sx:{mb:0,pb:0,mt:5},children:(0,u.jsx)(nn.Z,{spacing:2,children:(0,u.jsxs)(nn.Z,{spacing:0,children:[(0,u.jsxs)(nn.Z,{direction:"column",children:[(0,u.jsxs)(nn.Z,{direction:"row",spacing:3,children:[(0,u.jsx)(Ca,{alt:"Avatar",src:null===i||void 0===i?void 0:i.avatar}),(0,u.jsx)(rn.Z,{variant:"h3",children:null===i||void 0===i?void 0:i.name})]}),(0,u.jsx)(rn.Z,{variant:"caption",sx:{mt:1},children:(0,u.jsx)(Xn,{href:null===i||void 0===i?void 0:i.url,target:"_blank",underline:"none",children:null===i||void 0===i?void 0:i.url})})]}),(0,u.jsx)(rn.Z,{sx:{fontSize:"0.8rem",pt:3}}),i&&(0,u.jsx)(m$,{items:[],isEditable:!1,content:null===i||void 0===i?void 0:i.description})]})})}),(0,u.jsx)(nn.Z,{spacing:2,width:"30%",height:"100%",sx:{p:0,mt:2},children:(0,u.jsx)(nn.Z,{height:"100%",children:(0,u.jsxs)(NZ,{elevation:2,sx:{borderRadius:"16px",height:"100%"},children:[(0,u.jsx)(EZe,{enums:Kt.lu,values:null!==(e=null===i||void 0===i?void 0:i.targetIndustries)&&void 0!==e?e:[],label:"Target industry"}),(0,u.jsx)(un,{}),(0,u.jsx)(EZe,{enums:Kt.Sj,values:null!==(t=null===i||void 0===i?void 0:i.services)&&void 0!==t?t:[],label:"Services"}),(0,u.jsx)(un,{}),(0,u.jsx)(EZe,{enums:Kt.Tz,values:null!==(n=null===i||void 0===i?void 0:i.targetCompanySizes)&&void 0!==n?n:[],label:"Target company sizes"}),(0,u.jsx)(un,{}),(0,u.jsx)(EZe,{enums:(0,rs.hR)(),values:null!==(r=null===i||void 0===i?void 0:i.targetCountries)&&void 0!==r?r:[],label:"Target countries"}),(0,u.jsx)(un,{})]})})}),(0,u.jsx)(nn.Z,{spacing:2,width:"30%",height:"100%",sx:{p:0,mt:2},children:(0,u.jsx)(nn.Z,{height:"100%",children:(0,u.jsx)(AZe,{data:i})})})]}),(0,u.jsx)(nn.Z,{direction:"row",justifyContent:"space-between",width:"100%",children:(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",sx:{pt:4},spacing:2,width:"100%",children:[(0,u.jsxs)(nn.Z,{width:"30%",children:[(0,u.jsx)(rn.Z,{sx:{fontSize:".875em",fontWeight:600,pb:2},children:"Company clients"}),(0,u.jsx)(NZ,{sx:{borderRadius:"16px",height:"100%"},elevation:2,children:(0,u.jsx)(MZe,{rows:null!==c&&void 0!==c?c:[]})})]}),(0,u.jsx)(nn.Z,{width:"65%",children:(0,u.jsxs)(o1,{value:Kke.All,children:[(0,u.jsx)(rn.Z,{sx:{fontSize:".875em",fontWeight:600,pb:2},children:"Company projects"}),(0,u.jsx)($ke,{value:Kke.All,rows:null!==l&&void 0!==l?l:[],tabIndex:0,navigateRoute:"../../end-to-end/projects/"})]})})]})})]})},FZe=n(16459),BZe=function(e){var t=e.avatar,n=e.onAvatarChange,r=e.avatarWidth,i=void 0===r?100:r,a=e.avatarHeight,s=void 0===a?100:a,l=(0,o.useState)(t||null),c=(0,Le.Z)(l,2),d=c[0],p=c[1];return(0,o.useEffect)((function(){p(t||null)}),[t]),(0,u.jsx)("label",{htmlFor:"avatar-input",children:(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)("input",{id:"avatar-input",type:"file",accept:"image/*",name:"myImage",hidden:!0,onChange:function(){var e=ds(hs().mark((function e(t){var r,o,i;return hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=null===(r=t.target.files)||void 0===r?void 0:r[0]){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,(0,rs.y3)(o);case 5:(i=e.sent)&&(p(String(i)),n(String(i)));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}),null!=d?(0,u.jsx)(Ca,{src:d,sx:{width:i,height:s}}):(0,u.jsx)(nn.Z,{alignItems:"center",justifyContent:"center",sx:{backgroundColor:"#F4EEFA",borderRadius:"50%",width:i,height:s,border:"1px dashed #CDBEFF",cursor:"pointer"},children:(0,u.jsx)(tn,{component:"img",src:FZe})})]})})},LZe=function(e){var t=e.text;return(0,u.jsx)(rn.Z,{variant:"h4",fontSize:"1.5rem",children:t})},NZe=function(e){var t=e.text;return(0,u.jsx)(rn.Z,{variant:"h5",fontSize:"1rem",children:t})},_Ze=function(){var e=Xc(),t=e.setValue,n=e.control,r=(0,ze.UO)().companyId;return(0,u.jsxs)(ewe,{sx:{py:1,boxShadow:"none"},defaultExpanded:!0,children:[(0,u.jsx)(lwe,{expandIcon:(0,u.jsx)(zl.Z,{"justity-content":"flex-end",fontSize:"large"}),"aria-controls":"panel1a-content",id:"panel1a-header",sx:{px:4},children:(0,u.jsxs)(nn.Z,{direction:"column",spacing:1,children:[(0,u.jsx)(nn.Z,{direction:"row",spacing:1,children:(0,u.jsx)(LZe,{text:"General information"})}),(0,u.jsx)(NZe,{text:"General information about company"})]})}),(0,u.jsxs)(fwe,{sx:{p:4,borderTop:"1px solid",borderTopColor:"grey.500"},children:[(0,u.jsxs)(nn.Z,{direction:"row",spacing:6,sx:{p:8},children:[(0,u.jsxs)(nn.Z,{spacing:2,width:"30%",direction:"column",sx:{display:"flex"},alignItems:"center",children:[(0,u.jsx)(BZe,{avatar:cu({control:n,name:"avatar"}),onAvatarChange:function(e){t("avatar",e,{shouldValidate:!0,shouldDirty:!0})}}),(0,u.jsx)(rn.Z,{color:"#757875",fontWeight:600,children:"Upload logo"})]}),(0,u.jsxs)(nn.Z,{width:"70%",spacing:2,direction:"column",children:[(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",children:[(0,u.jsx)(Zd,{name:"name",label:"Company name",InputLabelProps:{shrink:!0}}),(0,u.jsx)(Zd,{name:"url",label:"Company name",InputLabelProps:{shrink:!0}})]}),(0,u.jsxs)(nn.Z,{spacing:2,direction:"column",justifyContent:"space-between",children:[(0,u.jsx)(nn.Z,{width:"100%",children:(0,u.jsx)(Hd,{name:"headquartersLocation.country",label:"Country",autoWidth:!0,choices:(0,rs.hR)()})}),(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(nn.Z,{width:"50%",children:(0,u.jsx)(Zd,{name:"headquartersLocation.city",label:"City",InputLabelProps:{shrink:!0}})}),(0,u.jsx)(nn.Z,{width:"50%",children:(0,u.jsx)(Zd,{name:"headquartersLocation.state",label:"State",InputLabelProps:{shrink:!0}})})]})]})]})]}),(0,u.jsxs)(nn.Z,{spacing:1,children:[(0,u.jsx)(nn.Z,{spacing:2,children:(0,u.jsx)(rn.Z,{color:"#757875",fontWeight:"500",children:"Description"})}),(0,u.jsx)(du,{name:"description",control:n,render:function(e){var t=e.field;return(0,u.jsx)(m$,{items:D$,content:t.value,isEditable:!0,onUpdateContent:function(e){t.onChange(e)}},r)}})]})]})]})},zZe={name:"",roles:["buyer"],url:"",avatar:"",headquartersLocation:{country:"",city:"",state:""},description:void 0,targetIndustries:[],averageProjectSize:"bt_5k_10k",hourlyRate:"bt_25_49",companySize:"bt_2_10",languages:[],targetCompanySizes:[],targetCountries:[],services:[]},HZe=["isArrOfObj","objSuffix","name","displayEntityNames","required","choices","wrapperHeight","displayElementsExternally","endAdornment","endAdornmentOnClick","showEndAdornment"],WZe={PaperProps:{style:{maxHeight:224,width:250}}},VZe=function(e){var t,n,r=e.isArrOfObj,o=e.objSuffix,i=e.name,a=e.displayEntityNames,s=e.required,c=e.choices,d=e.wrapperHeight,p=e.displayElementsExternally,f=e.endAdornment,h=e.endAdornmentOnClick,m=e.showEndAdornment,v=void 0!==m&&m,g=Nn(e,HZe),y=Xc(),b=y.register,x=y.control,w=y.getValues;return(0,u.jsxs)(nn.Z,{sx:{height:d||60},spacing:1.5,children:[(0,u.jsxs)(UQ.Z,{variant:"standard",children:[(0,u.jsx)(Nke.Z,{id:"multiple-select-label",children:g.label}),(0,u.jsx)(Od.Z,(0,l.Z)((0,l.Z)((0,l.Z)({displayEmpty:!0,MenuProps:WZe,fullWidth:!0,multiple:!0,label:g.label,defaultValue:[],value:cu({control:x,name:i}),renderValue:function(e){return p?(null===e||void 0===e?void 0:e.length)>0?(0,u.jsx)(rn.Z,{sx:{color:"grey.500"},children:"Select"}):null:(null===e||void 0===e?void 0:e.length)>0?null===e||void 0===e||null===(t=e.map((function(e){return null===c||void 0===c?void 0:c.get(e)})))||void 0===t?void 0:t.join(", "):null;var t}},b(i,{required:!!s&&"This field is required"})),{},{readOnly:!!v,IconComponent:function(e){return v?null:(0,u.jsx)("i",(0,l.Z)((0,l.Z)({},e),{},{className:"material-icons ".concat(e.className),children:"arrow_drop_down"}))},endAdornment:v?(0,u.jsx)(gy,{sx:{pb:2},position:"end",children:f||(0,u.jsx)(jZ,{onButtonClick:function(){return null===h||void 0===h?void 0:h()},setBorderRadius:!0,fontWeight:"500",variant:"outlined",color:"secondary",minWidth:80,children:"Add"})}):null},g),{},{children:Array.from(c,(function(e){var t=(0,Le.Z)(e,2),n=t[0],r=t[1];return(0,u.jsx)(Nl.Z,{value:n,children:r},n)}))}))]}),p&&(0,u.jsx)(nn.Z,{direction:"row",sx:{flexWrap:"wrap",gap:"10px"},children:(null===(t=cu({control:x,name:i}))||void 0===t?void 0:t.length)<=3?cu({control:x,name:i}).map((function(e,t){return p(r?w("".concat(i,".").concat(t,".").concat(o)):c.get(e),t)})):void 0!==cu({control:x,name:i})&&p("".concat(null===(n=w(i))||void 0===n?void 0:n.length," ").concat(a||"items"," selected"))})]})},UZe=function(e){var t=e.text;return(0,u.jsx)(rn.Z,{variant:"h4",fontSize:"1.5rem",children:t})},qZe=function(e){var t=e.text;return(0,u.jsx)(rn.Z,{variant:"h5",fontSize:"1rem",children:t})},GZe=function(){return(0,u.jsxs)(ewe,{sx:{py:1,boxShadow:"none"},children:[(0,u.jsx)(lwe,{expandIcon:(0,u.jsx)(zl.Z,{"justity-content":"flex-end",fontSize:"large"}),"aria-controls":"panel1a-content",id:"panel1a-header",sx:{px:4},children:(0,u.jsxs)(nn.Z,{direction:"column",spacing:1,children:[(0,u.jsx)(nn.Z,{direction:"row",spacing:1,children:(0,u.jsx)(UZe,{text:"Company details"})}),(0,u.jsx)(qZe,{text:"Details about company. What services seller offer?"})]})}),(0,u.jsx)(fwe,{sx:{p:4,borderTop:"1px solid",borderTopColor:"grey.500"},children:(0,u.jsxs)(nn.Z,{spacing:4,direction:"column",children:[(0,u.jsxs)(nn.Z,{spacing:4,direction:"row",children:[(0,u.jsx)(nn.Z,{width:"50%",children:(0,u.jsx)(VZe,{name:"targetIndustries",label:"Target industries",choices:Kt.lu})}),(0,u.jsx)(nn.Z,{width:"50%",children:(0,u.jsx)(VZe,{name:"targetCountries",label:"Target countries",choices:(0,rs.hR)()})})]}),(0,u.jsxs)(nn.Z,{spacing:4,direction:"row",children:[(0,u.jsx)(nn.Z,{width:"50%",children:(0,u.jsx)(Hd,{name:"companySize",label:"Company size",choices:Kt.Tz})}),(0,u.jsx)(nn.Z,{width:"50%",children:(0,u.jsx)(Hd,{name:"averageProjectSize",label:"Average project size",choices:Kt.Dw})})]}),(0,u.jsxs)(nn.Z,{spacing:4,direction:"row",children:[(0,u.jsx)(nn.Z,{width:"50%",children:(0,u.jsx)(Hd,{name:"hourlyRate",label:"Hourly rate",choices:Kt.vs})}),(0,u.jsx)(nn.Z,{width:"50%",children:(0,u.jsx)(VZe,{name:"languages",label:"Languages",choices:Kt.u9})})]}),(0,u.jsx)(nn.Z,{spacing:4,direction:"row",children:(0,u.jsx)(nn.Z,{width:"50%",children:(0,u.jsx)(VZe,{name:"services",label:"Services",choices:Kt.Sj})})})]})})]})},YZe=function(e){var t=e.text;return(0,u.jsx)(rn.Z,{variant:"h4",fontSize:"1.5rem",children:t})},KZe=function(e){var t=e.text;return(0,u.jsx)(rn.Z,{variant:"h5",fontSize:"1rem",children:t})},JZe=function(){return(0,u.jsxs)(ewe,{sx:{py:1,boxShadow:"none"},children:[(0,u.jsx)(lwe,{expandIcon:(0,u.jsx)(zl.Z,{"justity-content":"flex-end",fontSize:"large"}),"aria-controls":"panel1a-content",id:"panel1a-header",sx:{px:4},children:(0,u.jsxs)(nn.Z,{direction:"column",spacing:1,children:[(0,u.jsx)(nn.Z,{direction:"row",spacing:1,children:(0,u.jsx)(YZe,{text:"Company details"})}),(0,u.jsx)(KZe,{text:"Details about company. What products or services does buyer need?"})]})}),(0,u.jsx)(fwe,{sx:{p:4,borderTop:"1px solid",borderTopColor:"grey.500"},children:(0,u.jsxs)(nn.Z,{spacing:4,direction:"column",children:[(0,u.jsxs)(nn.Z,{spacing:4,direction:"row",children:[(0,u.jsx)(nn.Z,{width:"50%",children:(0,u.jsx)(VZe,{name:"targetIndustries",label:"Target industries",choices:Kt.lu})}),(0,u.jsx)(nn.Z,{width:"50%",children:(0,u.jsx)(VZe,{name:"targetCountries",label:"Target countries",choices:(0,rs.hR)()})})]}),(0,u.jsxs)(nn.Z,{spacing:4,direction:"row",children:[(0,u.jsx)(nn.Z,{width:"50%",children:(0,u.jsx)(Hd,{name:"companySize",label:"Company size",choices:Kt.Tz})}),(0,u.jsx)(nn.Z,{width:"50%",children:(0,u.jsx)(VZe,{name:"languages",label:"Languages",choices:Kt.u9})})]})]})})]})},XZe=function(e){var t=e.text;return(0,u.jsx)(rn.Z,{variant:"h4",fontSize:"1.5rem",children:t})},QZe=function(e){var t=e.text;return(0,u.jsx)(rn.Z,{variant:"h5",fontSize:"1rem",children:t})},$Ze=function(){return(0,u.jsxs)(ewe,{sx:{py:1,boxShadow:"none"},children:[(0,u.jsx)(lwe,{expandIcon:(0,u.jsx)(zl.Z,{"justity-content":"flex-end",fontSize:"large"}),"aria-controls":"panel1a-content",id:"panel1a-header",sx:{px:4},children:(0,u.jsxs)(nn.Z,{direction:"column",spacing:1,children:[(0,u.jsx)(nn.Z,{direction:"row",spacing:1,children:(0,u.jsx)(XZe,{text:"Company details"})}),(0,u.jsx)(QZe,{text:"Details about company. What products seller offer?"})]})}),(0,u.jsx)(fwe,{sx:{p:4,borderTop:"1px solid",borderTopColor:"grey.500"},children:(0,u.jsxs)(nn.Z,{spacing:4,direction:"column",children:[(0,u.jsxs)(nn.Z,{spacing:4,direction:"row",children:[(0,u.jsx)(nn.Z,{width:"50%",children:(0,u.jsx)(VZe,{name:"productType",label:"Product type",choices:T$.N4})}),(0,u.jsx)(nn.Z,{width:"50%",children:(0,u.jsx)(VZe,{name:"languages",label:"Languages",choices:Kt.u9})})]}),(0,u.jsxs)(nn.Z,{spacing:4,direction:"row",children:[(0,u.jsx)(nn.Z,{width:"50%",children:(0,u.jsx)(VZe,{name:"targetCountries",label:"Target countries",choices:(0,rs.hR)()})}),(0,u.jsx)(nn.Z,{width:"50%",children:(0,u.jsx)(VZe,{name:"targetCompanySizes",label:"Target company sizes",choices:Kt.Tz})})]}),(0,u.jsx)(nn.Z,{spacing:4,direction:"row",children:(0,u.jsx)(nn.Z,{width:"50%",children:(0,u.jsx)(Hd,{name:"companySize",label:"Company size",choices:Kt.Tz})})})]})})]})},eOe=["avatar"],tOe=function(){var e=(0,ze.UO)().companyId,t=(0,ze.s0)(),n=fd({mode:"onBlur",defaultValues:zZe}),r=n.handleSubmit,o=n.reset,i=n.formState,a=(n.getValues,Ra({resource:"companies",id:e,onSuccess:function(e){o((0,l.Z)({},null===e||void 0===e?void 0:e[0]),{keepTouched:!0})},enabled:!!e,refetchOnWindowFocus:!1}).data),s=(0,As.Z)({resource:"/companies"}),c=s.mutate,d=s.isLoading,p=null===a||void 0===a?void 0:a.roles[0];return(0,u.jsxs)(nn.Z,{sx:{mx:10},spacing:3,children:[(0,u.jsx)(rn.Z,{variant:"h4",sx:{textAlign:"center",mt:2},children:"Edit company"}),(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},n),{},{children:(0,u.jsx)("form",{onSubmit:r((function(e){var n=e.avatar,r=Nn(e,eOe);i.dirtyFields.hasOwnProperty("avatar")&&(r.avatar=n),c({data:r,id:null===a||void 0===a?void 0:a.id},{onSuccess:function(){t("../".concat(null===a||void 0===a?void 0:a.id))}})})),children:(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(_Ze,{}),p===Kt.ks.SellerService&&(0,u.jsx)(GZe,{}),p===Kt.ks.Buyer&&(0,u.jsx)(JZe,{}),p===Kt.ks.SellerTool&&(0,u.jsx)($Ze,{}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(Pme,{variant:"outlined",setBorderRadius:!0,size:"large",onButtonClick:function(){return t(-1)},color:"secondary",children:"Back"}),(0,u.jsx)(Pme,{variant:"contained",size:"large",color:"secondary",setBorderRadius:!0,onButtonClick:function(){return null},type:"submit",loading:d,children:"Submit"})]})]})})}))]})},nOe=function(e){var t=e.projectData,n=e.milestones,r=null===n||void 0===n?void 0:n.filter((function(e){return e.paymentStatus===Kt.bG.Paid})).map((function(e){return e.budget})),o=null===n||void 0===n?void 0:n.filter((function(e){return e.paymentStatus!==Kt.bG.Paid})).map((function(e){return e.budget})),i=function(e){return null!==e&&void 0!==e&&e.length?null===e||void 0===e?void 0:e.reduce((function(e,t){return e+t})):0};return(0,u.jsx)(NZ,{elevation:0,sx:{pt:3,px:3,pb:3,borderRadius:"8px",width:"100%"},className:"react-joyride-step-2-individual-payment",children:(0,u.jsxs)(nn.Z,{direction:"column",justifyContent:"space-around",spacing:2,width:"100%",sx:{p:1},children:[(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{variant:"body1",sx:{color:"#757875"},fontWeight:"600",fontSize:"1rem",children:"Project Status"}),(0,u.jsx)(rn.Z,{variant:"body1",fontWeight:500,children:(0,u.jsx)(sve,{text:null===t||void 0===t?void 0:t.status,fontSize:"0.875rem !important"})})]}),(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{variant:"body1",sx:{color:"#757875"},fontWeight:"600",fontSize:"1rem",children:"Project cost"}),(0,u.jsx)(rn.Z,{variant:"body1",fontWeight:500,children:(0,rs.xG)(null===t||void 0===t?void 0:t.budget,null===t||void 0===t?void 0:t.currency)})]}),(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{variant:"body1",sx:{color:"#757875"},fontWeight:"600",fontSize:"1rem",children:"Currently paid"}),(0,u.jsx)(rn.Z,{variant:"body1",fontWeight:500,children:0!==i(r)?(0,rs.xG)(i(r),null===t||void 0===t?void 0:t.currency):(0,rs.xG)(0,Kt.CF.Usd)})]}),(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{variant:"body1",sx:{color:"#757875"},fontWeight:"600",fontSize:"1rem",children:"Remaining payments"}),(0,u.jsx)(rn.Z,{variant:"body1",fontWeight:500,children:0!==i(o)?(0,rs.xG)(i(o),null===t||void 0===t?void 0:t.currency):(0,rs.xG)(0,Kt.CF.Usd)})]})]})})},rOe=function(e){var t=e.data,n=(0,o.useState)(!1),r=(0,Le.Z)(n,2),i=r[0],a=r[1],s=(0,o.useState)(null),l=(0,Le.Z)(s,2),c=l[0],d=l[1],p=(0,o.useState)(""),f=(0,Le.Z)(p,2),h=f[0],m=f[1],v=oa({resource:"/milestones/".concat(null===t||void 0===t?void 0:t.id,"/seller-invoice")}).mutate,g=Yd(),y=(0,Ms.J)();return(0,u.jsxs)(u.Fragment,{children:["buyer"===(null===g||void 0===g?void 0:g[0])||t.sellerInvoice?(0,u.jsx)("a",{href:(null===g||void 0===g?void 0:g[0])===Kt.ks.Buyer?t.buyerInvoice:t.sellerInvoice,target:"_blank",rel:"noreferrer",children:(0,u.jsx)(io.Z,{sx:{background:"#7F57FF",color:"#fff",fontSize:"0.8rem"},disabled:"buyer"===(null===g||void 0===g?void 0:g[0])&&!t.buyerInvoice,color:"secondary",children:(0,u.jsx)(WSe.Z,{href:t.sellerInvoice})})}):(0,u.jsx)(io.Z,{sx:{background:"#7F57FF",color:"#fff",fontSize:"0.8rem"},disabled:t.status!==Kt.tg.Approved,color:"secondary",onClick:function(){return a(!0)},children:(0,u.jsx)(qSe.Z,{})}),(0,u.jsx)(vs.Z,{open:i,onClose:function(){return a(!1)},children:(0,u.jsx)(nn.Z,{sx:{width:"50%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:(0,u.jsx)(Eh,{dateAdapter:vg,children:(0,u.jsx)(ao.Z,{sx:{padding:"2em"},children:(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(rn.Z,{sx:{fontSize:"1.25em",fontWeight:500},children:"Upload invoice"}),(0,u.jsx)(rn.Z,{sx:{mb:2},children:"Please upload your invoice here. Don't forget that the invoice should be billed to TDA. Here\u2019s the information that you will need:"})]}),(0,u.jsxs)(nn.Z,{sx:{mt:2},spacing:1,children:[(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{fontSize:"14px",sx:{fontWeight:500},children:"Company name:"}),(0,u.jsx)(rn.Z,{fontSize:"14px",children:"Top Digital Agency Limited"})]}),(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{fontSize:"14px",sx:{fontWeight:500},children:"Company VAT:"}),(0,u.jsx)(rn.Z,{fontSize:"14px",children:"IE3613706OH"})]}),(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",sx:{pb:5},children:[(0,u.jsx)(rn.Z,{fontSize:"14px",sx:{fontWeight:500},children:"Company address:"}),(0,u.jsx)(rn.Z,{width:"50%",textAlign:"right",fontSize:"14px",children:"9 Main Street, Co. Dublin, Blackrock, Dublin, A94 N6D0, Ireland"})]}),(0,u.jsx)(XSe,{setFile:d,setFileName:m}),h&&(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{p:3,mt:1,textAlign:"center",color:"#5C5F5C",border:"1px solid #A9ACA8",borderRadius:1},children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",justifyContent:"left",width:"50%",gap:1,children:[(0,u.jsx)(da.Z,{sx:{p:1,background:"#E1E3DF",borderRadius:1},children:(0,u.jsx)(YSe.Z,{sx:{fontSize:"1rem"}})}),(0,u.jsx)(rn.Z,{variant:"caption",children:h})]}),(0,u.jsx)(io.Z,{onClick:function(){d(null),m("")},children:(0,u.jsx)(KSe.Z,{})})]})]}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",sx:{justifyContent:"right"},children:[(0,u.jsx)(jZ,{variant:"text",onButtonClick:function(){return a(!1)},sx:{borderRadius:"100px",fontWeight:500},children:"Cancel"}),(0,u.jsx)(jZ,{variant:"contained",color:"secondary",onButtonClick:function(){v({invoice:c},{onSuccess:function(){a(!1),d(null),m(""),y()}})},disabled:!h,sx:{borderRadius:"100px",fontWeight:500},children:"Confirm"})]})]})})})})})]})},oOe=function(e){var t=e.milestones,n=[{field:"paymentStatus",headerName:"Status",flex:.4,renderCell:function(e){return(0,u.jsx)(sve,{text:e.value})}},{field:"name",headerName:"Milestone Name",flex:.8,renderCell:function(e){return(0,u.jsx)(rn.Z,{sx:{fontSize:"0.875rem"},children:e.value})}},{field:"budget",headerName:"Amount",flex:.3,renderCell:function(e){return(0,u.jsx)(rn.Z,{sx:{fontSize:"0.875rem"},children:e.value?(0,rs.xG)(e.value,e.row.currency):"-"})}},{field:"invoiceAction",headerName:"Invoice",headerClassName:"react-joyride-step-4-individual-payment",flex:.1,renderCell:function(e){return(0,u.jsx)(rOe,{data:e.row})}}];return(0,u.jsxs)(nn.Z,{spacing:2,className:"react-joyride-step-3-individual-payment",children:[(0,u.jsx)(rn.Z,{variant:"h5",fontSize:"1.2rem",fontWeight:500,children:"Project payments"}),(0,u.jsx)(tn,{sx:{overflow:"hidden",bgcolor:"white",p:0,borderRadius:"16px",border:"1px solid #C5C7C3"},children:(0,u.jsx)(l0._$r,{columns:n,rows:t,disableSelectionOnClick:!0,hideFooter:!0,sx:{minHeight:"400px"}})})]})},iOe=function(){var e,t=(0,ze.UO)().paymentId,n=Pa(),r=Ra({resource:"projects",id:t,enabled:!!t}).data,o=k3(null===r||void 0===r?void 0:r.id),i=hi({resource:"/milestones?company=".concat(null===n||void 0===n||null===(e=n.membership)||void 0===e?void 0:e.company,"&project=").concat(t),enabled:!!n}).data,a=null===i||void 0===i?void 0:i.data.results;return(0,u.jsxs)(nn.Z,{spacing:5,sx:{mt:4},children:[(0,u.jsxs)(nn.Z,{spacing:8,direction:"row",justifyContent:"space-between",children:[(0,u.jsxs)(nn.Z,{width:"40%",className:"react-joyride-step-1-individual-payment",children:[(0,u.jsx)(rn.Z,{variant:"h2",sx:{mb:2},children:null===r||void 0===r?void 0:r.name}),(0,u.jsx)(rn.Z,{variant:"subtitle1",fontSize:"1rem",fontWeight:"500",color:"#757875",children:"Collaboration with:"}),(0,u.jsx)(rn.Z,{variant:"body1",fontSize:"1rem",fontWeight:"500",children:null===o||void 0===o?void 0:o.name})]}),(0,u.jsx)(nn.Z,{width:"45%",children:(0,u.jsx)(nOe,{projectData:r,milestones:a})})]}),(0,u.jsx)(nn.Z,{children:(0,u.jsx)(oOe,{milestones:a})})]})},aOe=n(69646),sOe=function(e){var t=e.data,n=e.isOpen,r=e.setIsOpen,i=(0,o.useState)(null),a=(0,Le.Z)(i,2),s=a[0],l=a[1],c=(0,o.useState)(""),d=(0,Le.Z)(c,2),p=d[0],f=d[1],h=oa({resource:"/contracts/".concat(null===t||void 0===t?void 0:t.id,"/document")}).mutate,m=(0,Ms.J)();return(0,u.jsx)(vs.Z,{open:n,onClose:function(){return r(!1)},children:(0,u.jsx)(nn.Z,{sx:{width:"40%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:(0,u.jsx)(ao.Z,{sx:{padding:"2em"},children:(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(nn.Z,{children:(0,u.jsx)(rn.Z,{sx:{fontSize:"1.25em",fontWeight:600,mt:3},children:"Attach the contract"})}),(0,u.jsxs)(nn.Z,{sx:{mt:2},spacing:1,children:[(0,u.jsx)(XSe,{uploadSubject:"contract",setFile:l,setFileName:f}),p&&(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{p:3,mt:1,textAlign:"center",color:"#5C5F5C",border:"1px solid #A9ACA8",borderRadius:1},children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",justifyContent:"left",width:"50%",gap:1,children:[(0,u.jsx)(da.Z,{sx:{p:1,background:"#E1E3DF",borderRadius:1},children:(0,u.jsx)(YSe.Z,{sx:{fontSize:"1rem"}})}),(0,u.jsx)(rn.Z,{variant:"caption",children:p})]}),(0,u.jsx)(io.Z,{onClick:function(){l(null),f("")},children:(0,u.jsx)(KSe.Z,{})})]})]}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",sx:{justifyContent:"right"},children:[(0,u.jsx)(jZ,{variant:"text",onButtonClick:function(){return r(!1)},sx:{borderRadius:"100px",fontWeight:500},children:"Cancel"}),(0,u.jsx)(jZ,{variant:"contained",color:"secondary",onButtonClick:function(){h({document:s},{onSuccess:function(){r(!1),l(null),f(""),m()}})},disabled:!p,sx:{borderRadius:"100px",fontWeight:500},children:"Confirm"})]})]})})})})},lOe=function(e){var t=e.rows,n=(0,o.useState)(!1),r=(0,Le.Z)(n,2),i=r[0],a=r[1],s=[{field:"status",headerName:"Status",flex:.1,renderCell:function(e){return(0,u.jsx)(sve,{text:e.value})}},{field:"name",headerName:"Name",flex:.4},{field:"created",headerName:"Created",flex:.2,renderCell:function(e){return(0,u.jsx)(rn.Z,{sx:{paddingLeft:e.value?0:"38px"},children:(0,rs.qJ)(e.value,"-")})}},{field:"signed",headerName:"Last Signed",flex:.2,renderCell:function(e){return(0,u.jsx)(rn.Z,{sx:{paddingLeft:e.value?0:"38px"},children:(0,rs.qJ)(e.value,"-")})}},{field:"actions",headerName:"",flex:.01,align:"center",renderCell:function(e){return e.row.document?(0,u.jsx)("a",{href:e.row.document,target:"_blank",rel:"noreferrer",children:(0,u.jsx)(io.Z,{children:(0,u.jsx)(WSe.Z,{})})}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(io.Z,{disabled:e.row.status===Kt.Ru.Draft||e.row.status===Kt.Ru.Canceled||e.row.status===Kt.Ru.Negotiation,onClick:function(){return a(!0)},children:(0,u.jsx)(aOe.Z,{})}),(0,u.jsx)(sOe,{data:e.row,isOpen:i,setIsOpen:a})]})}}];return(0,u.jsx)(da.Z,{sx:{overflow:"hidden",bgcolor:"white",p:0,borderRadius:"16px",border:"1px solid #C5C7C3"},children:(0,u.jsx)(l0._$r,{hideFooter:!0,rows:t,columns:s,autoHeight:!0,disableSelectionOnClick:!0,sx:{minHeight:"400px",backgroundColor:"#fff",".MuiDataGrid-columnHeaderTitle":{fontFamily:"Poppins, sans-serif"},".MuiDataGrid-columnSeparator":{display:"none !important"},"&.MuiDataGrid-root .MuiDataGrid-cell:focus-within":{outline:"none !important"},".MuiDataGrid-columnHeaders":{backgroundColor:"#FBFDF8"},"& .MuiDataGrid-columnHeaderTitle":{fontWeight:"600"}}})})},cOe=function(e){var t=e.data,n=e.isOpen,r=e.setIsOpen,o=e.title,i=e.paragraph,a=(0,Ms.J)(),s=(0,Yt.useMutation)({mutationFn:function(){return pi.Z.post("/contracts/".concat(t.id,"/cancel"))},onSuccess:function(){a(),r(!1)}}).mutate;return(0,u.jsx)(vs.Z,{open:n,onClose:function(){return r(!1)},children:(0,u.jsx)(nn.Z,{sx:{width:"40%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:(0,u.jsx)(Eh,{dateAdapter:vg,children:(0,u.jsx)(ao.Z,{sx:{padding:"2em"},children:(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(rn.Z,{sx:{fontSize:"1.25em",fontWeight:600,mt:2,mb:1},children:o}),(0,u.jsx)(rn.Z,{sx:{fontSize:"1em",fontWeight:500,mt:2},children:i}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(jZ,{variant:"text",onButtonClick:function(){return r(!1)},sx:{borderRadius:"100px",fontWeight:500},children:"Cancel"}),(0,u.jsx)(jZ,{variant:"contained",onButtonClick:function(){s()},sx:{borderRadius:"100px",fontWeight:500},children:"Confirm"})]})]})})})})})},uOe=function(e){var t=e.data,n=(0,o.useState)(!1),r=(0,Le.Z)(n,2),i=r[0],a=r[1];return(0,u.jsxs)(NZ,{sx:{p:3,borderRadius:"8px",width:"50%",justifyContent:"center"},children:[(0,u.jsxs)(nn.Z,{direction:"column",alignItems:"center",children:[(0,u.jsxs)(nn.Z,{direction:"row",width:"100%",sx:{justifyContent:"space-between",marginY:"12px"},children:[(0,u.jsx)(rn.Z,{sx:{fontWeight:500,color:"#757875"},children:"Status"}),(0,u.jsx)(sve,{text:null===t||void 0===t?void 0:t.status})]}),(0,u.jsxs)(nn.Z,{direction:"row",width:"100%",sx:{justifyContent:"space-between",marginY:"12px"},children:[(0,u.jsx)(rn.Z,{sx:{fontWeight:500,color:"#757875"},children:"Created"}),(0,u.jsx)(rn.Z,{children:(0,rs.qJ)(null===t||void 0===t?void 0:t.created,"-")})]}),(0,u.jsxs)(nn.Z,{direction:"row",width:"100%",sx:{justifyContent:"space-between",marginY:"12px"},children:[(0,u.jsx)(rn.Z,{sx:{fontWeight:500,color:"#757875"},children:"Signed"}),(0,u.jsx)(rn.Z,{children:(0,rs.qJ)(null===t||void 0===t?void 0:t.signed,"-")})]}),null!==t&&void 0!==t&&t.document?(0,u.jsx)("a",{href:null===t||void 0===t?void 0:t.document,target:"_blank",rel:"noreferrer",style:{width:"80%",textDecoration:"none"},children:(0,u.jsx)(jZ,{variant:"contained",startIcon:(0,u.jsx)(WSe.Z,{}),onButtonClick:function(){return null},color:"secondary",sx:{borderRadius:"100px",fontWeight:500,width:"100%",mt:3},children:"Download PDF"})}):(0,u.jsx)(jZ,{variant:"contained",startIcon:(0,u.jsx)(aOe.Z,{}),onButtonClick:function(){return a(!0)},disabled:(null===t||void 0===t?void 0:t.status)===Kt.Ru.Draft||(null===t||void 0===t?void 0:t.status)===Kt.Ru.Canceled||(null===t||void 0===t?void 0:t.status)===Kt.Ru.Negotiation,color:"secondary",sx:{borderRadius:"100px",fontWeight:500,width:"80%",mt:3},children:"Upload PDF"})]}),(0,u.jsx)(sOe,{data:t,isOpen:i,setIsOpen:a})]})},dOe=function(){var e,t,n=(0,ze.UO)().projectId,r=Pa(),i=(0,o.useState)(!1),a=(0,Le.Z)(i,2),s=a[0],l=a[1],c=hi({resource:"/contracts?project=".concat(n),enabled:!!r}).data,d=Ra({resource:"projects",id:n,enabled:!!r}).data,p=null===d||void 0===d?void 0:d.cancellationRequests,f=null!==p&&void 0!==p&&p.length?null===p||void 0===p?void 0:p[0].requester.id:"",h=Ra({resource:"companies",id:f,enabled:!1}).data,m=null===c||void 0===c?void 0:c.data.results,v=null===m||void 0===m?void 0:m.filter((function(e){return"Contract"!==e.name})),g=null===m||void 0===m||null===(e=m.filter((function(e){return"Contract"===e.name})))||void 0===e?void 0:e[0];return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(nn.Z,{spacing:3,sx:{mt:4},children:[(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",children:[(0,u.jsxs)(nn.Z,{width:"50%",children:[(0,u.jsx)(rn.Z,{variant:"h2",sx:{mb:2},children:null===d||void 0===d?void 0:d.name}),(0,u.jsx)(rn.Z,{variant:"caption",children:"Buyer:"}),(0,u.jsx)(Cme,{resource:"companies",id:null===d||void 0===d?void 0:d.buyer,displayName:"name",variant:"body1"}),(0,u.jsx)(rn.Z,{variant:"caption",children:"Seller:"}),(0,u.jsx)(Cme,{variant:"body1",resource:"companies",id:null===d||void 0===d?void 0:d.seller,displayName:"name"}),(0,u.jsx)(nn.Z,{direction:"row",spacing:4,sx:{mt:4},justifyContent:"spaceBetween",children:(0,u.jsx)(jZ,{variant:"outlined",disabled:0===(null===d||void 0===d?void 0:d.cancellationRequests.length)||(null===d||void 0===d?void 0:d.status)===Kt.FP.Canceled,startIcon:(0,u.jsx)(Mme.Z,{}),onButtonClick:function(){return l(!0)},sx:{borderRadius:"100px",fontWeight:500},children:"Cancel requested"})})]}),(0,u.jsx)(uOe,{data:g})]}),(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(rn.Z,{variant:"h4",children:"Annexes"}),(0,u.jsx)(lOe,{rows:null!==v&&void 0!==v?v:[]})]})]}),(0,u.jsx)(cOe,{data:g,setIsOpen:l,isOpen:s,title:"Cancel the contract",paragraph:"".concat(null!==(t=null===h||void 0===h?void 0:h.name)&&void 0!==t?t:""," has requested to cancel the contract. Are you sure you want to cancel the contract?")})]})},pOe=(0,pa.Z)((0,u.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"Launch"),fOe={body:{projectDurationFrom:"",projectDurationTo:"",buyer:{companyName:"",registeredAddress:"",companyNumber:"",companyRepresentative:{name:"",jobTitle:"",email:""}},seller:{companyName:"",registeredAddress:"",companyNumber:"",companyRepresentative:{name:"",jobTitle:"",email:""}},scope:{services:[],industry:"",currency:Kt.CF.Usd,projectType:"one_time",description:""},milestones:[{name:"",start:"",end:"",budget:0,summary:"",duration:null,recurring:!1}],jurisdiction:""},start:"",end:"",initialAmount:0,sellerApproved:!1,buyerApproved:!1},hOe={"&.MuiStepConnector-vertical":{borderColor:"primaryDark.500",borderLeftStyle:"dashed",borderLeftWidth:"1px",minHeight:"25px",marginTop:"4px",marginBottom:"4px"},"&.MuiStepConnector-root":{marginLeft:"6px"},".MuiStepConnector-line":{display:"none !important"},"&.Mui-completed":{borderColor:"secondaryGreen.700",borderLeftStyle:"solid"}};function mOe(e){var t=e.stepperValue,n=e.onClickStep;return(0,u.jsx)(tn,{sx:{alignItems:"start"},children:(0,u.jsx)(_M,{orientation:"vertical",connector:(0,u.jsx)(RM,{sx:hOe}),activeStep:1,children:null===t||void 0===t?void 0:t.map((function(e,t){return(0,u.jsx)(UM,{onClick:function(){return n(t)},completed:e.completed,children:(0,u.jsx)(uT,{sx:{margin:0,padding:0,display:"flex",flexDirection:"row"},icon:(0,u.jsx)(tn,{sx:{borderRadius:"50%",fontSize:"1.2rem",fontWeight:800,borderColor:e.active?"secondaryBlue.100":e.completed?"secondaryGreen.200":"primaryDark.300",backgroundColor:e.active?"secondaryBlue.700":e.completed?"secondaryGreen.500":"primaryDark.500",borderStyle:"solid",borderWidth:"2px",width:"12px",height:"12px",zIndex:1}}),children:(0,u.jsx)(rn.Z,{sx:{color:e.active?"primaryLight.500":e.completed?"secondaryGreen.700":"primaryDark.500",fontSize:"16px",cursor:"pointer","&:hover":{color:"primaryLight.500"}},children:"".concat(t+1<=9?"0":"").concat(t+1," ").concat(e.label)})})},e.label)}))})})}var vOe,gOe=function(e){var t=e.isLoading,n=e.isOpen,r=e.setIsOpen,o=e.handleSubmitCreate;return(0,u.jsx)(ys,{open:n,onClose:function(){r(!1)},children:(0,u.jsxs)(nn.Z,{direction:"column",children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",mb:3,children:[(0,u.jsx)(nn.Z,{width:40,height:40,mr:2,bgcolor:"secondaryBlue.100",borderRadius:1,justifyContent:"center",alignItems:"center",children:(0,u.jsx)(I3,{width:"20px",fill:tr.dx[700]})}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.600",children:"Contract under review"})]}),(0,u.jsx)(nn.Z,{py:2,sx:{borderTop:"1px solid ".concat(tr.dx[100]),borderBottom:"1px solid ".concat(tr.dx[100]),alignItems:"center"},children:(0,u.jsx)(rn.Z,{color:"primaryDark.500",variant:"body2",children:"The other party will now be invited to review the contract and add any necessary information."})}),(0,u.jsxs)(nn.Z,{mt:3,gap:2,direction:"row",justifyContent:"flex-end",children:[(0,u.jsx)(Wo,{onClick:function(){return r(!1)},variant:"secondary",children:"Cancel"}),(0,u.jsx)(Wo,{onClick:o,loading:t,variant:"primary",children:"Continue"})]})]})})},yOe=n(60654),bOe=[{title:"Contract agreed",text:"Both parties have now agreed to the terms of the contract. To complete the signing process you must continue through DocuSign."},{title:"DocuSign",text:"Shortly you\u2019ll receive an email notification from DocuSign. Please follow the instructions to complete the signing process. Once both parties have signed, we\u2019ll notify you that your project has been activated."}],xOe=function(e){var t=e.isLoading,n=e.isOpen,r=e.setIsOpen,i=e.handleSubmitCreate,a=(0,o.useState)(0),s=(0,Le.Z)(a,2),l=s[0],c=s[1],d=((0,ze.s0)(),(0,ze.UO)().projectId,function(){r(!1)});return(0,u.jsx)(ys,{open:n,onClose:d,children:(0,u.jsxs)(nn.Z,{direction:"column",children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",mb:3,children:[(0,u.jsx)(nn.Z,{width:40,height:40,mr:2,bgcolor:"secondaryBlue.100",borderRadius:1,justifyContent:"center",alignItems:"center",children:(0,u.jsx)(Kw,{width:"20px",fill:tr.dx[700]})}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.600",children:bOe[l].title})]}),(0,u.jsx)(nn.Z,{py:2,sx:{borderTop:"1px solid ".concat(tr.dx[100]),borderBottom:"1px solid ".concat(tr.dx[100])},children:(0,u.jsx)(rn.Z,{color:"primaryDark.500",variant:"body2",children:bOe[l].text})}),(0,u.jsx)(nn.Z,{gap:.625,direction:"row",justifyContent:"center",my:3,children:bOe.map((function(e,t){return(0,u.jsx)(yOe.Z,{fontSize:"small",sx:{color:t===l?"secondaryBlue.500":"#C5C7C3"}})}))}),(0,u.jsxs)(nn.Z,{direction:"row",gap:3,justifyContent:"flex-end",children:[(0,u.jsx)(Wo,{onClick:l>0?function(){return c(l-1)}:d,variant:"secondary",children:l>0?"Back":"Cancel"}),(0,u.jsx)(Wo,{onClick:l<bOe.length-1?function(){return c(l+1)}:i,variant:"primary",loading:t,children:l<bOe.length-1?"Next":"Continue"})]})]})})},wOe=["title","titleId"];function COe(){return COe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},COe.apply(this,arguments)}function jOe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function SOe(e,t){var n=e.title,r=e.titleId,i=jOe(e,wOe);return o.createElement("svg",COe({width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,vOe||(vOe=o.createElement("path",{d:"M9.01107 0.666016C4.40857 0.666016 0.677734 4.39685 0.677734 8.99935C0.677734 13.6018 4.40857 17.3327 9.01107 17.3327C13.6136 17.3327 17.3444 13.6018 17.3444 8.99935C17.3444 4.39685 13.6136 0.666016 9.01107 0.666016ZM9.01107 4.83268C9.47107 4.83268 9.8444 5.20602 9.8444 5.66602V9.83268C9.8444 10.2927 9.47107 10.666 9.01107 10.666C8.55107 10.666 8.17773 10.2927 8.17773 9.83268V5.66602C8.17773 5.20602 8.55107 4.83268 9.01107 4.83268ZM9.01107 11.4993C9.47107 11.4993 9.8444 11.8727 9.8444 12.3327C9.8444 12.7927 9.47107 13.166 9.01107 13.166C8.55107 13.166 8.17773 12.7927 8.17773 12.3327C8.17773 11.8727 8.55107 11.4993 9.01107 11.4993Z",fill:"current"})))}var kOe=o.forwardRef(SOe),ZOe=(n.p,function(e){var t=e.isLoading,n=e.isOpen,r=e.setIsOpen,o=e.handleSubmitCreate,i=e.isAnnex;return(0,u.jsx)(ys,{open:n,onClose:function(){r(!1)},children:(0,u.jsxs)(nn.Z,{direction:"column",children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",mb:3,children:[i?(0,u.jsx)(nn.Z,{width:40,height:40,mr:2,bgcolor:"secondaryBlue.100",borderRadius:1,justifyContent:"center",alignItems:"center",children:(0,u.jsx)(Kw,{width:"20px",fill:tr.dx[700]})}):(0,u.jsx)(nn.Z,{width:40,height:40,mr:2,bgcolor:"secondaryYellow.100",borderRadius:1,justifyContent:"center",alignItems:"center",children:(0,u.jsx)(kOe,{width:"20px",fill:tr.oq[700]})}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.600",children:i?"Ammend contract":"Change requested"})]}),(0,u.jsx)(nn.Z,{py:2,sx:{borderTop:"1px solid ".concat(tr.dx[100]),borderBottom:"1px solid ".concat(tr.dx[100])},children:(0,u.jsx)(rn.Z,{color:"primaryDark.500",variant:"body2",children:i?"Any edits to the contract must be made through an annex. Changes must be formally approved by both parties.":"The contract will be updated when the other party confirms the changes."})}),(0,u.jsx)(nn.Z,{mt:3,direction:"row",gap:3,justifyContent:"flex-end",children:(0,u.jsx)(Wo,{onClick:o,loading:t,variant:"primary",children:"Continue"})})]})})}),OOe=function(){return(0,u.jsx)(ns,{title:"The unique number assigned by a Company register used to identify a business entity. For EU companies please use VAT number.",children:(0,u.jsx)(G0,{fill:tr.IV[500],style:{marginLeft:"14px"}})})},EOe=function(e){var t=e.isAnnex;e.userType;return(0,u.jsxs)(kn,{container:!0,direction:"row",justifyContent:"center",alignItems:"center",spacing:3,children:[(0,u.jsx)(kn,{sx:{borderRight:"1px solid ".concat(tr.dx[100]),pr:2.5,pb:4},item:!0,xs:6,children:(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(rn.Z,{color:"primaryDark.600",variant:"heading4",sx:{pb:2},children:"Buyer"}),(0,u.jsx)(nn.Z,{sx:{marginTop:"0 !important"},children:(0,u.jsxs)(nn.Z,{spacing:4,children:[(0,u.jsxs)(nn.Z,{spacing:4,children:[(0,u.jsx)(Zd,{name:"body.buyer.companyName",disabled:t,placeholder:"Enter company name",label:"Company name",required:!0}),(0,u.jsx)(Zd,{name:"body.buyer.registeredAddress",disabled:t,label:"Registered address",placeholder:"Enter company address",required:!0}),(0,u.jsx)(Zd,{name:"body.buyer.companyNumber",disabled:t,label:"Company identification number",placeholder:"Enter company identification number",required:!0,labelAdornment:(0,u.jsx)(OOe,{})})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,children:[(0,u.jsx)(nn.Z,{spacing:.5,children:(0,u.jsx)(rn.Z,{color:"primaryDark.600",variant:"heading4",sx:{pb:2},children:"company representative"})}),(0,u.jsxs)(nn.Z,{spacing:4,sx:{marginTop:"0 !important"},children:[(0,u.jsx)(Zd,{name:"body.buyer.companyRepresentative.name",disabled:t,label:"Full name",placeholder:"Enter representative name",required:!0}),(0,u.jsx)(Zd,{name:"body.buyer.companyRepresentative.jobTitle",disabled:t,label:"Job title",placeholder:"Enter job title",required:!0}),(0,u.jsx)(Zd,{name:"body.buyer.companyRepresentative.email",disabled:t,label:"Company email",placeholder:"Enter company email",required:!0})]})]})]})})]})}),(0,u.jsx)(kn,{item:!0,xs:6,sx:{pl:1.25,pb:4},children:(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(rn.Z,{color:"primaryDark.600",variant:"heading4",sx:{pb:2},children:"Seller"}),(0,u.jsx)(nn.Z,{sx:{marginTop:"0 !important"},children:(0,u.jsxs)(nn.Z,{spacing:4,children:[(0,u.jsxs)(nn.Z,{spacing:4,children:[(0,u.jsx)(Zd,{name:"body.seller.companyName",disabled:t,label:"Company name",placeholder:"Enter company name",required:!0}),(0,u.jsx)(Zd,{name:"body.seller.registeredAddress",disabled:t,label:"Enter company address",placeholder:"Enter company address",required:!0}),(0,u.jsx)(Zd,{name:"body.seller.companyNumber",disabled:t,label:"Company identification number",placeholder:"Enter company identification number",required:!0,labelAdornment:(0,u.jsx)(OOe,{})})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,children:[(0,u.jsx)(nn.Z,{spacing:.5,children:(0,u.jsx)(rn.Z,{color:"primaryDark.600",variant:"heading4",sx:{pb:2},children:"company representative"})}),(0,u.jsxs)(nn.Z,{spacing:4,sx:{marginTop:"0 !important"},children:[(0,u.jsx)(Zd,{name:"body.seller.companyRepresentative.name",disabled:t,label:"Full name",placeholder:"Enter representative name",required:!0}),(0,u.jsx)(Zd,{name:"body.seller.companyRepresentative.jobTitle",disabled:t,label:"Job title",placeholder:"Enter job title",required:!0}),(0,u.jsx)(Zd,{name:"body.seller.companyRepresentative.email",disabled:t,label:"Company email",placeholder:"Enter company email",required:!0})]})]})]})})]})})]})},DOe=["name","required","initialValue","min","max","onBlur","onChange"],POe=function(e){var t=e.name,n=e.required,r=e.initialValue,i=e.min,a=e.max,s=e.onBlur,c=e.onChange,d=Nn(e,DOe),p=Xc(),f=p.control,h=p.setValue,m=p.getValues,v=p.formState,g=p.setError,y=p.trigger,b=(0,o.useState)(),x=(0,Le.Z)(b,2),w=x[0],C=x[1];(0,o.useEffect)((function(){if(r){var e=(0,rs.dN)(null===r||void 0===r?void 0:r.toString());w&&e&&w.onChange(e)}}),[r]);var j="".concat(t,"-input");return(0,u.jsx)(du,{name:j,control:f,rules:{required:!!n&&"This field is required",validate:function(e){var t=parseFloat(e.replaceAll(",",""));return void 0!==i&&t<=i?"Value should be greater than ".concat(i):!(void 0!==a&&t>=a)||"Value should be smaller than ".concat(a)}},render:function(e){var r=e.field;return w||C(r),(0,u.jsx)(Sd,(0,l.Z)((0,l.Z)((0,l.Z)({},r),d),{},{showErrorAlways:!0,field:(0,l.Z)((0,l.Z)({},r),{},{name:j,onBlur:function(){return s?s(m(t)):null},onChange:function(e){var n=(0,rs.dN)(e.target.value,!0);if(null!=n){var o=parseFloat(e.target.value.replaceAll(",",""));h(t,o),c&&c(o),r.onChange(n)}v.errors[j]&&(g(t,v.errors[j]),y([t,j]))}}),name:j,required:n,sx:(0,l.Z)({},d.sx)}))}})},AOe=["name","choices","required","placeholder","label","disabled","withChips","transformLabelFn","multiple"],MOe=function(e){var t,n,r,i,a=e.name,s=e.choices,c=e.required,d=void 0!==c&&c,p=e.placeholder,f=e.label,h=e.disabled,m=void 0!==h&&h,v=e.withChips,g=e.transformLabelFn,y=e.multiple,b=Nn(e,AOe),x=Xc(),w=x.control,C=x.getFieldState,j=x.formState,S=x.setValue,k=x.trigger,Z=(x.watch,C(a)),O=Dd().get(j.errors,a)&&Z.isTouched,E=cu({control:w,name:a}),D={".MuiAutocomplete-popper":{mt:"2px !important"},".MuiAutocomplete-root":{border:m?"none":"1px solid ".concat(O?tr.Us[100]:tr.dx[100]),color:m?"primaryDark.300":"primaryDark.600",backgroundColor:O?"secondaryPink.100":"transparent",fontSize:"14px",borderRadius:"4px !important","&.Mui-focused":{borderColor:"secondaryYellow.500",boxShadow:"6px 6px 15px rgba(56, 69, 114, 0.1)"}},".MuiInputBase-input":{cursor:"pointer !important",fontSize:"14px !important",padding:"0.844rem 0.75rem !important","&::placeholder":{color:"primaryDark.400 !important"}},".MuiInputBase-root":{"&::before":{content:'""',display:"none"},"&::after":{content:'""',display:"none"}},".MuiAutocomplete-endAdornment":{mr:"8px"},".MuiAutocomplete-paper":{boxShadow:"1px 10px 30px rgba(56, 69, 114, 0.1)",fontSize:"16px",color:"primaryDark.500",fontFamily:"Gellix-SemiBold",padding:"8px 16px","&:hover":{color:"primaryDark.600 !important"},svg:{display:"none"},"&.MuiPaper-root":{p:"0px 0px !important"}},'.MuiAutocomplete-option[aria-selected="true"]':{".MuiTypography-root":{backgroundColor:"transparent !important",color:"primaryDark.600"},"&:hover":{backgroundColor:"primaryDark.200 !important"},svg:{display:"block"},"&::placeholder":{color:"red !important"}},".MuiAutocomplete-noOptions":{fontSize:"14px",color:"primaryDark.400"},".Mui-disabled":{backgroundColor:"primaryDark.200",color:"primaryDark.300",border:"none !important"}};return(0,u.jsxs)(nn.Z,{sx:(0,l.Z)((0,l.Z)((0,l.Z)({},b.sx),D),{},{mb:"24px"}),children:[f&&(0,u.jsx)(Cd,{sx:{color:m?"primaryDark.300":"primaryDark.500"},text:f,required:d}),(0,u.jsx)(du,{control:w,name:a,rules:d?{required:"This field is required"}:{required:!1},render:function(e){return(0,u.jsx)(U$.Z,(0,l.Z)({multiple:y,disabled:m,disablePortal:!0,value:""===e.field.value?null:e.field.value,onChange:function(t,n){return e.field.onChange(n)},options:Array.from(s.keys()),getOptionLabel:function(e){return s.get(e)},renderOption:function(e){var t=Object.assign({},e);return(0,o.createElement)(Nl.Z,(0,l.Z)((0,l.Z)({},t),{},{sx:{width:"100%",display:"flex !important",justifyContent:"space-between !important",alignItems:"center","&::after":{display:"none",content:"''"},"&:hover":{backgroundColor:"".concat(tr.IV[150]," !important")}},key:t.key,value:t.key}),(0,u.jsx)(rn.Z,{sx:{fontSize:"16px",color:"primaryDark.500",fontFamily:"Gellix-SemiBold"},children:t.key}),(0,u.jsx)(Rd,{fill:tr.so[700]}))},popupIcon:(0,u.jsx)(zl.Z,{sx:{pointerEvents:"none !important"}}),renderInput:function(e){return(0,u.jsx)(xd.Z,(0,l.Z)((0,l.Z)({},e),{},{placeholder:p,inputProps:(0,l.Z)((0,l.Z)({},e.inputProps),{},{sx:{"&::placeholder":{color:tr.IV[400],opacity:1}}})}))},renderTags:function(){return[]}},e))}}),(0,u.jsxs)(u.Fragment,{children:[O?(0,u.jsx)(nn.Z,{position:"relative",sx:{mb:1},children:(0,u.jsx)(rn.Z,{color:"secondaryPink.500",variant:"body4",sx:{position:"absolute",mt:1},children:(null!==(t=null===Z||void 0===Z||null===(n=Z.error)||void 0===n||null===(r=n.message)||void 0===r?void 0:r.length)&&void 0!==t?t:0)>0?null===Z||void 0===Z||null===(i=Z.error)||void 0===i?void 0:i.message:"This field is required"})}):"",v&&null!==E&&void 0!==E&&E.length?(0,u.jsx)(nn.Z,{direction:"row",sx:{flexWrap:"wrap",gap:"10px",mt:"16px"},children:E.map((function(e){var t=s instanceof Map?s.get(e):"";return(0,u.jsx)(_d,{label:g?g(t):t,onDelete:function(){S(a,E.filter((function(t){return t!==e}))),k(a)}},e)}))}):null]})]})},TOe=function(){var e=Xc(),t=e.getValues,n=e.setValue;return(0,u.jsxs)(nn.Z,{spacing:4,sx:{mt:4},children:[(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",children:[(0,u.jsx)(nn.Z,{spacing:1,width:"50%",children:(0,u.jsx)(MOe,{name:"body.scope.services",label:"Services provided",required:!0,multiple:!0,withChips:!0,choices:Kt.Sj})}),(0,u.jsx)(nn.Z,{sx:{flex:1,".MuiBox-root":{flex:1}},direction:"row",children:(0,u.jsx)(MOe,{name:"body.scope.industry",label:"Buyer industry",required:!0,choices:Kt.lu,fullWidth:!0,sx:{flex:1}})})]}),(0,u.jsx)(nn.Z,{spacing:1,mt:"0 !important",direction:"row",alignItems:"start",children:(0,u.jsxs)(nn.Z,{direction:"column",width:"50%",sx:{flex:1},children:[(0,u.jsx)(Cd,{required:!0,text:"Project budget"}),(0,u.jsxs)(nn.Z,{direction:"row",children:[(0,u.jsx)(nn.Z,{sx:{flex:1},children:(0,u.jsx)(Hd,{disabled:!0,name:"body.scope.currency",choices:Kt.f,sx:{"& .MuiOutlinedInput-root":{borderRight:"none !important",borderTopRightRadius:0,borderBottomRightRadius:0}}})}),(0,u.jsx)(nn.Z,{sx:{flex:4},children:(0,u.jsx)(POe,{initialValue:t("initialAmount"),name:"dummyInitialAmount",placeholder:"Project price",onBlur:function(e){var r=(0,rs._M)(e.toString());Number.isNaN(r)&&(r=0),n("initialAmount",r),function(e){var r=t("body.milestones"),o=r.map((function(e){return e.budget})),i=o.reduce((function(e,t){return e+t}));if(e<i){var a=r.map((function(e){return e.budget/i}));r.forEach((function(t,n){Number.isNaN(a[n])?t.budget=0:t.budget=Math.ceil(a[n]*e)})),n("body.milestones",r),r.forEach((function(e,t){n("body.milestones.".concat(t),e)}))}}(r)},min:0,fullWidth:!0,sx:{flex:1,".MuiOutlinedInput-root":{borderTopLeftRadius:0,borderBottomLeftRadius:0}},required:!0})})]})]})}),(0,u.jsx)(tn,{children:(0,u.jsx)(Zd,{label:"Project description",name:"body.scope.description",multiline:!0,minRows:5,placeholder:"Type",required:!0,variant:"outlined"})})]})},IOe=["name","required","disabled","label"],ROe={width:30,height:18,padding:0,"& .MuiSwitch-switchBase":{padding:0,transitionDuration:"300ms",margin:"3px","&.Mui-checked":{transform:"translateX(12px)",color:"#fff","& + .MuiSwitch-track":{opacity:1,border:0,backgroundColor:"secondaryGreen.100"},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5},"& .MuiSwitch-thumb":{backgroundColor:"secondaryGreen.700"}},"&.Mui-disabled + .MuiSwitch-track":{opacity:.7}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:12,height:12,backgroundColor:"primaryDark.500"},"& .MuiSwitch-track":{borderRadius:13,backgroundColor:"primaryDark.300",opacity:1}},FOe=function(e){var t=e.name,n=e.required,r=e.disabled,o=e.label,i=Nn(e,IOe),a=Xc(),s=a.control,c=a.getValues;return(0,u.jsx)(du,{control:s,name:t,rules:{required:n},render:function(e){var n=e.field;return(0,u.jsx)(iF.Z,{sx:{margin:0},control:(0,u.jsx)(GSe.Z,(0,l.Z)((0,l.Z)({},n),{},{checked:c(t),sx:ROe,disableRipple:!0},i)),disabled:r,label:null!==o&&void 0!==o?o:""})}})},BOe=function(e){var t=e.index,n=Xc().control,r=cu({name:"body.milestones.".concat(t,".budget"),control:n}),o=cu({name:"body.milestones.".concat(t,".duration"),control:n}),i=function(e){return new Intl.NumberFormat("en-US",{style:"currency",currency:"usd"}).format(Math.abs(e))};return(0,u.jsx)(ao.Z,{elevation:0,sx:{px:2,py:.5,backgroundColor:"secondaryBlue.100",borderRadius:1,width:"fit-content"},children:(0,u.jsx)(rn.Z,{fontSize:"16px",color:tr.dx[700],fontWeight:500,children:"".concat(i(o?r/o:r)," / month")})})},LOe=o.forwardRef((function(e,t){var n=e.disableUnderline,i=e.classes,a=e.fullWidth,s=void 0!==a&&a,l=e.inputComponent,c=void 0===l?"input":l,u=e.multiline,d=void 0!==u&&u,p=e.type,f=void 0===p?"text":p,h=Nn(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return o.createElement(Fxe,(0,r.Z)({classes:(0,r.Z)({},i,{root:(0,y.default)(i.root,!n&&i.underline),underline:null}),fullWidth:s,inputComponent:c,multiline:d,ref:t,type:f},h))}));LOe.muiName="Input";var NOe=Cxe((function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiFilledInput"})(LOe);function _Oe(){return Mge()||wxe}var zOe=o.forwardRef((function(e,n){e.children;var i=e.classes,a=e.className,s=e.label,l=e.labelWidth,c=e.notched,u=e.style,d=Nn(e,["children","classes","className","label","labelWidth","notched","style"]),p="rtl"===_Oe().direction?"right":"left";if(void 0!==s)return o.createElement("fieldset",(0,r.Z)({"aria-hidden":!0,className:(0,y.default)(i.root,a),ref:n,style:u},d),o.createElement("legend",{className:(0,y.default)(i.legendLabelled,c&&i.legendNotched)},s?o.createElement("span",null,s):o.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})));var f=l>0?.75*l+8:.01;return o.createElement("fieldset",(0,r.Z)({"aria-hidden":!0,style:(0,r.Z)((0,t.Z)({},"padding".concat(jxe(p)),8),u),className:(0,y.default)(i.root,a),ref:n},d),o.createElement("legend",{className:i.legend,style:{width:c?f:.01}},o.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})))})),HOe=Cxe((function(e){return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}}),{name:"PrivateNotchedOutline"})(zOe),WOe=o.forwardRef((function(e,t){var n=e.classes,i=e.fullWidth,a=void 0!==i&&i,s=e.inputComponent,l=void 0===s?"input":s,c=e.label,u=e.labelWidth,d=void 0===u?0:u,p=e.multiline,f=void 0!==p&&p,h=e.notched,m=e.type,v=void 0===m?"text":m,g=Nn(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return o.createElement(Fxe,(0,r.Z)({renderSuffix:function(e){return o.createElement(HOe,{className:n.notchedOutline,label:c,labelWidth:d,notched:"undefined"!==typeof h?h:Boolean(e.startAdornment||e.filled||e.focused)})},classes:(0,r.Z)({},n,{root:(0,y.default)(n.root,n.underline),notchedOutline:null}),fullWidth:a,inputComponent:l,multiline:f,ref:t,type:v},g))}));WOe.muiName="Input";var VOe=Cxe((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(WOe);function UOe(){return o.useContext(hve)}var qOe=o.forwardRef((function(e,t){var n=e.children,i=e.classes,a=e.className,s=(e.color,e.component),l=void 0===s?"label":s,c=(e.disabled,e.error,e.filled,e.focused,e.required,Nn(e,["children","classes","className","color","component","disabled","error","filled","focused","required"])),u=pve({props:e,muiFormControl:UOe(),states:["color","required","focused","disabled","error","filled"]});return o.createElement(l,(0,r.Z)({className:(0,y.default)(i.root,i["color".concat(jxe(u.color||"primary"))],a,u.disabled&&i.disabled,u.error&&i.error,u.filled&&i.filled,u.focused&&i.focused,u.required&&i.required),ref:t},c),n,u.required&&o.createElement("span",{"aria-hidden":!0,className:(0,y.default)(i.asterisk,u.error&&i.error)},"\u2009","*"))})),GOe=Cxe((function(e){return{root:(0,r.Z)({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}}),{name:"MuiFormLabel"})(qOe),YOe=o.forwardRef((function(e,t){var n=e.classes,i=e.className,a=e.disableAnimation,s=void 0!==a&&a,l=(e.margin,e.shrink),c=(e.variant,Nn(e,["classes","className","disableAnimation","margin","shrink","variant"])),u=UOe(),d=l;"undefined"===typeof d&&u&&(d=u.filled||u.focused||u.adornedStart);var p=pve({props:e,muiFormControl:u,states:["margin","variant"]});return o.createElement(GOe,(0,r.Z)({"data-shrink":d,className:(0,y.default)(n.root,i,u&&n.formControl,!s&&n.animated,d&&n.shrink,"dense"===p.margin&&n.marginDense,{filled:n.filled,outlined:n.outlined}[p.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:t},c))})),KOe=Cxe((function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}}),{name:"MuiInputLabel"})(YOe);function JOe(e,t){return o.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}var XOe=o.forwardRef((function(e,t){var n=e.children,i=e.classes,a=e.className,s=e.color,l=void 0===s?"primary":s,c=e.component,u=void 0===c?"div":c,d=e.disabled,p=void 0!==d&&d,f=e.error,h=void 0!==f&&f,m=e.fullWidth,v=void 0!==m&&m,g=e.focused,b=e.hiddenLabel,x=void 0!==b&&b,w=e.margin,C=void 0===w?"none":w,j=e.required,S=void 0!==j&&j,k=e.size,Z=e.variant,O=void 0===Z?"standard":Z,E=Nn(e,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),D=o.useState((function(){var e=!1;return n&&o.Children.forEach(n,(function(t){if(JOe(t,["Input","Select"])){var n=JOe(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}})),e})),P=D[0],A=D[1],M=o.useState((function(){var e=!1;return n&&o.Children.forEach(n,(function(t){JOe(t,["Input","Select"])&&Txe(t.props,!0)&&(e=!0)})),e})),T=M[0],I=M[1],R=o.useState(!1),F=R[0],B=R[1],L=void 0!==g?g:F;p&&L&&B(!1);var N=o.useCallback((function(){I(!0)}),[]),_={adornedStart:P,setAdornedStart:A,color:l,disabled:p,error:h,filled:T,focused:L,fullWidth:v,hiddenLabel:x,margin:("small"===k?"dense":void 0)||C,onBlur:function(){B(!1)},onEmpty:o.useCallback((function(){I(!1)}),[]),onFilled:N,onFocus:function(){B(!0)},registerEffect:undefined,required:S,variant:O};return o.createElement(hve.Provider,{value:_},o.createElement(u,(0,r.Z)({className:(0,y.default)(i.root,a,"none"!==C&&i["margin".concat(jxe(C))],v&&i.fullWidth),ref:t},E),n))})),QOe=Cxe({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(XOe),$Oe=o.forwardRef((function(e,t){var n=e.children,i=e.classes,a=e.className,s=e.component,l=void 0===s?"p":s,c=(e.disabled,e.error,e.filled,e.focused,e.margin,e.required,e.variant,Nn(e,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"])),u=pve({props:e,muiFormControl:UOe(),states:["variant","margin","disabled","error","filled","focused","required"]});return o.createElement(l,(0,r.Z)({className:(0,y.default)(i.root,("filled"===u.variant||"outlined"===u.variant)&&i.contained,a,u.disabled&&i.disabled,u.error&&i.error,u.filled&&i.filled,u.focused&&i.focused,u.required&&i.required,"dense"===u.margin&&i.marginDense),ref:t},c)," "===n?o.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):n)})),eEe=Cxe((function(e){return{root:(0,r.Z)({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}}),{name:"MuiFormHelperText"})($Oe);n(50557);function tEe(e){return e&&e.ownerDocument||document}function nEe(e){return tEe(e).defaultView||window}function rEe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))}var oEe="undefined"!==typeof window?o.useLayoutEffect:o.useEffect;var iEe=o.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,a=void 0!==i&&i,s=e.onRendered,l=o.useState(null),c=l[0],u=l[1],d=kxe(o.isValidElement(n)?n.ref:null,t);return oEe((function(){a||u(function(e){return e="function"===typeof e?e():e,g.findDOMNode(e)}(r)||document.body)}),[r,a]),oEe((function(){if(c&&!a)return Sxe(t,c),function(){Sxe(t,null)}}),[t,c,a]),oEe((function(){s&&(c||a)&&s()}),[s,c,a]),a?o.isValidElement(n)?o.cloneElement(n,{ref:d}):n:c?g.createPortal(n,c):c})),aEe="undefined"!==typeof window?o.useLayoutEffect:o.useEffect;function sEe(e){var t=o.useRef(e);return aEe((function(){t.current=e})),o.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}function lEe(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function cEe(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function uEe(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function dEe(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,i=[t,n].concat((0,dn.Z)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===a.indexOf(e.tagName)&&cEe(e,o)}))}function pEe(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function fEe(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=tEe(e);return t.body===e?nEe(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){var a=lEe();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(uEe(i)+a,"px"),n=tEe(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(uEe(e)+a,"px")}))}var s=i.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:i;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var hEe=function(){function e(){(0,Ph.Z)(this,e),this.modals=[],this.containers=[]}return(0,Dh.Z)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&cEe(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);dEe(t,e.mountNode,e.modalRef,r,!0);var o=pEe(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=pEe(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=fEe(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=pEe(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&cEe(e.modalRef,!0),dEe(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&cEe(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var mEe=function(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,i=e.disableEnforceFocus,a=void 0!==i&&i,s=e.disableRestoreFocus,l=void 0!==s&&s,c=e.getDoc,u=e.isEnabled,d=e.open,p=o.useRef(),f=o.useRef(null),h=o.useRef(null),m=o.useRef(),v=o.useRef(null),y=o.useCallback((function(e){v.current=g.findDOMNode(e)}),[]),b=kxe(t.ref,y),x=o.useRef();return o.useEffect((function(){x.current=d}),[d]),!x.current&&d&&"undefined"!==typeof window&&(m.current=c().activeElement),o.useEffect((function(){if(d){var e=tEe(v.current);r||!v.current||v.current.contains(e.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex",-1),v.current.focus());var t=function(){null!==v.current&&(e.hasFocus()&&!a&&u()&&!p.current?v.current&&!v.current.contains(e.activeElement)&&v.current.focus():p.current=!1)},n=function(t){!a&&u()&&9===t.keyCode&&e.activeElement===v.current&&(p.current=!0,t.shiftKey?h.current.focus():f.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var o=setInterval((function(){t()}),50);return function(){clearInterval(o),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),l||(m.current&&m.current.focus&&m.current.focus(),m.current=null)}}}),[r,a,l,u,d]),o.createElement(o.Fragment,null,o.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelStart"}),o.cloneElement(t,{ref:b}),o.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))},vEe={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},gEe=o.forwardRef((function(e,t){var n=e.invisible,i=void 0!==n&&n,a=e.open,s=Nn(e,["invisible","open"]);return a?o.createElement("div",(0,r.Z)({"aria-hidden":!0,ref:t},s,{style:(0,r.Z)({},vEe.root,i?vEe.invisible:{},s.style)})):null}));var yEe=new hEe,bEe=o.forwardRef((function(e,t){var n=Mge(),i=Zbe({name:"MuiModal",props:(0,r.Z)({},e),theme:n}),a=i.BackdropComponent,s=void 0===a?gEe:a,l=i.BackdropProps,c=i.children,u=i.closeAfterTransition,d=void 0!==u&&u,p=i.container,f=i.disableAutoFocus,h=void 0!==f&&f,m=i.disableBackdropClick,v=void 0!==m&&m,y=i.disableEnforceFocus,b=void 0!==y&&y,x=i.disableEscapeKeyDown,w=void 0!==x&&x,C=i.disablePortal,j=void 0!==C&&C,S=i.disableRestoreFocus,k=void 0!==S&&S,Z=i.disableScrollLock,O=void 0!==Z&&Z,E=i.hideBackdrop,D=void 0!==E&&E,P=i.keepMounted,A=void 0!==P&&P,M=i.manager,T=void 0===M?yEe:M,I=i.onBackdropClick,R=i.onClose,F=i.onEscapeKeyDown,B=i.onRendered,L=i.open,N=Nn(i,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),_=o.useState(!0),z=_[0],H=_[1],W=o.useRef({}),V=o.useRef(null),U=o.useRef(null),q=kxe(U,t),G=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(i),Y=function(){return tEe(V.current)},K=function(){return W.current.modalRef=U.current,W.current.mountNode=V.current,W.current},J=function(){T.mount(K(),{disableScrollLock:O}),U.current.scrollTop=0},X=sEe((function(){var e=function(e){return e="function"===typeof e?e():e,g.findDOMNode(e)}(p)||Y().body;T.add(K(),e),U.current&&J()})),Q=o.useCallback((function(){return T.isTopModal(K())}),[T]),$=sEe((function(e){V.current=e,e&&(B&&B(),L&&Q()?J():cEe(U.current,!0))})),ee=o.useCallback((function(){T.remove(K())}),[T]);if(o.useEffect((function(){return function(){ee()}}),[ee]),o.useEffect((function(){L?X():G&&d||ee()}),[L,ee,G,d,X]),!A&&!L&&(!G||z))return null;var te=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:bxe}),ne={};return void 0===c.props.tabIndex&&(ne.tabIndex=c.props.tabIndex||"-1"),G&&(ne.onEnter=rEe((function(){H(!1)}),c.props.onEnter),ne.onExited=rEe((function(){H(!0),d&&ee()}),c.props.onExited)),o.createElement(iEe,{ref:$,container:p,disablePortal:j},o.createElement("div",(0,r.Z)({ref:q,onKeyDown:function(e){"Escape"===e.key&&Q()&&(F&&F(e),w||(e.stopPropagation(),R&&R(e,"escapeKeyDown")))},role:"presentation"},N,{style:(0,r.Z)({},te.root,!L&&z?te.hidden:{},N.style)}),D?null:o.createElement(s,(0,r.Z)({open:L,onClick:function(e){e.target===e.currentTarget&&(I&&I(e),!v&&R&&R(e,"backdropClick"))}},l)),o.createElement(mEe,{disableEnforceFocus:b,disableAutoFocus:h,disableRestoreFocus:k,getDoc:Y,isEnabled:Q,open:L},o.cloneElement(c,ne))))})),xEe=bEe;function wEe(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"===typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}function CEe(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var jEe={entering:{opacity:1,transform:CEe(1)},entered:{opacity:1,transform:"none"}},SEe=o.forwardRef((function(e,t){var n=e.children,i=e.disableStrictModeCompat,a=void 0!==i&&i,s=e.in,l=e.onEnter,c=e.onEntered,u=e.onEntering,d=e.onExit,p=e.onExited,f=e.onExiting,h=e.style,m=e.timeout,v=void 0===m?"auto":m,g=e.TransitionComponent,y=void 0===g?x.ZP:g,b=Nn(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),w=o.useRef(),C=o.useRef(),j=_Oe(),S=j.unstable_strictMode&&!a,k=o.useRef(null),Z=kxe(n.ref,t),O=kxe(S?k:void 0,Z),E=function(e){return function(t,n){if(e){var r=S?[k.current,t]:[t,n],o=(0,Le.Z)(r,2),i=o[0],a=o[1];void 0===a?e(i):e(i,a)}}},D=E(u),P=E((function(e,t){!function(e){e.scrollTop}(e);var n,r=wEe({style:h,timeout:v},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===v?(n=j.transitions.getAutoHeightDuration(e.clientHeight),C.current=n):n=o,e.style.transition=[j.transitions.create("opacity",{duration:n,delay:i}),j.transitions.create("transform",{duration:.666*n,delay:i})].join(","),l&&l(e,t)})),A=E(c),M=E(f),T=E((function(e){var t,n=wEe({style:h,timeout:v},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===v?(t=j.transitions.getAutoHeightDuration(e.clientHeight),C.current=t):t=r,e.style.transition=[j.transitions.create("opacity",{duration:t,delay:o}),j.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=CEe(.75),d&&d(e)})),I=E(p);return o.useEffect((function(){return function(){clearTimeout(w.current)}}),[]),o.createElement(y,(0,r.Z)({appear:!0,in:s,nodeRef:S?k:void 0,onEnter:P,onEntered:A,onEntering:D,onExit:T,onExited:I,onExiting:M,addEndListener:function(e,t){var n=S?e:t;"auto"===v&&(w.current=setTimeout(n,C.current||0))},timeout:"auto"===v?null:v},b),(function(e,t){return o.cloneElement(n,(0,r.Z)({style:(0,r.Z)({opacity:0,transform:CEe(.75),visibility:"exited"!==e||s?void 0:"hidden"},jEe[e],h,n.props.style),ref:O},t))}))}));SEe.muiSupportAuto=!0;var kEe=SEe,ZEe=o.forwardRef((function(e,t){var n=e.classes,i=e.className,a=e.component,s=void 0===a?"div":a,l=e.square,c=void 0!==l&&l,u=e.elevation,d=void 0===u?1:u,p=e.variant,f=void 0===p?"elevation":p,h=Nn(e,["classes","className","component","square","elevation","variant"]);return o.createElement(s,(0,r.Z)({className:(0,y.default)(n.root,i,"outlined"===f?n.outlined:n["elevation".concat(d)],!c&&n.rounded),ref:t},h))})),OEe=Cxe((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),(0,r.Z)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(ZEe);function EEe(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function DEe(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function PEe(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function AEe(e){return"function"===typeof e?e():e}var MEe=o.forwardRef((function(e,t){var n=e.action,i=e.anchorEl,a=e.anchorOrigin,s=void 0===a?{vertical:"top",horizontal:"left"}:a,l=e.anchorPosition,c=e.anchorReference,u=void 0===c?"anchorEl":c,d=e.children,p=e.classes,f=e.className,h=e.container,m=e.elevation,v=void 0===m?8:m,b=e.getContentAnchorEl,x=e.marginThreshold,w=void 0===x?16:x,C=e.onEnter,j=e.onEntered,S=e.onEntering,k=e.onExit,Z=e.onExited,O=e.onExiting,E=e.open,D=e.PaperProps,P=void 0===D?{}:D,A=e.transformOrigin,M=void 0===A?{vertical:"top",horizontal:"left"}:A,T=e.TransitionComponent,I=void 0===T?kEe:T,R=e.transitionDuration,F=void 0===R?"auto":R,B=e.TransitionProps,L=void 0===B?{}:B,N=Nn(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),_=o.useRef(),z=o.useCallback((function(e){if("anchorPosition"===u)return l;var t=AEe(i),n=(t&&1===t.nodeType?t:tEe(_.current).body).getBoundingClientRect(),r=0===e?s.vertical:"center";return{top:n.top+EEe(n,r),left:n.left+DEe(n,s.horizontal)}}),[i,s.horizontal,s.vertical,l,u]),H=o.useCallback((function(e){var t=0;if(b&&"anchorEl"===u){var n=b(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}0}return t}),[s.vertical,u,b]),W=o.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:EEe(e,M.vertical)+t,horizontal:DEe(e,M.horizontal)}}),[M.horizontal,M.vertical]),V=o.useCallback((function(e){var t=H(e),n={width:e.offsetWidth,height:e.offsetHeight},r=W(n,t);if("none"===u)return{top:null,left:null,transformOrigin:PEe(r)};var o=z(t),a=o.top-r.vertical,s=o.left-r.horizontal,l=a+n.height,c=s+n.width,d=nEe(AEe(i)),p=d.innerHeight-w,f=d.innerWidth-w;if(a<w){var h=a-w;a-=h,r.vertical+=h}else if(l>p){var m=l-p;a-=m,r.vertical+=m}if(s<w){var v=s-w;s-=v,r.horizontal+=v}else if(c>f){var g=c-f;s-=g,r.horizontal+=g}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:PEe(r)}}),[i,u,z,H,W,w]),U=o.useCallback((function(){var e=_.current;if(e){var t=V(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[V]),q=o.useCallback((function(e){_.current=g.findDOMNode(e)}),[]);o.useEffect((function(){E&&U()})),o.useImperativeHandle(n,(function(){return E?{updatePosition:function(){U()}}:null}),[E,U]),o.useEffect((function(){if(E){var e=Zxe((function(){U()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[E,U]);var G=F;"auto"!==F||I.muiSupportAuto||(G=void 0);var Y=h||(i?tEe(AEe(i)).body:void 0);return o.createElement(xEe,(0,r.Z)({container:Y,open:E,ref:t,BackdropProps:{invisible:!0},className:(0,y.default)(p.root,f)},N),o.createElement(I,(0,r.Z)({appear:!0,in:E,onEnter:C,onEntered:j,onExit:k,onExited:Z,onExiting:O,timeout:G},L,{onEntering:rEe((function(e,t){S&&S(e,t),U()}),L.onEntering)}),o.createElement(OEe,(0,r.Z)({elevation:v,ref:q},P,{className:(0,y.default)(p.paper,P.className)}),d)))})),TEe=Cxe({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(MEe);var IEe=o.createContext({}),REe=o.forwardRef((function(e,t){var n=e.children,i=e.classes,a=e.className,s=e.component,l=void 0===s?"ul":s,c=e.dense,u=void 0!==c&&c,d=e.disablePadding,p=void 0!==d&&d,f=e.subheader,h=Nn(e,["children","classes","className","component","dense","disablePadding","subheader"]),m=o.useMemo((function(){return{dense:u}}),[u]);return o.createElement(IEe.Provider,{value:m},o.createElement(l,(0,r.Z)({className:(0,y.default)(i.root,a,u&&i.dense,!p&&i.padding,f&&i.subheader),ref:t},h),f,n))})),FEe=Cxe({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(REe);function BEe(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function LEe(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function NEe(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function _Ee(e,t,n,r,o,i){for(var a=!1,s=o(e,t,!!t&&n);s;){if(s===e.firstChild){if(a)return;a=!0}var l=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&NEe(s,i)&&!l)return void s.focus();s=o(e,s,n)}}var zEe="undefined"===typeof window?o.useEffect:o.useLayoutEffect,HEe=o.forwardRef((function(e,t){var n=e.actions,i=e.autoFocus,a=void 0!==i&&i,s=e.autoFocusItem,l=void 0!==s&&s,c=e.children,u=e.className,d=e.disabledItemsFocusable,p=void 0!==d&&d,f=e.disableListWrap,h=void 0!==f&&f,m=e.onKeyDown,v=e.variant,y=void 0===v?"selectedMenu":v,b=Nn(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),x=o.useRef(null),w=o.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});zEe((function(){a&&x.current.focus()}),[a]),o.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!x.current.style.width;if(e.clientHeight<x.current.clientHeight&&n){var r="".concat(lEe(),"px");x.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,x.current.style.width="calc(100% + ".concat(r,")")}return x.current}}}),[]);var C=kxe(o.useCallback((function(e){x.current=g.findDOMNode(e)}),[]),t),j=-1;o.Children.forEach(c,(function(e,t){o.isValidElement(e)&&(e.props.disabled||("selectedMenu"===y&&e.props.selected||-1===j)&&(j=t))}));var S=o.Children.map(c,(function(e,t){if(t===j){var n={};return l&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===y&&(n.tabIndex=0),o.cloneElement(e,n)}return e}));return o.createElement(FEe,(0,r.Z)({role:"menu",ref:C,className:u,onKeyDown:function(e){var t=x.current,n=e.key,r=tEe(t).activeElement;if("ArrowDown"===n)e.preventDefault(),_Ee(t,r,h,p,BEe);else if("ArrowUp"===n)e.preventDefault(),_Ee(t,r,h,p,LEe);else if("Home"===n)e.preventDefault(),_Ee(t,null,h,p,BEe);else if("End"===n)e.preventDefault(),_Ee(t,null,h,p,LEe);else if(1===n.length){var o=w.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);var s=r&&!o.repeating&&NEe(r,o);o.previousKeyMatched&&(s||_Ee(t,r,!1,p,BEe,o))?e.preventDefault():o.previousKeyMatched=!1}m&&m(e)},tabIndex:a?0:-1},b),S)})),WEe=HEe,VEe={vertical:"top",horizontal:"right"},UEe={vertical:"top",horizontal:"left"},qEe=o.forwardRef((function(e,t){var n=e.autoFocus,i=void 0===n||n,a=e.children,s=e.classes,l=e.disableAutoFocusItem,c=void 0!==l&&l,u=e.MenuListProps,d=void 0===u?{}:u,p=e.onClose,f=e.onEntering,h=e.open,m=e.PaperProps,v=void 0===m?{}:m,b=e.PopoverClasses,x=e.transitionDuration,w=void 0===x?"auto":x,C=e.TransitionProps,j=(C=void 0===C?{}:C).onEntering,S=Nn(C,["onEntering"]),k=e.variant,Z=void 0===k?"selectedMenu":k,O=Nn(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),E=_Oe(),D=i&&!c&&h,P=o.useRef(null),A=o.useRef(null),M=-1;o.Children.map(a,(function(e,t){o.isValidElement(e)&&(e.props.disabled||("menu"!==Z&&e.props.selected||-1===M)&&(M=t))}));var T=o.Children.map(a,(function(e,t){return t===M?o.cloneElement(e,{ref:function(t){A.current=g.findDOMNode(t),Sxe(e.ref,t)}}):e}));return o.createElement(TEe,(0,r.Z)({getContentAnchorEl:function(){return A.current},classes:b,onClose:p,TransitionProps:(0,r.Z)({onEntering:function(e,t){P.current&&P.current.adjustStyleForScrollbar(e,E),f&&f(e,t),j&&j(e,t)}},S),anchorOrigin:"rtl"===E.direction?VEe:UEe,transformOrigin:"rtl"===E.direction?VEe:UEe,PaperProps:(0,r.Z)({},v,{classes:(0,r.Z)({},v.classes,{root:s.paper})}),open:h,ref:t,transitionDuration:w},O),o.createElement(WEe,(0,r.Z)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),p&&p(e,"tabKeyDown"))},actions:P,autoFocus:i&&(-1===M||c),autoFocusItem:D,variant:Z},d,{className:(0,y.default)(s.list,d.className)}),T))})),GEe=Cxe({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(qEe);function YEe(e,t){return"object"===(0,mbe.Z)(t)&&null!==t?e===t:String(e)===String(t)}var KEe=o.forwardRef((function(e,t){var n=e["aria-label"],i=e.autoFocus,a=e.autoWidth,s=e.children,l=e.classes,c=e.className,u=e.defaultValue,d=e.disabled,p=e.displayEmpty,f=e.IconComponent,h=e.inputRef,m=e.labelId,v=e.MenuProps,g=void 0===v?{}:v,b=e.multiple,x=e.name,w=e.onBlur,C=e.onChange,j=e.onClose,S=e.onFocus,k=e.onOpen,Z=e.open,O=e.readOnly,E=e.renderValue,D=e.SelectDisplayProps,P=void 0===D?{}:D,A=e.tabIndex,M=(e.type,e.value),T=e.variant,I=void 0===T?"standard":T,R=Nn(e,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),F=function(e){var t=e.controlled,n=e.default,r=(e.name,e.state,o.useRef(void 0!==t).current),i=o.useState(n),a=i[0],s=i[1];return[r?t:a,o.useCallback((function(e){r||s(e)}),[])]}({controlled:M,default:u,name:"Select"}),B=(0,Le.Z)(F,2),L=B[0],N=B[1],_=o.useRef(null),z=o.useState(null),H=z[0],W=z[1],V=o.useRef(null!=Z).current,U=o.useState(),q=U[0],G=U[1],Y=o.useState(!1),K=Y[0],J=Y[1],X=kxe(t,h);o.useImperativeHandle(X,(function(){return{focus:function(){H.focus()},node:_.current,value:L}}),[H,L]),o.useEffect((function(){i&&H&&H.focus()}),[i,H]),o.useEffect((function(){if(H){var e=tEe(H).getElementById(m);if(e){var t=function(){getSelection().isCollapsed&&H.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[m,H]);var Q,$,ee=function(e,t){e?k&&k(t):j&&j(t),V||(G(a?null:H.clientWidth),J(e))},te=o.Children.toArray(s),ne=function(e){return function(t){var n;if(b||ee(!1,t),b){n=Array.isArray(L)?L.slice():[];var r=L.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),L!==n&&(N(n),C&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:x}}),C(t,e)))}},re=null!==H&&(V?Z:K);delete R["aria-invalid"];var oe=[],ie=!1;(Txe({value:L})||p)&&(E?Q=E(L):ie=!0);var ae=te.map((function(e){if(!o.isValidElement(e))return null;var t;if(b){if(!Array.isArray(L))throw new Error(dve(2));t=L.some((function(t){return YEe(t,e.props.value)})),t&&ie&&oe.push(e.props.children)}else(t=YEe(L,e.props.value))&&ie&&($=e.props.children);return t&&!0,o.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:ne(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ie&&(Q=b?oe.join(", "):$);var se,le=q;!a&&V&&H&&(le=H.clientWidth),se="undefined"!==typeof A?A:d?null:0;var ce=P.id||(x?"mui-component-select-".concat(x):void 0);return o.createElement(o.Fragment,null,o.createElement("div",(0,r.Z)({className:(0,y.default)(l.root,l.select,l.selectMenu,l[I],c,d&&l.disabled),ref:W,tabIndex:se,role:"button","aria-disabled":d?"true":void 0,"aria-expanded":re?"true":void 0,"aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[m,ce].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){if(!O){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ee(!0,e))}},onMouseDown:d||O?null:function(e){0===e.button&&(e.preventDefault(),H.focus(),ee(!0,e))},onBlur:function(e){!re&&w&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:L,name:x}}),w(e))},onFocus:S},P,{id:ce}),function(e){return null==e||"string"===typeof e&&!e.trim()}(Q)?o.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):Q),o.createElement("input",(0,r.Z)({value:Array.isArray(L)?L.join(","):L,name:x,ref:_,"aria-hidden":!0,onChange:function(e){var t=te.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=te[t];N(n.props.value),C&&C(e,n)}},tabIndex:-1,className:l.nativeInput,autoFocus:i},R)),o.createElement(f,{className:(0,y.default)(l.icon,l["icon".concat(jxe(I))],re&&l.iconOpen,d&&l.disabled)}),o.createElement(GEe,(0,r.Z)({id:"menu-".concat(x||""),anchorEl:H,open:re,onClose:function(e){ee(!1,e)}},g,{MenuListProps:(0,r.Z)({"aria-labelledby":m,role:"listbox",disableListWrap:!0},g.MenuListProps),PaperProps:(0,r.Z)({},g.PaperProps,{style:(0,r.Z)({minWidth:le},null!=g.PaperProps?g.PaperProps.style:null)})}),ae))})),JEe=KEe,XEe=o.forwardRef((function(e,t){var n=e.children,i=e.classes,a=e.className,s=e.color,l=void 0===s?"inherit":s,c=e.component,u=void 0===c?"svg":c,d=e.fontSize,p=void 0===d?"medium":d,f=e.htmlColor,h=e.titleAccess,m=e.viewBox,v=void 0===m?"0 0 24 24":m,g=Nn(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return o.createElement(u,(0,r.Z)({className:(0,y.default)(i.root,a,"inherit"!==l&&i["color".concat(jxe(l))],"default"!==p&&"medium"!==p&&i["fontSize".concat(jxe(p))]),focusable:"false",viewBox:v,color:f,"aria-hidden":!h||void 0,role:h?"img":void 0,ref:t},g),n,h?o.createElement("title",null,h):null)}));XEe.muiName="SvgIcon";var QEe=Cxe((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(XEe);var $Ee=function(e,t){var n=function(t,n){return o.createElement(QEe,(0,r.Z)({ref:n},t),e)};return n.muiName=QEe.muiName,o.memo(o.forwardRef(n))}(o.createElement("path",{d:"M7 10l5 5 5-5z"})),eDe=o.forwardRef((function(e,t){var n=e.classes,i=e.className,a=e.disabled,s=e.IconComponent,l=e.inputRef,c=e.variant,u=void 0===c?"standard":c,d=Nn(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return o.createElement(o.Fragment,null,o.createElement("select",(0,r.Z)({className:(0,y.default)(n.root,n.select,n[u],i,a&&n.disabled),disabled:a,ref:l||t},d)),e.multiple?null:o.createElement(s,{className:(0,y.default)(n.icon,n["icon".concat(jxe(u))],a&&n.disabled)}))})),tDe=eDe,nDe=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},rDe=o.createElement(Lxe,null),oDe=o.forwardRef((function(e,t){var n=e.children,i=e.classes,a=e.IconComponent,s=void 0===a?$Ee:a,l=e.input,c=void 0===l?rDe:l,u=e.inputProps,d=(e.variant,Nn(e,["children","classes","IconComponent","input","inputProps","variant"])),p=pve({props:e,muiFormControl:UOe(),states:["variant"]});return o.cloneElement(c,(0,r.Z)({inputComponent:tDe,inputProps:(0,r.Z)({children:n,classes:i,IconComponent:s,variant:p.variant,type:void 0},u,c?c.props.inputProps:{}),ref:t},d))}));oDe.muiName="Select";Cxe(nDe,{name:"MuiNativeSelect"})(oDe);var iDe=nDe,aDe=o.createElement(Lxe,null),sDe=o.createElement(NOe,null),lDe=o.forwardRef((function e(t,n){var i=t.autoWidth,a=void 0!==i&&i,s=t.children,l=t.classes,c=t.displayEmpty,u=void 0!==c&&c,d=t.IconComponent,p=void 0===d?$Ee:d,f=t.id,h=t.input,m=t.inputProps,v=t.label,g=t.labelId,y=t.labelWidth,b=void 0===y?0:y,x=t.MenuProps,w=t.multiple,C=void 0!==w&&w,j=t.native,S=void 0!==j&&j,k=t.onClose,Z=t.onOpen,O=t.open,E=t.renderValue,D=t.SelectDisplayProps,P=t.variant,A=void 0===P?"standard":P,M=Nn(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),T=S?tDe:JEe,I=pve({props:t,muiFormControl:UOe(),states:["variant"]}).variant||A,R=h||{standard:aDe,outlined:o.createElement(VOe,{label:v,labelWidth:b}),filled:sDe}[I];return o.cloneElement(R,(0,r.Z)({inputComponent:T,inputProps:(0,r.Z)({children:s,IconComponent:p,variant:I,type:void 0,multiple:C},S?{id:f}:{autoWidth:a,displayEmpty:u,labelId:g,MenuProps:x,onClose:k,onOpen:Z,open:O,renderValue:E,SelectDisplayProps:(0,r.Z)({id:f},D)},m,{classes:m?Ege({baseClasses:l,newClasses:m.classes,Component:e}):l},h?h.props.inputProps:{}),ref:n},M))}));lDe.muiName="Select";var cDe=Cxe(iDe,{name:"MuiSelect"})(lDe),uDe={standard:Lxe,filled:NOe,outlined:VOe},dDe=o.forwardRef((function(e,t){var n=e.autoComplete,i=e.autoFocus,a=void 0!==i&&i,s=e.children,l=e.classes,c=e.className,u=e.color,d=void 0===u?"primary":u,p=e.defaultValue,f=e.disabled,h=void 0!==f&&f,m=e.error,v=void 0!==m&&m,g=e.FormHelperTextProps,b=e.fullWidth,x=void 0!==b&&b,w=e.helperText,C=e.hiddenLabel,j=e.id,S=e.InputLabelProps,k=e.inputProps,Z=e.InputProps,O=e.inputRef,E=e.label,D=e.multiline,P=void 0!==D&&D,A=e.name,M=e.onBlur,T=e.onChange,I=e.onFocus,R=e.placeholder,F=e.required,B=void 0!==F&&F,L=e.rows,N=e.rowsMax,_=e.maxRows,z=e.minRows,H=e.select,W=void 0!==H&&H,V=e.SelectProps,U=e.type,q=e.value,G=e.variant,Y=void 0===G?"standard":G,K=Nn(e,["autoComplete","autoFocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","maxRows","minRows","select","SelectProps","type","value","variant"]);var J={};if("outlined"===Y&&(S&&"undefined"!==typeof S.shrink&&(J.notched=S.shrink),E)){var X,Q=null!==(X=null===S||void 0===S?void 0:S.required)&&void 0!==X?X:B;J.label=o.createElement(o.Fragment,null,E,Q&&"\xa0*")}W&&(V&&V.native||(J.id=void 0),J["aria-describedby"]=void 0);var $=w&&j?"".concat(j,"-helper-text"):void 0,ee=E&&j?"".concat(j,"-label"):void 0,te=uDe[Y],ne=o.createElement(te,(0,r.Z)({"aria-describedby":$,autoComplete:n,autoFocus:a,defaultValue:p,fullWidth:x,multiline:P,name:A,rows:L,rowsMax:N,maxRows:_,minRows:z,type:U,value:q,id:j,inputRef:O,onBlur:M,onChange:T,onFocus:I,placeholder:R,inputProps:k},J,Z));return o.createElement(QOe,(0,r.Z)({className:(0,y.default)(l.root,c),disabled:h,error:v,fullWidth:x,hiddenLabel:C,ref:t,required:B,color:d,variant:Y},K),E&&o.createElement(KOe,(0,r.Z)({htmlFor:j,id:ee},S),E),W?o.createElement(cDe,(0,r.Z)({"aria-describedby":$,id:j,labelId:ee,value:q,input:ne},V),s):ne,w&&o.createElement(eEe,(0,r.Z)({id:$},g),w))})),pDe=Cxe({root:{}},{name:"MuiTextField"})(dDe),fDe={paddingRight:"1px",".MuiTypography-root":{fontSize:"14px",fontFamily:"Gellix-SemiBold",color:"sprimaryDark.600"}},hDe={".MuiButtonBase-root":{display:"none"},".MuiInputBase-formControl":{border:"1px solid ".concat(tr.dx[100]),color:"primaryDark.600",backgroundColor:"transparent",paddingRight:0,fontSize:"14px","&:not(.Mui-disabled)":{"&:hover":{borderColor:"primaryLight.200"}}},input:{fontSize:"14px",padding:"0.844rem 0"},".Mui-focused":{borderColor:"primaryLight.500"},".MuiFormHelperText-root":{marginLeft:0,boxShadow:"none !important",color:"secondaryPink.500",marginTop:"0 !important",lineHeight:1},fieldset:{border:"0 !important"},".Mui-disabled":{backgroundColor:"primaryDark.200",color:"primaryDark.300",border:"none"}},mDe=function(e){var t,n=e.name,r=(e.label,e.required,e.initialValue),i=(e.sx,e.adornmentText),a=Math.round(100*(parseFloat(r.toString())+Number.EPSILON))/100,s=Xc().setValue,c=(0,o.useState)((0,rs.dN)(a.toString())),d=(0,Le.Z)(c,2),p=d[0],f=d[1];return a.toFixed(2)===parseFloat((null===p||void 0===p?void 0:p.replaceAll(",",""))||"0").toFixed(2)?t=p:(t=(0,rs.dN)(a.toString()),f(t)),(0,u.jsx)(nn.Z,{sx:(0,l.Z)({position:"relative"},hDe),children:(0,u.jsx)(pDe,{variant:"outlined",value:t,onChange:function(e){var t=(0,rs.dN)(e.target.value,!0);null!==t&&(f(""===t?"0":t),s(n,""===t?0:parseFloat(e.target.value.replaceAll(",",""))))},InputProps:(0,l.Z)({},i&&{startAdornment:(0,u.jsx)(gy,{sx:(0,l.Z)({},fDe),position:"start",children:i})})})})},vDe=function(e){var t=e.index,n=Xc().control,r=cu({name:"initialAmount",control:n}),o=cu({name:"body.milestones.".concat(t,".budget"),control:n});return(0,u.jsx)(z5,{value:r?Math.round(o/r*100):0})},gDe=function(){var e=Xc(),t=e.control,n=e.getValues,r=e.setValue,i=e.watch,a=e.trigger,s=Du({control:t,name:"body.milestones"}),l=s.fields,c=s.remove,d=s.append;function p(){var e=n("initialAmount"),t=n("body.milestones").map((function(e){return e.budget})).reduce((function(e,t){return e+t}));return e-t}return(0,o.useEffect)((function(){var e=i((function(e,t){var o=t.name;if(o){var i=n("body.milestones").length-1;if("body.milestones.0.start"===o&&r("body.projectDurationFrom",(0,rs.Yu)(Yv(n("body.milestones.0.start")))),o==="body.milestones.".concat(i,".end"))if(n("body.milestones.".concat(i,".recurring"))){var s=n("body.milestones.".concat(i,".start"));r("body.projectDurationTo",n("body.milestones.".concat(i,".duration"))?(0,rs.Yu)(zh(Yv(s),n("body.milestones.".concat(i,".duration")))):"")}else r("body.projectDurationTo",(0,rs.Yu)(n("body.milestones.".concat(i,".end"))));if(o.startsWith("body.milestones.")&&o.endsWith(".duration")){var l=+o.split(".")[2];!function(e,t){var o=Yv(n("body.milestones.".concat(e,".start")));isNaN(o.valueOf())||(o.setMonth(o.getMonth()+t),r("body.milestones.".concat(e,".end"),o.toISOString()))}(l,e.body.milestones[l].duration)}if(o.startsWith("body.milestones.")&&o.endsWith(".recurring")){var c=+o.split(".")[2];r("body.milestones.".concat(c,".duration"),null),r("body.milestones.".concat(c,".end"),""),n("body.milestones.".concat(c,".recurring"))?setTimeout((function(){a("body.milestones.".concat(c,".duration"))})):setTimeout((function(){a("body.milestones.".concat(c,".end"))}))}if(o.startsWith("body.milestones.")&&o.endsWith(".budget"))!function(e,t){if(0!==t){var n=t.body.milestones.map((function(e){return Number.parseFloat(e.budget)})),o=n.reduce((function(e,t){return e+t}));if(o>t.initialAmount){var i=o-t.initialAmount,a=n[e]-i;r("body.milestones.".concat(e,".budget"),a)}}}(+o.split(".")[2],e)}}));return function(){return e.unsubscribe()}}),[i]),(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(tn,{sx:{mb:5},children:(0,u.jsx)(nn.Z,{spacing:2,children:l.map((function(e,t){var r=n("body.milestones.".concat(t,".recurring")),o=n("body.milestones.".concat(t-1,".recurring"));return(0,u.jsx)(NZ,{elevation:0,sx:{position:"relative",border:"none",borderRaidus:.5,boxShadow:"1px 10px 30px rgba(56, 69, 114, 0.1)",p:3},children:(0,u.jsxs)(nn.Z,{direction:"row",children:[(0,u.jsx)(tn,{pr:1.5,pt:4,children:(0,u.jsx)(rn.Z,{variant:"bodySemiBold2",color:"primaryDark.500",children:t<9?"0".concat(t+1):t+1})}),(0,u.jsxs)(tn,{sx:{width:"100%"},children:[0!==t&&(0,u.jsx)(io.Z,{sx:{position:"absolute",right:15,top:30},onClick:function(){return c(t)},disabled:0===t,children:(0,u.jsx)(_xe.Z,{})}),(0,u.jsxs)(nn.Z,{pb:3,spacing:4,children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",children:[(0,u.jsx)(nn.Z,{width:"50%",sx:{paddingRight:.625},children:(0,u.jsx)(Zd,{name:"body.milestones.".concat(t,".name"),sx:{bgcolor:"common.white"},required:!0,label:"Milestone name"},e.id)}),(0,u.jsxs)(nn.Z,{spacing:1,direction:"row",alignItems:"center",sx:{ml:1.5,mt:3},children:[(0,u.jsx)(FOe,{name:"body.milestones.".concat(t,".recurring"),color:"secondary"},e.id),(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.500",children:"Recurring milestone"})]})]}),(0,u.jsx)(nn.Z,{sx:{alignItems:"start"},children:(0,u.jsxs)(kn,{container:!0,direction:"row",justifyContent:"center",alignItems:"start",spacing:3,children:[(0,u.jsxs)(kn,{item:!0,xs:6,children:[(0,u.jsx)(Cd,{required:!0,text:"Milestone duration"}),(0,u.jsxs)(nn.Z,{direction:{md:"column",lg:"row"},sx:{".MuiBox-root":{flex:1}},spacing:{md:0,lg:.5},children:[(0,u.jsxs)(nn.Z,{direction:{md:"column",lg:"row"},sx:{flex:1},children:[(0,u.jsx)(Cd,{sx:{overflow:"initial",marginRight:.5,mb:r?{md:0,lg:"27px"}:0},text:"From"}),(0,u.jsx)(Vw,{defaultCalendarMonth:n("body.milestones.".concat(t-1,".end"))?Yv(i("body.milestones.".concat(t-1,".end"))):null,components:{OpenPickerIcon:t4.Z},minDate:o?i("body.milestones.".concat(t-1,".start"))?zh(Yv(i("body.milestones.".concat(t-1,".start"))),n("body.milestones.".concat(t-1,".duration"))):null:i("body.milestones.".concat(t-1,".end"))?Yv(i("body.milestones.".concat(t-1,".end"))):null,maxDate:r?i("body.milestones.".concat(t,".end"))?zh(Yv(i("body.milestones.".concat(t,".end"))),n("body.milestones.".concat(t,".duration"))):null:i("body.milestones.".concat(t,".end"))?Yv(i("body.milestones.".concat(t,".end"))):null,name:"body.milestones.".concat(t,".start"),sx:{flex:1},inputProps:{style:{fontSize:"0.83rem"}},required:!0},e.id)]}),(0,u.jsxs)(nn.Z,{direction:{md:"column",lg:"row"},sx:{flex:1},children:[(0,u.jsx)(Cd,{sx:{overflow:"initial",mx:{md:"0 !important",lg:"8px !important"},whiteSpace:"pre",mb:r?{md:0,lg:"27px"}:0},text:r?"Number\nof months":"To"}),r?(0,u.jsx)(Hd,{name:"body.milestones.".concat(t,".duration"),required:!0,choices:T$.CY,sx:{flex:1,marginBottom:"-14px"}},e.id):(0,u.jsx)(Vw,{components:{OpenPickerIcon:t4.Z},required:!0,fullWidth:!0,defaultCalendarMonth:i("body.milestones.".concat(t,".start"))?Yv(i("body.milestones.".concat(t,".start"))):null,minDate:r?i("body.milestones.".concat(t,".start"))?zh(Yv(i("body.milestones.".concat(t,".start"))),i("body.milestones.".concat(t,".duration"))):null:i("body.milestones.".concat(t,".start"))?Yv(i("body.milestones.".concat(t,".start"))):null,maxDate:i("body.milestones.".concat(t+1,".start"))?Yv(i("body.milestones.".concat(t+1,".start"))):null,name:"body.milestones.".concat(t,".end"),sx:{flex:1},errorMessages:{minDate:"End date should be after start date"},inputProps:{style:{fontSize:"0.83rem"}}},e.id)]})]})]}),(0,u.jsx)(kn,{item:!0,sx:{paddingTop:0},xs:6,children:(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(nn.Z,{direction:"row",children:(0,u.jsx)(Cd,{required:!0,text:"Budget allocation"})}),(0,u.jsxs)(nn.Z,{spacing:3,direction:"row",alignItems:"center",sx:{mt:"8px !important"},children:[(0,u.jsx)(vDe,{index:t},e.id),(0,u.jsx)(mDe,{initialValue:i("body.milestones.".concat(t,".budget")),name:"body.milestones.".concat(t,".budget"),adornmentText:Kt.f.get(i("body.scope.currency"))},e.id)]}),!!i("body.milestones.".concat(t,".duration"))&&(0,u.jsx)(BOe,{index:t})]})})]})}),(0,u.jsx)(nn.Z,{children:(0,u.jsx)(Zd,{label:"Milestone summary",name:"body.milestones.".concat(t,".summary"),multiline:!0,sx:{bgcolor:"white"},minRows:5,placeholder:"Type",required:!0,variant:"outlined"},e.id)})]})]})]})},e.id)}))})}),(0,u.jsx)(nn.Z,{alignItems:"center",justifyContent:"center",children:(0,u.jsx)(Wo,{onClick:function(){p(),d({name:"",start:"",end:"",duration:null,budget:p(),summary:"",recurring:!1})},variant:"primaryText",startIcon:(0,u.jsx)(nn.Z,{sx:{width:"24px",height:"24px",backgroundColor:"primaryLight.500",borderRadius:"2px"},children:(0,u.jsx)(Jme.Z,{sx:{color:"#fff"}})}),sx:{border:"1px solid ".concat(tr.dx[100]),color:"primaryLight.500",bgcolor:"primaryDark.150",borderRadius:"4px",textTransform:"uppercase",fontSize:"12px",fontWeight:600,padding:"10px 12px",boxShadow:"6px 6px 15px rgba(".concat(tr.IV[600],", 0.1)"),"&:hover":{bgcolor:"primaryLight.100",borderColor:"transparent"}},children:"New Milestone"})})]})},yDe=function(){return(0,u.jsxs)(nn.Z,{sx:{backgroundColor:"primaryDark.150",p:3,color:"primaryDark.500",borderRadius:2,"& span":{display:"block"}},children:[(0,u.jsxs)(rn.Z,{variant:"body3",sx:{textAlign:"justify",pb:5},children:[(0,u.jsx)(rn.Z,{variant:"heading3",sx:{textAlign:"left"},children:"1. Payment Method"}),"Each Party agrees that the payment in the respect of the Seller for the services provided according to this Contract will be paid by the Buyer through the Top Digital Agency platform (hereinafter referred to as TDA). Once the Buyer approves the work and sends the funds to TDA, TDA will disburse the funds to the Seller. Invoices and due dates will be based on the payment schedule agreed upon between the Buyer and the Seller."]}),(0,u.jsxs)(rn.Z,{variant:"body3",sx:{textAlign:"justify",pb:5},children:[(0,u.jsx)(rn.Z,{variant:"heading3",sx:{textAlign:"left"},children:"2. No Partnership, No Agency"}),"Nothing in this Contract is intended to create any partnership or joint venture between the Parties."]}),(0,u.jsxs)(rn.Z,{variant:"body3",sx:{textAlign:"justify",pb:5},children:[(0,u.jsx)(rn.Z,{variant:"heading3",sx:{textAlign:"left"},children:"3. Warrants"}),"Each Party represents and warrants that it has the full right and power to enter into this Contract and that it is fully ready, willing, and able to perform all its obligations hereunder. Each Party further warrants that it has obtained or will obtain all necessary clearances, permissions, and/or releases as provided above."]}),(0,u.jsxs)(rn.Z,{variant:"body3",sx:{textAlign:"justify",pb:5},children:[(0,u.jsx)(rn.Z,{variant:"heading3",sx:{textAlign:"left"},children:"4. Indemnity"}),"Each Party shall indemnify, defend, and hold harmless the other Party against any and all Third Party claims, demands, proceedings, actions, orders, awards, judgments, liabilities, damages, losses, costs, charges and expenses (including without limitation, reasonable attorneys\u2019 fees), (hereinafter referred to as: \u2018\u2019Losses\u2019\u2019) to the extent such losses result from any:",(0,u.jsx)(rn.Z,{variant:"body3",sx:{p:1,pl:2,textAlign:"left"},children:"a. breach of any representation or warranty by the Indemnifying Party contained in this Contract,"}),(0,u.jsx)(rn.Z,{variant:"body3",sx:{p:1,pl:2,textAlign:"left"},children:"b. breach of any applicable law by such Indemnifying Party, or"}),(0,u.jsx)(rn.Z,{variant:"body3",sx:{p:1,pl:2,textAlign:"left"},children:"c. gross negligence or willful misconduct by such Indemnifying Party, its Affiliates, or their respective employees, Referrers, or Agents"})]}),(0,u.jsxs)(rn.Z,{variant:"body3",sx:{textAlign:"justify",pb:5},children:[(0,u.jsx)(rn.Z,{variant:"heading3",sx:{textAlign:"left"},children:"5. Limitation of Liability"}),"Under no circumstances shall either Party be liable to the other Party or any third Party for any damages resulting from actions taken by any part of this Contract such as, but not limited to, loss of revenue or anticipated profit or lost business, costs of delay or failure of delivery, which is not related to or the direct result of a Party\u2019s gross negligence or an intentional breach. Under no circumstances will either Party be liable to the other Party or any third Party for an amount greater than the aggregate amounts invoiced to the Buyer during the preceding 12 months. The foregoing limitations of liability will not apply to non-compliance with laws or other government requirements or in cases of illegal actions or acts, fraud, theft, or willful misconduct by either Party."]}),(0,u.jsxs)(rn.Z,{variant:"body3",sx:{textAlign:"justify",pb:5},children:[(0,u.jsx)(rn.Z,{variant:"heading3",sx:{textAlign:"left"},children:"6. Severability"}),"In the event, any provision of this Contract is deemed invalid or unenforceable, in whole or in part, that part shall be severed from the remainder of the Contract and all other provisions should continue in full force and effect as valid and enforceable."]}),(0,u.jsxs)(rn.Z,{variant:"body3",sx:{textAlign:"justify",pb:5},children:[(0,u.jsx)(rn.Z,{variant:"heading3",sx:{textAlign:"left"},children:"7. Waiver of Contractual Rights."}),"The failure of either Party to enforce any provision of this Contract shall not be construed as a waiver or limitation of that Party's right to subsequently enforce and compel strict compliance with every provision of this Contract."]}),(0,u.jsxs)(rn.Z,{variant:"body3",sx:{textAlign:"justify",pb:5,display:"block"},children:[(0,u.jsx)(rn.Z,{variant:"heading3",sx:{textAlign:"left"},children:"8. Dispute Resolution"}),(0,u.jsx)(rn.Z,{variant:"body3",sx:{p:2,textAlign:"left"},children:"8.1. Attempt to Amicably Resolve Disputes"}),"If any dispute, controversy, or claim is initiated by either Party arising out of, resulting from or relating in any way to this Contract, the Parties agree to try in good faith to resolve such dispute. If such dispute, controversy or claim cannot be resolved amicably the parties agree on governing law and jurisdiction as follows."]})]})},bDe=function(e){var t=e.isAnnex;return(0,u.jsx)(nn.Z,{width:"50%",alignItems:"start",children:(0,u.jsx)(MOe,{name:"body.jurisdiction",defaultValue:null,label:"Country",required:!0,fullWidth:!0,placeholder:"Select country",disabled:t,choices:(0,rs.hR)(),sx:{width:"100%"}})})},xDe=function(e){var t=e.userType,n=e.buyer,r=e.seller,i=Xc().trigger;return(0,o.useEffect)((function(){i(["buyerApproved","sellerApproved"])}),[t]),(0,u.jsx)(nn.Z,{alignItems:"center",children:(0,u.jsxs)(kn,{container:!0,spacing:3,children:[(0,u.jsx)(kn,{sx:{borderRight:"1px solid ".concat(tr.dx[100]),pr:2.5,py:3},item:!0,xs:6,children:(0,u.jsxs)(nn.Z,{spacing:1,children:[(0,u.jsxs)(rn.Z,{sx:{lineSpacing:1},children:[(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.500",mb:1,children:"Buyer"}),(0,u.jsx)(Cme,{displayName:"name",resource:"companies",id:n,sx:{fontSize:"16px",fontWeight:400,color:"primaryDark.600"}})]}),(0,u.jsx)(NZ,{sx:{px:3,py:4,border:"1px solid ".concat(t===Kt.ks.SellerService||t===Kt.ks.SellerTool?tr.dx[100]:tr.so[500]),borderRadius:1.5,boxShadow:"none !important"},elevation:2,children:(0,u.jsx)(R4,{name:"buyerApproved",color:"secondary",disabled:t===Kt.ks.SellerService||t===Kt.ks.SellerTool,required:void 0===t||t===Kt.ks.Buyer,label:(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.600",children:"I accept the terms of the Contract"})})})]})}),(0,u.jsx)(kn,{sx:{pl:2.5,py:3},item:!0,xs:6,children:(0,u.jsxs)(nn.Z,{spacing:1,children:[(0,u.jsxs)(rn.Z,{sx:{lineSpacing:1},children:[(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.500",mb:1,children:"Seller"}),(0,u.jsx)(Cme,{displayName:"name",resource:"companies",id:r,sx:{fontSize:"16px",fontWeight:400,color:"primaryDark.600"}})]}),(0,u.jsx)(NZ,{sx:{px:3,py:4,border:"1px solid ".concat(t===Kt.ks.Buyer?tr.dx[100]:tr.so[500]),borderRadius:1.5,boxShadow:"none !important"},elevation:2,children:(0,u.jsx)(R4,{name:"sellerApproved",color:"secondary",disabled:t===Kt.ks.Buyer,required:t===Kt.ks.SellerService||t===Kt.ks.SellerTool,sx:{fontSize:"12px"},label:(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.600",children:"I accept the terms of the Contract"})})})]})})]})})},wDe=n(70011),CDe=function(){return(0,u.jsx)(Fd.Z,{icon:(0,u.jsx)(wDe.Z,{sx:{fontSize:"18px !important",color:"".concat(tr.IV[500]," !important")}}),label:"Locked",sx:{ml:2,px:.25,py:0,height:24,borderRadius:"3px",color:"primaryDark.500",fontSize:"11px"}})},jDe=function(e){var t=e.text,n=e.sx;return(0,u.jsx)(rn.Z,{variant:"heading4",fontSize:"1.5rem",sx:(0,l.Z)({},n),children:t})},SDe=function(e){var t=e.text,n=e.sx;return(0,u.jsx)(rn.Z,{fontSize:"1rem",sx:(0,l.Z)({},n),children:t})},kDe=function(e){var t=e.isLocked,n=e.title,r=e.subtitle,o=e.children,i=e.titleAdornment;return(0,u.jsxs)(nn.Z,{sx:{py:2.5,position:"relative",marginTop:"0 !important"},children:[(0,u.jsxs)(nn.Z,{sx:{p:3},children:[(0,u.jsx)(nn.Z,{sx:{pb:5},children:(0,u.jsxs)(nn.Z,{direction:"column",spacing:1,children:[(0,u.jsxs)(nn.Z,{direction:"row",spacing:1,alignItems:"center",children:[(0,u.jsx)(jDe,{sx:{textTransform:"uppercase",fontWeight:"600",color:"primaryDark.600",fontSize:28},text:(0,u.jsx)(nn.Z,{children:n})}),i,t&&(0,u.jsx)(CDe,{})]}),(0,u.jsx)(SDe,{text:r,sx:{marginTop:1,color:"primaryDark.500",fontSize:"12px",textTransform:"uppercase"}})]})}),(0,u.jsx)(nn.Z,{children:o})]}),(0,u.jsx)(nn.Z,{sx:{position:"absolute",bottom:0,height:40,width:"100%",background:"linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, ".concat(tr.IV[200]," 100%)"),borderBottom:"1px solid ".concat(tr.dx[100]),transform:"translateY(100%) rotate(-180deg)"}})]})},ZDe=function(e){return Math.max(0,e)},ODe=function(e,t,n){return e>=t&&e<=n},EDe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(0,o.useState)(0),r=(0,Le.Z)(n,2),i=r[0],a=r[1];return(0,o.useLayoutEffect)((function(){var n=function(){var n=window.pageYOffset,r=e.map((function(e,r){if(!e)return{i:r,top:-1,bottom:-1};var o=e.getBoundingClientRect();return{i:r,top:ZDe(o.top+n-t),bottom:ZDe(o.bottom+n-t)}})).find((function(e){var t=e.top,r=e.bottom;return ODe(n,t,r)}));r&&a(null===r||void 0===r?void 0:r.i)};return n(),window.addEventListener("resize",n),window.addEventListener("scroll",n),function(){window.removeEventListener("resize",n),window.removeEventListener("scroll",n)}}),[e,t]),i},DDe=function(e){var t,n,r=e.sx,i=Yd(),a=(0,o.useState)(!1),s=(0,Le.Z)(a,2),c=s[0],d=s[1],p=(0,o.useState)(!1),f=(0,Le.Z)(p,2),h=f[0],m=f[1],v=(0,o.useState)(!1),g=(0,Le.Z)(v,2),y=g[0],b=g[1],x=(0,o.useState)(!1),w=(0,Le.Z)(x,2),C=w[0],j=w[1],S=(0,ze.s0)(),k=null===i||void 0===i?void 0:i[0],Z=(0,ze.UO)(),O=Z.contractId,E=Z.projectId,D=Ra({resource:"projects",id:E,enabled:!!E}).data,P=fd({defaultValues:fOe,mode:"all"}),A=P.setValue,M=P.formState,T=P.reset,I=P.getValues,R=P.control,F=P.getFieldState,B=P.trigger,L=function(e){return e.map((function(e){return e.budget})).reduce((function(e,t){return e+t}))},N=Ra({resource:"contracts",id:O,onSuccess:function(e){var t,n=null===e||void 0===e?void 0:e[0].body.milestones,r=n.length-1;T((0,l.Z)((0,l.Z)({},null===e||void 0===e?void 0:e[0]),{},{initialAmount:L(n),body:(0,l.Z)((0,l.Z)({},null===e||void 0===e?void 0:e[0].body),{},{projectDurationFrom:(0,rs.Yu)(n[0].start),projectDurationTo:n[r].recurring?(0,rs.Yu)(zh(new Date(n[r].start),null!==(t=n[r].duration)&&void 0!==t?t:0)):(0,rs.Yu)(n[r].end)})}),{keepTouched:!0}),B(Array.prototype.concat.apply([],ee.map((function(e){return e.fieldNames}))))},enabled:void 0!==O,refetchOnWindowFocus:!1}),_=N.data,z=oa({resource:"/contracts"}),H=z.mutate,W=z.isLoading,V=(0,As.Z)({resource:"/contracts"}),U=V.mutate,q=V.isLoading,G=cu({control:R,name:"buyerApproved"}),Y=cu({control:R,name:"sellerApproved"}),K=W||q;(0,o.useEffect)((function(){M.dirtyFields.body&&(G&&"seller_service"===k&&A("buyerApproved",!1),Y&&"buyer"===k&&A("sellerApproved",!1))}),[M]);var J=(0,o.useRef)([]),X=EDe(J.current,600);(0,o.useEffect)((function(){X>=3&&j(!0)}),[X]);var Q=function(){var e=I();O?U({data:e,id:O},{onSuccess:function(e){G&&Y&&void 0===M.dirtyFields.body?m(!1):b(!1),S("../project/".concat(E))}}):H((0,l.Z)((0,l.Z)({},e),{},{project:E}),{onSuccess:function(e){d(!1),S("../project/".concat(E))}})},$=null!==(t=null===(n=function(){var e=null===_||void 0===_?void 0:_.name,t=null===_||void 0===_?void 0:_.status;return"Contract"!==e||t!==Kt.Ru.Active&&t!==Kt.Ru.Accepted?"Contract"!==e&&t===Kt.Ru.Accepted?function(){var e=null===_||void 0===_?void 0:_.name.split(" "),t=null===e||void 0===e?void 0:e[1];return"Annex ".concat(parseInt(t)+1)}():e:"Annex 1"}())||void 0===n?void 0:n.includes("Annex"))&&void 0!==t&&t,ee=[{title:"Company details",subtitle:"information relating to the parties involved in the upcoming project.",content:(0,u.jsx)(EOe,{isAnnex:$,userType:k}),fieldNames:["body.buyer","body.seller"]},{title:"Project overview",subtitle:"A SUMMARY OF KEY PROJECT DETAILS including GOALS, TIMELINE AND BUDGET.",content:(0,u.jsx)(TOe,{}),fieldNames:["body.scope"]},{title:"Scope of work",subtitle:"MILESTONES MARKING SPECIFIC PHASES OF WORK ALONG THE PROJECT TIMELINE.",content:(0,u.jsx)(Eh,{dateAdapter:vg,children:(0,u.jsx)(gDe,{})}),fieldNames:["body.milestones"]},{title:"Legal",subtitle:"This section of the contract contains predetermined provisions. By signing this contract, you are accepting these terms.",content:(0,u.jsx)(yDe,{})},{title:"Jurisdiction",subtitle:"this contract and any dispute or claim arising out or in connection with it shall be governed by the laws and subject to the exclusive jurisdiction of the competent courts of:",content:(0,u.jsx)(bDe,{isAnnex:$}),fieldNames:["body.jurisdiction"],tooltipText:"Almost every Internet activity has an international aspect that could lead to multiple jurisdictions. By stipulating the governing law and jurisdiction, contracting parties avoid the uncertainty that might occur in case of a dispute."},{title:"Signatures",subtitle:"this contract be approved and signed when all the conditions have been confirmed and approved by both parties.",content:(0,u.jsx)(xDe,{userType:k,seller:null===D||void 0===D?void 0:D.seller,buyer:null===D||void 0===D?void 0:D.buyer}),fieldNames:["buyerApproved","sellerApproved"]}],te=Bn(ir.breakpoints.down("lg"));(0,o.useEffect)((function(){B(Array.prototype.concat.apply([],ee.map((function(e){return e.fieldNames}))))}),[]);var ne=function(){return(0,u.jsx)(u.Fragment,{children:G&&Y&&void 0===M.dirtyFields.body&&(null===_||void 0===_?void 0:_.status)!==Kt.Ru.Accepted?(0,u.jsx)(Wo,{onClick:function(){return m(!0)},variant:"primary",fullWidth:!0,loading:K,endIcon:(0,u.jsx)(Kw,{fill:"#fff"}),children:"Sign"}):(0,u.jsx)(Wo,{variant:"primary",disabled:!M.isValid||!C,fullWidth:!0,onClick:function(){O?b(!0):d(!0)},endIcon:(0,u.jsx)(pOe,{}),loading:K,children:"Submit"})})};return(0,u.jsxs)(nn.Z,{sx:(0,l.Z)((0,l.Z)({},r),{},{position:"relative"}),spacing:15,direction:"row",children:[(0,u.jsxs)(nn.Z,{direction:"column",spacing:3,width:"100%",children:[(0,u.jsxs)(nn.Z,{direction:"row",sx:{alignItems:"center",pl:3,pt:3},children:[(0,u.jsx)(io.Z,{sx:{border:"1px solid",borderColor:"primaryDark.300",mr:1.5,width:45,height:45},onClick:function(){return S(-1)},children:(0,u.jsx)(tSe,{sx:{height:"0.75em"}})}),(0,u.jsx)(rn.Z,{variant:"heading3",color:"primaryDark.300",children:"back"})]}),(0,u.jsx)(nn.Z,{direction:"row",spacing:8,sx:{justifyContent:"space-between"},children:(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},P),{},{children:(0,u.jsx)("form",{children:(0,u.jsxs)(nn.Z,{spacing:2,children:[ee.map((function(e,t){var n=e.title,r=e.subtitle,o=e.content,i=e.tooltipText;return(0,u.jsx)(nn.Z,{ref:function(e){return J.current[t]=e},children:(0,u.jsx)(kDe,{title:n,subtitle:r,titleAdornment:i?(0,u.jsx)(ns,{title:i,children:(0,u.jsx)(G0,{fill:tr.IV[500]})}):null,children:o})})})),(0,u.jsx)(nn.Z,{direction:"row",sx:{alignSelf:"end",pt:3}}),(0,u.jsx)(gOe,{handleSubmitCreate:Q,isOpen:c,isLoading:K,setIsOpen:d}),(0,u.jsx)(xOe,{handleSubmitCreate:Q,isOpen:h,isLoading:K,setIsOpen:m}),(0,u.jsx)(ZOe,{isAnnex:$,handleSubmitCreate:Q,isOpen:y,isLoading:K,setIsOpen:b}),(0,u.jsx)(nn.Z,{width:"160px",alignSelf:"end",children:te&&(0,u.jsx)(ne,{})})]})})}))})]}),!te&&(0,u.jsxs)(nn.Z,{sx:{p:1,borderRadius:.875,bgcolor:"transparent",border:"none",position:"fixed",left:"82%",width:"20%",ml:"0 !important"},children:[(0,u.jsx)(mOe,{onClickStep:function(e){J.current[e].scrollIntoView({behavior:"smooth",block:"start"})},stepperValue:ee.map((function(e,t){var n;return{label:e.title,completed:3==t?C:!(null!==(n=e.fieldNames)&&void 0!==n&&n.find((function(e){return F(e).invalid}))),active:X===t}}))}),(0,u.jsx)(nn.Z,{sx:{marginTop:3.5,width:160},children:(0,u.jsx)(ne,{})})]})]})},PDe=n(78319);function ADe(e){return(0,F.Z)("MuiSnackbarContent",e)}(0,R.Z)("MuiSnackbarContent",["root","message","action"]);var MDe=["action","className","message","role"],TDe=(0,P.ZP)(ao.Z,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){var n=e.theme,o="light"===n.palette.mode?.8:.98,i=(0,A._4)(n.palette.background.default,o);return(0,r.Z)({},n.typography.body2,(0,t.Z)({color:n.vars?n.vars.palette.SnackbarContent.color:n.palette.getContrastText(i),backgroundColor:n.vars?n.vars.palette.SnackbarContent.bg:i,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(n.vars||n).shape.borderRadius,flexGrow:1},n.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288}))})),IDe=(0,P.ZP)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:function(e,t){return t.message}})({padding:"8px 0"}),RDe=(0,P.ZP)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:function(e,t){return t.action}})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),FDe=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiSnackbarContent"}),o=n.action,i=n.className,a=n.message,s=n.role,l=void 0===s?"alert":s,c=(0,b.Z)(n,MDe),d=n,p=function(e){var t=e.classes;return(0,M.Z)({root:["root"],action:["action"],message:["message"]},ADe,t)}(d);return(0,u.jsxs)(TDe,(0,r.Z)({role:l,square:!0,elevation:6,className:(0,y.default)(p.root,i),ownerState:d,ref:t},c,{children:[(0,u.jsx)(IDe,{className:p.message,ownerState:d,children:a}),o?(0,u.jsx)(RDe,{className:p.action,ownerState:d,children:o}):null]}))})),BDe=FDe;function LDe(e){return(0,F.Z)("MuiSnackbar",e)}(0,R.Z)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);var NDe=["onEnter","onExited"],_De=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],zDe=(0,P.ZP)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["anchorOrigin".concat((0,Zn.Z)(n.anchorOrigin.vertical)).concat((0,Zn.Z)(n.anchorOrigin.horizontal))]]}})((function(e){var n=e.theme,o=e.ownerState;return(0,r.Z)({zIndex:(n.vars||n).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===o.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===o.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===o.anchorOrigin.horizontal&&{justifyContent:"flex-end"},(0,t.Z)({},n.breakpoints.up("sm"),(0,r.Z)({},"top"===o.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===o.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===o.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===o.anchorOrigin.horizontal&&{right:24,left:"auto"})))})),HDe=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiSnackbar"}),i=(0,j.Z)(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},s=n.action,l=n.anchorOrigin,c=(l=void 0===l?{vertical:"bottom",horizontal:"left"}:l).vertical,d=l.horizontal,p=n.autoHideDuration,f=void 0===p?null:p,h=n.children,m=n.className,v=n.ClickAwayListenerProps,g=n.ContentProps,y=n.disableWindowBlurListener,x=void 0!==y&&y,w=n.message,C=n.open,S=n.TransitionComponent,k=void 0===S?xy.Z:S,Z=n.transitionDuration,O=void 0===Z?a:Z,E=n.TransitionProps,D=(E=void 0===E?{}:E).onEnter,P=E.onExited,A=(0,b.Z)(n.TransitionProps,NDe),I=(0,b.Z)(n,_De),R=(0,r.Z)({},n,{anchorOrigin:{vertical:c,horizontal:d},autoHideDuration:f,disableWindowBlurListener:x,TransitionComponent:k,transitionDuration:O}),F=function(e){var t=e.classes,n=e.anchorOrigin,r={root:["root","anchorOrigin".concat((0,Zn.Z)(n.vertical)).concat((0,Zn.Z)(n.horizontal))]};return(0,M.Z)(r,LDe,t)}(R),B=function(e){var t=e.autoHideDuration,n=void 0===t?null:t,i=e.disableWindowBlurListener,a=void 0!==i&&i,s=e.onClose,l=e.open,c=e.resumeHideDuration,u=o.useRef();o.useEffect((function(){if(l)return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==s||s(e,"escapeKeyDown")}}),[l,s]);var d=(0,_s.Z)((function(e,t){null==s||s(e,t)})),p=(0,_s.Z)((function(e){s&&null!=e&&(clearTimeout(u.current),u.current=setTimeout((function(){d(null,"timeout")}),e))}));o.useEffect((function(){return l&&p(n),function(){clearTimeout(u.current)}}),[l,n,p]);var f=function(){clearTimeout(u.current)},h=o.useCallback((function(){null!=n&&p(null!=c?c:.5*n)}),[n,c,p]),m=function(e){return function(t){var n=e.onBlur;null==n||n(t),h()}},v=function(e){return function(t){var n=e.onFocus;null==n||n(t),f()}},g=function(e){return function(t){var n=e.onMouseEnter;null==n||n(t),f()}},y=function(e){return function(t){var n=e.onMouseLeave;null==n||n(t),h()}};return o.useEffect((function(){if(!a&&l)return window.addEventListener("focus",h),window.addEventListener("blur",f),function(){window.removeEventListener("focus",h),window.removeEventListener("blur",f)}}),[a,h,l]),{getRootProps:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(0,PDe.Z)(e),o=(0,r.Z)({},n,t);return(0,r.Z)({role:"presentation"},o,{onBlur:m(o),onFocus:v(o),onMouseEnter:g(o),onMouseLeave:y(o)})},onClickAway:function(e){null==s||s(e,"clickaway")}}}((0,r.Z)({},R)),L=B.getRootProps,N=B.onClickAway,_=o.useState(!0),z=(0,Le.Z)(_,2),H=z[0],W=z[1],V=(0,Ts.Z)({elementType:zDe,getSlotProps:L,externalForwardedProps:I,ownerState:R,additionalProps:{ref:t},className:[F.root,m]});return!C&&H?null:(0,u.jsx)(U.Z,(0,r.Z)({onClickAway:N},v,{children:(0,u.jsx)(zDe,(0,r.Z)({},V,{children:(0,u.jsx)(k,(0,r.Z)({appear:!0,in:C,timeout:O,direction:"top"===c?"down":"up",onEnter:function(e,t){W(!1),D&&D(e,t)},onExited:function(e){W(!0),P&&P(e)}},A,{children:h||(0,u.jsx)(BDe,(0,r.Z)({message:w,action:s},g))}))}))}))})),WDe=HDe;function VDe(e){return(0,F.Z)("MuiAlert",e)}var UDe=(0,R.Z)("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),qDe=(0,pa.Z)((0,u.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),GDe=(0,pa.Z)((0,u.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),YDe=(0,pa.Z)((0,u.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),KDe=(0,pa.Z)((0,u.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),JDe=n(95801),XDe=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],QDe=(0,P.ZP)(ao.Z,{name:"MuiAlert",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],t["".concat(n.variant).concat((0,Zn.Z)(n.color||n.severity))]]}})((function(e){var n=e.theme,o=e.ownerState,i="light"===n.palette.mode?A._j:A.$n,a="light"===n.palette.mode?A.$n:A._j,s=o.color||o.severity;return(0,r.Z)({},n.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},s&&"standard"===o.variant&&(0,t.Z)({color:n.vars?n.vars.palette.Alert["".concat(s,"Color")]:i(n.palette[s].light,.6),backgroundColor:n.vars?n.vars.palette.Alert["".concat(s,"StandardBg")]:a(n.palette[s].light,.9)},"& .".concat(UDe.icon),n.vars?{color:n.vars.palette.Alert["".concat(s,"IconColor")]}:{color:n.palette[s].main}),s&&"outlined"===o.variant&&(0,t.Z)({color:n.vars?n.vars.palette.Alert["".concat(s,"Color")]:i(n.palette[s].light,.6),border:"1px solid ".concat((n.vars||n).palette[s].light)},"& .".concat(UDe.icon),n.vars?{color:n.vars.palette.Alert["".concat(s,"IconColor")]}:{color:n.palette[s].main}),s&&"filled"===o.variant&&(0,r.Z)({fontWeight:n.typography.fontWeightMedium},n.vars?{color:n.vars.palette.Alert["".concat(s,"FilledColor")],backgroundColor:n.vars.palette.Alert["".concat(s,"FilledBg")]}:{backgroundColor:"dark"===n.palette.mode?n.palette[s].dark:n.palette[s].main,color:n.palette.getContrastText(n.palette[s].main)}))})),$De=(0,P.ZP)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:function(e,t){return t.icon}})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),ePe=(0,P.ZP)("div",{name:"MuiAlert",slot:"Message",overridesResolver:function(e,t){return t.message}})({padding:"8px 0",minWidth:0,overflow:"auto"}),tPe=(0,P.ZP)("div",{name:"MuiAlert",slot:"Action",overridesResolver:function(e,t){return t.action}})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),nPe={success:(0,u.jsx)(qDe,{fontSize:"inherit"}),warning:(0,u.jsx)(GDe,{fontSize:"inherit"}),error:(0,u.jsx)(YDe,{fontSize:"inherit"}),info:(0,u.jsx)(KDe,{fontSize:"inherit"})},rPe=o.forwardRef((function(e,t){var n,o,i,a,s,l,c=(0,T.Z)({props:e,name:"MuiAlert"}),d=c.action,p=c.children,f=c.className,h=c.closeText,m=void 0===h?"Close":h,v=c.color,g=c.components,x=void 0===g?{}:g,w=c.componentsProps,C=void 0===w?{}:w,j=c.icon,S=c.iconMapping,k=void 0===S?nPe:S,Z=c.onClose,O=c.role,E=void 0===O?"alert":O,D=c.severity,P=void 0===D?"success":D,A=c.slotProps,I=void 0===A?{}:A,R=c.slots,F=void 0===R?{}:R,B=c.variant,L=void 0===B?"standard":B,N=(0,b.Z)(c,XDe),_=(0,r.Z)({},c,{color:v,severity:P,variant:L}),z=function(e){var t=e.variant,n=e.color,r=e.severity,o=e.classes,i={root:["root","".concat(t).concat((0,Zn.Z)(n||r)),"".concat(t)],icon:["icon"],message:["message"],action:["action"]};return(0,M.Z)(i,VDe,o)}(_),H=null!=(n=null!=(o=F.closeButton)?o:x.CloseButton)?n:io.Z,W=null!=(i=null!=(a=F.closeIcon)?a:x.CloseIcon)?i:JDe.Z,V=null!=(s=I.closeButton)?s:C.closeButton,U=null!=(l=I.closeIcon)?l:C.closeIcon;return(0,u.jsxs)(QDe,(0,r.Z)({role:E,elevation:0,ownerState:_,className:(0,y.default)(z.root,f),ref:t},N,{children:[!1!==j?(0,u.jsx)($De,{ownerState:_,className:z.icon,children:j||k[P]||nPe[P]}):null,(0,u.jsx)(ePe,{ownerState:_,className:z.message,children:p}),null!=d?(0,u.jsx)(tPe,{ownerState:_,className:z.action,children:d}):null,null==d&&Z?(0,u.jsx)(tPe,{ownerState:_,className:z.action,children:(0,u.jsx)(H,(0,r.Z)({size:"small","aria-label":m,title:m,color:"inherit",onClick:Z},V,{children:(0,u.jsx)(W,(0,r.Z)({fontSize:"small"},U))}))}):null]}))})),oPe=rPe;var iPe,aPe=n.p+"static/media/pitches.6d81b907dc4e93dc332dd86113319916.svg",sPe=n(94258),lPe=["title","titleId"];function cPe(){return cPe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cPe.apply(this,arguments)}function uPe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function dPe(e,t){var n=e.title,r=e.titleId,i=uPe(e,lPe);return o.createElement("svg",cPe({width:18,height:17,viewBox:"0 0 18 17",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,iPe||(iPe=o.createElement("path",{d:"M13.1635 0.127625C12.9427 0.127625 12.721 0.205963 12.5644 0.361797C12.101 0.825131 10.4335 2.49265 10.0635 2.86348L2.55912 10.3677L1.72538 11.201C1.60896 11.3177 1.54921 11.4827 1.51696 11.6443L0.683125 15.8135C0.566458 16.3968 1.06379 16.8935 1.64721 16.7776C2.16829 16.6726 5.29504 16.0477 5.81612 15.9435C5.97754 15.911 6.14271 15.851 6.25904 15.7352L7.09287 14.901L14.5969 7.39682C14.9677 7.02682 16.6352 5.35846 17.0985 4.89595C17.2544 4.73929 17.3327 4.51763 17.3327 4.29679C17.3327 2.93262 16.9852 1.95762 16.2644 1.22178C15.5369 0.479282 14.5652 0.127625 13.1635 0.127625ZM13.4919 1.81011C14.2444 1.85428 14.7319 2.02682 15.066 2.36848C15.4077 2.71682 15.6235 3.20015 15.6702 3.93765C15.2135 4.39348 14.5452 5.05178 13.9977 5.59928C13.3369 4.93845 12.5219 4.12348 11.861 3.46264C12.4094 2.91514 13.036 2.26595 13.4919 1.81011ZM3.15846 12.1652L5.29504 14.3018L5.21687 14.3802C4.66687 14.4902 3.55621 14.7227 2.53312 14.9277L3.08029 12.2435L3.15846 12.1652Z",fill:"current"})))}var pPe,fPe=o.forwardRef(dPe),hPe=(n.p,["title","titleId"]);function mPe(){return mPe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mPe.apply(this,arguments)}function vPe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function gPe(e,t){var n=e.title,r=e.titleId,i=vPe(e,hPe);return o.createElement("svg",mPe({width:16,height:16,viewBox:"0 0 16 16",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,pPe||(pPe=o.createElement("path",{d:"M4.66471 0.445313C3.60805 0.445313 2.66805 1.11536 2.29472 2.14114L1.33138 2.115C0.87138 2.115 0.498047 2.48885 0.498047 2.94985C0.498047 3.41094 0.87138 3.7847 1.33138 3.7847H2.16471V5.45439H1.33138C0.87138 5.45439 0.498047 5.82823 0.498047 6.28924C0.498047 6.75032 0.87138 7.12408 1.33138 7.12408H2.16471V8.79377H1.33138C0.87138 8.79377 0.498047 9.16761 0.498047 9.62862C0.498047 10.0897 0.87138 10.4635 1.33138 10.4635H2.16471V12.1332H1.33138C0.87138 12.1332 0.498047 12.507 0.498047 12.968C0.498047 13.4291 0.87138 13.8029 1.33138 13.8028H2.32138C2.60555 14.7304 3.60805 15.4727 4.66471 15.4725H12.998C14.3789 15.4725 15.498 14.3514 15.498 12.968V2.94985C15.498 1.56668 14.3789 0.445229 12.998 0.445313H4.66471ZM6.33138 3.7847H11.3314C11.7914 3.78478 12.1647 4.15854 12.1647 4.61954C12.1647 5.08063 11.7914 5.45439 11.3314 5.45439H6.33138C5.87138 5.45439 5.49805 5.08063 5.49805 4.61954C5.49805 4.15854 5.87138 3.7847 6.33138 3.7847ZM6.33138 7.12408H11.3314C11.7914 7.12417 12.1647 7.49793 12.1647 7.95893C12.1647 8.42001 11.7914 8.79377 11.3314 8.79377H6.33138C5.87138 8.79377 5.49805 8.42001 5.49805 7.95893C5.49805 7.49793 5.87138 7.12408 6.33138 7.12408ZM6.33138 10.4635H9.66471C10.1247 10.4635 10.498 10.8373 10.498 11.2983C10.498 11.7594 10.1247 12.1332 9.66471 12.1332H6.33138C5.87138 12.1332 5.49805 11.7594 5.49805 11.2983C5.49805 10.8373 5.87138 10.4635 6.33138 10.4635Z",fill:"current"})))}var yPe,bPe=o.forwardRef(gPe),xPe=(n.p,["title","titleId"]);function wPe(){return wPe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wPe.apply(this,arguments)}function CPe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function jPe(e,t){var n=e.title,r=e.titleId,i=CPe(e,xPe);return o.createElement("svg",wPe({width:17,height:18,viewBox:"0 0 17 18",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,yPe||(yPe=o.createElement("path",{d:"M8.16601 0.626953C6.78526 0.626953 5.6661 1.74362 5.66601 3.12695V4.01237H4.83268C4.0706 3.9817 2.90093 4.47954 2.46285 5.70512L1.49935 5.67903C1.0391 5.67903 0.665932 6.05128 0.666016 6.51237C0.666016 6.97345 1.0391 7.34612 1.49935 7.34612H2.33268V8.17945H1.49935C1.0391 8.17945 0.665932 8.55112 0.666016 9.01279C0.666016 9.47362 1.0391 9.84529 1.49935 9.84612H2.33268V10.6795H1.49935C1.0391 10.6795 0.665932 11.0511 0.666016 11.5128C0.666016 11.9736 1.0391 12.3461 1.49935 12.3461H2.33268V13.1795H1.49935C1.0391 13.1795 0.665932 13.5511 0.666016 14.0128C0.666016 14.4736 1.0391 14.8461 1.49935 14.8461H2.33268C2.33268 16.2261 3.45193 17.3461 4.83268 17.3461H10.666C12.0468 17.3461 13.166 16.2261 13.166 14.8461V14.0128L13.9993 13.9861C15.3801 13.9861 16.4993 12.8694 16.4993 11.4861V3.12695C16.4993 1.7437 15.38 0.626786 13.9993 0.626953H8.16601ZM13.9993 2.29362C14.4596 2.29362 14.8328 2.66587 14.8327 3.12695V11.4603C14.8327 11.9211 14.4596 12.2936 13.9993 12.2936L13.166 12.3194V6.51237C13.166 5.13162 12.0468 4.01237 10.666 4.01237H7.33268V3.15304C7.33268 2.69196 7.70576 2.31962 8.16601 2.31971L13.9993 2.29362Z",fill:"current"})))}var SPe,kPe=o.forwardRef(jPe),ZPe=(n.p,["title","titleId"]);function OPe(){return OPe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OPe.apply(this,arguments)}function EPe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function DPe(e,t){var n=e.title,r=e.titleId,i=EPe(e,ZPe);return o.createElement("svg",OPe({width:18,height:14,viewBox:"0 0 18 14",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,SPe||(SPe=o.createElement("path",{d:"M4.83268 0.255859L1.23935 1.48002C0.901019 1.59502 0.666016 1.9042 0.666016 2.26086C0.666016 3.51086 0.666016 11.0109 0.666016 12.2609C0.666016 12.83 1.22019 13.2225 1.76019 13.0425L4.83268 11.9225V0.255859ZM6.49935 0.255859V11.9225L11.4993 13.5892V1.92253L6.49935 0.255859ZM16.2394 0.829183L13.166 1.92253V13.5892L16.7602 12.3909C17.1002 12.2775 17.3327 11.9684 17.3327 11.61V1.61003C17.3327 1.04253 16.7777 0.651683 16.2394 0.829183Z",fill:"current"})))}var PPe,APe=o.forwardRef(DPe),MPe=(n.p,["title","titleId"]);function TPe(){return TPe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TPe.apply(this,arguments)}function IPe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function RPe(e,t){var n=e.title,r=e.titleId,i=IPe(e,MPe);return o.createElement("svg",TPe({width:15,height:18,viewBox:"0 0 15 18",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,PPe||(PPe=o.createElement("path",{d:"M8.34111 0.627625C6.76861 0.627625 5.20861 1.22761 4.00861 2.42511L2.23444 4.19594C1.90777 4.52094 1.90777 5.04177 2.23444 5.36761C2.56027 5.69261 3.08277 5.69261 3.40861 5.36761L5.1828 3.59678C6.9303 1.85261 9.75112 1.85345 11.4986 3.59678L11.5245 3.62261C13.272 5.36594 13.272 8.18093 11.5245 9.92509L6.59279 14.8468C5.53612 15.9001 3.86279 15.8634 2.82279 14.8692L2.76944 14.8092C1.71361 13.7551 1.73029 12.0526 2.78612 10.9984L7.58446 6.22678C7.94946 5.86261 8.52362 5.86261 8.88862 6.22678C9.25363 6.59094 9.25363 7.16427 8.88862 7.52926L3.90029 12.5276C3.57363 12.8534 3.57363 13.4001 3.90029 13.7259C4.22613 14.0509 4.7728 14.0201 5.07863 13.7268L10.0895 8.72677C11.107 7.71177 11.107 6.04427 10.0895 5.02927C9.58113 4.52094 8.90277 4.27345 8.23611 4.27345C7.56944 4.27345 6.89195 4.52094 6.38361 5.02927L1.46362 9.97758C1.37778 10.0634 1.31444 10.1584 1.22527 10.2651C-0.0638933 11.9751 0.0294499 14.4493 1.58945 16.0059C3.29779 17.7109 6.05862 17.7234 7.76695 16.0184L12.6986 11.0968C15.0986 8.70177 15.0986 4.81927 12.6986 2.42511C11.4995 1.22761 9.91361 0.627625 8.34111 0.627625Z",fill:"current"})))}var FPe,BPe,LPe=o.forwardRef(RPe),NPe=(n.p,["title","titleId"]);function _Pe(){return _Pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_Pe.apply(this,arguments)}function zPe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function HPe(e,t){var n=e.title,r=e.titleId,i=zPe(e,NPe);return o.createElement("svg",_Pe({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,FPe||(FPe=o.createElement("path",{d:"M9.99935 1.66667C5.39685 1.66667 1.66602 5.39751 1.66602 10C1.66602 10.9267 1.89352 11.8425 2.18685 12.7083L1.90019 13.9583C1.19769 16.7683 3.17185 18.8033 5.98935 18.0992L7.21269 17.8125C8.10769 18.125 9.07018 18.3333 9.99935 18.3333C14.6018 18.3333 18.3327 14.6025 18.3327 10C18.3327 5.39751 14.6018 1.66667 9.99935 1.66667Z",fill:"#79829B"})),BPe||(BPe=o.createElement("path",{d:"M10.0036 5.83334C9.7895 5.83327 9.57087 5.97237 9.44138 6.24925L8.64492 7.9617L6.82947 8.23078C6.24563 8.31561 6.05648 8.91377 6.4781 9.34378L7.78988 10.6773L7.48538 12.5488C7.38511 13.1547 7.86627 13.5208 8.38726 13.2338C8.58856 13.1225 9.6236 12.5625 10.0036 12.353L11.6199 13.2338C12.1415 13.5208 12.6242 13.155 12.5218 12.5488L12.2055 10.6773L13.5174 9.34378C13.941 8.91534 13.7616 8.31733 13.1777 8.23078L11.3505 7.9617L10.5658 6.24925C10.4365 5.97225 10.2177 5.83346 10.0036 5.83334Z",fill:"white"})))}var WPe,VPe=o.forwardRef(HPe),UPe=(n.p,["title","titleId"]);function qPe(){return qPe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qPe.apply(this,arguments)}function GPe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function YPe(e,t){var n=e.title,r=e.titleId,i=GPe(e,UPe);return o.createElement("svg",qPe({width:12,height:9,viewBox:"0 0 12 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,WPe||(WPe=o.createElement("path",{d:"M10.6549 0C10.3149 0 9.95891 0.114678 9.6989 0.374686L4.75208 5.37484C4.4094 5.71885 4.06538 5.65482 3.79604 5.25081L2.46669 3.25075C2.05868 2.6374 1.20663 2.46675 0.595941 2.87476C-0.0147451 3.28411 -0.185425 4.13747 0.221255 4.74949L1.55199 6.74955C2.75203 8.55494 5.09345 8.78425 6.62283 7.25087L11.611 2.29206C12.1297 1.77071 12.1297 0.896035 11.611 0.374686C11.351 0.114678 10.995 0 10.6549 0Z",fill:"current"})))}var KPe=o.forwardRef(YPe);n.p;function JPe(e){return(0,F.Z)("MuiCardActionArea",e)}var XPe=(0,R.Z)("MuiCardActionArea",["root","focusVisible","focusHighlight"]),QPe=["children","className","focusVisibleClassName"],$Pe=(0,P.ZP)(Qy.Z,{name:"MuiCardActionArea",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){var n,r=e.theme;return n={display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%"},(0,t.Z)(n,"&:hover .".concat(XPe.focusHighlight),{opacity:(r.vars||r).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}}),(0,t.Z)(n,"&.".concat(XPe.focusVisible," .").concat(XPe.focusHighlight),{opacity:(r.vars||r).palette.action.focusOpacity}),n})),eAe=(0,P.ZP)("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:function(e,t){return t.focusHighlight}})((function(e){var t=e.theme;return{overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:t.transitions.create("opacity",{duration:t.transitions.duration.short})}})),tAe=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiCardActionArea"}),o=n.children,i=n.className,a=n.focusVisibleClassName,s=(0,b.Z)(n,QPe),l=n,c=function(e){var t=e.classes;return(0,M.Z)({root:["root"],focusHighlight:["focusHighlight"]},JPe,t)}(l);return(0,u.jsxs)($Pe,(0,r.Z)({className:(0,y.default)(c.root,i),focusVisibleClassName:(0,y.default)(a,c.focusVisible),ref:t,ownerState:l},s,{children:[o,(0,u.jsx)(eAe,{className:c.focusHighlight,ownerState:l})]}))})),nAe=tAe;function rAe(e){return(0,F.Z)("MuiCardContent",e)}(0,R.Z)("MuiCardContent",["root"]);var oAe,iAe=["className","component"],aAe=(0,P.ZP)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(){return{padding:16,"&:last-child":{paddingBottom:24}}})),sAe=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiCardContent"}),o=n.className,i=n.component,a=void 0===i?"div":i,s=(0,b.Z)(n,iAe),l=(0,r.Z)({},n,{component:a}),c=function(e){var t=e.classes;return(0,M.Z)({root:["root"]},rAe,t)}(l);return(0,u.jsx)(aAe,(0,r.Z)({as:a,className:(0,y.default)(c.root,o),ownerState:l,ref:t},s))})),lAe=sAe,cAe=["title","titleId"];function uAe(){return uAe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uAe.apply(this,arguments)}function dAe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function pAe(e,t){var n=e.title,r=e.titleId,i=dAe(e,cAe);return o.createElement("svg",uAe({width:17,height:16,viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,oAe||(oAe=o.createElement("g",{id:"check"},o.createElement("path",{id:"Vector",d:"M12.655 5.00269C12.4 5.00269 12.133 5.08869 11.938 5.28369L8.228 9.03368C7.971 9.29168 7.71299 9.24366 7.51099 8.94066L6.51402 7.44066C6.20802 6.98067 5.569 6.85268 5.111 7.15868C4.653 7.46568 4.525 8.10569 4.83 8.56468L5.82801 10.0647C6.72801 11.4187 8.48402 11.5906 9.63102 10.4407L13.372 6.72167C13.761 6.33067 13.761 5.67469 13.372 5.28369C13.177 5.08869 12.91 5.00269 12.655 5.00269Z",fill:"#384572"}))))}var fAe,hAe=o.forwardRef(pAe),mAe=(n.p,function(e){var t=e.id,n=e.companyName,r=e.companyLogo,o=e.caseStudyName,i=e.coverImg,a=e.onClick,s=e.className,c=e.sx,d=e.topChip,p=e.bottomComponent,f=e.toggleMode;return(0,u.jsx)(NZ,{className:s,onClick:function(){return null===a||void 0===a?void 0:a({id:t,companyName:n,companyLogo:r,caseStudyName:o,coverImg:i,topChip:d,bottomComponent:p})},sx:(0,l.Z)({borderRadius:2,boxShadow:"1px 10px 30px rgba(56, 69, 114, 0.1)"},c),children:(0,u.jsxs)(nAe,{sx:{width:"100%"},children:[(0,u.jsxs)(nn.Z,{sx:{position:"relative",paddingBottom:"75%",backgroundImage:"url(".concat(i,")"),backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"cover"},children:[d&&(0,u.jsx)(nn.Z,{sx:{position:"absolute",top:0,left:0},children:d}),f&&(f.condition?(0,u.jsx)(tn,{sx:{position:"absolute",top:8,right:10,borderRadius:"4px",width:"18px",height:"18px",border:"2px solid",backgroundColor:"secondaryGreen.500",borderColor:"secondaryGreen.500",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,u.jsx)(hAe,{})}):(0,u.jsx)(tn,{sx:{position:"absolute",top:8,right:10,borderRadius:"4px",width:"18px",height:"18px",border:"2px solid",borderColor:"primaryDark.200"}}))]}),(0,u.jsxs)(lAe,{children:[(0,u.jsxs)(nn.Z,{direction:"row",mb:2,alignItems:"center",children:[(0,u.jsx)(Ca,{alt:"card logo",src:r,sx:{width:34,height:34}}),(0,u.jsx)(rn.Z,{variant:"heading4",ml:1,color:"#000000",children:n})]}),(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.600",children:o}),(0,u.jsx)(nn.Z,{mt:2.5,children:p})]})]})})}),vAe=function(e){var t=e.rating;return(0,u.jsxs)(nn.Z,{direction:"row",gap:.75,alignItems:"center",children:[(0,u.jsx)(aM,{fill:tr.dx[700],width:17}),(0,u.jsx)(rn.Z,{color:"secondaryBlue.700",variant:"heading4",children:t})]})},gAe=["title","titleId"];function yAe(){return yAe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yAe.apply(this,arguments)}function bAe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function xAe(e,t){var n=e.title,r=e.titleId,i=bAe(e,gAe);return o.createElement("svg",yAe({width:11,height:9,viewBox:"0 0 11 9",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,fAe||(fAe=o.createElement("path",{d:"M10.0098 4.49089C10.0098 4.03089 9.63643 3.65755 9.17643 3.65755H4.17643V0.324219L0.00976562 4.49089L4.17643 8.65755V5.32422H9.17643C9.63643 5.32422 10.0098 4.95089 10.0098 4.49089Z",fill:"current"})))}var wAe,CAe=o.forwardRef(xAe),jAe=(n.p,["title","titleId"]);function SAe(){return SAe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SAe.apply(this,arguments)}function kAe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ZAe(e,t){var n=e.title,r=e.titleId,i=kAe(e,jAe);return o.createElement("svg",SAe({width:11,height:9,viewBox:"0 0 11 9",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,wAe||(wAe=o.createElement("path",{d:"M0.00976562 4.49089C0.00976562 4.03089 0.383099 3.65755 0.843099 3.65755H5.8431V0.324219L10.0098 4.49089L5.8431 8.65755V5.32422H0.843099C0.383099 5.32422 0.00976562 4.95089 0.00976562 4.49089Z",fill:"current"})))}var OAe,EAe=o.forwardRef(ZAe),DAe=(n.p,function(e){var t=e.back,n=e.next;return(0,u.jsxs)(nn.Z,{spacing:3,direction:"row",sx:{mt:4},children:[(0,u.jsx)(Wo,{variant:"secondaryText",disabled:t.disabled,onClick:t.handleGoBack,startIcon:(0,u.jsx)(CAe,{fill:tr.IV[500]}),sx:{color:t.disabled?"".concat(tr.IV[300]," !important"):"primaryDark.500"},children:"BACK"}),(0,u.jsx)(Wo,{variant:"secondaryText",disabled:n.disabled,onClick:n.handleGoNext,endIcon:(0,u.jsx)(EAe,{fill:tr.IV[500]}),sx:{color:n.disabled?"".concat(tr.IV[300]," !important"):"primaryDark.500"},children:"NEXT"})]})}),PAe=function(){return(0,u.jsxs)(nn.Z,{sx:{px:1.25,py:.75,bgcolor:"#F6F7FF"},direction:"row",children:[(0,u.jsx)(ZI,{fill:"#4051EC"}),(0,u.jsx)(rn.Z,{ml:.75,variant:"heading5",color:"secondaryBlue.700",children:"Verified"})]})},AAe=function(e){var t=e.rating,n=e.color,r=void 0===n?tr.dx[700]:n,o=e.showSingle,i=function(e){return e>=0&&e<t};return void 0!==o&&o?(0,u.jsxs)(nn.Z,{direction:"row",gap:1,children:[(0,u.jsx)(aM,{stroke:r,fill:r}),(0,u.jsx)(rn.Z,{variant:"heading5",color:r,children:Math.round(t)})]}):(0,u.jsx)(nn.Z,{direction:"row",gap:.625,children:Array.from(Array(5),(function(e,t){return(0,u.jsx)(aM,{stroke:i(t)?r:tr.IV[300],fill:i(t)?r:"transparent"})}))})},MAe=function(e){var t=e.title,n=e.rating,r=e.description,o=e.detailedView,i=void 0!==o&&o;return(0,u.jsxs)(nn.Z,{flex:1,spacing:.5,children:[(0,u.jsxs)(nn.Z,{direction:"row",mb:.5,alignItems:"center",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{color:"primaryDark.500",variant:"publicBody5Regular",sx:{mr:3,textTransform:"none"},children:t}),(0,u.jsx)(AAe,{rating:n})]}),(0,u.jsx)(nn.Z,{sx:{height:i?"auto":0,transition:"0.25s linear height",overflow:"hidden"},children:(0,u.jsx)(rn.Z,{mb:1.5,color:"primaryDark.600",variant:"body3",children:r})})]})},TAe=function(e){var t=e.feedback,n=(0,o.useState)(!1),r=(0,Le.Z)(n,2),i=r[0],a=r[1];return(0,u.jsxs)(nn.Z,{spacing:2,children:[1===t.length&&(0,u.jsx)(nn.Z,{spacing:3,direction:"row",justifyContent:"space-between",children:(0,u.jsx)(MAe,{detailedView:i,title:null===t||void 0===t?void 0:t[0].title,rating:null===t||void 0===t?void 0:t[0].rate,description:null===t||void 0===t?void 0:t[0].description})}),1!==t.length&&(0,u.jsxs)(nn.Z,{spacing:3,direction:"row",justifyContent:"space-between",children:[(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(MAe,{detailedView:i,title:null===t||void 0===t?void 0:t[0].title,rating:null===t||void 0===t?void 0:t[0].rate,description:null===t||void 0===t?void 0:t[0].description}),(0,u.jsx)(MAe,{detailedView:i,title:null===t||void 0===t?void 0:t[1].title,rating:null===t||void 0===t?void 0:t[1].rate,description:null===t||void 0===t?void 0:t[1].description})]}),(0,u.jsx)(un,{orientation:"vertical",sx:{borderColor:tr.dx[100]}}),(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(MAe,{detailedView:i,title:null===t||void 0===t?void 0:t[2].title,rating:null===t||void 0===t?void 0:t[2].rate,description:null===t||void 0===t?void 0:t[2].description}),(0,u.jsx)(MAe,{detailedView:i,title:null===t||void 0===t?void 0:t[3].title,rating:null===t||void 0===t?void 0:t[3].rate,description:null===t||void 0===t?void 0:t[3].description})]})]}),(0,u.jsx)(Wo,{onClick:function(){a(!i)},sx:{alignSelf:"center",color:"primaryDark.500",textTransform:"uppercase",my:1,mx:"auto"},variant:"secondaryText",children:i?"close detailed view":"show detailed view"})]})},IAe=["title","titleId"];function RAe(){return RAe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},RAe.apply(this,arguments)}function FAe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function BAe(e,t){var n=e.title,r=e.titleId,i=FAe(e,IAe);return o.createElement("svg",RAe({width:18,height:17,viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,OAe||(OAe=o.createElement("path",{d:"M9.01107 0.165527C7.8619 0.165527 6.93357 0.906364 6.64107 1.9622C5.88691 2.17136 5.24272 2.77969 5.00106 3.49886C4.54939 3.49886 4.1544 3.49886 4.01107 3.49886C2.17023 3.49886 0.677734 4.99135 0.677734 6.83218V13.4988C0.677734 15.3397 2.17023 16.8322 4.01107 16.8322H14.0111C15.8519 16.8322 17.3444 15.3397 17.3444 13.4988V6.83218C17.3444 4.99135 15.8519 3.49886 14.0111 3.49886L13.0211 3.52469C12.8186 2.82886 12.1236 2.09302 11.3811 1.93636C11.0886 0.880526 10.1602 0.165527 9.01107 0.165527ZM9.01107 1.83219C9.47107 1.83219 9.8444 2.20552 9.8444 2.66552C9.8444 3.12552 10.2177 3.49886 10.6777 3.49886C11.1377 3.49886 11.5111 3.87219 11.5111 4.33219C11.5111 4.79219 11.1377 5.16552 10.6777 5.16552H7.3444C6.8844 5.16552 6.51107 4.79219 6.51107 4.33219C6.51107 3.87219 6.8844 3.49886 7.3444 3.49886C7.8044 3.49886 8.17773 3.12552 8.17773 2.66552C8.17773 2.20552 8.55107 1.83219 9.01107 1.83219ZM11.5111 8.49885C11.7244 8.49885 11.9469 8.57052 12.1102 8.73302C12.4352 9.05885 12.4352 9.60551 12.1102 9.93134L8.7769 13.2647C8.45106 13.5897 7.90441 13.5897 7.57857 13.2647L5.91191 11.598C5.58691 11.2722 5.58691 10.7255 5.91191 10.3997C6.23774 10.0747 6.7844 10.0747 7.11023 10.3997L8.17773 11.4672L10.9119 8.73302C11.0752 8.57052 11.2977 8.49885 11.5111 8.49885Z",fill:"current"})))}var LAe=o.forwardRef(BAe),NAe=(n.p,(0,pa.Z)((0,u.jsx)("circle",{cx:"12",cy:"12",r:"8"}),"FiberManualRecord")),_Ae=function(e){var t=e.setSliderPage,n=e.setIsOpen,r=e.pitchId,o=(0,As.Z)({resource:"/timed-project-pitches"}).mutate,i=(0,Ms.J)();return(0,u.jsxs)(ms,{direction:"column",children:[(0,u.jsxs)(ms,{direction:"row",alignItems:"center",mb:3,children:[(0,u.jsx)(ms,{width:40,height:40,mr:2,bgcolor:"secondaryBlue.100",borderRadius:1,justifyContent:"center",alignItems:"center",children:(0,u.jsx)(LAe,{width:"20px",fill:tr.dx[700]})}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.600",children:"reject pitch"})]}),(0,u.jsx)(ms,{py:2,sx:{borderTop:"1px solid ".concat(tr.dx[100]),borderBottom:"1px solid ".concat(tr.dx[100])},children:(0,u.jsx)(rn.Z,{color:"primaryDark.500",variant:"body2",children:"By proceeding, you will be rejecting the pitch for the second round of negotations. The seller will be notified immediately."})}),(0,u.jsxs)(ms,{gap:.625,direction:"row",justifyContent:"center",my:3,children:[(0,u.jsx)(NAe,{fontSize:"small",sx:{color:"secondaryBlue.500"}}),(0,u.jsx)(NAe,{fontSize:"small",sx:{color:"#C5C7C3"}})]}),(0,u.jsxs)(ms,{direction:"row",gap:3,justifyContent:"flex-end",children:[(0,u.jsx)(Wo,{onClick:function(){return n(!1)},variant:"secondary",children:"Cancel"}),(0,u.jsx)(Wo,{onClick:function(){o({id:r,suffix:"reject-pitch"},{onSuccess:function(){i(),t(1)}})},variant:"primary",children:"Confirm"})]})]})},zAe=(0,pa.Z)((0,u.jsx)("path",{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star"),HAe=(0,pa.Z)((0,u.jsx)("path",{d:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarBorder");function WAe(e){return(0,F.Z)("MuiRating",e)}var VAe=(0,R.Z)("MuiRating",["root","sizeSmall","sizeMedium","sizeLarge","readOnly","disabled","focusVisible","visuallyHidden","pristine","label","labelEmptyValueActive","icon","iconEmpty","iconFilled","iconHover","iconFocus","iconActive","decimal"]),UAe=["value"],qAe=["className","defaultValue","disabled","emptyIcon","emptyLabelText","getLabelText","highlightSelectedOnly","icon","IconContainerComponent","max","name","onChange","onChangeActive","onMouseLeave","onMouseMove","precision","readOnly","size","value"];function GAe(e,t){if(null==e)return e;var n=Math.round(e/t)*t;return Number(n.toFixed(function(e){var t=e.toString().split(".")[1];return t?t.length:0}(t)))}var YAe=(0,P.ZP)("span",{name:"MuiRating",slot:"Root",overridesResolver:function(e,n){var r=e.ownerState;return[(0,t.Z)({},"& .".concat(VAe.visuallyHidden),n.visuallyHidden),n.root,n["size".concat((0,Zn.Z)(r.size))],r.readOnly&&n.readOnly]}})((function(e){var n,o=e.theme,i=e.ownerState;return(0,r.Z)((n={display:"inline-flex",position:"relative",fontSize:o.typography.pxToRem(24),color:"#faaf00",cursor:"pointer",textAlign:"left",WebkitTapHighlightColor:"transparent"},(0,t.Z)(n,"&.".concat(VAe.disabled),{opacity:(o.vars||o).palette.action.disabledOpacity,pointerEvents:"none"}),(0,t.Z)(n,"&.".concat(VAe.focusVisible," .").concat(VAe.iconActive),{outline:"1px solid #999"}),(0,t.Z)(n,"& .".concat(VAe.visuallyHidden),zs.Z),n),"small"===i.size&&{fontSize:o.typography.pxToRem(18)},"large"===i.size&&{fontSize:o.typography.pxToRem(30)},i.readOnly&&{pointerEvents:"none"})})),KAe=(0,P.ZP)("label",{name:"MuiRating",slot:"Label",overridesResolver:function(e,t){var n=e.ownerState;return[t.label,n.emptyValueFocused&&t.labelEmptyValueActive]}})((function(e){var t=e.ownerState;return(0,r.Z)({cursor:"inherit"},t.emptyValueFocused&&{top:0,bottom:0,position:"absolute",outline:"1px solid #999",width:"100%"})})),JAe=(0,P.ZP)("span",{name:"MuiRating",slot:"Icon",overridesResolver:function(e,t){var n=e.ownerState;return[t.icon,n.iconEmpty&&t.iconEmpty,n.iconFilled&&t.iconFilled,n.iconHover&&t.iconHover,n.iconFocus&&t.iconFocus,n.iconActive&&t.iconActive]}})((function(e){var t=e.theme,n=e.ownerState;return(0,r.Z)({display:"flex",transition:t.transitions.create("transform",{duration:t.transitions.duration.shortest}),pointerEvents:"none"},n.iconActive&&{transform:"scale(1.2)"},n.iconEmpty&&{color:(t.vars||t).palette.action.disabled})})),XAe=(0,P.ZP)("span",{name:"MuiRating",slot:"Decimal",shouldForwardProp:function(e){return(0,P.Dz)(e)&&"iconActive"!==e},overridesResolver:function(e,t){var n=e.iconActive;return[t.decimal,n&&t.iconActive]}})((function(e){var t=e.iconActive;return(0,r.Z)({position:"relative"},t&&{transform:"scale(1.2)"})}));function QAe(e){var t=(0,b.Z)(e,UAe);return(0,u.jsx)("span",(0,r.Z)({},t))}function $Ae(e){var t=e.classes,n=e.disabled,i=e.emptyIcon,a=e.focus,s=e.getLabelText,l=e.highlightSelectedOnly,c=e.hover,d=e.icon,p=e.IconContainerComponent,f=e.isActive,h=e.itemValue,m=e.labelProps,v=e.name,g=e.onBlur,b=e.onChange,x=e.onClick,w=e.onFocus,C=e.readOnly,j=e.ownerState,S=e.ratingValue,k=l?h===S:h<=S,Z=h<=c,O=h<=a,E=h===e.ratingValueRounded,D=(0,So.Z)(),P=(0,u.jsx)(JAe,{as:p,value:h,className:(0,y.default)(t.icon,k?t.iconFilled:t.iconEmpty,Z&&t.iconHover,O&&t.iconFocus,f&&t.iconActive),ownerState:(0,r.Z)({},j,{iconEmpty:!k,iconFilled:k,iconHover:Z,iconFocus:O,iconActive:f}),children:i&&!k?i:d});return C?(0,u.jsx)("span",(0,r.Z)({},m,{children:P})):(0,u.jsxs)(o.Fragment,{children:[(0,u.jsxs)(KAe,(0,r.Z)({ownerState:(0,r.Z)({},j,{emptyValueFocused:void 0}),htmlFor:D},m,{children:[P,(0,u.jsx)("span",{className:t.visuallyHidden,children:s(h)})]})),(0,u.jsx)("input",{className:t.visuallyHidden,onFocus:w,onBlur:g,onChange:b,onClick:x,disabled:n,value:h,id:D,type:"radio",name:v,checked:E})]})}var eMe=(0,u.jsx)(zAe,{fontSize:"inherit"}),tMe=(0,u.jsx)(HAe,{fontSize:"inherit"});function nMe(e){return"".concat(e," Star").concat(1!==e?"s":"")}var rMe=o.forwardRef((function(e,t){var n=(0,T.Z)({name:"MuiRating",props:e}),i=n.className,a=n.defaultValue,s=void 0===a?null:a,l=n.disabled,c=void 0!==l&&l,d=n.emptyIcon,p=void 0===d?tMe:d,f=n.emptyLabelText,h=void 0===f?"Empty":f,m=n.getLabelText,v=void 0===m?nMe:m,g=n.highlightSelectedOnly,x=void 0!==g&&g,w=n.icon,S=void 0===w?eMe:w,k=n.IconContainerComponent,Z=void 0===k?QAe:k,O=n.max,E=void 0===O?5:O,D=n.name,P=n.onChange,A=n.onChangeActive,I=n.onMouseLeave,R=n.onMouseMove,F=n.precision,B=void 0===F?1:F,L=n.readOnly,N=void 0!==L&&L,_=n.size,z=void 0===_?"medium":_,H=n.value,W=(0,b.Z)(n,qAe),V=(0,So.Z)(D),U=(0,eF.Z)({controlled:H,default:s,name:"Rating"}),q=(0,Le.Z)(U,2),G=q[0],Y=q[1],K=GAe(G,B),J=(0,j.Z)(),X=o.useState({hover:-1,focus:-1}),Q=(0,Le.Z)(X,2),$=Q[0],ee=$.hover,te=$.focus,ne=Q[1],re=K;-1!==ee&&(re=ee),-1!==te&&(re=te);var oe=(0,_n.Z)(),ie=oe.isFocusVisibleRef,ae=oe.onBlur,se=oe.onFocus,le=oe.ref,ce=o.useState(!1),ue=(0,Le.Z)(ce,2),de=ue[0],pe=ue[1],fe=o.useRef(),he=(0,C.Z)(le,fe,t),me=function(e){var t=""===e.target.value?null:parseFloat(e.target.value);-1!==ee&&(t=ee),Y(t),P&&P(e,t)},ve=function(e){0===e.clientX&&0===e.clientY||(ne({hover:-1,focus:-1}),Y(null),P&&parseFloat(e.target.value)===K&&P(e,null))},ge=function(e){se(e),!0===ie.current&&pe(!0);var t=parseFloat(e.target.value);ne((function(e){return{hover:e.hover,focus:t}}))},ye=function(e){if(-1===ee){ae(e),!1===ie.current&&pe(!1);ne((function(e){return{hover:e.hover,focus:-1}}))}},be=o.useState(!1),xe=(0,Le.Z)(be,2),we=xe[0],Ce=xe[1],je=(0,r.Z)({},n,{defaultValue:s,disabled:c,emptyIcon:p,emptyLabelText:h,emptyValueFocused:we,focusVisible:de,getLabelText:v,icon:S,IconContainerComponent:Z,max:E,precision:B,readOnly:N,size:z}),Se=function(e){var t=e.classes,n=e.size,r=e.readOnly,o=e.disabled,i=e.emptyValueFocused,a=e.focusVisible,s={root:["root","size".concat((0,Zn.Z)(n)),o&&"disabled",a&&"focusVisible",r&&"readOnly"],label:["label","pristine"],labelEmptyValue:[i&&"labelEmptyValueActive"],icon:["icon"],iconEmpty:["iconEmpty"],iconFilled:["iconFilled"],iconHover:["iconHover"],iconFocus:["iconFocus"],iconActive:["iconActive"],decimal:["decimal"],visuallyHidden:["visuallyHidden"]};return(0,M.Z)(s,WAe,t)}(je);return(0,u.jsxs)(YAe,(0,r.Z)({ref:he,onMouseMove:function(e){R&&R(e);var t,n=fe.current,r=n.getBoundingClientRect(),o=r.right,i=r.left,a=n.firstChild.getBoundingClientRect().width;t="rtl"===J.direction?(o-e.clientX)/(a*E):(e.clientX-i)/(a*E);var s=GAe(E*t+B/2,B);s=function(e,t,n){return e<t?t:e>n?n:e}(s,B,E),ne((function(e){return e.hover===s&&e.focus===s?e:{hover:s,focus:s}})),pe(!1),A&&ee!==s&&A(e,s)},onMouseLeave:function(e){I&&I(e);ne({hover:-1,focus:-1}),A&&-1!==ee&&A(e,-1)},className:(0,y.default)(Se.root,i,N&&"MuiRating-readOnly"),ownerState:je,role:N?"img":null,"aria-label":N?v(re):null},W,{children:[Array.from(new Array(E)).map((function(e,t){var n=t+1,o={classes:Se,disabled:c,emptyIcon:p,focus:te,getLabelText:v,highlightSelectedOnly:x,hover:ee,icon:S,IconContainerComponent:Z,name:V,onBlur:ye,onChange:me,onClick:ve,onFocus:ge,ratingValue:re,ratingValueRounded:K,readOnly:N,ownerState:je},i=n===Math.ceil(re)&&(-1!==ee||-1!==te);if(B<1){var a=Array.from(new Array(1/B));return(0,u.jsx)(XAe,{className:(0,y.default)(Se.decimal,i&&Se.iconActive),ownerState:je,iconActive:i,children:a.map((function(e,t){var i=GAe(n-1+(t+1)*B,B);return(0,u.jsx)($Ae,(0,r.Z)({},o,{isActive:!1,itemValue:i,labelProps:{style:a.length-1===t?{}:{width:i===re?"".concat((t+1)*B*100,"%"):"0%",overflow:"hidden",position:"absolute"}}}),i)}))},n)}return(0,u.jsx)($Ae,(0,r.Z)({},o,{isActive:i,itemValue:n}),n)})),!N&&!c&&(0,u.jsxs)(KAe,{className:(0,y.default)(Se.label,Se.labelEmptyValue),ownerState:je,children:[(0,u.jsx)("input",{className:Se.visuallyHidden,value:"",id:"".concat(V,"-empty"),type:"radio",name:V,checked:null==K,onFocus:function(){return Ce(!0)},onBlur:function(){return Ce(!1)},onChange:me}),(0,u.jsx)("span",{className:Se.visuallyHidden,children:h})]})]}))})),oMe=rMe,iMe=["name","required","labelAdornment","sx"],aMe=function(e){var t=e.name,n=e.required,r=(e.labelAdornment,e.sx,Nn(e,iMe)),o=Xc().control;return(0,u.jsx)(du,{control:o,name:t,rules:n?{required:"This field is required"}:{required:!1},render:function(e){var t=e.field;return(0,u.jsx)(oMe,(0,l.Z)({name:t.name,value:t.value,onChange:function(e,n){t.onChange(n)},icon:(0,u.jsx)(aM,{style:{margin:"0 2px"},fill:tr.dx[700]}),emptyIcon:(0,u.jsx)(aM,{stroke:tr.IV[300],fill:"transparent",style:{margin:"0 2px"}})},r))}})},sMe=function(e){var t=e.title,n=e.description,r=e.textInputName,o=e.ratingInputName,i=e.showEditor,a=void 0!==i&&i;return(0,u.jsxs)(ms,{py:2,gap:1,children:[(0,u.jsxs)(ms,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,u.jsx)(Cd,{text:t}),(0,u.jsx)(aMe,{name:o,required:!0})]}),(0,u.jsx)(rn.Z,{color:"primaryDark.500",variant:"body3",children:n}),a?(0,u.jsx)(g$,{name:r,items:P$}):(0,u.jsx)(Zd,{name:r,placeholder:"Provide additional information (optional)"})]})},lMe=function(e){e.setSliderPage;var t=e.setIsOpen,n=e.pitchData,r=(0,Ms.J)(),o=Ra({id:null===n||void 0===n?void 0:n.seller,resource:"companies"}).data,i=(0,As.Z)({resource:"/timed-project-pitches"}).mutate,a=fd({defaultValues:{feedback:[]},mode:"onChange"}),s=a.handleSubmit,c=a.formState.isValid;return(0,u.jsx)(ms,{direction:"column",children:(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},a),{},{children:(0,u.jsxs)("form",{onSubmit:s((function(e){e.feedback[0].type=Kt.gV.Overall,i({id:n.timedProjectPitch,data:null===e||void 0===e?void 0:e.feedback,suffix:"reject-feedback"},{onSuccess:function(){r(),t(!1)}})})),children:[(0,u.jsxs)(ms,{direction:"row",alignItems:"center",mb:3,gap:2,children:[(0,u.jsx)(Ca,{sx:{borderRadius:"8px"},src:null===o||void 0===o?void 0:o.avatar,alt:"Company logo"}),(0,u.jsxs)(ms,{children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.600",children:null===o||void 0===o?void 0:o.name}),(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.600",children:"Rate 1st round pitch"})]})]}),(0,u.jsx)(sMe,{title:"Pitch score",description:"",ratingInputName:"feedback[0].rate",textInputName:"feedback[0].description"}),(0,u.jsxs)(ms,{gap:.625,direction:"row",justifyContent:"center",my:3,children:[(0,u.jsx)(NAe,{fontSize:"small",sx:{color:"#C5C7C3"}}),(0,u.jsx)(NAe,{fontSize:"small",sx:{color:"secondaryBlue.500"}})]}),(0,u.jsx)(ms,{direction:"row",gap:3,justifyContent:"flex-end",children:(0,u.jsx)(Wo,{type:"submit",variant:"primary",disabled:!c,children:"submit"})})]})}))})},cMe=function(e){e.setSliderPage;var t=e.setIsOpen,n=e.pitchData,r=(0,Ms.J)(),o=Ra({id:null===n||void 0===n?void 0:n.seller,resource:"companies"}).data,i=(0,As.Z)({resource:"/timed-project-pitches"}).mutate,a=fd({defaultValues:{feedback:[]},mode:"onChange"}),s=a.handleSubmit,c=a.formState.isValid,d=[Kt.gV.Overall,Kt.gV.Knowledge,Kt.gV.Strategy,Kt.gV.Budget];return(0,u.jsx)(ms,{direction:"column",sx:{maxHeight:"80vh",overflowY:"auto"},children:(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},a),{},{children:(0,u.jsxs)("form",{onSubmit:s((function(e){var o=null===e||void 0===e?void 0:e.feedback.map((function(e,t){return{type:d[t],rate:e.rating,description:e.description}}));i({id:n.timedProjectPitch,data:o,suffix:"reject-feedback"},{onSuccess:function(){r(),t(!1)}})})),children:[(0,u.jsxs)(ms,{direction:"row",alignItems:"center",mb:3,gap:1,children:[(0,u.jsx)(Ca,{sx:{borderRadius:"8px"},src:null===o||void 0===o?void 0:o.avatar,alt:"Company logo"}),(0,u.jsxs)(ms,{children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.600",children:null===o||void 0===o?void 0:o.name}),(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.600",children:"Rate 2st round pitch"})]})]}),[{title:"OVERALL PRESENTATION",description:"How effectively did the seller present their company and team?"},{title:"KNOWLEDGE & INSIGHT",description:"How well-informed was the seller about your business and industry?"},{title:"PROJECT STRATEGY",description:"How satisfied were you with the seller's project strategy?"},{title:"BUDGET",description:"How would you rate the value for money offered by the seller?"}].map((function(e,t){return(0,u.jsx)(sMe,{title:e.title,description:e.description,ratingInputName:"feedback[".concat(t,"].rating"),textInputName:"feedback[".concat(t,"].description")})})),(0,u.jsxs)(ms,{gap:.625,direction:"row",justifyContent:"center",my:3,children:[(0,u.jsx)(NAe,{fontSize:"small",sx:{color:"#C5C7C3"}}),(0,u.jsx)(NAe,{fontSize:"small",sx:{color:"secondaryBlue.500"}})]}),(0,u.jsxs)(ms,{direction:"row",gap:3,justifyContent:"space-between",children:[(0,u.jsx)(Wo,{onClick:function(){return t(!1)},variant:"primaryText",children:"Leave feedback later"}),(0,u.jsx)(Wo,{type:"submit",variant:"primary",disabled:!c,children:"submit"})]})]})}))})},uMe=function(e){var t=e.isOpen,n=e.setIsOpen,r=e.pitch,i=(0,o.useState)(0),a=(0,Le.Z)(i,2),s=a[0],l=a[1];[Kt.hv.FirstRoundRejected,Kt.hv.SecondRoundRejected].includes(null===r||void 0===r?void 0:r.status)&&0===s&&l(1);var c=[(0,u.jsx)(_Ae,{pitchId:null===r||void 0===r?void 0:r.timedProjectPitch,setIsOpen:n,setSliderPage:l}),[Kt.hv.SecondRound,Kt.hv.SecondRoundRejected].includes(null===r||void 0===r?void 0:r.status)?(0,u.jsx)(cMe,{pitchData:r,setIsOpen:n,setSliderPage:l}):(0,u.jsx)(lMe,{pitchData:r,setIsOpen:n,setSliderPage:l})],d=(null===r||void 0===r?void 0:r.status)===Kt.hv.FirstRound&&1===s;return(0,u.jsx)(ys,{open:t,onClose:d?n:function(){return n(t)},children:c[s]})};var dMe,pMe,fMe,hMe,mMe,vMe=n.p+"static/media/spona-logo-light.25d7c4fb73d3b66dab1e8168fff670d3.svg",gMe=function(e){var t=e.text,n=e.variant,r=void 0===n?"heading2":n;return(0,u.jsx)(rn.Z,{variant:r,color:"primaryDark.600",children:t})},yMe=function(e){var t=e.companyAvatar,n=e.companyAvatarWidth,r=void 0===n?44:n,o=e.companyAvatarHeight,i=void 0===o?44:o,a=e.companyName,s=e.companyNameTypographyVariant,l=void 0===s?"headline4":s;return(0,u.jsxs)(nn.Z,{direction:"row",spacing:1.5,alignItems:"center",children:[(0,u.jsx)(tn,{sx:{width:r,height:i,borderRadius:"4px",backgroundImage:"url(".concat(""===t?vMe:t,")"),backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"cover"}}),(0,u.jsx)(gMe,{variant:l,text:a})]})},bMe=function(e){var t=e.open,n=e.setOpen,r=e.pitchId,o=(0,Ms.J)(),i=(0,As.Z)({resource:"/timed-project-pitches"}).mutate;return(0,u.jsx)(ys,{open:t,onClose:function(){return n(!1)},children:(0,u.jsxs)(ms,{direction:"column",children:[(0,u.jsxs)(ms,{direction:"row",alignItems:"center",mb:3,children:[(0,u.jsx)(ms,{width:40,height:40,mr:2,bgcolor:"secondaryBlue.100",borderRadius:1,justifyContent:"center",alignItems:"center",children:(0,u.jsx)(LAe,{width:"20px",fill:tr.dx[700]})}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.600",children:"withdraw pitch"})]}),(0,u.jsx)(ms,{py:2,sx:{borderTop:"1px solid ".concat(tr.dx[100]),borderBottom:"1px solid ".concat(tr.dx[100])},children:(0,u.jsx)(rn.Z,{color:"primaryDark.500",variant:"body2",children:"Your request to withdraw your pitch will be submitted to Spona. Both parties will be notified once the request has been successfully processed."})}),(0,u.jsxs)(ms,{direction:"row",gap:3,mt:2,justifyContent:"flex-end",children:[(0,u.jsx)(Wo,{onClick:function(){return n(!1)},variant:"secondary",children:"Cancel"}),(0,u.jsx)(Wo,{onClick:function(){i({id:r,suffix:"withdraw-pitch"},{onSuccess:function(){o(),n(!1)}})},variant:"primary",children:"Submit"})]})]})})},xMe=["title","titleId"];function wMe(){return wMe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wMe.apply(this,arguments)}function CMe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function jMe(e,t){var n=e.title,r=e.titleId,i=CMe(e,xMe);return o.createElement("svg",wMe({width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,dMe||(dMe=o.createElement("rect",{width:40,height:40,rx:4,fill:"#E6E8FF"})),pMe||(pMe=o.createElement("rect",{x:19,y:14,width:12.2,height:12.2,rx:3,fill:"#4051EC"})),fMe||(fMe=o.createElement("rect",{x:9.5,y:15.5,width:9.91583,height:9.91583,rx:2.5,stroke:"#4051EC"})),hMe||(hMe=o.createElement("path",{d:"M14.0509 20.7506C14.0509 20.3645 14.0466 20.0514 14.0379 19.8113C14.0292 19.5693 14.017 19.4292 14.0013 19.3912C13.9839 19.3432 13.9587 19.3112 13.9256 19.2952C13.8925 19.2772 13.8238 19.2682 13.7193 19.2682H13.6332C13.5862 19.2682 13.5522 19.2552 13.5313 19.2292C13.5104 19.2032 13.5 19.1612 13.5 19.1032C13.5 19.0231 13.5226 18.9611 13.5679 18.9171C13.6149 18.8711 13.7254 18.8141 13.8995 18.7461C14.1031 18.67 14.3016 18.61 14.4948 18.566C14.688 18.522 14.8412 18.5 14.9543 18.5C15.0413 18.5 15.1092 18.52 15.158 18.56C15.2067 18.6 15.2311 18.656 15.2311 18.7281C15.2311 18.7981 15.1928 18.8641 15.1162 18.9261C15.0413 18.9881 14.9978 19.0341 14.9856 19.0641C14.9717 19.1062 14.9621 19.1992 14.9569 19.3432C14.9517 19.4852 14.9491 19.8143 14.9491 20.3305C14.9491 20.6525 14.9517 20.9426 14.9569 21.2007C14.9621 21.4587 14.9682 21.6398 14.9752 21.7438C14.9822 21.8098 14.9935 21.8578 15.0091 21.8878C15.0265 21.9159 15.0544 21.9399 15.0927 21.9599C15.1414 21.9839 15.2111 22.0029 15.3016 22.0169C15.4339 22.0369 15.5 22.0939 15.5 22.1879C15.5 22.31 15.4391 22.393 15.3172 22.437C15.1971 22.479 14.9352 22.5 14.5313 22.5C14.0927 22.5 13.8107 22.478 13.6854 22.434C13.5618 22.39 13.5 22.306 13.5 22.1819C13.5 22.1319 13.5139 22.0929 13.5418 22.0649C13.5714 22.0369 13.6105 22.0229 13.6593 22.0229C13.7411 22.0229 13.8177 22.0069 13.889 21.9749C13.9604 21.9409 14.0013 21.9029 14.0117 21.8608C14.0257 21.8168 14.0352 21.7168 14.0405 21.5608C14.0474 21.4047 14.0509 21.1347 14.0509 20.7506Z",fill:"#4051EC"})),mMe||(mMe=o.createElement("path",{d:"M26.4438 21.5847C26.6472 21.5847 26.7969 21.5733 26.8928 21.5504C26.9887 21.5275 27.0715 21.4861 27.1412 21.426C27.1994 21.3803 27.2836 21.2831 27.3941 21.1344C27.5045 20.9828 27.6048 20.9071 27.6949 20.9071C27.7908 20.9071 27.8649 20.9428 27.9172 21.0143C27.9724 21.0829 28 21.1801 28 21.3059C28 21.4489 27.9738 21.6247 27.9215 21.8335C27.8721 22.0393 27.8024 22.2495 27.7123 22.4639C27.6309 22.6526 27.5554 22.7884 27.4856 22.8713C27.4159 22.9571 27.3432 23 27.2677 23C27.1572 23 27.0686 22.9743 27.0017 22.9228C26.9378 22.8742 26.8797 22.7884 26.8274 22.6655H23.4621C23.2877 22.6655 23.1671 22.6483 23.1003 22.614C23.0334 22.5797 23 22.5211 23 22.4382C23 22.3267 23.2136 22.0822 23.6408 21.7048L23.7018 21.649C23.7832 21.5776 23.8994 21.4746 24.0506 21.3402C25.3205 20.2166 25.9555 19.3645 25.9555 18.7841C25.9555 18.5096 25.8931 18.2995 25.7681 18.1537C25.646 18.005 25.4702 17.9307 25.2406 17.9307C25.1215 17.9307 25.0038 17.9492 24.8875 17.9864C24.7742 18.0236 24.6623 18.0779 24.5519 18.1494C24.4676 18.2066 24.3266 18.3252 24.129 18.5054C23.9314 18.6855 23.7658 18.7756 23.6321 18.7756C23.5275 18.7756 23.4403 18.7412 23.3705 18.6726C23.3008 18.604 23.2659 18.5182 23.2659 18.4153C23.2659 18.2895 23.3284 18.148 23.4534 17.9907C23.5812 17.8335 23.757 17.6791 23.9808 17.5275C24.2366 17.3503 24.4996 17.2187 24.7698 17.133C25.0401 17.0443 25.322 17 25.6155 17C26.2113 17 26.6995 17.1573 27.0802 17.4718C27.4609 17.7834 27.6513 18.1794 27.6513 18.6598C27.6513 19.0343 27.519 19.386 27.2546 19.7148C26.993 20.0407 26.467 20.4682 25.6765 20.9971L25.6635 21.0057C25.274 21.263 25.0793 21.4246 25.0793 21.4904C25.0793 21.5218 25.1055 21.5461 25.1578 21.5633C25.213 21.5776 25.3002 21.5847 25.4194 21.5847H26.4438Z",fill:"#F6F7FF"})))}var SMe,kMe=o.forwardRef(jMe),ZMe=(n.p,["title","titleId"]);function OMe(){return OMe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OMe.apply(this,arguments)}function EMe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function DMe(e,t){var n=e.title,r=e.titleId,i=EMe(e,ZMe);return o.createElement("svg",OMe({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,SMe||(SMe=o.createElement("path",{d:"M4.65885 0.441467C4.19885 0.441467 3.82552 0.814801 3.82552 1.2748V2.10813H3.12219C1.66386 2.10813 0.492188 3.27897 0.492188 4.73814V5.44147C0.492188 7.71563 1.91968 9.71898 4.64718 10.4365C5.22135 11.194 6.13886 11.8048 7.15219 12.019L7.15885 13.7748H5.49219C5.03219 13.7748 4.65885 14.1481 4.65885 14.6081C4.65885 15.0681 5.03219 15.4415 5.49219 15.4415H10.4922C10.9522 15.4415 11.3255 15.0681 11.3255 14.6081C11.3255 14.1481 10.9522 13.7748 10.4922 13.7748H8.82552L8.81968 12.0248C9.83302 11.8098 10.7364 11.2281 11.3314 10.424C14.1089 9.69397 15.4922 7.71563 15.4922 5.44147V4.73814C15.4922 3.27981 14.3213 2.10813 12.8622 2.10813H12.1589V1.2748C12.1589 0.814801 11.7855 0.441467 11.3255 0.441467C10.4922 0.441467 5.49219 0.441467 4.65885 0.441467ZM6.32552 2.10813H7.15885C7.61885 2.10813 7.99219 2.48147 7.99219 2.94147C7.99219 3.40147 7.61885 3.7748 7.15885 3.7748H6.32552C5.86552 3.7748 5.49219 3.40147 5.49219 2.94147C5.49219 2.48147 5.86552 2.10813 6.32552 2.10813ZM3.12219 3.7748H3.82552C3.82552 3.7748 3.82219 8.26815 3.82636 8.34232C2.64553 7.67398 2.15885 6.6148 2.15885 5.44147V4.73814C2.15885 4.19981 2.58386 3.7748 3.12219 3.7748ZM12.1589 3.7748H12.8622C13.4005 3.7748 13.8255 4.19981 13.8255 4.73814V5.44147C13.8255 6.6148 13.2822 7.6823 12.1597 8.3323C12.1639 8.25813 12.1589 8.01647 12.1589 7.94147V3.7748Z",fill:"#79829B"})))}var PMe,AMe=o.forwardRef(DMe),MMe=(n.p,function(e){var t=e.type,n=e.isOpen,r=e.handleConfirm,o=e.handleOnClose,i=e.patchStatus,a=e.projectId,s=(0,ze.s0)(),l=0;switch(i){case"loading":default:l=0;break;case"succeeded":l=1}var c={confirm:[{title:"Round 2 negotiations",icon:(0,u.jsx)(kMe,{fill:tr.dx[700],style:{width:24,height:24}}),text:"By proceeding, you will be selecting the seller for the second round of negotiations. You can select multiple sellers for this step of the process."},{title:"Chat created",icon:(0,u.jsx)(Rl,{fill:tr.dx[700],style:{width:24,height:24}}),text:"A chat group with the seller will be created automatically. Contact the seller to schedule a meeting and discuss the project strategy in more detail."}],hire:[{title:"Hire seller",icon:(0,u.jsx)(AMe,{fill:tr.dx[700],style:{width:24,height:24}}),text:"By proceeding, you will be hiring a seller to work on your project. You can only select one seller."},{title:"Well done, you have hired a seller for your project!",icon:(0,u.jsx)(yA,{fill:tr.dx[700],style:{width:18,height:18}}),text:"Your project will now be transferred to End-to-End Project Management, where the first step is to start working on the contract with your chosen seller."}]},d={title:"Error",icon:(0,u.jsx)(V2,{fill:tr.Us[700],style:{width:24,height:24}}),text:"Unexpected error, please try again."},p=function(){o(0===l)};return(0,u.jsx)(ys,{open:n,children:(0,u.jsxs)(nn.Z,{direction:"column",children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",mb:3,children:[(0,u.jsx)(nn.Z,{width:40,height:40,mr:2,bgcolor:"failed"===i?tr.Us[100]:tr.dx[100],borderRadius:1,justifyContent:"center",alignItems:"center",children:"failed"===i?d.icon:c[t][l].icon}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.600",children:"failed"===i?d.title:c[t][l].title})]}),(0,u.jsx)(nn.Z,{py:2,sx:{borderTop:"1px solid ".concat(tr.dx[100]),borderBottom:"1px solid ".concat(tr.dx[100])},children:(0,u.jsx)(rn.Z,{color:"primaryDark.500",variant:"body2",children:"failed"===i?d.text:c[t][l].text})}),(0,u.jsx)(nn.Z,{gap:.625,direction:"row",justifyContent:"center",my:3,children:"failed"!==i&&c[t].map((function(e,t){return(0,u.jsx)(NAe,{fontSize:"small",sx:{color:t===l?"secondaryBlue.500":"#C5C7C3"}},t)}))}),(0,u.jsxs)(nn.Z,{mt:3,direction:"row",gap:3,justifyContent:"flex-end",children:["failed"!==i&&0===l&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Wo,{disabled:"loading"===i,onClick:p,variant:"secondary",children:"Cancel"}),(0,u.jsx)(Pme,{variant:"contained",type:"button",loading:"loading"===i,color:"secondary",size:"large",sx:{borderRadius:"4px",height:"45px",width:"120px"},onButtonClick:function(){r()},children:(0,u.jsx)(rn.Z,{variant:"heading4",children:"Confirm"})})]}),(1===l||"failed"===i)&&(0,u.jsx)(Wo,{onClick:function(){return"failed"!==i&&"hire"===t?s("/dashboard/end-to-end/".concat(null===a?"":"project/".concat(a))):p()},variant:"primary",children:"failed"!==i&&"hire"===t?"Continue":"Close"})]})]})})}),TMe=function(e){var t=e.open,n=e.setOpen,r=e.pitchId,o=(0,Ms.J)(),i=zk({resource:"/timed-project-pitches"}).mutate;return(0,u.jsx)(ys,{open:t,onClose:function(){return n(!1)},children:(0,u.jsxs)(ms,{direction:"column",children:[(0,u.jsxs)(ms,{direction:"row",alignItems:"center",mb:3,children:[(0,u.jsx)(ms,{width:40,height:40,mr:2,bgcolor:"secondaryBlue.100",borderRadius:1,justifyContent:"center",alignItems:"center",children:(0,u.jsx)(k5,{width:"20px",fill:tr.dx[700]})}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.600",children:"Delete Pitch Draft"})]}),(0,u.jsx)(ms,{py:2,sx:{borderTop:"1px solid ".concat(tr.dx[100]),borderBottom:"1px solid ".concat(tr.dx[100])},children:(0,u.jsx)(rn.Z,{color:"primaryDark.500",variant:"body2",children:"Your project pitch draft will be permanently deleted. Are you sure you want to continue?"})}),(0,u.jsxs)(ms,{direction:"row",gap:3,mt:2,justifyContent:"flex-end",children:[(0,u.jsx)(Wo,{onClick:function(){return n(!1)},variant:"secondary",children:"Cancel"}),(0,u.jsx)(Wo,{onClick:function(){i({id:r},{onSuccess:function(){o(),n(!1)}})},variant:"primary",children:"Confirm"})]})]})})},IMe=function(){return(0,u.jsx)(nn.Z,{height:"1px",my:3,bgcolor:"secondaryBlue.100"})},RMe=function(e){var t=e.icon,n=e.title;return(0,u.jsxs)(nn.Z,{sx:{fill:tr.IV[500]},mb:1.375,alignItems:"center",direction:"row",children:[t,(0,u.jsx)(rn.Z,{color:"primaryDark.500",variant:"heading5",ml:1.375,children:n})]})},FMe=function(e){var t,n,r,i=e.isDrawerOpen,a=e.setIsDrawerOpen,s=e.pitchContent,l=e.isRejectModalOpen,c=e.setIsRejectModalOpen,d=e.drawerWidth,p=void 0===d?"40%":d,f=e.setCaseStudyId,h=e.setIsCaseStudyDrawerOpen,m=(0,Ms.J)(),v=(0,ze.s0)(),g=(0,o.useState)(!1),y=(0,Le.Z)(g,2),b=y[0],x=y[1],w=(0,o.useState)(!1),C=(0,Le.Z)(w,2),j=C[0],S=C[1],k=(0,o.useState)(!1),Z=(0,Le.Z)(k,2),O=Z[0],E=Z[1],D=(0,o.useState)(null),P=(0,Le.Z)(D,2),A=P[0],M=P[1],T=(0,o.useState)("idle"),I=(0,Le.Z)(T,2),R=I[0],F=I[1],B=(0,o.useState)(null),L=(0,Le.Z)(B,2),N=L[0],_=L[1],z=(0,As.Z)({resource:"/timed-project-pitches"}).mutate,H=(0,o.useState)(!1),W=(0,Le.Z)(H,2),V=W[0],q=W[1],G=Yd(),Y=null===G||void 0===G?void 0:G.includes(Kt.ks.Buyer),K=new Map([[Kt.gV.Overall,"Overall Presentation"],[Kt.gV.Strategy,"Project Strategy"],[Kt.gV.Knowledge,"Knowlage & Insight"],[Kt.gV.Budget,"Budget"]]),J=null===s||void 0===s||null===(t=s.feedback)||void 0===t?void 0:t.map((function(e){return{title:K.get(e.type),rate:e.rate,description:e.description}})),X=Ra({enabled:!!Y&&!(null===s||void 0===s||!s.seller),id:null===s||void 0===s?void 0:s.seller,resource:"companies"}).data;return(0,u.jsxs)(ec,{anchor:"right",hideBackdrop:!0,PaperProps:{sx:{boxShadow:"1px 10px 30px rgba(56, 69, 114, 0.1)",width:p,mt:"".concat(bR,"px"),height:"calc(100vh - ".concat(bR,"px)")}},open:i,children:[(0,u.jsx)(U.Z,{onClickAway:function(){a(!i)},children:(0,u.jsxs)(nn.Z,{spacing:3,p:3,children:[(0,u.jsx)(p5,{screen:Kt.Cx.PitchDetailScreen}),(0,u.jsxs)(nn.Z,{children:[(0,u.jsxs)(nn.Z,{spacing:4,children:[Y?(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"start",justifyContent:"space-between",children:[(0,u.jsxs)(nn.Z,{spacing:1.8,children:[(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",alignItems:"center",children:[(null===s||void 0===s?void 0:s.isNew)&&(0,u.jsx)(nn.Z,{sx:{py:.5,px:.9,bgcolor:"secondaryBlue.100",borderRadius:"3px",alignItems:"center",justifyContent:"center"},children:(0,u.jsx)(rn.Z,{variant:"publicBody6Regular",color:"secondaryBlue.700",children:"NEW"})}),(0,u.jsx)(rn.Z,{variant:"publicBody6Regular",color:"primaryDark.500",sx:{textTransform:"uppercase"},children:T$.v7.get(null===s||void 0===s?void 0:s.status)})]}),(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",alignItems:"center",children:[(0,u.jsx)(yMe,{companyName:null!==(n=null===X||void 0===X?void 0:X.name)&&void 0!==n?n:"",companyAvatar:null!==(r=null===X||void 0===X?void 0:X.avatar)&&void 0!==r?r:"",companyAvatarWidth:50,companyAvatarHeight:50,companyNameTypographyVariant:"heading3"}),(0,u.jsx)(io.Z,{href:"/company/".concat(null===s||void 0===s?void 0:s.seller),target:"_blank",sx:{borderRadius:"3px",bgcolor:"secondaryBlue.100"},children:(0,u.jsx)(yM,{fill:"#4051EC"})})]})]}),(0,u.jsx)(io.Z,{onClick:function(){return a(!1)},children:(0,u.jsx)(sPe.Z,{sx:{color:"primaryDark.500",fontSize:"1.3rem"}})})]}):(0,u.jsxs)(nn.Z,{children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",mb:1,children:[(0,u.jsx)(EI,{text:null===s||void 0===s?void 0:s.status}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.600",ml:1.25,children:(0,rs.qJ)(null===s||void 0===s?void 0:s.published)}),(0,u.jsx)(io.Z,{sx:{ml:"auto",mr:"-8px"},onClick:function(){return a(!1)},children:(0,u.jsx)(sPe.Z,{sx:{color:"primaryDark.500",fontSize:"1.3rem"}})})]}),(0,u.jsx)(rn.Z,{mb:5,variant:"heading2",color:"primaryDark.600",children:null===s||void 0===s?void 0:s.timedProjectContentCurrent.body.overview.name})]}),(0,u.jsx)(nn.Z,{direction:"row",alignItems:"center",children:Y?(0,u.jsxs)(u.Fragment,{children:[[Kt.hv.FirstRound,Kt.hv.SecondRound].includes(null===s||void 0===s?void 0:s.status)&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Wo,{sx:{mr:2},variant:"primaryLight",onClick:function(){null===c||void 0===c||c(!l)},children:"Reject"}),(0,u.jsx)(Wo,{sx:{mr:2},variant:"primary",onClick:function(){E(!0),M((null===s||void 0===s?void 0:s.status)===Kt.hv.FirstRound?"confirm":"hire")},endIcon:(0,u.jsx)(KPe,{fill:tr.E4[50]}),children:(null===s||void 0===s?void 0:s.status)===Kt.hv.FirstRound?"Select":"Hire"})]}),[Kt.hv.FirstRoundRejected,Kt.hv.SecondRoundRejected].includes(null===s||void 0===s?void 0:s.status)&&!("feedback"in s)&&(0,u.jsx)(Wo,{sx:{mr:2},variant:"primary",onClick:function(){null===c||void 0===c||c(!l)},children:"Leave Feedback"})]}):(0,u.jsxs)(u.Fragment,{children:[(null===s||void 0===s?void 0:s.status)===Kt.hv.Chosen||(null===s||void 0===s?void 0:s.status)===Kt.hv.FirstRoundRejected||(null===s||void 0===s?void 0:s.status)===Kt.hv.SecondRoundRejected?null:(null===s||void 0===s?void 0:s.status)===Kt.hv.Draft?(0,u.jsx)(Wo,{sx:{mr:1,border:"solid 1px",borderColor:"#6D51F6",backgroundColor:"white"},variant:"primaryLight",onClick:function(){return q(!0)},children:"DELETE"}):(0,u.jsx)(Wo,{sx:{mr:1},variant:"secondary",onClick:function(){return S(!0)},children:"WITHDRAW"}),(null===s||void 0===s?void 0:s.status)===Kt.hv.Chosen||(null===s||void 0===s?void 0:s.status)===Kt.hv.FirstRoundRejected||(null===s||void 0===s?void 0:s.status)===Kt.hv.SecondRoundRejected?null:(0,u.jsx)(Wo,{sx:{color:"primaryDark.500",border:"none"},disabled:(null===s||void 0===s?void 0:s.editStatus)===Kt.hv.Pending||(null===s||void 0===s?void 0:s.status)===Kt.hv.Pending,onClick:function(){return v("".concat(null===s||void 0===s?void 0:s.timedProjectPitch,"/edit"))},endIcon:(0,u.jsx)(fPe,{fill:tr.E4[50]}),variant:"secondary",children:"EDIT"})]})})]}),(0,u.jsx)(IMe,{}),s&&"feedback"in s&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(RMe,{title:"client review",icon:(0,u.jsx)(VPe,{})}),(0,u.jsx)(TAe,{feedback:J}),(0,u.jsx)(IMe,{})]}),(0,u.jsx)(RMe,{title:"Team description",icon:(0,u.jsx)(bPe,{})}),s&&(null===s||void 0===s?void 0:s.overview)&&(null===s||void 0===s?void 0:s.overview.description)&&(0,u.jsx)(m$,{items:[],isEditable:!1,content:null===s||void 0===s?void 0:s.overview.description}),(0,u.jsx)(IMe,{}),(0,u.jsx)(RMe,{title:"Top level strategy",icon:(0,u.jsx)(APe,{})}),s&&(null===s||void 0===s?void 0:s.overview)&&(null===s||void 0===s?void 0:s.overview.strategy)&&(0,u.jsx)(m$,{items:[],isEditable:!1,content:null===s||void 0===s?void 0:s.overview.strategy}),(0,u.jsx)(IMe,{}),s&&(null===s||void 0===s?void 0:s.caseStudies.length)>0&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(RMe,{title:"Case study portfolio",icon:(0,u.jsx)(kPe,{})}),(0,u.jsx)(nn.Z,{position:"relative",width:"100%",children:(0,u.jsx)(N5,{items:(null===s||void 0===s?void 0:s.caseStudies)||[],carouselItemWidth:270,activeIndexItem:0,sx:{width:"100%",pb:"30px",ml:"-16px","&>*:nth-child(1)":{marginLeft:"18px"}},renderCustomBackAndNextButtons:function(e){var t=e.back,n=e.next;return(0,u.jsx)(DAe,{back:t,next:n})},renderCarouselItem:function(e){var t=e.item;return t?(0,u.jsx)(mAe,{onClick:function(e){h(!0),f(e.id)},sx:{minWidth:270,maxWidth:270},id:t.id,topChip:(0,u.jsx)(PAe,{}),bottomComponent:(0,u.jsx)(Cme,{displayName:"name",id:t.id,resource:"case-studies",renderComponent:function(e){return(0,u.jsx)(vAe,{rating:e.score})}}),coverImg:t.file,caseStudyName:t.title,companyLogo:t.seller.avatar,companyName:t.companyName}):null}})}),(0,u.jsx)(IMe,{})]}),(0,u.jsx)(RMe,{title:"Related materials",icon:(0,u.jsx)(LPe,{})}),(0,u.jsx)(Xy.Z,{children:null===s||void 0===s?void 0:s.materials.map((function(e){return(0,u.jsx)(L3,{component:"a",href:(null===e||void 0===e?void 0:e.file)||"",sx:{px:0},download:!0,children:(0,u.jsxs)(nn.Z,{children:[(0,u.jsxs)(nn.Z,{mb:.75,direction:"row",alignItems:"center",children:[(0,u.jsx)(tn,{width:10,height:10,sx:{border:"2px solid ".concat(tr.IV[300]),borderRadius:"50%",bgcolor:"primaryDark.500",mr:1.25}}),(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.600",children:e.fileName})]}),(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",pl:1.25,children:[(0,u.jsx)(tn,{component:"img",sx:{width:30,height:30},src:(0,rs.wQ)(null===e||void 0===e?void 0:e.file),mr:1.25}),(0,u.jsx)(rn.Z,{variant:"body3",fontWeight:"600",color:"primaryDark.600",children:e.fileName})]})]})})}))})]}),(0,u.jsx)(uMe,{isOpen:l,setIsOpen:c,pitch:s}),(0,u.jsx)(bMe,{open:j,setOpen:S,pitchId:null===s||void 0===s?void 0:s.timedProjectPitch}),O&&A&&(0,u.jsx)(MMe,{type:A,isOpen:O,handleOnClose:function(){E(!1),M(null),F("idle")},handleConfirm:function(){var e;e="confirm"===A?Kt.hv.SecondRound:Kt.hv.Hired,s&&(F("loading"),z({id:null===s||void 0===s?void 0:s.timedProjectPitch,suffix:e===Kt.hv.SecondRound?"second-round":"hire"},{onError:function(){F("failed"),m()},onSuccess:function(e){e&&_(e.data.id),F("succeeded"),m()}}))},patchStatus:R,projectId:N}),(0,u.jsx)(TMe,{open:V,setOpen:q,pitchId:null===s||void 0===s?void 0:s.timedProjectPitch})]})}),(0,u.jsx)(WDe,{open:b,autoHideDuration:2e3,onClose:function(){return x(!1)},anchorOrigin:{vertical:"bottom",horizontal:"center"},children:(0,u.jsx)(oPe,{onClose:function(){return x(!1)},severity:"info",sx:{width:"100%"},children:"Feature not yet implemented."})})]})},BMe=function(e){var t=e.icon,n=e.title;return(0,u.jsxs)(nn.Z,{sx:{fill:tr.IV[500]},alignItems:"center",direction:"row",children:[t,(0,u.jsx)(rn.Z,{color:"primaryDark.500",variant:"heading4",ml:1.375,sx:{fontSize:"12px"},children:n})]})},LMe=function(e){var t=e.label,n=e.value,r=e.sx;return n?(0,u.jsxs)(nn.Z,{sx:r,spacing:1,children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",sx:{fontSize:"12px"},children:t}),(0,u.jsx)(rn.Z,{variant:"body1",color:"primaryDark.700",sx:{fontFamily:"Gellix-Semibold",fontSize:"16px"},children:n})]}):null},NMe=function(e){var t=e.competitors;return(0,u.jsx)(nn.Z,{children:t.map((function(e){var t=null===e||void 0===e?void 0:e.description;return(0,u.jsxs)(tn,{sx:{padding:"12px",margin:"12px 0",borderLeft:"1px solid #E3A900"},children:[(0,u.jsx)(rn.Z,{variant:"body1",color:"primaryDark.600",sx:{marginBottom:t?"8px":"0px",fontSize:"16px",fontFamily:"Gellix-SemiBold",letterSpacing:"0.05em"},children:e.name}),t&&(0,u.jsx)(rn.Z,{variant:"inherit",color:"primaryDark.600",sx:{fontSize:"14px"},children:e.description})]},e.name)}))})},_Me=["title","titleId"];function zMe(){return zMe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zMe.apply(this,arguments)}function HMe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function WMe(e,t){var n=e.title,r=e.titleId,i=HMe(e,_Me);return o.createElement("svg",zMe({width:16,height:16,viewBox:"0 0 16 16",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,PMe||(PMe=o.createElement("path",{d:"M1.33138 0.441406C0.87138 0.441406 0.498047 0.81474 0.498047 1.27474V5.44141C0.498047 5.90141 0.87138 6.27474 1.33138 6.27474C1.79138 6.27474 2.16471 5.90141 2.16471 5.44141V2.10807H5.49805C5.95805 2.10807 6.33138 1.73474 6.33138 1.27474C6.33138 0.81474 5.95805 0.441406 5.49805 0.441406H1.33138ZM10.498 0.441406C10.038 0.441406 9.66471 0.81474 9.66471 1.27474C9.66471 1.73474 10.038 2.10807 10.498 2.10807H13.8314V5.44141C13.8314 5.90141 14.2047 6.27474 14.6647 6.27474C15.1247 6.27474 15.498 5.90141 15.498 5.44141V1.27474C15.498 0.81474 15.1247 0.441406 14.6647 0.441406H10.498ZM7.99805 2.94141C6.61721 2.94141 5.49805 4.06057 5.49805 5.44141C5.49805 6.82224 6.61721 7.94141 7.99805 7.94141C9.37888 7.94141 10.498 6.82224 10.498 5.44141C10.498 4.06057 9.37888 2.94141 7.99805 2.94141ZM7.16471 8.77474C5.72471 8.77474 4.26972 9.7064 3.85722 11.0147C3.68805 11.5514 4.10138 12.1081 4.66471 12.1081C5.51055 12.1081 10.9097 12.1081 11.3314 12.1081C11.9022 12.1081 12.2964 11.5547 12.113 11.0147C11.6789 9.73723 10.238 8.77474 8.83138 8.77474H7.16471ZM1.33138 9.60807C0.87138 9.60807 0.498047 9.98141 0.498047 10.4414V14.6081C0.498047 15.0681 0.87138 15.4414 1.33138 15.4414H5.49805C5.95805 15.4414 6.33138 15.0681 6.33138 14.6081C6.33138 14.1481 5.95805 13.7747 5.49805 13.7747H2.16471V10.4414C2.16471 9.98141 1.79138 9.60807 1.33138 9.60807ZM14.6647 9.60807C14.2047 9.60807 13.8314 9.98141 13.8314 10.4414V13.7747H10.498C10.038 13.7747 9.66471 14.1481 9.66471 14.6081C9.66471 15.0681 10.038 15.4414 10.498 15.4414H14.6647C15.1247 15.4414 15.498 15.0681 15.498 14.6081V10.4414C15.498 9.98141 15.1247 9.60807 14.6647 9.60807Z",fill:"current"})))}var VMe,UMe=o.forwardRef(WMe),qMe=(n.p,["title","titleId"]);function GMe(){return GMe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GMe.apply(this,arguments)}function YMe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function KMe(e,t){var n=e.title,r=e.titleId,i=YMe(e,qMe);return o.createElement("svg",GMe({width:16,height:16,viewBox:"0 0 16 16",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,VMe||(VMe=o.createElement("path",{d:"M4.65885 0.441406C4.19885 0.441406 3.82552 0.81474 3.82552 1.27474V2.10807H3.12219C1.66386 2.10807 0.492188 3.27891 0.492188 4.73808V5.44141C0.492188 7.71557 1.91968 9.71892 4.64718 10.4364C5.22135 11.1939 6.13886 11.8047 7.15219 12.0189L7.15885 13.7747H5.49219C5.03219 13.7747 4.65885 14.1481 4.65885 14.6081C4.65885 15.0681 5.03219 15.4414 5.49219 15.4414H10.4922C10.9522 15.4414 11.3255 15.0681 11.3255 14.6081C11.3255 14.1481 10.9522 13.7747 10.4922 13.7747H8.82552L8.81968 12.0248C9.83302 11.8098 10.7364 11.2281 11.3314 10.4239C14.1089 9.69391 15.4922 7.71557 15.4922 5.44141V4.73808C15.4922 3.27974 14.3213 2.10807 12.8622 2.10807H12.1589V1.27474C12.1589 0.81474 11.7855 0.441406 11.3255 0.441406C10.4922 0.441406 5.49219 0.441406 4.65885 0.441406ZM6.32552 2.10807H7.15885C7.61885 2.10807 7.99219 2.48141 7.99219 2.94141C7.99219 3.40141 7.61885 3.77474 7.15885 3.77474H6.32552C5.86552 3.77474 5.49219 3.40141 5.49219 2.94141C5.49219 2.48141 5.86552 2.10807 6.32552 2.10807ZM3.12219 3.77474H3.82552C3.82552 3.77474 3.82219 8.26809 3.82636 8.34225C2.64553 7.67392 2.15885 6.61474 2.15885 5.44141V4.73808C2.15885 4.19974 2.58386 3.77474 3.12219 3.77474ZM12.1589 3.77474H12.8622C13.4005 3.77474 13.8255 4.19974 13.8255 4.73808V5.44141C13.8255 6.61474 13.2822 7.68223 12.1597 8.33223C12.1639 8.25807 12.1589 8.01641 12.1589 7.94141V3.77474Z",fill:"current"})))}var JMe,XMe=o.forwardRef(KMe),QMe=(n.p,["title","titleId"]);function $Me(){return $Me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$Me.apply(this,arguments)}function eTe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function tTe(e,t){var n=e.title,r=e.titleId,i=eTe(e,QMe);return o.createElement("svg",$Me({width:20,height:12,viewBox:"0 0 20 12",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,JMe||(JMe=o.createElement("path",{d:"M3.31445 0.164062C1.93362 0.164062 0.814453 1.28331 0.814453 2.66406V9.33073C0.814453 10.7116 1.93362 11.8307 3.31445 11.8307H16.6478C18.0286 11.8307 19.1478 10.7116 19.1478 9.33073V2.66406C19.1478 1.28331 18.0286 0.164062 16.6478 0.164062H3.31445ZM3.31445 1.83073H4.98112C5.44112 1.83073 5.81445 2.20381 5.81445 2.66406C5.81445 3.12431 5.44112 3.49739 4.98112 3.49739H4.14779C4.14779 3.95764 3.77445 4.33073 3.31445 4.33073C2.85445 4.33073 2.48112 3.95764 2.48112 3.49739V2.66406C2.48112 2.20381 2.85445 1.83073 3.31445 1.83073ZM14.9811 1.83073H16.6478C17.1078 1.83073 17.4811 2.20381 17.4811 2.66406V3.49739C17.4811 3.95764 17.1078 4.33073 16.6478 4.33073C16.1878 4.33073 15.8144 3.95764 15.8144 3.49739H14.9811C14.5211 3.49739 14.1478 3.12431 14.1478 2.66406C14.1478 2.20381 14.5211 1.83073 14.9811 1.83073ZM9.98112 3.49739C11.3619 3.49739 12.4811 4.61656 12.4811 5.99739C12.4811 7.37823 11.3619 8.49739 9.98112 8.49739C8.60028 8.49739 7.48112 7.37823 7.48112 5.99739C7.48112 4.61656 8.60028 3.49739 9.98112 3.49739ZM9.98112 5.16406C9.52112 5.16406 9.14778 5.53739 9.14778 5.99739C9.14778 6.45739 9.52112 6.83073 9.98112 6.83073C10.4411 6.83073 10.8145 6.45739 10.8145 5.99739C10.8145 5.53739 10.4411 5.16406 9.98112 5.16406ZM3.31445 7.66406C3.77445 7.66406 4.14779 8.03739 4.14779 8.49739H4.98112C5.44112 8.49739 5.81445 8.87073 5.81445 9.33073C5.81445 9.79073 5.44112 10.1641 4.98112 10.1641H3.31445C2.85445 10.1641 2.48112 9.79073 2.48112 9.33073V8.49739C2.48112 8.03739 2.85445 7.66406 3.31445 7.66406ZM16.6478 7.66406C17.1078 7.66406 17.4811 8.03739 17.4811 8.49739V9.33073C17.4811 9.79073 17.1078 10.1641 16.6478 10.1641H14.9811C14.5211 10.1641 14.1478 9.79073 14.1478 9.33073C14.1478 8.87073 14.5211 8.49739 14.9811 8.49739H15.8144C15.8144 8.03739 16.1878 7.66406 16.6478 7.66406Z",fill:"current"})))}var nTe,rTe=o.forwardRef(tTe),oTe=(n.p,["title","titleId"]);function iTe(){return iTe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iTe.apply(this,arguments)}function aTe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function sTe(e,t){var n=e.title,r=e.titleId,i=aTe(e,oTe);return o.createElement("svg",iTe({width:18,height:16,viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,nTe||(nTe=o.createElement("path",{d:"M6.0944 0.441406C4.02357 0.441406 2.3444 2.12032 2.3444 4.19141C2.3444 6.26249 4.02357 7.94141 6.0944 7.94141C8.16523 7.94141 9.8444 6.26249 9.8444 4.19141C9.8444 2.12032 8.16523 0.441406 6.0944 0.441406ZM12.3444 3.77474C11.8844 3.77474 11.5111 4.14782 11.5111 4.60807C11.5111 5.06832 11.8844 5.44141 12.3444 5.44141H16.5111C16.9711 5.44141 17.3444 5.06832 17.3444 4.60807C17.3444 4.14782 16.9711 3.77474 16.5111 3.77474H12.3444ZM11.5111 7.10807C11.0511 7.10807 10.6777 7.48116 10.6777 7.94141C10.6777 8.40166 11.0511 8.77474 11.5111 8.77474H16.5111C16.9711 8.77474 17.3444 8.40166 17.3444 7.94141C17.3444 7.48116 16.9711 7.10807 16.5111 7.10807H11.5111ZM3.2294 9.06124C1.70106 9.69191 0.677734 11.2382 0.677734 12.9414V14.6081C0.677734 15.0683 1.05107 15.4414 1.51107 15.4414H10.6777C11.1377 15.4414 11.5111 15.0683 11.5111 14.6081V12.9414C11.5111 11.2782 10.4819 9.76949 8.9594 9.11324C8.7444 9.02091 8.49523 9.01807 8.2819 9.11324C7.5444 9.44374 6.82607 9.60791 6.0944 9.60807C5.36523 9.60807 4.6444 9.43474 3.88106 9.08724C3.67106 8.99174 3.44273 8.97349 3.2294 9.06124ZM14.0111 10.4414C13.5511 10.4414 13.1777 10.8145 13.1777 11.2747C13.1777 11.735 13.5511 12.1081 14.0111 12.1081H16.5111C16.9711 12.1081 17.3444 11.735 17.3444 11.2747C17.3444 10.8145 16.9711 10.4414 16.5111 10.4414H14.0111Z",fill:"#79829B"})))}var lTe,cTe=o.forwardRef(sTe),uTe=(n.p,["title","titleId"]);function dTe(){return dTe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dTe.apply(this,arguments)}function pTe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function fTe(e,t){var n=e.title,r=e.titleId,i=pTe(e,uTe);return o.createElement("svg",dTe({width:19,height:19,viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,lTe||(lTe=o.createElement("path",{d:"M14.9907 18.4907C17.1997 18.4907 18.9907 16.6997 18.9907 14.4907V4.49072C18.9907 2.28172 17.1997 0.490723 14.9907 0.490723H4.99072C2.78172 0.490723 0.990723 2.28172 0.990723 4.49072V8.49072C0.990723 9.04272 1.43872 9.49072 1.99072 9.49072C2.54272 9.49072 2.99072 9.04272 2.99072 8.49072V4.49072C2.99072 3.38572 3.88572 2.49072 4.99072 2.49072H14.9907C16.0957 2.49072 16.9907 3.38572 16.9907 4.49072V14.4907C16.9907 15.5957 16.0957 16.4907 14.9907 16.4907H10.9907C10.4387 16.4907 9.99072 16.9387 9.99072 17.4907C9.99072 18.0427 10.4387 18.4907 10.9907 18.4907H14.9907ZM2.99072 17.4907C3.24672 17.4907 3.51372 17.4047 3.70972 17.2097L11.2097 9.70972L13.9907 12.4907V5.49072H6.99072L9.77173 8.27173L2.27173 15.7717C1.88173 16.1627 1.88173 16.8187 2.27173 17.2097C2.46773 17.4047 2.73472 17.4907 2.99072 17.4907Z",fill:"#F9F9F9"})))}var hTe=o.forwardRef(fTe),mTe=(n.p,{flexDirection:"row",justifyContent:"space-between",width:"100%",height:"auto",".MuiTypography-heading4":{fontSize:"12px"},".MuiTypography-heading3":{fontSize:"14px"}}),vTe={flex:"1",borderBottom:"1px solid #E5E8FF"},gTe=function(e){var t,n,r=e.onClose,i=e.open,a=e.timedProject,s=e.drawerWidth,c=void 0===s?"40%":s,d=e.withButtons;if(!a)return null;var p=(0,ze.s0)(),f=Pa(),h=a.body,m=h.budget,v=h.overview,g=h.timeline,y=h.skills,b=h.about,x=m.recurring?"Recurring":"One time",w=T$.TQ.get(y.providerScope)||"",C=(null===(t=b.targetMarkets)||void 0===t?void 0:t.map((function(e){return Kt.NF.get(e)})))||[],j=b.industries.map((function(e){return Kt.lu.get(e)})),S=y.services.map((function(e){return Kt.Sj.get(e)})),k=y.platforms.map((function(e){return T$.VA.get(e)})),Z=y.languages.map((function(e){return T$.G3.get(e)})),O=y.tools.map((function(e){return T$.oz.get(e)})),E=hi({resource:"case-studies-content?company=".concat(null===f||void 0===f||null===(n=f.membership)||void 0===n?void 0:n.company)}).data,D=null===E||void 0===E?void 0:E.data.results,P=null===D||void 0===D?void 0:D.some((function(e){return e.status===Kt.U_.Verified})),A=Yd(),M=null===A||void 0===A?void 0:A.includes(Kt.ks.Buyer),T=(0,o.useState)(!0),I=(0,Le.Z)(T,2),R=I[0],F=I[1];return(0,u.jsx)(ec,{anchor:"right",hideBackdrop:!0,PaperProps:{sx:{boxShadow:"1px 10px 30px rgba(56, 69, 114, 0.1)",width:c,mt:"".concat(bR,"px"),height:"calc(100vh - ".concat(bR,"px)")}},open:i,children:(0,u.jsx)(U.Z,{onClickAway:r,children:(0,u.jsxs)(nn.Z,{sx:{padding:"24px"},children:[!P&&R&&!M&&(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{backgroundColor:"#FFF2F4",borderBottomLeftRadius:"15px",borderBottomRightRadius:"15px"},p:1.5,mb:2,children:[(0,u.jsx)(l5,{fill:"#DF5364"}),(0,u.jsx)(rn.Z,{sx:{fontSize:"12px",lineHeight:"16px",fontWeight:"bold"},children:"You must have at least one client-verified case study to pitch for a project."}),(0,u.jsx)(io.Z,{onClick:function(){F(!1)},sx:{p:0,height:"fit-content"},children:(0,u.jsx)(X2,{fill:tr.IV[700]})})]}),(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,u.jsx)(rn.Z,{sx:{display:"block"},variant:"heading1",color:"primaryDark.600",children:v.name}),(0,u.jsx)(io.Z,{onClick:r,sx:{p:0,height:"fit-content"},children:(0,u.jsx)(X2,{fill:tr.IV[500]})})]}),d&&(0,u.jsx)(nn.Z,{direction:"row",mt:2,children:(0,u.jsx)(Wo,{disabled:!P,sx:{mr:1},variant:"primary",endIcon:(0,u.jsx)(hTe,{}),onClick:function(){return p("./create",{state:{timedProjectId:null===a||void 0===a?void 0:a.timedProject,timedProjectName:v.name}})},children:"SUBMIT PITCH"})}),(0,u.jsxs)(nn.Z,{direction:"row",sx:{margin:"40px 0"},children:[(0,u.jsx)(S3,{sx:(0,l.Z)((0,l.Z)({},mTe),{},{borderBottomRightRadius:0,borderBottomLeftRadius:0,margin:"0 24px 0 0"}),variant:"start",text:"pitch deadline",date:g.pitchDeadline}),(0,u.jsx)(S3,{sx:(0,l.Z)((0,l.Z)({},mTe),{},{borderTopRightRadius:0,borderTopLeftRadius:0}),variant:"end",text:"project start",date:g.projectStart})]}),(0,u.jsxs)(nn.Z,{sx:{padding:"0 16px 16px 16px",borderBottom:"1px solid #E5E8FF"},direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(LMe,{label:"seller location",value:w}),(0,u.jsx)(LMe,{label:"project type",value:x}),(0,u.jsx)(LMe,{label:"budget",value:"$".concat(m.budget)})]}),(0,u.jsxs)(nn.Z,{direction:"row",children:[!!S.length&&(0,u.jsxs)(nn.Z,{sx:(0,l.Z)((0,l.Z)({},vTe),{},{padding:"16px"}),spacing:1,children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",sx:{fontSize:"12px"},children:"required services"}),(0,u.jsx)(nn.Z,{direction:"row",flexWrap:"wrap",gap:"8px",children:S.map((function(e){return(0,u.jsx)(_d,{label:e})}))})]}),!!k.length&&(0,u.jsxs)(nn.Z,{sx:(0,l.Z)((0,l.Z)({},vTe),{},{padding:"16px"}),spacing:1,children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",sx:{fontSize:"12px"},children:"tech platforms"}),(0,u.jsx)(nn.Z,{direction:"row",flexWrap:"wrap",gap:"8px",children:k.map((function(e){return(0,u.jsx)(_d,{label:e})}))})]})]}),(0,u.jsxs)(nn.Z,{direction:"row",children:[!!O.length&&(0,u.jsxs)(nn.Z,{sx:(0,l.Z)((0,l.Z)({},vTe),{},{padding:"16px"}),spacing:1,children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",sx:{fontSize:"12px"},children:"tech tools"}),(0,u.jsx)(nn.Z,{direction:"row",flexWrap:"wrap",gap:"8px",children:O.map((function(e){return(0,u.jsx)(_d,{label:e})}))})]}),!!Z.length&&(0,u.jsxs)(nn.Z,{sx:(0,l.Z)((0,l.Z)({},vTe),{},{padding:"16px"}),spacing:1,children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",sx:{fontSize:"12px"},children:"programming languages"}),(0,u.jsx)(nn.Z,{direction:"row",flexWrap:"wrap",gap:"8px",children:Z.map((function(e){return(0,u.jsx)(_d,{label:e})}))})]})]}),(0,u.jsxs)(nn.Z,{direction:"row",children:[!!j.length&&(0,u.jsxs)(nn.Z,{sx:(0,l.Z)((0,l.Z)({},vTe),{},{padding:"16px"}),spacing:1,children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",sx:{fontSize:"12px"},children:"industry"}),(0,u.jsx)(nn.Z,{direction:"row",flexWrap:"wrap",gap:"8px",children:j.map((function(e){return(0,u.jsx)(_d,{label:e})}))})]}),!!C.length&&(0,u.jsxs)(nn.Z,{sx:(0,l.Z)((0,l.Z)({},vTe),{},{padding:"16px"}),spacing:1,children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",sx:{fontSize:"12px"},children:"target market"}),(0,u.jsx)(nn.Z,{direction:"row",flexWrap:"wrap",gap:"8px",children:C.map((function(e){return(0,u.jsx)(_d,{label:e})}))})]})]}),(0,u.jsxs)(nn.Z,{sx:(0,l.Z)((0,l.Z)({},vTe),{},{padding:"16px 0"}),spacing:2,children:[(0,u.jsx)(BMe,{title:"company description",icon:(0,u.jsx)(bPe,{})}),(0,u.jsx)(m$,{items:[],isEditable:!1,content:v.description})]}),(0,u.jsxs)(nn.Z,{sx:(0,l.Z)((0,l.Z)({},vTe),{},{padding:"16px 0"}),spacing:2,children:[(0,u.jsx)(BMe,{title:"project goals",icon:(0,u.jsx)(XMe,{})}),(0,u.jsx)(m$,{items:[],isEditable:!1,content:b.goals})]}),b.audience&&(0,u.jsxs)(nn.Z,{sx:(0,l.Z)((0,l.Z)({},vTe),{},{padding:"16px 0"}),spacing:2,children:[(0,u.jsx)(BMe,{title:"target audience",icon:(0,u.jsx)(UMe,{})}),(0,u.jsx)(m$,{items:[],isEditable:!1,content:b.audience})]}),!!b.competitors.length&&(0,u.jsxs)(nn.Z,{sx:(0,l.Z)((0,l.Z)({},vTe),{},{padding:"16px 0"}),spacing:2,children:[(0,u.jsx)(BMe,{title:"main competitors",icon:(0,u.jsx)(cTe,{})}),(0,u.jsx)(NMe,{competitors:b.competitors})]}),(0,u.jsxs)(nn.Z,{sx:{flex:"1",padding:"16px 0"},spacing:2,children:[(0,u.jsx)(BMe,{title:"budget description",icon:(0,u.jsx)(rTe,{})}),(0,u.jsx)(m$,{items:[],isEditable:!1,content:m.budgetDescription})]})]})})})},yTe=n(15558),bTe=["toolTipText","backgroundColor","icon","placement","className"],xTe=(0,P.ZP)((function(e){var t=e.toolTipText,n=e.backgroundColor,r=void 0===n?tr.IV[500]:n,o=e.icon,i=void 0===o?(0,u.jsx)(J3.r,{fill:r,style:{width:18,height:18}}):o,a=e.placement,s=void 0===a?"top":a,c=e.className,d=Nn(e,bTe);return(0,u.jsx)(es.Z,(0,l.Z)((0,l.Z)({placement:s,classes:{popper:c},arrow:!0},d),{},{componentsProps:{tooltip:{sx:{backgroundColor:tr.IV[600],px:1.5,py:.5}}},title:(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.200",fontWeight:600,textTransform:"none",children:t}),children:i}))}))((0,t.Z)({},"& .".concat(yTe.Z.tooltip),{maxWidth:235})),wTe=xTe,CTe=[{id:"pitches-all",title:"All"},{id:"pitches_1st-round",title:"1st round",search:{status:Kt.hv.FirstRound}},{id:"pitches_2st-round",title:"2nd round",search:{status:Kt.hv.SecondRound}},{id:"pitches_hired",title:"Hired",search:{status:Kt.hv.Chosen}},{id:"pitches_rejected",title:"Rejected",search:{status:Kt.hv.FirstRoundRejected}},{id:"pitches_pending",title:"Pending",search:{status:Kt.hv.Pending}},{id:"pitches_draft",title:"Draft",search:{status:Kt.hv.Draft}}],jTe=function(){var e,n,r=(0,ze.TH)(),i=(0,ze.s0)(),a=Pa(),s=(0,o.useState)(!(null===r||void 0===r||!r.state)),c=(0,Le.Z)(s,2),d=c[0],p=c[1],f=(0,o.useState)(null!==(e=null===r||void 0===r?void 0:r.state)&&void 0!==e?e:null),h=(0,Le.Z)(f,2),m=h[0],v=h[1],g=(0,o.useState)(null),y=(0,Le.Z)(g,2),b=y[0],x=y[1],w=(0,o.useState)(!1),C=(0,Le.Z)(w,2),S=C[0],k=C[1],Z=(0,o.useState)(null),O=(0,Le.Z)(Z,2),E=O[0],D=O[1],P=(0,o.useState)([]),A=(0,Le.Z)(P,2),M=A[0],T=A[1],I=(0,o.useState)(!1),R=(0,Le.Z)(I,2),F=R[0],B=R[1],L=[{field:"name",icon:(0,u.jsx)(I3,{fill:tr.dx[500]}),columnsStyle:{flexGrow:1,flexShrink:1,fontWeight:600,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0}},{field:"budget",align:"start",columnsStyle:{alignSelf:"flex-start",textAlign:"right",fontWeight:300,variant:"body2",color:"primaryDark.500",width:"auto",flexGrow:0,flexShrink:0,flexBasis:"auto"},valueFormatter:function(e){return(0,rs.xG)(e.budget,e.currency)}}],N=[{field:"status",headerName:"Status",flex:1,renderCell:function(e){return(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",alignItems:"center",children:[(0,u.jsx)(EI,{text:e.value}),null!==e.row.edit&&(0,u.jsx)(wTe,{toolTipText:"The pitch has been edited. It needs to be approved by Spona for the changes to be applied."})]})}},{field:"projectName",headerName:"Project name",flex:1.5,renderCell:function(e){return(0,u.jsx)(rn.Z,{fontWeight:"600",color:"primaryDark.600",children:e.value})}},{field:"published",headerName:"Pitched",flex:1,renderCell:function(e){return(0,u.jsx)(rn.Z,{children:(0,rs.qJ)(e.value)})}}],_=hi({resource:"timed-projects",refetchOnMount:!1,refetchOnReconnect:!1,refetchOnWindowFocus:!1}).data,z="name",H=(0,j.Z)(),W=(0,o.useState)(15),V=(0,Le.Z)(W,2),U=V[0],q=V[1];(0,o.useEffect)((function(){var e=function(){var e=window.innerWidth;if(e<=H.breakpoints.values.md)q(7);else if(e<=H.breakpoints.values.lg)q(11);else if(e<=H.breakpoints.values.xl)q(17);else{var t=Math.max(31,Math.floor(e/50));q(t)}};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]);var G=null===_||void 0===_?void 0:_.data.results.filter((function(e){return[Kt.Tl.Active,Kt.Tl.Canceled,Kt.Tl.Closed].includes(e.status)})).map((function(e){return(0,l.Z)((0,l.Z)({},e),{},(0,t.Z)({},z,(0,rs.$G)(e.name,U)))})),Y=Ra({enabled:!!m,id:m,resource:"timed-project-pitch-contents"}).data,K=Ra({enabled:!!b,id:b,resource:"timed-project-pitch-contents"}).data,J=Ra({enabled:!!E,id:E,resource:"timed-project-contents"}).data;return(0,o.useEffect)((function(){!1===d&&T([])}),[d]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(nn.Z,{spacing:4,children:[(0,u.jsx)(p5,{screen:Kt.Cx.PitchScreen}),(0,u.jsxs)(nn.Z,{spacing:vR,direction:"row",height:"292px",children:[(0,u.jsx)(b2,{sx:{width:{sm:"100%",lg:"49%"},p:0,pt:0,pb:4},renderComponentSx:{m:"0 !important",mt:"0 important"},renderComponent:(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(tn,{component:"img",src:aPe,sx:{objectFit:"cover",height:130,width:"100%"}}),(0,u.jsx)(rn.Z,{color:"primaryDark.600",alignSelf:"center",textAlign:"center",sx:{px:4,fontSize:"14px",py:{sm:2,lg:2,xl:3}},children:"Client-reviewed case studies are the first step to winning new projects on Spona."}),(0,u.jsx)(Wo,{endIcon:(0,u.jsx)(e4,{fill:"#fff",style:{width:16,height:16}}),sx:{width:"25%",alignSelf:"center"},onClick:function(){return i("/dashboard/case-studies/")},children:(0,u.jsx)(rn.Z,{variant:"heading4",children:"get started"})})]})}),(0,u.jsx)(b2,{headline:"Open projects",sx:{width:{sm:"100%",lg:"49%"},pt:2,pb:1.5,p:1},renderComponentSx:{height:"225px",width:"100%"},renderComponent:(0,u.jsx)(U3,{sx:{overflowY:"auto"},items:G||[],columns:L,onClick:function(e){D(e.content),k(!0)}})})]}),(0,u.jsx)(k2,{resource:"timed-project-pitches",searchParams:{company:null===a||void 0===a||null===(n=a.membership)||void 0===n?void 0:n.company},columns:N,panelConfig:CTe,onSelectionModelChange:function(e){return T(e)},selectionModel:M,visualStyle:"secondary",onRowClick:function(e){v(e.row.content),null!==e.row.edit?x(e.row.edit):x(null),p(!0)},hideFooter:!0,sx:{minHeight:"16rem"}}),(0,u.jsx)(FMe,{pitchContent:void 0!==K?(0,l.Z)((0,l.Z)({},Y),{},{editStatus:K.status}):Y,isDrawerOpen:d,setIsDrawerOpen:p}),(0,u.jsx)(gTe,{timedProject:J,open:S,onClose:function(){return k(!1)},withButtons:null===J||void 0===J?void 0:J.timedProject})]}),(0,u.jsx)(WDe,{open:F,autoHideDuration:2e3,onClose:function(){return B(!1)},anchorOrigin:{vertical:"bottom",horizontal:"center"},children:(0,u.jsx)(oPe,{onClose:function(){return B(!1)},severity:"info",sx:{width:"100%"},children:"Feature not yet implemented."})})]})},STe=function(){return(0,u.jsx)(ze.j3,{})},kTe=function(){};function ZTe(e,t){return void 0!==e[t]}function OTe(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}var ETe=n(91634);var DTe="milliseconds",PTe="seconds",ATe="minutes",MTe="hours",TTe="day",ITe="week",RTe="month",FTe="year",BTe="decade",LTe="century",NTe={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,day:864e5,week:6048e5},_Te={month:1,year:12,decade:120,century:1200};function zTe(e){return e%4===0&&e%100!==0||e%400===0?29:28}function HTe(e,t,n){switch(e=new Date(e),n){case DTe:case PTe:case ATe:case MTe:case TTe:case ITe:return function(e,t){var n=new Date(+e+t);return function(e,t){var n=e.getTimezoneOffset(),r=t.getTimezoneOffset();return new Date(+t+(r-n)*NTe.minutes)}(e,n)}(e,t*NTe[n]);case RTe:case FTe:case BTe:case LTe:return function(e,t){var n=e.getFullYear(),r=e.getMonth(),o=e.getDate(),i=12*n+r+t,a=Math.trunc(i/12),s=i%12,l=Math.min(o,function(e){return[31,zTe(e),31,30,31,30,31,31,30,31,30,31]}(a)[s]),c=new Date(e);return c.setFullYear(a),c.setDate(1),c.setMonth(s),c.setDate(l),c}(e,t*_Te[n])}throw new TypeError('Invalid units: "'+n+'"')}function WTe(e,t,n){return HTe(e,-t,n)}function VTe(e,t,n){switch(e=new Date(e),t){case LTe:case BTe:case FTe:e=sIe(e,0);case RTe:e=aIe(e,1);case ITe:case TTe:e=oIe(e,0);case MTe:e=rIe(e,0);case ATe:e=nIe(e,0);case PTe:e=tIe(e,0)}return t===BTe&&(e=WTe(e,lIe(e)%10,"year")),t===LTe&&(e=WTe(e,lIe(e)%100,"year")),t===ITe&&(e=function(e,t,n){var r=(iIe(e)+7-(n||0))%7;return void 0===t?r:HTe(e,t-r,TTe)}(e,0,n)),e}function UTe(e,t,n){switch(e=VTe(e=new Date(e),t,n),t){case LTe:case BTe:case FTe:case RTe:case ITe:(e=WTe(e=HTe(e,1,t),1,TTe)).setHours(23,59,59,999);break;case TTe:e.setHours(23,59,59,999);break;case MTe:case ATe:case PTe:e=WTe(e=HTe(e,1,t),1,DTe)}return e}var qTe=uIe((function(e,t){return e===t})),GTe=uIe((function(e,t){return e!==t})),YTe=uIe((function(e,t){return e>t})),KTe=uIe((function(e,t){return e>=t})),JTe=uIe((function(e,t){return e<t})),XTe=uIe((function(e,t){return e<=t}));function QTe(){return new Date(Math.min.apply(Math,arguments))}function $Te(){return new Date(Math.max.apply(Math,arguments))}function eIe(e,t,n,r){return r=r||"day",(!t||KTe(e,t,r))&&(!n||XTe(e,n,r))}var tIe=cIe("Milliseconds"),nIe=cIe("Seconds"),rIe=cIe("Minutes"),oIe=cIe("Hours"),iIe=cIe("Day"),aIe=cIe("Date"),sIe=cIe("Month"),lIe=cIe("FullYear");function cIe(e){var t=function(e){switch(e){case"Milliseconds":return 36e5;case"Seconds":return 3600;case"Minutes":return 60;case"Hours":return 1;default:return null}}(e);return function(n,r){if(void 0===r)return n["get"+e]();var o=new Date(n);return o["set"+e](r),t&&o["get"+e]()!=r&&("Hours"===e||r>=t&&o.getHours()-n.getHours()<Math.floor(r/t))&&o["set"+e](r+t),o}}function uIe(e){return function(t,n,r){return e(+VTe(t,r),+VTe(n,r))}}var dIe=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i};var pIe=function(e,t){return e===t||e!==e&&t!==t},fIe="object"==typeof global&&global&&global.Object===Object&&global,hIe="object"==typeof self&&self&&self.Object===Object&&self,mIe=fIe||hIe||Function("return this")(),vIe=mIe.Symbol,gIe=Object.prototype,yIe=gIe.hasOwnProperty,bIe=gIe.toString,xIe=vIe?vIe.toStringTag:void 0;var wIe=function(e){var t=yIe.call(e,xIe),n=e[xIe];try{e[xIe]=void 0;var r=!0}catch(i){}var o=bIe.call(e);return r&&(t?e[xIe]=n:delete e[xIe]),o},CIe=Object.prototype.toString;var jIe=function(e){return CIe.call(e)},SIe=vIe?vIe.toStringTag:void 0;var kIe=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":SIe&&SIe in Object(e)?wIe(e):jIe(e)};var ZIe=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var OIe=function(e){if(!ZIe(e))return!1;var t=kIe(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};var EIe=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var DIe=function(e){return null!=e&&EIe(e.length)&&!OIe(e)},PIe=/^(?:0|[1-9]\d*)$/;var AIe=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&PIe.test(e))&&e>-1&&e%1==0&&e<t};var MIe=function(e,t,n){if(!ZIe(n))return!1;var r=typeof t;return!!("number"==r?DIe(n)&&AIe(t,n.length):"string"==r&&t in n)&&pIe(n[t],e)},TIe=/\s/;var IIe=function(e){for(var t=e.length;t--&&TIe.test(e.charAt(t)););return t},RIe=/^\s+/;var FIe=function(e){return e?e.slice(0,IIe(e)+1).replace(RIe,""):e};var BIe=function(e){return null!=e&&"object"==typeof e};var LIe=function(e){return"symbol"==typeof e||BIe(e)&&"[object Symbol]"==kIe(e)},NIe=/^[-+]0x[0-9a-f]+$/i,_Ie=/^0b[01]+$/i,zIe=/^0o[0-7]+$/i,HIe=parseInt;var WIe=function(e){if("number"==typeof e)return e;if(LIe(e))return NaN;if(ZIe(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ZIe(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=FIe(e);var n=_Ie.test(e);return n||zIe.test(e)?HIe(e.slice(2),n?2:8):NIe.test(e)?NaN:+e},VIe=1/0;var UIe=function(e){return e?(e=WIe(e))===VIe||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0};var qIe=function(e){var t=UIe(e),n=t%1;return t===t?n?t-n:t:0},GIe=Math.ceil,YIe=Math.max;var KIe=function(e,t,n){t=(n?MIe(e,t,n):void 0===t)?1:YIe(qIe(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=Array(GIe(r/t));o<r;)a[i++]=dIe(e,o,o+=t);return a};function JIe(e){return e&&e.ownerDocument||document}function XIe(e,t){return function(e){var t=JIe(e);return t&&t.defaultView||window}(e).getComputedStyle(e,t)}var QIe=/([A-Z])/g;var $Ie=/^ms-/;function eRe(e){return function(e){return e.replace(QIe,"-$1").toLowerCase()}(e).replace($Ie,"-ms-")}var tRe=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;var nRe=function(e,t){var n="",r="";if("string"===typeof t)return e.style.getPropertyValue(eRe(t))||XIe(e).getPropertyValue(eRe(t));Object.keys(t).forEach((function(o){var i=t[o];i||0===i?!function(e){return!(!e||!tRe.test(e))}(o)?n+=eRe(o)+": "+i+";":r+=o+"("+i+") ":e.style.removeProperty(eRe(o))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n};function rRe(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}function oRe(e){return"window"in e&&e.window===e?e:"nodeType"in(t=e)&&t.nodeType===document.DOCUMENT_NODE&&e.defaultView||!1;var t}function iRe(e){var t="pageXOffset"===e?"scrollLeft":"scrollTop";return function(n,r){var o=oRe(n);if(void 0===r)return o?o[e]:n[t];o?o.scrollTo(o[e],r):n[t]=r}}var aRe=iRe("pageXOffset"),sRe=iRe("pageYOffset");function lRe(e){var t=JIe(e),n={top:0,left:0,height:0,width:0},r=t&&t.documentElement;return r&&rRe(r,e)?(void 0!==e.getBoundingClientRect&&(n=e.getBoundingClientRect()),n={top:n.top+sRe(r)-(r.clientTop||0),left:n.left+aRe(r)-(r.clientLeft||0),width:n.width,height:n.height}):n}var cRe=function(e){return!!e&&"offsetParent"in e};function uRe(e,t){var n,o={top:0,left:0};if("fixed"===nRe(e,"position"))n=e.getBoundingClientRect();else{var i=t||function(e){for(var t=JIe(e),n=e&&e.offsetParent;cRe(n)&&"HTML"!==n.nodeName&&"static"===nRe(n,"position");)n=n.offsetParent;return n||t.documentElement}(e);n=lRe(e),"html"!==function(e){return e.nodeName&&e.nodeName.toLowerCase()}(i)&&(o=lRe(i));var a=String(nRe(i,"borderTopWidth")||0);o.top+=parseInt(a,10)-sRe(i)||0;var s=String(nRe(i,"borderLeftWidth")||0);o.left+=parseInt(s,10)-aRe(i)||0}var l=String(nRe(e,"marginTop")||0),c=String(nRe(e,"marginLeft")||0);return(0,r.Z)({},n,{top:n.top-o.top-(parseInt(l,10)||0),left:n.left-o.left-(parseInt(c,10)||0)})}var dRe=!("undefined"===typeof window||!window.document||!window.document.createElement),pRe=(new Date).getTime();var fRe="clearTimeout",hRe=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-pRe)),r=setTimeout(e,n);return pRe=t,r},mRe=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};dRe&&["","webkit","moz","o","ms"].some((function(e){var t=mRe(e,"request");return t in window&&(fRe=mRe(e,"cancel"),hRe=function(e){return window[t](e)}),!!hRe}));var vRe=function(e){"function"===typeof window[fRe]&&window[fRe](e)},gRe=hRe;var yRe=function(){this.__data__=[],this.size=0};var bRe=function(e,t){for(var n=e.length;n--;)if(pIe(e[n][0],t))return n;return-1},xRe=Array.prototype.splice;var wRe=function(e){var t=this.__data__,n=bRe(t,e);return!(n<0)&&(n==t.length-1?t.pop():xRe.call(t,n,1),--this.size,!0)};var CRe=function(e){var t=this.__data__,n=bRe(t,e);return n<0?void 0:t[n][1]};var jRe=function(e){return bRe(this.__data__,e)>-1};var SRe=function(e,t){var n=this.__data__,r=bRe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function kRe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}kRe.prototype.clear=yRe,kRe.prototype.delete=wRe,kRe.prototype.get=CRe,kRe.prototype.has=jRe,kRe.prototype.set=SRe;var ZRe=kRe;var ORe=function(){this.__data__=new ZRe,this.size=0};var ERe=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var DRe=function(e){return this.__data__.get(e)};var PRe=function(e){return this.__data__.has(e)},ARe=mIe["__core-js_shared__"],MRe=function(){var e=/[^.]+$/.exec(ARe&&ARe.keys&&ARe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var TRe=function(e){return!!MRe&&MRe in e},IRe=Function.prototype.toString;var RRe=function(e){if(null!=e){try{return IRe.call(e)}catch(t){}try{return e+""}catch(t){}}return""},FRe=/^\[object .+?Constructor\]$/,BRe=Function.prototype,LRe=Object.prototype,NRe=BRe.toString,_Re=LRe.hasOwnProperty,zRe=RegExp("^"+NRe.call(_Re).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var HRe=function(e){return!(!ZIe(e)||TRe(e))&&(OIe(e)?zRe:FRe).test(RRe(e))};var WRe=function(e,t){return null==e?void 0:e[t]};var VRe=function(e,t){var n=WRe(e,t);return HRe(n)?n:void 0},URe=VRe(mIe,"Map"),qRe=VRe(Object,"create");var GRe=function(){this.__data__=qRe?qRe(null):{},this.size=0};var YRe=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},KRe=Object.prototype.hasOwnProperty;var JRe=function(e){var t=this.__data__;if(qRe){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return KRe.call(t,e)?t[e]:void 0},XRe=Object.prototype.hasOwnProperty;var QRe=function(e){var t=this.__data__;return qRe?void 0!==t[e]:XRe.call(t,e)};var $Re=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=qRe&&void 0===t?"__lodash_hash_undefined__":t,this};function eFe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}eFe.prototype.clear=GRe,eFe.prototype.delete=YRe,eFe.prototype.get=JRe,eFe.prototype.has=QRe,eFe.prototype.set=$Re;var tFe=eFe;var nFe=function(){this.size=0,this.__data__={hash:new tFe,map:new(URe||ZRe),string:new tFe}};var rFe=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var oFe=function(e,t){var n=e.__data__;return rFe(t)?n["string"==typeof t?"string":"hash"]:n.map};var iFe=function(e){var t=oFe(this,e).delete(e);return this.size-=t?1:0,t};var aFe=function(e){return oFe(this,e).get(e)};var sFe=function(e){return oFe(this,e).has(e)};var lFe=function(e,t){var n=oFe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function cFe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}cFe.prototype.clear=nFe,cFe.prototype.delete=iFe,cFe.prototype.get=aFe,cFe.prototype.has=sFe,cFe.prototype.set=lFe;var uFe=cFe;var dFe=function(e,t){var n=this.__data__;if(n instanceof ZRe){var r=n.__data__;if(!URe||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new uFe(r)}return n.set(e,t),this.size=n.size,this};function pFe(e){var t=this.__data__=new ZRe(e);this.size=t.size}pFe.prototype.clear=ORe,pFe.prototype.delete=ERe,pFe.prototype.get=DRe,pFe.prototype.has=PRe,pFe.prototype.set=dFe;var fFe=pFe;var hFe=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var mFe=function(e){return this.__data__.has(e)};function vFe(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new uFe;++t<n;)this.add(e[t])}vFe.prototype.add=vFe.prototype.push=hFe,vFe.prototype.has=mFe;var gFe=vFe;var yFe=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var bFe=function(e,t){return e.has(t)};var xFe=function(e,t,n,r,o,i){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,p=!0,f=2&n?new gFe:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var h=e[d],m=t[d];if(r)var v=a?r(m,h,d,t,e,i):r(h,m,d,e,t,i);if(void 0!==v){if(v)continue;p=!1;break}if(f){if(!yFe(t,(function(e,t){if(!bFe(f,t)&&(h===e||o(h,e,n,r,i)))return f.push(t)}))){p=!1;break}}else if(h!==m&&!o(h,m,n,r,i)){p=!1;break}}return i.delete(e),i.delete(t),p},wFe=mIe.Uint8Array;var CFe=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};var jFe=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},SFe=vIe?vIe.prototype:void 0,kFe=SFe?SFe.valueOf:void 0;var ZFe=function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new wFe(e),new wFe(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return pIe(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=CFe;case"[object Set]":var l=1&r;if(s||(s=jFe),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=xFe(s(e),s(t),r,o,i,a);return a.delete(e),u;case"[object Symbol]":if(kFe)return kFe.call(e)==kFe.call(t)}return!1};var OFe=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},EFe=Array.isArray;var DFe=function(e,t,n){var r=t(e);return EFe(e)?r:OFe(r,n(e))};var PFe=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i};var AFe=function(){return[]},MFe=Object.prototype.propertyIsEnumerable,TFe=Object.getOwnPropertySymbols,IFe=TFe?function(e){return null==e?[]:(e=Object(e),PFe(TFe(e),(function(t){return MFe.call(e,t)})))}:AFe,RFe=IFe;var FFe=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var BFe=function(e){return BIe(e)&&"[object Arguments]"==kIe(e)},LFe=Object.prototype,NFe=LFe.hasOwnProperty,_Fe=LFe.propertyIsEnumerable,zFe=BFe(function(){return arguments}())?BFe:function(e){return BIe(e)&&NFe.call(e,"callee")&&!_Fe.call(e,"callee")},HFe=zFe;var WFe=function(){return!1},VFe="object"==typeof exports&&exports&&!exports.nodeType&&exports,UFe=VFe&&"object"==typeof module&&module&&!module.nodeType&&module,qFe=UFe&&UFe.exports===VFe?mIe.Buffer:void 0,GFe=(qFe?qFe.isBuffer:void 0)||WFe,YFe={};YFe["[object Float32Array]"]=YFe["[object Float64Array]"]=YFe["[object Int8Array]"]=YFe["[object Int16Array]"]=YFe["[object Int32Array]"]=YFe["[object Uint8Array]"]=YFe["[object Uint8ClampedArray]"]=YFe["[object Uint16Array]"]=YFe["[object Uint32Array]"]=!0,YFe["[object Arguments]"]=YFe["[object Array]"]=YFe["[object ArrayBuffer]"]=YFe["[object Boolean]"]=YFe["[object DataView]"]=YFe["[object Date]"]=YFe["[object Error]"]=YFe["[object Function]"]=YFe["[object Map]"]=YFe["[object Number]"]=YFe["[object Object]"]=YFe["[object RegExp]"]=YFe["[object Set]"]=YFe["[object String]"]=YFe["[object WeakMap]"]=!1;var KFe=function(e){return BIe(e)&&EIe(e.length)&&!!YFe[kIe(e)]};var JFe=function(e){return function(t){return e(t)}},XFe="object"==typeof exports&&exports&&!exports.nodeType&&exports,QFe=XFe&&"object"==typeof module&&module&&!module.nodeType&&module,$Fe=QFe&&QFe.exports===XFe&&fIe.process,eBe=function(){try{var e=QFe&&QFe.require&&QFe.require("util").types;return e||$Fe&&$Fe.binding&&$Fe.binding("util")}catch(t){}}(),tBe=eBe&&eBe.isTypedArray,nBe=tBe?JFe(tBe):KFe,rBe=Object.prototype.hasOwnProperty;var oBe=function(e,t){var n=EFe(e),r=!n&&HFe(e),o=!n&&!r&&GFe(e),i=!n&&!r&&!o&&nBe(e),a=n||r||o||i,s=a?FFe(e.length,String):[],l=s.length;for(var c in e)!t&&!rBe.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||AIe(c,l))||s.push(c);return s},iBe=Object.prototype;var aBe=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||iBe)};var sBe=function(e,t){return function(n){return e(t(n))}},lBe=sBe(Object.keys,Object),cBe=Object.prototype.hasOwnProperty;var uBe=function(e){if(!aBe(e))return lBe(e);var t=[];for(var n in Object(e))cBe.call(e,n)&&"constructor"!=n&&t.push(n);return t};var dBe=function(e){return DIe(e)?oBe(e):uBe(e)};var pBe=function(e){return DFe(e,dBe,RFe)},fBe=Object.prototype.hasOwnProperty;var hBe=function(e,t,n,r,o,i){var a=1&n,s=pBe(e),l=s.length;if(l!=pBe(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:fBe.call(t,u)))return!1}var d=i.get(e),p=i.get(t);if(d&&p)return d==t&&p==e;var f=!0;i.set(e,t),i.set(t,e);for(var h=a;++c<l;){var m=e[u=s[c]],v=t[u];if(r)var g=a?r(v,m,u,t,e,i):r(m,v,u,e,t,i);if(!(void 0===g?m===v||o(m,v,n,r,i):g)){f=!1;break}h||(h="constructor"==u)}if(f&&!h){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(f=!1)}return i.delete(e),i.delete(t),f},mBe=VRe(mIe,"DataView"),vBe=VRe(mIe,"Promise"),gBe=VRe(mIe,"Set"),yBe=VRe(mIe,"WeakMap"),bBe="[object Map]",xBe="[object Promise]",wBe="[object Set]",CBe="[object WeakMap]",jBe="[object DataView]",SBe=RRe(mBe),kBe=RRe(URe),ZBe=RRe(vBe),OBe=RRe(gBe),EBe=RRe(yBe),DBe=kIe;(mBe&&DBe(new mBe(new ArrayBuffer(1)))!=jBe||URe&&DBe(new URe)!=bBe||vBe&&DBe(vBe.resolve())!=xBe||gBe&&DBe(new gBe)!=wBe||yBe&&DBe(new yBe)!=CBe)&&(DBe=function(e){var t=kIe(e),n="[object Object]"==t?e.constructor:void 0,r=n?RRe(n):"";if(r)switch(r){case SBe:return jBe;case kBe:return bBe;case ZBe:return xBe;case OBe:return wBe;case EBe:return CBe}return t});var PBe=DBe,ABe="[object Arguments]",MBe="[object Array]",TBe="[object Object]",IBe=Object.prototype.hasOwnProperty;var RBe=function(e,t,n,r,o,i){var a=EFe(e),s=EFe(t),l=a?MBe:PBe(e),c=s?MBe:PBe(t),u=(l=l==ABe?TBe:l)==TBe,d=(c=c==ABe?TBe:c)==TBe,p=l==c;if(p&&GFe(e)){if(!GFe(t))return!1;a=!0,u=!1}if(p&&!u)return i||(i=new fFe),a||nBe(e)?xFe(e,t,n,r,o,i):ZFe(e,t,l,n,r,o,i);if(!(1&n)){var f=u&&IBe.call(e,"__wrapped__"),h=d&&IBe.call(t,"__wrapped__");if(f||h){var m=f?e.value():e,v=h?t.value():t;return i||(i=new fFe),o(m,v,n,r,i)}}return!!p&&(i||(i=new fFe),hBe(e,t,n,r,o,i))};var FBe=function e(t,n,r,o,i){return t===n||(null==t||null==n||!BIe(t)&&!BIe(n)?t!==t&&n!==n:RBe(t,n,r,o,e,i))};var BBe=function(e,t){return FBe(e,t)};function LBe(){return(0,o.useState)(null)}var NBe=function(e){return e&&"function"!==typeof e?function(t){e.current=t}:e};var _Be=function(e,t){return(0,o.useMemo)((function(){return function(e,t){var n=NBe(e),r=NBe(t);return function(e){n&&n(e),r&&r(e)}}(e,t)}),[e,t])},zBe=n(41586);var HBe=function(e){var t=function(){var e=(0,o.useRef)(!0),t=(0,o.useRef)((function(){return e.current}));return(0,o.useEffect)((function(){return function(){e.current=!1}}),[]),t.current}();return[e[0],(0,o.useCallback)((function(n){if(t())return e[1](n)}),[t,e[1]])]},WBe=n(93414),VBe=n(88328),UBe=n(84858),qBe=n(54717),GBe=n(56795),YBe=n(8064),KBe=n(26095),JBe=n(67015),XBe=(0,n(86171).kZ)({defaultModifiers:[GBe.Z,KBe.Z,VBe.Z,UBe.Z,YBe.Z,qBe.Z,JBe.Z,WBe.Z]}),QBe=function(e){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}},$Be={name:"applyStyles",enabled:!1},eLe={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:function(e){var t=e.state;return function(){var e=t.elements,n=e.reference,r=e.popper;if("removeAttribute"in n){var o=(n.getAttribute("aria-describedby")||"").split(",").filter((function(e){return e.trim()!==r.id}));o.length?n.setAttribute("aria-describedby",o.join(",")):n.removeAttribute("aria-describedby")}}},fn:function(e){var t,n=e.state.elements,r=n.popper,o=n.reference,i=null==(t=r.getAttribute("role"))?void 0:t.toLowerCase();if(r.id&&"tooltip"===i&&"setAttribute"in o){var a=o.getAttribute("aria-describedby");if(a&&-1!==a.split(",").indexOf(r.id))return;o.setAttribute("aria-describedby",a?a+","+r.id:r.id)}}},tLe=[];var nLe=function(e,t,n){var i=void 0===n?{}:n,a=i.enabled,s=void 0===a||a,l=i.placement,c=void 0===l?"bottom":l,u=i.strategy,d=void 0===u?"absolute":u,p=i.modifiers,f=void 0===p?tLe:p,h=(0,b.Z)(i,["enabled","placement","strategy","modifiers"]),m=(0,o.useRef)(),v=(0,o.useCallback)((function(){var e;null==(e=m.current)||e.update()}),[]),g=(0,o.useCallback)((function(){var e;null==(e=m.current)||e.forceUpdate()}),[]),y=HBe((0,o.useState)({placement:c,update:v,forceUpdate:g,attributes:{},styles:{popper:QBe(d),arrow:{}}})),x=y[0],w=y[1],C=(0,o.useMemo)((function(){return{name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:function(e){var t=e.state,n={},r={};Object.keys(t.elements).forEach((function(e){n[e]=t.styles[e],r[e]=t.attributes[e]})),w({state:t,styles:n,attributes:r,update:v,forceUpdate:g,placement:t.placement})}}}),[v,g,w]);return(0,o.useEffect)((function(){m.current&&s&&m.current.setOptions({placement:c,strategy:d,modifiers:[].concat(f,[C,$Be])})}),[d,c,C,s]),(0,o.useEffect)((function(){if(s&&null!=e&&null!=t)return m.current=XBe(e,t,(0,r.Z)({},h,{placement:c,strategy:d,modifiers:[].concat(f,[eLe,C])})),function(){null!=m.current&&(m.current.destroy(),m.current=void 0,w((function(e){return(0,r.Z)({},e,{attributes:{},styles:{popper:QBe(d)}})})))}}),[s,e,t]),x},rLe=!1,oLe=!1;try{var iLe={get passive(){return rLe=!0},get once(){return oLe=rLe=!0}};dRe&&(window.addEventListener("test",iLe,iLe),window.removeEventListener("test",iLe,!0))}catch(Aet){}var aLe=function(e,t,n,r){if(r&&"boolean"!==typeof r&&!oLe){var o=r.once,i=r.capture,a=n;!oLe&&o&&(a=n.__once||function e(r){this.removeEventListener(t,e,i),n.call(this,r)},n.__once=a),e.addEventListener(t,a,rLe?r:i)}e.addEventListener(t,n,r)};var sLe=function(e,t,n,r){var o=r&&"boolean"!==typeof r?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)};var lLe=function(e,t,n,r){return aLe(e,t,n,r),function(){sLe(e,t,n,r)}};var cLe=function(e){var t=(0,o.useRef)(e);return(0,o.useEffect)((function(){t.current=e}),[e]),t};function uLe(e){var t=cLe(e);return(0,o.useCallback)((function(){return t.current&&t.current.apply(t,arguments)}),[t])}var dLe=n(73991),pLe=n.n(dLe);var fLe=function(e){return JIe(function(e){return e&&"setState"in e?g.findDOMNode(e):null!=e?e:null}(e))},hLe=function(){};var mLe=function(e){return e&&("current"in e?e.current:e)};var vLe=function(e,t,n){var r=void 0===n?{}:n,i=r.disabled,a=r.clickTrigger,s=void 0===a?"click":a,l=(0,o.useRef)(!1),c=t||hLe,u=(0,o.useCallback)((function(t){var n,r=mLe(e);pLe()(!!r,"RootClose captured a close event but does not have a ref to compare it to. useRootClose(), should be passed a ref that resolves to a DOM node"),l.current=!r||!!((n=t).metaKey||n.altKey||n.ctrlKey||n.shiftKey)||!function(e){return 0===e.button}(t)||!!rRe(r,t.target)}),[e]),d=uLe((function(e){l.current||c(e)})),p=uLe((function(e){27===e.keyCode&&c(e)}));(0,o.useEffect)((function(){if(!i&&null!=e){var t=window.event,n=fLe(mLe(e)),r=lLe(n,s,u,!0),o=lLe(n,s,(function(e){e!==t?d(e):t=void 0})),a=lLe(n,"keyup",(function(e){e!==t?p(e):t=void 0})),l=[];return"ontouchstart"in n.documentElement&&(l=[].slice.call(n.body.children).map((function(e){return lLe(e,"mousemove",hLe)}))),function(){r(),o(),a(),l.forEach((function(e){return e()}))}}}),[e,i,s,u,d,p])},gLe=function(e){var t;return"undefined"===typeof document?null:null==e?JIe().body:("function"===typeof e&&(e=e()),e&&"current"in e&&(e=e.current),(null==(t=e)?void 0:t.nodeType)&&e||null)};function yLe(e,t){var n=(0,o.useState)((function(){return gLe(e)})),r=n[0],i=n[1];if(!r){var a=gLe(e);a&&i(a)}return(0,o.useEffect)((function(){t&&r&&t(r)}),[t,r]),(0,o.useEffect)((function(){var t=gLe(e);t!==r&&i(t)}),[e,r]),r}function bLe(e){return void 0===e&&(e={}),Array.isArray(e)?e:Object.keys(e).map((function(t){return e[t].name=t,e[t]}))}function xLe(e){var t,n,o,i,a=e.enabled,s=e.enableEvents,l=e.placement,c=e.flip,u=e.offset,d=e.containerPadding,p=e.arrowElement,f=e.popperConfig,h=void 0===f?{}:f,m=function(e){var t={};return Array.isArray(e)?(null==e||e.forEach((function(e){t[e.name]=e})),t):e||t}(h.modifiers);return(0,r.Z)({},h,{placement:l,enabled:a,modifiers:bLe((0,r.Z)({},m,{eventListeners:{enabled:s},preventOverflow:(0,r.Z)({},m.preventOverflow,{options:d?(0,r.Z)({padding:d},null==(t=m.preventOverflow)?void 0:t.options):null==(n=m.preventOverflow)?void 0:n.options}),offset:{options:(0,r.Z)({offset:u},null==(o=m.offset)?void 0:o.options)},arrow:(0,r.Z)({},m.arrow,{enabled:!!p,options:(0,r.Z)({},null==(i=m.arrow)?void 0:i.options,{element:p})}),flip:(0,r.Z)({enabled:!!c},m.flip)}))})}var wLe=o.forwardRef((function(e,t){var n=e.flip,i=e.offset,a=e.placement,s=e.containerPadding,l=void 0===s?5:s,c=e.popperConfig,u=void 0===c?{}:c,d=e.transition,p=LBe(),f=p[0],h=p[1],m=LBe(),v=m[0],y=m[1],x=_Be(h,t),w=yLe(e.container),C=yLe(e.target),j=(0,o.useState)(!e.show),S=j[0],k=j[1],Z=nLe(C,f,xLe({placement:a,enableEvents:!!e.show,containerPadding:l||5,flip:n,offset:i,arrowElement:v,popperConfig:u})),O=Z.styles,E=Z.attributes,D=(0,b.Z)(Z,["styles","attributes"]);e.show?S&&k(!1):e.transition||S||k(!0);var P=e.show||d&&!S;if(vLe(f,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!P)return null;var A=e.children((0,r.Z)({},D,{show:!!e.show,props:(0,r.Z)({},E.popper,{style:O.popper,ref:x}),arrowProps:(0,r.Z)({},E.arrow,{style:O.arrow,ref:y})}));if(d){var M=e.onExit,T=e.onExiting,I=e.onEnter,R=e.onEntering,F=e.onEntered;A=o.createElement(d,{in:e.show,appear:!0,onExit:M,onExiting:T,onExited:function(){k(!0),e.onExited&&e.onExited.apply(e,arguments)},onEnter:I,onEntering:R,onEntered:F},A)}return w?g.createPortal(A,w):null}));wLe.displayName="Overlay",wLe.propTypes={show:$e().bool,placement:$e().oneOf(zBe.Ct),target:$e().any,container:$e().any,flip:$e().bool,children:$e().func.isRequired,containerPadding:$e().number,popperConfig:$e().object,rootClose:$e().bool,rootCloseEvent:$e().oneOf(["click","mousedown"]),rootCloseDisabled:$e().bool,onHide:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o;return e.rootClose?(o=$e().func).isRequired.apply(o,[e].concat(n)):$e().func.apply($e(),[e].concat(n))},transition:$e().elementType,onEnter:$e().func,onEntering:$e().func,onEntered:$e().func,onExit:$e().func,onExiting:$e().func,onExited:$e().func};var CLe=wLe;function jLe(e,t){var n=oRe(e);return n?n.innerHeight:t?e.clientHeight:lRe(e).height}var SLe,kLe=Function.prototype.bind.call(Function.prototype.call,[].slice);function ZLe(e,t){return kLe(e.querySelectorAll(t))}function OLe(e,t){if(!SLe){var n=document.body,r=n.matches||n.matchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector;SLe=function(e,t){return r.call(e,t)}}return SLe(e,t)}var ELe=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1};var DLe=function(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){var l=(s=n[o])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new fFe;if(r)var p=r(c,u,l,e,t,d);if(!(void 0===p?FBe(u,c,3,r,d):p))return!1}}return!0};var PLe=function(e){return e===e&&!ZIe(e)};var ALe=function(e){for(var t=dBe(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,PLe(o)]}return t};var MLe=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}};var TLe=function(e){var t=ALe(e);return 1==t.length&&t[0][2]?MLe(t[0][0],t[0][1]):function(n){return n===e||DLe(n,e,t)}},ILe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,RLe=/^\w*$/;var FLe=function(e,t){if(EFe(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!LIe(e))||(RLe.test(e)||!ILe.test(e)||null!=t&&e in Object(t))};function BLe(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(BLe.Cache||uFe),n}BLe.Cache=uFe;var LLe=BLe;var NLe=function(e){var t=LLe(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t},_Le=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zLe=/\\(\\)?/g,HLe=NLe((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(_Le,(function(e,n,r,o){t.push(r?o.replace(zLe,"$1"):n||e)})),t})),WLe=HLe;var VLe=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o},ULe=vIe?vIe.prototype:void 0,qLe=ULe?ULe.toString:void 0;var GLe=function e(t){if("string"==typeof t)return t;if(EFe(t))return VLe(t,e)+"";if(LIe(t))return qLe?qLe.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n};var YLe=function(e){return null==e?"":GLe(e)};var KLe=function(e,t){return EFe(e)?e:FLe(e,t)?[e]:WLe(YLe(e))};var JLe=function(e){if("string"==typeof e||LIe(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var XLe=function(e,t){for(var n=0,r=(t=KLe(t,e)).length;null!=e&&n<r;)e=e[JLe(t[n++])];return n&&n==r?e:void 0};var QLe=function(e,t,n){var r=null==e?void 0:XLe(e,t);return void 0===r?n:r};var $Le=function(e,t){return null!=e&&t in Object(e)};var eNe=function(e,t,n){for(var r=-1,o=(t=KLe(t,e)).length,i=!1;++r<o;){var a=JLe(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&EIe(o)&&AIe(a,o)&&(EFe(e)||HFe(e))};var tNe=function(e,t){return null!=e&&eNe(e,t,$Le)};var nNe=function(e,t){return FLe(e)&&PLe(t)?MLe(JLe(e),t):function(n){var r=QLe(n,e);return void 0===r&&r===t?tNe(n,e):FBe(t,r,3)}};var rNe=function(e){return e};var oNe=function(e){return function(t){return null==t?void 0:t[e]}};var iNe=function(e){return function(t){return XLe(t,e)}};var aNe=function(e){return FLe(e)?oNe(JLe(e)):iNe(e)};var sNe=function(e){return"function"==typeof e?e:null==e?rNe:"object"==typeof e?EFe(e)?nNe(e[0],e[1]):TLe(e):aNe(e)},lNe=Math.max;var cNe=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:qIe(n);return o<0&&(o=lNe(r+o,0)),ELe(e,sNe(t,3),o)},uNe=Math.ceil,dNe=Math.max;var pNe=function(e,t,n,r){for(var o=-1,i=dNe(uNe((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a};var fNe=function(e){return function(t,n,r){return r&&"number"!=typeof r&&MIe(t,n,r)&&(n=r=void 0),t=UIe(t),void 0===n?(n=t,t=0):n=UIe(n),r=void 0===r?t<n?1:-1:UIe(r),pNe(t,n,r,e)}},hNe=fNe(),mNe=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function vNe(e,t){return e===t||!(!mNe(e)||!mNe(t))}function gNe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!vNe(e[n],t[n]))return!1;return!0}function yNe(e,t){void 0===t&&(t=gNe);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}var bNe=vIe?vIe.isConcatSpreadable:void 0;var xNe=function(e){return EFe(e)||HFe(e)||!!(bNe&&e&&e[bNe])};var wNe=function e(t,n,r,o,i){var a=-1,s=t.length;for(r||(r=xNe),i||(i=[]);++a<s;){var l=t[a];n>0&&r(l)?n>1?e(l,n-1,r,o,i):OFe(i,l):o||(i[i.length]=l)}return i};var CNe=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}},jNe=CNe();var SNe=function(e,t){return e&&jNe(e,t,dBe)};var kNe=function(e,t){return function(n,r){if(null==n)return n;if(!DIe(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}},ZNe=kNe(SNe);var ONe=function(e,t){var n=-1,r=DIe(e)?Array(e.length):[];return ZNe(e,(function(e,o,i){r[++n]=t(e,o,i)})),r};var ENe=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e};var DNe=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e===e,i=LIe(e),a=void 0!==t,s=null===t,l=t===t,c=LIe(t);if(!s&&!c&&!i&&e>t||i&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!o)return 1;if(!r&&!i&&!c&&e<t||c&&n&&o&&!r&&!i||s&&n&&o||!a&&o||!l)return-1}return 0};var PNe=function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var l=DNe(o[r],i[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index};var ANe=function(e,t,n){t=t.length?VLe(t,(function(e){return EFe(e)?function(t){return XLe(t,1===e.length?e[0]:e)}:e})):[rNe];var r=-1;t=VLe(t,JFe(sNe));var o=ONe(e,(function(e,n,o){return{criteria:VLe(t,(function(t){return t(e)})),index:++r,value:e}}));return ENe(o,(function(e,t){return PNe(e,t,n)}))};var MNe=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},TNe=Math.max;var INe=function(e,t,n){return t=TNe(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=TNe(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),MNe(e,this,s)}};var RNe=function(e){return function(){return e}},FNe=function(){try{var e=VRe(Object,"defineProperty");return e({},"",{}),e}catch(Aet){}}(),BNe=FNe?function(e,t){return FNe(e,"toString",{configurable:!0,enumerable:!1,value:RNe(t),writable:!0})}:rNe,LNe=BNe,NNe=Date.now;var _Ne=function(e){var t=0,n=0;return function(){var r=NNe(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},zNe=_Ne(LNe);var HNe,WNe=function(e,t){return zNe(INe(e,t,rNe),e+"")},VNe=WNe((function(e,t){if(null==e)return[];var n=t.length;return n>1&&MIe(e,t[0],t[1])?t=[]:n>2&&MIe(t[0],t[1],t[2])&&(t=[t[0]]),ANe(e,wNe(t,1),[])}));function UNe(e,t){var n=oRe(e);return n?n.innerWidth:t?e.clientWidth:lRe(e).width}function qNe(e){if((!HNe&&0!==HNe||e)&&dRe){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),HNe=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return HNe}var GNe=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e};var YNe=function(e,t,n){"__proto__"==t&&FNe?FNe(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},KNe=Object.prototype.hasOwnProperty;var JNe=function(e,t,n){var r=e[t];KNe.call(e,t)&&pIe(r,n)&&(void 0!==n||t in e)||YNe(e,t,n)};var XNe=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),o?YNe(n,s,l):JNe(n,s,l)}return n};var QNe=function(e,t){return e&&XNe(t,dBe(t),e)};var $Ne=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},e_e=Object.prototype.hasOwnProperty;var t_e=function(e){if(!ZIe(e))return $Ne(e);var t=aBe(e),n=[];for(var r in e)("constructor"!=r||!t&&e_e.call(e,r))&&n.push(r);return n};var n_e=function(e){return DIe(e)?oBe(e,!0):t_e(e)};var r_e=function(e,t){return e&&XNe(t,n_e(t),e)},o_e="object"==typeof exports&&exports&&!exports.nodeType&&exports,i_e=o_e&&"object"==typeof module&&module&&!module.nodeType&&module,a_e=i_e&&i_e.exports===o_e?mIe.Buffer:void 0,s_e=a_e?a_e.allocUnsafe:void 0;var l_e=function(e,t){if(t)return e.slice();var n=e.length,r=s_e?s_e(n):new e.constructor(n);return e.copy(r),r};var c_e=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var u_e=function(e,t){return XNe(e,RFe(e),t)},d_e=sBe(Object.getPrototypeOf,Object),p_e=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)OFe(t,RFe(e)),e=d_e(e);return t}:AFe,f_e=p_e;var h_e=function(e,t){return XNe(e,f_e(e),t)};var m_e=function(e){return DFe(e,n_e,f_e)},v_e=Object.prototype.hasOwnProperty;var g_e=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&v_e.call(e,"index")&&(n.index=e.index,n.input=e.input),n};var y_e=function(e){var t=new e.constructor(e.byteLength);return new wFe(t).set(new wFe(e)),t};var b_e=function(e,t){var n=t?y_e(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},x_e=/\w*$/;var w_e=function(e){var t=new e.constructor(e.source,x_e.exec(e));return t.lastIndex=e.lastIndex,t},C_e=vIe?vIe.prototype:void 0,j_e=C_e?C_e.valueOf:void 0;var S_e=function(e){return j_e?Object(j_e.call(e)):{}};var k_e=function(e,t){var n=t?y_e(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var Z_e=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return y_e(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return b_e(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return k_e(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return w_e(e);case"[object Symbol]":return S_e(e)}},O_e=Object.create,E_e=function(){function e(){}return function(t){if(!ZIe(t))return{};if(O_e)return O_e(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),D_e=E_e;var P_e=function(e){return"function"!=typeof e.constructor||aBe(e)?{}:D_e(d_e(e))};var A_e=function(e){return BIe(e)&&"[object Map]"==PBe(e)},M_e=eBe&&eBe.isMap,T_e=M_e?JFe(M_e):A_e;var I_e=function(e){return BIe(e)&&"[object Set]"==PBe(e)},R_e=eBe&&eBe.isSet,F_e=R_e?JFe(R_e):I_e,B_e="[object Arguments]",L_e="[object Function]",N_e="[object Object]",__e={};__e[B_e]=__e["[object Array]"]=__e["[object ArrayBuffer]"]=__e["[object DataView]"]=__e["[object Boolean]"]=__e["[object Date]"]=__e["[object Float32Array]"]=__e["[object Float64Array]"]=__e["[object Int8Array]"]=__e["[object Int16Array]"]=__e["[object Int32Array]"]=__e["[object Map]"]=__e["[object Number]"]=__e["[object Object]"]=__e["[object RegExp]"]=__e["[object Set]"]=__e["[object String]"]=__e["[object Symbol]"]=__e["[object Uint8Array]"]=__e["[object Uint8ClampedArray]"]=__e["[object Uint16Array]"]=__e["[object Uint32Array]"]=!0,__e["[object Error]"]=__e[L_e]=__e["[object WeakMap]"]=!1;var z_e=function e(t,n,r,o,i,a){var s,l=1&n,c=2&n,u=4&n;if(r&&(s=i?r(t,o,i,a):r(t)),void 0!==s)return s;if(!ZIe(t))return t;var d=EFe(t);if(d){if(s=g_e(t),!l)return c_e(t,s)}else{var p=PBe(t),f=p==L_e||"[object GeneratorFunction]"==p;if(GFe(t))return l_e(t,l);if(p==N_e||p==B_e||f&&!i){if(s=c||f?{}:P_e(t),!l)return c?h_e(t,r_e(s,t)):u_e(t,QNe(s,t))}else{if(!__e[p])return i?t:{};s=Z_e(t,p,l)}}a||(a=new fFe);var h=a.get(t);if(h)return h;a.set(t,s),F_e(t)?t.forEach((function(o){s.add(e(o,n,r,o,t,a))})):T_e(t)&&t.forEach((function(o,i){s.set(i,e(o,n,r,i,t,a))}));var m=d?void 0:(u?c?m_e:pBe:c?n_e:dBe)(t);return GNe(m||t,(function(o,i){m&&(o=t[i=o]),JNe(s,i,e(o,n,r,i,t,a))})),s};var H_e=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};var W_e=function(e,t){return t.length<2?e:XLe(e,dIe(t,0,-1))};var V_e=function(e,t){return t=KLe(t,e),null==(e=W_e(e,t))||delete e[JLe(H_e(t))]},U_e=Function.prototype,q_e=Object.prototype,G_e=U_e.toString,Y_e=q_e.hasOwnProperty,K_e=G_e.call(Object);var J_e=function(e){if(!BIe(e)||"[object Object]"!=kIe(e))return!1;var t=d_e(e);if(null===t)return!0;var n=Y_e.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&G_e.call(n)==K_e};var X_e=function(e){return J_e(e)?void 0:e};var Q_e=function(e){return(null==e?0:e.length)?wNe(e,1):[]};var $_e=function(e){return zNe(INe(e,void 0,Q_e),e+"")}((function(e,t){var n={};if(null==e)return n;var r=!1;t=VLe(t,(function(t){return t=KLe(t,e),r||(r=t.length>1),t})),XNe(e,m_e(e),n),r&&(n=z_e(n,7,X_e));for(var o=t.length;o--;)V_e(n,t[o]);return n})),eze=$_e,tze=Object.prototype,nze=tze.hasOwnProperty,rze=WNe((function(e,t){e=Object(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&MIe(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],a=n_e(i),s=-1,l=a.length;++s<l;){var c=a[s],u=e[c];(void 0===u||pIe(u,tze[c])&&!nze.call(e,c))&&(e[c]=i[c])}return e})),oze=rze;var ize=function(e,t,n){var r=EFe(e),o=r||GFe(e)||nBe(e);if(t=sNe(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:ZIe(e)&&OIe(i)?D_e(d_e(e)):{}}return(o?GNe:SNe)(e,(function(e,r,o){return t(n,e,r,o)})),n};var aze=function(e,t){var n={};return t=sNe(t,3),SNe(e,(function(e,r,o){YNe(n,r,t(e,r,o))})),n};function sze(e){return e.children}var lze="PREV",cze="NEXT",uze="TODAY",dze="DATE",pze={MONTH:"month",WEEK:"week",WORK_WEEK:"work_week",DAY:"day",AGENDA:"agenda"},fze=Object.keys(pze).map((function(e){return pze[e]}));function hze(e,t){e&&e.apply(null,[].concat(t))}$e().oneOfType([$e().string,$e().func]),$e().any,$e().func,$e().oneOfType([$e().arrayOf($e().oneOf(fze)),$e().objectOf((function(e,t){var n=-1!==fze.indexOf(t)&&"boolean"===typeof e[t];if(n)return null;for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return $e().elementType.apply($e(),[e,t].concat(o))}))]),$e().oneOfType([$e().oneOf(["overlap","no-overlap"]),$e().func]);var mze={seconds:1e3,minutes:6e4,hours:36e5,day:864e5};function vze(e,t){var n=VTe(e,"month");return VTe(n,"week",t.startOfWeek())}function gze(e,t){var n=UTe(e,"month");return UTe(n,"week",t.startOfWeek())}function yze(e,t){for(var n=vze(e,t),r=gze(e,t),o=[];XTe(n,r,"day");)o.push(n),n=HTe(n,1,"day");return o}function bze(e,t){var n=VTe(e,t);return qTe(n,e)?n:HTe(n,1,t)}function xze(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"day",r=e,o=[];XTe(r,t,n);)o.push(r),r=HTe(r,1,n);return o}function wze(e,t){return null==t&&null==e?null:(null==t&&(t=new Date),null==e&&(e=new Date),e=VTe(e,"day"),e=oIe(e,oIe(t)),e=rIe(e,rIe(t)),e=nIe(e,nIe(t)),tIe(e,tIe(t)))}function Cze(e){return 0===oIe(e)&&0===rIe(e)&&0===nIe(e)&&0===tIe(e)}function jze(e,t,n){return n&&"milliseconds"!==n?Math.round(Math.abs(+VTe(e,n)/mze[n]-+VTe(t,n)/mze[n])):Math.abs(+e-+t)}var Sze=$e().oneOfType([$e().string,$e().func]);function kze(e,t,n,r,o){var i="function"===typeof r?r(n,o,e):t.call(e,n,r,o);return rt()(null==i||"string"===typeof i,"`localizer format(..)` must return a string, null, or undefined"),i}function Zze(e,t,n){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,t+n,0,0)}function Oze(e,t){return e.getTimezoneOffset()-t.getTimezoneOffset()}function Eze(e,t){return jze(e,t,"minutes")+Oze(e,t)}function Dze(e){var t=VTe(e,"day");return jze(t,e,"minutes")+Oze(t,e)}function Pze(e,t){return JTe(e,t,"day")}function Aze(e,t,n){return qTe(e,t,"minutes")?KTe(t,n,"minutes"):YTe(t,n,"minutes")}function Mze(e){var t=e.evtA,n=t.start,r=t.end,o=t.allDay,i=e.evtB,a=i.start,s=i.end,l=i.allDay,c=+VTe(n,"day")-+VTe(a,"day"),u=jze(n,bze(r,"day"),"day"),d=jze(a,bze(s,"day"),"day");return c||Math.max(d,1)-Math.max(u,1)||!!l-!!o||+n-+a||+r-+s}function Tze(e){var t=e.event,n=t.start,r=t.end,o=e.range,i=o.start,a=o.end,s=VTe(n,"day"),l=XTe(s,a,"day"),c=GTe(s,r,"minutes")?YTe(r,i,"minutes"):KTe(r,i,"minutes");return l&&c}function Ize(e,t){return qTe(e,t,"day")}function Rze(e,t){return Cze(e)&&Cze(t)}var Fze=(0,Dh.Z)((function e(t){var n=this;(0,Ph.Z)(this,e),rt()("function"===typeof t.format,"date localizer `format(..)` must be a function"),rt()("function"===typeof t.firstOfWeek,"date localizer `firstOfWeek(..)` must be a function"),this.propType=t.propType||Sze,this.formats=t.formats,this.format=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return kze.apply(void 0,[n,t.format].concat(r))},this.startOfWeek=t.firstOfWeek,this.merge=t.merge||wze,this.inRange=t.inRange||eIe,this.lt=t.lt||JTe,this.lte=t.lte||XTe,this.gt=t.gt||YTe,this.gte=t.gte||KTe,this.eq=t.eq||qTe,this.neq=t.neq||GTe,this.startOf=t.startOf||VTe,this.endOf=t.endOf||UTe,this.add=t.add||HTe,this.range=t.range||xze,this.diff=t.diff||jze,this.ceil=t.ceil||bze,this.min=t.min||QTe,this.max=t.max||$Te,this.minutes=t.minutes||rIe,this.firstVisibleDay=t.firstVisibleDay||vze,this.lastVisibleDay=t.lastVisibleDay||gze,this.visibleDays=t.visibleDays||yze,this.getSlotDate=t.getSlotDate||Zze,this.getTimezoneOffset=t.getTimezoneOffset||function(e){return e.getTimezoneOffset()},this.getDstOffset=t.getDstOffset||Oze,this.getTotalMin=t.getTotalMin||Eze,this.getMinutesFromMidnight=t.getMinutesFromMidnight||Dze,this.continuesPrior=t.continuesPrior||Pze,this.continuesAfter=t.continuesAfter||Aze,this.sortEvents=t.sortEvents||Mze,this.inEventRange=t.inEventRange||Tze,this.isSameDate=t.isSameDate||Ize,this.startAndEndAreDateOnly=t.startAndEndAreDateOnly||Rze,this.segmentOffset=t.browserTZOffset?t.browserTZOffset():0}));function Bze(e,t,n,r){var o=(0,l.Z)((0,l.Z)({},e.formats),n);return(0,l.Z)((0,l.Z)({},e),{},{messages:r,startOfWeek:function(){return e.startOfWeek(t)},format:function(n,r){return e.format(n,o[r]||r,t)}})}var Lze={date:"Date",time:"Time",event:"Event",allDay:"All Day",week:"Week",work_week:"Work Week",day:"Day",month:"Month",previous:"Back",next:"Next",yesterday:"Yesterday",tomorrow:"Tomorrow",today:"Today",agenda:"Agenda",noEventsInRange:"There are no events in this range.",showMore:function(e){return"+".concat(e," more")}};var Nze=["style","className","event","selected","isAllDay","onSelect","onDoubleClick","onKeyPress","localizer","continuesPrior","continuesAfter","accessors","getters","children","components","slotStart","slotEnd"],_ze=function(e){(0,qF.Z)(n,e);var t=(0,GF.Z)(n);function n(){return(0,Ph.Z)(this,n),t.apply(this,arguments)}return(0,Dh.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=e.className,r=e.event,i=e.selected,a=e.isAllDay,s=e.onSelect,c=e.onDoubleClick,u=e.onKeyPress,d=e.localizer,p=e.continuesPrior,f=e.continuesAfter,h=e.accessors,m=e.getters,v=e.children,g=e.components,b=g.event,x=g.eventWrapper,w=e.slotStart,C=e.slotEnd,j=Nn(e,Nze);delete j.resizable;var S=h.title(r),k=h.tooltip(r),Z=h.end(r),O=h.start(r),E=h.allDay(r),D=a||E||d.diff(O,d.ceil(Z,"day"),"day")>1,P=m.eventProp(r,O,Z,i),A=o.createElement("div",{className:"rbc-event-content",title:k||void 0},b?o.createElement(b,{event:r,continuesPrior:p,continuesAfter:f,title:S,isAllDay:E,localizer:d,slotStart:w,slotEnd:C}):S);return o.createElement(x,Object.assign({},this.props,{type:"date"}),o.createElement("div",Object.assign({},j,{tabIndex:0,style:(0,l.Z)((0,l.Z)({},P.style),t),className:(0,y.default)("rbc-event",n,P.className,{"rbc-selected":i,"rbc-event-allday":D,"rbc-event-continues-prior":p,"rbc-event-continues-after":f}),onClick:function(e){return s&&s(r,e)},onDoubleClick:function(e){return c&&c(r,e)},onKeyPress:function(e){return u&&u(r,e)}}),"function"===typeof v?v(A):A))}}]),n}(o.Component);function zze(e,t){return!(!e||null==t)&&BBe(e,t)}function Hze(e,t){return(e.right-e.left)/t}function Wze(e,t,n,r){var o=Hze(e,r);return n?r-1-Math.floor((t-e.left)/o):Math.floor((t-e.left)/o)}var Vze=function(e){(0,qF.Z)(n,e);var t=(0,GF.Z)(n);function n(){return(0,Ph.Z)(this,n),t.apply(this,arguments)}return(0,Dh.Z)(n,[{key:"componentDidMount",value:function(){var e,t,n=this.props,r=n.popupOffset,o=void 0===r?5:r,i=lRe(n.popperRef.current),a=i.top,s=i.left,l=i.width,c=i.height,u=window.innerHeight+sRe(window),d=window.innerWidth+aRe(window),p=a+c,f=s+l;(p>u||f>d)&&(p>u&&(e=p-u+(o.y||+o||0)),f>d&&(t=f-d+(o.x||+o||0)),this.setState({topOffset:e,leftOffset:t}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.events,r=t.selected,i=t.getters,a=t.accessors,s=t.components,c=t.onSelect,u=t.onDoubleClick,d=t.onKeyPress,p=t.slotStart,f=t.slotEnd,h=t.localizer,m=t.popperRef,v=this.props.position.width,g={top:-((this.state||{}).topOffset||0),left:-((this.state||{}).leftOffset||0),minWidth:v+v/2};return o.createElement("div",{style:(0,l.Z)((0,l.Z)({},this.props.style),g),className:"rbc-overlay",ref:m},o.createElement("div",{className:"rbc-overlay-header"},h.format(p,"dayHeaderFormat")),n.map((function(t,n){return o.createElement(_ze,{key:n,type:"popup",localizer:h,event:t,getters:i,onSelect:c,accessors:a,components:s,onDoubleClick:u,onKeyPress:d,continuesPrior:h.lt(a.end(t),p,"day"),continuesAfter:h.gte(a.start(t),f,"day"),slotStart:p,slotEnd:f,selected:zze(t,r),draggable:!0,onDragStart:function(){return e.props.handleDragStart(t)},onDragEnd:function(){return e.props.show()}})})))}}]),n}(o.Component),Uze=o.forwardRef((function(e,t){return o.createElement(Vze,Object.assign({popperRef:t},e))}));function qze(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;return lLe(n,e,t,{passive:!1})}function Gze(e,t){var n=t.clientX,r=t.clientY;return function(e,t,n){e.closest&&!n&&e.closest(t);var r=e;do{if(OLe(r,t))return r;r=r.parentElement}while(r&&r!==n&&r.nodeType===document.ELEMENT_NODE);return null}(document.elementFromPoint(n,r),".rbc-event",e)}function Yze(e,t){return!!Gze(e,t)}function Kze(e){var t=e;return e.touches&&e.touches.length&&(t=e.touches[0]),{clientX:t.clientX,clientY:t.clientY,pageX:t.pageX,pageY:t.pageY}}var Jze=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.global,o=void 0!==r&&r,i=n.longPressThreshold,a=void 0===i?250:i;(0,Ph.Z)(this,e),this.isDetached=!1,this.container=t,this.globalMouse=!t||o,this.longPressThreshold=a,this._listeners=Object.create(null),this._handleInitialEvent=this._handleInitialEvent.bind(this),this._handleMoveEvent=this._handleMoveEvent.bind(this),this._handleTerminatingEvent=this._handleTerminatingEvent.bind(this),this._keyListener=this._keyListener.bind(this),this._dropFromOutsideListener=this._dropFromOutsideListener.bind(this),this._dragOverFromOutsideListener=this._dragOverFromOutsideListener.bind(this),this._removeTouchMoveWindowListener=qze("touchmove",(function(){}),window),this._removeKeyDownListener=qze("keydown",this._keyListener),this._removeKeyUpListener=qze("keyup",this._keyListener),this._removeDropFromOutsideListener=qze("drop",this._dropFromOutsideListener),this._removeDragOverFromOutsideListener=qze("dragover",this._dragOverFromOutsideListener),this._addInitialEventListener()}return(0,Dh.Z)(e,[{key:"on",value:function(e,t){var n=this._listeners[e]||(this._listeners[e]=[]);return n.push(t),{remove:function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o,i=this._listeners[e]||[];return i.forEach((function(e){void 0===o&&(o=e.apply(void 0,n))})),o}},{key:"teardown",value:function(){this.isDetached=!0,this._listeners=Object.create(null),this._removeTouchMoveWindowListener&&this._removeTouchMoveWindowListener(),this._removeInitialEventListener&&this._removeInitialEventListener(),this._removeEndListener&&this._removeEndListener(),this._onEscListener&&this._onEscListener(),this._removeMoveListener&&this._removeMoveListener(),this._removeKeyUpListener&&this._removeKeyUpListener(),this._removeKeyDownListener&&this._removeKeyDownListener(),this._removeDropFromOutsideListener&&this._removeDropFromOutsideListener(),this._removeDragOverFromOutsideListener&&this._removeDragOverFromOutsideListener()}},{key:"isSelected",value:function(e){var t=this._selectRect;return!(!t||!this.selecting)&&Xze(t,Qze(e))}},{key:"filter",value:function(e){return this._selectRect&&this.selecting?e.filter(this.isSelected,this):[]}},{key:"_addLongPressListener",value:function(e,t){var n=this,r=null,o=null,i=null,a=function(t){r=setTimeout((function(){l(),e(t)}),n.longPressThreshold),o=qze("touchmove",(function(){return l()})),i=qze("touchend",(function(){return l()}))},s=qze("touchstart",a),l=function(){r&&clearTimeout(r),o&&o(),i&&i(),r=null,o=null,i=null};return t&&a(t),function(){l(),s()}}},{key:"_addInitialEventListener",value:function(){var e=this,t=qze("mousedown",(function(t){e._removeInitialEventListener(),e._handleInitialEvent(t),e._removeInitialEventListener=qze("mousedown",e._handleInitialEvent)})),n=qze("touchstart",(function(t){e._removeInitialEventListener(),e._removeInitialEventListener=e._addLongPressListener(e._handleInitialEvent,t)}));this._removeInitialEventListener=function(){t(),n()}}},{key:"_dropFromOutsideListener",value:function(e){var t=Kze(e),n=t.pageX,r=t.pageY,o=t.clientX,i=t.clientY;this.emit("dropFromOutside",{x:n,y:r,clientX:o,clientY:i}),e.preventDefault()}},{key:"_dragOverFromOutsideListener",value:function(e){var t=Kze(e),n=t.pageX,r=t.pageY,o=t.clientX,i=t.clientY;this.emit("dragOverFromOutside",{x:n,y:r,clientX:o,clientY:i}),e.preventDefault()}},{key:"_handleInitialEvent",value:function(e){if(!this.isDetached){var t,n=Kze(e),r=n.clientX,o=n.clientY,i=n.pageX,a=n.pageY,s=this.container();if(3!==e.which&&2!==e.button&&function(e,t,n){return!e||rRe(e,document.elementFromPoint(t,n))}(s,r,o)){if(!this.globalMouse&&s&&!rRe(s,e.target)){var l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;"object"!==(0,mbe.Z)(e)&&(e={top:e,left:e,right:e,bottom:e});return e}(0),c=l.top,u=l.left,d=l.bottom,p=l.right;if(!Xze({top:(t=Qze(s)).top-c,left:t.left-u,bottom:t.bottom+d,right:t.right+p},{top:a,left:i}))return}if(!1!==this.emit("beforeSelect",this._initialEventData={isTouch:/^touch/.test(e.type),x:i,y:a,clientX:r,clientY:o}))switch(e.type){case"mousedown":this._removeEndListener=qze("mouseup",this._handleTerminatingEvent),this._onEscListener=qze("keydown",this._handleTerminatingEvent),this._removeMoveListener=qze("mousemove",this._handleMoveEvent);break;case"touchstart":this._handleMoveEvent(e),this._removeEndListener=qze("touchend",this._handleTerminatingEvent),this._removeMoveListener=qze("touchmove",this._handleMoveEvent)}}}}},{key:"_handleTerminatingEvent",value:function(e){var t=Kze(e),n=t.pageX,r=t.pageY;if(this.selecting=!1,this._removeEndListener&&this._removeEndListener(),this._removeMoveListener&&this._removeMoveListener(),this._initialEventData){var o=!this.container||rRe(this.container(),e.target),i=this._selectRect,a=this.isClick(n,r);return this._initialEventData=null,"Escape"===e.key?this.emit("reset"):a&&o?this._handleClickEvent(e):a?this.emit("reset"):this.emit("select",i)}}},{key:"_handleClickEvent",value:function(e){var t=Kze(e),n=t.pageX,r=t.pageY,o=t.clientX,i=t.clientY,a=(new Date).getTime();return this._lastClickData&&a-this._lastClickData.timestamp<250?(this._lastClickData=null,this.emit("doubleClick",{x:n,y:r,clientX:o,clientY:i})):(this._lastClickData={timestamp:a},this.emit("click",{x:n,y:r,clientX:o,clientY:i}))}},{key:"_handleMoveEvent",value:function(e){if(null!==this._initialEventData&&!this.isDetached){var t=this._initialEventData,n=t.x,r=t.y,o=Kze(e),i=o.pageX,a=o.pageY,s=Math.abs(n-i),l=Math.abs(r-a),c=Math.min(i,n),u=Math.min(a,r),d=this.selecting;(!this.isClick(i,a)||d||s||l)&&(this.selecting=!0,this._selectRect={top:u,left:c,x:i,y:a,right:c+s,bottom:u+l},d||this.emit("selectStart",this._initialEventData),this.isClick(i,a)||this.emit("selecting",this._selectRect),e.preventDefault())}}},{key:"_keyListener",value:function(e){this.ctrl=e.metaKey||e.ctrlKey}},{key:"isClick",value:function(e,t){var n=this._initialEventData,r=n.x,o=n.y;return!n.isTouch&&Math.abs(e-r)<=5&&Math.abs(t-o)<=5}}]),e}();function Xze(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=Qze(e),o=r.top,i=r.left,a=r.right,s=void 0===a?i:a,l=r.bottom,c=void 0===l?o:l,u=Qze(t),d=u.top,p=u.left,f=u.right,h=void 0===f?p:f,m=u.bottom,v=void 0===m?d:m;return!(c-n<d||o+n>v||s-n<p||i+n>h)}function Qze(e){if(!e.getBoundingClientRect)return e;var t=e.getBoundingClientRect(),n=t.left+$ze("left"),r=t.top+$ze("top");return{top:r,left:n,right:(e.offsetWidth||0)+n,bottom:(e.offsetHeight||0)+r}}function $ze(e){return"left"===e?window.pageXOffset||document.body.scrollLeft||0:"top"===e?window.pageYOffset||document.body.scrollTop||0:void 0}var eHe=function(e){(0,qF.Z)(n,e);var t=(0,GF.Z)(n);function n(e,r){var o;return(0,Ph.Z)(this,n),(o=t.call(this,e,r)).state={selecting:!1},o}return(0,Dh.Z)(n,[{key:"componentDidMount",value:function(){this.props.selectable&&this._selectable()}},{key:"componentWillUnmount",value:function(){this._teardownSelectable()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.selectable&&!this.props.selectable&&this._selectable(),!e.selectable&&this.props.selectable&&this._teardownSelectable()}},{key:"render",value:function(){var e=this.props,t=e.range,n=e.getNow,r=e.getters,i=e.date,a=e.components.dateCellWrapper,s=e.localizer,l=this.state,c=l.selecting,u=l.startIdx,d=l.endIdx,p=n();return o.createElement("div",{className:"rbc-row-bg"},t.map((function(e,n){var l=c&&n>=u&&n<=d,f=r.dayProp(e),h=f.className,m=f.style;return o.createElement(a,{key:n,value:e,range:t},o.createElement("div",{style:m,className:(0,y.default)("rbc-day-bg",h,l&&"rbc-selected-cell",s.isSameDate(e,p)&&"rbc-today",i&&s.neq(i,e,"month")&&"rbc-off-range-bg")}))})))}},{key:"_selectable",value:function(){var e=this,t=(0,g.findDOMNode)(this),n=this._selector=new Jze(this.props.container,{longPressThreshold:this.props.longPressThreshold}),r=function(n,r){if(!Yze((0,g.findDOMNode)(e),n)){var o=Qze(t),i=e.props,a=i.range,s=i.rtl;if(function(e,t){var n=t.x,r=t.y;return r>=e.top&&r<=e.bottom&&n>=e.left&&n<=e.right}(o,n)){var l=Wze(o,n.x,s,a.length);e._selectSlot({startIdx:l,endIdx:l,action:r,box:n})}}e._initial={},e.setState({selecting:!1})};n.on("selecting",(function(r){var o=e.props,i=o.range,a=o.rtl,s=-1,l=-1;if(e.state.selecting||(hze(e.props.onSelectStart,[r]),e._initial={x:r.x,y:r.y}),n.isSelected(t)){var c=Qze(t),u=function(e,t,n,r,o){var i=-1,a=-1,s=r-1,l=Hze(t,r),c=Wze(t,n.x,o,r),u=t.top<n.y&&t.bottom>n.y,d=t.top<e.y&&t.bottom>e.y,p=e.y>t.bottom,f=t.top>e.y;return n.top<t.top&&n.bottom>t.bottom&&(i=0,a=s),u&&(f?(i=0,a=c):p&&(i=c,a=s)),d&&(i=a=o?s-Math.floor((e.x-t.left)/l):Math.floor((e.x-t.left)/l),u?c<i?i=c:a=c:e.y<n.y?a=s:i=0),{startIdx:i,endIdx:a}}(e._initial,c,r,i.length,a);s=u.startIdx,l=u.endIdx}e.setState({selecting:!0,startIdx:s,endIdx:l})})),n.on("beforeSelect",(function(t){if("ignoreEvents"===e.props.selectable)return!Yze((0,g.findDOMNode)(e),t)})),n.on("click",(function(e){return r(e,"click")})),n.on("doubleClick",(function(e){return r(e,"doubleClick")})),n.on("select",(function(t){e._selectSlot((0,l.Z)((0,l.Z)({},e.state),{},{action:"select",bounds:t})),e._initial={},e.setState({selecting:!1}),hze(e.props.onSelectEnd,[e.state])}))}},{key:"_teardownSelectable",value:function(){this._selector&&(this._selector.teardown(),this._selector=null)}},{key:"_selectSlot",value:function(e){var t=e.endIdx,n=e.startIdx,r=e.action,o=e.bounds,i=e.box;-1!==t&&-1!==n&&this.props.onSelectSlot&&this.props.onSelectSlot({start:n,end:t,action:r,bounds:o,box:i,resourceId:this.props.resourceId})}}]),n}(o.Component),tHe=($e().object.isRequired,$e().object,$e().bool,$e().object.isRequired,$e().object.isRequired,$e().object.isRequired,$e().object.isRequired,$e().func,$e().func,$e().func,{segments:[],selected:{}}),nHe=function(e,t){var n=e.selected;e.isAllDay;var r=e.accessors,i=e.getters,a=e.onSelect,s=e.onDoubleClick,l=e.onKeyPress,c=e.localizer,u=e.slotMetrics,d=e.components,p=e.resizable,f=u.continuesPrior(t),h=u.continuesAfter(t);return o.createElement(_ze,{event:t,getters:i,localizer:c,accessors:r,components:d,onSelect:a,onDoubleClick:s,onKeyPress:l,continuesPrior:f,continuesAfter:h,slotStart:u.first,slotEnd:u.last,selected:zze(t,n),resizable:p})},rHe=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:" ",i=Math.abs(t)/e*100+"%";return o.createElement("div",{key:n,className:"rbc-row-segment",style:{WebkitFlexBasis:i,flexBasis:i,maxWidth:i}},r)},oHe=function(e){(0,qF.Z)(n,e);var t=(0,GF.Z)(n);function n(){return(0,Ph.Z)(this,n),t.apply(this,arguments)}return(0,Dh.Z)(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.segments,r=t.slotMetrics.slots,i=t.className,a=1;return o.createElement("div",{className:(0,y.default)(i,"rbc-row")},n.reduce((function(t,n,o){var i=n.event,s=n.left,l=n.right,c=n.span,u="_lvl_"+o,d=s-a,p=nHe(e.props,i);return d&&t.push(rHe(r,d,"".concat(u,"_gap"))),t.push(rHe(r,c,u,p)),a=l+1,t}),[]))}}]),n}(o.Component);function iHe(e){var t=e.dateRange,n=e.unit,r=void 0===n?"day":n,o=e.localizer;return{first:t[0],last:o.add(t[t.length-1],1,r)}}function aHe(e){var t,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,i=[],a=[];for(t=0;t<e.length;t++){for(r=e[t],n=0;n<i.length&&lHe(r,i[n]);n++);n>=o?a.push(r):(i[n]||(i[n]=[])).push(r)}for(t=0;t<i.length;t++)i[t].sort((function(e,t){return e.left-t.left}));return{levels:i,extra:a}}function sHe(e,t,n,r,o){var i={start:r.start(e),end:r.end(e)},a={start:t,end:n};return o.inEventRange({event:i,range:a})}function lHe(e,t){return t.some((function(t){return t.left<=e.right&&t.right>=e.left}))}function cHe(e,t,n,r){var o={start:n.start(e),end:n.end(e),allDay:n.allDay(e)},i={start:n.start(t),end:n.end(t),allDay:n.allDay(t)};return r.sortEvents({evtA:o,evtB:i})}oHe.defaultProps=(0,l.Z)({},tHe);var uHe=function(e,t){return e.left<=t&&e.right>=t},dHe=function(e,t){return e.filter((function(e){return uHe(e,t)})).length},pHe=function(e){(0,qF.Z)(n,e);var t=(0,GF.Z)(n);function n(){return(0,Ph.Z)(this,n),t.apply(this,arguments)}return(0,Dh.Z)(n,[{key:"render",value:function(){for(var e=this.props,t=e.segments,n=e.slotMetrics.slots,r=aHe(t).levels[0],i=1,a=1,s=[];i<=n;){var l="_lvl_"+i,c=r.filter((function(e){return uHe(e,i)}))[0]||{},u=c.event,d=c.left,p=c.right,f=c.span;if(u){var h=Math.max(0,d-a);if(this.canRenderSlotEvent(d,f)){var m=nHe(this.props,u);h&&s.push(rHe(n,h,l+"_gap")),s.push(rHe(n,f,l,m)),a=i=p+1}else h&&s.push(rHe(n,h,l+"_gap")),s.push(rHe(n,1,l,this.renderShowMore(t,i))),a=i+=1}else i++}return o.createElement("div",{className:"rbc-row"},s)}},{key:"canRenderSlotEvent",value:function(e,t){var n=this.props.segments;return hNe(e,e+t).every((function(e){return 1===dHe(n,e)}))}},{key:"renderShowMore",value:function(e,t){var n=this,r=this.props.localizer,i=dHe(e,t);return!!i&&o.createElement("button",{type:"button",key:"sm_"+t,className:(0,y.default)("rbc-button-link","rbc-show-more"),onClick:function(e){return n.showMore(t,e)}},r.messages.showMore(i))}},{key:"showMore",value:function(e,t){t.preventDefault(),t.stopPropagation(),this.props.onShowMore(e,t.target)}}]),n}(o.Component);pHe.defaultProps=(0,l.Z)({},tHe);var fHe=function(e){var t=e.children;return o.createElement("div",{className:"rbc-row-content-scroll-container"},t)},hHe=function(e,t){return e[0].range===t[0].range&&e[0].events===t[0].events};function mHe(){return yNe((function(e){for(var t=e.range,n=e.events,r=e.maxRows,o=e.minRows,i=e.accessors,a=e.localizer,s=iHe({dateRange:t,localizer:a}),c=s.first,u=s.last,d=n.map((function(e){return function(e,t,n,r){var o=iHe({dateRange:t,localizer:r}),i=o.first,a=o.last,s=r.diff(i,a,"day"),l=r.max(r.startOf(n.start(e),"day"),i),c=r.min(r.ceil(n.end(e),"day"),a),u=cNe(t,(function(e){return r.isSameDate(e,l)})),d=r.diff(l,c,"day");return d=Math.min(d,s),{event:e,span:d=Math.max(d-r.segmentOffset,1),left:u+1,right:Math.max(u+d,1)}}(e,t,i,a)})),p=aHe(d,Math.max(r-1,1)),f=p.levels,h=p.extra;f.length<o;)f.push([]);return{first:c,last:u,levels:f,extra:h,range:t,slots:t.length,clone:function(t){return mHe()((0,l.Z)((0,l.Z)({},e),t))},getDateForSlot:function(e){return t[e]},getSlotForDate:function(e){return t.find((function(t){return a.isSameDate(t,e)}))},getEventsForSlot:function(e){return d.filter((function(t){return function(e,t){return e.left<=t&&e.right>=t}(t,e)})).map((function(e){return e.event}))},continuesPrior:function(e){return a.continuesPrior(i.start(e),c)},continuesAfter:function(e){var t=i.start(e),n=i.end(e);return a.continuesAfter(t,n,u)}}}),hHe)}var vHe=function(e){(0,qF.Z)(n,e);var t=(0,GF.Z)(n);function n(){var e;(0,Ph.Z)(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).handleSelectSlot=function(t){var n=e.props,r=n.range;(0,n.onSelectSlot)(r.slice(t.start,t.end+1),t)},e.handleShowMore=function(t,n){var r,o=e.props,i=o.range,a=o.onShowMore,s=e.slotMetrics(e.props),l=ZLe((0,g.findDOMNode)((0,UF.Z)(e)),".rbc-row-bg")[0];l&&(r=l.children[t-1]),a(s.getEventsForSlot(t),i[t-1],r,t,n)},e.createHeadingRef=function(t){e.headingRow=t},e.createEventRef=function(t){e.eventRow=t},e.getContainer=function(){var t=e.props.container;return t?t():(0,g.findDOMNode)((0,UF.Z)(e))},e.renderHeadingCell=function(t,n){var r=e.props,o=r.renderHeader,i=r.getNow,a=r.localizer;return o({date:t,key:"header_".concat(n),className:(0,y.default)("rbc-date-cell",a.isSameDate(t,i())&&"rbc-now")})},e.renderDummy=function(){var t=e.props,n=t.className,r=t.range,i=t.renderHeader,a=t.showAllEvents;return o.createElement("div",{className:n},o.createElement("div",{className:(0,y.default)("rbc-row-content",a&&"rbc-row-content-scrollable")},i&&o.createElement("div",{className:"rbc-row",ref:e.createHeadingRef},r.map(e.renderHeadingCell)),o.createElement("div",{className:"rbc-row",ref:e.createEventRef},o.createElement("div",{className:"rbc-row-segment"},o.createElement("div",{className:"rbc-event"},o.createElement("div",{className:"rbc-event-content"},"\xa0"))))))},e.slotMetrics=mHe(),e}return(0,Dh.Z)(n,[{key:"getRowLimit",value:function(){var e=jLe(this.eventRow),t=this.headingRow?jLe(this.headingRow):0,n=jLe((0,g.findDOMNode)(this))-t;return Math.max(Math.floor(n/e),1)}},{key:"render",value:function(){var e=this.props,t=e.date,n=e.rtl,r=e.range,i=e.className,a=e.selected,s=e.selectable,l=e.renderForMeasure,c=e.accessors,u=e.getters,d=e.components,p=e.getNow,f=e.renderHeader,h=e.onSelect,m=e.localizer,v=e.onSelectStart,g=e.onSelectEnd,b=e.onDoubleClick,x=e.onKeyPress,w=e.resourceId,C=e.longPressThreshold,j=e.isAllDay,S=e.resizable,k=e.showAllEvents;if(l)return this.renderDummy();var Z=this.slotMetrics(this.props),O=Z.levels,E=Z.extra,D=k?fHe:sze,P=d.weekWrapper,A={selected:a,accessors:c,getters:u,localizer:m,components:d,onSelect:h,onDoubleClick:b,onKeyPress:x,resourceId:w,slotMetrics:Z,resizable:S};return o.createElement("div",{className:i,role:"rowgroup"},o.createElement(eHe,{localizer:m,date:t,getNow:p,rtl:n,range:r,selectable:s,container:this.getContainer,getters:u,onSelectStart:v,onSelectEnd:g,onSelectSlot:this.handleSelectSlot,components:d,longPressThreshold:C,resourceId:w}),o.createElement("div",{className:(0,y.default)("rbc-row-content",k&&"rbc-row-content-scrollable"),role:"row"},f&&o.createElement("div",{className:"rbc-row ",ref:this.createHeadingRef},r.map(this.renderHeadingCell)),o.createElement(D,null,o.createElement(P,Object.assign({isAllDay:j},A),O.map((function(e,t){return o.createElement(oHe,Object.assign({key:t,segments:e},A))})),!!E.length&&o.createElement(pHe,Object.assign({segments:E,onShowMore:this.handleShowMore},A))))))}}]),n}(o.Component);vHe.defaultProps={minRows:0,maxRows:1/0};var gHe=function(e){var t=e.label;return o.createElement("span",{role:"columnheader","aria-sort":"none"},t)},yHe=function(e){var t=e.label,n=e.drilldownView,r=e.onDrillDown;return n?o.createElement("button",{type:"button",className:"rbc-button-link",onClick:r,role:"cell"},t):o.createElement("span",null,t)},bHe=["date","className"],xHe=function(e,t,n,r,o){return e.filter((function(e){return sHe(e,t,n,r,o)}))},wHe=function(e){(0,qF.Z)(n,e);var t=(0,GF.Z)(n);function n(){var e;(0,Ph.Z)(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).getContainer=function(){return(0,g.findDOMNode)((0,UF.Z)(e))},e.renderWeek=function(t,n){var r=e.props,i=r.events,a=r.components,s=r.selectable,l=r.getNow,c=r.selected,u=r.date,d=r.localizer,p=r.longPressThreshold,f=r.accessors,h=r.getters,m=r.showAllEvents,v=e.state,g=v.needLimitMeasure,y=v.rowLimit,b=xHe((0,dn.Z)(i),t[0],t[t.length-1],f,d);return b.sort((function(e,t){return cHe(e,t,f,d)})),o.createElement(vHe,{key:n,ref:0===n?e.slotRowRef:void 0,container:e.getContainer,className:"rbc-month-row",getNow:l,date:u,range:t,events:b,maxRows:m?1/0:y,selected:c,selectable:s,components:a,accessors:f,getters:h,localizer:d,renderHeader:e.readerDateHeading,renderForMeasure:g,onShowMore:e.handleShowMore,onSelect:e.handleSelectEvent,onDoubleClick:e.handleDoubleClickEvent,onKeyPress:e.handleKeyPressEvent,onSelectSlot:e.handleSelectSlot,longPressThreshold:p,rtl:e.props.rtl,resizable:e.props.resizable,showAllEvents:m})},e.readerDateHeading=function(t){var n=t.date,r=t.className,i=Nn(t,bHe),a=e.props,s=a.date,l=a.getDrilldownView,c=a.localizer,u=c.neq(n,s,"month"),d=c.isSameDate(n,s),p=l(n),f=c.format(n,"dateFormat"),h=e.props.components.dateHeader||yHe;return o.createElement("div",Object.assign({},i,{className:(0,y.default)(r,u&&"rbc-off-range",d&&"rbc-current"),role:"cell"}),o.createElement(h,{label:f,date:n,drilldownView:p,isOffRange:u,onDrillDown:function(t){return e.handleHeadingClick(n,p,t)}}))},e.handleSelectSlot=function(t,n){e._pendingSelection=e._pendingSelection.concat(t),clearTimeout(e._selectTimer),e._selectTimer=setTimeout((function(){return e.selectDates(n)}))},e.handleHeadingClick=function(t,n,r){r.preventDefault(),e.clearSelection(),hze(e.props.onDrillDown,[t,n])},e.handleSelectEvent=function(){e.clearSelection();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];hze(e.props.onSelectEvent,n)},e.handleDoubleClickEvent=function(){e.clearSelection();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];hze(e.props.onDoubleClickEvent,n)},e.handleKeyPressEvent=function(){e.clearSelection();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];hze(e.props.onKeyPressEvent,n)},e.handleShowMore=function(t,n,r,o,i){var a=e.props,s=a.popup,l=a.onDrillDown,c=a.onShowMore,u=a.getDrilldownView,d=a.doShowMoreDrillDown;if(e.clearSelection(),s){var p=uRe(r,(0,g.findDOMNode)((0,UF.Z)(e)));e.setState({overlay:{date:n,events:t,position:p,target:i}})}else d&&hze(l,[n,u(n)||pze.DAY]);hze(c,[t,n,o])},e.overlayDisplay=function(){e.setState({overlay:null})},e._bgRows=[],e._pendingSelection=[],e.slotRowRef=o.createRef(),e.state={rowLimit:5,needLimitMeasure:!0},e}return(0,Dh.Z)(n,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=e.date,n=this.props,r=n.date,o=n.localizer;this.setState({needLimitMeasure:o.neq(t,r,"month")})}},{key:"componentDidMount",value:function(){var e,t=this;this.state.needLimitMeasure&&this.measureRowLimit(this.props),window.addEventListener("resize",this._resizeListener=function(){e||gRe((function(){e=!1,t.setState({needLimitMeasure:!0})}))},!1)}},{key:"componentDidUpdate",value:function(){this.state.needLimitMeasure&&this.measureRowLimit(this.props)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this._resizeListener,!1)}},{key:"render",value:function(){var e=this.props,t=e.date,n=e.localizer,r=e.className,i=n.visibleDays(t,n),a=KIe(i,7);return this._weekCount=a.length,o.createElement("div",{className:(0,y.default)("rbc-month-view",r),role:"table","aria-label":"Month View"},o.createElement("div",{className:"rbc-row rbc-month-header",role:"row"},this.renderHeaders(a[0])),a.map(this.renderWeek),this.props.popup&&this.renderOverlay())}},{key:"renderHeaders",value:function(e){var t=this.props,n=t.localizer,r=t.components,i=e[0],a=e[e.length-1],s=r.header||gHe;return n.range(i,a,"day").map((function(e,t){return o.createElement("div",{key:"header_"+t,className:"rbc-header"},o.createElement(s,{date:e,localizer:n,label:n.format(e,"weekdayFormat")}))}))}},{key:"renderOverlay",value:function(){var e=this,t=this.state&&this.state.overlay||{},n=this.props,r=n.accessors,i=n.localizer,a=n.components,s=n.getters,l=n.selected,c=n.popupOffset;return o.createElement(CLe,{rootClose:!0,placement:"bottom",show:!!t.position,onHide:function(){return e.setState({overlay:null})},target:function(){return t.target}},(function(n){var u=n.props;return o.createElement(Uze,Object.assign({},u,{popupOffset:c,accessors:r,getters:s,selected:l,components:a,localizer:i,position:t.position,show:e.overlayDisplay,events:t.events,slotStart:t.date,slotEnd:t.end,onSelect:e.handleSelectEvent,onDoubleClick:e.handleDoubleClickEvent,onKeyPress:e.handleKeyPressEvent,handleDragStart:e.props.handleDragStart}))}))}},{key:"measureRowLimit",value:function(){this.setState({needLimitMeasure:!1,rowLimit:this.slotRowRef.current.getRowLimit()})}},{key:"selectDates",value:function(e){var t=this._pendingSelection.slice();this._pendingSelection=[],t.sort((function(e,t){return+e-+t}));var n=new Date(t[0]),r=new Date(t[t.length-1]);r.setDate(t[t.length-1].getDate()+1),hze(this.props.onSelectSlot,{slots:t,start:n,end:r,action:e.action,bounds:e.bounds,box:e.box})}},{key:"clearSelection",value:function(){clearTimeout(this._selectTimer),this._pendingSelection=[]}}]),n}(o.Component);wHe.range=function(e,t){var n=t.localizer;return{start:n.firstVisibleDay(e,n),end:n.lastVisibleDay(e,n)}},wHe.navigate=function(e,t,n){var r=n.localizer;switch(t){case lze:return r.add(e,-1,"month");case cze:return r.add(e,1,"month");default:return e}},wHe.title=function(e,t){return t.localizer.format(e,"monthHeaderFormat")};var CHe=function(e){var t=e.min,n=e.max,r=e.step,o=e.slots,i=e.localizer;return"".concat(+i.startOf(t,"minutes"))+"".concat(+i.startOf(n,"minutes"))+"".concat(r,"-").concat(o)};function jHe(e){for(var t=e.min,n=e.max,r=e.step,o=e.timeslots,i=e.localizer,a=CHe({start:t,end:n,step:r,timeslots:o,localizer:i}),s=1+i.getTotalMin(t,n),l=i.getMinutesFromMidnight(t),c=Math.ceil((s-1)/(r*o)),u=c*o,d=new Array(c),p=new Array(u),f=0;f<c;f++){d[f]=new Array(o);for(var h=0;h<o;h++){var m=f*o+h,v=m*r;p[m]=d[f][h]=i.getSlotDate(t,l,v)}}var g=p.length*r;function y(e){var n=i.diff(t,e,"minutes")+i.getDstOffset(t,e);return Math.min(n,s)}return p.push(i.getSlotDate(t,l,g)),{groups:d,update:function(e){return CHe(e)!==a?jHe(e):this},dateIsInGroup:function(e,t){var r=d[t+1];return i.inRange(e,d[t][0],r?r[0]:n,"minutes")},nextSlot:function(e){var t=p[Math.min(p.indexOf(e)+1,p.length-1)];return t===e&&(t=i.add(e,r,"minutes")),t},closestSlotToPosition:function(e){var t=Math.min(p.length-1,Math.max(0,Math.floor(e*u)));return p[t]},closestSlotFromPoint:function(e,t){var n=Math.abs(t.top-t.bottom);return this.closestSlotToPosition((e.y-t.top)/n)},closestSlotFromDate:function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(i.lt(e,t,"minutes"))return p[0];if(i.gt(e,n,"minutes"))return p[p.length-1];var a=i.diff(t,e,"minutes");return p[(a-a%r)/r+o]},startsBeforeDay:function(e){return i.lt(e,t,"day")},startsAfterDay:function(e){return i.gt(e,n,"day")},startsBefore:function(e){return i.lt(i.merge(t,e),t,"minutes")},startsAfter:function(e){return i.gt(i.merge(n,e),n,"minutes")},getRange:function(e,o,a,s){a||(e=i.min(n,i.max(t,e))),s||(o=i.min(n,i.max(t,o)));var l=y(e),c=y(o),d=c>r*u&&!i.eq(n,o)?(l-r)/(r*u)*100:l/(r*u)*100;return{top:d,height:c/(r*u)*100-d,start:y(e),startDate:e,end:y(o),endDate:o}},getCurrentTimePosition:function(e){return y(e)/(r*u)*100}}}var SHe=function(){function e(t,n){var r=n.accessors,o=n.slotMetrics;(0,Ph.Z)(this,e);var i=o.getRange(r.start(t),r.end(t)),a=i.start,s=i.startDate,l=i.end,c=i.endDate,u=i.top,d=i.height;this.start=a,this.end=l,this.startMs=+s,this.endMs=+c,this.top=u,this.height=d,this.data=t}return(0,Dh.Z)(e,[{key:"_width",get:function(){if(this.rows){var e=this.rows.reduce((function(e,t){return Math.max(e,t.leaves.length+1)}),0)+1;return 100/e}var t=100-this.container._width;return this.leaves?t/(this.leaves.length+1):this.row._width}},{key:"width",get:function(){var e=this._width,t=Math.min(100,1.7*this._width);if(this.rows)return t;if(this.leaves)return this.leaves.length>0?t:e;var n=this.row.leaves;return n.indexOf(this)===n.length-1?e:t}},{key:"xOffset",get:function(){if(this.rows)return 0;if(this.leaves)return this.container._width;var e=this.row,t=e.leaves,n=e.xOffset,r=e._width;return n+(t.indexOf(this)+1)*r}}]),e}();function kHe(e,t,n){return Math.abs(t.start-e.start)<n||t.start>e.start&&t.start<e.end}function ZHe(e){for(var t=e.events,n=e.minimumStartDifference,r=e.slotMetrics,o=e.accessors,i=function(e){for(var t=VNe(e,["startMs",function(e){return-e.endMs}]),n=[];t.length>0;){var r=t.shift();n.push(r);for(var o=0;o<t.length;o++){var i=t[o];if(!(r.endMs>i.startMs)){if(o>0){var a=t.splice(o,1)[0];n.push(a)}break}}}return n}(t.map((function(e){return new SHe(e,{slotMetrics:r,accessors:o})}))),a=[],s=function(e){var t=i[e],r=a.find((function(e){return e.end>t.start||Math.abs(t.start-e.start)<n}));if(!r)return t.rows=[],a.push(t),"continue";t.container=r;for(var o=null,s=r.rows.length-1;!o&&s>=0;s--)kHe(r.rows[s],t,n)&&(o=r.rows[s]);o?(o.leaves.push(t),t.row=o):(t.leaves=[],r.rows.push(t))},l=0;l<i.length;l++)s(l);return i.map((function(e){return{event:e.data,style:{top:e.top,height:e.height,width:e.width,xOffset:Math.max(0,e.xOffset)}}}))}function OHe(e,t,n){for(var r=0;r<e.friends.length;++r)if(!(n.indexOf(e.friends[r])>-1)){t=t>e.friends[r].idx?t:e.friends[r].idx,n.push(e.friends[r]);var o=OHe(e.friends[r],t,n);t=t>o?t:o}return t}var EHe={overlap:ZHe,"no-overlap":function(e){var t=ZHe({events:e.events,minimumStartDifference:e.minimumStartDifference,slotMetrics:e.slotMetrics,accessors:e.accessors});t.sort((function(e,t){return e=e.style,t=t.style,e.top!==t.top?e.top>t.top?1:-1:e.top+e.height<t.top+t.height?1:-1}));for(var n=0;n<t.length;++n)t[n].friends=[],delete t[n].style.left,delete t[n].style.left,delete t[n].idx,delete t[n].size;for(var r=0;r<t.length-1;++r)for(var o=t[r],i=o.style.top,a=o.style.top+o.style.height,s=r+1;s<t.length;++s){var l=t[s],c=l.style.top,u=l.style.top+l.style.height;(c<=i&&i<u||i<=c&&c<a)&&(o.friends.push(l),l.friends.push(o))}for(var d=0;d<t.length;++d){for(var p=t[d],f=[],h=0;h<100;++h)f.push(1);for(var m=0;m<p.friends.length;++m)void 0!==p.friends[m].idx&&(f[p.friends[m].idx]=0);p.idx=f.indexOf(1)}for(var v=0;v<t.length;++v){var g;if(!t[v].size){var y=[];g=100/(OHe(t[v],0,y)+1),t[v].size=g;for(var b=0;b<y.length;++b)y[b].size=g}}for(var x=0;x<t.length;++x){var w=t[x];w.style.left=w.idx*w.size;for(var C=0,j=0;j<w.friends.length;++j){var S=w.friends[j].idx;C=C>S?C:S}C<=w.idx&&(w.size=100-w.idx*w.size);var k=0===w.idx?0:3;w.style.width="calc(".concat(w.size,"% - ").concat(k,"px)"),w.style.height="calc(".concat(w.style.height,"% - 2px)"),w.style.xOffset="calc(".concat(w.style.left,"% + ").concat(k,"px)")}return t}};function DHe(e){return!!(e&&e.constructor&&e.call&&e.apply)}function PHe(e){e.events,e.minimumStartDifference,e.slotMetrics,e.accessors;var t=e.dayLayoutAlgorithm,n=t;return t in EHe&&(n=EHe[t]),DHe(n)?n.apply(this,arguments):[]}var AHe=function(e){(0,qF.Z)(n,e);var t=(0,GF.Z)(n);function n(){return(0,Ph.Z)(this,n),t.apply(this,arguments)}return(0,Dh.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.renderSlot,n=e.resource,r=e.group,i=e.getters,a=e.components,s=(a=void 0===a?{}:a).timeSlotWrapper,l=void 0===s?sze:s,c=i?i.slotGroupProp():{};return o.createElement("div",Object.assign({className:"rbc-timeslot-group"},c),r.map((function(e,r){var a=i?i.slotProp(e,n):{};return o.createElement(l,{key:r,value:e,resource:n},o.createElement("div",Object.assign({},a,{className:(0,y.default)("rbc-time-slot",a.className)}),t&&t(e,r)))})))}}]),n}(o.Component);function MHe(e){return"string"===typeof e?e:e+"%"}function THe(e){var n=e.style,r=e.className,i=e.event,a=e.accessors,s=e.rtl,c=e.selected,u=e.label,d=e.continuesPrior,p=e.continuesAfter,f=e.getters,h=e.onClick,m=e.onDoubleClick,v=e.isBackgroundEvent,g=e.onKeyPress,b=e.components,x=b.event,w=b.eventWrapper,C=a.title(i),j=a.tooltip(i),S=a.end(i),k=a.start(i),Z=f.eventProp(i,k,S,c),O=n.height,E=n.top,D=n.width,P=n.xOffset,A=[o.createElement("div",{key:"1",className:"rbc-event-label"},u),o.createElement("div",{key:"2",className:"rbc-event-content"},x?o.createElement(x,{event:i,title:C}):C)],M=v?(0,l.Z)((0,l.Z)({},Z.style),{},(0,t.Z)({top:MHe(E),height:MHe(O),width:"calc(".concat(D," + 10px)")},s?"right":"left",MHe(Math.max(0,P)))):(0,l.Z)((0,l.Z)({},Z.style),{},(0,t.Z)({top:MHe(E),width:MHe(D),height:MHe(O)},s?"right":"left",MHe(P)));return o.createElement(w,Object.assign({type:"time"},e),o.createElement("div",{onClick:h,onDoubleClick:m,style:M,onKeyPress:g,title:j?("string"===typeof u?u+": ":"")+j:void 0,className:(0,y.default)(v?"rbc-background-event":"rbc-event",r,Z.className,{"rbc-selected":c,"rbc-event-continues-earlier":d,"rbc-event-continues-later":p})},A))}var IHe=function(e){var t=e.children,n=e.className,r=e.style;return o.createElement("div",{className:n,style:r},t)},RHe=["dayProp"],FHe=["eventContainerWrapper"],BHe=function(e){(0,qF.Z)(n,e);var t=(0,GF.Z)(n);function n(){var e;(0,Ph.Z)(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state={selecting:!1,timeIndicatorPosition:null},e.intervalTriggered=!1,e.renderEvents=function(t){var n=t.events,r=t.isBackgroundEvent,i=e.props,a=i.rtl,s=i.selected,l=i.accessors,c=i.localizer,u=i.getters,d=i.components,p=i.step,f=i.timeslots,h=i.dayLayoutAlgorithm,m=i.resizable,v=(0,UF.Z)(e).slotMetrics,g=c.messages;return PHe({events:n,accessors:l,slotMetrics:v,minimumStartDifference:Math.ceil(p*f/2),dayLayoutAlgorithm:h}).map((function(t,n){var i,p=t.event,f=t.style,h=l.end(p),y=l.start(p),b="eventTimeRangeFormat",x=v.startsBeforeDay(y),w=v.startsAfterDay(h);x?b="eventTimeRangeEndFormat":w&&(b="eventTimeRangeStartFormat"),i=x&&w?g.allDay:c.format({start:y,end:h},b);var C=x||v.startsBefore(y),j=w||v.startsAfter(h);return o.createElement(THe,{style:f,event:p,label:i,key:"evt_"+n,getters:u,rtl:a,components:d,continuesPrior:C,continuesAfter:j,accessors:l,selected:zze(p,s),onClick:function(t){return e._select(p,t)},onDoubleClick:function(t){return e._doubleClick(p,t)},isBackgroundEvent:r,onKeyPress:function(t){return e._keyPress(p,t)},resizable:m})}))},e._selectable=function(){var t=(0,g.findDOMNode)((0,UF.Z)(e)),n=e.props,r=n.longPressThreshold,o=n.localizer,i=e._selector=new Jze((function(){return(0,g.findDOMNode)((0,UF.Z)(e))}),{longPressThreshold:r}),a=function(t){var n=e.props.onSelecting,r=e.state||{},i=s(t),a=i.startDate,l=i.endDate;n&&(o.eq(r.startDate,a,"minutes")&&o.eq(r.endDate,l,"minutes")||!1===n({start:a,end:l,resourceId:e.props.resource}))||e.state.start===i.start&&e.state.end===i.end&&e.state.selecting===i.selecting||e.setState(i)},s=function(n){var r=e.slotMetrics.closestSlotFromPoint(n,Qze(t));e.state.selecting||(e._initialSlot=r);var i=e._initialSlot;o.lte(i,r)?r=e.slotMetrics.nextSlot(r):o.gt(i,r)&&(i=e.slotMetrics.nextSlot(i));var a=e.slotMetrics.getRange(o.min(i,r),o.max(i,r));return(0,l.Z)((0,l.Z)({},a),{},{selecting:!0,top:"".concat(a.top,"%"),height:"".concat(a.height,"%")})},c=function(t,n){if(!Yze((0,g.findDOMNode)((0,UF.Z)(e)),t)){var r=s(t),o=r.startDate,i=r.endDate;e._selectSlot({startDate:o,endDate:i,action:n,box:t})}e.setState({selecting:!1})};i.on("selecting",a),i.on("selectStart",a),i.on("beforeSelect",(function(t){if("ignoreEvents"===e.props.selectable)return!Yze((0,g.findDOMNode)((0,UF.Z)(e)),t)})),i.on("click",(function(e){return c(e,"click")})),i.on("doubleClick",(function(e){return c(e,"doubleClick")})),i.on("select",(function(t){e.state.selecting&&(e._selectSlot((0,l.Z)((0,l.Z)({},e.state),{},{action:"select",bounds:t})),e.setState({selecting:!1}))})),i.on("reset",(function(){e.state.selecting&&e.setState({selecting:!1})}))},e._teardownSelectable=function(){e._selector&&(e._selector.teardown(),e._selector=null)},e._selectSlot=function(t){for(var n=t.startDate,r=t.endDate,o=t.action,i=t.bounds,a=t.box,s=n,l=[];e.props.localizer.lte(s,r);)l.push(s),s=new Date(+s+60*e.props.step*1e3);hze(e.props.onSelectSlot,{slots:l,start:n,end:r,resourceId:e.props.resource,action:o,bounds:i,box:a})},e._select=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];hze(e.props.onSelectEvent,n)},e._doubleClick=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];hze(e.props.onDoubleClickEvent,n)},e._keyPress=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];hze(e.props.onKeyPressEvent,n)},e.slotMetrics=jHe(e.props),e}return(0,Dh.Z)(n,[{key:"componentDidMount",value:function(){this.props.selectable&&this._selectable(),this.props.isNow&&this.setTimeIndicatorPositionUpdateInterval()}},{key:"componentWillUnmount",value:function(){this._teardownSelectable(),this.clearTimeIndicatorInterval()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.selectable&&!this.props.selectable&&this._selectable(),!e.selectable&&this.props.selectable&&this._teardownSelectable(),this.slotMetrics=this.slotMetrics.update(e)}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.getNow,o=n.isNow,i=n.localizer,a=n.date,s=n.min,l=n.max,c=i.neq(e.getNow(),r(),"minutes");if(e.isNow!==o||c){if(this.clearTimeIndicatorInterval(),o){var u=!c&&i.eq(e.date,a,"minutes")&&t.timeIndicatorPosition===this.state.timeIndicatorPosition;this.setTimeIndicatorPositionUpdateInterval(u)}}else o&&(i.neq(e.min,s,"minutes")||i.neq(e.max,l,"minutes"))&&this.positionTimeIndicator()}},{key:"setTimeIndicatorPositionUpdateInterval",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.intervalTriggered||t||this.positionTimeIndicator(),this._timeIndicatorTimeout=window.setTimeout((function(){e.intervalTriggered=!0,e.positionTimeIndicator(),e.setTimeIndicatorPositionUpdateInterval()}),6e4)}},{key:"clearTimeIndicatorInterval",value:function(){this.intervalTriggered=!1,window.clearTimeout(this._timeIndicatorTimeout)}},{key:"positionTimeIndicator",value:function(){var e=this.props,t=e.min,n=e.max,r=(0,e.getNow)();if(r>=t&&r<=n){var o=this.slotMetrics.getCurrentTimePosition(r);this.intervalTriggered=!0,this.setState({timeIndicatorPosition:o})}else this.clearTimeIndicatorInterval()}},{key:"render",value:function(){var e=this.props,t=e.date,n=e.max,r=e.rtl,i=e.isNow,a=e.resource,s=e.accessors,l=e.localizer,c=e.getters,u=c.dayProp,d=Nn(c,RHe),p=e.components,f=p.eventContainerWrapper,h=Nn(p,FHe),m=this.slotMetrics,v=this.state,g=v.selecting,b=v.top,x=v.height,w={start:v.startDate,end:v.endDate},C=u(n),j=C.className,S=C.style,k=h.dayColumnWrapper||IHe;return o.createElement(k,{date:t,style:S,className:(0,y.default)(j,"rbc-day-slot","rbc-time-column",i&&"rbc-now",i&&"rbc-today",g&&"rbc-slot-selecting"),slotMetrics:m},m.groups.map((function(e,t){return o.createElement(AHe,{key:t,group:e,resource:a,getters:d,components:h})})),o.createElement(f,{localizer:l,resource:a,accessors:s,getters:d,components:h,slotMetrics:m},o.createElement("div",{className:(0,y.default)("rbc-events-container",r&&"rtl")},this.renderEvents({events:this.props.backgroundEvents,isBackgroundEvent:!0}),this.renderEvents({events:this.props.events}))),g&&o.createElement("div",{className:"rbc-slot-selection",style:{top:b,height:x}},o.createElement("span",null,l.format(w,"selectRangeFormat"))),i&&this.intervalTriggered&&o.createElement("div",{className:"rbc-current-time-indicator",style:{top:"".concat(this.state.timeIndicatorPosition,"%")}}))}}]),n}(o.Component);function LHe(e){var t=e.min,n=e.max,r=e.localizer;return r.getTimezoneOffset(t)!==r.getTimezoneOffset(n)?{start:r.add(t,-1,"day"),end:r.add(n,-1,"day")}:{start:t,end:n}}BHe.defaultProps={dragThroughEvents:!0,timeslots:2};var NHe=function(e){(0,qF.Z)(n,e);var t=(0,GF.Z)(n);function n(){var e;(0,Ph.Z)(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];(e=t.call.apply(t,[this].concat(i))).renderSlot=function(t,n){if(0!==n)return null;var r=e.props,i=r.localizer,a=r.getNow,s=e.slotMetrics.dateIsInGroup(a(),n);return o.createElement("span",{className:(0,y.default)("rbc-label",s&&"rbc-now")},i.format(t,"timeGutterFormat"))};var s=e.props,l=s.min,c=s.max,u=s.timeslots,d=s.step,p=s.localizer,f=LHe({min:l,max:c,localizer:p}),h=f.start,m=f.end;return e.slotMetrics=jHe({min:h,max:m,timeslots:u,step:d,localizer:p}),e}return(0,Dh.Z)(n,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=LHe({min:e.min,max:e.max,localizer:e.localizer}),n=t.start,r=t.end;this.slotMetrics=this.slotMetrics.update((0,l.Z)((0,l.Z)({},e),{},{min:n,max:r}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.resource,r=t.components,i=t.getters;return o.createElement("div",{className:"rbc-time-gutter rbc-time-column"},this.slotMetrics.groups.map((function(t,a){return o.createElement(AHe,{key:a,group:t,resource:n,components:r,renderSlot:e.renderSlot,getters:i})})))}}]),n}(o.Component),_He=function(e){var t=e.label;return o.createElement(o.Fragment,null,t)},zHe=function(e){(0,qF.Z)(n,e);var t=(0,GF.Z)(n);function n(){var e;(0,Ph.Z)(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).handleHeaderClick=function(t,n,r){r.preventDefault(),hze(e.props.onDrillDown,[t,n])},e.renderRow=function(t){var n=e.props,r=n.events,i=n.rtl,a=n.selectable,s=n.getNow,l=n.range,c=n.getters,u=n.localizer,d=n.accessors,p=n.components,f=n.resizable,h=d.resourceId(t),m=t?r.filter((function(e){return d.resource(e)===h})):r;return o.createElement(vHe,{isAllDay:!0,rtl:i,getNow:s,minRows:2,range:l,events:m,resourceId:h,className:"rbc-allday-cell",selectable:a,selected:e.props.selected,components:p,accessors:d,getters:c,localizer:u,onSelect:e.props.onSelectEvent,onDoubleClick:e.props.onDoubleClickEvent,onKeyPress:e.props.onKeyPressEvent,onSelectSlot:e.props.onSelectSlot,longPressThreshold:e.props.longPressThreshold,resizable:f})},e}return(0,Dh.Z)(n,[{key:"renderHeaderCells",value:function(e){var t=this,n=this.props,r=n.localizer,i=n.getDrilldownView,a=n.getNow,s=n.getters.dayProp,l=n.components.header,c=void 0===l?gHe:l,u=a();return e.map((function(e,n){var a=i(e),l=r.format(e,"dayFormat"),d=s(e),p=d.className,f=d.style,h=o.createElement(c,{date:e,label:l,localizer:r});return o.createElement("div",{key:n,style:f,className:(0,y.default)("rbc-header",p,r.isSameDate(e,u)&&"rbc-today")},a?o.createElement("button",{type:"button",className:"rbc-button-link",onClick:function(n){return t.handleHeaderClick(e,a,n)}},h):o.createElement("span",null,h))}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.width,r=t.rtl,i=t.resources,a=t.range,s=t.events,l=t.getNow,c=t.accessors,u=t.selectable,d=t.components,p=t.getters,f=t.scrollRef,h=t.localizer,m=t.isOverflowing,v=t.components,g=v.timeGutterHeader,b=v.resourceHeader,x=void 0===b?_He:b,w=t.resizable,C={};m&&(C[r?"marginLeft":"marginRight"]="".concat(qNe(),"px"));var j=i.groupEvents(s);return o.createElement("div",{style:C,ref:f,className:(0,y.default)("rbc-time-header",m&&"rbc-overflowing")},o.createElement("div",{className:"rbc-label rbc-time-header-gutter",style:{width:n,minWidth:n,maxWidth:n}},g&&o.createElement(g,null)),i.map((function(t,n){var i=(0,Le.Z)(t,2),s=i[0],f=i[1];return o.createElement("div",{className:"rbc-time-header-content",key:s||n},f&&o.createElement("div",{className:"rbc-row rbc-row-resource",key:"resource_".concat(n)},o.createElement("div",{className:"rbc-header"},o.createElement(x,{index:n,label:c.resourceTitle(f),resource:f}))),o.createElement("div",{className:"rbc-row rbc-time-header-cell".concat(a.length<=1?" rbc-time-header-cell-single-day":"")},e.renderHeaderCells(a)),o.createElement(vHe,{isAllDay:!0,rtl:r,getNow:l,minRows:2,range:a,events:j.get(s)||[],resourceId:f&&s,className:"rbc-allday-cell",selectable:u,selected:e.props.selected,components:d,accessors:c,getters:p,localizer:h,onSelect:e.props.onSelectEvent,onDoubleClick:e.props.onDoubleClickEvent,onKeyPress:e.props.onKeyPressEvent,onSelectSlot:e.props.onSelectSlot,longPressThreshold:e.props.longPressThreshold,resizable:w}))})))}}]),n}(o.Component),HHe={};var WHe=function(e){(0,qF.Z)(n,e);var t=(0,GF.Z)(n);function n(e){var r;return(0,Ph.Z)(this,n),(r=t.call(this,e)).handleScroll=function(e){r.scrollRef.current&&(r.scrollRef.current.scrollLeft=e.target.scrollLeft)},r.handleResize=function(){vRe(r.rafHandle),r.rafHandle=gRe(r.checkOverflow)},r.gutterRef=function(e){r.gutter=e&&(0,g.findDOMNode)(e)},r.handleSelectAlldayEvent=function(){r.clearSelection();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];hze(r.props.onSelectEvent,t)},r.handleSelectAllDaySlot=function(e,t){var n=r.props.onSelectSlot,o=new Date(e[0]),i=new Date(e[e.length-1]);i.setDate(e[e.length-1].getDate()+1),hze(n,{slots:e,start:o,end:i,action:t.action,resourceId:t.resourceId})},r.checkOverflow=function(){if(!r._updatingOverflow){var e=r.contentRef.current,t=e.scrollHeight>e.clientHeight;r.state.isOverflowing!==t&&(r._updatingOverflow=!0,r.setState({isOverflowing:t},(function(){r._updatingOverflow=!1})))}},r.memoizedResources=yNe((function(e,t){return function(e,t){return{map:function(n){return e?e.map((function(e,r){return n([t.resourceId(e),e],r)})):[n([HHe,null],0)]},groupEvents:function(n){var r=new Map;return e?(n.forEach((function(e){var n=t.resource(e)||HHe,o=r.get(n)||[];o.push(e),r.set(n,o)})),r):(r.set(HHe,n),r)}}}(e,t)})),r.state={gutterWidth:void 0,isOverflowing:null},r.scrollRef=o.createRef(),r.contentRef=o.createRef(),r._scrollRatio=null,r}return(0,Dh.Z)(n,[{key:"UNSAFE_componentWillMount",value:function(){this.calculateScroll()}},{key:"componentDidMount",value:function(){this.checkOverflow(),null==this.props.width&&this.measureGutter(),this.applyScroll(),window.addEventListener("resize",this.handleResize)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleResize),vRe(this.rafHandle),this.measureGutterAnimationFrameRequest&&window.cancelAnimationFrame(this.measureGutterAnimationFrameRequest)}},{key:"componentDidUpdate",value:function(){null==this.props.width&&this.measureGutter(),this.applyScroll()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.props,n=t.range,r=t.scrollToTime,o=t.localizer;(o.neq(e.range[0],n[0],"minutes")||o.neq(e.scrollToTime,r,"minutes"))&&this.calculateScroll(e)}},{key:"renderEvents",value:function(e,t,n,r){var i=this,a=this.props,s=a.min,l=a.max,c=a.components,u=a.accessors,d=a.localizer,p=a.dayLayoutAlgorithm,f=this.memoizedResources(this.props.resources,u),h=f.groupEvents(t),m=f.groupEvents(n);return f.map((function(t,n){var a=(0,Le.Z)(t,2),f=a[0],v=a[1];return e.map((function(e,t){var a=(h.get(f)||[]).filter((function(t){return d.inRange(e,u.start(t),u.end(t),"day")})),g=(m.get(f)||[]).filter((function(t){return d.inRange(e,u.start(t),u.end(t),"day")}));return o.createElement(BHe,Object.assign({},i.props,{localizer:d,min:d.merge(e,s),max:d.merge(e,l),resource:v&&f,components:c,isNow:d.isSameDate(e,r),key:n+"-"+t,date:e,events:a,backgroundEvents:g,dayLayoutAlgorithm:p}))}))}))}},{key:"render",value:function(){var e=this.props,t=e.events,n=e.backgroundEvents,r=e.range,i=e.width,a=e.rtl,s=e.selected,l=e.getNow,c=e.resources,u=e.components,d=e.accessors,p=e.getters,f=e.localizer,h=e.min,m=e.max,v=e.showMultiDayTimes,g=e.longPressThreshold,b=e.resizable;i=i||this.state.gutterWidth;var x=r[0],w=r[r.length-1];this.slots=r.length;var C=[],j=[],S=[];return t.forEach((function(e){if(sHe(e,x,w,d,f)){var t=d.start(e),n=d.end(e);d.allDay(e)||f.startAndEndAreDateOnly(t,n)||!v&&!f.isSameDate(t,n)?C.push(e):j.push(e)}})),n.forEach((function(e){sHe(e,x,w,d,f)&&S.push(e)})),C.sort((function(e,t){return cHe(e,t,d,f)})),o.createElement("div",{className:(0,y.default)("rbc-time-view",c&&"rbc-time-view-resources")},o.createElement(zHe,{range:r,events:C,width:i,rtl:a,getNow:l,localizer:f,selected:s,resources:this.memoizedResources(c,d),selectable:this.props.selectable,accessors:d,getters:p,components:u,scrollRef:this.scrollRef,isOverflowing:this.state.isOverflowing,longPressThreshold:g,onSelectSlot:this.handleSelectAllDaySlot,onSelectEvent:this.handleSelectAlldayEvent,onDoubleClickEvent:this.props.onDoubleClickEvent,onKeyPressEvent:this.props.onKeyPressEvent,onDrillDown:this.props.onDrillDown,getDrilldownView:this.props.getDrilldownView,resizable:b}),o.createElement("div",{ref:this.contentRef,className:"rbc-time-content",onScroll:this.handleScroll},o.createElement(NHe,{date:x,ref:this.gutterRef,localizer:f,min:f.merge(x,h),max:f.merge(x,m),step:this.props.step,getNow:this.props.getNow,timeslots:this.props.timeslots,components:u,className:"rbc-time-gutter",getters:p}),this.renderEvents(r,j,S,l())))}},{key:"clearSelection",value:function(){clearTimeout(this._selectTimer),this._pendingSelection=[]}},{key:"measureGutter",value:function(){var e=this;this.measureGutterAnimationFrameRequest&&window.cancelAnimationFrame(this.measureGutterAnimationFrameRequest),this.measureGutterAnimationFrameRequest=window.requestAnimationFrame((function(){var t=UNe(e.gutter);t&&e.state.gutterWidth!==t&&e.setState({gutterWidth:t})}))}},{key:"applyScroll",value:function(){if(null!=this._scrollRatio&&!0===this.props.enableAutoScroll){var e=this.contentRef.current;e.scrollTop=e.scrollHeight*this._scrollRatio,this._scrollRatio=null}}},{key:"calculateScroll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=e.min,n=e.max,r=e.scrollToTime,o=e.localizer,i=r-o.startOf(r,"day"),a=o.diff(t,n,"milliseconds");this._scrollRatio=i/a}}]),n}(o.Component);WHe.defaultProps={step:30,timeslots:2};var VHe=["date","localizer","min","max","scrollToTime","enableAutoScroll"],UHe=function(e){(0,qF.Z)(n,e);var t=(0,GF.Z)(n);function n(){return(0,Ph.Z)(this,n),t.apply(this,arguments)}return(0,Dh.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.date,r=e.localizer,i=e.min,a=void 0===i?r.startOf(new Date,"day"):i,s=e.max,l=void 0===s?r.endOf(new Date,"day"):s,c=e.scrollToTime,u=void 0===c?r.startOf(new Date,"day"):c,d=e.enableAutoScroll,p=void 0===d||d,f=Nn(e,VHe),h=n.range(t,{localizer:r});return o.createElement(WHe,Object.assign({},f,{range:h,eventOffset:10,localizer:r,min:a,max:l,scrollToTime:u,enableAutoScroll:p}))}}]),n}(o.Component);UHe.range=function(e,t){return[t.localizer.startOf(e,"day")]},UHe.navigate=function(e,t,n){var r=n.localizer;switch(t){case lze:return r.add(e,-1,"day");case cze:return r.add(e,1,"day");default:return e}},UHe.title=function(e,t){return t.localizer.format(e,"dayHeaderFormat")};var qHe=["date","localizer","min","max","scrollToTime","enableAutoScroll"],GHe=function(e){(0,qF.Z)(n,e);var t=(0,GF.Z)(n);function n(){return(0,Ph.Z)(this,n),t.apply(this,arguments)}return(0,Dh.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.date,r=e.localizer,i=e.min,a=void 0===i?r.startOf(new Date,"day"):i,s=e.max,l=void 0===s?r.endOf(new Date,"day"):s,c=e.scrollToTime,u=void 0===c?r.startOf(new Date,"day"):c,d=e.enableAutoScroll,p=void 0===d||d,f=Nn(e,qHe),h=n.range(t,this.props);return o.createElement(WHe,Object.assign({},f,{range:h,eventOffset:15,localizer:r,min:a,max:l,scrollToTime:u,enableAutoScroll:p}))}}]),n}(o.Component);GHe.defaultProps=WHe.defaultProps,GHe.navigate=function(e,t,n){var r=n.localizer;switch(t){case lze:return r.add(e,-1,"week");case cze:return r.add(e,1,"week");default:return e}},GHe.range=function(e,t){var n=t.localizer,r=n.startOfWeek(),o=n.startOf(e,"week",r),i=n.endOf(e,"week",r);return n.range(o,i)},GHe.title=function(e,t){var n=t.localizer,r=wT(GHe.range(e,{localizer:n})),o=r[0],i=r.slice(1);return n.format({start:o,end:i.pop()},"dayRangeHeaderFormat")};var YHe=["date","localizer","min","max","scrollToTime","enableAutoScroll"];function KHe(e,t){return GHe.range(e,t).filter((function(e){return-1===[6,0].indexOf(e.getDay())}))}var JHe,XHe=function(e){(0,qF.Z)(n,e);var t=(0,GF.Z)(n);function n(){return(0,Ph.Z)(this,n),t.apply(this,arguments)}return(0,Dh.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.date,n=e.localizer,r=e.min,i=void 0===r?n.startOf(new Date,"day"):r,a=e.max,s=void 0===a?n.endOf(new Date,"day"):a,l=e.scrollToTime,c=void 0===l?n.startOf(new Date,"day"):l,u=e.enableAutoScroll,d=void 0===u||u,p=Nn(e,YHe),f=KHe(t,this.props);return o.createElement(WHe,Object.assign({},p,{range:f,eventOffset:15,localizer:n,min:i,max:s,scrollToTime:c,enableAutoScroll:d}))}}]),n}(o.Component);function QHe(e){var t=e.accessors,n=e.components,r=e.date,i=e.events,a=e.getters,s=e.length,l=e.localizer,c=e.onDoubleClickEvent,u=e.onSelectEvent,d=e.selected,p=(0,o.useRef)(null),f=(0,o.useRef)(null),h=(0,o.useRef)(null),m=(0,o.useRef)(null),v=(0,o.useRef)(null);(0,o.useEffect)((function(){y()}));var g=function(e,r){var i="",a=n.time,s=l.messages.allDay,c=t.end(r),u=t.start(r);return t.allDay(r)||(l.eq(u,c)?s=l.format(u,"agendaTimeFormat"):l.isSameDate(u,c)?s=l.format({start:u,end:c},"agendaTimeRangeFormat"):l.isSameDate(e,u)?s=l.format(u,"agendaTimeFormat"):l.isSameDate(e,c)&&(s=l.format(c,"agendaTimeFormat"))),l.gt(e,u,"day")&&(i="rbc-continues-prior"),l.lt(e,c,"day")&&(i+=" rbc-continues-after"),o.createElement("span",{className:i.trim()},a?o.createElement(a,{event:r,day:e,label:s}):s)},y=function(){if(v.current){var e=p.current,t=v.current.firstChild;if(t){var n=m.current.scrollHeight>m.current.clientHeight,r=[],o=r;r=[UNe(t.children[0]),UNe(t.children[1])],o[0]===r[0]&&o[1]===r[1]||(f.current.style.width=r[0]+"px",h.current.style.width=r[1]+"px"),n?(mx(e,"rbc-header-overflowing"),e.style.marginRight=qNe()+"px"):gx(e,"rbc-header-overflowing")}}},b=l.messages,x=l.add(r,s,"day"),w=l.range(r,x,"day");return(i=i.filter((function(e){return sHe(e,l.startOf(r,"day"),l.endOf(x,"day"),t,l)}))).sort((function(e,n){return+t.start(e)-+t.start(n)})),o.createElement("div",{className:"rbc-agenda-view"},0!==i.length?o.createElement(o.Fragment,null,o.createElement("table",{ref:p,className:"rbc-agenda-table"},o.createElement("thead",null,o.createElement("tr",null,o.createElement("th",{className:"rbc-header",ref:f},b.date),o.createElement("th",{className:"rbc-header",ref:h},b.time),o.createElement("th",{className:"rbc-header"},b.event)))),o.createElement("div",{className:"rbc-agenda-content",ref:m},o.createElement("table",{className:"rbc-agenda-table"},o.createElement("tbody",{ref:v},w.map((function(e,r){return function(e,r,i){var s=n.event,p=n.date;return(r=r.filter((function(n){return sHe(n,l.startOf(e,"day"),l.endOf(e,"day"),t,l)}))).map((function(n,f){var h=t.title(n),m=t.end(n),v=t.start(n),y=a.eventProp(n,v,m,zze(n,d)),b=0===f&&l.format(e,"agendaDateFormat"),x=0===f&&o.createElement("td",{rowSpan:r.length,className:"rbc-agenda-date-cell"},p?o.createElement(p,{day:e,label:b}):b);return o.createElement("tr",{key:i+"_"+f,className:y.className,style:y.style},x,o.createElement("td",{className:"rbc-agenda-time-cell"},g(e,n)),o.createElement("td",{className:"rbc-agenda-event-cell",onClick:function(e){return u&&u(n,e)},onDoubleClick:function(e){return c&&c(n,e)}},s?o.createElement(s,{event:n,title:h}):h))}),[])}(e,i,r)})))))):o.createElement("span",{className:"rbc-agenda-empty"},b.noEventsInRange))}XHe.defaultProps=WHe.defaultProps,XHe.range=KHe,XHe.navigate=GHe.navigate,XHe.title=function(e,t){var n=t.localizer,r=wT(KHe(e,{localizer:n})),o=r[0],i=r.slice(1);return n.format({start:o,end:i.pop()},"dayRangeHeaderFormat")},QHe.defaultProps={length:30},QHe.range=function(e,t){var n=t.length,r=void 0===n?QHe.defaultProps.length:n;return{start:e,end:t.localizer.add(e,r,"day")}},QHe.navigate=function(e,t,n){var r=n.length,o=void 0===r?QHe.defaultProps.length:r,i=n.localizer;switch(t){case lze:return i.add(e,-o,"day");case cze:return i.add(e,o,"day");default:return e}},QHe.title=function(e,t){var n=t.length,r=void 0===n?QHe.defaultProps.length:n,o=t.localizer,i=o.add(e,r,"day");return o.format({start:e,end:i},"agendaHeaderFormat")};var $He=(JHe={},(0,t.Z)(JHe,pze.MONTH,wHe),(0,t.Z)(JHe,pze.WEEK,GHe),(0,t.Z)(JHe,pze.WORK_WEEK,XHe),(0,t.Z)(JHe,pze.DAY,UHe),(0,t.Z)(JHe,pze.AGENDA,QHe),JHe),eWe=["action","date","today"];function tWe(e,t){var n=t.action,r=t.date,o=t.today,i=Nn(t,eWe);switch(e="string"===typeof e?$He[e]:e,n){case uze:r=o||new Date;break;case dze:break;default:rt()(e&&"function"===typeof e.navigate,"Calendar View components must implement a static `.navigate(date, action)` method.s"),r=e.navigate(r,n,i)}return r}var nWe=function(e){(0,qF.Z)(n,e);var t=(0,GF.Z)(n);function n(){var e;(0,Ph.Z)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).navigate=function(t){e.props.onNavigate(t)},e.view=function(t){e.props.onView(t)},e}return(0,Dh.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.localizer.messages,n=e.label;return o.createElement("div",{className:"rbc-toolbar"},o.createElement("span",{className:"rbc-btn-group"},o.createElement("button",{type:"button",onClick:this.navigate.bind(null,uze)},t.today),o.createElement("button",{type:"button",onClick:this.navigate.bind(null,lze)},t.previous),o.createElement("button",{type:"button",onClick:this.navigate.bind(null,cze)},t.next)),o.createElement("span",{className:"rbc-toolbar-label"},n),o.createElement("span",{className:"rbc-btn-group"},this.viewNamesGroup(t)))}},{key:"viewNamesGroup",value:function(e){var t=this,n=this.props.views,r=this.props.view;if(n.length>1)return n.map((function(n){return o.createElement("button",{type:"button",key:n,className:(0,y.default)({"rbc-active":r===n}),onClick:t.view.bind(null,n)},e[n])}))}}]),n}(o.Component);var rWe=function(e){return function(t){return function(e,t){var n=null;return"function"===typeof t?n=t(e):"string"===typeof t&&"object"===(0,mbe.Z)(e)&&null!=e&&t in e&&(n=e[t]),n}(t,e)}},oWe=["view","date","getNow","onNavigate"],iWe=["view","toolbar","events","backgroundEvents","style","className","elementProps","date","getNow","length","showMultiDayTimes","onShowMore","doShowMoreDrillDown","components","formats","messages","culture"];function aWe(e){return Array.isArray(e)?e:Object.keys(e)}function sWe(e,t){return-1!==aWe(t.views).indexOf(e)}var lWe=function(e){(0,qF.Z)(n,e);var t=(0,GF.Z)(n);function n(){var e;(0,Ph.Z)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).getViews=function(){var t=e.props.views;return Array.isArray(t)?ize(t,(function(e,t){return e[t]=$He[t]}),{}):"object"===(0,mbe.Z)(t)?aze(t,(function(e,t){return!0===e?$He[t]:e})):$He},e.getView=function(){return e.getViews()[e.props.view]},e.getDrilldownView=function(t){var n=e.props,r=n.view,o=n.drilldownView,i=n.getDrilldownView;return i?i(t,r,Object.keys(e.getViews())):o},e.handleRangeChange=function(t,n,r){var o=e.props,i=o.onRangeChange,a=o.localizer;i&&n.range&&i(n.range(t,{localizer:a}),r)},e.handleNavigate=function(t,n){var r=e.props,o=r.view,i=r.date,a=r.getNow,s=r.onNavigate,c=Nn(r,oWe),u=e.getView(),d=a();s(i=tWe(u,(0,l.Z)((0,l.Z)({},c),{},{action:t,date:n||i||d,today:d})),o,t),e.handleRangeChange(i,u)},e.handleViewChange=function(t){t!==e.props.view&&sWe(t,e.props)&&e.props.onView(t);var n=e.getViews();e.handleRangeChange(e.props.date||e.props.getNow(),n[t],t)},e.handleSelectEvent=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];hze(e.props.onSelectEvent,n)},e.handleDoubleClickEvent=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];hze(e.props.onDoubleClickEvent,n)},e.handleKeyPressEvent=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];hze(e.props.onKeyPressEvent,n)},e.handleSelectSlot=function(t){hze(e.props.onSelectSlot,t)},e.handleDrillDown=function(t,n){var r=e.props.onDrillDown;r?r(t,n,e.drilldownView):(n&&e.handleViewChange(n),e.handleNavigate(dze,t))},e.state={context:e.getContext(e.props)},e}return(0,Dh.Z)(n,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.setState({context:this.getContext(e)})}},{key:"getContext",value:function(e){var t=e.startAccessor,n=e.endAccessor,r=e.allDayAccessor,o=e.tooltipAccessor,i=e.titleAccessor,a=e.resourceAccessor,s=e.resourceIdAccessor,c=e.resourceTitleAccessor,u=e.eventPropGetter,d=e.backgroundEventPropGetter,p=e.slotPropGetter,f=e.slotGroupPropGetter,h=e.dayPropGetter,m=e.view,v=e.views,g=e.localizer,y=e.culture,b=e.messages,x=void 0===b?{}:b,w=e.components,C=void 0===w?{}:w,j=e.formats,S=void 0===j?{}:j,k=aWe(v);return{viewNames:k,localizer:Bze(g,y,S,function(e){return(0,l.Z)((0,l.Z)({},Lze),e)}(x)),getters:{eventProp:function(){return u&&u.apply(void 0,arguments)||{}},backgroundEventProp:function(){return d&&d.apply(void 0,arguments)||{}},slotProp:function(){return p&&p.apply(void 0,arguments)||{}},slotGroupProp:function(){return f&&f.apply(void 0,arguments)||{}},dayProp:function(){return h&&h.apply(void 0,arguments)||{}}},components:oze(C[m]||{},eze(C,k),{eventWrapper:sze,backgroundEventWrapper:sze,eventContainerWrapper:sze,dateCellWrapper:sze,weekWrapper:sze,timeSlotWrapper:sze}),accessors:{start:rWe(t),end:rWe(n),allDay:rWe(r),tooltip:rWe(o),title:rWe(i),resource:rWe(a),resourceId:rWe(s),resourceTitle:rWe(c)}}}},{key:"render",value:function(){var e=this.props,t=e.view,n=e.toolbar,r=e.events,i=e.backgroundEvents,a=e.style,s=e.className,l=e.elementProps,c=e.date,u=e.getNow,d=e.length,p=e.showMultiDayTimes,f=e.onShowMore,h=e.doShowMoreDrillDown;e.components,e.formats,e.messages,e.culture;var m=Nn(e,iWe);c=c||u();var v=this.getView(),g=this.state.context,b=g.accessors,x=g.components,w=g.getters,C=g.localizer,j=g.viewNames,S=x.toolbar||nWe,k=v.title(c,{localizer:C,length:d});return o.createElement("div",Object.assign({},l,{className:(0,y.default)(s,"rbc-calendar",m.rtl&&"rbc-rtl"),style:a}),n&&o.createElement(S,{date:c,view:t,views:j,label:k,onView:this.handleViewChange,onNavigate:this.handleNavigate,localizer:C}),o.createElement(v,Object.assign({},m,{events:r,backgroundEvents:i,date:c,getNow:u,length:d,localizer:C,getters:w,components:x,accessors:b,showMultiDayTimes:p,getDrilldownView:this.getDrilldownView,onNavigate:this.handleNavigate,onDrillDown:this.handleDrillDown,onSelectEvent:this.handleSelectEvent,onDoubleClickEvent:this.handleDoubleClickEvent,onKeyPressEvent:this.handleKeyPressEvent,onSelectSlot:this.handleSelectSlot,onShowMore:f,doShowMoreDrillDown:h})))}}]),n}(o.Component);lWe.defaultProps={events:[],backgroundEvents:[],elementProps:{},popup:!1,toolbar:!0,view:pze.MONTH,views:[pze.MONTH,pze.WEEK,pze.DAY,pze.AGENDA],step:30,length:30,doShowMoreDrillDown:!0,drilldownView:pze.DAY,titleAccessor:"title",tooltipAccessor:"title",allDayAccessor:"allDay",startAccessor:"start",endAccessor:"end",resourceAccessor:"resourceId",resourceIdAccessor:"id",resourceTitleAccessor:"title",longPressThreshold:250,getNow:function(){return new Date},dayLayoutAlgorithm:"overlap"};var cWe=function e(t,n,i){void 0===i&&(i=[]);var a,s=t.displayName||t.name||"Component",l=!!(a=t)&&("function"!==typeof a||a.prototype&&a.prototype.isReactComponent),c=Object.keys(n),u=c.map(OTe);!l&&i.length&&rt()(!1);var d=function(e){function a(){for(var t,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];(t=e.call.apply(e,[this].concat(a))||this).handlers=Object.create(null),c.forEach((function(e){var o=n[e];t.handlers[o]=function(n){if(t.props[o]){var i;t._notifying=!0;for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];(i=t.props)[o].apply(i,[n].concat(s)),t._notifying=!1}t.unmounted||t.setState((function(t){var o,i=t.values;return{values:(0,r.Z)(Object.create(null),i,(o={},o[e]=n,o))}}))}})),i.length&&(t.attachRef=function(e){t.inner=e});var l=Object.create(null);return c.forEach((function(e){l[e]=t.props[OTe(e)]})),t.state={values:l,prevProps:{}},t}(0,hx.Z)(a,e);var s=a.prototype;return s.shouldComponentUpdate=function(){return!this._notifying},a.getDerivedStateFromProps=function(e,t){var n=t.values,o=t.prevProps,i={values:(0,r.Z)(Object.create(null),n),prevProps:{}};return c.forEach((function(t){i.prevProps[t]=e[t],!ZTe(e,t)&&ZTe(o,t)&&(i.values[t]=e[OTe(t)])})),i},s.componentWillUnmount=function(){this.unmounted=!0},s.render=function(){var e=this,n=this.props,i=n.innerRef,a=(0,b.Z)(n,["innerRef"]);u.forEach((function(e){delete a[e]}));var s={};return c.forEach((function(t){var n=e.props[t];s[t]=void 0!==n?n:e.state.values[t]})),o.createElement(t,(0,r.Z)({},a,s,this.handlers,{ref:i||this.attachRef}))},a}(o.Component);(0,ETe.polyfill)(d),d.displayName="Uncontrolled("+s+")",d.propTypes=(0,r.Z)({innerRef:function(){}},function(e,t){var n={};return Object.keys(e).forEach((function(e){n[OTe(e)]=kTe})),n}(n)),i.forEach((function(e){d.prototype[e]=function(){var t;return(t=this.inner)[e].apply(t,arguments)}}));var p=d;return o.forwardRef&&((p=o.forwardRef((function(e,t){return o.createElement(d,(0,r.Z)({},e,{innerRef:t,__source:{fileName:"/Users/jquense/src/uncontrollable/src/uncontrollable.js",lineNumber:128},__self:this}))}))).propTypes=d.propTypes),p.ControlledComponent=t,p.deferControlTo=function(t,o,i){return void 0===o&&(o={}),e(t,(0,r.Z)({},n,o),i)},p}(lWe,{view:"onView",date:"onNavigate",selected:"onSelectEvent"});var uWe,dWe=function(e,t,n){var r=e.start,o=e.end;return"".concat(n.format(r,"p",t)," \u2013 ").concat(n.format(o,"p",t))},pWe={dateFormat:"dd",dayFormat:"dd eee",weekdayFormat:"cccc",selectRangeFormat:dWe,eventTimeRangeFormat:dWe,eventTimeRangeStartFormat:function(e,t,n){var r=e.start;return"".concat(n.format(r,"h:mma",t)," \u2013 ")},eventTimeRangeEndFormat:function(e,t,n){var r=e.end;return" \u2013 ".concat(n.format(r,"h:mma",t))},timeGutterFormat:"p",monthHeaderFormat:"MMMM yyyy",dayHeaderFormat:"cccc MMM dd",dayRangeHeaderFormat:function(e,t,n){var r=e.start,o=e.end;return"".concat(n.format(r,"MMMM dd",t)," \u2013 ").concat(n.format(o,qTe(r,o,"month")?"dd":"MMMM dd",t))},agendaHeaderFormat:function(e,t,n){var r=e.start,o=e.end;return"".concat(n.format(r,"P",t)," \u2013 ").concat(n.format(o,"P",t))},agendaDateFormat:"ccc MMM dd",agendaTimeFormat:"p",agendaTimeRangeFormat:dWe};function fWe(e){(0,Th.Z)(1,arguments);var t=(0,Mh.Z)(e),n=t.getDay();return n}var hWe=["title","titleId"];function mWe(){return mWe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mWe.apply(this,arguments)}function vWe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function gWe(e,t){var n=e.title,r=e.titleId,i=vWe(e,hWe);return o.createElement("svg",mWe({width:19,height:20,viewBox:"0 0 19 20",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,uWe||(uWe=o.createElement("path",{d:"M5.00598 0.552368C4.45368 0.552368 4.00598 1.00037 4.00598 1.55237C1.79688 1.55237 0.00588145 3.34337 0.00598145 5.55237V15.5524C0.00598145 17.7614 1.79688 19.5524 4.00598 19.5524H14.006C16.2152 19.5524 18.0061 17.7614 18.006 15.5524V5.55237C18.006 3.34337 16.2152 1.55237 14.006 1.55237C14.006 1.00037 13.5583 0.552368 13.006 0.552368C12.4537 0.552368 12.006 1.00037 12.006 1.55237H6.00598C6.00598 1.00037 5.55828 0.552368 5.00598 0.552368ZM12.006 5.55237H13.006C13.5583 5.55237 14.006 6.00037 14.006 6.55237V7.55237C14.006 8.10437 13.5583 8.55237 13.006 8.55237H12.006C11.4537 8.55237 11.006 8.10437 11.006 7.55237V6.55237C11.006 6.00037 11.4537 5.55237 12.006 5.55237Z",fill:"current"})))}var yWe,bWe=o.forwardRef(gWe),xWe=(n.p,["title","titleId"]);function wWe(){return wWe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wWe.apply(this,arguments)}function CWe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function jWe(e,t){var n=e.title,r=e.titleId,i=CWe(e,xWe);return o.createElement("svg",wWe({width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,yWe||(yWe=o.createElement("path",{d:"M7.22355 0.370117C3.54168 0.370117 0.556885 3.35478 0.556885 7.03678C0.556885 10.7188 3.54168 13.7034 7.22355 13.7034C10.9056 13.7034 13.8902 10.7188 13.8902 7.03678C13.8902 3.35478 10.9056 0.370117 7.22355 0.370117ZM5.22355 4.37012C5.39408 4.37012 5.57255 4.42745 5.70275 4.55745L7.22355 6.07811L8.74422 4.55745C8.87488 4.42745 9.05289 4.37012 9.22355 4.37012C9.39422 4.37012 9.57222 4.42745 9.70289 4.55745C9.96289 4.81812 9.96289 5.25545 9.70289 5.51611L8.18222 7.03678L9.70289 8.55745C9.96289 8.81812 9.96289 9.25545 9.70289 9.51611C9.44222 9.77611 9.00488 9.77611 8.74422 9.51611L7.22355 7.99545L5.70275 9.51611C5.44242 9.77611 5.00475 9.77611 4.74435 9.51611C4.48402 9.25545 4.48402 8.81812 4.74435 8.55745L6.26488 7.03678L4.74435 5.51611C4.48402 5.25545 4.48402 4.81812 4.74435 4.55745C4.87462 4.42745 5.05295 4.37012 5.22355 4.37012Z",fill:"#FF4085"})))}var SWe,kWe=o.forwardRef(jWe),ZWe=(n.p,["title","titleId"]);function OWe(){return OWe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OWe.apply(this,arguments)}function EWe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function DWe(e,t){var n=e.title,r=e.titleId,i=EWe(e,ZWe);return o.createElement("svg",OWe({width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,SWe||(SWe=o.createElement("path",{d:"M7.23368 0.251953C3.55168 0.251953 0.567017 3.23662 0.567017 6.91861C0.567017 10.6006 3.55168 13.5853 7.23368 13.5853C10.9157 13.5853 13.9003 10.6006 13.9003 6.91861C13.9003 3.23662 10.9157 0.251953 7.23368 0.251953ZM9.90034 4.91861C10.071 4.91861 10.249 4.97595 10.3797 5.10595C10.6397 5.36662 10.6397 5.80394 10.3797 6.06461L7.87967 8.54393C7.11234 9.3106 5.93968 9.19595 5.33768 8.29328L4.67102 7.29328C4.46702 6.98728 4.55234 6.56061 4.859 6.35595C5.165 6.15195 5.59167 6.23727 5.79634 6.54394L6.46301 7.54393C6.59767 7.74593 6.77035 7.77795 6.94168 7.60595L9.42101 5.10595C9.55168 4.97595 9.72967 4.91861 9.90034 4.91861Z",fill:"#34A854"})))}var PWe,AWe=o.forwardRef(DWe),MWe=(n.p,["title","titleId"]);function TWe(){return TWe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TWe.apply(this,arguments)}function IWe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function RWe(e,t){var n=e.title,r=e.titleId,i=IWe(e,MWe);return o.createElement("svg",TWe({width:14,height:15,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,PWe||(PWe=o.createElement("path",{d:"M7.23368 0.76123C3.55182 0.76123 0.567017 3.74589 0.567017 7.42789C0.567017 11.1099 3.55182 14.0945 7.23368 14.0945C10.9155 14.0945 13.9003 11.1099 13.9003 7.42789C13.9003 3.74589 10.9155 0.76123 7.23368 0.76123Z",fill:"#A5AAB9"})))}var FWe=o.forwardRef(RWe),BWe=(n.p,new Map([[!0,(0,u.jsx)(AWe,{})],[!1,(0,u.jsx)(kWe,{})],[null,(0,u.jsx)(FWe,{})]])),LWe=new Map([[Kt.JN.Milestone,"Milestone deadline"],[Kt.JN.Task,"Task deadline"],[Kt.JN.Subtask,"Subtask deadline"],[Kt.JN.Payment,"Payment deadline"]]),NWe=function(e){return(0,vm.Z)(new Date(e),"MMMM dd")},_We=function(e){return(0,vm.Z)(new Date(e),"HH:mm b")},zWe=function(e){return(0,vm.Z)(new Date(e),"O")};function HWe(e){var t=e.event,n=e.open,r=e.onClose,i=e.openEditModal,a=e.openDeleteModal,s=(0,o.useState)(!1),l=(0,Le.Z)(s,2),c=l[0],d=(l[1],t.type===Kt.JN.Event);return(0,u.jsx)(ys,{open:n,onClose:r,paperStyleProps:{position:"relative"},children:d?(0,u.jsx)(VWe,{event:t,onClose:r,openEditModal:i,openDeleteModal:a,isTooltipOpen:c}):(0,u.jsx)(UWe,{event:t,onClose:r,isTooltipOpen:c})})}var WWe,VWe=function(e){var t,n,r=e.event,o=e.openEditModal,i=e.openDeleteModal,a=(e.isTooltipOpen,e.onClose);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(nn.Z,{direction:"row",spacing:2,sx:{position:"absolute",top:"1.3rem",right:"1.3rem"},children:[(0,u.jsx)(io.Z,{sx:{p:0},onClick:o,children:(0,u.jsx)(fSe,{fill:tr.IV[500]})}),(0,u.jsx)(io.Z,{sx:{p:0},onClick:i,children:(0,u.jsx)(bSe,{fill:tr.IV[500]})})]}),(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",children:[(0,u.jsx)(nn.Z,{p:1.8,mr:2,bgcolor:"secondaryBlue.100",borderRadius:1,justifyContent:"center",alignItems:"center",children:(0,u.jsx)(bWe,{width:"20px",fill:tr.dx[700]})}),(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(rn.Z,{variant:"heading5",children:r.name}),(0,u.jsxs)(nn.Z,{direction:"row",spacing:1,alignItems:"center",children:[(0,u.jsx)(rn.Z,{variant:"body2",color:"primaryDark.600",children:NWe(null===r||void 0===r?void 0:r.start)}),(0,u.jsx)(rn.Z,{variant:"body1",color:"primaryDark.500",px:1,children:"\u2022"}),(0,u.jsxs)(rn.Z,{variant:"body2",color:"primaryDark.600",children:[_We(null===r||void 0===r?void 0:r.start)," -",_We(null===r||void 0===r?void 0:r.end)]}),(0,u.jsx)(rn.Z,{component:"div",variant:"heading4",color:"secondaryBlue.500",sx:{backgroundColor:"primaryDark.200",p:"6px",borderRadius:"4px"},children:zWe(null===r||void 0===r?void 0:r.start)})]})]})]}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsxs)(rn.Z,{variant:"heading5",color:"primaryDark.500",children:[null===(t=r.attendees)||void 0===t?void 0:t.length," participants"]}),null===(n=r.attendees)||void 0===n?void 0:n.map((function(e){return(0,u.jsxs)(nn.Z,{direction:"row",spacing:1.5,alignItems:"center",children:[BWe.get(e.attending),(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.500",children:"".concat(e.user.firstName," ").concat(e.user.lastName)})]})}))]}),(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsxs)(nn.Z,{spacing:1,children:[(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.500",children:"Description"}),(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.600",children:r.description.length?r.description:"---"})]}),(0,u.jsx)(un,{}),(0,u.jsx)(nn.Z,{direction:"row",justifyContent:"end",children:(0,u.jsx)(Wo,{variant:"secondary",onClick:a,children:"Close"})})]})]})]})},UWe=function(e){var t=e.event,n=e.onClose;return(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",children:[(0,u.jsx)(nn.Z,{p:1.8,mr:2,bgcolor:"secondaryBlue.100",borderRadius:1,justifyContent:"center",alignItems:"center",children:(0,u.jsx)(bWe,{width:"20px",fill:tr.dx[700]})}),(0,u.jsxs)(nn.Z,{spacing:1,children:[(0,u.jsx)(rn.Z,{variant:"heading5",children:LWe.get(t.type)}),(0,u.jsx)(rn.Z,{variant:"body2",color:"primaryDark.600",children:NWe(null===t||void 0===t?void 0:t.end)})]})]}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsx)(Cme,{variant:"heading5",color:"primaryDark.600",resource:"projects",id:null===t||void 0===t?void 0:t.project,displayName:"name"}),(0,u.jsx)(rn.Z,{variant:"body2",color:"primaryDark.500",children:"".concat(t.name," is due for completion")})]}),(0,u.jsx)(un,{}),(0,u.jsx)(nn.Z,{direction:"row",justifyContent:"end",children:(0,u.jsx)(Wo,{variant:"secondary",onClick:n,children:"Close"})})]})},qWe=function(e){var t=e.open,n=e.onCancel,r=e.event,o=(0,Ms.J)(),i=zk({resource:"/events"}).mutate;return(0,u.jsx)(ys,{open:t,width:"40%",children:(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",children:[(0,u.jsx)(nn.Z,{width:40,height:40,mr:2,bgcolor:"secondaryBlue.100",borderRadius:1,justifyContent:"center",alignItems:"center",children:(0,u.jsx)(bSe,{width:"20px",fill:tr.dx[700],height:"20px"})}),(0,u.jsx)(rn.Z,{variant:"heading5",children:"Delete Event"})]}),(0,u.jsx)(un,{}),(0,u.jsx)(rn.Z,{pt:1,pb:1,variant:"body3",children:"Are you sure you want to delete the event?"}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{direction:"row",sx:{justifyContent:"right"},spacing:2,children:[(0,u.jsx)(Wo,{variant:"secondary",onClick:n,children:"Cancel"}),(0,u.jsx)(Wo,{onClick:function(){i({id:r.id},{onSuccess:function(){n(),o()}})},children:"Confirm"})]})]})})},GWe=["title","titleId"];function YWe(){return YWe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YWe.apply(this,arguments)}function KWe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function JWe(e,t){var n=e.title,r=e.titleId,i=KWe(e,GWe);return o.createElement("svg",YWe({width:8,height:13,viewBox:"0 0 8 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,WWe||(WWe=o.createElement("path",{d:"M7.41 1.91L2.83 6.5L7.41 11.09L6 12.5L0 6.5L6 0.5L7.41 1.91Z",fill:"#79829B"})))}var XWe,QWe=o.forwardRef(JWe),$We=(n.p,["title","titleId"]);function eVe(){return eVe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eVe.apply(this,arguments)}function tVe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function nVe(e,t){var n=e.title,r=e.titleId,i=tVe(e,$We);return o.createElement("svg",eVe({width:8,height:13,viewBox:"0 0 8 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,XWe||(XWe=o.createElement("path",{d:"M-8.7738e-05 11.09L4.57991 6.5L-8.7738e-05 1.91L1.40991 0.5L7.40991 6.5L1.40991 12.5L-8.7738e-05 11.09Z",fill:"#79829B"})))}var rVe=o.forwardRef(nVe),oVe=(n.p,function(e){var t=e.onNavigate,n=e.label,r=(e.date,e.onView),o=e.view,i=function(e){return e===o?{color:"primaryLight.500",boxShadow:"6px 6px 15px rgba(56, 69, 114, 0.1)"}:{color:"primaryDark.500",boxShadow:"none"}};return(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",p:2,px:3,children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:2,children:[(0,u.jsx)(io.Z,{sx:{border:"1px solid",borderColor:"primaryDark.300",width:"1.8rem",height:"1.8rem"},onClick:function(){return t(lze)},children:(0,u.jsx)(QWe,{})}),(0,u.jsx)(rn.Z,{variant:"heading3",color:"primaryDark.600",children:n}),(0,u.jsx)(io.Z,{sx:{border:"1px solid",borderColor:"primaryDark.300",width:"1.8rem",height:"1.8rem"},onClick:function(){return t(cze)},children:(0,u.jsx)(rVe,{})})]}),(0,u.jsx)(Wo,{sx:{minWidth:"0px",ml:1},variant:"primaryText",onClick:function(){return t(uze)},children:"TODAY"})]}),(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",mb:1,children:[(0,u.jsx)(Wo,{sx:(0,l.Z)({minWidth:"0px",borderRadius:"4px 0px 0px 4px",padding:"0 1.5rem",height:"2.4rem",borderRight:"none"},i(pze.MONTH)),variant:"secondary",onClick:function(){return r(pze.MONTH)},children:"Month"}),(0,u.jsx)(Wo,{sx:(0,l.Z)({minWidth:"0px",borderRadius:"0px",padding:"0 1.5rem",height:"2.4rem",borderRight:"none"},i(pze.WEEK)),variant:"secondary",onClick:function(){return r(pze.WEEK)},children:"week"}),(0,u.jsx)(Wo,{sx:(0,l.Z)({minWidth:"0px",borderRadius:"0px",padding:"0 1.5rem",height:"2.4rem",borderRight:"none"},i(pze.DAY)),variant:"secondary",onClick:function(){return r(pze.DAY)},children:"day"}),(0,u.jsx)(Wo,{sx:(0,l.Z)({minWidth:"0px",borderRadius:"0px 4px 4px 0px",padding:"0 1.5rem",height:"2.4rem"},i(pze.AGENDA)),variant:"secondary",onClick:function(){return r(pze.AGENDA)},children:"agenda"})]})]})}),iVe=new Map([[Kt.JN.Event,tr.so],[Kt.JN.Milestone,tr.dx],[Kt.JN.Payment,tr.dx],[Kt.JN.Task,tr.dx],[Kt.JN.Subtask,tr.dx]]),aVe=function(e){var t,n,r,o,i=e.title,a=e.event;return(0,u.jsx)(NZ,{sx:{margin:"0 1",background:null===(t=iVe.get(null!==(n=a.type)&&void 0!==n?n:Kt.JN.Event))||void 0===t?void 0:t[100],color:null===(r=iVe.get(null!==(o=a.type)&&void 0!==o?o:Kt.JN.Event))||void 0===r?void 0:r[700],p:"0.2rem 0.6rem"},elevation:0,children:(0,u.jsx)(rn.Z,{variant:"body3",overflow:"hidden",textOverflow:"ellipsis",width:"100%",display:"block",children:i})})},sVe=function(e){var t=e.event,n=t.type===Kt.JN.Event;return(0,u.jsxs)(nn.Z,{sx:{background:"none",minWidth:"100%",p:1},direction:"column",children:[(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.600",children:n?"".concat((0,rs.FG)(t.start)," - ").concat((0,rs.FG)(t.end)):(0,rs.FG)(t.end)}),(0,u.jsx)(rn.Z,{variant:"body4",color:"primaryDark.600",children:t.name})]})},lVe=function(e){var t=e.event,n=t.type===Kt.JN.Event;return(0,u.jsxs)(nn.Z,{sx:{background:"none",minWidth:"20%",p:1},direction:"column",children:[(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.600",children:n?"".concat((0,rs.FG)(t.start)," - ").concat((0,rs.FG)(t.end)):(0,rs.FG)(t.end)}),(0,u.jsx)(rn.Z,{variant:"body4",color:"primaryDark.600",children:t.name})]})},cVe=new Map([[Kt.JN.Event,tr.so],[Kt.JN.Milestone,tr.dx],[Kt.JN.Payment,tr.dx],[Kt.JN.Task,tr.dx],[Kt.JN.Subtask,tr.dx]]),uVe=function(e){var t,n,r,o,i=e.title,a=e.event;return(0,u.jsx)(NZ,{sx:{m:.4,background:null===(t=cVe.get(null!==(n=a.type)&&void 0!==n?n:Kt.JN.Event))||void 0===t?void 0:t[100],color:null===(r=cVe.get(null!==(o=a.type)&&void 0!==o?o:Kt.JN.Event))||void 0===r?void 0:r[700],p:"0.4rem 0.6rem"},elevation:0,children:(0,u.jsx)(rn.Z,{variant:"body3",overflow:"hidden",textOverflow:"ellipsis",width:"100%",display:"block",children:i})})},dVe=function(){var e={"en-US":Lm.Z},t=function(e){var t=e.startOfWeek,n=e.getDay,r=e.format,o=e.locales;return new Fze({formats:pWe,firstOfWeek:function(e){return n(t(new Date,{locale:o[e]}))},format:function(e,t,n){return r(new Date(e),t,{locale:o[n]})}})}({format:vm.Z,parse:Bv,startOfWeek:function(){return jm(new Date,{weekStartsOn:1})},getDay:fWe,locales:e}),n=(0,o.useState)(null),r=(0,Le.Z)(n,2),i=r[0],a=r[1],s=(0,o.useState)(!1),l=(0,Le.Z)(s,2),c=l[0],d=l[1],p=(0,o.useState)(!1),f=(0,Le.Z)(p,2),h=f[0],m=f[1],v=(0,o.useState)(void 0),g=(0,Le.Z)(v,2),y=g[0],b=g[1],x=(0,o.useState)(!1),w=(0,Le.Z)(x,2),C=w[0],j=w[1],S=(0,o.useState)(!0),k=(0,Le.Z)(S,2),Z=k[0],O=k[1],E=Xe({date:(new Date).toISOString(),viewType:"month"}),D=(0,Le.Z)(E,2),P=D[0],A=(D[1],Pa()),M=hi({resource:"/calendar/".concat((null===A||void 0===A?void 0:A.id)&&"?user=".concat(null===A||void 0===A?void 0:A.id)),refetchOnWindowFocus:!1}).data,T=(0,o.useCallback)((function(e){var t=e.start,n=e.end;a(null),m(!0),b({start:t,end:n})}),[]);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(p5,{screen:Kt.Cx.CaseStudyScreen}),i&&(0,u.jsx)(HWe,{onClose:function(){d(!1)},open:c,event:i,openEditModal:function(){m(!0),d(!1)},openDeleteModal:function(){j(!0),d(!1)}}),(0,u.jsx)(qWe,{open:C,event:i,onCancel:function(){j(!1),a(null)}}),(0,u.jsx)(eS,{eventEditDetails:i,start:null===y||void 0===y?void 0:y.start,end:null===y||void 0===y?void 0:y.end,open:h,onCancel:function(){m(!1),a(null)}}),(0,u.jsx)(cWe,{localizer:t,events:null===M||void 0===M?void 0:M.data.results,startAccessor:function(e){return e.type===Kt.JN.Event?new Date(e.start):new Date(e.end)},endAccessor:function(e){return new Date(e.end)},titleAccessor:"name",onSelectSlot:Z?function(){}:T,onView:function(e){return O("month"===e)},selectable:!Z,formats:{dayFormat:function(e,t,n){return n.format(e,"dd iiii")}},onSelectEvent:function(e){d(!0),a(e)},components:{toolbar:oVe,month:{event:aVe},week:{event:sVe},day:{event:lVe},agenda:{event:uVe}},defaultView:P.get("viewType"),defaultDate:P.get("date")})]})},pVe=function(){return(0,u.jsxs)(tn,{sx:{height:"500px"},children:[(0,u.jsx)(p5,{screen:Kt.Cx.Calendar}),(0,u.jsx)(dVe,{})]})},fVe=n(17557),hVe=n(38175),mVe=n(74266),vVe=n(15595),gVe=function(e){var t=(0,ze.s0)();return(0,u.jsxs)(NZ,{elevation:0,sx:{width:"50%",height:"100%",border:"1px solid",borderColor:"secondaryBlue.100",borderRadius:"8px",display:"flex",flexDirection:"column",alignItems:"center"},children:[(0,u.jsx)(ms,{direction:"row",pl:2,pr:2,minHeight:"30%",height:e.imgHeight||"30%",width:"100%",justifyContent:"space-evenly",sx:{backgroundColor:tr.dx[50]},children:(0,u.jsx)(da.Z,{component:"img",src:vVe,height:"100%",sx:{objectFit:"contain"}})}),(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.600",mt:2,children:"Find a seller for your digital project"}),(0,u.jsx)(Wo,{sx:{m:2},onClick:function(){return t("/dashboard/timed-projects/create")},variant:"primaryLight",startIcon:(0,u.jsx)(D0,{width:"20px",height:"20px"}),children:"new project"})]})},yVe=function(){var e=(0,ze.s0)();return(0,u.jsxs)(nn.Z,{direction:"row",spacing:3,maxHeight:"30%",width:"100%",children:[(0,u.jsxs)(NZ,{elevation:0,sx:{width:"50%",height:"100%",border:"1px solid",borderColor:"secondaryBlue.100",borderRadius:"8px",display:"flex",flexDirection:"column"},children:[(0,u.jsxs)(nn.Z,{direction:"row",pl:2,pr:2,minHeight:"30%",height:"30%",width:"100%",justifyContent:"space-evenly",sx:{backgroundColor:tr.dx[50]},children:[(0,u.jsx)(tn,{component:"img",src:fVe,height:"100%",width:"100%",sx:{objectFit:"contain"}}),(0,u.jsx)(tn,{component:"img",src:hVe,height:"100%",width:"100%",sx:{objectFit:"contain"}}),(0,u.jsx)(tn,{component:"img",src:mVe,height:"100%",width:"100%",sx:{objectFit:"contain"}})]}),(0,u.jsxs)(nn.Z,{pt:1.5,p:2,children:[(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.600",mb:.6,children:"How to hire"}),(0,u.jsx)(rn.Z,{variant:"body4",color:"primaryDark.600",children:"Click on create new project"}),(0,u.jsx)(rn.Z,{variant:"body4",color:"primaryDark.600",children:"Browse and select best pitches"}),(0,u.jsx)(rn.Z,{variant:"body4",color:"primaryDark.600",children:"Schedule meeting with sellers"}),(0,u.jsx)(rn.Z,{variant:"body4",color:"primaryDark.600",children:"Choose one seller for project"}),(0,u.jsx)(Wo,{onClick:function(){return e("/how-to-hire")},variant:"primaryText",endIcon:(0,u.jsx)(TR,{fill:tr.E4[500],width:"10px"}),disableRipple:!0,sx:{pt:1},children:"Learn more"})]})]}),(0,u.jsx)(gVe,{})]})},bVe=function(){var e,t=(0,ze.s0)(),n=Pa(),r=[{field:"status",headerName:"Status",flex:.2,renderCell:function(e){return(0,u.jsx)(EI,{text:e.value})}},{field:"name",headerName:"Name",flex:.3,renderCell:function(e){return(0,u.jsx)(rn.Z,{variant:"body2",fontWeight:600,sx:{color:"primaryDark.600"},children:e.value})}},{field:"published",headerName:"Published",flex:.15,renderCell:function(e){return(0,u.jsx)(rn.Z,{variant:"body2",children:(0,rs.qJ)(e.value,"/")})}},{field:"closed",headerName:"Closed",flex:.15,renderCell:function(e){return(0,u.jsx)(rn.Z,{variant:"body2",children:(0,rs.qJ)(e.value,"/")})}},{field:"pitchCount",headerName:"Pitches",flex:.15,renderCell:function(e){return(0,u.jsx)(rn.Z,{variant:"body2",children:e.value})}}],o=[{id:"timed-projects_all",title:"All"},{id:"timed-projects_active",title:"Active",search:{status:Kt.Tl.Active}},{id:"timed-projects_closed",title:"Closed",search:{status:Kt.Tl.Closed}},{id:"timed-projects_pending",title:"Pending",search:{status:Kt.Tl.Pending}},{id:"timed-projects_draft",title:"Draft",search:{status:Kt.Tl.Draft}}];return(0,u.jsxs)(nn.Z,{direction:"column",spacing:4,height:"100%",children:[(0,u.jsx)(p5,{screen:Kt.Cx.TimedProjectScreen}),(0,u.jsx)(yVe,{}),(0,u.jsx)(k2,{resource:"timed-projects",searchParams:{company:null===n||void 0===n||null===(e=n.membership)||void 0===e?void 0:e.company},columns:r,panelConfig:o,onRowClick:function(e){return t("./".concat(e.id))},autoHeight:!0,hideFooter:!0})]})},xVe=["name","required","label","field","params","labelAdornment","disabled"],wVe=function(e){var t,n,r=e.name,o=e.required,i=e.label,a=e.field,s=e.params,c=e.labelAdornment,d=e.disabled,p=Nn(e,xVe),f=(0,Xc().getFieldState)(r),h=f.error,m=null!==(t=f.error)&&void 0!==t&&null!==(n=t.message)&&void 0!==n&&n.length?"This field is required":"",v={bg:d?"primaryDark.150":h?"secondaryPink.100":"primaryLight.500",color:h?"secondaryPink.500":"primaryDark.300"},g={position:"relative",width:"calc(100% + 24px)",left:"-24px",backgroundColor:v.bg,padding:"24px 24px 40px 24px"},y={color:v.color,".MuiTypography-body2":{color:v.color}},b={backgroundColor:v.bg,border:"none",".MuiButtonBase-root":{display:"none"},".MuiInputBase-formControl":{color:h?"primaryDark.500":"primaryLight.100",border:"transparent",backgroundColor:"transparent","&:not(.Mui-disabled)":{"&:hover":{backgroundColor:v.bg}}},".Mui-focused":{borderColor:"transparent",boxShadow:"none"},input:{padding:"8px",fontSize:"28px",fontWeight:"600",pointerEvents:d?"none":"all"},".MuiFormHelperText-root":{marginLeft:0,boxShadow:"none !important",color:"secondaryPink.500",marginTop:"0 !important",lineHeight:1},fieldset:{border:"0 !important"}};return(0,u.jsxs)(tn,{sx:g,children:[i&&(0,u.jsx)(Cd,{text:i,adornment:c,required:o,sx:y}),(0,u.jsx)(nn.Z,{sx:(0,l.Z)({position:"relative"},b),children:(0,u.jsx)(xd.Z,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},p),s),a),{},{label:"",variant:"outlined",required:o,name:r,fullWidth:!0,InputProps:{disabled:d}}))}),h&&(0,u.jsx)(rn.Z,{color:"secondaryPink.500",variant:"body4",sx:{position:"absolute",bottom:"-28px"},children:m})]})},CVe=["name","label","required","labelAdornment","sx"];var jVe=function(e){var t=e.name,n=e.label,r=e.required,o=e.labelAdornment,i=e.sx,a=Nn(e,CVe),s=Xc().control;return(0,u.jsx)(du,{control:s,name:t,rules:r?{required:"This field is required"}:{required:!1},render:function(e){var s=e.field;return(0,u.jsx)(wVe,(0,l.Z)({label:n,field:s,name:t,required:r,labelAdornment:o,sx:(0,l.Z)({},i)},a))}})},SVe=function(){return(0,u.jsxs)(nn.Z,{direction:"column",spacing:5,children:[(0,u.jsx)(jVe,{label:"project name",name:"overview.name",placeholder:"Name",required:!0}),(0,u.jsx)(g$,{label:"company description",name:"overview.description",items:P$,required:!0})]})},kVe={name:"",description:""},ZVe=function(){var e=Xc(),n=e.setValue,r=e.watch,i=(0,o.useState)(kVe),a=(0,Le.Z)(i,2),s=a[0],c=a[1],d=(0,o.useState)(!1),p=(0,Le.Z)(d,2),f=p[0],h=p[1],m=r("about.competitors"),v=!(null===m||void 0===m||!m.length),g=function(e,n,r){var o=n.target.value,i=r&&!o.length,a=r&&o.length;c((0,l.Z)((0,l.Z)({},s),{},(0,t.Z)({},e,o))),i&&h(!0),a&&h(!1)};return(0,u.jsxs)(tn,{style:{display:"flex",maxHeight:"350px"},children:[(0,u.jsxs)(tn,{style:{flex:1,paddingRight:"24px"},children:[(0,u.jsx)(Cd,{sx:{marginBottom:"12px"},text:"Client competitors"}),(0,u.jsx)(Sd,{sx:{marginBottom:f?"6px":"12px"},name:"about.competitors.name",placeholder:"Company name",value:s.name,onChange:function(e){return g("name",e,!0)}}),f?(0,u.jsx)(rn.Z,{color:"secondaryPink.500",variant:"body4",sx:{display:"block",marginBottom:"24px"},children:"This field is required"}):null,(0,u.jsx)(Sd,{name:"about.competitors.description",placeholder:"Company description",value:s.description,onChange:function(e){return g("description",e)},multiline:!0,rows:3}),(0,u.jsx)(tn,{style:{display:"flex",justifyContent:"flex-end"},children:(0,u.jsx)(Wo,{sx:{margin:"12px 0","&:hover":{textDecoration:"none"}},variant:"primaryText",onClick:function(){s.name?(n("about.competitors",[].concat((0,dn.Z)(m),[s])),c(kVe)):h(!0)},children:"Add"})})]}),(0,u.jsx)(un,{orientation:"vertical",sx:{borderColor:"#E5E8FF"},flexItem:!0}),(0,u.jsx)(tn,{style:{flex:1,padding:"0 24px",overflowY:"scroll"},children:v&&m.map((function(e){return(0,u.jsxs)(tn,{sx:{margin:"0 0 28px 0"},children:[(0,u.jsxs)(tn,{sx:{position:"relative"},children:[(0,u.jsx)(rn.Z,{variant:"body2",color:"primaryDark.600",sx:{fontSize:"15px",fontFamily:"Gellix-SemiBold",margin:"0 0 4px 0",padding:"0 20px 0 0"},children:e.name}),(0,u.jsx)(X2,{onClick:function(){return n("about.competitors",m.filter((function(t){return t.name!==e.name})))},style:{position:"absolute",right:0,top:0,fill:"#A5AAB9",cursor:"pointer"}})]}),(0,u.jsx)(rn.Z,{variant:"body1",color:"primaryDark.600",sx:{fontSize:"14px"},children:e.description})]},e.name)}))})]})},OVe=function(){return(0,u.jsxs)(nn.Z,{direction:"column",spacing:5,children:[(0,u.jsx)(g$,{label:"project goals",name:"about.goals",items:P$,required:!0}),(0,u.jsxs)(tn,{sx:{display:"flex"},children:[(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Autocomplete,{}),sx:{flex:1,alignSelf:"flex-start"},label:"target market",placeholder:"Select Market",name:"about.targetMarkets",choices:Kt.NF,multiple:!0,withChips:!0,fullWidth:!0,required:!0}),(0,u.jsx)(un,{orientation:"vertical",sx:{borderColor:"#E5E8FF",margin:"0 24px"},flexItem:!0}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Autocomplete,{}),sx:{flex:1,alignSelf:"flex-start"},label:"industry",placeholder:"Select Industry",name:"about.industries",choices:Kt.lu,multiple:!0,withChips:!0,fullWidth:!0,required:!0})]}),(0,u.jsx)(g$,{label:"target audience",name:"about.audience",items:P$}),(0,u.jsx)(ZVe,{})]})},EVe=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],DVe=function(e){(0,qF.Z)(n,e);var t=(0,GF.Z)(n);function n(){var e;(0,Ph.Z)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).getWeekdays=function(){return EVe},e}return(0,Dh.Z)(n)}(vg),PVe={".MuiDateCalendar-root":{boxShadow:"1px 10px 30px rgba(56, 69, 114, 0.1)",borderRadius:"16px"},".MuiDayCalendar-weekDayLabel":{color:"#79829B",fontFamily:"Gellix-SemiBold"},".MuiPickersDay-root":{fontSize:"14px",fontFamily:"Gellix-SemiBold",color:"primaryDark.600"},".MuiPickersDay-dayOutsideMonth":{color:"#BFC6D7 !important"},".MuiPickersCalendarHeader-label":{fontSize:"16px"},".Mui-selected":{backgroundColor:"#E3DBFC !important",color:"#000000 !important","&:hover":{backgroundColor:"#E3DBFC !important"}},".MuiPickersDay-today":{color:"#6D51F6",border:"none !important"}};var AVe=function(e){var t=Object.assign({},e),n="string"===typeof t.value?Yv(t.value):t.value;return(0,u.jsx)(Eh,{dateAdapter:DVe,children:(0,u.jsx)(tn,{sx:(0,l.Z)({},PVe),children:(0,u.jsx)(Mw,(0,l.Z)((0,l.Z)({},t),{},{views:["day"],dayOfWeekFormatter:function(e){return e.toUpperCase()},showDaysOutsideCurrentMonth:!0,disablePast:!0,value:n}))})})},MVe=function(){var e=Xc(),t=e.control,n=e.setValue,r=e.watch,o=r("timeline.projectStart"),i=r("timeline.pitchDeadline");return(0,u.jsxs)(nn.Z,{flexDirection:"row",children:[(0,u.jsxs)(tn,{children:[(0,u.jsx)(Cd,{sx:{marginBottom:"16px"},text:"select pitch deadline",required:!0}),(0,u.jsx)(du,{name:"timeline.pitchDeadline",control:t,render:function(e){var t=e.field;return(0,u.jsx)(AVe,(0,l.Z)({sx:{marginBottom:"16px"},shouldDisableDate:function(e){return o&&e>o}},t))}}),(0,u.jsx)(FF,{name:"timeline.pitchDeadlineControl",label:"or",radio:{label:"I am flexible",config:{onClick:function(){return n("timeline.pitchDeadline",null)},checked:null===i}}})]}),(0,u.jsx)(un,{orientation:"vertical",sx:{borderColor:"#E5E8FF",margin:"0 24px"},flexItem:!0}),(0,u.jsxs)(tn,{children:[(0,u.jsx)(Cd,{sx:{marginBottom:"16px"},text:"select expected project start",required:!0}),(0,u.jsx)(du,{name:"timeline.projectStart",control:t,render:function(e){var t=e.field;return(0,u.jsx)(AVe,(0,l.Z)({sx:{marginBottom:"16px"},shouldDisableDate:function(e){return e<i}},t))}}),(0,u.jsx)(FF,{name:"timeline.projectStartControl",label:"or",radio:{label:"I am flexible",config:{onClick:function(){return n("timeline.projectStart",null)},checked:null===o}}})]})]})},TVe=function(){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(tn,{sx:{display:"flex"},children:[(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Autocomplete,{}),sx:{flex:1,alignSelf:"flex-start"},label:"required service",placeholder:"Select required skills",name:"skills.services",choices:Kt.Sj,multiple:!0,withChips:!0,fullWidth:!0,required:!0}),(0,u.jsx)(un,{orientation:"vertical",sx:{borderColor:"#E5E8FF",margin:"0 24px"},flexItem:!0}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Autocomplete,{}),sx:{flex:1,alignSelf:"flex-start"},label:"tech platforms",placeholder:"Select preferred platforms",name:"skills.platforms",choices:T$.VA,multiple:!0,withChips:!0,fullWidth:!0})]}),(0,u.jsxs)(tn,{sx:{display:"flex"},children:[(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Autocomplete,{}),sx:{mt:3,flex:1,alignSelf:"flex-start"},label:"tech tools",placeholder:"Select preferred software or tools",name:"skills.tools",choices:T$.oz,multiple:!0,withChips:!0,fullWidth:!0}),(0,u.jsx)(un,{orientation:"vertical",sx:{borderColor:"#E5E8FF",margin:"0 24px"},flexItem:!0}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Autocomplete,{}),sx:{mt:3,flex:1,alignSelf:"flex-start"},label:"programming languages",placeholder:"Select languages",name:"skills.languages",choices:T$.G3,multiple:!0,withChips:!0,fullWidth:!0})]}),(0,u.jsx)(un,{orientation:"horizontal",sx:{borderColor:"#E5E8FF",margin:"40px 0"},flexItem:!0}),(0,u.jsx)(FF,{name:"skills.providerScope",label:"select your preferred seller location:",options:T$.TQ,required:!0})]})},IVe=new Map([[!1,"One Time"],[!0,"Recurring"]]),RVe=function(e){e.type,Xc().getValues;return(0,u.jsxs)(tn,{sx:{position:"relative"},children:[(0,u.jsx)(Cd,{required:!0,text:"Maximum budget"}),(0,u.jsxs)(nn.Z,{direction:"row",maxHeight:"fit-content",children:[(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Select,{}),name:"budget.currency",choices:Kt.f,sx:{maxWidth:"fit-content"}}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Text,{}),name:"budget.budget",sx:{minHeight:"none",flex:1},type:"number",required:!0})]}),(0,u.jsx)(g$,{sx:{margin:"24px 0 24px 0"},label:"Budget description",name:"budget.budgetDescription",items:P$,required:!0}),(0,u.jsx)(un,{orientation:"horizontal",sx:{borderColor:"#E5E8FF",margin:"24px 0"},flexItem:!0}),(0,u.jsx)(FF,{name:"budget.recurring",label:"select your project type:",options:IVe,required:!0})]})},FVe=function(e){var t=e.materials;return t.length?(0,u.jsx)(Xy.Z,{children:t.map((function(e){return(0,u.jsx)(L3,{component:"a",href:e.file||"",sx:{px:0},download:!0,children:(0,u.jsxs)(nn.Z,{children:[(0,u.jsxs)(nn.Z,{mb:.75,direction:"row",alignItems:"center",children:[(0,u.jsx)(tn,{width:10,height:10,sx:{border:"2px solid ".concat(tr.IV[300]),borderRadius:"50%",bgcolor:"primaryDark.500",mr:1.25}}),(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.600",children:e.fileName})]}),(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",pl:1.25,children:[(0,u.jsx)(tn,{component:"img",sx:{width:30,height:30},src:(0,rs.wQ)(null===e||void 0===e?void 0:e.file),mr:1.25}),(0,u.jsx)(rn.Z,{variant:"body3",fontWeight:"600",color:"primaryDark.600",children:e.fileName})]})]})})}))}):null},BVe={padding:"40px 24px",borderBottom:"1px solid #E5E8FF"},LVe=function(){var e=(0,Xc().getValues)(),t=e.overview,n=e.about,r=e.budget,o=e.materials;return(0,u.jsxs)(nn.Z,{sx:{background:"linear-gradient(240.98deg, rgba(230, 232, 255, 0.2) 0%, rgba(255, 234, 225, 0.2) 68.46%, rgba(255, 251, 234, 0.2) 99.58%);",border:"1px solid #E5E8FF",".ProseMirror":{padding:0,minHeight:"auto",color:tr.IV[600],lineHeight:"22px"}},children:[(0,u.jsx)(rn.Z,{sx:{padding:"24px 24px 0 24px"},variant:"heading1",color:"primaryDark.600",children:t.name}),(0,u.jsxs)(nn.Z,{sx:BVe,spacing:2,children:[(0,u.jsx)(BMe,{title:"company description",icon:(0,u.jsx)(bPe,{})}),(0,u.jsx)(m$,{items:[],isEditable:!1,content:t.description})]}),(0,u.jsxs)(nn.Z,{sx:BVe,direction:"row",spacing:2,children:[(0,u.jsxs)(nn.Z,{sx:{flex:"1"},spacing:2,children:[(0,u.jsx)(BMe,{title:"project goals",icon:(0,u.jsx)(XMe,{})}),(0,u.jsx)(m$,{items:[],isEditable:!1,content:n.goals})]}),n.audience&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(un,{orientation:"vertical",flexItem:!0}),(0,u.jsxs)(nn.Z,{sx:{flex:"1"},spacing:2,children:[(0,u.jsx)(BMe,{title:"target audience",icon:(0,u.jsx)(UMe,{})}),(0,u.jsx)(m$,{items:[],isEditable:!1,content:n.audience})]})]})]}),!!n.competitors.length&&(0,u.jsxs)(nn.Z,{sx:BVe,spacing:2,children:[(0,u.jsx)(BMe,{title:"main competitors",icon:(0,u.jsx)(cTe,{})}),(0,u.jsx)(NMe,{competitors:n.competitors})]}),(0,u.jsxs)(nn.Z,{sx:BVe,spacing:2,children:[(0,u.jsx)(BMe,{title:"budget description",icon:(0,u.jsx)(rTe,{})}),(0,u.jsx)(m$,{items:[],isEditable:!1,content:r.budgetDescription})]}),!!o.length&&(0,u.jsxs)(nn.Z,{sx:BVe,spacing:2,children:[(0,u.jsx)(BMe,{title:"materials",icon:(0,u.jsx)(LPe,{})}),(0,u.jsx)(FVe,{materials:o})]})]})},NVe={flexDirection:"row",justifyContent:"space-between",width:"auto",height:"auto",".MuiTypography-heading4":{fontSize:"12px"},".MuiTypography-heading3":{fontSize:"14px"}},_Ve={display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"8px",margin:"8px 0 0 0"},zVe=function(){var e,t=(0,Xc().getValues)(),n=t.budget,r=t.skills,o=t.timeline,i=t.about,a=n.recurring?"Recurring":"One time",s=T$.TQ.get(r.providerScope)||"",c=(null===(e=i.targetMarkets)||void 0===e?void 0:e.map((function(e){return Kt.NF.get(e)})))||[],d=i.industries.map((function(e){return Kt.lu.get(e)})),p=r.services.map((function(e){return Kt.Sj.get(e)})),f=r.platforms.map((function(e){return T$.VA.get(e)})),h=r.languages.map((function(e){return T$.G3.get(e)})),m=r.tools.map((function(e){return T$.oz.get(e)}));return(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(S3,{sx:(0,l.Z)((0,l.Z)({},NVe),{},{borderBottom:"1px solid #E5E8FF",borderBottomRightRadius:0,borderBottomLeftRadius:0}),variant:"start",text:"pitch deadline",date:o.pitchDeadline}),(0,u.jsx)(S3,{sx:(0,l.Z)((0,l.Z)({},NVe),{},{borderTopRightRadius:0,borderTopLeftRadius:0}),variant:"end",text:"project start",date:o.projectStart}),(0,u.jsxs)(tn,{sx:{".MuiStack-root":{padding:"16px",borderBottom:"1px solid #E5E8FF"},".MuiStack-root:nth-last-child(1)":{borderBottom:"none"}},children:[(0,u.jsx)(LMe,{label:"seller location",value:s}),(0,u.jsx)(LMe,{label:"project type",value:a}),(0,u.jsx)(LMe,{label:"budget",value:"$".concat(n.budget)}),!!c.length&&(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",sx:{fontSize:"12px"},children:"target market"}),(0,u.jsx)(tn,{sx:_Ve,children:c.map((function(e){return(0,u.jsx)(_d,{label:e})}))})]}),!!d.length&&(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",sx:{fontSize:"12px"},children:"industry"}),(0,u.jsx)(tn,{sx:_Ve,children:d.map((function(e){return(0,u.jsx)(_d,{label:e})}))})]}),!!p.length&&(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",sx:{fontSize:"12px"},children:"required services"}),(0,u.jsx)(tn,{sx:_Ve,children:p.map((function(e){return(0,u.jsx)(_d,{label:e})}))})]}),!!f.length&&(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",sx:{fontSize:"12px"},children:"tech platforms"}),(0,u.jsx)(tn,{sx:_Ve,children:f.map((function(e){return(0,u.jsx)(_d,{label:e})}))})]}),!!m.length&&(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",sx:{fontSize:"12px"},children:"tech tools"}),(0,u.jsx)(tn,{sx:_Ve,children:m.map((function(e){return(0,u.jsx)(_d,{label:e})}))})]}),!!h.length&&(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",sx:{fontSize:"12px"},children:"programming languages"}),(0,u.jsx)(tn,{sx:_Ve,children:h.map((function(e){return(0,u.jsx)(_d,{label:e})}))})]})]})]})},HVe=function(e){var n=e.resource,r=e.files,i=e.onFilesStartUpload,a=e.onAllFilesCompletedUpload,s=(0,o.useState)({}),c=(0,Le.Z)(s,2),u=c[0],d=c[1],p=(0,o.useState)(!1),f=(0,Le.Z)(p,2),h=f[0],m=f[1],v=(0,o.useState)(!1),g=(0,Le.Z)(v,2),y=g[0],b=g[1],x=(0,o.useState)(!1),w=(0,Le.Z)(x,2),C=w[0],j=w[1],S=(0,Yt.useMutation)(["".concat(n,"-create")]).mutateAsync;(0,o.useEffect)((function(){if(r&&r.length>0){var e={};r.forEach((function(t){e[t.name]=0})),d(e);var t=function(){var e=ds(hs().mark((function e(){var t,n;return hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(r.map(function(){var e=ds(hs().mark((function e(t){var n;return hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,rs.y3)(t);case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 2:return t=e.sent,e.next=5,Promise.all(t.map(function(){var e=ds(hs().mark((function e(t,n){var o;return hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,S({file:t,fileName:r[n].name,description:""},{onError:function(e){j(!0)}});case 2:return o=e.sent,e.abrupt("return",o);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()));case 5:n=e.sent,a(n);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();t()}}),[r]),(0,o.useEffect)((function(){if(r&&r.length>0){var e=Object.keys(u),t=r.map((function(t,n){return C?{file:t,uploadProgress:0,isUploadInProgress:!1,error:"Something went wrong."}:t.name===e[n]?{file:t,uploadProgress:u[t.name],isUploadInProgress:u[t.name]<100}:{file:t}}));i(t);var n=t.every((function(e){return!1===e.isUploadInProgress}));b(n),y&&m(!1)}}),[r,u,C]);return(0,Yt.useQueryClient)().setMutationDefaults(["".concat(n,"-create")],{mutationFn:function(e){return pi.Z.post("".concat(n),e,{onUploadProgress:function(n){m(!0),Object.keys(u).some((function(t){return t===e.fileName}))&&d((function(r){return(0,l.Z)((0,l.Z)({},r),{},(0,t.Z)({},e.fileName,Math.round(100*n.loaded/n.total)))}))}})}}),{isUploadingInProgress:h,isEveryFileFinishedUploading:y}};var WVe,VVe,UVe=function(e){var t,n=e.resource,r=Xc(),i=r.reset,a=r.getValues,s=r.setError,c=r.trigger,d=r.formState.errors,p=(0,o.useState)([]),f=(0,Le.Z)(p,2),h=f[0],m=f[1],v=HVe({resource:n,files:h,onFilesStartUpload:function(e){var t=a(),n=function(e,t){if(!e.length)return t;var n={};return e.forEach((function(e){n[e.file.name]=e})),t.forEach((function(e){var t=e.file.name;n[t]=e})),Object.values(n)}(t.materialsPreview||[],e);i((0,l.Z)((0,l.Z)({},t),{},{materialsPreview:n}))},onAllFilesCompletedUpload:function(e){if(e){var t=a(),n=t.materials||[],r=e.map((function(e){return e.data}));i((0,l.Z)((0,l.Z)({},t),{},{materials:[].concat((0,dn.Z)(n),(0,dn.Z)(r))}))}}}),g=v.isUploadingInProgress,y=v.isEveryFileFinishedUploading;(0,o.useEffect)((function(){!0===g&&!1===y&&s("materialsPreview",{message:"random msg",type:"onChange"})}),[d,g,y]);var b=function(){var e=ds(hs().mark((function e(t){return hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:m(t),c();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",children:[(0,u.jsx)(E$,{name:"materialsPreview",onUpload:b,dropzoneProps:{multiple:!0},maxFileSize:1e7,sx:{maxHeight:"170px",width:"50%"}}),(0,u.jsx)(nn.Z,{spacing:1,width:"50%",children:null!==a("materialsPreview")&&(null===(t=a("materialsPreview"))||void 0===t?void 0:t.length)>0&&a("materialsPreview").map((function(e){return(0,u.jsxs)(nn.Z,{spacing:1,width:"100%",height:"fit-content",sx:{p:2,textAlign:"center",backgroundColor:e.error?"secondaryPink.100":e.isUploadInProgress?"secondaryBlue.50":"secondaryGreen.100",borderRadius:"0.5rem"},children:[(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",alignItems:"stretch",children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",justifyContent:"left",spacing:1.5,children:["image/png"===e.file.type||"image/jpeg"===e.file.type?(0,u.jsx)(tn,{component:"img",src:URL.createObjectURL(e.file),sx:{maxWidth:"3.5rem",maxHeight:"3.5rem",objectFit:"contain",borderRadius:"4px",p:0}}):(0,u.jsx)(tn,{component:"img",sx:{maxWidth:"3.5rem",maxHeight:"3.5rem",objectFit:"contain",borderRadius:"4px",p:0},src:(0,rs.wQ)(e.file.name)}),(0,u.jsxs)(nn.Z,{spacing:.5,alignItems:"start",children:[(0,u.jsxs)(nn.Z,{alignItems:"center",direction:"row",children:[(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.600",fontWeight:600,children:(0,rs.$G)(e.file.name,30)}),100===e.uploadProgress&&!e.error&&(0,u.jsx)(io.Z,{sx:{height:"10px",pointerEvents:"none"},children:(0,u.jsx)(M2,{})}),0===e.uploadProgress&&e.error&&(0,u.jsx)(io.Z,{sx:{height:"10px",pointerEvents:"none"},children:(0,u.jsx)(V2,{fill:tr.Us[500]})})]}),(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.500",children:(0,rs.td)(e.file.size)})]})]}),(0,u.jsx)(io.Z,{onClick:function(){return function(e){var t=a("materials"),n=a("materialsPreview"),r=t.filter((function(t){return e!==t.fileName})),o=n.filter((function(t){return e!==t.file.name}));i((0,l.Z)((0,l.Z)({},a()),{},{materials:r})),i((0,l.Z)((0,l.Z)({},a()),{},{materialsPreview:o}))}(e.file.name)},disableRipple:!0,disableTouchRipple:!0,sx:{alignSelf:"start",mb:1,p:0,pt:"2px"},children:(0,u.jsx)(X2,{fill:tr.IV[500]})})]}),!e.error&&(0,u.jsxs)(nn.Z,{direction:"row",width:"100%",alignItems:"center",spacing:1,children:[(0,u.jsx)(tn,{sx:{height:"4px",width:"100%",borderRadius:"1rem"},children:(0,u.jsx)(v2,{value:e.uploadProgress||0,variant:"determinate",color:"secondary"})}),(0,u.jsxs)(rn.Z,{variant:"heading5",color:"primaryDark.500",children:[e.uploadProgress,"%"]})]}),0===e.uploadProgress&&e.error&&(0,u.jsx)(rn.Z,{variant:"body3",color:"secondaryPink.500",sx:{alignSelf:"start"},children:e.error})]},e.file.name)}))})]})},qVe=["title","titleId"];function GVe(){return GVe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GVe.apply(this,arguments)}function YVe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function KVe(e,t){var n=e.title,r=e.titleId,i=YVe(e,qVe);return o.createElement("svg",GVe({width:27,height:27,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,WVe||(WVe=o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.14991 3.28641C7.41397 2.33323 8.26108 1.66667 9.29852 1.66667C10.336 1.66667 11.177 2.31215 11.4419 3.26533C12.1122 3.40601 12.7336 4.06277 12.9171 4.69095L13.8124 4.67591C15.4743 4.67591 16.8216 6.0233 16.8216 7.68516V9.59116C15.9278 8.84869 14.7986 8.4375 13.627 8.4375C10.8656 8.4375 8.62699 10.6761 8.62699 13.4375C8.62699 14.6903 9.08777 15.8355 9.84909 16.7129H4.78464C3.12278 16.7129 1.77539 15.3655 1.77539 13.7037V7.68516C1.77539 6.0233 3.12278 4.67591 4.78464 4.67591C4.8313 4.67591 4.907 4.67699 5.00381 4.67836C5.17552 4.6808 5.41363 4.68418 5.67388 4.68418C5.8928 4.03418 6.46907 3.47524 7.14991 3.28641ZM10.0508 3.9236C10.0508 3.50833 9.7138 3.17129 9.29852 3.17129C8.88324 3.17129 8.54621 3.50833 8.54621 3.9236C8.54621 4.33888 8.20917 4.67591 7.79389 4.67591C7.37862 4.67591 7.04158 5.01295 7.04158 5.42823C7.04158 5.8435 7.37862 6.18054 7.79389 6.18054H10.8031C11.2184 6.18054 11.5555 5.8435 11.5555 5.42823C11.5555 5.01295 11.2184 4.67591 10.8031 4.67591C10.3879 4.67591 10.0508 4.33888 10.0508 3.9236Z",fill:"#6D51F6"})),VVe||(VVe=o.createElement("path",{d:"M13.3549 9.16667C11.1277 9.16667 9.32227 10.9723 9.32227 13.1993C9.32227 15.4263 11.1277 17.232 13.3549 17.232C14.2807 17.232 15.1583 16.9139 15.8389 16.3896L18.0333 18.6026C18.2302 18.7991 18.5611 18.7991 18.758 18.6026C18.9548 18.4055 18.9548 18.0748 18.758 17.8777L16.5483 15.6799C17.073 14.9994 17.3875 14.1253 17.3875 13.1993C17.3875 10.9723 15.582 9.16667 13.3549 9.16667ZM13.3549 10.1748C15.0252 10.1748 16.3793 11.5288 16.3793 13.1993C16.3793 14.8698 15.0252 16.2238 13.3549 16.2238C11.6845 16.2238 10.3304 14.8698 10.3304 13.1993C10.3304 11.5288 11.6845 10.1748 13.3549 10.1748Z",fill:"#6D51F6"})))}var JVe=o.forwardRef(KVe),XVe=(n.p,function(e){var t=e.isOpen,n=e.setIsOpen,r=e.type,o=e.errorMessage,i=e.onConfirm,a=(e.timedProject,{create:{title:"Project under review",text:"You have successfully submitted your timed project. The project must be approved by Spona before it can go live. You will be notified when the company accepts or rejects your application.",icon:(0,u.jsx)(JVe,{fill:tr.dx[700]}),wrapperBackgroundColor:tr.E4[100]},edit:{title:"Notices before change",text:"Your changes will be changed when the Spona team validates and approves them. In the meantime, the Timed Project will remain as it was. Edited Project will be saved in draft section.",icon:(0,u.jsx)(LAe,{fill:tr.dx[700],style:{width:24,height:24}}),wrapperBackgroundColor:tr.dx[100]},draft:{title:"Save draft",text:"Save your timed project as draft to continue editing it later.",icon:(0,u.jsx)(LAe,{fill:tr.dx[700],style:{width:24,height:24}}),wrapperBackgroundColor:tr.dx[100]},error:{title:"Error",text:"Something went wrong. Please try again later.",icon:(0,u.jsx)(V2,{fill:tr.Us[700],style:{width:24,height:24}}),wrapperBackgroundColor:tr.Us[100]},cancel:{title:"Cancel Form",text:"You are coming out of the creative form. Your recorded data will be lost.",icon:(0,u.jsx)(X2,{fill:tr.dx[700],style:{width:24,height:24}}),wrapperBackgroundColor:tr.dx[100]}}),s=o||a[r].text,l=(0,ze.s0)(),c=i||function(){return l("../")};return(0,u.jsx)(y4,{width:"50%",isModalOpen:t,setIsModalOpen:n,title:a[r].title,message:(0,u.jsx)(rn.Z,{color:"primaryDark.500",lineHeight:"21px",children:s}),confirmButtonText:"draft"===r?"Confirm":"cancel"===r?"Proceed":"Close",onConfirm:c,iconProps:{icon:a[r].icon,wrapperBackgroundColor:a[r].wrapperBackgroundColor},showCancelButton:"draft"===r||"cancel"===r,onCancel:function(){return n(!1)}})}),QVe=["materialsPreview","userAgreement","materials"],$Ve=["body"],eUe={overview:{name:"",description:""},about:{goals:"",targetMarkets:[],audience:"",competitors:[],industries:[]},skills:{services:[],platforms:[],tools:[],languages:[],providerScope:"undefined"},timeline:{pitchDeadline:null,projectStart:null},budget:{budget:null,recurring:!1,currency:"usd",budgetDescription:""},materialsPreview:null,materials:[],userAgreement:!1},tUe=["Overview","About","Skills","Timeline","Budget","Materials","Preview"],nUe=["In your company description, outline your general goals and direction without referring explicitly to your company name, as your identity will only be shared with sellers in the second round of negotiations.","For project requirements, feel free to go as detailed as you desire. The more information you can provide, the bigger the chance that pitches will address your specific needs.","Define the core service and technical expertise you expect your digital service seller to provide, if applicable to your project type.","Projects with a flexible pitching deadline will be closed once you have selected a seller to cooperate with, or after multiple months of inactivity.","If your project has a separate budget amount for its execution (e.g. marketing budget), please specify the amount of the budget allotted to the execution and to the seller in the budget breakdown section.","Additional materials will be shared only with sellers who are accepted into the second round of negotiations. The files will be automatically uploaded into your shared chat space."],rUe=["draft","active"],oUe=function(e){return{file:e,isUploadInProgress:!1,uploadProgress:100,error:null}},iUe=function(){var e=qR({labels:tUe,initialState:eUe}),t=e.currentStep,n=e.steps,r=e.onStepChange,i=e.form,a=(0,ze.s0)(),s=(0,ze.UO)(),c=(null===s||void 0===s?void 0:s.projectId)||"",d=!!c.length,p=(0,o.useState)(!1),f=(0,Le.Z)(p,2),h=f[0],m=f[1],v=(0,o.useState)(!1),g=(0,Le.Z)(v,2),y=g[0],b=g[1],x=(0,o.useState)(!1),w=(0,Le.Z)(x,2),C=w[0],j=w[1],S=(0,o.useState)(!1),k=(0,Le.Z)(S,2),Z=k[0],O=k[1],E=(0,o.useState)(!1),D=(0,Le.Z)(E,2),P=D[0],A=D[1],M=(0,o.useState)(""),T=(0,Le.Z)(M,2),I=T[0],R=T[1],F=zp({resource:"timed-projects/".concat(c),enabled:!!c,refetchOnWindowFocus:!1}).data,B=(d&&null===(null===F||void 0===F?void 0:F.data.edit)&&(null===F||void 0===F||F.data.status,Kt.Tl.Draft),null===(null===F||void 0===F?void 0:F.data.edit)?null===F||void 0===F?void 0:F.data.content:null===F||void 0===F?void 0:F.data.edit),L=zp({resource:"timed-project-contents/".concat(B),enabled:!!B,refetchOnWindowFocus:!1}).data,N=oa({resource:"/timed-projects"}),_=N.mutate,z=N.isLoading,H=(0,As.Z)({resource:"/timed-projects"}),W=H.mutate,V=H.isLoading,U=null===L||void 0===L?void 0:L.data,q=function(e,t){e.materialsPreview,e.userAgreement;var n=e.materials,r=Nn(e,QVe),o={body:(0,l.Z)((0,l.Z)({},r),{},{budget:(0,l.Z)((0,l.Z)({},r.budget),{},{budget:Number(r.budget.budget)})}),buyerApproved:!t,materials:null===n||void 0===n?void 0:n.map((function(e){return e.id}))},i={onSuccess:function(){t||(null!==s&&void 0!==s&&s.projectId?b(!0):m(!0))},onError:function(e){var n;t||(R(null===(n=e.response)||void 0===n?void 0:n.data.message),O(!0))}};d?W({id:c,data:o},i):_(o,i)};return(0,o.useEffect)((function(){if(U){rUe.includes(U.status)||a("../");var e=function(){var e=ds(hs().mark((function e(){var t,n,r,o;return hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=U.body,n=Nn(U,$Ve),e.next=3,(a=U.materials)?Promise.all(a.map(function(){var e=ds(hs().mark((function e(t){var n,r;return hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t.file).then((function(e){return e.blob()}));case 2:return n=e.sent,r=(0,rs.EE)(t.file),e.abrupt("return",new File([n],t.fileName,{type:r}));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())):null;case 3:r=e.sent,o=null===r||void 0===r?void 0:r.map(oUe),i.reset((0,l.Z)((0,l.Z)({},t),{},{materials:n.materials,materialsPreview:o}));case 6:case"end":return e.stop()}var a}),e)})));return function(){return e.apply(this,arguments)}}();e()}}),[U]),(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(tn,{sx:{width:"70%"},children:[(0,u.jsx)(UR,{form:i,steps:n,currentStep:t,helperText:(0,rs.DI)(t,nUe),layoutOrientation:7===t?"row":"column",onChange:r,onSubmit:function(e){return q(e,!1)},onSaveAsDraft:function(){return j(!0)},rightColumnRenderProp:function(){return(0,u.jsx)(zVe,{})},isSubmitLoading:!(!0!==V&&!0!==z),children:(0,u.jsxs)(u.Fragment,{children:[U?1===t&&i.getValues("overview.description")&&(0,u.jsx)(SVe,{}):1===t&&(0,u.jsx)(SVe,{}),2===t&&(0,u.jsx)(OVe,{}),3===t&&(0,u.jsx)(TVe,{}),4===t&&(0,u.jsx)(MVe,{}),5===t&&(0,u.jsx)(RVe,{}),6===t&&(0,u.jsx)(UVe,{resource:"/timed-projects/upload-materials"}),7===t&&(0,u.jsx)(LVe,{})]})}),(0,u.jsx)(XVe,{type:"create",isOpen:h,setIsOpen:m}),(0,u.jsx)(XVe,{type:"edit",isOpen:y,setIsOpen:b}),(0,u.jsx)(XVe,{type:"draft",isOpen:C,setIsOpen:j,onConfirm:function(){q(i.getValues(),!0)}}),(0,u.jsx)(XVe,{type:"error",isOpen:Z,setIsOpen:O,errorMessage:I}),(0,u.jsx)(XVe,{type:"cancel",isOpen:P,setIsOpen:A})]})})},aUe=function(){var e=(0,ze.s0)();return(0,u.jsxs)(nn.Z,{spacing:{xs:0,lg:4},direction:"row",alignItems:"center",justifyContent:"space-between",sx:(0,l.Z)((0,l.Z)({},ar),{},{mb:10}),children:[(0,u.jsxs)(nn.Z,{spacing:{xs:3,md:6},sx:{maxWidth:{xs:"100%",lg:"60%"}},children:[(0,u.jsx)(rn.Z,{sx:{typography:{xs:"publicHeading4",lg:"publicHeading3"}},children:"Do it Yourself"}),(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(rn.Z,{variant:"publicBody2Regular",color:"common.black",children:"Post a project"}),(0,u.jsx)(rn.Z,{variant:"publicBody4Regular",color:"common.black",children:"If you want to handle the hiring process yourself, Spona provides you with a step-by-step project template to help you structure your requirements and easily reach out to your preferred audience of digital service sellers."}),(0,u.jsx)(tn,{src:(0,rs.mB)(Wxe.W.DoItYourself),component:"img",sx:{display:{xs:"block",md:"none"}}})]}),(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(rn.Z,{variant:"publicBody2Regular",color:"common.black",children:"Choose a seller"}),(0,u.jsx)(rn.Z,{variant:"publicBody4Regular",color:"common.black",children:"Sellers will pitch for your project by filling out your project requirements. The next step is simple: pick your favorite candidates, chat with them over video or messaging on the Spona platform and proceed with one seller."})]}),(0,u.jsx)(Wo,{onClick:function(){return e("./timed-projects")},sx:{maxWidth:"fit-content"},endIcon:(0,u.jsx)(TR,{fill:"#fff"}),children:"List a Project"})]}),(0,u.jsx)(tn,{src:(0,rs.mB)(Wxe.W.DoItYourself),component:"img",sx:{display:{xs:"none",md:"block"},mr:"-22px !important"},alt:"Illustration of the process for posting a project on Spona"})]})},sUe=function(){return(0,u.jsxs)(nn.Z,{justifyContent:"center",sx:(0,l.Z)((0,l.Z)({},ar),{},{height:{xs:"calc(42vh + ".concat(rc,"px)"),sm:"calc(100vh + ".concat(rc,"px)")}}),children:[(0,u.jsx)(nn.Z,{title:"Group of colleagues sitting at the desk and discussing business strategy",sx:{display:{xs:"none",sm:"block"},backgroundImage:"url(".concat((0,rs.mB)(Wxe.W.HowToHireHero),")"),height:"70vh",boxShadow:{xs:"none",lg:"1px 10px 30px 0px rgba(56, 69, 114, 0.10)"},backgroundRepeat:"no-repeat",backgroundPosition:"right",backgroundSize:"cover",borderRadius:"20px",overflow:"hidden"},children:(0,u.jsx)(nn.Z,{bgcolor:"common.white",justifyContent:"center",sx:{width:"50%",height:"65%",borderBottomRightRadius:"24px",boxShadow:"1px 10px 30px 0px rgba(56, 69, 114, 0.10)"},children:(0,u.jsx)(rn.Z,{sx:{typography:{xs:"publicHeadline9",lg:"publicHeadline6"},px:{xs:"0",lg:"48px"}},color:"common.black",whiteSpace:"pre-wrap",children:"Get Project Solutions"})})}),(0,u.jsx)(rn.Z,{sx:{display:{xs:"block",sm:"none"},typography:{xs:"publicHeadline9",lg:"publicHeadline6"},px:{xs:"0",lg:"48px"}},color:"common.black",whiteSpace:"pre-wrap",children:"Get Project Solutions"})]})},lUe=function(){var e=(0,ze.s0)();return(0,u.jsxs)(nn.Z,{spacing:{xs:0,lg:4},direction:"row",alignItems:"center",justifyContent:"space-between",sx:(0,l.Z)((0,l.Z)({},ar),{},{mb:10,mt:{xs:-5,sm:0}}),children:[(0,u.jsx)(tn,{src:(0,rs.mB)(Wxe.W.LetSponaHandleIt),component:"img",sx:{display:{xs:"none",md:"block"},ml:"-22px"},alt:"Illustration of multiple cards representing Spona sellers in different colors"}),(0,u.jsxs)(nn.Z,{spacing:{xs:3,md:6},sx:{maxWidth:{xs:"100%",lg:"60%"}},children:[(0,u.jsx)(rn.Z,{sx:{typography:{xs:"publicHeading4",lg:"publicHeading3"}},children:"Let Spona Handle it"}),(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(rn.Z,{variant:"publicBody2Regular",color:"common.black",children:"Enlist an advisor"}),(0,u.jsx)(tn,{src:(0,rs.mB)(Wxe.W.LetSponaHandleItSmall),component:"img",sx:{display:{xs:"block",md:"none"}},alt:"Illustration of multiple cards representing Spona sellers in different colors"}),(0,u.jsx)(rn.Z,{variant:"publicBody4Regular",color:"common.black",children:"Have a project in mind, but you\u2019re not sure how to proceed?\xa0 Save your time and energy with Spona Connect and let us find the perfect fit for your project.\xa0"})]}),(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(rn.Z,{variant:"publicBody2Regular",color:"common.black",children:"Get matched"}),(0,u.jsx)(rn.Z,{variant:"publicBody4Regular",color:"common.black",children:"Give your Spona advisor your main project requirements, including timeline, budget and desired expertise. They will submit your project and search our community of more than a thousand vetted digital service sellers to find the best candidates for you. Choose one seller and get started on your project right away."})]}),(0,u.jsx)(Wo,{onClick:function(){return e("./spona-connect")},sx:{maxWidth:"fit-content"},endIcon:(0,u.jsx)(TR,{fill:"#fff"}),children:"Join Spona Connect"})]})]})},cUe=function(e){var t=e.firstTitle,n=e.firstSubtitle,r=e.secondTitle,o=e.secondSubtitle,i=e.bgcolor,a=e.color,s=void 0===a?tr.aK[900]:a,c=e.dividerColor,d=void 0===c?tr.IV[400]:c,p=e.borderColor,f=e.boxShadow,h=void 0!==f&&f,m=Bn((function(e){return e.breakpoints.up("lg")}));return(0,u.jsx)(nn.Z,{alignItems:"center",sx:(0,l.Z)((0,l.Z)({},ar),{},{pb:"12px"}),children:(0,u.jsxs)(nn.Z,{direction:{xs:"column",lg:"row"},spacing:5,sx:{bgcolor:i,width:"100%",borderRadius:"20px",border:p?"1px solid ".concat(p):"none",boxShadow:h?"6px 6px 15px 0px rgba(56, 69, 114, 0.10)":"none",p:{xs:3,md:6}},children:[(0,u.jsxs)(nn.Z,{direction:"column",justifyContent:"space-between",alignItems:"center",width:"100%",spacing:2,children:[(0,u.jsx)(rn.Z,{sx:{typography:{xs:"publicHeading4",lg:"publicHeading3"}},color:s,width:{xs:"80%",sm:"60%",md:"100%"},textAlign:"center",children:t}),(0,u.jsx)(rn.Z,{sx:{typography:{xs:"publicBodyRegular",lg:"publicBody3Regular"},fontSize:"16px"},color:s,width:{xs:"70%",sm:"45%",md:"70%"},textAlign:"center",children:n}),(0,u.jsx)(Wo,{href:"https://calendly.com/connectwithspona/30min?month=2024-01",children:"Book a demo"})]}),(0,u.jsx)(da.Z,{children:m?(0,u.jsx)(un,{orientation:"vertical",sx:{borderColor:"#9EA8C2",height:"100%","&::before, &::after":{borderTop:"thin solid ".concat(d)}},children:"Or"}):(0,u.jsx)(un,{orientation:"horizontal",sx:{borderColor:"#9EA8C2",height:"100%","&::before, &::after":{borderTop:"thin solid ".concat(d)}},children:"Or"})}),(0,u.jsxs)(nn.Z,{direction:"column",justifyContent:"space-between",alignItems:"center",width:"100%",spacing:2,children:[(0,u.jsx)(rn.Z,{sx:{typography:{xs:"publicHeading4",lg:"publicHeading3"}},color:s,width:{xs:"60%",sm:"60%",md:"100%"},textAlign:"center",children:r}),(0,u.jsx)(rn.Z,{sx:{typography:{xs:"publicBodyRegular",lg:"publicBody3Regular"},fontSize:"16px"},color:s,width:{xs:"70%",sm:"40%",md:"70%"},textAlign:"center",children:o}),(0,u.jsx)(Wo,{variant:"secondary",href:"/register",children:"Sign up"})]})]})})},uUe={title:"Spona - Hire the Top Digital Agency for your project needs.",description:"Have a project in mind, but you\u2019re not sure how to proceed? Save your time and energy with Spona Connect and let us find the perfect fit for your project."},dUe=function(){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Kwe,(0,l.Z)({},uUe)),(0,u.jsxs)(nn.Z,{overflow:"hidden",width:"100%",children:[(0,u.jsx)(sUe,{}),(0,u.jsx)(lUe,{}),(0,u.jsx)(aUe,{}),(0,u.jsx)(cUe,{firstTitle:"Let's Plan Together",firstSubtitle:"Not sure which plan is right for you? Let us talk you through the options",secondTitle:"Get Started",secondSubtitle:"Become a part of Spona to get started on your next big project",bgcolor:"secondaryBlue.101"})]})]})},pUe=n(77353),fUe=function(e){var t=e.title,n=e.content,r=e.image,o=void 0===r?pUe:r,i=e.contentButton,a=e.sx,s=e.titleSx,c=e.alt,d=Bn("(min-height:1200px)");return(0,u.jsxs)(nn.Z,{spacing:{xs:2.5,sm:7,lg:0},sx:(0,l.Z)((0,l.Z)({},ar),{},{height:d?"78vh":{xs:"calc(79vh + ".concat(rc,"px)"),lg:"87vh"},mb:d?"12%":0},a),justifyContent:{xs:"center",lg:"end"},alignItems:{xs:"center",sm:"start"},children:[(0,u.jsx)(rn.Z,{maxWidth:"60%",sx:(0,l.Z)({typography:{xs:"publicHeadline9",lg:"publicHeadline6"},pb:{xs:0,lg:7},maxWidth:{xs:"100%",lg:"60%"}},s),children:t}),(0,u.jsxs)(nn.Z,{spacing:2,sx:{p:{xs:0,lg:2},bgcolor:"common.white",width:{xs:"100%",lg:"81%"},zIndex:2,boxShadow:{xs:"none",lg:"1px 10px 30px rgba(56, 69, 114, 0.1)"},borderRadius:{xs:"none",lg:"20px 20px 0px 20px"}},children:[(0,u.jsx)(rn.Z,{sx:{typography:{xs:"publicBody4Light",lg:"publicBody3Light"}},children:n}),i&&(0,u.jsx)(Wo,{onClick:function(){return i.onClick()},variant:"primaryText",endIcon:i.withArrowRightIcon?(0,u.jsx)(TR,{fill:i.color}):null,sx:{color:i.color},children:i.text})]}),(0,u.jsx)(tn,{component:"img",alt:c,src:o,sx:{display:{xs:"none",lg:"block"},width:{xs:"50%",sm:"40%",bg:"25%",lg:"28%",xl:"26%"},borderRadius:"20px",alignSelf:{sm:"center"},margin:"0 auto!important",mt:{xs:"40px !important",sm:"112px !important",lg:0},left:0,right:0,mr:{lg:"5% !important",xxl:"17% !important"},position:{xs:"relative",lg:"absolute"},zIndex:1}})]})},hUe=function(e){var t=e.title,n=e.image,r=e.content,o=e.color,i=void 0===o?tr.E4[100]:o,a=e.alt;return(0,u.jsx)(tn,{sx:{bgcolor:i,borderRadius:"20px",px:{xs:2.5,lg:9},pt:{xs:4.5,lg:1}},children:(0,u.jsxs)(nn.Z,{direction:{xs:"column",md:"row"},justifyContent:"center",alignItems:"center",spacing:{xs:0,lg:8},children:[(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(rn.Z,{variant:"publicHeading4",pb:"1rem",children:t}),(0,u.jsx)(rn.Z,{variant:"publicBody4Regular",maxWidth:"90%",children:r})]}),(0,u.jsx)(tn,{alt:a,component:"img",src:n,sx:{maxWidth:{xs:"100%",md:"auto"},borderRadius:"20px 20px 0px 0px",pt:"2rem"}},n)]})})},mUe=function(e){var t=e.items,n=e.sx;return(0,u.jsxs)(nn.Z,{spacing:4,sx:(0,l.Z)((0,l.Z)({mt:{xs:-7,lg:"110px"}},n),ar),justifyContent:"center",alignItems:"center",children:[(0,u.jsx)(rn.Z,{sx:{typography:{xs:"publicHeading4",lg:"publicHeading3"},alignSelf:{xs:"center",lg:"start"}},textAlign:"center",children:"How Does it Work?"}),(0,u.jsx)(nn.Z,{spacing:4,width:"100%",children:t.map((function(e){var t=e.title,n=e.content,r=e.image,o=e.color,i=e.alt;return(0,u.jsx)(hUe,{title:t,content:n,image:r,color:o,alt:i})}))})]})},vUe=function(e){var t=e.title,n=e.content,r=e.isClicked,o=e.onClick,i=e.borderLeftColor;return(0,u.jsxs)(nn.Z,{spacing:3,sx:{borderLeft:r?"4px solid ".concat(i):"4px solid transparent",mb:"3rem",pl:"1rem",opacity:r?"1":"0.3",cursor:"pointer"},onClick:o,children:[(0,u.jsx)(rn.Z,{variant:"publicHeading4",children:t}),(0,u.jsx)(rn.Z,{variant:"publicBody4Regular",color:"common.black",children:n})]})},gUe=function(e){var t=e.title,n=e.optionsProps,r=e.clickableOptionBorderLeftColor,i=void 0===r?tr.E4[500]:r,a=e.sx,s=(0,o.useState)(0),c=(0,Le.Z)(s,2),d=c[0],p=c[1];return(0,u.jsxs)(nn.Z,{spacing:5,justifyContent:"center",alignItems:"start",sx:(0,l.Z)((0,l.Z)({},ar),{},{my:10},a),children:[(0,u.jsx)(rn.Z,{sx:{typography:{xs:"publicHeading4",lg:"publicHeading3"}},children:t}),(0,u.jsxs)(nn.Z,{spacing:16,alignItems:"center",direction:{xs:"column",lg:"row"},children:[(0,u.jsx)(nn.Z,{children:n.map((function(e,t){var n=e.title,r=e.content;return(0,u.jsx)(vUe,{title:n,content:r,isClicked:t===d,onClick:function(){return p(t)},borderLeftColor:i})}))}),(0,u.jsx)(tn,{alt:n[d].alt,component:"img",src:n[d].image,sx:{width:"35%",display:{xs:"none",lg:"block"}}},n[d].image)]})]})},yUe={description:"See how easy it is to post a project and find service sellers who can deliver exactly what you need."},bUe=function(){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Kwe,(0,l.Z)({},yUe)),(0,u.jsxs)(nn.Z,{overflow:"hidden",width:"100%",children:[(0,u.jsx)(fUe,{image:(0,rs.mB)(Wxe.W.TimedProjectSubageHero),title:"Your Next Big Project is Ahead",content:"Post a project to find the digital service seller whose expertise and capabilities match your requirements the best. Start with a handy project template to structure your ideas quickly or get in touch with the Spona team to get help posting your project. Whether it\u2019s your first or your hundredth project, Spona ensures a fully streamlined process.",sx:{height:{xs:"calc(89vh + ".concat(rc,"px)"),lg:"87vh"}},alt:"Close-up of person\u2019s hands going through marked paperwork"}),(0,u.jsx)(mUe,{items:[{title:"Submit your project",content:"After you sign up, submit your project by website or by call - our team members at Spona can help guide you through the process. Use the project templates to define your requirements, from schedule, budget, scope to expertise.",image:(0,rs.mB)(Wxe.W.SubmitYourProject),color:"secondaryBlue.50",alt:"Illustration of a project posting dashboard on Spona"},{title:"Review pitches",content:"Review pitches from Spona\u2019s community of vetted sellers. Seller profiles and verified case studies will give you the necessary background information on your candidates. ",image:(0,rs.mB)(Wxe.W.ReviewPitches),color:"secondaryBlue.50",alt:"Illustration of a pitch review on spona"},{title:"Hire a seller",content:"Approve your favorite pitches to proceed to the second round of negotiations, where you can contact the sellers to discuss their project strategy in more detail. The next step is choosing one seller and getting started on your project.",image:(0,rs.mB)(Wxe.W.HireSeller),color:"secondaryBlue.50",alt:"Illustration of a digital contract on spona"}]}),(0,u.jsx)(gUe,{title:"Spona makes your projects...",optionsProps:[{title:"Time efficient",content:"Spona eliminates all roadblocks and delays from the project creation and hiring process. Cut down the entire process and kickstart your project in a matter of days.",image:(0,rs.mB)(Wxe.W.SponaMakesTimedProjects),alt:"Person smiling and presenting strategy to her colleagues"},{title:"Easy to understand",content:"Our project template lets you structure your needs easily and reach the kind of digital seller that would best suit your project. For everything else, our support team is here to help.",image:(0,rs.mB)(Wxe.W.SponaMakesTimedProjects),alt:"Person smiling and presenting strategy to her colleagues"},{title:"Risk-proof",content:"Our community numbers thousands of reputable sellers with verified case studies showcasing their previous work. Make background checks simple and get the assurance that you\u2019re hiring a professional for your project.",image:(0,rs.mB)(Wxe.W.SponaMakesTimedProjects),alt:"Person smiling and presenting strategy to her colleagues"}]}),(0,u.jsx)(Ywe,{title:"Get project solutions today",bgcolor:"secondaryBlue.101",color:"common.black"})]})]})},xUe=function(e,t){return xUe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},xUe(e,t)};function wUe(e,t){function n(){this.constructor=e}xUe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var CUe=function(){return CUe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},CUe.apply(this,arguments)};var jUe;function SUe(e){return"#"===e.charAt(0)?e.slice(1):e}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}("/*\n  code is extracted from Calendly's embed stylesheet: https://assets.calendly.com/assets/external/widget.css\n*/\n\n.calendly-inline-widget,\n.calendly-inline-widget *,\n.calendly-badge-widget,\n.calendly-badge-widget *,\n.calendly-overlay,\n.calendly-overlay * {\n    font-size:16px;\n    line-height:1.2em\n}\n\n.calendly-inline-widget iframe,\n.calendly-badge-widget iframe,\n.calendly-overlay iframe {\n    display:inline;\n    width:100%;\n    height:100%\n}\n\n.calendly-popup-content {\n    position:relative\n}\n\n.calendly-popup-content.calendly-mobile {\n    -webkit-overflow-scrolling:touch;\n    overflow-y:auto\n}\n\n.calendly-overlay {\n    position:fixed;\n    top:0;\n    left:0;\n    right:0;\n    bottom:0;\n    overflow:hidden;\n    z-index:9999;\n    background-color:#a5a5a5;\n    background-color:rgba(31,31,31,0.4)\n}\n\n.calendly-overlay .calendly-close-overlay {\n    position:absolute;\n    top:0;\n    left:0;\n    right:0;\n    bottom:0\n}\n\n.calendly-overlay .calendly-popup {\n    box-sizing:border-box;\n    position:absolute;\n    top:50%;\n    left:50%;\n    -webkit-transform:translateY(-50%) translateX(-50%);\n    transform:translateY(-50%) translateX(-50%);\n    width:80%;\n    min-width:900px;\n    max-width:1000px;\n    height:90%;\n    max-height:680px\n}\n\n@media (max-width: 975px) {\n    .calendly-overlay .calendly-popup {\n        position:fixed;\n        top:50px;\n        left:0;\n        right:0;\n        bottom:0;\n        -webkit-transform:none;\n        transform:none;\n        width:100%;\n        height:auto;\n        min-width:0;\n        max-height:none\n    }\n}\n\n.calendly-overlay .calendly-popup .calendly-popup-content {\n    height:100%;\n}\n\n.calendly-overlay .calendly-popup-close {\n    position:absolute;\n    top:25px;\n    right:25px;\n    color:#fff;\n    width:19px;\n    height:19px;\n    cursor:pointer;\n    background:url(https://assets.calendly.com/assets/external/close-icon.svg) no-repeat;\n    background-size:contain\n}\n\n@media (max-width: 975px) {\n    .calendly-overlay .calendly-popup-close {\n        top:15px;\n        right:15px\n    }\n}\n\n.calendly-badge-widget {\n    position:fixed;\n    right:20px;\n    bottom:15px;\n    z-index:9998\n}\n\n.calendly-badge-widget .calendly-badge-content {\n    display:table-cell;\n    width:auto;\n    height:45px;\n    padding:0 30px;\n    border-radius:25px;\n    box-shadow:rgba(0,0,0,0.25) 0 2px 5px;\n    font-family:sans-serif;\n    text-align:center;\n    vertical-align:middle;\n    font-weight:bold;\n    font-size:14px;\n    color:#fff;\n    cursor:pointer\n}\n\n.calendly-badge-widget .calendly-badge-content.calendly-white {\n    color:#666a73\n}\n\n.calendly-badge-widget .calendly-badge-content span {\n    display:block;\n    font-size:12px\n}\n\n.calendly-spinner {\n    position:absolute;\n    top:50%;\n    left:0;\n    right:0;\n    -webkit-transform:translateY(-50%);\n    transform:translateY(-50%);\n    text-align:center;\n    z-index:-1\n}\n\n.calendly-spinner>div {\n    display:inline-block;\n    width:18px;\n    height:18px;\n    background-color:#e1e1e1;\n    border-radius:50%;\n    vertical-align:middle;\n    -webkit-animation:calendly-bouncedelay 1.4s infinite ease-in-out;\n    animation:calendly-bouncedelay 1.4s infinite ease-in-out;\n    -webkit-animation-fill-mode:both;\n    animation-fill-mode:both\n}\n\n.calendly-spinner .calendly-bounce1 {\n    -webkit-animation-delay:-0.32s;\n    animation-delay:-0.32s\n}\n\n.calendly-spinner .calendly-bounce2 {\n    -webkit-animation-delay:-0.16s;\n    animation-delay:-0.16s\n}\n\n@-webkit-keyframes calendly-bouncedelay {\n    0%,80%,100% {\n        -webkit-transform:scale(0);\n        transform:scale(0)\n    } \n    \n    40%{\n        -webkit-transform:scale(1);\n        transform:scale(1)\n    }\n}\n\n@keyframes calendly-bouncedelay{ \n    0%,80%,100% {\n        -webkit-transform:scale(0);\n        transform:scale(0)\n    }\n    \n    40% {\n        -webkit-transform:scale(1);\n        transform:scale(1)\n    }\n}"),function(e){e.PROFILE_PAGE_VIEWED="calendly.profile_page_viewed",e.EVENT_TYPE_VIEWED="calendly.event_type_viewed",e.DATE_AND_TIME_SELECTED="calendly.date_and_time_selected",e.EVENT_SCHEDULED="calendly.event_scheduled"}(jUe||(jUe={}));var kUe=function(e){var t,n=e.url,r=e.prefill,o=void 0===r?{}:r,i=e.pageSettings,a=void 0===i?{}:i,s=e.utm,l=void 0===s?{}:s,c=e.embedType,u=((null===(t=a)||void 0===t?void 0:t.primaryColor)&&(t.primaryColor=SUe(t.primaryColor)),(null===t||void 0===t?void 0:t.textColor)&&(t.textColor=SUe(t.textColor)),(null===t||void 0===t?void 0:t.backgroundColor)&&(t.backgroundColor=SUe(t.backgroundColor)),t),d=u.backgroundColor,p=u.hideEventTypeDetails,f=u.hideLandingPageDetails,h=u.primaryColor,m=u.textColor,v=u.hideGdprBanner,g=o.customAnswers,y=o.date,b=o.email,x=o.firstName,w=o.guests,C=o.lastName,j=o.location,S=o.name,k=l.utmCampaign,Z=l.utmContent,O=l.utmMedium,E=l.utmSource,D=l.utmTerm,P=l.salesforce_uuid,A=n.indexOf("?"),M=A>-1,T=n.slice(A+1);return(M?n.slice(0,A):n)+"?"+[M?T:null,d?"background_color="+d:null,p?"hide_event_type_details=1":null,f?"hide_landing_page_details=1":null,h?"primary_color="+h:null,m?"text_color="+m:null,v?"hide_gdpr_banner=1":null,S?"name="+encodeURIComponent(S):null,j?"location="+encodeURIComponent(j):null,x?"first_name="+encodeURIComponent(x):null,C?"last_name="+encodeURIComponent(C):null,w?"guests="+w.map(encodeURIComponent).join(","):null,b?"email="+encodeURIComponent(b):null,y&&y instanceof Date?"date="+ZUe(y):null,k?"utm_campaign="+encodeURIComponent(k):null,Z?"utm_content="+encodeURIComponent(Z):null,O?"utm_medium="+encodeURIComponent(O):null,E?"utm_source="+encodeURIComponent(E):null,D?"utm_term="+encodeURIComponent(D):null,P?"salesforce_uuid="+encodeURIComponent(P):null,c?"embed_type="+c:null,"embed_domain=1"].concat(g?EUe(g):[]).filter((function(e){return null!==e})).join("&")},ZUe=function(e){var t=e.getMonth()+1,n=e.getDate();return[e.getFullYear(),t<10?"0"+t:t,n<10?"0"+n:n].join("-")},OUe=/^a\d{1,2}$/,EUe=function(e){var t=Object.keys(e).filter((function(e){return e.match(OUe)}));return t.length?t.map((function(t){return t+"="+encodeURIComponent(e[t])})):[]},DUe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wUe(t,e),t.prototype.render=function(){return(0,o.createElement)("div",{className:"calendly-spinner"},(0,o.createElement)("div",{className:"calendly-bounce1"}),(0,o.createElement)("div",{className:"calendly-bounce2"}),(0,o.createElement)("div",{className:"calendly-bounce3"}))},t}(o.Component),PUe={minWidth:"320px",height:"630px"},AUe=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isLoading:!0},n.onLoad=n.onLoad.bind(n),n}return wUe(t,e),t.prototype.onLoad=function(){this.setState({isLoading:!1})},t.prototype.render=function(){var e=kUe({url:this.props.url,pageSettings:this.props.pageSettings,prefill:this.props.prefill,utm:this.props.utm,embedType:"Inline"});return(0,o.createElement)("div",{className:"calendly-inline-widget",style:this.props.styles||PUe},this.state.isLoading&&(0,o.createElement)(DUe,null),(0,o.createElement)("iframe",{width:"100%",height:"100%",frameBorder:"0",title:this.props.iframeTitle||"Calendly Scheduling Page",onLoad:this.onLoad,src:e}))},t}(o.Component),MUe=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isLoading:!0},n.onLoad=n.onLoad.bind(n),n}return wUe(t,e),t.prototype.onLoad=function(){this.setState({isLoading:!1})},t.prototype.render=function(){var e=kUe({url:this.props.url,pageSettings:this.props.pageSettings,prefill:this.props.prefill,utm:this.props.utm,embedType:"PopupWidget"});return(0,o.createElement)(o.Fragment,null,this.state.isLoading&&(0,o.createElement)(DUe,null),(0,o.createElement)("iframe",{width:"100%",height:"100%",frameBorder:"0",title:this.props.iframeTitle||"Calendly Scheduling Page",onLoad:this.onLoad,src:e}))},t}(o.Component),TUe=function(e){if(!e.open)return null;if(!e.rootElement)throw new Error("[react-calendly]: PopupModal rootElement property cannot be undefined");return(0,g.createPortal)((0,o.createElement)("div",{className:"calendly-overlay"},(0,o.createElement)("div",{onClick:e.onModalClose,className:"calendly-close-overlay"}),(0,o.createElement)("div",{className:"calendly-popup"},(0,o.createElement)("div",{className:"calendly-popup-content"},(0,o.createElement)(MUe,CUe({},e)))),(0,o.createElement)("button",{className:"calendly-popup-close",onClick:e.onModalClose,"aria-label":"Close modal",style:{display:"block",border:"none",padding:0}})),e.rootElement)},IUe=(function(e){function t(t){var n=e.call(this,t)||this;return n.state={isOpen:!1},n.onClick=n.onClick.bind(n),n.onClose=n.onClose.bind(n),n}wUe(t,e),t.prototype.onClick=function(e){e.preventDefault(),this.setState({isOpen:!0})},t.prototype.onClose=function(e){e.stopPropagation(),this.setState({isOpen:!1})},t.prototype.render=function(){return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("button",{onClick:this.onClick,style:this.props.styles||{},className:this.props.className||""},this.props.text),(0,o.createElement)(TUe,CUe({},this.props,{open:this.state.isOpen,onModalClose:this.onClose,rootElement:this.props.rootElement})))}}(o.Component),function(e){function t(t){var n=e.call(this,t)||this;return n.state={isOpen:!1},n.onClick=n.onClick.bind(n),n.onClose=n.onClose.bind(n),n}wUe(t,e),t.prototype.onClick=function(){this.setState({isOpen:!0})},t.prototype.onClose=function(e){e.stopPropagation(),this.setState({isOpen:!1})},t.prototype.render=function(){return(0,o.createElement)("div",{className:"calendly-badge-widget",onClick:this.onClick},(0,o.createElement)("div",{className:"calendly-badge-content",style:{background:this.props.color||"#00a2ff",color:this.props.textColor||"#ffffff"}},this.props.text||"Schedule time with me",this.props.branding&&(0,o.createElement)("span",null,"powered by Calendly")),(0,o.createElement)(TUe,CUe({},this.props,{open:this.state.isOpen,onModalClose:this.onClose,rootElement:this.props.rootElement})))}}(o.Component),"message");function RUe(e){var t=e||{},n=t.onDateAndTimeSelected,r=t.onEventScheduled,i=t.onEventTypeViewed,a=t.onProfilePageViewed;(0,o.useEffect)((function(){var e=function(e){var t=e.data.event;t===jUe.DATE_AND_TIME_SELECTED?n&&n(e):t===jUe.EVENT_SCHEDULED?r&&r(e):t===jUe.EVENT_TYPE_VIEWED?i&&i(e):t===jUe.PROFILE_PAGE_VIEWED&&a&&a(e)};return window.addEventListener(IUe,e),function(){window.removeEventListener(IUe,e)}}),[e])}var FUe={description:"Learn how Spona finds your dream partners to outsource your project to."},BUe=function(){var e=(0,o.useState)(!1),t=(0,Le.Z)(e,2),n=t[0],r=t[1],i=(0,o.useState)(!1),a=(0,Le.Z)(i,2),s=a[0],c=a[1],d=Bn("(min-height:1200px)"),p=Bn("(min-width:600px)"),f=Bn("(min-width:1490px)"),h=function(e){var t=e.openModal;return(0,u.jsx)(ys,{open:t,width:"auto",paperStyleProps:{p:{xs:0,lg:"2rem"}},sx:{alignItems:"end"},onClose:function(){return r(!1)},children:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(AUe,{styles:{height:d?"600px":"480px",width:f?"490px":p?"380px":"310px"},url:"https://calendly.com/connectwithspona/30min?month=2024-01"}),s&&(0,u.jsx)(Wo,{onClick:function(){r(!1),c(!1)},children:"Close"})]})})};return RUe({onEventScheduled:function(e){c(!0)}}),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Kwe,(0,l.Z)({},FUe)),(0,u.jsxs)(nn.Z,{overflow:"hidden",width:"100%",children:[n&&(0,u.jsx)(h,{openModal:n}),(0,u.jsx)(fUe,{image:(0,rs.mB)(Wxe.W.LetSponaHandleItHero),title:"Let Spona Handle It",content:"Are you looking for digital service sellers with highly specialized expertise, or simply having trouble finding the time to make a fully informed choice yourself? Spona has you covered with Spona Connect, our hands-off option to hiring the seller that best suits your needs. Get in touch with a member of our team to start working on your project today.",sx:{height:{xs:"calc(85vh + ".concat(rc,"px)"),lg:"87vh"}},alt:"Person sitting on a couch with coffee mug, looking at his computer"}),(0,u.jsx)(mUe,{sx:{mt:{xs:"-86px",lg:"110px"}},items:[{title:"List your requirements",content:"Schedule a meeting with a Spona advisor and define your project requirements, including goals, budget, schedule and desired expertise. We\u2019ll take it from there: let us browse our community of thousands of digital service sellers and shortlist the best candidates for your project.",image:(0,rs.mB)(Wxe.W.ListYourRequirements),color:"secondaryBlue.50",alt:"Illustration of the calendar on Spona"},{title:"Review your candidates",content:"Your recruiter will provide you with a list of your top options. Members of the Spona community are vetted through their seller profiles and client-reviewed and scored case studies. Once you\u2019ve made your choice, you\u2019re ready to start working on your next big project.",image:(0,rs.mB)(Wxe.W.ReviewYourCandidates),color:"secondaryBlue.50",alt:"Illustration of user profile components on Spona"},{title:"Save your time and money",content:"Your recruiter will provide you with a list of your top options. Members of the Spona community are vetted through their seller profiles and client-reviewed and scored case studies. Once you\u2019ve made your choice, you\u2019re ready to start working on your next big project. ",image:(0,rs.mB)(Wxe.W.SaveYourTimeAndMoney),color:"secondaryBlue.50",alt:"Illustration of the dashboard on Spona"}]}),(0,u.jsx)(gUe,{title:"Spona Makes Your Business\u2026",optionsProps:[{title:"Smarter",content:"Our advisors are up to date with the latest trends in the digital business market and will be able to efficiently find your best picks. Not only that, but their expertise with helping other sellers will ensure that they can pinpoint what your business needs.",image:(0,rs.mB)(Wxe.W.SponaMakesSubpage),alt:"Image of a desk with a computer on it showing graphs and charts"},{title:"Simpler",content:"Find a solution in a matter of days by significantly shortening the recruitment process. No need to handle the paperwork, research and filtering through dozens of pitches yourself - you can leave the heavy lifting to Spona.",image:(0,rs.mB)(Wxe.W.SponaMakesSubpage),alt:"Image of a desk with a computer on it showing graphs and charts"},{title:"Streamlined",content:"Reduce complications by selecting one capable person to do the job. Our advisors are experts in their field and will be able to answer your needs without gathering feedback from multiple sources and delaying the process.",image:(0,rs.mB)(Wxe.W.SponaMakesSubpage),alt:"Image of a desk with a computer on it showing graphs and charts"}]}),(0,u.jsx)(Ywe,{title:"Find your Spona advisor",subtitle:"Get in touch with us to get started with your project journey on Spona.",bgcolor:"secondaryBlue.101",color:"common.black",onButtonClick:function(){return r(!0)}})]})]})},LUe={title:"Spona - Are you a Digital Agency looking for work? ",description:"Get your next big project with Spona. Register, publish a Case Study and Get your next big project now. Find out here how it all works."},NUe=function(){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Kwe,(0,l.Z)({},LUe)),(0,u.jsxs)(nn.Z,{overflow:"hidden",width:"100%",children:[(0,u.jsx)(fUe,{title:"Get Your Next Big Project",content:"Focus on growing your business while Spona makes sure that exciting new business opportunities come your way. Projects listed on our platform are standardized and contain all the essential information you need to decide whether you've found the right opportunity for you, so you don't invest your time before the real work actually begins. Reach out to buyers of digital services across the world and build new connections with Spona.",image:(0,rs.mB)(Wxe.W.HowToFindWorkHero),sx:{height:{xs:"calc(100vh + ".concat(rc,"px)"),lg:"87vh"}},alt:"Two colleagues reading notes from multi color post it notes."}),(0,u.jsx)(mUe,{items:[{title:"Create a profile",content:"To sign up for Spona, you need your company name and business email. After that, you will need to register your company details to create a full profile. You will be guided step-by-step through the entire process.",image:(0,rs.mB)(Wxe.W.CreateProfile),color:tr.oq[100],alt:"Ilustration_create a profile"},{title:"Publish a case study",content:"Once your profile is verified, you will be able to browse all projects listed on the platform. To enable pitching, you need to post at least one case study and request a review from your previous client. This gives proof of credibility and valuable insight to your future buyers.",image:(0,rs.mB)(Wxe.W.PublishCaseStudy),color:tr.oq[100],alt:"Illustration_Publish a case study"},{title:"Submit your pitch",content:"Describe your company, your proposed strategy and attach relevant material. If your pitch is approved, you will proceed to the second round where you have the opportunity to chat with the buyer and schedule a meeting to discuss the project in more detail.",image:(0,rs.mB)(Wxe.W.SubmitYourPitch),color:tr.oq[100],alt:"Illustration_Submit your pitch"}]}),(0,u.jsx)(gUe,{title:"Spona Gives Your Business\u2026",clickableOptionBorderLeftColor:tr.NP[501],optionsProps:[{title:"Reach",content:"Build your online presence by publishing content which showcases your products and know-how. Show your potential clients your expertise and promote your services ahead of time, giving you an increased chance of being selected for your next project.",image:(0,rs.mB)(Wxe.W.SponaGives),alt:"Personal computer showing statistic report on the screen"},{title:"Credibility",content:"Connect with buyers through our platform and gain invaluable feedback and credibility through client-reviewed and scored project case studies. Our team will verify the content ourselves, creating a handy portfolio of thoroughly vetted work.\xa0\xa0",image:(0,rs.mB)(Wxe.W.SponaGives),alt:"Personal computer showing statistic report on the screen"},{title:"Opportunities",content:"Browse projects and find out immediately what your potential clients are looking for. Show them that you\u2019ve got exactly what they need by submitting a pitch with our user-friendly template.",image:(0,rs.mB)(Wxe.W.SponaGives),alt:"Personal computer showing statistic report on the screen"}]}),(0,u.jsx)(Ywe,{title:"Get started on your project",bgcolor:"secondaryYellow.100",color:tr.IV[900]})]})]})};function _Ue(e){return(0,F.Z)("MuiCardMedia",e)}(0,R.Z)("MuiCardMedia",["root","media","img"]);var zUe=["children","className","component","image","src","style"],HUe=(0,P.ZP)("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState,r=n.isMediaComponent,o=n.isImageComponent;return[t.root,r&&t.media,o&&t.img]}})((function(e){var t=e.ownerState;return(0,r.Z)({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},t.isMediaComponent&&{width:"100%"},t.isImageComponent&&{objectFit:"cover"})})),WUe=["video","audio","picture","iframe","img"],VUe=["picture","img"],UUe=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiCardMedia"}),o=n.children,i=n.className,a=n.component,s=void 0===a?"div":a,l=n.image,c=n.src,d=n.style,p=(0,b.Z)(n,zUe),f=-1!==WUe.indexOf(s),h=!f&&l?(0,r.Z)({backgroundImage:'url("'.concat(l,'")')},d):d,m=(0,r.Z)({},n,{component:s,isMediaComponent:f,isImageComponent:-1!==VUe.indexOf(s)}),v=function(e){var t=e.classes,n={root:["root",e.isMediaComponent&&"media",e.isImageComponent&&"img"]};return(0,M.Z)(n,_Ue,t)}(m);return(0,u.jsx)(HUe,(0,r.Z)({className:(0,y.default)(v.root,i),as:s,role:!f&&l?"img":void 0,ref:t,style:h,ownerState:m,src:f?l||c:void 0},p,{children:o}))})),qUe=UUe;function GUe(e){return(0,F.Z)("MuiCardActions",e)}(0,R.Z)("MuiCardActions",["root","spacing"]);var YUe,KUe=["disableSpacing","className"],JUe=(0,P.ZP)("div",{name:"MuiCardActions",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,!n.disableSpacing&&t.spacing]}})((function(e){var t=e.ownerState;return(0,r.Z)({display:"flex",alignItems:"center",padding:8},!t.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})})),XUe=o.forwardRef((function(e,t){var n=(0,T.Z)({props:e,name:"MuiCardActions"}),o=n.disableSpacing,i=void 0!==o&&o,a=n.className,s=(0,b.Z)(n,KUe),l=(0,r.Z)({},n,{disableSpacing:i}),c=function(e){var t=e.classes,n={root:["root",!e.disableSpacing&&"spacing"]};return(0,M.Z)(n,GUe,t)}(l);return(0,u.jsx)(JUe,(0,r.Z)({className:(0,y.default)(c.root,a),ownerState:l,ref:t},s))})),QUe=XUe,$Ue=function(e){var t=e.setIsOpen,n=e.isOpen,r=e.id,o=zk({resource:"/case-studies"}).mutate,i=(0,Ms.J)();return(0,u.jsx)(ys,{open:n,onClose:function(){return t(!1)},width:"35%",children:(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",alignItems:"center",children:[(0,u.jsx)(nn.Z,{alignItems:"center",justifyContent:"center",sx:{bgcolor:"#E5E8FF",width:"fit-content",height:"fit-content",borderRadius:"6px",p:2},children:(0,u.jsx)(bSe,{fill:tr.dx[700],style:{width:24,height:24}})}),(0,u.jsx)(rn.Z,{variant:"heading3",color:"primaryDark.600",children:"Delete case study"})]}),(0,u.jsx)(un,{}),(0,u.jsx)(rn.Z,{color:"primaryDark.500",children:"Your case study will be permanently deleted. Are you sure you want to proceed?"}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{sx:{justifyContent:"end"},spacing:2,direction:"row",children:[(0,u.jsx)(Wo,{variant:"secondary",onClick:function(){return t(!1)},children:"Cancel"}),(0,u.jsx)(Wo,{variant:"primary",onClick:function(){o({id:r},{onSuccess:function(){i(),t(!1)}})},children:"confirm"})]})]})})},eqe=function(e){var t=e.label,n=e.choices,r=e.values;return(0,u.jsxs)(nn.Z,{flex:1,children:[(0,u.jsx)(Cd,{text:t}),(0,u.jsx)(nn.Z,{direction:"row",gap:1,flexWrap:"wrap",children:null===r||void 0===r?void 0:r.map((function(e){return(0,u.jsx)(_d,{label:n.get(e)})}))})]})},tqe=["title","titleId"];function nqe(){return nqe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nqe.apply(this,arguments)}function rqe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function oqe(e,t){var n=e.title,r=e.titleId,i=rqe(e,tqe);return o.createElement("svg",nqe({width:18,height:17,viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,YUe||(YUe=o.createElement("path",{d:"M8.99934 0.178711C4.39685 0.178711 0.666016 3.90954 0.666016 8.51204C0.666016 13.1145 4.39685 16.8454 8.99934 16.8454C13.6018 16.8454 17.3327 13.1145 17.3327 8.51204C17.3327 7.88371 17.261 7.26622 17.1243 6.66288C17.0227 6.21455 16.5835 5.93622 16.1343 6.03788C15.686 6.13955 15.4077 6.57871 15.5093 7.02787C15.6193 7.50954 15.666 8.00788 15.666 8.51204C15.666 12.1937 12.681 15.1787 8.99934 15.1787C5.31768 15.1787 2.33268 12.1937 2.33268 8.51204C2.33268 4.83038 5.31768 1.84538 8.99934 1.84538C9.50268 1.84538 10.0018 1.89203 10.4835 2.00203C10.9327 2.1037 11.3718 1.82537 11.4735 1.37703C11.5752 0.927868 11.2968 0.488711 10.8485 0.387044C10.246 0.250378 9.62684 0.178711 8.99934 0.178711ZM13.9993 0.178711C13.5393 0.178711 13.166 0.552044 13.166 1.01204V3.14787L9.41767 6.89538C9.41767 6.89538 9.13018 6.84538 8.99934 6.84538C8.07851 6.84538 7.33268 7.59121 7.33268 8.51204C7.33268 9.43288 8.07851 10.1787 8.99934 10.1787C9.92017 10.1787 10.666 9.43288 10.666 8.51204C10.666 8.38121 10.6127 8.09622 10.6127 8.09622L14.3643 4.34538H16.4993C16.9593 4.34538 17.3327 3.97204 17.3327 3.51204C17.3327 3.05204 16.9593 2.67871 16.4993 2.67871H14.8327V1.01204C14.8327 0.552044 14.4593 0.178711 13.9993 0.178711ZM8.99934 3.51204C6.23768 3.51204 3.99935 5.75038 3.99935 8.51204C3.99935 11.2737 6.23768 13.512 8.99934 13.512C11.761 13.512 13.9993 11.2737 13.9993 8.51204C13.9993 8.05204 13.626 7.67871 13.166 7.67871C12.706 7.67871 12.3327 8.05204 12.3327 8.51204C12.3327 10.3529 10.8402 11.8454 8.99934 11.8454C7.15851 11.8454 5.66601 10.3529 5.66601 8.51204C5.66601 6.67121 7.15851 5.17871 8.99934 5.17871C9.45934 5.17871 9.83267 4.80538 9.83267 4.34538C9.83267 3.88538 9.45934 3.51204 8.99934 3.51204Z",fill:"current"})))}var iqe,aqe=o.forwardRef(oqe),sqe=(n.p,["title","titleId"]);function lqe(){return lqe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lqe.apply(this,arguments)}function cqe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function uqe(e,t){var n=e.title,r=e.titleId,i=cqe(e,sqe);return o.createElement("svg",lqe({width:13,height:17,viewBox:"0 0 13 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,iqe||(iqe=o.createElement("path",{d:"M6.33203 0.127441C5.9487 0.127441 5.63759 0.500775 5.63759 0.960775C5.63759 1.42077 5.9487 1.79411 6.33203 1.79411C6.71536 1.79411 7.02648 1.42077 7.02648 0.960775C7.02648 0.500775 6.71536 0.127441 6.33203 0.127441ZM2.16536 2.62744C1.78203 2.62744 1.47092 3.00077 1.47092 3.46077C1.47092 3.92077 1.78203 4.29411 2.16536 4.29411C2.5487 4.29411 2.85981 3.92077 2.85981 3.46077C2.85981 3.00077 2.5487 2.62744 2.16536 2.62744ZM10.4987 2.62744C10.1154 2.62744 9.80425 3.00077 9.80425 3.46077C9.80425 3.92077 10.1154 4.29411 10.4987 4.29411C10.882 4.29411 11.1931 3.92077 11.1931 3.46077C11.1931 3.00077 10.882 2.62744 10.4987 2.62744ZM6.33203 3.46077C4.41467 3.46077 2.85981 5.32661 2.85981 7.62744C2.85981 8.55827 3.12439 9.40744 3.55425 10.1016C4.18689 11.1224 4.2487 11.7941 4.2487 12.6274C4.94314 12.6274 7.72092 12.6274 8.41537 12.6274C8.41537 11.7941 8.78203 10.6491 9.10981 10.1274C9.548 9.42994 9.80425 8.56827 9.80425 7.62744C9.80425 5.32661 8.24939 3.46077 6.33203 3.46077ZM0.776476 7.62744C0.393142 7.62744 0.0820312 8.00077 0.0820312 8.46077C0.0820312 8.92077 0.393142 9.29411 0.776476 9.29411C1.15981 9.29411 1.47092 8.92077 1.47092 8.46077C1.47092 8.00077 1.15981 7.62744 0.776476 7.62744ZM11.8876 7.62744C11.5043 7.62744 11.1931 8.00077 11.1931 8.46077C11.1931 8.92077 11.5043 9.29411 11.8876 9.29411C12.2709 9.29411 12.582 8.92077 12.582 8.46077C12.582 8.00077 12.2709 7.62744 11.8876 7.62744ZM4.2487 14.2941C4.2487 15.6749 5.18134 16.7941 6.33203 16.7941C7.48273 16.7941 8.41537 15.6749 8.41537 14.2941H4.2487Z",fill:"current"})))}var dqe,pqe,fqe=o.forwardRef(uqe),hqe=(n.p,function(e){var t,n,r,o,i,a,s,l,c,d,p,f,h,m,v,g,y,b,x,w=e.data,C=null===w||void 0===w||null===(t=w.review)||void 0===t?void 0:t.score,j=null===w||void 0===w||null===(n=w.review)||void 0===n?void 0:n.oldPlatform,S=[{title:"Execution",rate:null===C||void 0===C?void 0:C.qualityScore,description:(0,rs.oN)(null===C||void 0===C?void 0:C.qualityText)},{title:"Budget",rate:null===C||void 0===C?void 0:C.budgetScore,description:(0,rs.oN)(null===C||void 0===C?void 0:C.budgetText)},{title:"Schedule",rate:null===C||void 0===C?void 0:C.scheduleScore,description:(0,rs.oN)(null===C||void 0===C?void 0:C.scheduleText)},{title:"Recommend to others",rate:null===C||void 0===C?void 0:C.recommendationScore,description:(0,rs.oN)(null===C||void 0===C?void 0:C.recommendationText)}];return(0,u.jsxs)(nn.Z,{width:"100%",children:[w.review&&w.status===Kt.U_.Verified&&(0,u.jsxs)(nn.Z,{width:"100%",py:4,children:[(0,u.jsxs)(nn.Z,{width:"100%",alignItems:"center",direction:"row",justifyContent:"space-between",pb:2,children:[(0,u.jsxs)(nn.Z,{sx:{fill:tr.IV[500]},mb:1.375,alignItems:"center",direction:"row",children:[(0,u.jsx)(VPe,{}),(0,u.jsx)(rn.Z,{color:"primaryDark.500",variant:"heading5",ml:1.375,children:"Client Review"})]}),(0,u.jsxs)(rn.Z,{color:"primaryDark.500",variant:"body3",mr:1.375,sx:{display:"flex",alignItems:"center",gap:1},children:["Total Score",(0,u.jsx)(Cme,{displayName:"score",id:w.caseStudy,resource:"case-studies",variant:"heading3",color:"secondaryBlue.700"})]})]}),!j&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(rn.Z,{mb:1.5,color:"primaryDark.600",variant:"body3",children:['"',null===w||void 0===w||null===(r=w.review)||void 0===r?void 0:r.summarization,'"']}),(0,u.jsx)(TAe,{feedback:S})]})]}),(0,u.jsxs)(nn.Z,{direction:"row",width:"100%",py:2,children:[(0,u.jsx)(eqe,{label:"services",choices:Kt.Sj,values:null===w||void 0===w||null===(o=w.details)||void 0===o?void 0:o.services}),0!==(null===w||void 0===w||null===(i=w.details.platforms)||void 0===i?void 0:i.length)&&(0,u.jsx)(eqe,{label:"tech platforms",choices:T$.VA,values:null===w||void 0===w||null===(a=w.details)||void 0===a?void 0:a.platforms})]}),0===(null===w||void 0===w||null===(s=w.details.tools)||void 0===s?void 0:s.length)&&0===(null===w||void 0===w||null===(l=w.details.languages)||void 0===l?void 0:l.length)?(0,u.jsx)(un,{sx:{display:"none"}}):(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{direction:"row",width:"100%",py:2,children:[0!==(null===w||void 0===w||null===(c=w.details.tools)||void 0===c?void 0:c.length)&&(0,u.jsx)(eqe,{label:"tech tools",choices:T$.oz,values:null===w||void 0===w||null===(d=w.details)||void 0===d?void 0:d.tools}),0!==(null===w||void 0===w||null===(p=w.details.languages)||void 0===p?void 0:p.length)&&(0,u.jsx)(eqe,{label:"Programming languages",choices:T$.G3,values:null===w||void 0===w||null===(f=w.details)||void 0===f?void 0:f.languages})]}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{direction:"row",width:"100%",py:2,children:[(0,u.jsx)(eqe,{label:"industry",choices:Kt.lu,values:null===w||void 0===w||null===(h=w.details)||void 0===h?void 0:h.industries}),(0,u.jsx)(eqe,{label:"Target market",choices:Kt.NF,values:null===w||void 0===w||null===(m=w.details)||void 0===m?void 0:m.geographyFocus})]}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{width:"100%",py:2,children:[(0,u.jsx)(Cd,{text:"Project size"}),(0,u.jsx)(rn.Z,{variant:"heading4",children:null!==w&&void 0!==w&&null!==(v=w.details)&&void 0!==v&&v.projectSize?Kt.Dw.get(w.details.projectSize):"--"})]}),(0,u.jsx)(da.Z,{sx:{m:4,borderRadius:"3px",maxWidth:"100%"},component:"img",src:null===w||void 0===w?void 0:w.file}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{py:2,spacing:1,children:[(0,u.jsxs)(nn.Z,{direction:"row",spacing:1,children:[(0,u.jsx)(bI,{fill:tr.IV[500]}),(0,u.jsx)(Cd,{text:"Project goals"})]}),(0,u.jsx)(m$,{items:A$,content:null===w||void 0===w||null===(g=w.description)||void 0===g?void 0:g.goals,isEditable:!1},"goals")]}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{py:2,spacing:1,children:[(0,u.jsxs)(nn.Z,{direction:"row",spacing:1,children:[(0,u.jsx)(aqe,{fill:tr.IV[500]}),(0,u.jsx)(Cd,{text:"challenges"})]}),(0,u.jsx)(m$,{items:A$,content:null===w||void 0===w||null===(y=w.description)||void 0===y?void 0:y.challenges,isEditable:!1},"challenges")]}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{py:2,spacing:1,children:[(0,u.jsxs)(nn.Z,{direction:"row",spacing:1,children:[(0,u.jsx)(fqe,{fill:tr.IV[500]}),(0,u.jsx)(Cd,{text:"solution"})]}),(0,u.jsx)(m$,{items:A$,content:null===w||void 0===w||null===(b=w.description)||void 0===b?void 0:b.solutions,isEditable:!1},"solutions")]}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{py:2,mb:8,spacing:1,children:[(0,u.jsxs)(nn.Z,{direction:"row",spacing:1,children:[(0,u.jsx)(LAe,{fill:tr.IV[500]}),(0,u.jsx)(Cd,{text:"Results"})]}),(0,u.jsx)(m$,{items:A$,content:null===w||void 0===w||null===(x=w.description)||void 0===x?void 0:x.results,isEditable:!1},"results")]})]})}),mqe=["title","titleId"];function vqe(){return vqe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vqe.apply(this,arguments)}function gqe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function yqe(e,t){var n=e.title,r=e.titleId,i=gqe(e,mqe);return o.createElement("svg",vqe({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,dqe||(dqe=o.createElement("path",{d:"M9.99935 1.66602C5.39685 1.66602 1.66602 5.39685 1.66602 9.99935C1.66602 10.926 1.89352 11.8419 2.18685 12.7077L1.90019 13.9577C1.19769 16.7677 3.17185 18.8027 5.98935 18.0985L7.21269 17.8119C8.10769 18.1244 9.07018 18.3327 9.99935 18.3327C14.6018 18.3327 18.3327 14.6019 18.3327 9.99935C18.3327 5.39685 14.6018 1.66602 9.99935 1.66602Z",fill:"current"})),pqe||(pqe=o.createElement("path",{d:"M10.0036 5.83398C9.7895 5.83391 9.57087 5.97301 9.44138 6.24989L8.64492 7.96234L6.82947 8.23142C6.24563 8.31625 6.05648 8.91441 6.4781 9.34442L7.78988 10.6779L7.48538 12.5495C7.38511 13.1553 7.86627 13.5215 8.38726 13.2344C8.58856 13.1232 9.6236 12.5632 10.0036 12.3536L11.6199 13.2344C12.1415 13.5215 12.6242 13.1557 12.5218 12.5495L12.2055 10.6779L13.5174 9.34442C13.941 8.91598 13.7616 8.31797 13.1777 8.23142L11.3505 7.96234L10.5658 6.24989C10.4365 5.97289 10.2177 5.8341 10.0036 5.83398Z",fill:"white"})))}var bqe,xqe,wqe,Cqe=o.forwardRef(yqe),jqe=(n.p,function(e){var t=e.setIsOpen,n=e.isOpen;Xc().getValues;return(0,u.jsx)(ys,{open:n,onClose:function(){return t(!1)},width:"45%",disablePortal:!0,children:(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",alignItems:"center",children:[(0,u.jsx)(nn.Z,{alignItems:"center",justifyContent:"center",sx:{bgcolor:"#E5E8FF",width:"fit-content",height:"fit-content",borderRadius:"6px",p:2},children:(0,u.jsx)(j0,{fill:tr.dx[700],style:{width:24,height:24}})}),(0,u.jsx)(rn.Z,{variant:"heading3",color:"primaryDark.600",children:"Case study review request"})]}),(0,u.jsx)(un,{}),(0,u.jsx)(rn.Z,{color:"primaryDark.500",pb:2,children:"Your buyer contact will be notified of the review request as soon as it is submitted. The review's authenticity will need to be verified by Spona before it is published on the platform."}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{sx:{justifyContent:"end"},spacing:2,direction:"row",children:[(0,u.jsx)(Wo,{variant:"secondary",onClick:function(){return t(!1)},children:"Cancel"}),(0,u.jsx)(Wo,{variant:"primary",type:"submit",children:"Submit"})]})]})})}),Sqe=function(e){var t=e.data,n=e.setShowReviewForm,r=(0,o.useState)(!1),i=(0,Le.Z)(r,2),a=i[0],s=i[1],c=(0,Ms.J)(),d=oa({resource:"case-studies/"+t.caseStudy+"/request-review"}).mutate,p=fd({defaultValues:{companyName:"",firstName:"",email:"",companyWebsite:"",lastName:"",jobTitle:""},mode:"all"});return(0,u.jsxs)(nn.Z,{pt:4,spacing:1,pb:4,children:[(0,u.jsxs)(nn.Z,{pl:2,direction:"row",spacing:1,alignItems:"center",children:[(0,u.jsx)(Cqe,{fill:tr.IV[500]}),(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.500",children:"request review"})]}),(0,u.jsx)(rn.Z,{variant:"body3",pb:2,pl:2,color:"primaryDark.500",children:"Please fill in information about your partner company."}),(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},p),{},{children:(0,u.jsxs)("form",{onSubmit:p.handleSubmit((function(e){d((0,l.Z)({},e),{onSuccess:function(){s(!1),n(!1),c()}})})),children:[(0,u.jsxs)(nn.Z,{direction:"row",width:"100%",children:[(0,u.jsxs)(nn.Z,{width:"100%",px:2,spacing:4,sx:{borderRight:"1px solid ".concat(tr.dx[100])},children:[(0,u.jsx)(Zd,{name:"companyName",label:"Company name",placeholder:"Company name",required:!0},"companyName"),(0,u.jsx)(Zd,{required:!0,name:"firstName",label:"first Name",placeholder:"First name"},"firstName"),(0,u.jsx)(Zd,{required:!0,name:"email",label:"Email",placeholder:"Email",type:"email"},"email")]}),(0,u.jsxs)(nn.Z,{width:"100%",px:2,spacing:4,children:[(0,u.jsx)(Zd,{required:!0,name:"companyWebsite",label:"company WEBSITE",placeholder:"Company website"},"companyWebsite"),(0,u.jsx)(Zd,{required:!0,name:"lastName",label:"last name",placeholder:"Last name"},"lastName"),(0,u.jsx)(Zd,{required:!0,name:"jobTitle",label:"job title",placeholder:"Job title"},"jobTitle")]})]}),(0,u.jsx)(jqe,{isOpen:a,setIsOpen:s}),(0,u.jsxs)(nn.Z,{direction:"row",my:4,justifyContent:"end",spacing:2,children:[(0,u.jsx)(Wo,{variant:"secondary",onClick:function(){return n(!1)},startIcon:(0,u.jsx)(LR,{fill:tr.IV[700],width:"12px"}),children:"Back to case study"}),(0,u.jsx)(Wo,{disabled:!p.formState.isValid,onClick:function(){return s(!0)},children:"proceed"})]})]})}))]})},kqe=function(e){var t=e.open,n=e.setIsOpen,r=e.item,i=e.showReviewForm,a=e.setShowReviewForm,s=e.drawerWidth,l=void 0===s?"40%":s,c=Yd(),d=null===c||void 0===c?void 0:c.includes(Kt.ks.Buyer),p=(0,o.useState)(!1),f=(0,Le.Z)(p,2),h=f[0],m=f[1],v=Ra({id:r.content,resource:"case-studies-content",enabled:!!r}).data;return(0,u.jsxs)(ec,{anchor:"right",open:t,disableScrollLock:!0,onClose:function(){n(!1),a(!1)},hideBackdrop:!0,elevation:4,PaperProps:{sx:{boxShadow:"1px 10px 30px rgba(56, 69, 114, 0.1)",width:l,mt:"".concat(bR,"px"),height:"calc(100vh - ".concat(bR,"px)")}},children:[(0,u.jsx)(U.Z,{onClickAway:function(){n(!1),a(!1)},children:(0,u.jsxs)(nn.Z,{p:3,children:[(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",gap:2,children:[(0,u.jsx)(rn.Z,{variant:"heading3",color:"primaryDark.600",children:null===v||void 0===v?void 0:v.title}),(0,u.jsx)(io.Z,{onClick:function(){return n(!1)},sx:{p:0,height:"fit-content"},children:(0,u.jsx)(X2,{fill:tr.IV[500]})})]}),(0,u.jsx)(rn.Z,{variant:"body3",pt:4,color:"primaryDark.500",children:(0,rs.qJ)(null===v||void 0===v?void 0:v.published,"---")}),!d&&(0,u.jsx)(nn.Z,{direction:"row",pt:3,alignItems:"center",justifyContent:"space-between",children:!i&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(nn.Z,{direction:"row",gap:4,alignItems:"center",children:(0,u.jsx)(Wo,{disabled:(null===v||void 0===v?void 0:v.status)===Kt.U_.Pending,variant:"primaryText",endIcon:(0,u.jsx)(fSe,{fill:tr.IV[500]}),sx:{color:"primaryDark.500"},href:"./edit/".concat(null===v||void 0===v?void 0:v.caseStudy),children:"edit"})}),r.status===Kt.U_.Published&&(0,u.jsx)(Wo,{onClick:function(){return a(!0)},endIcon:(0,u.jsx)(TR,{fill:"white"}),children:"request review"})]})}),(0,u.jsx)(un,{sx:{mt:5}}),!i&&v&&(0,u.jsx)(hqe,{data:v}),i&&(0,u.jsx)(Sqe,{data:v,setShowReviewForm:a})]})}),(0,u.jsx)($Ue,{setIsOpen:m,isOpen:h,id:r.id})]})},Zqe=function(e){var t=e.item,n=(0,o.useState)(!1),r=(0,Le.Z)(n,2),i=r[0],a=r[1],s=(0,o.useState)(!1),l=(0,Le.Z)(s,2),c=l[0],d=l[1],p=(0,o.useState)(!1),f=(0,Le.Z)(p,2),h=f[0],m=f[1],v=t.status===Kt.U_.Published,g=t.status===Kt.U_.Verified,y=function(){return(0,u.jsx)(ns,{placement:"top",title:"The case study has been edited. Changes need to be approved before being be applied.",children:(0,u.jsx)(nn.Z,{pr:1,children:(0,u.jsx)(G0,{fill:tr.IV[500],height:"16px"})})})},b=(0,ze.s0)();return(0,u.jsxs)(NZ,{sx:{boxShadow:"6px 6px 15px rgba(56, 69, 114, 0.1)",borderRadius:"12px",position:"relative",height:"19rem"},children:[(0,u.jsxs)(nAe,{sx:{height:"100%",display:"flex",flexDirection:"column",justifyContent:"space-between"},disableRipple:!0,onClick:function(){return a(!0)},children:[(0,u.jsx)(qUe,{component:"img",height:"190px",image:null===t||void 0===t?void 0:t.file,alt:"Case study card"}),(0,u.jsx)(lAe,{sx:{height:"5rem",width:"100%"},children:(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.500",children:(0,rs.$G)(null===t||void 0===t?void 0:t.title,100)}),(0,u.jsx)(Dk,{menuItemsContents:[{key:"edit",text:"Edit",onClick:function(){return b("./edit/".concat(null===t||void 0===t?void 0:t.id))},disabled:t.status===Kt.U_.Pending}]})]})}),(0,u.jsxs)(QUe,{sx:{p:2,pt:0,width:"100%",height:"10%"},children:[v&&(0,u.jsx)(Wo,{variant:"primaryText",onClick:function(e){e.stopPropagation(),m(!0),a(!0)},endIcon:(0,u.jsx)(TR,{fill:tr.E4[500]}),children:"request review"}),g&&(0,u.jsx)(AAe,{showSingle:!0,rating:null===t||void 0===t?void 0:t.score})]})]}),(0,u.jsx)(EI,{text:null===t||void 0===t?void 0:t.status,chipProps:{onDelete:t.edit?function(){}:void 0,deleteIcon:(0,u.jsx)(y,{})},sx:{position:"absolute",top:0,left:0,borderRadius:0,borderBottomRightRadius:"3px"}}),(0,u.jsx)($Ue,{setIsOpen:d,isOpen:c,id:t.id}),(0,u.jsx)(kqe,{setShowReviewForm:m,showReviewForm:h,setIsOpen:a,open:i,item:t})]})},Oqe=["resultCount","selectedTab","value","label"],Eqe=function(e){var t=e.resultCount,n=e.selectedTab,r=e.value,o=e.label,i=Nn(e,Oqe);return(0,u.jsx)(N1,(0,l.Z)((0,l.Z)({},i),{},{value:r,disableRipple:!0,sx:{p:0,mx:1,minHeight:"2rem",minWidth:0,"&.Mui-selected":{p:0}},icon:(0,u.jsx)(_1,{resultCount:t,value:r,selectedTab:n,label:o})},i))},Dqe=function(e){var t=e.value,n=e.data;return(0,u.jsxs)(U1,{value:t,sx:{overflow:"hidden",bgcolor:"white",p:0,pt:0,position:"relative",minHeight:"10rem"},children:[(0,u.jsx)(kn,{container:!0,spacing:3,pt:4,children:null===n||void 0===n?void 0:n.map((function(e,t){return(0,u.jsx)(kn,{item:!0,xs:3,mb:1,children:(0,u.jsx)(Zqe,{item:e})},e.id)}))}),!(null!==n&&void 0!==n&&n.length)&&(0,u.jsx)(RI,{})]})},Pqe=new Map([["-created","Date created - Last"],["created","Date created - First"],["title","Alphabetical A-Z"],["-title","Alphabetical Z-A"],["published","Last published - First"],["-published","Last published - Last"]]),Aqe=Pqe.keys().next().value,Mqe=function(){var e,t,n,r,i,a,s=Pa(),l=(0,o.useState)("-1"),c=(0,Le.Z)(l,2),d=c[0],p=c[1],f=(0,o.useState)(Aqe),h=(0,Le.Z)(f,2),m=h[0],v=h[1],g=(0,o.useState)(!1),y=(0,Le.Z)(g,2),b=y[0],x=y[1],w=(0,o.useState)(!1),C=(0,Le.Z)(w,2),j=C[0],S=C[1],k=(0,ze.s0)(),Z=(0,o.useState)(""),O=(0,Le.Z)(Z,2),E=O[0],D=O[1],P=hi({resource:"/case-studies?orderBy=".concat(m,"&company=").concat(null===s||void 0===s||null===(e=s.membership)||void 0===e?void 0:e.company),enabled:!!s}).data,A=Ra({resource:"case-studies",id:E,enabled:!!E.length,onSuccess:function(){S(!0),x(!0)}}).data,M=hi({resource:"/case-studies?status=".concat(Kt.U_.Published,"&orderBy=").concat(m,"&company=").concat(null===s||void 0===s||null===(t=s.membership)||void 0===t?void 0:t.company),enabled:!!s,refetchOnMount:!1,refetchOnWindowFocus:!1}).data,T=hi({resource:"/case-studies?status=".concat(Kt.U_.Pending,"&orderBy=").concat(m,"&company=").concat(null===s||void 0===s||null===(n=s.membership)||void 0===n?void 0:n.company),enabled:!!s,refetchOnMount:!1,refetchOnWindowFocus:!1}).data,I=hi({resource:"/case-studies?status=".concat(Kt.U_.Draft,"&orderBy=").concat(m,"&company=").concat(null===s||void 0===s||null===(r=s.membership)||void 0===r?void 0:r.company),enabled:!!s,refetchOnMount:!1,refetchOnWindowFocus:!1}).data,R=hi({resource:"/case-studies?status=".concat(Kt.U_.UnderReview,"&orderBy=").concat(m,"&company=").concat(null===s||void 0===s||null===(i=s.membership)||void 0===i?void 0:i.company),enabled:!!s,refetchOnMount:!1,refetchOnWindowFocus:!1}).data,F=hi({resource:"/case-studies?status=".concat(Kt.U_.Verified,"&orderBy=").concat(m,"&company=").concat(null===s||void 0===s||null===(a=s.membership)||void 0===a?void 0:a.company),enabled:!!s,refetchOnMount:!1,refetchOnWindowFocus:!1}).data;return(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(p5,{screen:Kt.Cx.CaseStudyScreen,customAction:{action:function(e){var t,n;D(null===e||void 0===e||null===(t=e.data)||void 0===t||null===(n=t.ids)||void 0===n?void 0:n.caseStudyId)},subcategory:Kt.OH.BannerCaseStudyApproved}}),(0,u.jsx)(nn.Z,{direction:"row",alignItems:"center",justifyContent:"flex-end",children:(0,u.jsx)(Wo,{onClick:function(){return k("./create")},variant:"primaryLight",sx:{height:"3rem"},startIcon:(0,u.jsx)(D0,{width:"20px",height:"20px"}),children:"new case study"})}),(0,u.jsx)(nn.Z,{direction:"row",spacing:2,children:(0,u.jsx)(nn.Z,{direction:"column",sx:{width:"100%"},children:(0,u.jsx)(da.Z,{sx:{width:"100%",height:"fit-content",position:"relative"},children:(0,u.jsx)(o1,{value:d,children:(0,u.jsxs)(nn.Z,{sx:{width:"100%"},children:[(0,u.jsxs)(nn.Z,{sx:{width:"100%"},direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,u.jsxs)(T1,{value:d,onChange:function(e,t){e.stopPropagation(),p(t)},"aria-label":"secondary tabs example",sx:{mt:2,p:0,zIndex:1},TabIndicatorProps:{style:{display:"none"}},children:[(0,u.jsx)(Eqe,{resultCount:null===P||void 0===P?void 0:P.data.count,value:"-1",selectedTab:d,label:"All"}),(0,u.jsx)(Eqe,{resultCount:null===F||void 0===F?void 0:F.data.count,value:"-5",selectedTab:d,label:"Verified"}),(0,u.jsx)(Eqe,{resultCount:null===R||void 0===R?void 0:R.data.count,value:"-6",selectedTab:d,label:"Under review"}),(0,u.jsx)(Eqe,{resultCount:null===M||void 0===M?void 0:M.data.count,value:"-2",selectedTab:d,label:"Published"}),(0,u.jsx)(Eqe,{resultCount:null===T||void 0===T?void 0:T.data.count,value:"-3",selectedTab:d,label:"Pending"}),(0,u.jsx)(Eqe,{resultCount:null===I||void 0===I?void 0:I.data.count,value:"-4",selectedTab:d,label:"Draft"})]}),(0,u.jsx)(TSe,{setSort:v,sort:m,sortingMap:Pqe})]}),(0,u.jsx)(Dqe,{value:"-1",data:null===P||void 0===P?void 0:P.data.results}),(0,u.jsx)(Dqe,{data:null===M||void 0===M?void 0:M.data.results,value:"-2"}),(0,u.jsx)(Dqe,{data:null===T||void 0===T?void 0:T.data.results,value:"-3"}),(0,u.jsx)(Dqe,{data:null===I||void 0===I?void 0:I.data.results,value:"-4"}),(0,u.jsx)(Dqe,{data:null===R||void 0===R?void 0:R.data.results,value:"-6"}),(0,u.jsx)(Dqe,{data:null===F||void 0===F?void 0:F.data.results,value:"-5"})]})})})})}),A&&(0,u.jsx)(kqe,{setShowReviewForm:S,showReviewForm:j,setIsOpen:x,open:b,item:A})]})})},Tqe=function(e){var t=e.title,n=e.content,r=e.image,o=e.contentButton,i=e.sx,a=e.contentOrder,s=void 0===a?"textThenImage":a,c=e.contentStyles,d=e.contentSpacing,p=e.alt,f=(0,ze.s0)();return(0,u.jsx)(nn.Z,{children:(0,u.jsxs)(u.Fragment,{children:["textThenImage"===s&&(0,u.jsxs)(nn.Z,{spacing:12,direction:{xs:"column",md:"row"},justifyContent:"space-between",sx:(0,l.Z)((0,l.Z)({},ar),i),children:[(0,u.jsxs)(nn.Z,{spacing:(0,l.Z)({xs:4,lg:1},d),justifyContent:"space-evenly",sx:(0,l.Z)({maxWidth:{xs:"100%",md:"75%"}},c),children:[(0,u.jsx)(rn.Z,{sx:{typography:{xs:"publicHeading4",lg:"publicHeading3"}},children:t}),(0,u.jsx)(rn.Z,{variant:"publicBody4Regular",color:"common.black",children:n}),o&&(0,u.jsx)(Wo,{onClick:function(){return f(o.to)},variant:"primaryText",endIcon:o.withArrowRightIcon?(0,u.jsx)(TR,{fill:o.color}):null,sx:{color:o.color,fontSize:"1rem"},children:o.text})]}),(0,u.jsx)(tn,{alt:p,component:"img",src:r,sx:{height:"100%",width:{xs:"80%",lg:"auto"},alignSelf:{xs:"center",lg:""}}})]}),"imageThenText"===s&&(0,u.jsxs)(nn.Z,{spacing:12,direction:{xs:"column-reverse",md:"row"},justifyContent:"space-between",sx:(0,l.Z)((0,l.Z)({},ar),i),children:[(0,u.jsx)(tn,{component:"img",src:r,height:"100%",alt:p}),(0,u.jsxs)(nn.Z,{spacing:(0,l.Z)({xs:4,lg:1},d),justifyContent:"space-evenly",sx:(0,l.Z)({maxWidth:{xs:"100%",md:"75%"}},c),children:[(0,u.jsx)(rn.Z,{sx:{typography:{xs:"publicHeading4",lg:"publicHeading3"}},children:t}),(0,u.jsx)(rn.Z,{variant:"publicBody4Regular",color:"common.black",children:n}),o&&(0,u.jsx)(Wo,{onClick:function(){return f(o.to)},variant:"primaryText",endIcon:o.withArrowRightIcon?(0,u.jsx)(TR,{fill:o.color}):null,sx:{color:o.color,fontSize:"1rem"},children:o.text})]})]})]})})},Iqe=function(e){var t=e.title,n=e.content,r=e.bgcolor,o=e.color,i=e.titleStyles,a=e.sx;return(0,u.jsxs)(nn.Z,{alignItems:"center",spacing:3,sx:(0,l.Z)({width:{xs:"100%",lg:"50%"},p:6,borderRadius:"12px",bgcolor:r,color:o,boxShadow:"1px 10px 30px 0px rgba(56, 69, 114, 0.10)"},a),children:[(0,u.jsx)(rn.Z,{variant:"publicHeading4",sx:(0,l.Z)({textAlign:"center"},i),children:t}),"string"===typeof n?(0,u.jsx)(rn.Z,{variant:"publicBody4Regular",textAlign:"center",children:n}):n]})},Rqe=function(e){var t=e.title,n=e.firstCard,r=e.secondCard;return(0,u.jsxs)(nn.Z,{spacing:7,alignItems:"center",justifyContent:"center",sx:(0,l.Z)({my:10,mb:16},ar),children:[t&&(0,u.jsx)(rn.Z,{sx:{typography:{xs:"publicHeading4",lg:"publicHeading3"},textAlign:{xs:"center",lg:"start"}},children:t}),(0,u.jsxs)(nn.Z,{width:"100%",direction:{xs:"column",lg:"row"},children:[(0,u.jsx)(Iqe,(0,l.Z)((0,l.Z)({},n),{},{sx:(0,l.Z)({borderRadius:"12px 0px 0px 12px"},n.sx)})),(0,u.jsx)(Iqe,(0,l.Z)((0,l.Z)({},r),{},{sx:(0,l.Z)({borderRadius:"0px 12px 12px 0px"},r.sx)}))]})]})},Fqe=function(e){var t=e.image,n=e.bgcolor,r=e.title,o=e.subtitle,i=e.showDotsPattern,a=void 0!==i&&i;return(0,u.jsx)(nn.Z,{sx:{position:"relative",background:t?"url(".concat(t,")"):n,height:"100vh",backgroundRepeat:"no-repeat",backgroundPosition:"right",backgroundSize:"cover","&::before":{content:'""',position:"absolute",top:0,right:0,left:0,bottom:0,width:"100%",height:"100%",background:a?"radial-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px)":"none",backgroundSize:a?"60px 60px":"auto"}},justifyContent:"center",children:(0,u.jsxs)(nn.Z,{spacing:4,sx:(0,l.Z)({pt:"".concat(rc,"px")},ar),children:[(0,u.jsx)(rn.Z,{sx:{typography:{xs:"publicHeadline9",lg:"publicHeadline6"},maxWidth:{xs:"100%",xxl:"80%"}},color:"common.white",whiteSpace:"pre-wrap",children:r}),(0,u.jsx)(rn.Z,{variant:"publicBody3Regular",color:"common.white",maxWidth:{xs:"100%",lg:"45%"},children:o})]})})},Bqe=function(e){var t=e.title,n=void 0===t?"The Future of Smart Managing":t,r=e.subtitle,o=void 0===r?"Get one project management tool that does it all.":r,i=e.textAndIcons,a=e.bgcolor,s=void 0===a?tr.NP[101]:a;return(0,u.jsx)(nn.Z,{width:"100%",bgcolor:s,sx:{position:"relative",py:{xs:"25%",sm:"10%"}},children:(0,u.jsxs)(nn.Z,{spacing:10,sx:(0,l.Z)({},ar),children:[(0,u.jsxs)(nn.Z,{spacing:1,children:[(0,u.jsx)(rn.Z,{sx:{typography:{xs:"publicHeading4",lg:"publicHeading2"}},children:n}),(0,u.jsx)(rn.Z,{color:"common.black",sx:{typography:{xs:"publicBody4Regular",lg:"publicBody3Regular"}},children:o})]}),(0,u.jsx)(nn.Z,{rowGap:10,columnGap:"150px",direction:"row",flexWrap:"wrap",children:i.map((function(e){var t=e.title,n=e.Icon,r=e.iconColor,o=e.content;return(0,u.jsxs)(nn.Z,{spacing:2,width:{xs:"100%",md:"35%"},sx:{zIndex:3},children:[(0,u.jsx)(n,{fill:r,style:{width:"54px"}}),(0,u.jsxs)(rn.Z,{component:"span",color:"common.black",sx:{typography:{xs:"publicBody5Regular",sm:"publicBody4Regular"}},children:[(0,u.jsx)(rn.Z,{component:"span",color:"common.black",sx:{typography:{xs:"publicBody5Regular",sm:"publicBody4Regular"},fontFamily:"Gellix-SemiBold !important"},children:(0,rs.Bp)(t).firstWord})," ",(0,rs.Bp)(t).restOfWords]}),(0,u.jsx)(rn.Z,{color:"common.black",variant:"publicBody4Regular",children:o})]})}))})]})})},Lqe=["title","titleId"];function Nqe(){return Nqe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nqe.apply(this,arguments)}function _qe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function zqe(e,t){var n=e.title,r=e.titleId,i=_qe(e,Lqe);return o.createElement("svg",Nqe({width:65,height:65,viewBox:"0 0 65 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,bqe||(bqe=o.createElement("circle",{cx:32.5,cy:32.5,r:32.5,fill:"current"})),xqe||(xqe=o.createElement("circle",{cx:32.4976,cy:32.3443,r:20.7857,stroke:"#F6F7FF",strokeWidth:3})),wqe||(wqe=o.createElement("circle",{cx:32.4976,cy:32.3443,r:9.28571,fill:"#F6F7FF"})))}var Hqe,Wqe,Vqe,Uqe,qqe,Gqe=o.forwardRef(zqe),Yqe=(n.p,["title","titleId"]);function Kqe(){return Kqe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kqe.apply(this,arguments)}function Jqe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Xqe(e,t){var n=e.title,r=e.titleId,i=Jqe(e,Yqe);return o.createElement("svg",Kqe({width:65,height:65,viewBox:"0 0 65 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,Hqe||(Hqe=o.createElement("circle",{cx:32.5,cy:32.5,r:32.5,fill:"current"})),Wqe||(Wqe=o.createElement("rect",{x:18.5674,y:20.2695,width:12.0714,height:12.0714,rx:4,fill:"#F6F7FF"})),Vqe||(Vqe=o.createElement("rect",{x:18.5674,y:35.125,width:12.0714,height:12.0714,rx:4,fill:"#F6F7FF"})),Uqe||(Uqe=o.createElement("rect",{x:34.354,y:20.2695,width:12.0714,height:12.0714,rx:4,fill:"#F6F7FF"})),qqe||(qqe=o.createElement("rect",{x:34.354,y:35.125,width:12.0714,height:12.0714,rx:4,fill:"#F6F7FF"})))}var Qqe,$qe,eGe=o.forwardRef(Xqe),tGe=(n.p,["title","titleId"]);function nGe(){return nGe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nGe.apply(this,arguments)}function rGe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function oGe(e,t){var n=e.title,r=e.titleId,i=rGe(e,tGe);return o.createElement("svg",nGe({width:65,height:65,viewBox:"0 0 65 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,Qqe||(Qqe=o.createElement("circle",{cx:32.5,cy:32.5,r:32.5,fill:"current"})),$qe||($qe=o.createElement("path",{d:"M45.1546 21L32.4536 18C30.1203 18.5 23.9643 19.8 19.1643 21C18.1423 37 21.8195 44 32.1328 48.5C41.1328 44.5 46.1328 37.5 45.1546 21Z",fill:"#F6F7FF"})))}var iGe,aGe,sGe=o.forwardRef(oGe),lGe=(n.p,["title","titleId"]);function cGe(){return cGe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cGe.apply(this,arguments)}function uGe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function dGe(e,t){var n=e.title,r=e.titleId,i=uGe(e,lGe);return o.createElement("svg",cGe({width:65,height:65,viewBox:"0 0 65 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,iGe||(iGe=o.createElement("circle",{cx:32.5,cy:32.5,r:32.5,fill:"current"})),aGe||(aGe=o.createElement("path",{d:"M21.5046 30.5264C21.7483 31.0349 22.2676 31.4362 22.9477 31.4362L26.1332 31.4362C26.1332 34.9331 26.1332 44.8388 26.1332 46.7534C26.1332 47.5989 26.8468 48.2852 27.726 48.2852L37.2827 48.2852C38.1635 48.2852 38.8755 47.5989 38.8755 46.7534L38.8755 31.4362L42.061 31.4362C43.4229 31.4362 44.1412 29.8922 43.2556 28.8997L33.6989 18.1776C33.0634 17.4639 31.9453 17.4639 31.3098 18.1776L21.7531 28.8997C21.3103 29.396 21.2625 30.0194 21.5046 30.5264Z",fill:"#F6F7FF"})))}var pGe,fGe=o.forwardRef(dGe),hGe=(n.p,[{title:"Sign Contracts in Real Time",content:"Spona offers prebuilt digital contract fields so you can quickly finalize the negotiation phase to get a stress-free start on the project. Get full transparency between you and the buyer, sign your contract digitally, edit it at any time, and more.",image:(0,rs.mB)(Wxe.W.SignContractsSeller),contentOrder:"textThenImage",contentButton:{text:"Learn more",color:tr.NP[601],to:"digital-contracts",withArrowRightIcon:!0}},{title:"Track Your Milestones and Tasks",content:"Simplify communication with your buyer by tracking and updating your tasks and milestones. Determine and resolve issues before they escalate with our flagging and approval system.",image:(0,rs.mB)(Wxe.W.ManageMilestonesAndTasksSeller),contentOrder:"imageThenText",contentButton:{text:"Learn more",color:tr.NP[601],to:"milestones-and-tasks",withArrowRightIcon:!0}},{title:"Get Project Reports",content:"Make data-driven estimates on your future schedule and progress. Keeping all parties updated has never been easier thanks to Spona\u2019s project health overviews.",image:(0,rs.mB)(Wxe.W.ProjectReportsSeller),contentOrder:"textThenImage",contentButton:{text:"Learn more",color:tr.NP[601],to:"monitor-your-kpis",withArrowRightIcon:!0}},{title:"Track & Process Payments",content:"Get scheduled payments determined in your digital contract for milestones containing a precise amount of completed tasks. Keep track of your invoices and incoming revenue by checking the payment data on your dashboard.",image:(0,rs.mB)(Wxe.W.TrackAndProcessPaymentsSeller),contentOrder:"imageThenText",contentButton:{text:"Learn more",color:tr.NP[601],to:"payment-processing",withArrowRightIcon:!0}},{title:"Keep in Touch",content:"Stay perfectly in sync with your buyers with updates and notifications from project activities. Contact them at any time through our integrated messaging tool.",image:(0,rs.mB)(Wxe.W.KeepInTouchSeller),contentOrder:"textThenImage",contentButton:{text:"Learn more",color:tr.NP[601],to:"communication",withArrowRightIcon:!0}}]),mGe=function(e){return[{title:"Centralize your projects and suppliers.",content:"Keep all your contracts and projects in one place, simplifying management, problem solving, and insight gathering.",Icon:Gqe,iconColor:e},{title:"Standardize your work.",content:"Across single and multiple projects, keep all facets of your work uniform and easy to understand through our streamlined services.",Icon:eGe,iconColor:e},{title:"Safeguard your data.",content:"No matter which external or internal changes occur, your data will always be safely stored and accessible on your dashboard.",Icon:sGe,iconColor:e},{title:"Optimize your management.",content:"Less excel sheets, emails and calls, plus streamlined payments and contracts means less overhead on projects.",Icon:fGe,iconColor:e}]},vGe=[{title:"Sign Contracts in Real Time",content:"Spona offers prebuilt digital contract fields so you can start working on your project in a matter of days. Get full transparency between you and your digital service seller, sign your contract digitally, edit it at any time, and more.",image:(0,rs.mB)(Wxe.W.SignContractsBuyer),contentOrder:"textThenImage",contentButton:{text:"Learn more",color:tr.dx[601],to:"digital-contracts",withArrowRightIcon:!0}},{title:"Track Your Milestones and Tasks",content:"Get full control of your project operations with milestones and tasks, from the big picture to all day-to-day activities. Spona helps you pinpoint and resolve issues before they escalate.",image:(0,rs.mB)(Wxe.W.ManageMilestonesAndTasksBuyer),contentOrder:"imageThenText",contentButton:{text:"Learn more",color:tr.dx[601],to:"milestones-and-tasks",withArrowRightIcon:!0}},{title:"Get Project Reports",content:"Get immediate feedback on your seller\u2019s performance. Access consolidated, fully digital data on all your projects, from budget, schedule and quality to scope.",image:(0,rs.mB)(Wxe.W.ProjectReportsBuyer),contentOrder:"textThenImage",contentButton:{text:"Learn more",color:tr.dx[601],to:"monitor-your-kpis",withArrowRightIcon:!0}},{title:"Track & Process Payments",content:"Allocate your payments in your digital contract around the scope of your milestones. Get valuable insights on optimal cost allocation and maximize your investments with payment reports.",image:(0,rs.mB)(Wxe.W.TrackAndProcessPaymentsBuyer),contentOrder:"imageThenText",contentButton:{text:"Learn more",color:tr.dx[601],to:"payment-processing",withArrowRightIcon:!0}},{title:"Keep in Touch",content:"All of your digital service sellers are available for contact on your platform. Get daily updates and notifications and keep your finger on the pulse of your project.",image:(0,rs.mB)(Wxe.W.KeepInTouchBuyer),contentOrder:"textThenImage",contentButton:{text:"Learn more",color:tr.dx[601],to:"communication",withArrowRightIcon:!0}}],gGe={title:"Spona - The Ultimate Project Management Tool is here",description:"End-to-End Project Management is our all-in-one project management tool. Sign contracts, Track project milestones get reports and pay, all in one place."},yGe=function(){var e=(0,ze.s0)();return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Kwe,(0,l.Z)({},gGe)),(0,u.jsxs)(nn.Z,{overflow:"hidden",width:"100%",children:[(0,u.jsx)(Fqe,{bgcolor:tr.NP[401],title:"The Ultimate Project Management Tool Is Here",subtitle:"End-to-End Project Management is our all-in-one project management tool. It is designed to support successful project completion and smooth development with comprehensive features that make all phases of the process streamlined and convenient."}),(0,u.jsx)(nn.Z,{spacing:10,sx:{mt:12},children:hGe.map((function(e){var t=e.title,n=e.content,r=e.image,o=e.contentOrder,i=e.contentButton;return(0,u.jsx)(Tqe,{title:t,content:n,image:r,contentOrder:o,contentButton:i})}))}),(0,u.jsx)(Rqe,{title:"How much does it cost?",firstCard:{title:"For Spona users",content:"End-to-End Project Management is a free service for users that have published a project and hired a digital service seller over Spona, for the duration of that project.",bgcolor:"white",color:"black"},secondCard:{title:"For End-to-End Project Management users",content:"End-to-End Project Management is a paid service for users that already have a contract with a seller and are interested only in investing in a management tool.",bgcolor:tr.NP[101],color:"black"}}),(0,u.jsx)(Bqe,{textAndIcons:mGe(tr.NP[401])}),(0,u.jsx)(tn,{sx:{mt:"9rem"},children:(0,u.jsx)(Ywe,{title:"See our pricing plans",subtitle:"Choose the plan that fits your needs best and get started with Spona today.",bgcolor:"secondaryOrange.501",onButtonClick:function(){return e("/how-to-manage-seller/pricing")}})})]})]})},bGe=function(e){var t=e.name,n=Xc(),r=n.setValue,o=n.control,i=n.trigger,a=cu({control:o,name:t}),s=cu({control:o,name:"fileName"});return(0,u.jsx)(nn.Z,{width:"50%",height:"fit-content",sx:{p:2,py:1,mt:1,textAlign:"center",backgroundColor:"secondaryGreen.100",borderRadius:"0.5rem"},spacing:2,children:(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",alignItems:"stretch",children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",justifyContent:"left",spacing:1,children:[(0,u.jsx)(tn,{component:"img",src:URL.createObjectURL(a),sx:{maxWidth:"4rem",maxHeight:"4rem",objectFit:"contain",borderRadius:"4px",p:0}}),(0,u.jsxs)(nn.Z,{alignItems:"start",spacing:1,children:[(0,u.jsxs)(nn.Z,{alignItems:"start",direction:"row",children:[(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.600",fontWeight:600,children:s&&(0,rs.$G)(s,30)}),(0,u.jsx)(io.Z,{sx:{height:"10px",pointerEvents:"none"},children:(0,u.jsx)(M2,{})})]}),(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.500",children:(0,rs.td)(a.size)})]})]}),(0,u.jsx)(io.Z,{onClick:function(){r("file",void 0),i("file")},disableRipple:!0,disableTouchRipple:!0,sx:{mb:1,p:0,pt:0},children:(0,u.jsx)(X2,{fill:tr.IV[500]})})]})})},xGe=function(){var e=Xc(),t=e.control,n=e.setValue,r=(e.watch,e.formState.errors),o=cu({control:t,name:"file"}),i=null===r||void 0===r?void 0:r.title,a=null===r||void 0===r?void 0:r.file;return(0,u.jsxs)(nn.Z,{direction:"column",spacing:5,children:[(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(jVe,{label:"Case study title",name:"title",placeholder:"YOUR TITLE",required:!0,inputProps:{maxLength:100}}),i&&(0,u.jsx)(rn.Z,{color:"secondaryPink.500",variant:"body4",sx:{alignSelf:"start",display:"block",margin:"12px 0"},children:"This field is required"})]}),(0,u.jsxs)(nn.Z,{direction:"row",spacing:3,children:[(0,u.jsx)(E$,{name:"file",required:!0,dropzoneText:"Drag your file here or ",dropzoneHighlightText:"browse",onUpload:function(e,t){var r=null===e||void 0===e?void 0:e[0];r&&(t(r),n("fileName",r.name))},sx:{minWidth:"50%"},dropzoneProps:{multiple:!1}}),o&&(0,u.jsx)(bGe,{name:"file"}),a&&(0,u.jsx)(rn.Z,{color:"secondaryPink.500",variant:"body4",sx:{alignSelf:"start",display:"block",margin:"12px 0"},children:"This field is required"})]})]})},wGe=function(){return(0,u.jsxs)(nn.Z,{direction:"column",spacing:5,children:[(0,u.jsx)(g$,{label:"Project goals",name:"description.goals",items:A$,required:!0},"goals"),(0,u.jsx)(g$,{label:"Challenges",name:"description.challenges",items:A$,required:!0},"challenges"),(0,u.jsx)(g$,{label:"solution",name:"description.solutions",items:A$,required:!0},"solutions"),(0,u.jsx)(g$,{label:"Results",name:"description.results",items:A$,required:!0},"results")]})},CGe=function(){return(0,u.jsxs)(nn.Z,{direction:"row",spacing:5,width:"100%",children:[(0,u.jsxs)(nn.Z,{spacing:3,direction:"column",width:"50%",gap:1,children:[(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Autocomplete,{}),name:"details.services",label:"services",required:!0,multiple:!0,withChips:!0,choices:Kt.Sj,placeholder:"Select provided services"}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Autocomplete,{}),multiple:!0,withChips:!0,name:"details.tools",label:"Tech Tools",choices:T$.oz,placeholder:"Select used tools"}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Autocomplete,{}),multiple:!0,withChips:!0,name:"details.platforms",label:"Tech Platform",choices:T$.VA,placeholder:"Select used platforms"}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Autocomplete,{}),name:"details.languages",multiple:!0,withChips:!0,label:"Programming languages",choices:T$.G3,placeholder:"Select used languages"})]}),(0,u.jsx)(un,{orientation:"vertical",flexItem:!0}),(0,u.jsxs)(nn.Z,{spacing:3,direction:"column",width:"50%",gap:1,children:[(0,u.jsxs)(nn.Z,{direction:"row",children:[(0,u.jsx)(nn.Z,{sx:{width:"min-width"},children:(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Select,{}),name:"details.currency",choices:Kt.f,label:"Project size",required:!0})}),(0,u.jsx)(nn.Z,{sx:{flex:1},children:(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Select,{}),name:"details.projectSize",required:!0,label:"\u200c",choices:Kt.Dw,placeholder:"Select project size"})})]}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Autocomplete,{}),multiple:!0,withChips:!0,name:"details.geographyFocus",label:"Target Market",required:!0,choices:Kt.NF,placeholder:"Select target market"}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Autocomplete,{}),name:"details.industries",label:"Client Industry",multiple:!0,required:!0,withChips:!0,choices:Kt.lu,placeholder:"Select client industry"})]})]})},jGe=function(){var e=Xc().getValues;return(0,u.jsxs)(nn.Z,{direction:"column",spacing:1,width:"70",border:"1px solid",borderColor:"secondaryBlue.100",sx:{background:"linear-gradient(240.98deg, rgba(230, 232, 255, 0.2) 0%, rgba(255, 234, 225, 0.2) 68.46%, rgba(255, 251, 234, 0.2) 99.58%)"},children:[(0,u.jsx)(da.Z,{sx:{m:4,borderRadius:"3px",maxWidth:"100%"},component:"img",src:URL.createObjectURL(e("file"))}),(0,u.jsxs)(nn.Z,{py:2,px:3,children:[(0,u.jsxs)(nn.Z,{direction:"row",spacing:1,children:[(0,u.jsx)(bI,{fill:tr.IV[500]}),(0,u.jsx)(Cd,{text:"Project goals"})]}),(0,u.jsx)(g$,{name:"description.goals",items:A$,isEditable:!1,sx:{".ProseMirror":{color:"#384572"},mt:1.5}},"goals")]}),(0,u.jsxs)(nn.Z,{py:2,px:3,children:[(0,u.jsxs)(nn.Z,{direction:"row",spacing:1,children:[(0,u.jsx)(aqe,{fill:tr.IV[500]}),(0,u.jsx)(Cd,{text:"Challenges"})]}),(0,u.jsx)(g$,{isEditable:!1,name:"description.challenges",items:A$,sx:{".ProseMirror":{color:"#384572"},mt:1.5}},"challenges")]}),(0,u.jsxs)(nn.Z,{py:2,px:3,children:[(0,u.jsxs)(nn.Z,{direction:"row",spacing:1,children:[(0,u.jsx)(fqe,{fill:tr.IV[500]}),(0,u.jsx)(Cd,{text:"solution"})]}),(0,u.jsx)(g$,{name:"description.solutions",items:A$,isEditable:!1,sx:{".ProseMirror":{color:"#384572"},mt:1.5}},"solutions")]}),(0,u.jsxs)(nn.Z,{py:2,px:3,children:[(0,u.jsxs)(nn.Z,{direction:"row",spacing:1,children:[(0,u.jsx)(LAe,{fill:tr.IV[500]}),(0,u.jsx)(Cd,{text:"Results"})]}),(0,u.jsx)(g$,{isEditable:!1,name:"description.results",items:A$,sx:{".ProseMirror":{color:"#384572"},mt:1.5}},"results")]})]})},SGe=function(e){var t=e.form;return(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsxs)(nn.Z,{direction:"row",p:1.5,justifyContent:"space-between",sx:{backgroundColor:"primaryDark.200",borderRadius:"3px"},children:[(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.500",children:"created"}),(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.600",children:(0,rs.qJ)(new Date)})]}),(0,u.jsx)(kGe,{label:"Buyer industry",name:"details.industries",choices:Kt.lu}),(0,u.jsx)(kGe,{label:"Services",name:"details.services",choices:Kt.Sj}),0!==t.getValues("details.platforms").length&&(0,u.jsx)(kGe,{label:"tech platforms",name:"details.platforms",choices:T$.VA}),0!==t.getValues("details.tools").length&&(0,u.jsx)(kGe,{label:"tech tools",name:"details.tools",choices:T$.oz}),0!==t.getValues("details.languages").length&&(0,u.jsx)(kGe,{label:"Programming languages",name:"details.languages",choices:T$.G3}),(0,u.jsx)(kGe,{label:"Target market",name:"details.geographyFocus",choices:Kt.NF}),(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(Cd,{text:"Project size"}),(0,u.jsx)(nn.Z,{direction:"row",gap:1,flexWrap:"wrap",children:t.watch("details.projectSize")&&(0,u.jsx)(Fd.Z,{sx:ZGe,label:Kt.Dw.get(t.watch("details.projectSize"))})})]})]})},kGe=function(e){var t,n=e.label,r=e.name,o=e.choices,i=Xc().watch;return(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(Cd,{text:n}),(0,u.jsx)(nn.Z,{direction:"row",gap:1,flexWrap:"wrap",children:null===(t=i(r))||void 0===t?void 0:t.map((function(e){return(0,u.jsx)(Fd.Z,{sx:ZGe,label:o.get(e)})}))})]})},ZGe={padding:"6px 6px",fontSize:"11px",fontWeight:600,color:tr.IV[500],textTransform:"uppercase",letterSpacing:"0.05em",lineHeight:"16px",borderRadius:"3px",background:tr.IV[200]},OGe=["title","titleId"];function EGe(){return EGe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},EGe.apply(this,arguments)}function DGe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function PGe(e,t){var n=e.title,r=e.titleId,i=DGe(e,OGe);return o.createElement("svg",EGe({width:22,height:20,viewBox:"0 0 22 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,pGe||(pGe=o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.04507 1.66602C5.43711 1.66602 4.10938 2.80799 4.10938 4.24627V14.518C4.10938 15.9562 5.43711 17.0982 7.04507 17.0982H10.1833C9.26609 16.3222 8.63492 15.2376 8.46289 14.0118H8.23023C7.77529 14.0118 7.40606 13.6661 7.40606 13.2402C7.40606 12.8142 7.77529 12.4686 8.23023 12.4686H8.49252C8.59165 11.918 8.78387 11.3983 9.05291 10.9253H8.23023C7.77529 10.9253 7.40606 10.5797 7.40606 10.1537C7.40606 9.72779 7.77529 9.38211 8.23023 9.38211H10.4153C11.2902 8.72435 12.3894 8.33268 13.5831 8.33268C14.9536 8.33268 16.268 8.85947 17.2371 9.79715C17.2569 9.81635 17.2766 9.8357 17.2961 9.85518V7.06728V7.04336C17.2961 4.29411 14.4618 1.66602 11.5269 1.66602H7.04507ZM12.3511 3.30569C13.8115 3.66834 15.1665 4.93224 15.5447 6.29567H13.6384C12.9057 6.29567 12.3511 5.80956 12.3511 5.25863V3.30569ZM8.23023 6.29567H9.0544C9.50934 6.29567 9.87857 6.64135 9.87857 7.06728C9.87857 7.49321 9.50934 7.83889 9.0544 7.83889H8.23023C7.77529 7.83889 7.40606 7.49321 7.40606 7.06728C7.40606 6.64135 7.77529 6.29567 8.23023 6.29567ZM9.27688 13.1987C9.27688 10.9716 11.1428 9.16602 13.4446 9.16602C15.7463 9.16602 17.6123 10.9716 17.6123 13.1987C17.6123 14.1247 17.2872 14.9987 16.745 15.6792L19.0287 17.877C19.2321 18.0741 19.2321 18.4048 19.0287 18.6019C18.8252 18.7985 18.4832 18.7985 18.2797 18.6019L16.0118 16.389C15.3084 16.9132 14.4014 17.2313 13.4446 17.2313C11.1428 17.2313 9.27688 15.4257 9.27688 13.1987ZM16.5704 13.1987C16.5704 11.5281 15.1709 10.1742 13.4446 10.1742C11.7183 10.1742 10.3188 11.5281 10.3188 13.1987C10.3188 14.8692 11.7183 16.2232 13.4446 16.2232C15.1709 16.2232 16.5704 14.8692 16.5704 13.1987Z",fill:"current"})))}var AGe,MGe=o.forwardRef(PGe),TGe=(n.p,["title","titleId"]);function IGe(){return IGe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IGe.apply(this,arguments)}function RGe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function FGe(e,t){var n=e.title,r=e.titleId,i=RGe(e,TGe);return o.createElement("svg",IGe({width:18,height:18,viewBox:"0 0 18 18",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,AGe||(AGe=o.createElement("path",{d:"M0 4C0 1.791 1.791 0 4 0H9.125C8.47 0.846 8 1.847 8 3V10H5L9 14L13 10H10V3C10 1.343 11.343 0 13 0H14C16.209 0 18 1.791 18 4V14C18 16.209 16.209 18 14 18H4C1.791 18 0 16.209 0 14V4Z",fill:"current"})))}var BGe,LGe=o.forwardRef(FGe),NGe=(n.p,{create:{title:" Case study under review",text:"Your case study needs to be reviewed by the Spona editorial team before it is published on the platform. You will be notified when the review process is complete.",icon:(0,u.jsx)(MGe,{fill:tr.dx[700],style:{width:24,height:24}}),wrapperBackgroundColor:tr.dx[100]},edit:{title:"Case study edit under review",text:"Spona will be reviewing the changes to your case study shortly.",icon:(0,u.jsx)(MGe,{fill:tr.dx[700],style:{width:24,height:24}}),wrapperBackgroundColor:tr.dx[100]},draft:{title:"Save draft",text:"Save your case study as draft to continue editing it later.",icon:(0,u.jsx)(LGe,{fill:tr.dx[700],style:{width:24,height:24}}),wrapperBackgroundColor:tr.dx[100]},error:{title:"Error",text:"Something went wrong. Please try again later.",icon:(0,u.jsx)(V2,{fill:tr.Us[700],style:{width:24,height:24}}),wrapperBackgroundColor:tr.Us[100]},cancel:{title:"Cancel Form",text:"You are coming out of the creative form. Your recorded data will be lost.",icon:(0,u.jsx)(X2,{fill:tr.dx[700],style:{width:24,height:24}}),wrapperBackgroundColor:tr.dx[100]}}),_Ge=function(e){var t=e.isOpen,n=e.setIsOpen,r=e.type,o=e.errorMessage,i=e.onConfirm,a=o||NGe[r].text,s=(0,ze.s0)(),l=i||function(){return s("../")};return(0,u.jsx)(y4,{isModalOpen:t,setIsModalOpen:n,title:NGe[r].title,message:(0,u.jsx)(rn.Z,{color:"primaryDark.500",lineHeight:"21px",children:a}),confirmButtonText:"draft"===r?"Confirm":"cancel"===r?"Proceed":"Close",onConfirm:l,iconProps:{icon:NGe[r].icon,wrapperBackgroundColor:NGe[r].wrapperBackgroundColor},showCancelButton:"draft"===r||"cancel"===r,onCancel:function(){return n(!1)}})},zGe=["projectSize"],HGe=["file","fileName","details"],WGe={file:void 0,fileName:"",title:"",description:{goals:"",challenges:"",solutions:"",results:""},details:{services:[],languages:[],industries:[],projectSize:"",platforms:[],tools:[],geographyFocus:[],currency:Kt.CF.Usd}},VGe=["General","Content","Details","Preview"],UGe=["The maximum character count for your case study title is 100 characters. The suggested dimensions for your featured image are 1920x900 pixels.","Create and format the main body of your case study here. You can attach links and add visual media such as photos or videos to each subsection.","",""],qGe=function(){var e=qR({labels:VGe,initialState:WGe}),t=e.currentStep,n=e.steps,r=e.onStepChange,i=e.form,a=(0,ze.UO)().caseStudyId,s=oa({resource:"case-studies"}),c=s.mutate,d=s.isLoading,p=(0,As.Z)({resource:"case-studies"}),f=p.mutate,h=p.isLoading,m=Ra({id:a,resource:"case-studies",enabled:!!a}).data,v=Ra({id:null!==m&&void 0!==m&&m.edit?null===m||void 0===m?void 0:m.edit:null===m||void 0===m?void 0:m.content,resource:"case-studies-content",enabled:!!m}).data,g=(0,o.useState)(!1),y=(0,Le.Z)(g,2),b=y[0],x=y[1],w=(0,o.useState)(!1),C=(0,Le.Z)(w,2),j=C[0],S=C[1],k=(0,o.useState)(!1),Z=(0,Le.Z)(k,2),O=Z[0],E=Z[1],D=(0,o.useState)(!1),P=(0,Le.Z)(D,2),A=P[0],M=P[1],T=(0,o.useState)(!1),I=(0,Le.Z)(T,2),R=I[0],F=I[1],B=(0,o.useState)(""),L=(0,Le.Z)(B,2),N=L[0],_=L[1],z=(0,ze.s0)(),H=function(){var e=ds(hs().mark((function e(t,n){var r,o,s,u,d,p,h,v,g;return hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.file,o=t.fileName,s=t.details,u=s.projectSize,d=Nn(s,zGe),p=Nn(t,HGe),e.next=3,r?(0,rs.y3)(r):null;case 3:h=e.sent,v=(0,l.Z)((0,l.Z)((0,l.Z)({},p),{},{details:(0,l.Z)((0,l.Z)({},d),""!==u&&{projectSize:u})},i.getFieldState("file").isDirty&&r&&{file:h,fileName:o}),{},{requestPublish:!n}),g={onSuccess:function(){n?(E(!1),z("../")):a&&(null===m||void 0===m?void 0:m.status)!==Kt.U_.Draft?S(!0):x(!0)},onError:function(e){var t;_(null===(t=e.response)||void 0===t?void 0:t.data.message),n&&E(!1),M(!0)}},a?f({data:v,id:a},g):c(v,g);case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return(0,o.useEffect)((function(){var e=function(){var e=ds(hs().mark((function e(){var t,n,r;return hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!v){e.next=10;break}return e.next=3,fetch(v.file);case 3:return n=e.sent,e.next=6,n.blob();case 6:r=e.sent,v.file&&(t=new File([r],v.fileName)),i.reset((0,l.Z)((0,l.Z)({},v),{},{file:t})),i.trigger();case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[v]),(0,u.jsxs)(tn,{sx:{width:4===t?"100%":"70%"},children:[(0,u.jsx)(UR,{form:i,steps:n,currentStep:t,onChange:r,onSubmit:function(e){return H(e,!1)},onSaveAsDraft:function(){return E(!0)},layoutOrientation:4===t?"row":"column",onCancelClick:function(){return F(!0)},helperText:(0,rs.DI)(t,UGe),rightColumnRenderProp:function(){return(0,u.jsx)(SGe,{form:i})},isSubmitLoading:d||h,children:(0,u.jsxs)(u.Fragment,{children:[1===t&&(0,u.jsx)(xGe,{}),2===t&&(0,u.jsx)(wGe,{}),3===t&&(0,u.jsx)(CGe,{}),4===t&&(0,u.jsx)(jGe,{})]})}),(0,u.jsx)(_Ge,{type:"create",isOpen:b,setIsOpen:x}),(0,u.jsx)(_Ge,{type:"edit",isOpen:j,setIsOpen:S}),(0,u.jsx)(_Ge,{type:"draft",isOpen:O,setIsOpen:E,onConfirm:function(){H(i.getValues(),!0)}}),(0,u.jsx)(_Ge,{type:"error",isOpen:A,setIsOpen:M,errorMessage:N}),(0,u.jsx)(_Ge,{type:"cancel",isOpen:R,setIsOpen:F})]})},GGe=["title","titleId"];function YGe(){return YGe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YGe.apply(this,arguments)}function KGe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function JGe(e,t){var n=e.title,r=e.titleId,i=KGe(e,GGe);return o.createElement("svg",YGe({width:20,height:20,viewBox:"0 0 20 20",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,BGe||(BGe=o.createElement("path",{d:"M10.001 1.67847C9.12263 1.67847 8.2493 2.02431 7.5793 2.69431L2.68347 7.59013C1.34347 8.93096 1.34347 11.0935 2.68347 12.4343L7.5793 17.3301C8.92013 18.6701 11.0826 18.6701 12.4235 17.3301L17.3193 12.4343C18.6593 11.0935 18.6593 8.93096 17.3193 7.59013L12.4235 2.69431C11.7526 2.02431 10.8793 1.67847 10.001 1.67847ZM10.001 5.84513C10.4618 5.84513 10.8343 6.21847 10.8343 6.67847V10.8451C10.8343 11.306 10.4618 11.6785 10.001 11.6785C9.54096 11.6785 9.16763 11.306 9.16763 10.8451V6.67847C9.16763 6.21847 9.54096 5.84513 10.001 5.84513ZM10.001 12.5118C10.4618 12.5118 10.8343 12.8851 10.8343 13.3451C10.8343 13.806 10.4618 14.1785 10.001 14.1785C9.54096 14.1785 9.16763 13.806 9.16763 13.3451C9.16763 12.8851 9.54096 12.5118 10.001 12.5118Z",fill:"#FF4085"})))}var XGe=o.forwardRef(JGe),QGe=(n.p,(0,o.createContext)({})),$Ge=QGe,eYe=function(e){var t=e.children,n=(0,o.useState)({open:!1,type:void 0,content:""}),r=(0,Le.Z)(n,2),i=r[0],a=r[1],s=function(e,t){"clickaway"!==t&&a((0,l.Z)((0,l.Z)({},i),{},{open:!1}))},c={success:function(e){return a({open:!0,type:"success",content:e})},error:function(e){a({open:!0,type:"error",content:e})},warning:function(e){a({open:!0,type:"warning",content:e})}},d={display:"flex",alignItems:"center",background:"error"===i.type?"#FFF2F4":"#F5FED4",".MuiAlert-message":{fontSize:"14px",fontFamily:"Gellix-Bold",color:"#384572",lineHeight:"16px",letterSpacing:"0.6px"}},p={width:"20px",height:"20px"};return(0,u.jsxs)(QGe.Provider,{value:{notify:c},children:[t,(0,u.jsx)(WDe,{open:i.open,anchorOrigin:{horizontal:"right",vertical:"top"},autoHideDuration:3e3,onClose:s,children:(0,u.jsx)("div",{children:(0,u.jsx)(oPe,{sx:d,severity:i.type,iconMapping:{success:(0,u.jsx)(AWe,{style:p}),error:(0,u.jsx)(XGe,{style:p})},action:(0,u.jsx)(sPe.Z,{style:(0,l.Z)((0,l.Z)({},p),{},{cursor:"pointer",fill:"#384572"}),onClick:s}),children:i.content})})})]})};var tYe=function(){return(0,o.useContext)($Ge)},nYe=function(){var e,t,n,r,i=(0,ze.UO)(),a=(tYe().notify,(0,ze.s0)()),s=(0,o.useState)(!1),l=(0,Le.Z)(s,2),c=l[0],d=l[1],p=Ra({resource:"timed-projects",id:i.projectId}).data,f=zp({resource:"timed-project-contents/".concat(null===p||void 0===p?void 0:p.content),enabled:!(null===p||void 0===p||!p.content)}).data,h=(zk({resource:"timed-projects"}).mutate,[{key:"edit",icon:(0,u.jsx)(G5,{fill:tr.IV[500],style:{width:18,height:18}}),text:"Edit",onClick:function(){return a("/dashboard/timed-projects/".concat(i.projectId,"/edit"))}},{key:"delete",icon:(0,u.jsx)(k5,{fill:tr.IV[500],style:{width:18,height:18}}),text:"Delete",onClick:function(){}}]),m="draft"===(null===p||void 0===p?void 0:p.edit_status)||null===(null===p||void 0===p?void 0:p.edit_status)&&["draft","active"].includes((null===p||void 0===p?void 0:p.status)||"")?h:h.slice(1);return(0,u.jsxs)(nn.Z,{direction:"row",children:[(0,u.jsx)(nn.Z,{spacing:10,width:"50%",children:(0,u.jsxs)(nn.Z,{spacing:1,direction:"row",children:[(0,u.jsx)(nn.Z,{justifyContent:"flex-end",children:(0,u.jsx)(Dk,{menuItemsContents:m})}),(0,u.jsxs)(nn.Z,{spacing:.5,pb:"1px",children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",children:(0,u.jsx)(EI,{text:null===f||void 0===f?void 0:f.data.status})}),(0,u.jsxs)(rn.Z,{variant:"heading1",color:"primaryDark.600",sx:{display:"flex",alignItems:"center",gap:"10px"},fontSize:28,children:[null===f||void 0===f?void 0:f.data.body.overview.name,(0,u.jsx)(io.Z,{sx:{borderRadius:"3px",bgcolor:"#E6E8FF"},onClick:function(){return d(!0)},children:(0,u.jsx)(yM,{fill:"#4051EC"})})]})]})]})}),(0,u.jsxs)(nn.Z,{spacing:10,width:"50%",children:[(0,u.jsxs)(nn.Z,{spacing:1,direction:"row",justifyContent:"end",children:[(0,u.jsx)(S3,{date:null!==(e=null===p||void 0===p?void 0:p.published)&&void 0!==e?e:null,text:"PUBLISHED ON",sx:{width:"159px"}}),(null===p||void 0===p?void 0:p.status)===Kt.Tl.Closed?(0,u.jsx)(S3,{date:null!==(t=null===p||void 0===p?void 0:p.closed)&&void 0!==t?t:null,variant:"end",text:"CLOSED ON",sx:{width:"159px"}}):(0,u.jsx)(S3,{date:null!==(n=null===p||void 0===p?void 0:p.pitchDeadline)&&void 0!==n?n:null,variant:"end",text:"CLOSES ON",sx:{width:"159px"}})]}),(0,u.jsxs)(nn.Z,{spacing:1,direction:"row",children:[(0,u.jsxs)(nn.Z,{width:"33%",spacing:1,children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",children:"seller location"}),(0,u.jsx)(rn.Z,{variant:"body1",color:"primaryDark.700",fontWeight:"600",children:T$.TQ.get(null!==(r=null===f||void 0===f?void 0:f.data.body.skills.providerScope)&&void 0!==r?r:Kt.rd.Undefined)})]}),(0,u.jsxs)(nn.Z,{width:"33%",spacing:1,children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",children:"project type"}),(0,u.jsx)(rn.Z,{variant:"body1",color:"primaryDark.700",fontWeight:"600",children:null!==f&&void 0!==f&&f.data.body.budget.recurring?"Recurring":"One-time"})]}),(0,u.jsxs)(nn.Z,{width:"33%",spacing:1,children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",children:"budget"}),(0,u.jsx)(rn.Z,{variant:"body1",color:"primaryDark.600",fontWeight:"600",children:null!=(null===f||void 0===f?void 0:f.data.body.budget.budget)?(0,rs.xG)(null===f||void 0===f?void 0:f.data.body.budget.budget,null===f||void 0===f?void 0:f.data.body.budget.currency):"-"})]})]})]}),(0,u.jsx)(gTe,{timedProject:null===f||void 0===f?void 0:f.data,open:c,onClose:function(){return d(!1)}})]})};var rYe="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement;function oYe(e){var t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function iYe(e){return"nodeType"in e}function aYe(e){var t,n;return e?oYe(e)?e:iYe(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function sYe(e){return e instanceof aYe(e).Document}function lYe(e){return!oYe(e)&&e instanceof aYe(e).HTMLElement}function cYe(e){return e?oYe(e)?e.document:iYe(e)?sYe(e)?e:lYe(e)?e.ownerDocument:document:document:document}var uYe=rYe?o.useLayoutEffect:o.useEffect;function dYe(e){var t=(0,o.useRef)(e);return uYe((function(){t.current=e})),(0,o.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current.apply(t,n)}),[])}function pYe(e,t){void 0===t&&(t=[e]);var n=(0,o.useRef)(e);return uYe((function(){n.current!==e&&(n.current=e)}),t),n}function fYe(e,t){var n=(0,o.useRef)();return(0,o.useMemo)((function(){var t=e(n.current);return n.current=t,t}),(0,dn.Z)(t))}function hYe(e){var t=dYe(e),n=(0,o.useRef)(null),r=(0,o.useCallback)((function(e){e!==n.current&&(null==t||t(e,n.current)),n.current=e}),[]);return[n,r]}function mYe(e){var t=(0,o.useRef)();return(0,o.useEffect)((function(){t.current=e}),[e]),t.current}var vYe={};function gYe(e,t){return(0,o.useMemo)((function(){if(t)return t;var n=null==vYe[e]?0:vYe[e]+1;return vYe[e]=n,e+"-"+n}),[e,t])}function yYe(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((function(t,n){for(var r=0,o=Object.entries(n);r<o.length;r++){var i=(0,Le.Z)(o[r],2),a=i[0],s=i[1],l=t[a];null!=l&&(t[a]=l+e*s)}return t}),(0,l.Z)({},t))}}var bYe=yYe(1),xYe=yYe(-1);function wYe(e){if(!e)return!1;var t=aYe(e.target).KeyboardEvent;return t&&e instanceof t}function CYe(e){if(function(e){if(!e)return!1;var t=aYe(e.target).TouchEvent;return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){var t=e.touches[0];return{x:t.clientX,y:t.clientY}}if(e.changedTouches&&e.changedTouches.length){var n=e.changedTouches[0];return{x:n.clientX,y:n.clientY}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}var jYe=Object.freeze({Translate:{toString:function(e){if(e){var t=e.x,n=e.y;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}}},Scale:{toString:function(e){if(e)return"scaleX("+e.scaleX+") scaleY("+e.scaleY+")"}},Transform:{toString:function(e){if(e)return[jYe.Translate.toString(e),jYe.Scale.toString(e)].join(" ")}},Transition:{toString:function(e){return e.property+" "+e.duration+"ms "+e.easing}}}),SYe="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function kYe(e){return e.matches(SYe)?e:e.querySelector(SYe)}var ZYe={display:"none"};function OYe(e){var t=e.id,n=e.value;return o.createElement("div",{id:t,style:ZYe},n)}var EYe={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};function DYe(e){var t=e.id,n=e.announcement;return o.createElement("div",{id:t,style:EYe,role:"status","aria-live":"assertive","aria-atomic":!0},n)}var PYe,AYe,MYe=["transform"],TYe=["id","accessibility","autoScroll","children","sensors","collisionDetection","measuring","modifiers"],IYe=["active","dragOverlay","transform"],RYe=(0,o.createContext)(null);var FYe,BYe={draggable:"\n    To pick up a draggable item, press the space bar.\n    While dragging, use the arrow keys to move the item.\n    Press space again to drop the item in its new position, or press escape to cancel.\n  "},LYe={onDragStart:function(e){return"Picked up draggable item "+e.active.id+"."},onDragOver:function(e){var t=e.active,n=e.over;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd:function(e){var t=e.active,n=e.over;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel:function(e){return"Dragging was cancelled. Draggable item "+e.active.id+" was dropped."}};function NYe(e){var t=e.announcements,n=void 0===t?LYe:t,r=e.container,i=e.hiddenTextDescribedById,a=e.screenReaderInstructions,s=void 0===a?BYe:a,l=function(){var e=(0,o.useState)(""),t=(0,Le.Z)(e,2),n=t[0],r=t[1],i=(0,o.useCallback)((function(e){null!=e&&r(e)}),[]);return{announce:i,announcement:n}}(),c=l.announce,u=l.announcement,d=gYe("DndLiveRegion"),p=(0,o.useState)(!1),f=(0,Le.Z)(p,2),h=f[0],m=f[1];if((0,o.useEffect)((function(){m(!0)}),[]),function(e){var t=(0,o.useContext)(RYe);(0,o.useEffect)((function(){if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)}),[e,t])}((0,o.useMemo)((function(){return{onDragStart:function(e){var t=e.active;c(n.onDragStart({active:t}))},onDragMove:function(e){var t=e.active,r=e.over;n.onDragMove&&c(n.onDragMove({active:t,over:r}))},onDragOver:function(e){var t=e.active,r=e.over;c(n.onDragOver({active:t,over:r}))},onDragEnd:function(e){var t=e.active,r=e.over;c(n.onDragEnd({active:t,over:r}))},onDragCancel:function(e){var t=e.active,r=e.over;c(n.onDragCancel({active:t,over:r}))}}}),[c,n])),!h)return null;var v=o.createElement(o.Fragment,null,o.createElement(OYe,{id:i,value:s.draggable}),o.createElement(DYe,{id:d,announcement:u}));return r?(0,g.createPortal)(v,r):v}function _Ye(){}function zYe(e,t){return(0,o.useMemo)((function(){return{sensor:e,options:null!=t?t:{}}}),[e,t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(FYe||(FYe={}));var HYe=Object.freeze({x:0,y:0});function WYe(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function VYe(e,t){var n=CYe(e);return n?(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%":"0 0"}function UYe(e,t){return e.data.value-t.data.value}function qYe(e,t){var n=e.data.value;return t.data.value-n}function GYe(e){var t=e.left,n=e.top,r=e.height,o=e.width;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function YYe(e,t){if(!e||0===e.length)return null;var n=(0,Le.Z)(e,1)[0];return t?n[t]:n}var KYe=function(e){var t,n=e.collisionRect,r=e.droppableRects,o=e.droppableContainers,i=GYe(n),a=[],s=_e(o);try{for(s.s();!(t=s.n()).done;){var l=t.value,c=l.id,u=r.get(c);u&&function(){var e=GYe(u),t=i.reduce((function(t,n,r){return t+WYe(e[r],n)}),0),n=Number((t/4).toFixed(4));a.push({id:c,data:{droppableContainer:l,value:n}})}()}}catch(d){s.e(d)}finally{s.f()}return a.sort(UYe)};function JYe(e,t){var n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,s=i-n;if(r<o&&n<i){var l=t.width*t.height,c=e.width*e.height,u=a*s;return Number((u/(l+c-u)).toFixed(4))}return 0}var XYe=function(e){var t,n=e.collisionRect,r=e.droppableRects,o=[],i=_e(e.droppableContainers);try{for(i.s();!(t=i.n()).done;){var a=t.value,s=a.id,l=r.get(s);if(l){var c=JYe(l,n);c>0&&o.push({id:s,data:{droppableContainer:a,value:c}})}}}catch(u){i.e(u)}finally{i.f()}return o.sort(qYe)};function QYe(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:HYe}function $Ye(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((function(t,n){return(0,l.Z)((0,l.Z)({},t),{},{top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})}),(0,l.Z)({},t))}}var eKe=$Ye(1);function tKe(e){if(e.startsWith("matrix3d(")){var t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){var n=e.slice(7,-1).split(/, /);return{x:+n[4],y:+n[5],scaleX:+n[0],scaleY:+n[3]}}return null}var nKe,rKe={ignoreTransform:!1};function oKe(e,t){void 0===t&&(t=rKe);var n=e.getBoundingClientRect();if(t.ignoreTransform){var r=aYe(e).getComputedStyle(e),o=r.transform,i=r.transformOrigin;o&&(n=function(e,t,n){var r=tKe(t);if(!r)return e;var o=r.scaleX,i=r.scaleY,a=r.x,s=r.y,l=e.left-a-(1-o)*parseFloat(n),c=e.top-s-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l}}(n,o,i))}var a=n;return{top:a.top,left:a.left,width:a.width,height:a.height,bottom:a.bottom,right:a.right}}function iKe(e){return oKe(e,{ignoreTransform:!0})}function aKe(e,t){var n=[];return e?function r(o){if(null!=t&&n.length>=t)return n;if(!o)return n;if(sYe(o)&&null!=o.scrollingElement&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!lYe(o)||function(e){return e instanceof aYe(e).SVGElement}(o))return n;if(n.includes(o))return n;var i=aYe(e).getComputedStyle(o);return o!==e&&function(e,t){void 0===t&&(t=aYe(e).getComputedStyle(e));var n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((function(e){var r=t[e];return"string"===typeof r&&n.test(r)}))}(o,i)&&n.push(o),function(e,t){return void 0===t&&(t=aYe(e).getComputedStyle(e)),"fixed"===t.position}(o,i)?n:r(o.parentNode)}(e):n}function sKe(e){var t=aKe(e,1),n=(0,Le.Z)(t,1)[0];return null!=n?n:null}function lKe(e){return rYe&&e?oYe(e)?e:iYe(e)?sYe(e)||e===cYe(e).scrollingElement?window:lYe(e)?e:null:null:null}function cKe(e){return oYe(e)?e.scrollX:e.scrollLeft}function uKe(e){return oYe(e)?e.scrollY:e.scrollTop}function dKe(e){return{x:cKe(e),y:uKe(e)}}function pKe(e){return!(!rYe||!e)&&e===document.scrollingElement}function fKe(e){var t={x:0,y:0},n=pKe(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(nKe||(nKe={}));var hKe={x:.2,y:.2};function mKe(e,t,n,r,o){var i=n.top,a=n.left,s=n.right,l=n.bottom;void 0===r&&(r=10),void 0===o&&(o=hKe);var c=fKe(e),u=c.isTop,d=c.isBottom,p=c.isLeft,f=c.isRight,h={x:0,y:0},m={x:0,y:0},v=t.height*o.y,g=t.width*o.x;return!u&&i<=t.top+v?(h.y=nKe.Backward,m.y=r*Math.abs((t.top+v-i)/v)):!d&&l>=t.bottom-v&&(h.y=nKe.Forward,m.y=r*Math.abs((t.bottom-v-l)/v)),!f&&s>=t.right-g?(h.x=nKe.Forward,m.x=r*Math.abs((t.right-g-s)/g)):!p&&a<=t.left+g&&(h.x=nKe.Backward,m.x=r*Math.abs((t.left+g-a)/g)),{direction:h,speed:m}}function vKe(e){if(e===document.scrollingElement){var t=window,n=t.innerWidth,r=t.innerHeight;return{top:0,left:0,right:n,bottom:r,width:n,height:r}}var o=e.getBoundingClientRect();return{top:o.top,left:o.left,right:o.right,bottom:o.bottom,width:e.clientWidth,height:e.clientHeight}}function gKe(e){return e.reduce((function(e,t){return bYe(e,dKe(t))}),HYe)}function yKe(e,t){if(void 0===t&&(t=oKe),e){var n=t(e),r=n.top,o=n.left,i=n.bottom,a=n.right;sKe(e)&&(i<=0||a<=0||r>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}}var bKe,xKe,wKe=[["x",["left","right"],function(e){return e.reduce((function(e,t){return e+cKe(t)}),0)}],["y",["top","bottom"],function(e){return e.reduce((function(e,t){return e+uKe(t)}),0)}]],CKe=(0,Dh.Z)((function e(t,n){var r=this;(0,Ph.Z)(this,e),this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;var o=aKe(n),i=gKe(o);this.rect=(0,l.Z)({},t),this.width=t.width,this.height=t.height;for(var a=function(){var e,t=(0,Le.Z)(c[s],3),n=t[0],a=t[1],l=t[2],u=_e(a);try{var d=function(){var t=e.value;Object.defineProperty(r,t,{get:function(){var e=l(o),a=i[n]-e;return r.rect[t]+a},enumerable:!0})};for(u.s();!(e=u.n()).done;)d()}catch(p){u.e(p)}finally{u.f()}},s=0,c=wKe;s<c.length;s++)a();Object.defineProperty(this,"rect",{enumerable:!1})})),jKe=function(){function e(t){var n=this;(0,Ph.Z)(this,e),this.target=void 0,this.listeners=[],this.removeAll=function(){n.listeners.forEach((function(e){var t,r;return null==(r=n.target)?void 0:(t=r).removeEventListener.apply(t,(0,dn.Z)(e))}))},this.target=t}return(0,Dh.Z)(e,[{key:"add",value:function(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}]),e}();function SKe(e,t){var n=Math.abs(e.x),r=Math.abs(e.y);return"number"===typeof t?Math.sqrt(Math.pow(n,2)+Math.pow(r,2))>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}function kKe(e){e.preventDefault()}function ZKe(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(bKe||(bKe={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(xKe||(xKe={}));var OKe={start:[xKe.Space,xKe.Enter],cancel:[xKe.Esc],end:[xKe.Space,xKe.Enter]},EKe=function(e,t){var n=t.currentCoordinates;switch(e.code){case xKe.Right:return(0,l.Z)((0,l.Z)({},n),{},{x:n.x+25});case xKe.Left:return(0,l.Z)((0,l.Z)({},n),{},{x:n.x-25});case xKe.Down:return(0,l.Z)((0,l.Z)({},n),{},{y:n.y+25});case xKe.Up:return(0,l.Z)((0,l.Z)({},n),{},{y:n.y-25})}},DKe=function(){function e(t){(0,Ph.Z)(this,e),this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;var n=t.event.target;this.props=t,this.listeners=new jKe(cYe(n)),this.windowListeners=new jKe(aYe(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}return(0,Dh.Z)(e,[{key:"attach",value:function(){var e=this;this.handleStart(),this.windowListeners.add(bKe.Resize,this.handleCancel),this.windowListeners.add(bKe.VisibilityChange,this.handleCancel),setTimeout((function(){return e.listeners.add(bKe.Keydown,e.handleKeyDown)}))}},{key:"handleStart",value:function(){var e=this.props,t=e.activeNode,n=e.onStart,r=t.node.current;r&&yKe(r),n(HYe)}},{key:"handleKeyDown",value:function(e){if(wYe(e)){var t=this.props,n=t.active,r=t.context,o=t.options,i=o.keyboardCodes,a=void 0===i?OKe:i,s=o.coordinateGetter,l=void 0===s?EKe:s,c=o.scrollBehavior,u=void 0===c?"smooth":c,d=e.code;if(a.end.includes(d))return void this.handleEnd(e);if(a.cancel.includes(d))return void this.handleCancel(e);var p=r.current.collisionRect,f=p?{x:p.left,y:p.top}:HYe;this.referenceCoordinates||(this.referenceCoordinates=f);var h=l(e,{active:n,context:r.current,currentCoordinates:f});if(h){var m,v=xYe(h,f),g={x:0,y:0},y=_e(r.current.scrollableAncestors);try{for(y.s();!(m=y.n()).done;){var b=m.value,x=e.code,w=fKe(b),C=w.isTop,j=w.isRight,S=w.isLeft,k=w.isBottom,Z=w.maxScroll,O=w.minScroll,E=vKe(b),D={x:Math.min(x===xKe.Right?E.right-E.width/2:E.right,Math.max(x===xKe.Right?E.left:E.left+E.width/2,h.x)),y:Math.min(x===xKe.Down?E.bottom-E.height/2:E.bottom,Math.max(x===xKe.Down?E.top:E.top+E.height/2,h.y))},P=x===xKe.Right&&!j||x===xKe.Left&&!S,A=x===xKe.Down&&!k||x===xKe.Up&&!C;if(P&&D.x!==h.x){var M=b.scrollLeft+v.x,T=x===xKe.Right&&M<=Z.x||x===xKe.Left&&M>=O.x;if(T&&!v.y)return void b.scrollTo({left:M,behavior:u});g.x=T?b.scrollLeft-M:x===xKe.Right?b.scrollLeft-Z.x:b.scrollLeft-O.x,g.x&&b.scrollBy({left:-g.x,behavior:u});break}if(A&&D.y!==h.y){var I=b.scrollTop+v.y,R=x===xKe.Down&&I<=Z.y||x===xKe.Up&&I>=O.y;if(R&&!v.x)return void b.scrollTo({top:I,behavior:u});g.y=R?b.scrollTop-I:x===xKe.Down?b.scrollTop-Z.y:b.scrollTop-O.y,g.y&&b.scrollBy({top:-g.y,behavior:u});break}}}catch(F){y.e(F)}finally{y.f()}this.handleMove(e,bYe(xYe(h,this.referenceCoordinates),g))}}}},{key:"handleMove",value:function(e,t){var n=this.props.onMove;e.preventDefault(),n(t)}},{key:"handleEnd",value:function(e){var t=this.props.onEnd;e.preventDefault(),this.detach(),t()}},{key:"handleCancel",value:function(e){var t=this.props.onCancel;e.preventDefault(),this.detach(),t()}},{key:"detach",value:function(){this.listeners.removeAll(),this.windowListeners.removeAll()}}]),e}();function PKe(e){return Boolean(e&&"distance"in e)}function AKe(e){return Boolean(e&&"delay"in e)}DKe.activators=[{eventName:"onKeyDown",handler:function(e,t,n){var r=t.keyboardCodes,o=void 0===r?OKe:r,i=t.onActivation,a=n.active,s=e.nativeEvent.code;if(o.start.includes(s)){var l=a.activatorNode.current;return(!l||e.target===l)&&(e.preventDefault(),null==i||i({event:e.nativeEvent}),!0)}return!1}}];var MKe=function(){function e(t,n,r){var o;(0,Ph.Z)(this,e),void 0===r&&(r=function(e){return e instanceof aYe(e).EventTarget?e:cYe(e)}(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;var i=t.event,a=i.target;this.props=t,this.events=n,this.document=cYe(a),this.documentListeners=new jKe(this.document),this.listeners=new jKe(r),this.windowListeners=new jKe(aYe(a)),this.initialCoordinates=null!=(o=CYe(i))?o:HYe,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}return(0,Dh.Z)(e,[{key:"attach",value:function(){var e=this.events,t=this.props.options.activationConstraint;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(bKe.Resize,this.handleCancel),this.windowListeners.add(bKe.DragStart,kKe),this.windowListeners.add(bKe.VisibilityChange,this.handleCancel),this.windowListeners.add(bKe.ContextMenu,kKe),this.documentListeners.add(bKe.Keydown,this.handleKeydown),t){if(PKe(t))return;if(AKe(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay))}this.handleStart()}},{key:"detach",value:function(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}},{key:"handleStart",value:function(){var e=this.initialCoordinates,t=this.props.onStart;e&&(this.activated=!0,this.documentListeners.add(bKe.Click,ZKe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(bKe.SelectionChange,this.removeTextSelection),t(e))}},{key:"handleMove",value:function(e){var t,n=this.activated,r=this.initialCoordinates,o=this.props,i=o.onMove,a=o.options.activationConstraint;if(r){var s=null!=(t=CYe(e))?t:HYe,l=xYe(r,s);if(!n&&a){if(AKe(a))return SKe(l,a.tolerance)?this.handleCancel():void 0;if(PKe(a))return null!=a.tolerance&&SKe(l,a.tolerance)?this.handleCancel():SKe(l,a.distance)?this.handleStart():void 0}e.cancelable&&e.preventDefault(),i(s)}}},{key:"handleEnd",value:function(){var e=this.props.onEnd;this.detach(),e()}},{key:"handleCancel",value:function(){var e=this.props.onCancel;this.detach(),e()}},{key:"handleKeydown",value:function(e){e.code===xKe.Esc&&this.handleCancel()}},{key:"removeTextSelection",value:function(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}]),e}(),TKe={move:{name:"pointermove"},end:{name:"pointerup"}},IKe=function(e){(0,qF.Z)(n,e);var t=(0,GF.Z)(n);function n(e){(0,Ph.Z)(this,n);var r=cYe(e.event.target);return t.call(this,e,TKe,r)}return(0,Dh.Z)(n)}(MKe);IKe.activators=[{eventName:"onPointerDown",handler:function(e,t){var n=e.nativeEvent,r=t.onActivation;return!(!n.isPrimary||0!==n.button)&&(null==r||r({event:n}),!0)}}];var RKe,FKe={move:{name:"mousemove"},end:{name:"mouseup"}};!function(e){e[e.RightClick=2]="RightClick"}(RKe||(RKe={})),(function(e){(0,qF.Z)(n,e);var t=(0,GF.Z)(n);function n(e){return(0,Ph.Z)(this,n),t.call(this,e,FKe,cYe(e.event.target))}return(0,Dh.Z)(n)}(MKe)).activators=[{eventName:"onMouseDown",handler:function(e,t){var n=e.nativeEvent,r=t.onActivation;return n.button!==RKe.RightClick&&(null==r||r({event:n}),!0)}}];var BKe,LKe,NKe={move:{name:"touchmove"},end:{name:"touchend"}},_Ke=function(e){(0,qF.Z)(n,e);var t=(0,GF.Z)(n);function n(e){return(0,Ph.Z)(this,n),t.call(this,e,NKe)}return(0,Dh.Z)(n,null,[{key:"setup",value:function(){return window.addEventListener(NKe.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(NKe.move.name,e)};function e(){}}}]),n}(MKe);function zKe(e){var n=e.acceleration,r=e.activator,i=void 0===r?BKe.Pointer:r,a=e.canScroll,s=e.draggingRect,l=e.enabled,c=e.interval,u=void 0===c?5:c,d=e.order,p=void 0===d?LKe.TreeOrder:d,f=e.pointerCoordinates,h=e.scrollableAncestors,m=e.scrollableAncestorRects,v=e.delta,g=e.threshold,y=function(e){var n=e.delta,r=e.disabled,o=mYe(n);return fYe((function(e){var i,a;if(r||!o||!e)return VKe;var s={x:Math.sign(n.x-o.x),y:Math.sign(n.y-o.y)};return{x:(i={},(0,t.Z)(i,nKe.Backward,e.x[nKe.Backward]||-1===s.x),(0,t.Z)(i,nKe.Forward,e.x[nKe.Forward]||1===s.x),i),y:(a={},(0,t.Z)(a,nKe.Backward,e.y[nKe.Backward]||-1===s.y),(0,t.Z)(a,nKe.Forward,e.y[nKe.Forward]||1===s.y),a)}}),[r,n,o])}({delta:v,disabled:!l}),b=function(){var e=(0,o.useRef)(null),t=(0,o.useCallback)((function(t,n){e.current=setInterval(t,n)}),[]);return[t,(0,o.useCallback)((function(){null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}(),x=(0,Le.Z)(b,2),w=x[0],C=x[1],j=(0,o.useRef)({x:0,y:0}),S=(0,o.useRef)({x:0,y:0}),k=(0,o.useMemo)((function(){switch(i){case BKe.Pointer:return f?{top:f.y,bottom:f.y,left:f.x,right:f.x}:null;case BKe.DraggableRect:return s}}),[i,s,f]),Z=(0,o.useRef)(null),O=(0,o.useCallback)((function(){var e=Z.current;if(e){var t=j.current.x*S.current.x,n=j.current.y*S.current.y;e.scrollBy(t,n)}}),[]),E=(0,o.useMemo)((function(){return p===LKe.TreeOrder?(0,dn.Z)(h).reverse():h}),[p,h]);(0,o.useEffect)((function(){if(l&&h.length&&k){var e,t=_e(E);try{for(t.s();!(e=t.n()).done;){var r=e.value;if(!1!==(null==a?void 0:a(r))){var o=h.indexOf(r),i=m[o];if(i){for(var s=mKe(r,i,k,n,g),c=s.direction,d=s.speed,p=0,f=["x","y"];p<f.length;p++){var v=f[p];y[v][c[v]]||(d[v]=0,c[v]=0)}if(d.x>0||d.y>0)return C(),Z.current=r,w(O,u),j.current=d,void(S.current=c)}}}}catch(b){t.e(b)}finally{t.f()}j.current={x:0,y:0},S.current={x:0,y:0},C()}else C()}),[n,O,a,C,l,u,JSON.stringify(k),JSON.stringify(y),w,h,E,m,JSON.stringify(g)])}_Ke.activators=[{eventName:"onTouchStart",handler:function(e,t){var n=e.nativeEvent,r=t.onActivation;return!(n.touches.length>1)&&(null==r||r({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(BKe||(BKe={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(LKe||(LKe={}));var HKe,WKe,VKe={x:(PYe={},(0,t.Z)(PYe,nKe.Backward,!1),(0,t.Z)(PYe,nKe.Forward,!1),PYe),y:(AYe={},(0,t.Z)(AYe,nKe.Backward,!1),(0,t.Z)(AYe,nKe.Forward,!1),AYe)};!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(HKe||(HKe={})),function(e){e.Optimized="optimized"}(WKe||(WKe={}));var UKe=new Map;function qKe(e,t){return fYe((function(n){return e?n||("function"===typeof t?t(e):e):null}),[t,e])}function GKe(e){var t=e.callback,n=e.disabled,r=dYe(t),i=(0,o.useMemo)((function(){if(!n&&"undefined"!==typeof window&&"undefined"!==typeof window.ResizeObserver)return new(0,window.ResizeObserver)(r)}),[n]);return(0,o.useEffect)((function(){return function(){return null==i?void 0:i.disconnect()}}),[i]),i}function YKe(e){return new CKe(oKe(e),e)}function KKe(e,t,n){void 0===t&&(t=YKe);var r=(0,o.useReducer)((function(r){if(!e)return null;var o;if(!1===e.isConnected)return null!=(o=null!=r?r:n)?o:null;var i=t(e);if(JSON.stringify(r)===JSON.stringify(i))return r;return i}),null),i=(0,Le.Z)(r,2),a=i[0],s=i[1],l=function(e){var t=e.callback,n=e.disabled,r=dYe(t),i=(0,o.useMemo)((function(){if(!n&&"undefined"!==typeof window&&"undefined"!==typeof window.MutationObserver)return new(0,window.MutationObserver)(r)}),[r,n]);return(0,o.useEffect)((function(){return function(){return null==i?void 0:i.disconnect()}}),[i]),i}({callback:function(t){if(e){var n,r=_e(t);try{for(r.s();!(n=r.n()).done;){var o=n.value,i=o.type,a=o.target;if("childList"===i&&a instanceof HTMLElement&&a.contains(e)){s();break}}}catch(l){r.e(l)}finally{r.f()}}}}),c=GKe({callback:s});return uYe((function(){s(),e?(null==c||c.observe(e),null==l||l.observe(document.body,{childList:!0,subtree:!0})):(null==c||c.disconnect(),null==l||l.disconnect())}),[e]),a}var JKe=[];function XKe(e,t){void 0===t&&(t=[]);var n=(0,o.useRef)(null);return(0,o.useEffect)((function(){n.current=null}),t),(0,o.useEffect)((function(){var t=e!==HYe;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)}),[e]),n.current?xYe(e,n.current):HYe}function QKe(e){return(0,o.useMemo)((function(){return e?function(e){var t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null}),[e])}var $Ke=[];function eJe(e){if(!e)return null;if(e.children.length>1)return e;var t=e.children[0];return lYe(t)?t:e}var tJe=[{sensor:IKe,options:{}},{sensor:DKe,options:{}}],nJe={current:{}},rJe={draggable:{measure:iKe},droppable:{measure:iKe,strategy:HKe.WhileDragging,frequency:WKe.Optimized},dragOverlay:{measure:oKe}},oJe=function(e){(0,qF.Z)(n,e);var t=(0,GF.Z)(n);function n(){return(0,Ph.Z)(this,n),t.apply(this,arguments)}return(0,Dh.Z)(n,[{key:"get",value:function(e){var t;return null!=e&&null!=(t=xie((0,yie.Z)(n.prototype),"get",this).call(this,e))?t:void 0}},{key:"toArray",value:function(){return Array.from(this.values())}},{key:"getEnabled",value:function(){return this.toArray().filter((function(e){return!e.disabled}))}},{key:"getNodeFor",value:function(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}]),n}((0,wie.Z)(Map)),iJe={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new oJe,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:_Ye},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:rJe,measureDroppableContainers:_Ye,windowRect:null,measuringScheduled:!1},aJe={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:_Ye,draggableNodes:new Map,over:null,measureDroppableContainers:_Ye},sJe=(0,o.createContext)(aJe),lJe=(0,o.createContext)(iJe);function cJe(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new oJe}}}function uJe(e,t){switch(t.type){case FYe.DragStart:return(0,l.Z)((0,l.Z)({},e),{},{draggable:(0,l.Z)((0,l.Z)({},e.draggable),{},{initialCoordinates:t.initialCoordinates,active:t.active})});case FYe.DragMove:return e.draggable.active?(0,l.Z)((0,l.Z)({},e),{},{draggable:(0,l.Z)((0,l.Z)({},e.draggable),{},{translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}})}):e;case FYe.DragEnd:case FYe.DragCancel:return(0,l.Z)((0,l.Z)({},e),{},{draggable:(0,l.Z)((0,l.Z)({},e.draggable),{},{active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}})});case FYe.RegisterDroppable:var n=t.element,r=n.id,o=new oJe(e.droppable.containers);return o.set(r,n),(0,l.Z)((0,l.Z)({},e),{},{droppable:(0,l.Z)((0,l.Z)({},e.droppable),{},{containers:o})});case FYe.SetDroppableDisabled:var i=t.id,a=t.key,s=t.disabled,c=e.droppable.containers.get(i);if(!c||a!==c.key)return e;var u=new oJe(e.droppable.containers);return u.set(i,(0,l.Z)((0,l.Z)({},c),{},{disabled:s})),(0,l.Z)((0,l.Z)({},e),{},{droppable:(0,l.Z)((0,l.Z)({},e.droppable),{},{containers:u})});case FYe.UnregisterDroppable:var d=t.id,p=t.key,f=e.droppable.containers.get(d);if(!f||p!==f.key)return e;var h=new oJe(e.droppable.containers);return h.delete(d),(0,l.Z)((0,l.Z)({},e),{},{droppable:(0,l.Z)((0,l.Z)({},e.droppable),{},{containers:h})});default:return e}}function dJe(e){var t=e.disabled,n=(0,o.useContext)(sJe),r=n.active,i=n.activatorEvent,a=n.draggableNodes,s=mYe(i),l=mYe(null==r?void 0:r.id);return(0,o.useEffect)((function(){if(!t&&!i&&s&&null!=l){if(!wYe(s))return;if(document.activeElement===s.target)return;var e=a.get(l);if(!e)return;var n=e.activatorNode,r=e.node;if(!n.current&&!r.current)return;requestAnimationFrame((function(){for(var e=0,t=[n.current,r.current];e<t.length;e++){var o=t[e];if(o){var i=kYe(o);if(i){i.focus();break}}}}))}}),[i,t,a,l,s]),null}function pJe(e,t){var n=t.transform,r=Nn(t,MYe);return null!=e&&e.length?e.reduce((function(e,t){return t((0,l.Z)({transform:e},r))}),n):n}var fJe,hJe=(0,o.createContext)((0,l.Z)((0,l.Z)({},HYe),{},{scaleX:1,scaleY:1}));!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(fJe||(fJe={}));var mJe=(0,o.memo)((function(e){var t,n,r,i,a,s=e.id,c=e.accessibility,u=e.autoScroll,d=void 0===u||u,p=e.children,f=e.sensors,h=void 0===f?tJe:f,m=e.collisionDetection,v=void 0===m?XYe:m,y=e.measuring,b=e.modifiers,x=Nn(e,TYe),w=(0,o.useReducer)(uJe,void 0,cJe),C=(0,Le.Z)(w,2),j=C[0],S=C[1],k=function(){var e=(0,o.useState)((function(){return new Set})),t=(0,Le.Z)(e,1)[0],n=(0,o.useCallback)((function(e){return t.add(e),function(){return t.delete(e)}}),[t]),r=(0,o.useCallback)((function(e){var n=e.type,r=e.event;t.forEach((function(e){var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[t]);return[r,n]}(),Z=(0,Le.Z)(k,2),O=Z[0],E=Z[1],D=(0,o.useState)(fJe.Uninitialized),P=(0,Le.Z)(D,2),A=P[0],M=P[1],T=A===fJe.Initialized,I=j.draggable,R=I.active,F=I.nodes,B=I.translate,L=j.droppable.containers,N=R?F.get(R):null,_=(0,o.useRef)({initial:null,translated:null}),z=(0,o.useMemo)((function(){var e;return null!=R?{id:R,data:null!=(e=null==N?void 0:N.data)?e:nJe,rect:_}:null}),[R,N]),H=(0,o.useRef)(null),W=(0,o.useState)(null),V=(0,Le.Z)(W,2),U=V[0],q=V[1],G=(0,o.useState)(null),Y=(0,Le.Z)(G,2),K=Y[0],J=Y[1],X=pYe(x,Object.values(x)),Q=gYe("DndDescribedBy",s),$=(0,o.useMemo)((function(){return L.getEnabled()}),[L]),ee=(a=y,(0,o.useMemo)((function(){return{draggable:(0,l.Z)((0,l.Z)({},rJe.draggable),null==a?void 0:a.draggable),droppable:(0,l.Z)((0,l.Z)({},rJe.droppable),null==a?void 0:a.droppable),dragOverlay:(0,l.Z)((0,l.Z)({},rJe.dragOverlay),null==a?void 0:a.dragOverlay)}}),[null==a?void 0:a.draggable,null==a?void 0:a.droppable,null==a?void 0:a.dragOverlay])),te=function(e,t){var n=t.dragging,r=t.dependencies,i=t.config,a=(0,o.useState)(null),s=(0,Le.Z)(a,2),l=s[0],c=s[1],u=i.frequency,d=i.measure,p=i.strategy,f=(0,o.useRef)(e),h=function(){switch(p){case HKe.Always:return!1;case HKe.BeforeDragging:return n;default:return!n}}(),m=pYe(h),v=(0,o.useCallback)((function(e){void 0===e&&(e=[]),m.current||c((function(t){return null===t?e:t.concat(e.filter((function(e){return!t.includes(e)})))}))}),[m]),g=(0,o.useRef)(null),y=fYe((function(t){if(h&&!n)return UKe;if(!t||t===UKe||f.current!==e||null!=l){var r,o=new Map,i=_e(e);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(a)if(l&&l.length>0&&!l.includes(a.id)&&a.rect.current)o.set(a.id,a.rect.current);else{var s=a.node.current,c=s?new CKe(d(s),s):null;a.rect.current=c,c&&o.set(a.id,c)}}}catch(u){i.e(u)}finally{i.f()}return o}return t}),[e,l,n,h,d]);return(0,o.useEffect)((function(){f.current=e}),[e]),(0,o.useEffect)((function(){h||v()}),[n,h]),(0,o.useEffect)((function(){l&&l.length>0&&c(null)}),[JSON.stringify(l)]),(0,o.useEffect)((function(){h||"number"!==typeof u||null!==g.current||(g.current=setTimeout((function(){v(),g.current=null}),u))}),[u,h,v].concat((0,dn.Z)(r))),{droppableRects:y,measureDroppableContainers:v,measuringScheduled:null!=l}}($,{dragging:T,dependencies:[B.x,B.y],config:ee.droppable}),ne=te.droppableRects,re=te.measureDroppableContainers,oe=te.measuringScheduled,ie=function(e,t){var n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return fYe((function(e){var n;return null===t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(F,R),ae=(0,o.useMemo)((function(){return K?CYe(K):null}),[K]),se=function(){var e=!1===(null==U?void 0:U.autoScrollEnabled),t="object"===typeof d?!1===d.enabled:!1===d,n=T&&!e&&!t;if("object"===typeof d)return(0,l.Z)((0,l.Z)({},d),{},{enabled:n});return{enabled:n}}(),le=function(e,t){return qKe(e,t)}(ie,ee.draggable.measure);!function(e){var t=e.activeNode,n=e.measure,r=e.initialRect,i=e.config,a=void 0===i||i,s=(0,o.useRef)(!1),l="boolean"===typeof a?{x:a,y:a}:a,c=l.x,u=l.y;uYe((function(){if((c||u)&&t){if(!s.current&&r){var e=null==t?void 0:t.node.current;if(e&&!1!==e.isConnected){var o=QYe(n(e),r);if(c||(o.x=0),u||(o.y=0),s.current=!0,Math.abs(o.x)>0||Math.abs(o.y)>0){var i=sKe(e);i&&i.scrollBy({top:o.y,left:o.x})}}}}else s.current=!1}),[t,c,u,r,n])}({activeNode:R?F.get(R):null,config:se.layoutShiftCompensation,initialRect:le,measure:ee.draggable.measure});var ce,ue=KKe(ie,ee.draggable.measure,le),de=KKe(ie?ie.parentElement:null),pe=(0,o.useRef)({activatorEvent:null,active:null,activeNode:ie,collisionRect:null,collisions:null,droppableRects:ne,draggableNodes:F,draggingNode:null,draggingNodeRect:null,droppableContainers:L,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),fe=L.getNodeFor(null==(t=pe.current.over)?void 0:t.id),he=function(e){var t=e.measure,n=(0,o.useState)(null),r=(0,Le.Z)(n,2),i=r[0],a=r[1],s=(0,o.useCallback)((function(e){var n,r=_e(e);try{var o=function(){var e=n.value.target;if(lYe(e))return a((function(n){var r=t(e);return n?(0,l.Z)((0,l.Z)({},n),{},{width:r.width,height:r.height}):r})),"break"};for(r.s();!(n=r.n()).done&&"break"!==o(););}catch(i){r.e(i)}finally{r.f()}}),[t]),c=GKe({callback:s}),u=hYe((0,o.useCallback)((function(e){var n=eJe(e);null==c||c.disconnect(),n&&(null==c||c.observe(n)),a(n?t(n):null)}),[t,c])),d=(0,Le.Z)(u,2),p=d[0],f=d[1];return(0,o.useMemo)((function(){return{nodeRef:p,rect:i,setRef:f}}),[i,p,f])}({measure:ee.dragOverlay.measure}),me=null!=(n=he.nodeRef.current)?n:ie,ve=T?null!=(r=he.rect)?r:ue:null,ge=Boolean(he.nodeRef.current&&he.rect),ye=QYe(ce=ge?null:ue,qKe(ce)),be=QKe(me?aYe(me):null),xe=function(e){var t=(0,o.useRef)(e),n=fYe((function(n){return e?n&&n!==JKe&&e&&t.current&&e.parentNode===t.current.parentNode?n:aKe(e):JKe}),[e]);return(0,o.useEffect)((function(){t.current=e}),[e]),n}(T?null!=fe?fe:ie:null),we=function(e,t){void 0===t&&(t=oKe);var n=(0,Le.Z)(e,1)[0],r=QKe(n?aYe(n):null),i=(0,o.useReducer)((function(){return e.length?e.map((function(e){return pKe(e)?r:new CKe(t(e),e)})):$Ke}),$Ke),a=(0,Le.Z)(i,2),s=a[0],l=a[1],c=GKe({callback:l});return e.length>0&&s===$Ke&&l(),uYe((function(){e.length?e.forEach((function(e){return null==c?void 0:c.observe(e)})):(null==c||c.disconnect(),l())}),[e]),s}(xe),Ce=pJe(b,{transform:{x:B.x-ye.x,y:B.y-ye.y,scaleX:1,scaleY:1},activatorEvent:K,active:z,activeNodeRect:ue,containerNodeRect:de,draggingNodeRect:ve,over:pe.current.over,overlayNodeRect:he.rect,scrollableAncestors:xe,scrollableAncestorRects:we,windowRect:be}),je=ae?bYe(ae,B):null,Se=function(e){var t=(0,o.useState)(null),n=(0,Le.Z)(t,2),r=n[0],i=n[1],a=(0,o.useRef)(e),s=(0,o.useCallback)((function(e){var t=lKe(e.target);t&&i((function(e){return e?(e.set(t,dKe(t)),new Map(e)):null}))}),[]);return(0,o.useEffect)((function(){var t=a.current;if(e!==t){r(t);var n=e.map((function(e){var t=lKe(e);return t?(t.addEventListener("scroll",s,{passive:!0}),[t,dKe(t)]):null})).filter((function(e){return null!=e}));i(n.length?new Map(n):null),a.current=e}return function(){r(e),r(t)};function r(e){e.forEach((function(e){var t=lKe(e);null==t||t.removeEventListener("scroll",s)}))}}),[s,e]),(0,o.useMemo)((function(){return e.length?r?Array.from(r.values()).reduce((function(e,t){return bYe(e,t)}),HYe):gKe(e):HYe}),[e,r])}(xe),ke=XKe(Se),Ze=XKe(Se,[ue]),Oe=bYe(Ce,ke),Ee=ve?eKe(ve,Ce):null,De=z&&Ee?v({active:z,collisionRect:Ee,droppableRects:ne,droppableContainers:$,pointerCoordinates:je}):null,Pe=YYe(De,"id"),Ae=(0,o.useState)(null),Me=(0,Le.Z)(Ae,2),Te=Me[0],Ie=Me[1],Re=function(e,t,n){return(0,l.Z)((0,l.Z)({},e),{},{scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1})}(ge?Ce:bYe(Ce,Ze),null!=(i=null==Te?void 0:Te.rect)?i:null,ue),Fe=(0,o.useCallback)((function(e,t){var n=t.sensor,r=t.options;if(null!=H.current){var o=F.get(H.current);if(o){var i=e.nativeEvent,a=new n({active:H.current,activeNode:o,event:i,options:r,context:pe,onStart:function(e){var t=H.current;if(null!=t){var n=F.get(t);if(n){var r=X.current.onDragStart,o={active:{id:t,data:n.data,rect:_}};(0,g.unstable_batchedUpdates)((function(){null==r||r(o),M(fJe.Initializing),S({type:FYe.DragStart,initialCoordinates:e,active:t}),O({type:"onDragStart",event:o})}))}}},onMove:function(e){S({type:FYe.DragMove,coordinates:e})},onEnd:s(FYe.DragEnd),onCancel:s(FYe.DragCancel)});(0,g.unstable_batchedUpdates)((function(){q(a),J(e.nativeEvent)}))}}function s(e){return function(){var t=ds(hs().mark((function t(){var n,r,o,a,s,l,c;return hs().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=pe.current,r=n.active,o=n.collisions,a=n.over,s=n.scrollAdjustedTranslate,l=null,!r||!s){t.next=10;break}if(c=X.current.cancelDrop,l={activatorEvent:i,active:r,collisions:o,delta:s,over:a},e!==FYe.DragEnd||"function"!==typeof c){t.next=10;break}return t.next=8,Promise.resolve(c(l));case 8:t.sent&&(e=FYe.DragCancel);case 10:H.current=null,(0,g.unstable_batchedUpdates)((function(){S({type:e}),M(fJe.Uninitialized),Ie(null),q(null),J(null);var t=e===FYe.DragEnd?"onDragEnd":"onDragCancel";if(l){var n=X.current[t];null==n||n(l),O({type:t,event:l})}}));case 12:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()}}),[F]),Be=(0,o.useCallback)((function(e,t){return function(n,r){var o=n.nativeEvent,i=F.get(r);if(null===H.current&&i&&!o.dndKit&&!o.defaultPrevented){var a={active:i};!0===e(n,t.options,a)&&(o.dndKit={capturedBy:t.sensor},H.current=r,Fe(n,t))}}}),[F,Fe]),Ne=function(e,t){return(0,o.useMemo)((function(){return e.reduce((function(e,n){var r=n.sensor.activators.map((function(e){return{eventName:e.eventName,handler:t(e.handler,n)}}));return[].concat((0,dn.Z)(e),(0,dn.Z)(r))}),[])}),[e,t])}(h,Be);!function(e){(0,o.useEffect)((function(){if(rYe){var t=e.map((function(e){var t=e.sensor;return null==t.setup?void 0:t.setup()}));return function(){var e,n=_e(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;null==r||r()}}catch(o){n.e(o)}finally{n.f()}}}}),e.map((function(e){return e.sensor})))}(h),uYe((function(){ue&&A===fJe.Initializing&&M(fJe.Initialized)}),[ue,A]),(0,o.useEffect)((function(){var e=X.current.onDragMove,t=pe.current,n=t.active,r=t.activatorEvent,o=t.collisions,i=t.over;if(n&&r){var a={active:n,activatorEvent:r,collisions:o,delta:{x:Oe.x,y:Oe.y},over:i};(0,g.unstable_batchedUpdates)((function(){null==e||e(a),O({type:"onDragMove",event:a})}))}}),[Oe.x,Oe.y]),(0,o.useEffect)((function(){var e=pe.current,t=e.active,n=e.activatorEvent,r=e.collisions,o=e.droppableContainers,i=e.scrollAdjustedTranslate;if(t&&null!=H.current&&n&&i){var a=X.current.onDragOver,s=o.get(Pe),l=s&&s.rect.current?{id:s.id,rect:s.rect.current,data:s.data,disabled:s.disabled}:null,c={active:t,activatorEvent:n,collisions:r,delta:{x:i.x,y:i.y},over:l};(0,g.unstable_batchedUpdates)((function(){Ie(l),null==a||a(c),O({type:"onDragOver",event:c})}))}}),[Pe]),uYe((function(){pe.current={activatorEvent:K,active:z,activeNode:ie,collisionRect:Ee,collisions:De,droppableRects:ne,draggableNodes:F,draggingNode:me,draggingNodeRect:ve,droppableContainers:L,over:Te,scrollableAncestors:xe,scrollAdjustedTranslate:Oe},_.current={initial:ve,translated:Ee}}),[z,ie,De,Ee,F,me,ve,ne,L,Te,xe,Oe]),zKe((0,l.Z)((0,l.Z)({},se),{},{delta:B,draggingRect:Ee,pointerCoordinates:je,scrollableAncestors:xe,scrollableAncestorRects:we}));var ze=(0,o.useMemo)((function(){return{active:z,activeNode:ie,activeNodeRect:ue,activatorEvent:K,collisions:De,containerNodeRect:de,dragOverlay:he,draggableNodes:F,droppableContainers:L,droppableRects:ne,over:Te,measureDroppableContainers:re,scrollableAncestors:xe,scrollableAncestorRects:we,measuringConfiguration:ee,measuringScheduled:oe,windowRect:be}}),[z,ie,ue,K,De,de,he,F,L,ne,Te,re,xe,we,ee,oe,be]),He=(0,o.useMemo)((function(){return{activatorEvent:K,activators:Ne,active:z,activeNodeRect:ue,ariaDescribedById:{draggable:Q},dispatch:S,draggableNodes:F,over:Te,measureDroppableContainers:re}}),[K,Ne,z,ue,S,Q,F,Te,re]);return o.createElement(RYe.Provider,{value:E},o.createElement(sJe.Provider,{value:He},o.createElement(lJe.Provider,{value:ze},o.createElement(hJe.Provider,{value:Re},p)),o.createElement(dJe,{disabled:!1===(null==c?void 0:c.restoreFocus)})),o.createElement(NYe,(0,l.Z)((0,l.Z)({},c),{},{hiddenTextDescribedById:Q})))})),vJe=(0,o.createContext)(null),gJe="button";function yJe(e){var t=e.id,n=e.data,r=e.disabled,i=void 0!==r&&r,a=e.attributes,s=gYe("Droppable"),l=(0,o.useContext)(sJe),c=l.activators,u=l.activatorEvent,d=l.active,p=l.activeNodeRect,f=l.ariaDescribedById,h=l.draggableNodes,m=l.over,v=null!=a?a:{},g=v.role,y=void 0===g?gJe:g,b=v.roleDescription,x=void 0===b?"draggable":b,w=v.tabIndex,C=void 0===w?0:w,j=(null==d?void 0:d.id)===t,S=(0,o.useContext)(j?hJe:vJe),k=hYe(),Z=(0,Le.Z)(k,2),O=Z[0],E=Z[1],D=hYe(),P=(0,Le.Z)(D,2),A=P[0],M=P[1],T=function(e,t){return(0,o.useMemo)((function(){return e.reduce((function(e,n){var r=n.eventName,o=n.handler;return e[r]=function(e){o(e,t)},e}),{})}),[e,t])}(c,t),I=pYe(n);return uYe((function(){return h.set(t,{id:t,key:s,node:O,activatorNode:A,data:I}),function(){var e=h.get(t);e&&e.key===s&&h.delete(t)}}),[h,t]),{active:d,activatorEvent:u,activeNodeRect:p,attributes:(0,o.useMemo)((function(){return{role:y,tabIndex:C,"aria-disabled":i,"aria-pressed":!(!j||y!==gJe)||void 0,"aria-roledescription":x,"aria-describedby":f.draggable}}),[i,y,C,j,x,f.draggable]),isDragging:j,listeners:i?void 0:T,node:O,over:m,setNodeRef:E,setActivatorNodeRef:M,transform:S}}function bJe(){return(0,o.useContext)(lJe)}var xJe={timeout:25};function wJe(e){var t=e.data,n=e.disabled,r=void 0!==n&&n,i=e.id,a=e.resizeObserverConfig,s=gYe("Droppable"),c=(0,o.useContext)(sJe),u=c.active,d=c.dispatch,p=c.over,f=c.measureDroppableContainers,h=(0,o.useRef)({disabled:r}),m=(0,o.useRef)(!1),v=(0,o.useRef)(null),g=(0,o.useRef)(null),y=(0,l.Z)((0,l.Z)({},xJe),a),b=y.disabled,x=y.updateMeasurementsFor,w=y.timeout,C=pYe(null!=x?x:i),j=GKe({callback:(0,o.useCallback)((function(){m.current?(null!=g.current&&clearTimeout(g.current),g.current=setTimeout((function(){f(Array.isArray(C.current)?C.current:[C.current]),g.current=null}),w)):m.current=!0}),[w]),disabled:b||!u}),S=hYe((0,o.useCallback)((function(e,t){j&&(t&&(j.unobserve(t),m.current=!1),e&&j.observe(e))}),[j])),k=(0,Le.Z)(S,2),Z=k[0],O=k[1],E=pYe(t);return(0,o.useEffect)((function(){j&&Z.current&&(j.disconnect(),m.current=!1,j.observe(Z.current))}),[Z,j]),uYe((function(){return d({type:FYe.RegisterDroppable,element:{id:i,key:s,disabled:r,node:Z,rect:v,data:E}}),function(){return d({type:FYe.UnregisterDroppable,key:s,id:i})}}),[i]),(0,o.useEffect)((function(){r!==h.current.disabled&&(d({type:FYe.SetDroppableDisabled,id:i,key:s,disabled:r}),h.current.disabled=r)}),[i,s,r,d]),{active:u,rect:v,isOver:(null==p?void 0:p.id)===i,node:Z,over:p,setNodeRef:O}}function CJe(e){var t=e.animation,n=e.children,r=(0,o.useState)(null),i=(0,Le.Z)(r,2),a=i[0],s=i[1],l=(0,o.useState)(null),c=(0,Le.Z)(l,2),u=c[0],d=c[1],p=mYe(n);return n||a||!p||s(p),uYe((function(){if(u){var e=null==a?void 0:a.key,n=null==a?void 0:a.props.id;null!=e&&null!=n?Promise.resolve(t(n,u)).then((function(){s(null)})):s(null)}}),[t,a,u]),o.createElement(o.Fragment,null,n,a?(0,o.cloneElement)(a,{ref:d}):null)}var jJe={x:0,y:0,scaleX:1,scaleY:1};function SJe(e){var t=e.children;return o.createElement(sJe.Provider,{value:aJe},o.createElement(hJe.Provider,{value:jJe},t))}var kJe={position:"fixed",touchAction:"none"},ZJe=function(e){return wYe(e)?"transform 250ms ease":void 0},OJe=(0,o.forwardRef)((function(e,t){var n=e.as,r=e.activatorEvent,i=e.adjustScale,a=e.children,s=e.className,c=e.rect,u=e.style,d=e.transform,p=e.transition,f=void 0===p?ZJe:p;if(!c)return null;var h=i?d:(0,l.Z)((0,l.Z)({},d),{},{scaleX:1,scaleY:1}),m=(0,l.Z)((0,l.Z)({},kJe),{},{width:c.width,height:c.height,top:c.top,left:c.left,transform:jYe.Transform.toString(h),transformOrigin:i&&r?VYe(r,c):void 0,transition:"function"===typeof f?f(r):f},u);return o.createElement(n,{className:s,style:m,ref:t},a)})),EJe=function(e){return function(t){var n=t.active,r=t.dragOverlay,o={},i=e.styles,a=e.className;if(null!=i&&i.active)for(var s=0,l=Object.entries(i.active);s<l.length;s++){var c=(0,Le.Z)(l[s],2),u=c[0],d=c[1];void 0!==d&&(o[u]=n.node.style.getPropertyValue(u),n.node.style.setProperty(u,d))}if(null!=i&&i.dragOverlay)for(var p=0,f=Object.entries(i.dragOverlay);p<f.length;p++){var h=(0,Le.Z)(f[p],2),m=h[0],v=h[1];void 0!==v&&r.node.style.setProperty(m,v)}return null!=a&&a.active&&n.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(var e=0,t=Object.entries(o);e<t.length;e++){var r=(0,Le.Z)(t[e],2),i=r[0],s=r[1];n.node.style.setProperty(i,s)}null!=a&&a.active&&n.node.classList.remove(a.active)}}},DJe={duration:250,easing:"ease",keyframes:function(e){var t=e.transform,n=t.initial,r=t.final;return[{transform:jYe.Transform.toString(n)},{transform:jYe.Transform.toString(r)}]},sideEffects:EJe({styles:{active:{opacity:"0"}}})};function PJe(e){var t=e.config,n=e.draggableNodes,r=e.droppableContainers,o=e.measuringConfiguration;return dYe((function(e,i){if(null!==t){var a=n.get(e);if(a){var s=a.node.current;if(s){var c=eJe(i);if(c){var u=tKe(aYe(i).getComputedStyle(i).transform);if(u){var d="function"===typeof t?t:function(e){var t=(0,l.Z)((0,l.Z)({},DJe),e),n=t.duration,r=t.easing,o=t.sideEffects,i=t.keyframes;return function(e){var t=e.active,a=e.dragOverlay,s=e.transform,c=Nn(e,IYe);if(n){var u={x:a.rect.left-t.rect.left,y:a.rect.top-t.rect.top},d={scaleX:1!==s.scaleX?t.rect.width*s.scaleX/a.rect.width:1,scaleY:1!==s.scaleY?t.rect.height*s.scaleY/a.rect.height:1},p=(0,l.Z)({x:s.x-u.x,y:s.y-u.y},d),f=i((0,l.Z)((0,l.Z)({},c),{},{active:t,dragOverlay:a,transform:{initial:s,final:p}})),h=(0,Le.Z)(f,1)[0],m=f[f.length-1];if(JSON.stringify(h)!==JSON.stringify(m)){var v=null==o?void 0:o((0,l.Z)({active:t,dragOverlay:a},c)),g=a.node.animate(f,{duration:n,easing:r,fill:"forwards"});return new Promise((function(e){g.onfinish=function(){null==v||v(),e()}}))}}}}(t);return yKe(s,o.draggable.measure),d({active:{id:e,data:a.data,node:s,rect:o.draggable.measure(s)},draggableNodes:n,dragOverlay:{node:i,rect:o.dragOverlay.measure(c)},droppableContainers:r,measuringConfiguration:o,transform:u})}}}}}}))}var AJe=0;var MJe=o.memo((function(e){var t,n=e.adjustScale,r=void 0!==n&&n,i=e.children,a=e.dropAnimation,s=e.style,c=e.transition,u=e.modifiers,d=e.wrapperElement,p=void 0===d?"div":d,f=e.className,h=e.zIndex,m=void 0===h?999:h,v=bJe(),g=v.activatorEvent,y=v.active,b=v.activeNodeRect,x=v.containerNodeRect,w=v.draggableNodes,C=v.droppableContainers,j=v.dragOverlay,S=v.over,k=v.measuringConfiguration,Z=v.scrollableAncestors,O=v.scrollableAncestorRects,E=v.windowRect,D=(0,o.useContext)(hJe),P=(t=null==y?void 0:y.id,(0,o.useMemo)((function(){if(null!=t)return++AJe}),[t])),A=pJe(u,{activatorEvent:g,active:y,activeNodeRect:b,containerNodeRect:x,draggingNodeRect:j.rect,over:S,overlayNodeRect:j.rect,scrollableAncestors:Z,scrollableAncestorRects:O,transform:D,windowRect:E}),M=qKe(b),T=PJe({config:a,draggableNodes:w,droppableContainers:C,measuringConfiguration:k}),I=M?j.setRef:void 0;return o.createElement(SJe,null,o.createElement(CJe,{animation:T},y&&P?o.createElement(OJe,{key:P,id:y.id,ref:I,as:p,activatorEvent:g,adjustScale:r,className:f,transition:c,rect:M,style:(0,l.Z)({zIndex:m},s),transform:A},i):null))}));function TJe(e,t,n){var r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function IJe(e,t){return e.reduce((function(e,n,r){var o=t.get(n);return o&&(e[r]=o),e}),Array(e.length))}function RJe(e){return null!==e&&e>=0}var FJe=function(e){var t=e.rects,n=e.activeIndex,r=e.overIndex,o=e.index,i=TJe(t,r,n),a=t[o],s=i[o];return s&&a?{x:s.left-a.left,y:s.top-a.top,scaleX:s.width/a.width,scaleY:s.height/a.height}:null};var BJe="Sortable",LJe=o.createContext({activeIndex:-1,containerId:BJe,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:FJe,disabled:{draggable:!1,droppable:!1}});function NJe(e){var t=e.children,n=e.id,r=e.items,i=e.strategy,a=void 0===i?FJe:i,s=e.disabled,l=void 0!==s&&s,c=bJe(),u=c.active,d=c.dragOverlay,p=c.droppableRects,f=c.over,h=c.measureDroppableContainers,m=gYe(BJe,n),v=Boolean(null!==d.rect),g=(0,o.useMemo)((function(){return r.map((function(e){return"object"===typeof e&&"id"in e?e.id:e}))}),[r]),y=null!=u,b=u?g.indexOf(u.id):-1,x=f?g.indexOf(f.id):-1,w=(0,o.useRef)(g),C=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(g,w.current),j=-1!==x&&-1===b||C,S=function(e){return"boolean"===typeof e?{draggable:e,droppable:e}:e}(l);uYe((function(){C&&y&&h(g)}),[C,g,y,h]),(0,o.useEffect)((function(){w.current=g}),[g]);var k=(0,o.useMemo)((function(){return{activeIndex:b,containerId:m,disabled:S,disableTransforms:j,items:g,overIndex:x,useDragOverlay:v,sortedRects:IJe(g,p),strategy:a}}),[b,m,S.draggable,S.droppable,j,g,x,p,v,a]);return o.createElement(LJe.Provider,{value:k},t)}var _Je=function(e){var t=e.id;return TJe(e.items,e.activeIndex,e.overIndex).indexOf(t)},zJe=function(e){var t=e.containerId,n=e.isSorting,r=e.wasDragging,o=e.index,i=e.items,a=e.newIndex,s=e.previousItems,l=e.previousContainerId;return!(!e.transition||!r)&&((s===i||o!==a)&&(!!n||a!==o&&t===l))},HJe={duration:200,easing:"ease"},WJe="transform",VJe=jYe.Transition.toString({property:WJe,duration:0,easing:"linear"}),UJe={roleDescription:"sortable"};function qJe(e){var t=e.animateLayoutChanges,n=void 0===t?zJe:t,r=e.attributes,i=e.disabled,a=e.data,s=e.getNewIndex,c=void 0===s?_Je:s,u=e.id,d=e.strategy,p=e.resizeObserverConfig,f=e.transition,h=void 0===f?HJe:f,m=(0,o.useContext)(LJe),v=m.items,g=m.containerId,y=m.activeIndex,b=m.disabled,x=m.disableTransforms,w=m.sortedRects,C=m.overIndex,j=m.useDragOverlay,S=m.strategy,k=function(e,t){var n,r;if("boolean"===typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(i,b),Z=v.indexOf(u),O=(0,o.useMemo)((function(){return(0,l.Z)({sortable:{containerId:g,index:Z,items:v}},a)}),[g,a,Z,v]),E=(0,o.useMemo)((function(){return v.slice(v.indexOf(u))}),[v,u]),D=wJe({id:u,data:O,disabled:k.droppable,resizeObserverConfig:(0,l.Z)({updateMeasurementsFor:E},p)}),P=D.rect,A=D.node,M=D.isOver,T=D.setNodeRef,I=yJe({id:u,data:O,attributes:(0,l.Z)((0,l.Z)({},UJe),r),disabled:k.draggable}),R=I.active,F=I.activatorEvent,B=I.activeNodeRect,L=I.attributes,N=I.setNodeRef,_=I.listeners,z=I.isDragging,H=I.over,W=I.setActivatorNodeRef,V=I.transform,U=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.useMemo)((function(){return function(e){t.forEach((function(t){return t(e)}))}}),t)}(T,N),q=Boolean(R),G=q&&!x&&RJe(y)&&RJe(C),Y=!j&&z,K=Y&&G?V:null,J=G?null!=K?K:(null!=d?d:S)({rects:w,activeNodeRect:B,activeIndex:y,overIndex:C,index:Z}):null,X=RJe(y)&&RJe(C)?c({id:u,items:v,activeIndex:y,overIndex:C}):Z,Q=null==R?void 0:R.id,$=(0,o.useRef)({activeId:Q,items:v,newIndex:X,containerId:g}),ee=v!==$.current.items,te=n({active:R,containerId:g,isDragging:z,isSorting:q,id:u,index:Z,items:v,newIndex:$.current.newIndex,previousItems:$.current.items,previousContainerId:$.current.containerId,transition:h,wasDragging:null!=$.current.activeId}),ne=function(e){var t=e.disabled,n=e.index,r=e.node,i=e.rect,a=(0,o.useState)(null),s=(0,Le.Z)(a,2),l=s[0],c=s[1],u=(0,o.useRef)(n);return uYe((function(){if(!t&&n!==u.current&&r.current){var e=i.current;if(e){var o=oKe(r.current,{ignoreTransform:!0}),a={x:e.left-o.left,y:e.top-o.top,scaleX:e.width/o.width,scaleY:e.height/o.height};(a.x||a.y)&&c(a)}}n!==u.current&&(u.current=n)}),[t,n,r,i]),(0,o.useEffect)((function(){l&&c(null)}),[l]),l}({disabled:!te,index:Z,node:A,rect:P});return(0,o.useEffect)((function(){q&&$.current.newIndex!==X&&($.current.newIndex=X),g!==$.current.containerId&&($.current.containerId=g),v!==$.current.items&&($.current.items=v)}),[q,X,g,v]),(0,o.useEffect)((function(){if(Q!==$.current.activeId){if(!Q||$.current.activeId){var e=setTimeout((function(){$.current.activeId=Q}),50);return function(){return clearTimeout(e)}}$.current.activeId=Q}}),[Q]),{active:R,activeIndex:y,attributes:L,data:O,rect:P,index:Z,newIndex:X,items:v,isOver:M,isSorting:q,isDragging:z,listeners:_,node:A,overIndex:C,over:H,setNodeRef:U,setActivatorNodeRef:W,setDroppableNodeRef:T,setDraggableNodeRef:N,transform:null!=ne?ne:J,transition:function(){if(ne||ee&&$.current.newIndex===Z)return VJe;if(Y&&!wYe(F)||!h)return;if(q||te)return jYe.Transition.toString((0,l.Z)((0,l.Z)({},h),{},{property:WJe}));return}()}}function GJe(e){if(!e)return!1;var t=e.data.current;return!!(t&&"sortable"in t&&"object"===typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}var YJe,KJe=[xKe.Down,xKe.Right,xKe.Up,xKe.Left],JJe=function(e,t){var n=t.context,r=n.active,o=n.collisionRect,i=n.droppableRects,a=n.droppableContainers,s=n.over,l=n.scrollableAncestors;if(KJe.includes(e.code)){if(e.preventDefault(),!r||!o)return;var c=[];a.getEnabled().forEach((function(t){if(t&&(null==t||!t.disabled)){var n=i.get(t.id);if(n)switch(e.code){case xKe.Down:o.top<n.top&&c.push(t);break;case xKe.Up:o.top>n.top&&c.push(t);break;case xKe.Left:o.left>n.left&&c.push(t);break;case xKe.Right:o.left<n.left&&c.push(t)}}}));var u=KYe({active:r,collisionRect:o,droppableRects:i,droppableContainers:c,pointerCoordinates:null}),d=YYe(u,"id");if(d===(null==s?void 0:s.id)&&u.length>1&&(d=u[1].id),null!=d){var p=a.get(r.id),f=a.get(d),h=f?i.get(f.id):null,m=null==f?void 0:f.node.current;if(m&&h&&p&&f){var v=aKe(m).some((function(e,t){return l[t]!==e})),g=XJe(p,f),y=function(e,t){if(!GJe(e)||!GJe(t))return!1;if(!XJe(e,t))return!1;return e.data.current.sortable.index<t.data.current.sortable.index}(p,f),b=v||!g?{x:0,y:0}:{x:y?o.width-h.width:0,y:y?o.height-h.height:0},x={x:h.left,y:h.top};return b.x&&b.y?x:xYe(x,b)}}}};function XJe(e,t){return!(!GJe(e)||!GJe(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}var QJe=["title","titleId"];function $Je(){return $Je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$Je.apply(this,arguments)}function eXe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function tXe(e,t){var n=e.title,r=e.titleId,i=eXe(e,QJe);return o.createElement("svg",$Je({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,YJe||(YJe=o.createElement("path",{d:"M3.82552 0.498657C1.9846 0.498657 0.492188 1.99115 0.492188 3.83198V12.1653C0.492188 14.0061 1.9846 15.4986 3.82552 15.4986H12.1589C13.9998 15.4986 15.4922 14.0061 15.4922 12.1653V3.83198C15.4922 1.99115 13.9998 0.498657 12.1589 0.498657H3.82552ZM11.3255 5.34199C11.5388 5.34283 11.7618 5.41364 11.9245 5.57698C12.2499 5.90198 12.2499 6.42281 11.9245 6.74865L8.79952 9.87364C7.84094 10.832 6.37435 10.6886 5.62235 9.56114L4.78902 8.31114C4.53377 7.92864 4.64052 7.39447 5.02344 7.13947C5.40644 6.88364 5.94002 6.99031 6.19535 7.37365L7.02869 8.62364C7.19719 8.87614 7.41277 8.89032 7.6276 8.67532L10.7265 5.57698C10.8893 5.41448 11.1123 5.34199 11.3255 5.34199Z",fill:"#79829B"})))}var nXe,rXe=o.forwardRef(tXe),oXe=(n.p,["title","titleId"]);function iXe(){return iXe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iXe.apply(this,arguments)}function aXe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function sXe(e,t){var n=e.title,r=e.titleId,i=aXe(e,oXe);return o.createElement("svg",iXe({width:18,height:16,viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,nXe||(nXe=o.createElement("path",{d:"M3.99935 0.678421C2.15852 0.678421 0.666016 2.17008 0.666016 4.01007C0.666016 5.01841 1.10017 5.91094 1.8085 6.52177C1.10017 7.13261 0.666016 7.99843 0.666016 9.00677V12.3384C0.666016 14.1776 2.15852 15.6784 3.99935 15.6784H9.83184C11.5635 15.6784 13.0027 14.3634 13.166 12.6759L15.8993 15.4351C16.4243 15.9601 17.3318 15.5784 17.3318 14.8367V6.5084C17.3318 6.13756 17.101 5.8476 16.811 5.7276C16.521 5.6076 16.1618 5.64757 15.8993 5.90923C15.551 6.25757 14.2785 7.58258 13.1593 8.70174C13.0535 7.61508 12.4527 6.68423 11.5568 6.15673C12.061 5.5734 12.3318 4.84091 12.3318 4.01007C12.3318 2.17008 10.8393 0.678421 8.99851 0.678421C7.99018 0.678421 7.11018 1.14178 6.49935 1.84928C5.88768 1.14178 5.00768 0.678421 3.99935 0.678421ZM3.99935 2.34427C4.91935 2.34427 5.66602 3.09008 5.66602 4.01007C5.66602 4.92924 4.91935 5.67506 3.99935 5.67506C3.07852 5.67506 2.33268 4.93007 2.33268 4.01007C2.33268 3.09008 3.07852 2.34427 3.99935 2.34427ZM8.99851 2.34427C9.91934 2.34427 10.6652 3.09008 10.6652 4.01007C10.6652 4.92924 9.91934 5.67506 8.99851 5.67506C8.07851 5.67506 7.33268 4.93007 7.33268 4.01007C7.33268 3.09008 8.07851 2.34427 8.99851 2.34427Z",fill:"#79829B"})))}var lXe,cXe=o.forwardRef(sXe),uXe=(n.p,{isDrawerOpen:!1,setIsDrawerOpen:function(){return!1},timedProjectPitchId:null,setTimedProjectPitchId:function(){}}),dXe=(0,o.createContext)(uXe),pXe=function(e){var t,n=e.pitch,r=[];n.status===Kt.hv.SecondRound&&r.push("round2","round3"),n.status===Kt.hv.FirstRound&&r.push("round1","round2","round3");var i=qJe({id:n.id,data:{supports:r,selected:!1}}),a=i.attributes,s=i.listeners,c=i.setNodeRef,d=i.transform,p=i.transition,f=i.isDragging,h=null===(t=n.feedback)||void 0===t?void 0:t.find((function(e){return e.type===Kt.gV.Overall})),m={transform:jYe.Transform.toString(d),transition:p,background:"white",borderRadius:"8px",cursor:"pointer",opacity:f?.3:1},v={textDecoration:"none",color:"primaryDark.600"},g={label:"rejected",boldText:!0,sx:{height:"24px",width:"fit-content",color:"secondaryPink.700",bgcolor:"secondaryPink.100",borderColor:"secondaryPink.100",borderRadius:"3px",textTransform:"uppercase",fontSize:"0.8125rem",letterSpacing:"0.05em",visibility:"hidden"}};n.status===Kt.hv.FirstRoundRejected||n.status===Kt.hv.SecondRoundRejected?(v.textDecoration="line-through",v.color="primaryDark.500",g.sx.visibility="visible"):n.status===Kt.hv.Chosen?m.background=" linear-gradient(240.98deg, #E6E8FF 0%, #FFEAE1 68.46%, #FFFBEA 99.58%)":n.isNew&&(g.label="new",g.sx.color="secondaryBlue.700",g.sx.bgcolor="secondaryBlue.100",g.sx.borderColor="secondaryBlue.100",g.sx.visibility="visible");var y=(0,As.Z)({resource:"/timed-project-pitches"}).mutate,b=(0,o.useContext)(dXe),x=b.isDrawerOpen,w=b.setIsDrawerOpen,C=b.setTimedProjectPitchId;return(0,u.jsx)(ao.Z,(0,l.Z)((0,l.Z)((0,l.Z)({ref:c,style:m},s),a),{},{variant:"outlined",children:(0,u.jsxs)(nn.Z,{padding:2,paddingTop:2.5,spacing:1.5,children:[(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(_d,(0,l.Z)({},g)),(0,u.jsx)(Wo,{variant:"primaryText",onClick:function(e){C(n.id),w(!x),n.isNew&&y({id:n.timedProjectPitch,suffix:"seen"})},onPointerDown:function(e){e.stopPropagation()},children:"View"})]}),(0,u.jsxs)(nn.Z,{spacing:.5,children:[(0,u.jsxs)(nn.Z,{direction:"row",spacing:1,children:[n.seller.avatar?(0,u.jsx)(Ca,{sx:{width:20,height:20},variant:"rounded",src:n.seller.avatar}):(0,u.jsx)(Ca,{sx:{width:20,height:20},variant:"rounded",children:n.seller.name[0]}),(0,u.jsx)(rn.Z,{sx:v,variant:"body2",children:n.seller.name})]}),(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",fontSize:"0.8215rem",children:"pitched"}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.600",children:(0,rs.qJ)(n.published)})]}),(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",fontSize:"0.8215rem",children:"score"}),h&&(0,u.jsx)(oMe,{size:"small",name:"read-only",value:h.rate,readOnly:!0})]})]})]})}))},fXe=function(e){var t=e.id,n=e.pitches,r=e.disabled,o=wJe({id:t}).setNodeRef;return(0,u.jsx)(NJe,{disabled:r,id:t,items:n,strategy:FJe,children:(0,u.jsx)(nn.Z,{spacing:2,ref:o,children:n.length>0?n.map((function(e){return(0,u.jsx)(pXe,{pitch:e},e.id)})):(0,u.jsx)(ao.Z,{sx:{p:2,borderRadius:"8px",border:"1px dashed #BFC6D7",height:"141px"},variant:"outlined"})})})},hXe=function(e){var t=e.color;return(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",spacing:0,width:"100%",children:[(0,u.jsx)(tn,{sx:{height:"5px",width:"5px",backgroundColor:t,borderRadius:"50%"}}),(0,u.jsx)(tn,{sx:{height:"1px",width:"100%",backgroundColor:t}}),(0,u.jsx)(tn,{sx:{borderWidth:"3px 0px 3px 5px",borderStyle:"solid",borderColor:"transparent",borderLeftColor:t}})]})},mXe=function(e){var t=e.title,n=e.itemsCount,r=e.icon,o=e.showArrow,i=void 0===o||o;return(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",alignItems:"center",children:[(0,u.jsxs)(nn.Z,{direction:"row",spacing:.5,alignItems:"center",sx:{flexShrink:0},children:[r,(0,u.jsx)(rn.Z,{variant:"heading3",color:"primaryDark.500",children:t}),(0,u.jsx)(rn.Z,{variant:"heading3",color:"primaryDark.700",children:n})]}),i&&(0,u.jsx)(hXe,{color:"primaryDark.300"})]})},vXe=function(e){var n=e.pitches,r=(0,Ms.J)(),i=(0,o.useState)(n),a=(0,Le.Z)(i,2),s=a[0],c=a[1],d=(0,o.useState)(!1),p=(0,Le.Z)(d,2),f=p[0],h=p[1],m=(0,o.useState)(null),v=(0,Le.Z)(m,2),g=v[0],y=v[1],b=(0,o.useState)("idle"),x=(0,Le.Z)(b,2),w=x[0],C=x[1],j=(0,o.useState)(null),S=(0,Le.Z)(j,2),k=S[0],Z=S[1],O=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.useMemo)((function(){return[].concat(t).filter((function(e){return null!=e}))}),[].concat(t))}(zYe(IKe),zYe(DKe,{coordinateGetter:JJe})),E=(0,l.Z)({},DJe),D=null!==g&&void 0!==g&&g.activePitchId?(0,rs.XG)(s,null===g||void 0===g?void 0:g.activePitchId):null;(0,o.useEffect)((function(){c(n)}),[n]);var P=(0,As.Z)({resource:"/timed-project-pitches"}).mutate;return(0,u.jsxs)(mJe,{collisionDetection:KYe,sensors:O,onDragStart:function(e){var t,n=e.active;y({pichesBeforeMove:(0,rs.p$)(s),activePitchId:n.id,startContainer:null===(t=n.data.current)||void 0===t?void 0:t.sortable.containerId,overContainer:null})},onDragOver:function(e){var n,r=e.over,o=e.active,i=(0,rs.wc)(s,o.id),a=(0,rs.wc)(s,null===r||void 0===r?void 0:r.id);i&&a&&i!==a&&null!==(n=o.data.current)&&void 0!==n&&n.supports.includes(a)&&c((function(e){var n,s=e[i],c=e[a],u=s.findIndex((function(e){return e.id===o.id})),d=c.findIndex((function(e){return e.id!==(null===r||void 0===r?void 0:r.id)}));return(0,l.Z)((0,l.Z)({},e),{},(n={},(0,t.Z)(n,i,(0,dn.Z)(e[i].filter((function(e){return e.id!==o.id})))),(0,t.Z)(n,a,[].concat((0,dn.Z)(e[a].slice(0,d)),[e[i][u]],(0,dn.Z)(e[a].slice(d,e[a].length)))),n))}))},onDragEnd:function(e){var n,r=e.active,o=e.over,i=(0,rs.wc)(s,null===o||void 0===o?void 0:o.id),a=(0,rs.wc)(s,r.id);if(a&&i&&a===i&&i!==(null===g||void 0===g?void 0:g.startContainer)&&null!==(n=r.data.current)&&void 0!==n&&n.supports.includes(i)){var u=s[a].findIndex((function(e){return e.id===r.id})),d=s[i].findIndex((function(e){return e.id===(null===o||void 0===o?void 0:o.id)}));y((0,l.Z)((0,l.Z)({},g),{},{overContainer:i})),c((function(e){return(0,l.Z)((0,l.Z)({},e),{},(0,t.Z)({},i,TJe(e[i],u,d)))})),h(!0)}else y(null)},children:[(0,u.jsxs)(nn.Z,{spacing:3,direction:"row",width:"100%",maxWidth:"1800px",children:[(0,u.jsxs)(nn.Z,{spacing:3,direction:"column",width:"33%",children:[(0,u.jsx)(mXe,{title:"first round",itemsCount:s.round1.length,icon:(0,u.jsx)(rXe,{style:{fill:tr.IV[500]}})}),(0,u.jsx)(fXe,{id:"round1",pitches:s.round1,disabled:s.round3.length>0})]}),(0,u.jsxs)(nn.Z,{spacing:3,direction:"column",width:"33%",children:[(0,u.jsx)(mXe,{title:"second round",itemsCount:s.round2.length,icon:(0,u.jsx)(cXe,{style:{fill:tr.IV[500]}})}),(0,u.jsx)(fXe,{id:"round2",pitches:s.round2,disabled:s.round3.length>0})]}),(0,u.jsxs)(nn.Z,{spacing:3,direction:"column",width:"33%",children:[(0,u.jsx)(mXe,{title:"hired",itemsCount:s.round3.length,icon:(0,u.jsx)(AMe,{style:{fill:tr.IV[500]}}),showArrow:!1}),(0,u.jsx)(fXe,{id:"round3",pitches:s.round3,disabled:s.round3.length>0})]}),(0,u.jsx)(MJe,{dropAnimation:E,children:D?(0,u.jsx)(pXe,{pitch:D}):null})]}),(0,u.jsx)(MMe,{type:"round3"===(null===g||void 0===g?void 0:g.overContainer)?"hire":"confirm",isOpen:f,handleOnClose:function(e){h(!1),e&&null!==g&&void 0!==g&&g.pichesBeforeMove&&c((0,rs.p$)(g.pichesBeforeMove)),y(null),C("idle")},handleConfirm:function(){var e=null!==g&&void 0!==g&&g.activePitchId?(0,rs.XG)(s,g.activePitchId):null;e&&null!==g&&void 0!==g&&g.overContainer&&function(e,t){if(e){C("loading");var n={endpoint:{id:e.timedProjectPitch},callbacks:{onError:function(){C("failed"),r()},onSuccess:function(e){e&&Z(e.data.id),C("succeeded"),r()}}};e.status===Kt.hv.FirstRound&&"round2"===t?(e.status=Kt.hv.SecondRound,P((0,l.Z)((0,l.Z)({},n.endpoint),{},{suffix:"second-round"}),(0,l.Z)({},n.callbacks))):e.status!==Kt.hv.FirstRound&&e.status!==Kt.hv.SecondRound||"round3"!==t||(e.status=Kt.hv.Chosen,P((0,l.Z)((0,l.Z)({},n.endpoint),{},{suffix:"hire"}),(0,l.Z)({},n.callbacks)))}}(e,g.overContainer)},patchStatus:w,projectId:k})]})},gXe=function(){var e=(0,ze.UO)(),t=hi({enabled:!!e.projectId,resource:"timed-projects/".concat(e.projectId,"/pitches")}).data,n=(0,rs.cM)(null===t||void 0===t?void 0:t.data,{groupBy:"status",groups:{round1:[Kt.hv.FirstRound,Kt.hv.FirstRoundRejected],round2:[Kt.hv.SecondRound,Kt.hv.SecondRoundRejected],round3:[Kt.hv.Chosen]}});return(0,u.jsx)(vXe,{pitches:n})},yXe=function(){var e=Bn(ir.breakpoints.down("lg")),t=(0,o.useState)(!1),n=(0,Le.Z)(t,2),r=n[0],i=n[1],a=(0,o.useState)(!1),s=(0,Le.Z)(a,2),l=s[0],c=s[1],d=(0,o.useState)(null),p=(0,Le.Z)(d,2),f=p[0],h=p[1],m=(0,o.useState)(""),v=(0,Le.Z)(m,2),g=v[0],y=v[1],b=(0,o.useState)(!1),x=(0,Le.Z)(b,2),w=x[0],C=x[1],j=(0,o.useState)(!1),S=(0,Le.Z)(j,2),k=S[0],Z=S[1],O=Ra({enabled:!!f,id:f,resource:"timed-project-pitch-contents"}).data,E=Ra({resource:"case-studies",id:g,enabled:!!g,refetchOnMount:!1,refetchOnWindowFocus:!1}).data;return(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(nn.Z,{direction:"row",children:[(0,u.jsxs)(nn.Z,{spacing:8,sx:{width:e?"100%":"81%"},children:[(0,u.jsx)(p5,{screen:Kt.Cx.TimedProjectDetailScreen}),(0,u.jsx)(nYe,{}),(0,u.jsx)(dXe.Provider,{value:{isDrawerOpen:l,setIsDrawerOpen:c,timedProjectPitchId:f,setTimedProjectPitchId:h},children:(0,u.jsx)(gXe,{})}),(0,u.jsx)(FMe,{pitchContent:O,isDrawerOpen:l,setIsDrawerOpen:c,isRejectModalOpen:r,setIsRejectModalOpen:i,setCaseStudyId:y,setIsCaseStudyDrawerOpen:C}),E&&(0,u.jsx)(kqe,{item:E,setIsOpen:C,open:w,setShowReviewForm:Z,showReviewForm:k}),(0,u.jsx)(q3,{})]}),!e&&(0,u.jsx)(nn.Z,{sx:{width:"19%"}})]})})},bXe=function(){var e,t,n,r,o,i,a=(0,ze.UO)().timedProjectId,s=(0,Ms.J)(),l=(0,ze.s0)(),c=Ra({id:a,resource:"timed-project-contents",enabled:!!a}).data,d=null===c||void 0===c?void 0:c.body,p=(0,As.Z)({resource:"/timed-projects"}),f=p.mutate,h=p.isLoading,m=function(e){f({id:null===c||void 0===c?void 0:c.timedProject,suffix:e},{onSuccess:function(){s(),l("../")}})};return(0,u.jsx)(da.Z,{children:(0,u.jsxs)(nn.Z,{p:6,children:[(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(rn.Z,{variant:"heading3",color:"primaryDark.600",children:null===d||void 0===d?void 0:d.overview.name}),(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.500",children:null===d||void 0===d?void 0:d.overview.description})]}),(0,u.jsx)(rn.Z,{variant:"body3",pt:4,color:"primaryDark.500",children:(0,rs.qJ)(null===c||void 0===c?void 0:c.published,"---")}),(0,u.jsx)(nn.Z,{direction:"row",py:3,alignItems:"center",justifyContent:"space-between",children:(0,u.jsxs)(nn.Z,{direction:"row",gap:4,alignItems:"center",children:[(0,u.jsx)(Wo,{loading:h,variant:"secondary",onClick:function(){return m("reject")},disabled:(null===c||void 0===c?void 0:c.status)!==Kt.Tl.Pending,children:"Reject"}),(0,u.jsx)(Wo,{disabled:(null===c||void 0===c?void 0:c.status)!==Kt.Tl.Pending,loading:h,onClick:function(){return m("approve")},children:"Approve"})]})}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{width:"100%",children:[(0,u.jsxs)(nn.Z,{direction:"row",width:"100%",py:2,children:[(0,u.jsx)(eqe,{label:"services",choices:Kt.Sj,values:null===d||void 0===d?void 0:d.skills.services}),(0,u.jsx)(eqe,{label:"tech platforms",choices:T$.VA,values:null===d||void 0===d?void 0:d.skills.platforms})]}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{direction:"row",width:"100%",py:2,children:[(0,u.jsx)(eqe,{label:"tech tools",choices:T$.oz,values:null===d||void 0===d?void 0:d.skills.tools}),(0,u.jsx)(eqe,{label:"Programming languages",choices:T$.G3,values:null===d||void 0===d||null===(e=d.skills)||void 0===e?void 0:e.languages})]}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{direction:"row",width:"100%",py:2,children:[(0,u.jsx)(eqe,{label:"industry",choices:Kt.lu,values:null===d||void 0===d?void 0:d.about.industries}),(0,u.jsx)(eqe,{label:"Target market",choices:Kt.lu,values:null===d||void 0===d?void 0:d.about.targetMarkets})]}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{width:"100%",py:2,children:[(0,u.jsx)(Cd,{text:"Budget"}),(0,u.jsx)(rn.Z,{variant:"heading4",children:null!==(t=(0,rs.xG)(null===d||void 0===d?void 0:d.budget.budget,null===d||void 0===d?void 0:d.budget.currency))&&void 0!==t?t:"--"})]}),(0,u.jsx)(un,{}),(null===d||void 0===d?void 0:d.about.goals)&&(0,u.jsxs)(nn.Z,{py:2,children:[(0,u.jsxs)(nn.Z,{direction:"row",spacing:1,px:3,children:[(0,u.jsx)(bI,{fill:tr.IV[500]}),(0,u.jsx)(Cd,{text:"Project goals"})]}),(0,u.jsx)(m$,{items:P$,content:null===d||void 0===d||null===(n=d.about)||void 0===n?void 0:n.goals,isEditable:!1},"goals")]}),(0,u.jsx)(un,{}),(null===d||void 0===d||null===(r=d.about)||void 0===r?void 0:r.audience)&&(0,u.jsxs)(nn.Z,{py:2,children:[(0,u.jsxs)(nn.Z,{direction:"row",spacing:1,px:3,children:[(0,u.jsx)(aqe,{fill:tr.IV[500]}),(0,u.jsx)(Cd,{text:"Target audience"})]}),(0,u.jsx)(m$,{items:P$,content:null===d||void 0===d||null===(o=d.about)||void 0===o?void 0:o.audience,isEditable:!1},"audience")]}),(0,u.jsx)(un,{}),(null===d||void 0===d||null===(i=d.budget)||void 0===i?void 0:i.budgetDescription)&&(0,u.jsxs)(nn.Z,{py:2,children:[(0,u.jsxs)(nn.Z,{direction:"row",spacing:1,px:3,children:[(0,u.jsx)(fqe,{fill:tr.IV[500]}),(0,u.jsx)(Cd,{text:"budget Description"})]}),(0,u.jsx)(m$,{items:P$,content:null===d||void 0===d?void 0:d.budget.budgetDescription,isEditable:!1},"budgetDescription")]})]})]})})};!function(e){e.Error="information",e.Success="feature-request",e.None=""}(lXe||(lXe={}));var xXe,wXe=new Map([[Kt.Ae.FeatureRequest,"Feature request"],[Kt.Ae.Information,"Information"],[Kt.Ae.JoinRequest,"Join request"],[Kt.Ae.Problem,"Problem"],[Kt.Ae.Other,"Other"]]),CXe={name:"",description:"",request:"",website:"",email:""},jXe=function(e){var t=e.sx,n=(0,o.useState)(lXe.None),r=(0,Le.Z)(n,2),i=r[0],a=r[1],s=function(){var e=i!==lXe.Error;return(0,u.jsx)(WDe,{open:i!==lXe.None,autoHideDuration:4500,onClose:function(){return a(lXe.None)},anchorOrigin:{vertical:"bottom",horizontal:"center"},children:(0,u.jsx)(ao.Z,{elevation:0,sx:{width:"100%",borderRadius:"10px",py:1.25,px:1.5,background:e?tr.so[100]:tr.Us[100]},children:(0,u.jsxs)(nn.Z,{spacing:1,direction:"row",alignItems:"center",children:[e?(0,u.jsx)(n5,{fill:tr.so[700],style:{width:22,height:22}}):(0,u.jsx)(V2,{fill:tr.Us[700],style:{width:22,height:22}}),(0,u.jsx)(rn.Z,{variant:"heading4",component:"span",color:"primaryDark.600",sx:{cursor:"pointer",textTransform:"unset"},children:e?"Thank you for your inquiry, we will respond shortly!":"Oops, something went wrong. Please try again later."}),(0,u.jsx)(io.Z,{size:"small","aria-label":"close",color:"inherit",onClick:function(){return a(lXe.None)},children:(0,u.jsx)(K3.Z,{sx:{fontSize:"1.3rem",color:"primaryDark.600"}})})]})})})},c=fd({mode:"onChange",defaultValues:CXe}),d=oa({resource:"/contact-requests/"}).mutate,p=c.formState.isValid,f=c.handleSubmit,h=c.reset;return(0,u.jsxs)(nn.Z,{spacing:5,sx:(0,l.Z)({},t),children:[(0,u.jsx)(rn.Z,{sx:{typography:{xs:"publicHeading3",lg:"publicHeading1"}},children:"Talk to us"}),(0,u.jsx)(yk,{text:"connect@spona.io"}),(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},c),{},{children:(0,u.jsx)(tn,{component:"form",onSubmit:f((function(e){d((0,l.Z)({},e),{onSuccess:function(){a(lXe.Success),h()},onError:function(){a(lXe.Error)}})})),children:(0,u.jsxs)(nn.Z,{direction:"column",spacing:3,children:[(0,u.jsx)(Zd,{placeholder:"Enter your email",name:"email",required:!0,label:"e-mail",type:"email"}),(0,u.jsx)(Zd,{placeholder:"Enter your first and last name",name:"name",required:!0,label:"name"}),(0,u.jsx)(Zd,{placeholder:"Enter your website",name:"website",label:"website"}),(0,u.jsx)(Hd,{choices:wXe,label:"request",placeholder:"Select your request",name:"request"}),(0,u.jsx)(Zd,{variant:"outlined",name:"description",placeholder:"Let us know how we can help you",label:"description",multiline:!0,minRows:5,maxRows:8}),(0,u.jsx)(Wo,{sx:{width:{xs:"100%",md:"fit-content"}},type:"submit",disabled:!p,children:"SUBMIT"})]})})})),(0,u.jsx)(s,{})]})},SXe={xs:"100%",sm:"60%",md:"90%",lg:"95%"},kXe=function(e){var t=e.state,n=e.address,r=e.img,o=e.sx,i=e.alt;Bn(ir.breakpoints.down("lg"));return(0,u.jsxs)(nn.Z,{spacing:1.5,alignItems:{xs:"center",lg:"normal"},sx:(0,l.Z)({width:"100%"},o),children:[(0,u.jsx)(tn,{component:"img",src:r,alt:i,sx:{borderRadius:"15px",width:SXe}}),(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"start",justifyContent:"space-between",sx:{width:SXe},children:[(0,u.jsx)(rn.Z,{variant:"publicHeading5",children:t}),n]})]})},ZXe=[{id:1,state:"Croatia",address:(0,u.jsxs)(rn.Z,{variant:"publicBody5Regular",textAlign:"end",children:["Ivana Lu\u010di\u0107a 2a",(0,u.jsx)("br",{}),"(Eurotower)",(0,u.jsx)("br",{}),"10000, Zagreb,",(0,u.jsx)("br",{}),"Croatia"]}),imgMobile:(0,rs.mB)(Wxe.W.ZagrebMobile),img:(0,rs.mB)(Wxe.W.Zagreb),alt:"Zagreb, ban Jela\u010di\u0107 square"},{id:2,state:"Ireland",address:(0,u.jsxs)(rn.Z,{variant:"publicBody5Regular",textAlign:"end",children:["43 O'Connell Street Upper North City,",(0,u.jsx)("br",{}),"Dublin, D01 DK81 ",(0,u.jsx)("br",{}),(0,u.jsx)("br",{}),"Ireland"]}),imgMobile:(0,rs.mB)(Wxe.W.DublinMobile),img:(0,rs.mB)(Wxe.W.Dublin),alt:"Galway, Galway cathedral"},{id:3,state:"UK",address:(0,u.jsxs)(rn.Z,{variant:"publicBody5Regular",textAlign:"end",children:["I7 Bell Yard ",(0,u.jsx)("br",{})," London, ",(0,u.jsx)("br",{})," WC2A 2JR ",(0,u.jsx)("br",{})," United Kingdom"]}),imgMobile:(0,rs.mB)(Wxe.W.UKMobile),img:(0,rs.mB)(Wxe.W.UK),alt:"London, street"},{id:4,state:"USA",address:(0,u.jsxs)(rn.Z,{variant:"publicBody5Regular",textAlign:"end",children:["111 NE 1st Street, 8th ",(0,u.jsx)("br",{})," Floor 88962, ",(0,u.jsx)("br",{})," Miami, Florida 33132, ",(0,u.jsx)("br",{})," United States"]}),imgMobile:(0,rs.mB)(Wxe.W.USAMobile),img:(0,rs.mB)(Wxe.W.USA),alt:"Miami beach"},{id:5,state:"Hungary",address:(0,u.jsxs)(rn.Z,{variant:"publicBody5Regular",textAlign:"end",children:["71173 Budapest, ",(0,u.jsx)("br",{})," Pesti \xfat 237.A/7, ",(0,u.jsx)("br",{})," Hungary"]}),imgMobile:(0,rs.mB)(Wxe.W.HungaryMobile),img:(0,rs.mB)(Wxe.W.Hungary),alt:"Budapest, Hungary"}],OXe=["id"],EXe={description:"Get in touch with Spona and find our offices."},DXe=function(){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Kwe,(0,l.Z)({},EXe)),(0,u.jsxs)(nn.Z,{spacing:12,alignItems:"start",direction:{xs:"column-reverse",lg:"row"},sx:(0,l.Z)({mt:20},ar),children:[(0,u.jsx)(kn,{width:{xs:"auto",lg:"45%"},container:!0,columnSpacing:3,rowSpacing:4,columns:{xs:12,md:6,lg:12},children:ZXe.map((function(e){var t=e.id,n=Nn(e,OXe);return(0,u.jsx)(kn,{item:!0,xs:12,md:3,lg:6,children:(0,u.jsx)(kXe,(0,l.Z)({id:t},n))},t)}))}),(0,u.jsx)(jXe,{sx:{width:{xs:"100%",lg:"55%"}}})]})]})},PXe=n(66025),AXe=n(86475),MXe=n(14987),TXe=n(57093),IXe=n(34346),RXe=n(44249),FXe=n(26324),BXe=n(7917),LXe=n(2342),NXe=n(95975),_Xe=n(34545),zXe=n(2038),HXe=n(73910),WXe=n(12553),VXe=n(45257),UXe=n(31978),qXe=n(19453),GXe=n(81078),YXe=n(11977),KXe=n(75911),JXe=[{src:PXe,alt:"logo_Blvck Paris",width:"55px"},{src:ywe,alt:"logo_Game boost",width:"55px"},{src:bwe,alt:"logo_light film intenrnational",width:"93px"},{src:gwe,alt:"logo_museum of illusions",width:"55px"}],XXe=[{src:PXe,alt:"logo_Blvck Paris",width:"80px"},{src:wwe,alt:"logo_Game boost",width:"80px"},{src:bwe,alt:"logo_light film intenrnational",width:"105px"},{src:xwe,alt:"logo_museum of illusions",width:"80px"}],QXe=[{subtitle:"May 2018",content:"Spona's journey starts at the Spark.me Startup Competition in Montenegro - the eminent competition for disruptive ideas in the field of tech and business in Southeast Europe. Spona, then known as Top Digital Agency, was awarded first place, impressing the judges with its innovative vision."},{subtitle:"February 2019",content:"The next big step for the team was running a record breaking crowd-funding campaign on Funderbeam. Within only 26 hours of releasing the campaign for the public, Top Digital Agency funded 141% of its initially set goal, making it the quickest funded Funderbeam campaign as of 2019."},{subtitle:"August 2019",content:"In August of 2019, Top Digital Agency was proud to become the first investment for the venture capital fund Fil Rouge capital - one of the biggest startup funds in Croatia and the broader region, according to the 2021 European Capital Report."},{subtitle:"July 2021",content:"In July 2021, we caught the attention of Feelsgood Capital, Croatia's first social impact fund. By receiving the fund's first ever investment, we were able to further build key elements of our B2B platform \u2013 a crucial step in our development as a company."},{subtitle:"October 2022",content:"Two years later, Top Digital Agency has solidified its customer base and facilitated numerous successful projects. Around this time, the concept for the comprehensive hiring, management and finance platform Spona was pioneered. The team started working on new functionalities and the reimagined visual identity and brand that reflects the values of Spona today."},{subtitle:"June 2023",content:"The first version of End-to-End Project Management, TDA\u2019s all-in-one project management tool, is released and ready to be used by buyers and digital service sellers. It marks TDA\u2019s biggest product launch since 2018."},{subtitle:"September 2023",content:"The rebrand is officially launched: Top Digital Agency becomes the Spona platform we know and love today. Ever since then, the team has been working on polishing the platform and introducing exciting new features to help streamline all phases of the project lifecycle. "},{subtitle:"October 2023",content:"Perhaps the most fulfilling milestone on our journey has been expanding our network of digital service sellers to over 10,000 agencies \u2013 a testament to how serving the needs of both sellers and buyers is at the heart of everything we do."}],$Xe=[(0,u.jsx)(tn,{src:(0,rs.mB)(Wxe.W.OurJourneyCarouselMobile),component:"img",width:"100%",alt:"Sales team member presenting results to other team members."}),(0,u.jsx)(tn,{src:(0,rs.mB)(Wxe.W.OurJourneyCarouselMobile2),component:"img",width:"100%",alt:"Two colleagues casually chatting in the hallway."}),(0,u.jsx)(tn,{src:(0,rs.mB)(Wxe.W.OurJourneyCarouselMobile3),component:"img",width:"100%",alt:"Three colleagues in a group photo."}),(0,u.jsx)(tn,{src:(0,rs.mB)(Wxe.W.OurJourneyCarouselMobile4),component:"img",width:"100%",alt:"Close-up of a person typing on the computer."}),(0,u.jsx)(tn,{src:(0,rs.mB)(Wxe.W.OurJourneyCarouselMobile5),component:"img",width:"100%",alt:"Two colleagues looking at the phone."}),(0,u.jsx)(tn,{src:(0,rs.mB)(Wxe.W.OurJourneyCarouselMobile6),component:"img",width:"100%",alt:"Two colleagues walking down the hallway."}),(0,u.jsx)(tn,{src:(0,rs.mB)(Wxe.W.OurJourneyCarouselMobile7),component:"img",width:"100%",alt:"A person typing on the computer and smiling."}),(0,u.jsx)(tn,{src:(0,rs.mB)(Wxe.W.OurJourneyCarouselMobile8),component:"img",width:"100%",alt:"Two colleagues celebrating success with a high-five."})],eQe=[(0,u.jsx)(tn,{src:(0,rs.mB)(Wxe.W.OurJourneyCarousel),component:"img",width:"100%",alt:"Sales team member presenting results to other team members."}),(0,u.jsx)(tn,{src:(0,rs.mB)(Wxe.W.OurJourneyCarousel2),component:"img",width:"100%",alt:"Two colleagues casually chatting in the hallway."}),(0,u.jsx)(tn,{src:(0,rs.mB)(Wxe.W.OurJourneyCarousel3),component:"img",width:"100%",alt:"Three colleagues in a group photo."}),(0,u.jsx)(tn,{src:(0,rs.mB)(Wxe.W.OurJourneyCarousel4),component:"img",width:"100%",alt:"Close-up of a person typing on the computer."}),(0,u.jsx)(tn,{src:(0,rs.mB)(Wxe.W.OurJourneyCarousel5),component:"img",width:"100%",alt:"Two colleagues looking at the phone."}),(0,u.jsx)(tn,{src:(0,rs.mB)(Wxe.W.OurJourneyCarousel6),component:"img",width:"100%",alt:"Two colleagues walking down the hallway."}),(0,u.jsx)(tn,{src:(0,rs.mB)(Wxe.W.OurJourneyCarousel7),component:"img",width:"100%",alt:"A person typing on the computer and smiling."}),(0,u.jsx)(tn,{src:(0,rs.mB)(Wxe.W.OurJourneyCarousel8),component:"img",width:"100%",alt:"Two colleagues celebrating success with a high-five."})],tQe=[{id:1,title:"Business Analyst",name:"Mihael Bencic",img:MXe,alt:"Mihael Bencic, Business Analyst at Spona"},{id:2,title:"Office Manager",name:"Katarina Cavrag",img:TXe,alt:"Katarina Cavrag, Office Manager at Spona"},{id:3,title:"Product Manager",name:"Kathryn Foulkes",img:RXe,alt:"Kathryn Foulkes, Product Manager at Spona"},{id:4,title:"Marketing & Sales Support Intern",name:"Stela Brezovic",img:FXe,alt:"Stela Brezovi\u0107, Marketing and Sales intern at Spona"},{id:5,title:"Customer Success Operations Manager",name:"Lara Lepusic",img:BXe,alt:"Lara Lepusic, Customer Success Operations Manager at Spona"},{id:6,title:"Sales and Client Success Lead",name:"Mihovil Zigic",img:LXe,alt:"Mihovil Zigic, Sales and Client Success Lead at Spona"},{id:7,title:"UI/UX Designer",name:"Ana-Marija Gusa",img:HXe,alt:"Ana Marija Gusa, UX/UI Designer at Spona"},{id:8,title:"Junior Consultant",name:"Mladena Loncar",img:NXe,alt:"Mladena Loncar, Junior Consultant at Spona"},{id:9,title:"Global Sales Account & Partnerships Manager",name:"Nika Ujevic-Beusan",img:_Xe,alt:"Nika Ujevic-Beusan, Global Sales Account and Partnerships Manager at Spona"},{id:10,title:"Operations Specialist",name:"Lovro Sikic",img:zXe,alt:"Lovro Sikic, Operation Specialist at Spona"},{id:11,title:"Head of Legal",name:"Iva Matijevic",img:AXe,alt:"Iva Matijevic, Head of Legal at Spona"},{id:12,title:"Finance",name:"Slaven Vukasovic",img:WXe,alt:"Slaven Vukasovic, CFO at Spona"},{id:13,title:"Sales Account & Partnership Manager",name:"Katarina Mijic Sipos",img:IXe,alt:"Katarina Mijic Sipos, Sales Account & Partnership Manager at Spona"},{id:14,title:"Copywriter",name:"Ana Cutura",img:VXe,alt:"Ana Cutura, Copywriter at Spona"},{id:15,title:"Sales Representative",name:"Tyler Richard Kirby",img:UXe,alt:"Tyler Richard Kirby, Sales Representative at Spona"},{id:16,title:"Development Team Lead",name:"Tomislav Smetko",img:qXe,alt:"Tomislav Smetko, Development Team Lead at Spona"},{id:17,title:"Digital Marketing Specialist",name:"Ivan Paljetak",img:GXe,alt:"Ivan Paljetak, Digital Marketing Specialist at Spona"},{id:18,title:"Business Analyst",name:"Nikola Crcek",img:YXe,alt:"Nikola Crcek, Business Analyst at Spona"},{id:19,title:"Business Analyst",name:"Nikolina Misic",img:KXe,alt:"Nikolina Misic, Business Analyst at Spona"}],nQe=function(){var e=Bn(ir.breakpoints.down("gr"));return(0,u.jsxs)(nn.Z,{spacing:{md:8},direction:"row",justifyContent:"space-between",alignItems:"center",sx:(0,l.Z)((0,l.Z)({},ar),{},{height:"calc(100vh + ".concat(rc,"px)")}),children:[(0,u.jsxs)(nn.Z,{spacing:3,maxWidth:{xs:"100%",xl:"45%"},children:[(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(rn.Z,{sx:{typography:{xs:"publicHeading3",md:"publicHeading2"}},children:"About us"}),(0,u.jsxs)(rn.Z,{sx:{typography:{xs:"publicBody4Regular",md:"publicBody3Regular"}},children:["Spona is a global B2B platform that helps businesses streamline the process of hiring and managing digital service sellers. Our network of vetted sellers makes hiring the perfect project partner a painless process. The next step is supporting every step of the managing process, from planning, execution, project insights to successfully financing all of the above.",(0,u.jsx)("br",{}),(0,u.jsx)("br",{}),"Join our community and find out how simple and risk-free starting a project can be."]})]}),e?(0,u.jsx)(nn.Z,{children:(0,u.jsx)(nn.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",children:JXe.map((function(e){return(0,u.jsx)(tn,{component:"img",src:e.src,alt:e.alt,width:e.width},e.src)}))})}):(0,u.jsx)(nn.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",children:XXe.map((function(e){return(0,u.jsx)(tn,{component:"img",src:e.src,alt:e.alt,width:e.width},e.src)}))})]}),(0,u.jsx)(nn.Z,{display:{xs:"none",md:"flex"},sx:{width:{xs:"100%",xl:"50%"}},alignItems:"center",children:(0,u.jsx)(tn,{component:"img",src:(0,rs.mB)(Wxe.W.AbaoutUsHero),alt:"Female posing with the Spona tote bag. Close up image of the Spona pen and notebook on a laptop.",sx:{width:{md:"40vw",xl:"90%"}}})})]})},rQe=[{value:"9K+",title:"Digital service sellers"},{value:"4K+",title:"Businesses hiring digital service sellers"},{value:"133+",title:"Countries where we operate"},{value:"40+",title:"Digital services offered"}],oQe=function(e){var t=e.sx,n=e.spacing,r=void 0===n?8:n,o=e.breakWord,i=void 0===o||o;return(0,u.jsxs)(nn.Z,{spacing:r,sx:(0,l.Z)({position:"relative",backgroundImage:"url(".concat((0,rs.mB)(Wxe.W.SponaInNumbers),")"),backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"cover",height:"20%",mb:{xs:"2.5rem",md:"5.65rem",lg:"5.65rem"},p:"2rem",borderRadius:"20px",color:"common.black"},t),children:[(0,u.jsxs)(rn.Z,{variant:"publicHeading3",children:["Spona in ",i&&(0,u.jsx)("br",{}),"Numbers"]}),(0,u.jsx)(nn.Z,{direction:"row",flexWrap:"wrap",width:{lg:"100%",xl:"70%"},justifyContent:"space-between",alignItems:"start",gap:"40px",children:rQe.map((function(e){return(0,u.jsxs)(nn.Z,{spacing:2,sx:{width:{xs:"100%",sm:"45%",lg:"20%"},textAlign:{xs:"center",sm:"left"}},children:[(0,u.jsx)(rn.Z,{variant:"publicHeading4",children:e.value}),(0,u.jsx)(rn.Z,{width:"100%",variant:"publicBody5Regular",children:e.title})]})}))})]})},iQe=n(60879),aQe=n(10693),sQe=["title","titleId"];function lQe(){return lQe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lQe.apply(this,arguments)}function cQe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function uQe(e,t){var n=e.title,r=e.titleId,i=cQe(e,sQe);return o.createElement("svg",lQe({width:33,height:33,viewBox:"0 0 33 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,xXe||(xXe=o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.458374 3.24634C0.458374 2.53545 0.740775 1.85367 1.24345 1.351C1.74613 0.848322 2.4279 0.565922 3.13879 0.565922H29.8584C30.2107 0.565346 30.5596 0.634263 30.8852 0.768727C31.2109 0.903191 31.5068 1.10056 31.756 1.34954C32.0053 1.59851 32.203 1.89421 32.3378 2.21969C32.4726 2.54517 32.5419 2.89404 32.5417 3.24634V29.9659C32.5421 30.3183 32.473 30.6673 32.3384 30.9929C32.2037 31.3185 32.0062 31.6144 31.7572 31.8637C31.5081 32.1129 31.2123 32.3106 30.8867 32.4454C30.5611 32.5802 30.2122 32.6494 29.8598 32.6493H3.13879C2.78667 32.6493 2.438 32.5799 2.1127 32.4451C1.7874 32.3103 1.49185 32.1127 1.24293 31.8637C0.994016 31.6146 0.796608 31.319 0.66199 30.9936C0.527373 30.6682 0.458183 30.3195 0.458374 29.9674V3.24634ZM13.1575 12.7984H17.5019V14.9801C18.129 13.7259 19.7332 12.5972 22.1438 12.5972C26.7652 12.5972 27.8605 15.0953 27.8605 19.6788V28.1693H23.1836V20.723C23.1836 18.1126 22.5565 16.6397 20.964 16.6397C18.7546 16.6397 17.8359 18.2278 17.8359 20.723V28.1693H13.1575V12.7984ZM5.13671 27.9695H9.81504V12.5972H5.13671V27.968V27.9695ZM10.4844 7.58342C10.4932 7.98399 10.422 8.38228 10.2748 8.75492C10.1276 9.12757 9.90743 9.46706 9.62725 9.75347C9.34708 10.0399 9.01252 10.2674 8.6432 10.4228C8.27389 10.5782 7.87727 10.6582 7.4766 10.6582C7.07594 10.6582 6.67932 10.5782 6.31 10.4228C5.94069 10.2674 5.60613 10.0399 5.32595 9.75347C5.04578 9.46706 4.82564 9.12757 4.67844 8.75492C4.53125 8.38228 4.45997 7.98399 4.46879 7.58342C4.4861 6.79717 4.8106 6.04895 5.37279 5.49901C5.93498 4.94906 6.69016 4.64111 7.4766 4.64111C8.26305 4.64111 9.01823 4.94906 9.58042 5.49901C10.1426 6.04895 10.4671 6.79717 10.4844 7.58342Z",fill:"current"})))}var dQe,pQe,fQe=o.forwardRef(uQe),hQe=(n.p,function(e){var t=e.name,n=e.title,r=e.img,o=e.borderRadius,i=e.sx,a=e.imgSx,s=e.width,c=e.alt;return(0,u.jsxs)(nn.Z,{spacing:"2rem",width:null!==s&&void 0!==s?s:"80%",sx:(0,l.Z)({},i),children:[(0,u.jsx)(nn.Z,{sx:{width:"100%",position:"relative"},children:(0,u.jsx)(tn,{alt:c,component:"img",src:r,zIndex:2,borderRadius:o,sx:(0,l.Z)({width:"100%",height:"100%",objectFit:"cover",overflow:"hidden"},a)},r)}),t&&n&&(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(rn.Z,{sx:{typography:{xs:"publicBody3Regular",lg:"publicBody4Regular"}},children:t}),(0,u.jsx)(rn.Z,{sx:{typography:{xs:"body2",lg:"body3"}},color:"primaryDark.500",children:n})]})]})}),mQe=function(e){var t=e.img,n=e.name,r=e.linkedIn,o=e.content,i=e.title,a=e.bgcolor,s=void 0===a?tr.E4[100]:a,l=e.imgSx,c=e.alt;return(0,u.jsxs)(nn.Z,{bgcolor:s,p:{lg:"2.5rem",md:"2.5rem",xs:"1.5rem"},spacing:4,borderRadius:"20px",justifyContent:"space-between",width:{lg:"50%",md:"50%",xs:"100%"},children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:{xs:0,sm:3,md:3,lg:3},children:[(0,u.jsxs)(nn.Z,{direction:"row",spacing:2,alignItems:{xs:"end",sm:"center"},children:[(0,u.jsx)(hQe,{name:n,img:t,alt:c,imgSx:l,sx:{maxWidth:"200px"}}),(0,u.jsx)(rn.Z,{sx:{maxWidth:{xs:"30%",lg:"100%"},typography:{xs:"publicHeading5",lg:"publicHeading4"}},children:n})]}),(0,u.jsxs)(nn.Z,{sx:{display:{xs:"none",md:"flex"}},children:[(0,u.jsx)("a",{href:r,target:"_blank",rel:"noreferrer",children:(0,u.jsx)(fQe,{fill:"#000000"})})," "]})]}),(0,u.jsx)(rn.Z,{variant:"publicBody4Regular",children:o}),(0,u.jsx)(rn.Z,{variant:"publicBody4",children:i}),(0,u.jsxs)(nn.Z,{sx:{display:{xs:"flex",md:"none"}},children:[(0,u.jsx)("a",{href:r,target:"_blank",rel:"noreferrer",children:(0,u.jsx)(fQe,{fill:"#000000"})})," "]})]})},vQe=["children","value","index"],gQe=function(e){var t=e.children,n=e.value,r=e.index,o=Nn(e,vQe);return(0,u.jsx)("div",(0,l.Z)((0,l.Z)({role:"tabpanel",hidden:n!==r,id:"simple-tabpanel-".concat(r),"aria-labelledby":"simple-tab-".concat(r)},o),{},{children:n===r&&(0,u.jsx)(u.Fragment,{children:t})}))},yQe=function(){var e=(0,o.useState)(0),t=(0,Le.Z)(e,2),n=t[0],r=t[1],i=Bn(ir.breakpoints.down("md"));return(0,u.jsxs)(nn.Z,{mt:12,mb:5,spacing:3,sx:(0,l.Z)({},ar),children:[(0,u.jsxs)(nn.Z,{spacing:4,children:[(0,u.jsx)(rn.Z,{variant:"publicHeading3",children:"Who are we?"}),(0,u.jsx)(rn.Z,{width:{lg:"75%",md:"75%",xs:"100%"},variant:"publicBody3Light",children:"We are a team of diverse young professionals dedicated to innovating the business sphere by democratizing the way companies create. We are passionate about breaking geographical barriers of access and providing equal opportunity for growth, while ensuring that this process remains healthy and productive for all parties."})]}),(0,u.jsxs)(nn.Z,{direction:"row",children:[(0,u.jsx)(Wo,{variant:"secondary",sx:{borderTopRightRadius:"0px !important",color:0===n?"primaryLight.500":"primaryDark.500",borderBottomRightRadius:"0px !important",boxShadow:0===n?"6px 6px 15px 0px #3845721A":"initial",borderColor:"secondaryBlue.100"},onClick:function(){return r(0)},children:"Executive"}),(0,u.jsx)(Wo,{variant:"secondary",sx:{borderTopLeftRadius:"0px !important",borderBottomLeftRadius:"0px !important",borderColor:"secondaryBlue.100",color:1===n?"primaryLight.500":"primaryDark.500",boxShadow:1===n?"6px 6px 15px 0px #3845721A":"initial"},onClick:function(){return r(1)},children:"Team members"})]}),(0,u.jsx)(gQe,{value:n,index:0,children:(0,u.jsxs)(nn.Z,{spacing:7,direction:i?"column":"row",children:[(0,u.jsx)(mQe,{img:iQe,name:"Goran Deak",linkedIn:"https://www.linkedin.com/in/gorandeak/",content:"Goran has more than 10 years of experience in marketing, IT management, consulting and sales. He\u2019s climbed the corporate ladder, holding positions as entry level employee, department head and CTO of a large Croatian technology company. Prior to TDA, he was the owner of a successful 4 year-old Croatian digital agency with clients on 5 continents. Under Goran\u2019s leadership, the agency developed the TDA platform and business model, then evolved it to the Spona platform of today.",title:"Founder & Chief Executive Officer",alt:"Goran Deak, CEO at Spona"}),(0,u.jsx)(mQe,{img:aQe,name:"Lehady Sani-Agatha",linkedIn:"https://www.linkedin.com/in/lehady-sani-agatha/",content:"Lehady is a full stack developer with experience in IT, problem-solving, leadership, and management. At Spona, Lehady has implemented competitive new technologies and optimized the company\u2019s strategy, boosting efficiency and productivity. He\u2019s also a former staff sergeant in the United States Air Force, has a BA in web and mobile computing from the Rochester Institute of Technology and a BS in criminal justice from Ashworth University.",title:"Chief Operating Officer & Chief Technology Officer",bgcolor:"#FBECD7",alt:"Lehady Sani-Agatha, COO and CTO at Spona"})]})}),(0,u.jsx)(gQe,{value:n,index:1,children:(0,u.jsx)(kn,{container:!0,rowGap:5,columns:{xs:4,sm:12,md:12,lg:12,xl:12},children:tQe.map((function(e){return(0,u.jsx)(kn,{item:!0,xs:4,sm:6,md:4,lg:2,xl:2,sx:{display:"flex",justifyContent:{xs:"center",sm:"start"}},children:(0,u.jsx)(hQe,{alt:e.alt,title:e.title,name:e.name,img:e.img,sx:e.sx})},e.id)}))})})]})},bQe=(dQe={},(0,t.Z)(dQe,ir.breakpoints.values.xs,{items:1}),(0,t.Z)(dQe,ir.breakpoints.values.sm,{items:2}),(0,t.Z)(dQe,ir.breakpoints.values.md,{items:3}),(0,t.Z)(dQe,ir.breakpoints.values.lg,{items:4}),(0,t.Z)(dQe,ir.breakpoints.values.xl,{items:3}),(0,t.Z)(dQe,ir.breakpoints.values.xxl,{items:3}),dQe),xQe=function(){var e=Bn(ir.breakpoints.up("sm")),t=(0,o.useState)(0),n=(0,Le.Z)(t,2),r=n[0],i=n[1];return(0,u.jsx)(nn.Z,{mt:{xs:0,sm:8},pt:{xs:0,md:8},pb:{xs:8},sx:{backgroundColor:{xs:"common.white",lg:"primaryDark.200"},position:"relative"},children:(0,u.jsxs)(nn.Z,{spacing:{xs:1,lg:20},direction:{xs:"column-reverse",lg:"row"},alignItems:"center",justifyContent:"start",sx:(0,l.Z)((0,l.Z)({},ar),{},{position:"relative"}),children:[(0,u.jsxs)(nn.Z,{spacing:2.5,width:{xs:"100%",lg:"60%"},children:[(0,u.jsx)(rn.Z,{sx:{display:{xs:"none",md:"block"},width:"100%",typography:{xs:"publicHeading4",lg:"publicHeading3"},mr:42,pb:{xs:0,md:1,lg:2}},children:"Our journey"}),(0,u.jsx)(rn.Z,{maxWidth:{xs:"100%",lg:"90%"},variant:"publicBody2",children:QXe[r].subtitle}),(0,u.jsx)(rn.Z,{maxWidth:{xs:"100%",lg:"90%"},variant:"publicBody3Light",children:QXe[r].content})]}),(0,u.jsx)(tn,{sx:{width:"100%"},children:(0,u.jsx)(Wwe,{responsive:bQe,items:e?eQe:$Xe,onChangedSlide:function(e){return i(e)},buttonStyles:{display:{xs:"none",md:"block"},top:{xs:"15%",sm:"30%",lg:"50%"},transform:"translateY(-50%)",right:{xs:"-4%",md:"-1%",lg:"0%",xxl:"-15%"}}})})]})})},wQe={title:"Spona - Global B2B Platform - Learn more About Us",description:"Spona is a global B2B platform that helps businesses streamline the process of hiring and managing digital service sellers. Find out more and work with us."},CQe=function(){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Kwe,(0,l.Z)({},wQe)),(0,u.jsxs)(nn.Z,{width:"100%",overflow:"hidden",children:[(0,u.jsx)(nQe,{}),(0,u.jsx)(oQe,{sx:(0,l.Z)((0,l.Z)({},ar),{},{mb:{lg:"5.65rem",md:"5.65rem",xs:"2.5rem"},p:"2rem"})}),(0,u.jsx)(xQe,{}),(0,u.jsx)(yQe,{})]})]})},jQe=n(48786),SQe=["resourceLimit"],kQe=function(){var e=(0,ze.s0)(),t=[{field:"status",headerName:"Status",flex:.1,renderCell:function(e){return(0,u.jsx)(EI,{text:e.value})}},{field:"title",headerName:"Title",flex:.3,renderCell:function(e){return(0,u.jsx)(rn.Z,{variant:"body2",sx:{color:"primaryDark.600"},children:(0,rs.$G)(e.value,40)})}},{field:"published",headerName:"Published",flex:.15,renderCell:function(e){return(0,u.jsx)(rn.Z,{children:(0,rs.qJ)(e.value,"")})}},{field:"seller",headerName:"Company",flex:.2,renderCell:function(e){return(0,u.jsx)(Cme,{resource:"companies",id:e.value,displayName:"name"})}},{field:"edit",headerName:"Approved",flex:.05,renderCell:function(e){return(0,u.jsx)(Cme,{resource:"case-studies-content",id:e.row.edit||e.row.content,displayName:"name",renderComponent:function(e){var t=e.status===Kt.U_.Pending?Kt.U_.Pending:e.status===Kt.U_.Draft?Kt.U_.Draft:"approved";return(0,u.jsx)(EI,{text:t,componentReturnType:"dot"})}})}},{field:"editIcon",headerName:"",flex:.03,sortable:!1,disableColumnMenu:!0,renderCell:function(t){return(0,u.jsx)(io.Z,{onClick:function(n){n.stopPropagation(),e("./edit/".concat(t.row.id))},children:(0,u.jsx)(jQe.Z,{})})}},{field:"originId",headerName:"TDA ID",flex:.03,renderCell:function(e){return(0,u.jsx)(rn.Z,{children:e.value})}}],n=(Kt.U_.Pending,Kt.U_.Published,Kt.U_.Verified,Kt.U_.UnderReview,ake({resourceUrl:"case-studies"})),r=n.resourceLimit,o=Nn(n,SQe);return(0,u.jsx)(nn.Z,{sx:{height:"fit-content",width:"100%"},spacing:2,children:(0,u.jsx)(Rke,(0,l.Z)({disableSelectionOnClick:!0,numberOfRowsPerPage:r,columns:t,onRowClick:function(t){return t.row.edit?e("./".concat(t.row.edit)):e("./".concat(t.row.content))},withElements:{withTitle:"Case studies (tabs & filters will be added)",withCta:(0,u.jsx)(Wo,{onClick:function(){return e("./create")},children:"Create case study"})}},o))})},ZQe=function(e){var t=e.onClick;return(0,u.jsx)(io.Z,{onClick:t,children:(0,u.jsx)(cs,{fill:tr.E4[500],style:{width:18,height:18}})})},OQe=function(e){var t=e.title,n=e.content,r=e.actionButton,i=void 0===r?(0,u.jsx)(ZQe,{}):r,a=(e.sx,(0,o.useState)(!1)),s=(0,Le.Z)(a,2),l=s[0],c=s[1];return(0,u.jsxs)(nn.Z,{spacing:1,sx:{width:"100%"},children:[(0,u.jsxs)(nn.Z,{spacing:.5,sx:{width:"100%"},children:[(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",height:34,children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",children:t}),(0,u.jsx)("div",{onClick:function(){return c(!l)},children:i})]}),(0,u.jsx)(un,{})]}),"function"===typeof n?n(l,c):n]})},EQe=["resourceLimit"],DQe=function(){var e=(0,ze.s0)(),t=[{field:"status",headerName:"Status",flex:.1,renderCell:function(e){return(0,u.jsx)(EI,{text:e.value})}},{field:"name",headerName:"Name",flex:.2,renderCell:function(e){return(0,u.jsx)(rn.Z,{variant:"body2",sx:{color:"primaryDark.600"},children:e.value})}},{field:"published",headerName:"Published",flex:.2,renderCell:function(e){return(0,u.jsx)(rn.Z,{children:(0,rs.qJ)(e.value,"-")})}},{field:"pitchCount",headerName:"Pitch Count",flex:.2,renderCell:function(e){return(0,u.jsx)(rn.Z,{variant:"heading2",sx:{color:"primaryDark.700"},children:e.value})}},{field:"budget",headerName:"Budget",flex:.2,renderCell:function(e){return(0,u.jsx)(rn.Z,{variant:"body2",sx:{color:"primaryDark.600"},children:(0,rs.xG)(e.value,e.row.currency)})}},{field:"edit",headerName:"Approved",flex:.1,renderCell:function(e){var t=e.row.status===Kt.Tl.Pending||e.row.edit;return(0,u.jsx)(EI,{text:t?Kt.Tl.Pending:e.row.status===Kt.Tl.Draft?Kt.Tl.Draft:"approved",componentReturnType:"dot"})}},{field:"editIcon",headerName:"",flex:.03,sortable:!1,disableColumnMenu:!0,renderCell:function(t){return(0,u.jsx)(io.Z,{onClick:function(n){n.stopPropagation(),e("./edit/".concat(t.row.id))},children:(0,u.jsx)(ZQe,{})})}}],n=(Kt.Tl.Pending,Kt.Tl.Active,Kt.Tl.Closed,ake({resourceUrl:"timed-projects"})),r=n.resourceLimit,o=Nn(n,EQe);return(0,u.jsx)(nn.Z,{direction:"column",sx:{height:"fit-content",width:"100%"},spacing:2,children:(0,u.jsx)(Rke,(0,l.Z)({disableSelectionOnClick:!0,numberOfRowsPerPage:r,columns:t,onRowClick:function(t){return t.row.edit?e("./".concat(t.row.edit)):e("./".concat(t.row.content))},withElements:{withTitle:"Projects (hire) (tabs & filters will be added)",withCta:(0,u.jsx)(Wo,{onClick:function(){return e("./create-timed-project")},children:"Create timed project"})}},o))})},PQe=function(e){var t=e.title,n=e.introduction,r=e.content,o=e.onLinkClickArray,i=e.setValue,a=(0,ze.s0)();return(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsx)(rn.Z,{variant:"headline2",children:t}),(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:n})]}),null===r||void 0===r?void 0:r.map((function(e,t){var n=e.title,r=e.subtitle,s=e.paragraphs;return(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(rn.Z,{variant:"headline2",children:n}),(0,u.jsx)(rn.Z,{variant:"headline4",color:"common.black",fontWeight:"bold",children:r}),(0,u.jsx)(nn.Z,{spacing:3,children:null===s||void 0===s?void 0:s.map((function(e){return(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:e.text(null===o||void 0===o?void 0:o(a,i))})}))})]})}))]})},AQe={color:"primaryLight.500",bgcolor:"transparent",minWidth:0,width:"fit-content",height:"fit-content",cursor:"pointer",p:0,"&:hover":{bgcolor:"transparent",textDecoration:"underline"},"&:disabled":{bgcolor:"transparent",textDecoration:"underline",color:"primaryLight.300"}},MQe=function(e,t){return[function(){e("/terms-of-service"),t(0)},function(){e("/terms-of-service/privacy-policy"),t(1)},function(){e("/terms-of-service/spona-digital-contract-terms"),t(2)},function(){e("/terms-of-service/cookie-policy"),t(3)},function(){e("/")},function(){e("/contact-us")},function(){e("/legal@spona.io")}]},TQe=function(e){var t=e.listType,n=void 0===t?"dot":t,r=e.items,o=e.bold,i=e.omitIndex,a=void 0!==i&&i,s=e.omitListType,l=void 0!==s&&s;return(0,u.jsx)(nn.Z,{sx:{ml:"32px !important"},children:r.map((function(e,t){return(0,u.jsxs)(nn.Z,{spacing:1,direction:"row",alignItems:"start",children:[!l&&"dot"===n&&(0,u.jsx)(rn.Z,{children:"\u2022"}),a?(0,u.jsx)(rn.Z,{variant:o?"publicBody5":"publicBody5Regular",color:"common.black",children:e}):(0,u.jsxs)(u.Fragment,{children:["number"===n&&(0,u.jsxs)(rn.Z,{variant:o?"publicBody5":"publicBody5Regular",color:"common.black",children:[t+1,"."]}),(0,u.jsx)(rn.Z,{variant:o?"publicBody5":"publicBody5Regular",color:"common.black",children:e})]})]})}))})},IQe=[{title:"1. Terms of Use Agreement",introduction:"This page explains the terms for using Spona services (\u201cSpona\u201d \u201cwe,\u201d or \u201cus\u201d) software, website, online services, and any other software provided on or in connection with the Spona (collectively called the \u201cService\u201d), so please read these terms of use (this \u201cAgreement\u201d) carefully before using the Service. If you have any questions, feel free to contact us.",content:[{title:"Acceptance of the Terms of Use",paragraphs:[{text:function(){return"Read this agreement carefully before browsing the website or otherwise using the service. Using any part of the service indicates that you have both read and accepted these terms. You cannot use the website or our services if you do not accept these terms."}},{text:function(){return"By using the Service or otherwise accessing the Service, creating or registering an Account, downloading content or other information, you agree that you are at the age of lawful capacity to form binding legal contracts in your jurisdiction of residence; provided that, in no event, will you be permitted to use the Service if you are under the age of 18."}},{text:function(){return"Since Spona is a B2B platform you agree to use the Service on behalf of a company or other entity. The use of the term \u201cYou\u201d, \u201cYour\u201d , or \u201cUser\u201d within these Terms includes you as an individual and company or entity you are representing, and you represent and warrant that you are an authorized representative of the entity with the authority to bind the entity to this Agreement, and you agree to this Agreement on the entity\u2019s behalf."}},{text:function(e){return(0,u.jsxs)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:["You also consent to the collection and use of your information as set forth in the Spona"," ",(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",sx:(0,l.Z)({},AQe),onClick:function(){return null===e||void 0===e?void 0:e[1]()},children:"privacy policy"}),", whether or not you are an approved or registered user of our service."]})}},{text:function(){return"In case of any conflict between this Agreement and any individual agreement concluded between Spona and you, the terms of the individual agreement shall prevail."}},{text:function(e){return(0,u.jsxs)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:["These terms also include"," ",(0,u.jsxs)(rn.Z,{variant:"publicBody5Regular",color:"common.black",sx:(0,l.Z)({},AQe),onClick:function(){return null===e||void 0===e?void 0:e[2]()},children:["Digital Contract Terms"," "]}),"and other policies displayed by Spona or provided to you from time to time."]})}}]},{subtitle:"1.1. Services",paragraphs:[{text:function(e){return(0,u.jsxs)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:["This Agreement applies to"," ",(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",sx:(0,l.Z)({},AQe),onClick:function(){return null===e||void 0===e?void 0:e[4]()},children:"www.spona.io"}),", Spona-related sites, communications and other services that state that they are offered under this Agreement (\u201cServices\u201d), including the offsite collection of data for those Services, such as our ads and plugins. This Agreement applies to both registered Members and Visitors both referred to as Users."," "]})}}]},{subtitle:"1.2. Spona",paragraphs:[{text:function(){return"You are entering into this Agreement with Top Digital Agency Limited, a company incorporated under the laws of Ireland with company number 642562 and whose registered office is at First Floor Offices, 6B Raven Terrace, Galway, H91 H24H, Ireland, and its subsidiary Top Digital d.o.o., Vladimira Nazora 23, Zabok, Croatia (Spona Croatia), collectively referred herein as \u201cSpona\u201d \u201cwe\u201d or \u201cus\u201d."}}]},{subtitle:"1.3 What Do We Do?",paragraphs:[{text:function(){return"Spona is a global platform where Digital Service Providers (herein referred to as \u201cSellers\u201d) and their Clients (herein referred to as \u201cBuyers\u201d) can identify each other, advertise and sell services online as well as manage their digital projects."}},{text:function(){return"Spona makes the site and Services available to enable Sellers and Buyers to find each other, arrange the provision of digital services and manage their projects."}},{text:function(){return(0,u.jsxs)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:["On the Spona site"," ",(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",fontWeight:"bold",children:"Buyers"})," ","who need work completed can post a project on our platform. Through the Site and Site Services,"," ",(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",fontWeight:"bold",children:"Sellers"})," ","may be notified of Buyers that may be seeking the services they offer, and Buyers may be notified of Sellers that may offer the services they seek."]})}},{text:function(){return"Sellers registered on our platform can then pitch for the projects if they meet the minimum requirements to do so."}},{text:function(){return"Using our End to End Project Management Tool Buyers can sign Digital Contracts, centralize their projects through one platform, and get easy insight and prompt management all with just one tool."}},{text:function(){return"Spona facilitates all payments between Buyers and Sellers and all payments must be processed through Spona."}}]},{subtitle:"1.4. What Do We NOT Do?",paragraphs:[{text:function(){return"Spona does not select projects for Sellers or, select Sellers for Buyers. You are responsible for evaluating and determining the suitability of any project, Buyer, Seller, information or connection made on the Spona platform."}},{text:function(){return"Spona does not make any representation (either express or implied) as to the suitability, reliability, capability, or qualifications of the Sellers."}},{text:function(){return"We do not negotiate contracts, statements of work, service agreements or other final project details and specifications. This is a matter for Users to negotiate amongst themselves, and Digital Contract Service is merely a contract drafting tool with pre-built contract fields leaving the parties the complete freedom to decide on the milestones, time frame, budget allocation and jurisdiction."}},{text:function(){return"We do not participate in the execution of work on your Digital Project. We are not a party to nor do we have any liability with respect to any agreement between the Users."}},{text:function(){return"Spona is not an agent for Buyers or Sellers."}}]},{subtitle:"1.4. Digital Contract",paragraphs:[{text:function(){return"If you decide to enter into a Digital Contract or any type of  Service or other agreement that you find appropriate with another User of Spona, Spona is not a party to that agreement.  You may not, by agreement with another User of Spona, alter the rights or responsibilities of these terms, or agree to any terms that would violate any of these terms."}},{text:function(){return"You acknowledge and agree that Users have discretion whether to contract with each other and will negotiate and determine the specific terms of their Digital Contracts with each other. If you decide to enter into a Digital Contract with another User using the Spona Digital Contract service, Digital Contract Terms will apply."}}]}]},{title:"2. Obligations",content:[{subtitle:"2.1 Your Account",paragraphs:[{text:function(){return"You will keep your password a secret. You will not share an account with anyone else outside of an Authorized Member of the company affiliated with the account and will follow our rules and the law."}},{text:function(){return"You agree to (1) try to choose a strong and secure password; (2) keep your password secure and confidential; (3) not transfer any part of your account (e.g. connections) and (4) follow the law and our list of Dos and Don\u2019ts and Professional Community Policies. You are responsible for anything that happens through your account unless you close it or report misuse."}}]}]},{title:"2.2. Payment",introduction:"You\u2019ll honor your payment obligations toward Spona and the selected Seller and you are okay with us storing your payment information. You understand that there may be fees and taxes that are added to our prices. We don\u2019t guarantee refunds.",content:[{subtitle:"Payment Method",paragraphs:[{text:function(){return"If you enter into a business relationship with another User, you agree that the budget for the Services provided regarding the project published on the Spona platform shall be managed by Spona according to the Payment Schedule agreed between you and the other User you entered a business relationship with. Users set the budget and budget allocations according to their agreement."}}]},{subtitle:"Payment Schedule",paragraphs:[{text:function(e){return(0,u.jsxs)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:["You and the other User you entered a business relationship with will agree on the scope of work, payment schedule and milestones, if any, depending on the type of service being provided. Spona shall disburse the funds to the selected Seller as set forth in the payment schedule you agreed. In case your business relationship is based on Digital Contract entered into through the Spona platform, the"," ",(0,u.jsxs)(rn.Z,{variant:"publicBody5Regular",color:"common.black",sx:(0,l.Z)({},AQe),onClick:function(){return null===e||void 0===e?void 0:e[2]()},children:["Digital Contract Terms"," "]}),"shall be applied."]})}}]},{subtitle:"Premium Services",paragraphs:[{text:function(){return"Spona premium Services allow paying users to use our End-to-End project management tool for their ongoing projects, connect a Buyer or Seller of choice and enable smoother communication and collaboration."}},{text:function(){return"We sell premium Services that provide our customers functionality tools, support, project and account management, as part of our business solutions. Customers can export the project reports from their profile and use them for various reporting needs. Premium Services fees are calculated on a project basis and depend on the type and size of the project."}}]},{subtitle:"Spona Fee Structure",paragraphs:[{text:function(e){return(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:"The following Fees are payable to Spona per Digital Project:"}),TQe({listType:"number",items:["Buyers"],bold:!0}),(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:"Buyers bear a payment processing and administration fee depending on the type of Service the Buyer chooses and can be either 3% for Self-Service or 5% for Managed Service. This fee is calculated on top of the agreed milestone budget allocation and charged on each invoice, ensuring a seamless flow."}),(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(rn.Z,{variant:"publicBody5",color:"common.black",children:"Self-Service includes:"}),TQe({listType:"dot",items:["Posting unlimited pitches","Agency evaluation tool","Built-in agency selection tool","Customer support services"]})]}),(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(rn.Z,{variant:"publicBody5",color:"common.black",children:"In addition to Self-Service, Managed Service includes:"}),TQe({listType:"dot",items:["Dedicated account manager","Pitch analyses","Project proposal creation","Tailored agency outreach","1:1 briefing sessions with shortlisted agencies","Budget negotiation","Contract management support","Payment and invoicing support","Communications management"]})]}),TQe({listType:"number",items:["2. Sellers"],bold:!0,omitIndex:!0}),(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:"The Seller is charged a 10% fee calculated from the total project budget. This fee is deducted from each payment Spona is distributing to the Seller account."}),(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:"Spona Fees for a Project shall be payable irrespective of whether a Digital Project is completed to the Buyer\u2019s satisfaction or not."})]})}}]}]},{title:"2.3 Notices and Messages",content:[{paragraphs:[{text:function(){return"You\u2019re okay with us providing notices and messages to you through our websites and contact information. If your contact information is out of date, you may miss out on important notices."}},{text:function(){return"You agree that we will provide notices and messages to you in the following ways (1) within the Service, or (2) sent to the contact information you provided us (e.g. email, mobile number, physical address). You agree to keep your contact information up to date."}},{text:function(){return"Please review your settings to limit the messages you receive from us."}}]}]},{title:"2.4 Sharing",content:[{paragraphs:[{text:function(){return"When you share information on our Services, others can see, copy, and use that information."}},{text:function(){return"Our Services allow sharing of information in many ways, such as (1) your profile, links to news articles, case studies, and blogs, and (2) service requests for organizations seeking services."}},{text:function(){return"Information and content that you share or post may be seen by other Members, Visitors, or others (including off the Services). Where we have made settings available, we will honor the choices you make about who can see content or information."}},{text:function(){return"We are not obligated to publish any information or content on our Service and can remove it at our sole discretion, with or without notice."}}]}]},{title:"3. Rights and Limits",content:[{subtitle:"3.1. Your License to Spona",paragraphs:[{text:function(){return"You own all of the content, feedback, and personal information you provide to us, but you also grant us a non-exclusive license to it. We\u2019ll honor the choices you make about who gets to see your information and content, including how it can be used for ads."}},{text:function(){return"As between you and Spona, you own the content and information that you submit or post to the Services, and you are only granting Spona and our affiliates the following non-exclusive license: A worldwide, transferable and sublicensable right to use, copy, modify, distribute, publish, and process, information and content that you provide through our Services and the services of others, without any further consent, notice and/or compensation to you or others. These rights are limited in the following ways:"}},{text:function(e){return(0,u.jsx)(u.Fragment,{children:TQe({listType:"number",items:["You can end this license for specific content by deleting such content from the Services, or generally by closing your account, except (i) to the extent you shared it with others as part of the Service and they copied, re-shared it or stored it and (ii) for the reasonable time it takes to remove from backup and other systems.",(0,u.jsxs)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:["We will not include your content in advertisements for the products and services of third parties to others without your separate consent (including sponsored content). However, we have the right, without payment to you or others, to serve ads near your content and information, and your actions may be visible and included with ads, as noted in the"," ",(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",sx:(0,l.Z)({},AQe),onClick:function(){return null===e||void 0===e?void 0:e[1]()},children:"Privacy Policy."})]}),"We will get your consent if we want to give others the right to publish your content beyond the Services. However, if you post content we will enable a feature that allows other Users to view that content, and we enable search engines to make that public content findable through their services.","While we may edit and make format changes to your content (such as translating it, modifying the size, layout or file type or removing metadata), we will not materially modify the meaning of your expression."]})})}},{text:function(e){return(0,u.jsxs)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:["You and Spona agree that if the content includes personal data, it is subject to our"," ",(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",sx:(0,l.Z)({},AQe),onClick:function(){return null===e||void 0===e?void 0:e[1]()},children:"Privacy Policy."})]})}},{text:function(e){return(0,u.jsxs)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:["You and Spona agree that we may access, store, process and use any information and personal data that you provide in accordance with the terms of the"," ",(0,u.jsxs)(rn.Z,{variant:"publicBody5Regular",color:"common.black",sx:(0,l.Z)({},AQe),onClick:function(){return null===e||void 0===e?void 0:e[1]()},children:["Privacy Policy"," "]}),"and your choices."]})}},{text:function(){return"By submitting suggestions or other feedback regarding our Services to Spona, you agree that Spona can use and share (but does not have to) such feedback for any purpose without compensation to you."}},{text:function(){return"You promise to only provide information and content that you have the right to share, and that your Spona profile will be truthful."}},{text:function(){return"You agree to only provide content or information that does not violate the law nor anyone\u2019s rights (including intellectual property rights). You also agree that your profile information and other use of the Services will be truthful. Spona may be required by law to remove certain information or content in certain countries."}}]},{subtitle:"3.2 Service Availability",paragraphs:[{text:function(){return"We may change, suspend or end any Service, or change and modify prices prospectively at our discretion. To the extent allowed under law, these changes may be effective upon notice provided to you."}},{text:function(){return"We may change or discontinue any of our Services. We don\u2019t promise to store or keep showing any information and content that you\u2019ve posted."}},{text:function(e){return(0,u.jsxs)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:["Spona is not a storage service. You agree that we have no obligation to store, maintain or provide you a copy of any content or information that you or others provide, except to the extent required by applicable law and as noted in our"," ",(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",sx:(0,l.Z)({},AQe),onClick:function(){return null===e||void 0===e?void 0:e[1]()},children:"Privacy Policy."})]})}}]},{subtitle:"3.3 No Professional Advice",paragraphs:[{text:function(){return"If the Service provides professional information (for example, professional referrals, tutorials, guides, especially contract drafting through Digital Contract Service, etc.), such information is for informational purposes only and should not be construed as professional advice."}},{text:function(){return"No action should be taken based upon any information contained in the Service. You should seek independent professional advice from a person who is qualified in the applicable area."}}]},{subtitle:"3.4 Other Content, Sites and Apps",paragraphs:[{text:function(){return"Your use of others\u2019 content and information posted on our Services is at your own risk. Others may offer their own products and services through our Services, and we aren\u2019t responsible for those third-party activities."}},{text:function(){return"By using the Services, you may encounter content or information that might be inaccurate, incomplete, delayed, misleading, illegal, offensive, or otherwise harmful. You agree that we are not responsible for others (including other Members\u2019) content or information. We cannot always prevent this misuse of our Services, and you agree that we are not responsible for any such misuse. You also acknowledge the risk that you or your organization may be mistakenly associated with content about others when we let connections and followers know you or your organization were mentioned in the news."}},{text:function(e){return(0,u.jsxs)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:["You are responsible for deciding if you want to access or use third-party apps or sites that link from our Services. If you allow a third-party app or site to authenticate you or connect with your Spona account, that app or site can access information on Spona related to you and your connections. Third-party apps and sites have their own legal terms and privacy policies, and you may be giving others permission to use your information in ways we would not. Except to the limited extent it may be required by applicable law, Spona is not responsible for these other sites and apps \u2013 use these at your own risk. Please see our"," ",(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",sx:(0,l.Z)({},AQe),onClick:function(){return null===e||void 0===e?void 0:e[1]()},children:"Privacy Policy."})]})}}]},{subtitle:"3.5 Limits",paragraphs:[{text:function(){return"We have the right to limit how you use our Services."}},{text:function(){return"Spona reserves the right to limit your use of the Services and your ability to post content. Spona reserves the right to restrict, suspend, or terminate your account if Spona believes that you may be in breach of this Contract or law or are misusing the Services (e.g. violating any of the Dos and Don\u2019ts or Professional Community Policies)."}}]},{subtitle:"3.6 Intellectual Property Rights",paragraphs:[{text:function(){return"We\u2019re providing you with notice about our intellectual property rights."}},{text:function(){return"Spona owns all of the intellectual property rights to the Services, including but not limited to: all features, graphics, design, code, Digital Contract Services, the compilation of User Content, the Website, and all other components of the Services. Using the Services does not give you any ownership of our Services or the content or information made available through our Services. You agree not to take any action(s) inconsistent with such ownership interests."}},{text:function(){return"Trademarks and logos used in connection with the Services are the trademarks of their respective owners. Spona and other Spona trademarks, service marks, graphics, and logos used for our Services are trademarks or registered trademarks of Spona."}},{text:function(){return"Spona respects the intellectual property rights of others and expects users of the Services to do the same. "}},{text:function(e){return(0,u.jsxs)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:["We will respond to notices of alleged copyright infringement that comply with applicable law and are properly provided to us. If you believe that User Content has been copied in a way that constitutes copyright infringement, please let us know by using this"," ",(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",sx:(0,l.Z)({},AQe),onClick:function(){return null===e||void 0===e?void 0:e[5]()},children:"contact form."})]})}},{text:function(){return"We reserve the right to remove User content alleged to be infringing or otherwise illegal without prior notice and at our sole discretion. We also reserve the right to terminate a user\u2019s account if the user is determined to be a repeat infringer."}}]},{subtitle:"3.7 Automated Processing",paragraphs:[{text:function(){return"We use data and information about you to make relevant suggestions to you and others. We will use the information and data that you provide and that we have about Users to improve content and features that may be useful to you. For example, we use verified client reviews to enable digital service Sellers to demonstrate areas in which they have expertise."}},{text:function(){return"Keeping your profile accurate and up-to-date helps us to make these recommendations more accurate and relevant."}}]}]},{title:"4. Referral and Non-Circumvention",content:[{paragraphs:[{text:function(){return"To ensure the effective operation of the Service, Users agree that when they are introduced and connected through the Spona platform, they are required to adhere to our payment processes and terms."}},{text:function(){return"Starting from the moment of User registration and extending for a period of twelve (12) months following the termination of these Terms, or the suspension or deactivation of the account, Users are not allowed to:"}},{text:function(){return(0,u.jsx)(u.Fragment,{children:TQe({listType:"dot",items:["Enter into written/oral agreements to provide services for other Users, User companies, affiliates, or other parties introduced through the Spona platform.","Initiate or participate in actions such as approaching, soliciting, inducing, or performing services to Users introduced through the Spona platform, except through the designated Spona Service channels, while abiding by the stipulated payment terms, Spona Fees, and other applicable provisions stated in these Terms."]})})}},{text:function(){return"Users agree not to exchange services with other Users or parties introduced Spona platform outside the established payment system and interaction framework of the Spona Service. This behavior can result in a permanent ban from Spona, lack of protection from the Service's features, and potential liability for Spona fees, liquidated damages, and other enforcement actions."}},{text:function(){return"These responsibilities are binding regardless of any prior relationship or previous collaboration between Users and other involved parties."}},{text:function(){return"Promoting or soliciting off-platform payments is a violation of these Terms. Users must promptly notify Spona if other User approaches to conduct services outside the Service. "}},{text:function(){return"Additionally, Users pledge to accurately report all financial transactions with introduced parties and promptly inform Spona in writing if services are pursued outside the Service's framework."}},{text:function(){return"Failing to comply may lead to the enforcement of Spona\u2019s rights under these Terms, potentially resulting in a permanent ban."}}]},{subtitle:"Supplementary Charges",paragraphs:[{text:function(){return"Users acknowledge that Spona may identify breaches of Fee payment obligations. If such breaches are confirmed, Spona shall invoice Users for liquidated damages as a consequence of the breach. The liquidated damages shall be calculated as Fees equal to twice (2x) the Spona"}},{text:function(){return"Fees payable that you would otherwise have been required to pay if you had complied with your Fee payment obligations through the Spona platform."}},{text:function(){return"After the mentioned twelve (12) month period, Users are free to directly engage parties introduced via the Spona platform, independent of these Terms."}}]}]},{title:"5. Disclaimer and Limit of Liability",content:[{subtitle:"5.1 No Warranty",paragraphs:[{text:function(){return"This is our disclaimer of legal liability for the quality, safety, or reliability of our Services."}},{text:function(){return"Content provided on Spona sites or as part of the Services is not advice from Spona and should not be treated as such. Your use of material on www.spona.io and related Spona sites is entirely at your own risk."}},{text:function(){return"To the extent allowed under law, Spona and its affiliates (and those that Spona works with to provide the services) (a) Disclaim all implied warranties and representations (e.g. warranties of merchantability, fitness for a particular purpose, the accuracy of data, and noninfringement); (b) Do not guarantee that the services will function without interruption or errors, and (c) Provide the service (Including content and information) on an \u201cas is\u201d and \u201cas available\u201d basis."}},{text:function(){return"Spona does not represent or warrant that using the services will create any additional profits, sales, exposure, or brand recognition. Spona has no responsibility to the users if the services do not lead to the user\u2019s desired result(s)."}}]},{subtitle:"5.2 Limitation of Liability",paragraphs:[{text:function(){return"These are the limits of legal liability we may have to you."}},{text:function(){return"Spona and its Affiliates or their licensors, Service Providers, Employees, Agents, Officers and Directors are not liable for damages of any kind, and you agree not to hold us responsible, for any damages or losses arising out of or in connection with the Spona Services including, but not limited to:"}},{text:function(){return(0,u.jsx)(u.Fragment,{children:TQe({listType:"dot",items:["Your use or your inability to use Spona or the Spona Services;","Delays or interruptions in our site or the Spona Services","Viruses or other malicious software obtained by accessing, or linking to, our site of the Spona Services;","Your reliance on the quality, accuracy, or reliability of postings, profiles, reviews, articles, service requests, project metrics or any other content made available through Spona."]})})}},{text:function(){return"To the extent permitted under law (and unless Spona has entered into a separate written agreement that overrides this contract), Spona and its affiliates (and those that Spona works with to provide the services) shall not be liable to you or others for any indirect, incidental, special, consequential or punitive damages, or any loss of data, opportunities, reputation, profits or revenues, related to the services (e.g. offensive or defamatory statements, downtime or loss, use of, or changes to, your information or content or related actions)."}},{text:function(){return"In no event shall the liability of Spona and its affiliates (and those that Spona works with to provide the services) exceed, in the aggregate for all claims, an amount that is the lesser of (a) the most recent yearly fee that you paid for a Spona service, if any, or (b) $1000."}},{text:function(){return"This limitation of liability is part of the basis of the bargain between you and Spona and shall apply to all claims of liability (e.g. warranty, tort, negligence, contract, law) and even if Spona or its affiliates has been told of the possibility of any such damage, and even if these remedies fail their essential purpose."}}]},{subtitle:"5.3. Release",paragraphs:[{text:function(){return"In addition to the recognition that Spona is not a party to any contract between Users, you hereby release Spona, our Affiliates, and our respective officers, directors, agents, subsidiaries, joint ventures, employees and service providers from claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown, arising out of or in any way connected with any dispute you have with another User, whether it be at law or in equity that exists as of the time you enter into this agreement. This release includes, for example, and without limitation, any disputes regarding the performance, functions, and quality of work provided by any User."}}]}]},{title:"6. Termination",content:[{paragraphs:[{text:function(e){return(0,u.jsx)(nn.Z,{children:(0,u.jsxs)(nn.Z,{spacing:1,children:[(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:"We can each end this Contract anytime we want."}),(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:"Both you and Spona may terminate this Contract at any time with notice to the other. On termination, you lose the right to access or use the Services. The following shall survive termination:"}),TQe({listType:"dot",items:["Our rights to use and disclose your feedback;","User\u2019s rights to further re-share content and information you shared through the Service to the extent copied or re-shared prior to termination;","Sections 4,5, 7.2, 8 and 9 of this Contract;","Any amounts owed by either party prior to termination remain owed after termination."]})]})})}},{text:function(){return(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:"You can contact us with any questions or to close your account at this email address: legal@spona.io"})}}]}]},{title:"7. Suspension of Services",content:[{paragraphs:[{text:function(){return"Spona is entitled, in its sole discretion, to suspend your Account or its Services in the event of reasonable grounds if you fail to properly fulfill its obligations under this Agreement. In that case, Spona shall notify you thereof within three (3) Business Days following the suspension."}},{text:function(){return"If for the purpose of determining the continuation of the Services and your Account you do not provide complete and accurate information in response to such a request, Spona may refuse to restore your access to the Service."}},{text:function(){return"Spona shall provide you with notice of such action. Spona reserves the right to close, suspend or limit access to the Service in the event Spona is unable to obtain and verify such information for monitoring purposes or in the case of your non-compliance with the obligations, representations and warranties from this Agreement."}},{text:function(){return"Spona reserves the right to take action, with or without advance notice if Spona believes you have violated this Agreement, including without limitation, disabling the ability to use the Service, disabling your ability to access the Website, and/or other actions."}},{text:function(){return"Suspension of Services shall be for any reasonable period of time required by Spona to fully investigate your account activity and resolve, to Spona\u2019s sole satisfaction, the subject questionable, suspect or fraudulent transactions or activities."}},{text:function(){return"The right to extraordinary termination as set herein shall remain unaffected by such suspension."}}]}]},{title:"8. Governing Law and Dispute Resolution",content:[{paragraphs:[{text:function(){return"In the unlikely event that we end up in a legal dispute, Spona and you agree to resolve it in an amicable way."}},{text:function(){return"You and Spona agree that the laws of Ireland shall exclusively govern any dispute relating to this Contract and/or the Services."}}]},{subtitle:"8.1. Dispute Resolution Between You and Spona and Our Affiliates",paragraphs:[{text:function(){return"Before serving a Claim, you and Spona agree to first notify each other of the Claim. You agree to notify Spona of the Claim by email to office@todigital.agency, and Spona agrees to provide you with a notice at the email address you provided while registering on the Site (in each case, a \u201cNotice\u201d)."}},{text:function(){return"You and Spona then will seek an informal voluntary resolution of the Claim. Any Notice must include your account information, a brief description of the Claim, and contact information, so that you or Spona, as applicable, may evaluate the Claim and attempt to informally resolve the Claim. Both you and Spona will have 45 days from the date of the receipt of the Notice to informally resolve the other party\u2019s Claim, which, if successful, will avoid the need for further action."}},{text:function(){return"In the event we are unable to resolve a Claim within 45 days of the receipt of the applicable Notice, you, Spona, and our Affiliates agree to the exclusive jurisdiction of the Courts of Ireland to settle any dispute which may arise out of or in connection with this Agreement or the Services."}}]},{subtitle:"8.2. Dispute Resolution Between You and Another User",paragraphs:[{text:function(){return"In the event of a dispute arising between you and another User of the Services, you agree to put in a reasonable effort to resolve all disputes amicably."}},{text:function(){return"Spona may provide assistance to the parties included by providing information about the projects, giving insight into the messages parties have exchanged through the Spona platform, or documentation relating to the subject matter of the dispute if possible. You agree to inform Spona of any disputes between you and another User of the Services as soon as they arise. The moment Spona is informed of any disputes between the Users all monies allocated to Spona\u2019s account will be placed in suspense until the dispute is resolved, but no longer than 30 days. Once Spona is informed that the dispute has been resolved Spona will ask all affected Users to provide written advice of the outcome. Spona will continue the disbursement of the monies according to the written advice."}},{text:function(){return"If members are unable to resolve the dispute within 30 days of first informing Spona of the dispute, further proceedings for handling the dispute shall be followed as agreed in the Digital Contract, Service Contract, or similar agreement between the parties. All monies allocated to Spona\u2019s account for the services of the Seller will be returned to the Buyer less the amount of Spona\u2019s commission fee and transfer fees. Spona is not a party to any contract between Users, and you agree to release Spona from any claims, demands and damages as detailed described in section 5.3. of this User Agreement."}},{text:function(){return"If members are unable to resolve the dispute within 30 days of first informing Spona of the dispute, further proceedings for handling the dispute shall be followed as agreed in the Digital Contract, Service Contract, or similar agreement between the parties. All monies allocated to Spona\u2019s account for the services of the Seller will be returned to the Buyer less the amount of Spona\u2019s commission fee and transfer fees. Spona is not a party to any contract between Users, and you agree to release Spona from any claims, demands, and damages as detailed described in section 5.3. of this User Agreement."}},{text:function(){return"If there is a dispute between users of the Services, or between any user of the Service and any third party, you acknowledge and agree that Spona is under no obligation to become involved. In the event that a dispute arises between you and any third party, you hereby release Spona\u2019s officers, managers, members, directors, employees, attorneys, agents, and successors in rights from any claims, demands, and damages (actual and consequential) of every kind or nature, known or unknown, suspected or unsuspected, foreseeable or unforeseeable, disclosed or undisclosed, arising out of or in any way related to such disputes."}}]}]},{title:"9. General Terms",content:[{paragraphs:[{text:function(){return"Here are some important details about the Agreement."}},{text:function(){return"If a court with authority over this Agreement finds any part of it unenforceable, you and we agree that the court should modify the terms to make that part enforceable while still achieving its intent. If the court cannot do that, you and we agree to ask the court to remove that unenforceable part and still enforce the rest of this Agreement."}},{text:function(){return"To the extent allowed by law, the English language version of this Agreement is binding and other translations are for convenience only."}}]},{subtitle:"Waiver of Contractual Rights",paragraphs:[{text:function(){return"The failure of Spona to enforce any provision of this Agreement shall not be construed as a waiver or limitation of Spona\u2019s right to subsequently enforce and compel strict compliance with every provision of this Agreement."}},{text:function(){return"You may not assign or transfer this Agreement (or your membership or use of Services) to anyone without our consent. However, you agree that Spona may assign this Agreement to its affiliates or a party that buys it without your consent. There are no third-party beneficiaries to this Agreement."}},{text:function(){return"\u2206"}},{text:function(){return"Nothing in this Agreement is intended to create any partnership, employment relationship or joint venture between Spona and Users."}},{text:function(){return"You agree that the only way to provide us with legal notice is via the email address office@topdigital.agency."}}]}]},{title:"10. Spona\u2019s \u201cDos and Don\u2019ts\u201d",content:[{subtitle:"10.1. Dos",paragraphs:[{text:function(){return"Spona is a platform for professional organizations. This list of \u201cDos and Don\u2019ts\u201d limit what you can and cannot do with our Services."}},{text:function(){return"You agree that you will:"}},{text:function(){return(0,u.jsx)(u.Fragment,{children:TQe({listType:"dot",items:["Comply with all applicable laws, including, without limitation, privacy laws, anti-money laundry regulations, intellectual property laws, anti-spam laws, export control laws, tax laws, and regulatory requirements;","Provide accurate information to us and keep it updated;","Use your real organization name on your profile; and","Use the Services in a professional manner."]})})}}]},{subtitle:"10.2. Don\u2019ts",paragraphs:[{text:function(){return"You agree that you will not:"}},{text:function(){return(0,u.jsx)(u.Fragment,{children:TQe({listType:"number",items:["Create a false identity on Spona, misrepresent your identity, create a User profile for anyone other than yourself (a real person), or use or attempt to use another\u2019s account;","Develop, support or use software, devices, scripts, robots, or any other means or processes (including crawlers, browser plugins and add-ons, or any other technology) to scrape the Services or otherwise copy profiles and other data from the Services;","Override any security feature or bypass or circumvent any access controls or use limits of the Service;","Copy, use, disclose or distribute any information obtained from the Services, whether directly or through third parties (such as search engines), without the consent of Spona;","Disclose information that you do not have consent to disclose (such as confidential information of others including Authorized Users of your organization or company);","Violate the intellectual property rights of others, including copyrights, patents, trademarks, trade secrets, or other proprietary rights. For example, do not copy or distribute (except through the available sharing functionality) the posts, published projects or other content of others without their permission;","Violate the intellectual property or other rights of Spona, including, without limitation, (i) copying or distributing our technology, unless it is released under open source licenses; (ii) using the word \u201cSpona\u201d or \u201cTDA\u201d, \u201cTop Digital Agency \u201dour logos in any business name, email, or URL","Post anything that contains software viruses, worms, or any other harmful code;","Reverse engineer, decompile, disassemble, decipher or otherwise attempt to derive the source code for the Services or any related technology that is not open source;","Imply or state that you are affiliated with or endorsed by Spona without our express consent;","Rent, lease, loan, trade, sell/re-sell or otherwise monetize the Services or related data or access to the same, without Spona\u2019s consent;","Deep-link to our Services for any purpose other than to promote your profile or a Group on our Services, without Spona\u2019s consent;","Use bots or other automated methods to access the Services, add or download contacts, send or redirect messages;","Monitor the Services\u2019 availability, performance or functionality for any competitive purpose;","Engage in \u201cframing,\u201d \u201cmirroring,\u201d or otherwise simulating the appearance or function of the Services;","Overlay or otherwise modify the Services or their appearance (such as by inserting elements into the Services or removing, covering, or obscuring an advertisement included in the Services);","Interfere with the operation of, or place an unreasonable load on, the Services (e.g., spam, denial of service attack, viruses, gaming algorithms); and/or","Violate any additional terms concerning a specific Service that are provided when you sign up for or start using such Service."]})})}}]}]},{title:"11. How to Contact Us",content:[{paragraphs:[{text:function(){return"Our contact information."}},{text:function(e){return(0,u.jsxs)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:["If you want to send us notices or service of process, please send us an email at connect@topdigital.agency or fill out our"," ",(0,u.jsxs)(rn.Z,{variant:"publicBody5Regular",color:"common.black",sx:(0,l.Z)({},AQe),onClick:function(){return null===e||void 0===e?void 0:e[5]()},children:["contact form"," "]}),"and we will be in touch shortly."]})}}]}]}],RQe=[{id:1,text:"Terms of Service"},{id:2,text:"Privacy Policy"},{id:3,text:"Spona Digital Contract Terms"},{id:4,text:"Cookie Policy"}],FQe=["title","titleId"];function BQe(){return BQe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BQe.apply(this,arguments)}function LQe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function NQe(e,t){var n=e.title,r=e.titleId,i=LQe(e,FQe);return o.createElement("svg",BQe({width:31,height:31,viewBox:"0 0 31 31",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,pQe||(pQe=o.createElement("path",{d:"M15.4913 3.86328C15.1607 3.86328 14.8559 3.97437 14.6027 4.22625C13.311 5.51792 5.56231 13.2679 4.26935 14.5596C3.45689 15.3734 4.00713 16.78 5.158 16.78H9.03301V20.655C9.03301 21.368 9.61168 21.9467 10.3247 21.9467H20.658C21.371 21.9467 21.9497 21.368 21.9497 20.655V16.78H25.8247C26.9756 16.78 27.5671 15.3734 26.7534 14.5596L16.4201 4.22625C16.1669 3.97437 15.822 3.86328 15.4913 3.86328ZM10.3247 24.53C9.61168 24.53 9.03301 25.1087 9.03301 25.8217C9.03301 26.5347 9.61168 27.1134 10.3247 27.1134H20.658C21.371 27.1134 21.9497 26.5347 21.9497 25.8217C21.9497 25.1087 21.371 24.53 20.658 24.53H10.3247Z",fill:"current"})))}var _Qe,zQe=o.forwardRef(NQe),HQe=(n.p,["title","titleId"]);function WQe(){return WQe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WQe.apply(this,arguments)}function VQe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function UQe(e,t){var n=e.title,r=e.titleId,i=VQe(e,HQe);return o.createElement("svg",WQe({width:16,height:18,viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,_Qe||(_Qe=o.createElement("path",{d:"M7.99863 0.831055C7.62946 0.831055 7.25863 0.914393 6.95696 1.06523L1.61862 3.72188C0.967788 4.04688 0.498627 4.81689 0.498627 5.54439V12.3936C0.498627 13.1211 0.967788 13.8911 1.61862 14.2161L6.95696 16.8727C7.55946 17.1736 8.43779 17.1736 9.04029 16.8727L14.3786 14.2161C15.0295 13.8911 15.4986 13.1211 15.4986 12.3936V5.54439C15.4986 4.81689 15.0295 4.04688 14.3786 3.72188L9.04029 1.06523C8.73863 0.914393 8.36779 0.831055 7.99863 0.831055ZM7.99863 4.81523C10.2995 4.81523 12.1653 6.68106 12.1653 8.98189C12.1653 11.2827 10.2995 13.1486 7.99863 13.1486C5.69779 13.1486 3.83196 11.2827 3.83196 8.98189C3.83196 6.68106 5.69779 4.81523 7.99863 4.81523Z",fill:"#6D51F6"})))}var qQe,GQe,YQe,KQe=o.forwardRef(UQe),JQe=(n.p,function(e){var t=e.isModalOpen,n=e.setIsModalOpen,r=e.setBannerOpen,i=(0,ze.s0)(),a=(0,o.useState)(!1),s=(0,Le.Z)(a,2),l=s[0],c=s[1];(0,o.useEffect)((function(){var e=localStorage.getItem("ga-consent");if(null!==e){var t="accepted"===e;(0,rs.My)(t),c(t)}}),[]);return(0,u.jsx)(ys,{open:t,width:"45%",children:(0,u.jsxs)(nn.Z,{gap:2,sx:{height:"auto",maxHeight:"700px",overflowY:"auto",pr:"3px"},children:[(0,u.jsxs)(nn.Z,{gap:2,direction:"row",alignItems:"center",justifyContent:"flex-start",children:[(0,u.jsx)(nn.Z,{alignItems:"center",justifyContent:"center",sx:{bgcolor:"#E3DBFC",width:"fit-content",height:"fit-content",borderRadius:"6px",px:2,py:1},children:(0,u.jsx)(KQe,{fill:tr.E4[500],style:{width:22,height:22}})}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.600",children:"Privacy Overview"})]}),(0,u.jsx)(un,{}),(0,u.jsx)(rn.Z,{color:"primaryDark.500",children:"This website uses cookies so we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognizing you when you return to our website and helping our team understand which sections of the website you find the most interesting and useful."}),(0,u.jsxs)(nn.Z,{direction:"column",gap:1,children:[(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{color:"primaryDark.500",variant:"publicBody4",children:"Essential"}),(0,u.jsx)(Wo,{variant:"secondaryText",sx:{color:"primaryDark.500",fontFamily:"Gellix-Regular",fontWeight:350},children:"Always Active"})]}),(0,u.jsx)(rn.Z,{color:"primaryDark.500",children:"Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data."})]}),(0,u.jsxs)(nn.Z,{direction:"column",gap:1,children:[(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{color:"primaryDark.500",variant:"publicBody4",children:"Analytics"}),(0,u.jsx)(GSe.Z,{checked:l,onChange:function(e){localStorage.setItem("ga-consent",e.target.checked?"accepted":"declined"),(0,rs.My)(e.target.checked),c(e.target.checked)},sx:{"& .MuiSwitch-switchBase.Mui-checked .MuiSwitch-thumb":{color:"#34A854"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"#F5FED4"},"& .MuiSwitch-thumb":{color:"#79829B"},"& .MuiSwitch-track":{backgroundColor:"#BFC6D7"}}})]}),(0,u.jsx)(rn.Z,{color:"primaryDark.500",children:"Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc."})]}),(0,u.jsxs)(nn.Z,{gap:1,children:[(0,u.jsx)(rn.Z,{color:"primaryDark.500",variant:"publicBody4",children:"Cookie Policy"}),(0,u.jsxs)(rn.Z,{color:"primaryDark.500",children:["More information about our"," ",(0,u.jsx)(Wo,{onClick:function(){i("/terms-of-service/cookie-policy"),n(!1)},sx:{textDecoration:"underline"},variant:"secondaryText",children:"Cookie Policy"})]})]}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{direction:{xs:"column",sm:"column",lg:"row"},alignContent:"space-between",gap:3,justifyContent:"flex-end",children:[(0,u.jsx)(Wo,{onClick:function(){localStorage.setItem("ga-consent","accepted"),(0,rs.My)(!0),n(!1),r(!1),c(!0)},children:"Accept All"}),(0,u.jsx)(Wo,{sx:{minWidth:"205px"},variant:"secondary",onClick:function(){localStorage.setItem("ga-consent","declined"),(0,rs.My)(!1),n(!1),r(!1),c(!1)},children:"Accept Only Necessary"})]})]})})}),XQe=function(e){var t=e.bannerOpen,n=void 0!==t&&t,r=e.setBannerOpen,i=(0,o.useState)(!1),a=(0,Le.Z)(i,2),s=a[0],l=a[1];(0,o.useEffect)((function(){null===localStorage.getItem("ga-consent")&&r(!0)}),[]);var c=function(){r(!1)};return(0,u.jsxs)(tn,{children:[(0,u.jsx)(wy.Z,{open:!0,disableAutoFocus:!0,disableEnforceFocus:!0,children:(0,u.jsx)($b.Z,{appear:!1,in:n,children:(0,u.jsx)(ao.Z,{role:"dialog","aria-modal":"false","aria-label":"Cookie banner",square:!0,variant:"outlined",tabIndex:-1,sx:{background:"linear-gradient(240.98deg, #E6E8FF 0%, #FFEAE1 68.46%, #FFFBEA 99.58%)",position:"fixed",bottom:0,left:0,right:0,m:0,py:3,px:15,borderWidth:0,borderTopWidth:1,zIndex:10},children:(0,u.jsxs)(nn.Z,{direction:"column",justifyContent:"space-between",gap:2,children:[(0,u.jsxs)(nn.Z,{sx:{flexShrink:1,alignSelf:"flex-start"},spacing:1,children:[(0,u.jsx)(rn.Z,{sx:{lineHeight:"22px"},variant:"headline7",children:"Cookie policy"}),(0,u.jsxs)(rn.Z,{variant:"body4",sx:{fontWeight:600},children:["We are using cookies to give you the best experience on our website. ",(0,u.jsx)("br",{})," You can find out more about which cookies we are using or switch them off in",(0,u.jsx)(Wo,{sx:{fontFamily:"Gellix-Regular",fontSize:12,fontWeight:550,lineHeight:"1rem",textDecoration:"underline",textTransform:"lowercase",verticalAlign:"middle",padding:"2px 4px"},variant:"secondaryText",onClick:function(){return l(!0)},children:"settings"})]})]}),(0,u.jsxs)(nn.Z,{gap:2,direction:{xs:"column",sm:"row"},sx:{flexShrink:0,alignSelf:"flex-start"},children:[(0,u.jsx)(Wo,{variant:"secondary",onClick:function(){localStorage.setItem("ga-consent","accepted"),(0,rs.My)(!0),c()},children:"Allow all"}),(0,u.jsx)(Wo,{sx:{fontWeight:550,lineHeight:"1.313rem",whiteSpace:"nowrap"},variant:"secondary",onClick:function(){localStorage.setItem("ga-consent","declined"),(0,rs.My)(!1),c()},children:"Accept only necessary"})]})]})})})}),(0,u.jsx)(JQe,{isModalOpen:s,setIsModalOpen:l,setBannerOpen:r})]})},QQe=["children","value","index"],$Qe=function(e){var t=e.children,n=e.value,r=e.index,o=Nn(e,QQe);return(0,u.jsx)("div",(0,l.Z)((0,l.Z)({role:"tabpanel",hidden:n!==r,id:"tcs-tabpanel-".concat(r),"aria-labelledby":"tcs-tabpanel-".concat(r)},o),{},{children:n===r&&t}))},e$e=function(e){switch(e){case 0:return"Terms of Service";case 1:return"Privacy Policy";case 2:return"Spona Digital Contract Terms";case 3:return"Cookie Policy";default:return""}},t$e={description:"Terms of Service, Privacy Policy, Spona Digital Contract Terms, Cookie Policy"},n$e=function(){var e=(0,ze.s0)(),t=(0,ze.TH)(),n=(0,o.useState)(!1),r=(0,Le.Z)(n,2),i=r[0],a=r[1],s=(0,o.useState)(function(e){switch(e){case"/terms-of-service":default:return 0;case"/terms-of-service/privacy-policy":return 1;case"/terms-of-service/spona-digital-contract-terms":return 2;case"/terms-of-service/cookie-policy":return 3}}(t.pathname)),c=(0,Le.Z)(s,2),d=c[0],p=c[1];(0,o.useEffect)((function(){!function(){switch(t.pathname){case"/terms-of-service":p(0);break;case"/terms-of-service/privacy-policy":p(1);break;case"/terms-of-service/spona-digital-contract-terms":p(2);break;case"/terms-of-service/cookie-policy":p(3);break;default:return 0}}()}),[t.pathname]);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(XQe,{bannerOpen:i,setBannerOpen:a}),(0,u.jsx)(Kwe,(0,l.Z)({},t$e)),(0,u.jsxs)(nn.Z,{sx:(0,l.Z)((0,l.Z)({},ar),{},{flexGrow:1,mt:16}),children:[(0,u.jsxs)(nn.Z,{spacing:3,direction:{xs:"column",lg:"row"},justifyContent:"start",children:[(0,u.jsx)(T1,{orientation:"vertical",value:d,onChange:function(t,n){return function(t){switch(t){case 0:e("/terms-of-service"),p(t);break;case 1:e("privacy-policy"),p(t);break;case 2:e("spona-digital-contract-terms"),p(t);break;case 3:e("cookie-policy"),p(t);break;default:e("terms-of-service")}}(n)},TabIndicatorProps:{style:{display:"none"}},sx:{width:{xs:"100%",lg:"30%"}},children:RQe.map((function(e,t){return(0,u.jsx)(N1,{id:"vertical-tab-".concat(t),"aria-controls":"vertical-tabpanel-".concat(t),label:e.text,sx:{maxWidth:"100%",backgroundColor:t===d?"#F6F7FF":"transparent",borderRadius:"12px",size:"20px",padding:"0px 12px",textAlign:"start",display:"flex",justifyContent:"center",alignItems:"start",color:t===d?"#6D51F6 !important":"#384572"}},e.id)}))}),(0,u.jsxs)(nn.Z,{spacing:5,width:"100%",children:[(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsx)(rn.Z,{variant:"headline1",children:e$e(d)}),(0,u.jsx)(rn.Z,{variant:"headline4",children:"Effective from January 2024"})]}),(0,u.jsx)($Qe,{value:d,index:0,children:(0,u.jsx)(nn.Z,{spacing:8,children:IQe.map((function(e,t){var n=e.title,r=e.introduction,o=e.content;return(0,u.jsx)(PQe,{title:n,introduction:r,content:o,onLinkClickArray:MQe,setValue:p},n)}))})}),(0,u.jsx)($Qe,{value:d,index:1,children:(0,u.jsx)(ze.j3,{})}),(0,u.jsx)($Qe,{value:d,index:2,children:(0,u.jsx)(ze.j3,{})}),(0,u.jsx)($Qe,{value:d,index:3,children:(0,u.jsx)(ze.j3,{context:[a]})})]})]}),(0,u.jsx)(tn,{sx:{cursor:"pointer",border:"1px solid #BFC6D7",display:"flex",flexDirection:"row",alignSelf:"end",borderRadius:"999px",justifyContent:"center",alignItems:"center",width:"2.8rem",height:"2.8rem"},onClick:function(){return window.scrollTo({top:0,behavior:"smooth"})},children:(0,u.jsx)(zQe,{fill:"#79829B",width:"1.45rem",height:"1.45rem"})})]})]})},r$e=[{text:"There is a truly flat hierarchy within Spona, and it is very fulfilling to be able to offer your opinions and communicate openly. Each and every team member can and does contribute our innovative product - it is a great learning opportunity! And being able to build connections and work with talented businesses and agencies across the globe is something that really keeps me going.",name:"Nika Ujevi\u0107 Beusan",profession:"Sales Account & Partnerships Manager",img:n(44708),order:"imageThenText",alt:"Nika Ujevi\u0107-Beusan, Global Sales Manager at Spona"},{text:"I have acquired a lot of new skills and knowledge since joining Spona. The atmosphere is positive and the environment is constructive. Someone is always happy to help with any questions I may have. Spona is a great place for anyone who wants to gain an enormous amount of experience and progress in their career!",name:"Tihor Nezi\u0107",profession:"Front-End Developer",img:n(86777),order:"textThenImage",sx:{width:"100%",flexDirection:{xs:"column-reverse",md:"row"}},spacing:3,alt:"Tihor Nezi\u0107, Frontend Developer at Spona"}],o$e=function(){var e=Bn(ir.breakpoints.up("md"));return(0,u.jsx)(nn.Z,{spacing:4,sx:(0,l.Z)((0,l.Z)({},ar),{},{mt:10}),children:r$e.map((function(t){var n=t.img,r=t.text,o=t.name,i=t.profession,a=t.order,s=t.sx,c=t.spacing,d=t.alt;return(0,u.jsxs)(nn.Z,{spacing:{xs:3},alignItems:"center",direction:{xs:"column",md:"row"},justifyContent:"space-between",sx:(0,l.Z)({},s),children:["imageThenText"===a&&(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",spacing:{xs:3},sx:{width:{xs:"100%",md:"50%",lg:"30%",xxl:"30%"}},children:[(0,u.jsx)(tn,{component:"img",alt:d,src:n,sx:{width:{xs:"50%",md:"80%"},height:"50%",objectFit:"cover"}}),(0,u.jsxs)(nn.Z,{sx:{display:{xs:"inline",md:"none"}},children:[(0,u.jsx)(rn.Z,{component:"p",variant:"publicBody5Regular",color:"common.black",children:o}),(0,u.jsx)(rn.Z,{variant:"publicBody6Regular",color:"primaryDark.600",children:i})]})]}),(0,u.jsxs)(nn.Z,{spacing:3,width:{xs:"100%",md:"55%",lg:"55%"},mt:c,children:[(0,u.jsx)(rn.Z,{sx:{typography:{xs:"publicBody4Regular",md:"publicBody3Regular"}},fontSize:"18px !important",children:r}),(0,u.jsxs)(nn.Z,{sx:{display:{xs:"none",md:"inline"}},children:[(0,u.jsx)(rn.Z,{component:"p",variant:"publicBody4Regular",children:o}),(0,u.jsx)(rn.Z,{component:"p",variant:"publicBody4Regular",color:"primaryDark.600",children:i})]})]}),"textThenImage"===a&&(0,u.jsxs)(nn.Z,{spacing:3,alignItems:"center",justifyContent:{xs:"space-between",md:"end"},sx:{width:{xs:"100%",md:"50%",lg:"30%",xxl:"30%"},flexDirection:{xs:"row-reverse",md:"reverse"}},children:[(0,u.jsx)(tn,{component:"img",alt:d,src:n,sx:{width:{xs:"50%",md:"80%"},height:"50%",objectFit:"cover"}}),!e&&(0,u.jsxs)(nn.Z,{sx:{display:{xs:"inline",md:"none"}},children:[(0,u.jsx)(rn.Z,{component:"p",variant:"publicBody5Regular",color:"common.black",children:o}),(0,u.jsx)(rn.Z,{variant:"publicBody6Regular",color:"primaryDark.600",children:i})]})]})]})}))})},i$e=["title","titleId"];function a$e(){return a$e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a$e.apply(this,arguments)}function s$e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l$e(e,t){var n=e.title,r=e.titleId,i=s$e(e,i$e);return o.createElement("svg",a$e({width:75,height:75,viewBox:"0 0 75 75",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,qQe||(qQe=o.createElement("rect",{x:.5,y:.5,width:74,height:74,rx:37,fill:"#E3DBFC"})),GQe||(GQe=o.createElement("path",{d:"M37.5208 21.665C28.7764 21.665 21.6875 28.7536 21.6875 37.4984C21.6875 46.2431 28.7764 53.3317 37.5208 53.3317C46.2653 53.3317 53.3542 46.2431 53.3542 37.4984C53.3542 28.7536 46.2653 21.665 37.5208 21.665ZM37.5208 27.9984C38.3953 27.9984 39.1042 28.7077 39.1042 29.5817V36.8049L43.4089 41.11C44.0272 41.729 44.0272 42.7677 43.4089 43.3868C42.7905 44.0043 41.7512 44.0043 41.1327 43.3868L36.3827 38.6368C36.0859 38.3391 35.9375 37.918 35.9375 37.4984V29.5817C35.9375 28.7077 36.6464 27.9984 37.5208 27.9984Z",fill:"#927BF7"})),YQe||(YQe=o.createElement("rect",{x:.5,y:.5,width:74,height:74,rx:37,stroke:"white"})))}var c$e,u$e,d$e,p$e,f$e,h$e,m$e,v$e,g$e,y$e=o.forwardRef(l$e),b$e=(n.p,["title","titleId"]);function x$e(){return x$e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x$e.apply(this,arguments)}function w$e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function C$e(e,t){var n=e.title,r=e.titleId,i=w$e(e,b$e);return o.createElement("svg",x$e({width:75,height:75,viewBox:"0 0 75 75",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,c$e||(c$e=o.createElement("rect",{x:.5,y:.5,width:74,height:74,rx:37,fill:"#E3DBFC"})),u$e||(u$e=o.createElement("path",{d:"M24.5 29.625H48.5V39.625C48.5 46.2524 43.1274 51.625 36.5 51.625C29.8726 51.625 24.5 46.2524 24.5 39.625V29.625Z",fill:"#927BF7"})),d$e||(d$e=o.createElement("path",{d:"M48.5 37.625L48.5 29.625L51.5 29.625C53.7091 29.625 55.5 31.4159 55.5 33.625V33.625C55.5 35.8341 53.7091 37.625 51.5 37.625L48.5 37.625Z",stroke:"#927BF7",strokeWidth:2})),p$e||(p$e=o.createElement("path",{d:"M23.5 51.625H49",stroke:"#927BF7",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),f$e||(f$e=o.createElement("path",{d:"M31.4984 29.625C30.9947 26.4688 33.9961 26.4062 33.9961 23.4062M39.4984 29.625C38.9984 25.875 41.9984 26.375 41.9984 23.375",stroke:"#927BF7",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),h$e||(h$e=o.createElement("path",{d:"M30.5039 36.375L30.6616 36.2568C31.6976 35.4797 33.1591 35.6409 34.0009 36.625V36.625",stroke:"#E3DBFC",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),m$e||(m$e=o.createElement("path",{d:"M39.5 36.375L39.6577 36.2568C40.6937 35.4797 42.1551 35.6409 42.997 36.625V36.625",stroke:"#E3DBFC",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),v$e||(v$e=o.createElement("path",{d:"M33 43.375V43.375C34.5085 45.4822 37.5371 45.7568 39.4 43.9552L40 43.375",stroke:"#E3DBFC",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),g$e||(g$e=o.createElement("rect",{x:.5,y:.5,width:74,height:74,rx:37,stroke:"white"})))}var j$e,S$e,k$e,Z$e,O$e=o.forwardRef(C$e),E$e=(n.p,["title","titleId"]);function D$e(){return D$e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D$e.apply(this,arguments)}function P$e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function A$e(e,t){var n=e.title,r=e.titleId,i=P$e(e,E$e);return o.createElement("svg",D$e({width:75,height:75,viewBox:"0 0 75 75",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,j$e||(j$e=o.createElement("rect",{x:.5,y:.5,width:74,height:74,rx:37,fill:"#E3DBFC"})),S$e||(S$e=o.createElement("path",{d:"M37.526 40.8999C36.9442 40.8999 36.4073 40.8103 35.8255 40.6761L27.6876 38.5218C26.4187 38.186 25.1758 39.1427 25.1758 40.4552V45.5088C25.1758 46.0457 25.4892 46.5828 25.9811 46.8063C27.5024 47.5223 31.261 48.999 37.5257 48.999C43.7901 48.999 47.549 47.5669 49.0704 46.8063C49.5626 46.5379 49.8757 46.0456 49.8757 45.5088L49.8759 40.4557C49.876 39.1431 48.633 38.1863 47.3641 38.5222L39.2263 40.6764C38.6448 40.8106 38.1078 40.8999 37.526 40.8999Z",fill:"#927BF7"})),k$e||(k$e=o.createElement("path",{d:"M58.1995 31.37L38.5109 26.1346C37.8398 25.9558 37.1684 25.9558 36.4974 26.1346L16.8088 31.37C16.0481 31.5489 16.0481 32.6229 16.8088 32.8466L36.4974 38.082C37.1684 38.2609 37.8398 38.2609 38.5109 38.082L53.4116 34.1442V39.5587C52.6063 39.8721 51.9795 40.6327 51.9795 41.5723C51.9795 42.7805 52.9639 43.72 54.1273 43.72C55.3355 43.72 56.2751 42.7356 56.2751 41.5723C56.2751 40.6324 55.6932 39.8718 54.843 39.5587V33.7416L58.1543 32.8467C58.9599 32.6229 58.9601 31.5488 58.1995 31.37Z",fill:"#927BF7"})),Z$e||(Z$e=o.createElement("rect",{x:.5,y:.5,width:74,height:74,rx:37,stroke:"white"})))}var M$e,T$e,I$e,R$e=o.forwardRef(A$e),F$e=(n.p,["title","titleId"]);function B$e(){return B$e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B$e.apply(this,arguments)}function L$e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function N$e(e,t){var n=e.title,r=e.titleId,i=L$e(e,F$e);return o.createElement("svg",B$e({width:75,height:75,viewBox:"0 0 75 75",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,M$e||(M$e=o.createElement("rect",{x:.5,y:.5,width:74,height:74,rx:37,fill:"#E3DBFC"})),T$e||(T$e=o.createElement("path",{d:"M37.5168 21.689C36.1314 21.689 34.7634 22.2162 33.7057 23.2723L22.1284 34.8005C21.5093 35.4196 21.5093 36.4582 22.1284 37.0773L24.8501 39.7991V45.4389C24.8501 48.9365 27.6859 51.7722 31.1834 51.7722H43.8501C47.3477 51.7722 50.1835 48.9365 50.1835 45.4389V39.7991L52.9036 37.0773C53.5227 36.4582 53.5227 35.4196 52.9036 34.8005C52.3669 34.2638 50.4004 32.2878 48.6001 30.4955V26.439C48.6001 25.565 47.8908 24.8556 47.0168 24.8556C46.1412 24.8556 45.4335 25.565 45.4335 26.439V27.3794C43.7393 25.6932 41.8393 23.7853 41.3263 23.2723C40.2686 22.2162 38.9006 21.689 37.5168 21.689Z",fill:"#927BF7"})),I$e||(I$e=o.createElement("rect",{x:.5,y:.5,width:74,height:74,rx:37,stroke:"white"})))}var _$e,z$e,H$e,W$e,V$e,U$e,q$e,G$e=o.forwardRef(N$e),Y$e=(n.p,["title","titleId"]);function K$e(){return K$e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K$e.apply(this,arguments)}function J$e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function X$e(e,t){var n=e.title,r=e.titleId,i=J$e(e,Y$e);return o.createElement("svg",K$e({width:75,height:75,viewBox:"0 0 75 75",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,_$e||(_$e=o.createElement("rect",{x:.5,y:.5,width:74.0002,height:74,rx:37,fill:"#E3DBFC"})),z$e||(z$e=o.createElement("path",{d:"M27.8476 29.1692C27.1789 25.8062 24.8583 22.9629 22.0834 22.9629C19.31 22.9629 17.5 26.6283 17.5 30.0567C17.5 33.4852 20.4921 36.1172 23.2657 36.1172C26.0422 36.1172 28.5862 32.8636 27.8476 29.1693V29.1692Z",fill:"#927BF7"})),H$e||(H$e=o.createElement("path",{d:"M33.0083 32.0275C35.6798 32.769 39.0049 30.3209 39.2861 26.5627C39.5383 23.1435 38.0735 19.7807 35.3957 19.0356C32.7211 18.291 29.9978 21.3394 29.0816 24.6417C28.1621 27.9456 30.3367 31.2811 33.0083 32.0275Z",fill:"#927BF7"})),W$e||(W$e=o.createElement("path",{d:"M49.9707 33.3919C51.5921 30.3708 51.6196 26.7021 49.4752 24.9366C47.3401 23.1678 43.6107 24.847 41.4253 27.4928C39.2415 30.134 39.8736 34.0669 42.0164 35.836C44.1564 37.6017 48.1881 36.7143 49.9708 33.3923L49.9707 33.3919Z",fill:"#927BF7"})),V$e||(V$e=o.createElement("path",{d:"M57.1148 37.9081C56.0068 35.6438 52.2898 35.6288 49.4908 36.9964C46.6915 38.3612 45.7325 41.8548 46.8405 44.1208C47.9485 46.3883 51.6215 47.1691 54.3451 45.095C56.8251 43.2026 58.2218 40.1755 57.1154 37.9083L57.1148 37.9081Z",fill:"#927BF7"})),U$e||(U$e=o.createElement("path",{d:"M35.24 34.193C28.5993 33.7812 20.3125 38.8205 20.3125 44.9857C20.3125 51.1511 27.4037 55.9728 34.0583 56.075C44.3316 56.2209 46.5821 50.8245 45.4422 44.7641C44.2568 38.4832 39.9711 34.4909 35.2406 34.193H35.24Z",fill:"#927BF7"})),q$e||(q$e=o.createElement("rect",{x:.5,y:.5,width:74.0002,height:74,rx:37,stroke:"white"})))}var Q$e,$$e,e0e,t0e,n0e,r0e,o0e,i0e,a0e,s0e=o.forwardRef(X$e),l0e=(n.p,["title","titleId"]);function c0e(){return c0e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c0e.apply(this,arguments)}function u0e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d0e(e,t){var n=e.title,r=e.titleId,i=u0e(e,l0e);return o.createElement("svg",c0e({width:75,height:75,viewBox:"0 0 75 75",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,Q$e||(Q$e=o.createElement("rect",{x:.5,y:.5,width:74,height:74,rx:37,fill:"#E3DBFC"})),$$e||($$e=o.createElement("rect",{x:24.0625,y:24.7554,width:5.52267,height:25.4893,rx:2.76133,fill:"#927BF7"})),e0e||(e0e=o.createElement("rect",{x:45.4141,y:24.7554,width:5.52267,height:25.4893,rx:2.76133,fill:"#927BF7"})),t0e||(t0e=o.createElement("rect",{x:18.9062,y:27.6333,width:5.15449,height:20.5559,rx:2.57724,fill:"#927BF7"})),n0e||(n0e=o.createElement("rect",{x:50.9414,y:27.6333,width:5.15449,height:20.5559,rx:2.57724,fill:"#927BF7"})),r0e||(r0e=o.createElement("rect",{x:29.4922,y:39.5557,width:4.11118,height:16.1998,transform:"rotate(-90 29.4922 39.5557)",fill:"#927BF7"})),o0e||(o0e=o.createElement("rect",{x:55.6875,y:40.2573,width:5.91334,height:2.06307,rx:1.03153,transform:"rotate(-90 55.6875 40.2573)",fill:"#927BF7"})),i0e||(i0e=o.createElement("rect",{x:17.25,y:40.2573,width:5.91334,height:2.06307,rx:1.03153,transform:"rotate(-90 17.25 40.2573)",fill:"#927BF7"})),a0e||(a0e=o.createElement("rect",{x:.5,y:.5,width:74,height:74,rx:37,stroke:"white"})))}var p0e,f0e,h0e,m0e=o.forwardRef(d0e),v0e=(n.p,[{icon:(0,u.jsx)(y$e,{}),title:"Flexible hours",content:"Our workday starts between 7 and 9 AM, so you can tailor your day however suits you best."},{icon:(0,u.jsx)(G$e,{}),title:"Hybrid model",content:"Guaranteed 2 days per week remote, but you can stay in longer if necessary."},{icon:(0,u.jsx)(s0e,{}),title:"Pet-friendly",content:"Bring your furry friend to the office - we don\u2019t mind!"},{icon:(0,u.jsx)(R$e,{}),title:"Educational budget",content:"We encourage you to enhance your skill set or simply pursue your interests."},{icon:(0,u.jsx)(O$e,{}),title:"Stocked kitchen",content:"Fight the afternoon munchies with some coffee and snacks from our stocked kitchen."},{icon:(0,u.jsx)(m0e,{}),title:"Stay healthy",content:"Your MultiSport membership card is 100% covered."}]),g0e=function(){return(0,u.jsxs)(nn.Z,{spacing:{xs:0},sx:(0,l.Z)((0,l.Z)({},ar),{},{mb:16}),children:[(0,u.jsx)(rn.Z,{variant:"publicHeading3",children:"Our Benefits"}),(0,u.jsx)(kn,{container:!0,rowSpacing:7,children:v0e.map((function(e){var t=e.icon,n=e.title,r=e.content;return(0,u.jsx)(kn,{item:!0,xs:12,sm:6,md:4,lg:4,children:(0,u.jsxs)(nn.Z,{spacing:2,alignItems:{xs:"center",sm:"start"},children:[t,(0,u.jsx)(rn.Z,{variant:"publicBody5",color:"primaryDark.600",children:n}),(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",sx:{width:{xs:"100%",md:"75%"},textAlign:{xs:"center",sm:"unset"}},children:r})]})})}))})]})},y0e=[{src:(0,rs.mB)(Wxe.W.People1),alt:"Two colleagues casually chatting on sofas."},{src:(0,rs.mB)(Wxe.W.People2),alt:"A person standing in front of the multi-colored background."},{src:(0,rs.mB)(Wxe.W.People3),alt:"Two colleagues working together on their computers"}],b0e=null===y0e||void 0===y0e?void 0:y0e.map((function(e){return(0,u.jsx)(tn,{component:"img",alt:e.alt,src:e.src,width:"100%",height:"100%",sx:{pr:{xs:0,lg:4}}})})),x0e=(p0e={},(0,t.Z)(p0e,ir.breakpoints.values.xs,{items:1}),(0,t.Z)(p0e,ir.breakpoints.values.sm,{items:2}),(0,t.Z)(p0e,ir.breakpoints.values.md,{items:3}),p0e),w0e=function(){return(0,u.jsx)(nn.Z,{pt:8,pb:1,sx:{backgroundColor:"primaryDark.200",position:"relative"},children:(0,u.jsxs)(nn.Z,{spacing:{xs:4},direction:{xs:"column"},alignItems:"center",justifyContent:"start",sx:(0,l.Z)((0,l.Z)({},ar),{},{position:"relative"}),children:[(0,u.jsx)(rn.Z,{sx:{width:"100%",typography:{xs:"publicHeading4",lg:"publicHeading3"},pb:{xs:0,md:1,lg:2}},children:"Our People"}),(0,u.jsx)(tn,{className:"ourPeopleCarousel",sx:{width:"100%"},children:(0,u.jsx)(Wwe,{responsive:x0e,items:b0e,buttonStyles:{display:{xs:"none",md:"block"},top:{xs:"15%",sm:"38%",lg:"43%"},transform:"translateY(-50%)",right:{xs:"-4%",md:"-1%",lg:"2%",xxl:"-15%"}}})}),(0,u.jsxs)(nn.Z,{spacing:{xs:4,lg:4},sx:{maxWidth:{xs:"100%",lg:"75%"}},children:[(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"secondaryGray.600",children:"We\u2019ve been fostering know-how and creating tools that facilitate digital projects since 2018. We create lasting bonds between businesses and companies that offer digital services, changing the way people cooperate for the better - all this while cultivating a positive work environment in which each member of the team has their own distinct voice and impact."}),(0,u.jsx)(Wo,{variant:"primary",sx:{opacity:0,pointerEvents:"none",cursor:"initial",width:{xs:"100%",md:"20%",lg:"17%"}},children:"View open positions"})]})]})})},C0e=function(){var e=Bn(ir.breakpoints.up("lg")),t=Bn(ir.breakpoints.up("xxl"));return(0,u.jsxs)(nn.Z,{spacing:{xs:8,xxl:12},justifyContent:"center",sx:(0,l.Z)((0,l.Z)({},ar),{},{height:"calc(100vh + ".concat(rc,"px)")}),children:[(0,u.jsxs)(nn.Z,{spacing:{xs:5,xxl:4},children:[(0,u.jsx)(nn.Z,{justifyContent:"center",alignItems:"center",width:"fit-content",children:(0,u.jsxs)(rn.Z,{display:{xs:"grid",md:"block"},sx:{typography:{xs:"publicHeadline7",md:"publicHeadline5",lg:"publicHeadline6"}},children:["Help Us Become",(0,u.jsx)("br",{}),(0,u.jsxs)(rn.Z,{component:"span",sx:{position:"relative",typography:{xs:"publicHeadline7",md:"publicHeadline5",lg:"publicHeadline6"}},children:["Even Better",(0,u.jsx)(tn,{sx:{backgroundColor:"primaryLight.500",width:"100%",height:"0.75rem",borderRadius:"7rem",position:"absolute",bottom:"-5%",left:0,zIndex:-1}})]})]})}),(0,u.jsx)(rn.Z,{variant:"publicBody3Regular",children:"Changing the (business) world, one step at a time. Learn more about what it means to become a part of the Spona team."})]}),e&&(0,u.jsx)(oQe,{spacing:4,sx:{height:"auto",p:t?"2.85rem !important":0,px:t?0:"2rem",py:t?0:"1rem"},breakWord:t})]})},j0e={description:"Interested in working at Spona? Here's where to find out what it's like to work at Spona and learn about new job openings."},S0e=function(){var e=Bn(ir.breakpoints.down("md"));return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Kwe,(0,l.Z)({},j0e)),(0,u.jsxs)(nn.Z,{overflow:"hidden",width:"100%",children:[(0,u.jsx)(C0e,{}),e&&(0,u.jsx)(oQe,{sx:(0,l.Z)({height:"auto",mb:{xs:14}},ar)}),(0,u.jsx)(g0e,{}),(0,u.jsx)(w0e,{}),(0,u.jsx)(o$e,{})]})]})},k0e=["title","titleId"];function Z0e(){return Z0e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Z0e.apply(this,arguments)}function O0e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function E0e(e,t){var n=e.title,r=e.titleId,i=O0e(e,k0e);return o.createElement("svg",Z0e({width:17,height:16,viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,f0e||(f0e=o.createElement("circle",{cx:8.71582,cy:8,r:8,fill:"#6D51F6"})),h0e||(h0e=o.createElement("path",{d:"M7.82717 8.90118L10.4494 6.27896C10.5309 6.19748 10.6346 6.15674 10.7605 6.15674C10.8864 6.15674 10.9901 6.19748 11.0716 6.27896C11.1531 6.36044 11.1938 6.46415 11.1938 6.59007C11.1938 6.716 11.1531 6.8197 11.0716 6.90118L8.13828 9.83452C8.04939 9.92341 7.94569 9.96785 7.82717 9.96785C7.70865 9.96785 7.60495 9.92341 7.51606 9.83452L6.3605 8.67896C6.27902 8.59748 6.23828 8.49378 6.23828 8.36785C6.23828 8.24192 6.27902 8.13822 6.3605 8.05674C6.44198 7.97526 6.54569 7.93452 6.67161 7.93452C6.79754 7.93452 6.90124 7.97526 6.98273 8.05674L7.82717 8.90118Z",fill:"white"})))}var D0e=o.forwardRef(E0e),P0e=(n.p,function(e){var t=e.content,n=function(){return(0,u.jsx)(tn,{children:(0,u.jsx)(D0e,{fill:"primaryLight.500",style:{width:24,height:24}})})};return(0,u.jsx)(nn.Z,{spacing:2.75,children:t.map((function(e){return(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",alignItems:"center",children:[(0,u.jsx)(n,{}),(0,u.jsx)(rn.Z,{color:"secondaryGray.600",variant:"publicBody4Regular",children:e})]})}))})}),A0e=function(){return(0,u.jsxs)(nn.Z,{spacing:{xs:8,md:5},direction:{xs:"column",md:"row"},justifyContent:"space-between",sx:(0,l.Z)((0,l.Z)({},ar),{},{mt:3,mb:14}),children:[(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsx)(rn.Z,{sx:{typography:{xs:"publicHeading4",lg:"publicHeading3"}},children:"You Are..."}),(0,u.jsx)(P0e,{content:["A business that spends $2,000+ per month on paid social ads","Running tried-and-tested ad campaigns, but need more accounts","Promoting white hat products within guidelines"]})]}),(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsx)(rn.Z,{sx:{typography:{xs:"publicHeading4",lg:"publicHeading3"}},children:"You Get..."}),(0,u.jsx)(P0e,{content:["On-hand guidance for achieving your advertising goals","Expert support for meeting international compliance standards","Help in scaling operations to extend your reach and optimize results"]})]})]})},M0e=n(83438);var T0e=[{src:M0e,alt:"google ads",type:"img"},{src:n.p+"static/media/meta-partners-badge.69008d7c03a36c4bd0b790b0836f0032.svg",alt:"meta",type:"link",href:"https://www.facebook.com/business/partner-directory/search?solution_type=campaign_management&id=8957086400969902&section=overview"}],I0e=function(){return(0,u.jsxs)(nn.Z,{spacing:2.5,alignItems:"center",sx:(0,l.Z)((0,l.Z)({},ar),{},{my:12}),children:[(0,u.jsx)(rn.Z,{sx:{typography:{xs:"publicHeading4"}},children:"Partnered with:"}),(0,u.jsx)(nn.Z,{spacing:{xs:3,md:16},direction:{xs:"column",md:"row"},children:T0e.map((function(e){return"img"===e.type?(0,u.jsx)(tn,{component:"img",src:e.src,alt:e.alt,width:200,height:150},e.src):(0,u.jsx)(tn,{component:Xn,href:e.href,target:"_blank",rel:"noopener",width:250,children:(0,u.jsx)("img",{src:e.src,alt:e.alt,width:250,height:150})},e.src)}))})]})},R0e=[{icon:Cwe,subject:"We have never had middleman support like the support that we had with Spona. Your project managers provided us with answers to several questions that we had been unable to obtain for months. It's a great support system and a good buffer; if something goes wrong, paying someone 10% more to do your work than you would be worthwhile.",author:"Jennifer Peros",title:"Director of Talent at Famous Last Words PR"},{icon:jwe,subject:"The platform offers a very quick and efficient service that really does save your time and money. We were a bit strapped for time as the project was being planned during the holiday season and we wanted to kick it off as soon as possible, but thanks to Spona, everything worked out as fast as possible for us.",author:"Nora Mlinari\u0107",title:"PR & Marketing Specialist at Gruntek"}],F0e={title:"Spona - Grow your Advertising with Spona Media",description:"Get unique advertising solutions for Google, Meta, TikTok, Twitter and Snapchat. Fast and Easy handeling. Grow your advertising today. Find out how."},B0e=function(){var e=(0,o.useState)(!1),t=(0,Le.Z)(e,2),n=t[0],r=t[1],i=(0,o.useState)(!1),a=(0,Le.Z)(i,2),s=a[0],c=a[1],d=Bn("(min-height:1200px)"),p=Bn("(min-width:600px)"),f=Bn("(min-width:1490px)"),h=function(e){var t=e.openModal;return(0,u.jsx)(ys,{open:t,width:"auto",paperStyleProps:{p:{xs:0,lg:"2rem"}},sx:{alignItems:"end"},onClose:function(){return r(!1)},children:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(AUe,{styles:{height:d?"600px":"480px",width:f?"490px":p?"380px":"310px"},url:"https://calendly.com/connectwithspona/30min?month=2024-01"}),s&&(0,u.jsx)(Wo,{onClick:function(){r(!1),c(!1)},children:"Close"})]})})};return RUe({onEventScheduled:function(e){c(!0)}}),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Kwe,(0,l.Z)({},F0e)),(0,u.jsxs)(nn.Z,{overflow:"hidden",width:"100%",children:[n&&(0,u.jsx)(h,{openModal:n}),(0,u.jsx)(fUe,{title:"Grow Your Advertising",content:"Interested in enhancing your social media advertising? Whether you\u2019re a business owner with tech verticals, a marketer interested in growing your online presence or an entrepreneur with a long-term vision, Spona Media has the answer for you. Get unique advertising solutions for Google, Snapchat, Twitter, TikTok and Facebook.",image:(0,rs.mB)(Wxe.W.SponaMediaHero),alt:"A person smiling and looking on a side while working on his computer.",contentButton:{text:"Learn more",color:tr.E4[700],onClick:function(){return r(!0)},withArrowRightIcon:!0},sx:{height:{xs:"calc(89vh + ".concat(rc,"px)"),lg:"87vh"}}}),(0,u.jsx)(gUe,{title:"How does it work?",optionsProps:[{title:"Rapid business growth",content:"Get access to exclusive ad accounts from day one and increase your spending in step with your growth. The Spona team will support you by making sure your content meets platform requirements, so you can get creative without worrying about compliance.",image:(0,rs.mB)(Wxe.W.SponaMakes),alt:"Drawing of a growing chart with blurred people at the workplace in the background."},{title:"Comprehensive support",content:"Spona Media clients have access to full support from the Spona team, from expert tips on how to use certain tools, information about partnered platforms to solutions for any issues. Enjoy unhindered communication with our platform representatives and get all the benefits of on-hand support.",image:(0,rs.mB)(Wxe.W.SponaMakes),alt:"Drawing of a growing chart with blurred people at the workplace in the background."},{title:"Hassle-free payments",content:"Low-cost bank transfers let you fully focus on your business, without having to worry about credit card fees and other financial burdens. We also support payments in cryptocurrencies, so you can benefit from Spona Media whether you're a Web2 or Web3 business.",image:(0,rs.mB)(Wxe.W.SponaMakes),alt:"Drawing of a growing chart with blurred people at the workplace in the background."}],sx:{mt:{xs:"-65px",lg:"110px"},mb:{xs:3,md:10}}}),(0,u.jsx)(A0e,{}),(0,u.jsx)(Uwe,{testimonials:R0e,subtext:"Find out what members of our community have to say about their experience with Spona Media.",sx:{my:10}}),(0,u.jsx)(Ywe,{title:"Interested in Spona Media?",subtitle:"Schedule a meeting and find out what Spona Media can do for your business.",bgcolor:"secondaryYellow.100",color:"common.black",onButtonClick:function(){return r(!0)}}),(0,u.jsx)(I0e,{})]})]})},L0e=function(){var e,t,n,r,o,i,a,s,l,c,d,p,f,h,m,v=(0,ze.UO)().caseStudyId,g=(0,Ms.J)(),y=(0,ze.s0)(),b=Ra({id:v,resource:"case-studies-content",enabled:!!v}).data,x=(0,As.Z)({resource:"/case-studies"}),w=x.mutate,C=x.isLoading,j=function(e){w({id:null===b||void 0===b?void 0:b.caseStudy,suffix:e},{onSuccess:function(){g(),y("../")}})};return(0,u.jsx)(da.Z,{children:(0,u.jsxs)(nn.Z,{p:6,children:[(0,u.jsx)(rn.Z,{variant:"heading3",color:"primaryDark.600",children:null===b||void 0===b?void 0:b.title}),(0,u.jsx)(rn.Z,{variant:"body3",pt:4,color:"primaryDark.500",children:(0,rs.qJ)(null===b||void 0===b?void 0:b.published,"---")}),(0,u.jsx)(nn.Z,{direction:"row",py:3,alignItems:"center",justifyContent:"space-between",children:(0,u.jsxs)(nn.Z,{direction:"row",gap:4,alignItems:"center",children:[(0,u.jsx)(Wo,{loading:C,variant:"secondary",onClick:function(){return j("reject")},disabled:(null===b||void 0===b?void 0:b.status)!==Kt.U_.Pending,children:"Reject"}),(0,u.jsx)(Wo,{disabled:(null===b||void 0===b?void 0:b.status)!==Kt.U_.Pending,loading:C,onClick:function(){return j("approve")},children:"Approve"})]})}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{width:"100%",children:[(0,u.jsxs)(nn.Z,{direction:"row",width:"100%",py:2,children:[(0,u.jsx)(eqe,{label:"services",choices:Kt.Sj,values:null===b||void 0===b||null===(e=b.details)||void 0===e?void 0:e.services}),(0,u.jsx)(eqe,{label:"tech platforms",choices:T$.VA,values:null===b||void 0===b||null===(t=b.details)||void 0===t?void 0:t.platforms})]}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{direction:"row",width:"100%",py:2,children:[(0,u.jsx)(eqe,{label:"tech tools",choices:T$.oz,values:null===b||void 0===b||null===(n=b.details)||void 0===n?void 0:n.tools}),(0,u.jsx)(eqe,{label:"Programming languages",choices:T$.G3,values:null===b||void 0===b||null===(r=b.details)||void 0===r?void 0:r.languages})]}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{direction:"row",width:"100%",py:2,children:[(0,u.jsx)(eqe,{label:"industry",choices:Kt.lu,values:null===b||void 0===b||null===(o=b.details)||void 0===o?void 0:o.industries}),(0,u.jsx)(eqe,{label:"Target market",choices:Kt.NF,values:null===b||void 0===b||null===(i=b.details)||void 0===i?void 0:i.geographyFocus})]}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{width:"100%",py:2,children:[(0,u.jsx)(Cd,{text:"Project size"}),(0,u.jsx)(rn.Z,{variant:"heading4",children:null!==b&&void 0!==b&&null!==(a=b.details)&&void 0!==a&&a.projectSize?Kt.Dw.get(b.details.projectSize):"--"})]}),(0,u.jsx)(da.Z,{sx:{m:4,borderRadius:"3px",maxWidth:"100%"},component:"img",src:null===b||void 0===b?void 0:b.file}),(0,u.jsx)(un,{}),(null===b||void 0===b||null===(s=b.description)||void 0===s?void 0:s.challenges)&&(0,u.jsxs)(nn.Z,{py:2,spacing:1,children:[(0,u.jsxs)(nn.Z,{direction:"row",spacing:1,children:[(0,u.jsx)(bI,{fill:tr.IV[500]}),(0,u.jsx)(Cd,{text:"Project goals"})]}),(0,u.jsx)(m$,{items:A$,content:null===b||void 0===b||null===(l=b.description)||void 0===l?void 0:l.goals,isEditable:!1},"goals")]}),(0,u.jsx)(un,{}),(null===b||void 0===b||null===(c=b.description)||void 0===c?void 0:c.challenges)&&(0,u.jsxs)(nn.Z,{py:2,spacing:1,children:[(0,u.jsxs)(nn.Z,{direction:"row",spacing:1,children:[(0,u.jsx)(aqe,{fill:tr.IV[500]}),(0,u.jsx)(Cd,{text:"challenges"})]}),(0,u.jsx)(m$,{items:A$,content:null===b||void 0===b||null===(d=b.description)||void 0===d?void 0:d.challenges,isEditable:!1},"challenges")]}),(0,u.jsx)(un,{}),(null===b||void 0===b||null===(p=b.description)||void 0===p?void 0:p.solutions)&&(0,u.jsxs)(nn.Z,{py:2,spacing:1,children:[(0,u.jsxs)(nn.Z,{direction:"row",spacing:1,children:[(0,u.jsx)(fqe,{fill:tr.IV[500]}),(0,u.jsx)(Cd,{text:"solution"})]}),(0,u.jsx)(m$,{items:A$,content:null===b||void 0===b||null===(f=b.description)||void 0===f?void 0:f.solutions,isEditable:!1},"solutions")]}),(0,u.jsx)(un,{}),(null===b||void 0===b||null===(h=b.description)||void 0===h?void 0:h.results)&&(0,u.jsxs)(nn.Z,{py:2,mb:8,spacing:1,children:[(0,u.jsxs)(nn.Z,{direction:"row",spacing:1,children:[(0,u.jsx)(LAe,{fill:tr.IV[500]}),(0,u.jsx)(Cd,{text:"Results"})]}),(0,u.jsx)(m$,{items:A$,content:null===b||void 0===b||null===(m=b.description)||void 0===m?void 0:m.results,isEditable:!1},"results")]})]})]})})},N0e=function(){return(0,u.jsx)(g$,{label:"team description",name:"overview.description",items:P$,required:!0})},_0e=["id"],z0e=function(){var e,t=Pa(),n=null===t||void 0===t||null===(e=t.membership)||void 0===e?void 0:e.company,r=(0,o.useState)(!1),i=(0,Le.Z)(r,2),a=i[0],s=i[1],c=Xc(),d=c.reset,p=c.getValues,f=hi({enabled:!!n,resource:"case-studies-content?company=".concat(n,"&status=published&status=under_review&status=verified")}).data,h=null===f||void 0===f?void 0:f.data.results,m=a?h:null===h||void 0===h?void 0:h.slice(0,3);return(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsxs)(rn.Z,{variant:"heading4",color:"primaryDark.500",children:["Case study portfolio"," ",(0,u.jsxs)(rn.Z,{component:"span",variant:"heading4",color:p("caseStudies").length>0?"secondaryGreen.700":"primaryDark.500",children:[p("caseStudies").length," selected"]})]}),(0,u.jsx)(rn.Z,{color:"primaryDark.500",children:"Attach case studies from your profile that show your expertise in similar projects or fields."})]}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryLight.500",sx:{"&:hover":{textDecoration:"underline",cursor:"pointer"}},onClick:function(){return s(!a)},children:a?"View less":"View all"})]}),(0,u.jsx)(nn.Z,{direction:"row",justifyContent:"space-between",sx:{flexWrap:"wrap",gap:"25px"},children:h&&h.length>0&&(null===m||void 0===m?void 0:m.map((function(e){return(0,u.jsx)(mAe,{id:e.caseStudy,sx:{width:{md:"46%",bg:"47%",xl:"30%"}},toggleMode:{condition:p("caseStudies").some((function(t){return t===e.caseStudy}))},onClick:function(e){var t=e.id,n=Nn(e,_0e),r=p("caseStudies"),o=p("caseStudiesPreview");if(r.length>0&&r.some((function(e){return e===t}))){var i=r.filter((function(e){return e!==t})),a=o.filter((function(e){return e.id!==t}));d((0,l.Z)((0,l.Z)({},p()),{},{caseStudies:(0,dn.Z)(i),caseStudiesPreview:(0,dn.Z)(a)}))}else d((0,l.Z)((0,l.Z)({},p()),{},{caseStudies:[].concat((0,dn.Z)(r),[t]),caseStudiesPreview:[].concat((0,dn.Z)(o),[(0,l.Z)({id:t},n)])}))},topChip:(0,u.jsx)(EI,{text:e.status}),bottomComponent:e.review&&(0,u.jsx)(Cme,{displayName:"score",id:e.caseStudy,resource:"case-studies",renderComponent:function(e){return(0,u.jsx)(vAe,{rating:e.score})}}),coverImg:e.file,caseStudyName:e.title,companyLogo:e.seller.avatar,companyName:e.seller.name})})))})]})},H0e=function(){var e,t=Pa(),n=null===t||void 0===t||null===(e=t.membership)||void 0===e?void 0:e.company,r=Xc().getValues,o=Ra({enabled:!!n,resource:"companies",id:n,refetchOnWindowFocus:!1}).data,i=function(e){var t=e.icon,n=e.title;return(0,u.jsxs)(nn.Z,{sx:{fill:tr.IV[500]},alignItems:"center",direction:"row",children:[t,(0,u.jsx)(rn.Z,{color:"primaryDark.500",variant:"heading5",ml:1.375,children:n})]})};return(0,u.jsx)(tn,{sx:{background:"linear-gradient(240.98deg, rgba(230, 232, 255, 0.2) 0%, rgba(255, 234, 225, 0.2) 68.46%, rgba(255, 251, 234, 0.2) 99.58%)",border:"1px solid",borderColor:"secondaryBlue.100",p:2,pr:0},children:(0,u.jsxs)(nn.Z,{spacing:7,children:[(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",alignItems:"center",children:[(0,u.jsx)(tn,{sx:{width:50,height:50,borderRadius:"4px",backgroundImage:"url(".concat(null===o||void 0===o?void 0:o.avatar,")"),backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"cover"}}),(0,u.jsx)(rn.Z,{variant:"heading2",color:"primaryDark.600",children:null===o||void 0===o?void 0:o.name}),(0,u.jsx)(io.Z,{sx:{borderRadius:"3px",p:.6,bgcolor:tr.dx[100]},children:(0,u.jsx)(yM,{fill:tr.dx[700]})})]}),(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(i,{title:"Team description",icon:(0,u.jsx)(bPe,{})}),(0,u.jsx)(m$,{items:[],isEditable:!1,content:null===r||void 0===r?void 0:r("overview.description")})]}),(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(i,{title:"Top-level strategy",icon:(0,u.jsx)(APe,{})}),(0,u.jsx)(m$,{items:[],isEditable:!1,content:null===r||void 0===r?void 0:r("overview.strategy")})]}),r("caseStudiesPreview").length>0&&(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(i,{title:"Case study portfolio",icon:(0,u.jsx)(kPe,{})}),(0,u.jsx)(nn.Z,{position:"relative",width:"100%",children:(0,u.jsx)(N5,{items:r("caseStudiesPreview")||[],carouselItemWidth:270,activeIndexItem:0,sx:{width:"100%",pb:"30px",ml:"-16px","&>*:nth-child(1)":{marginLeft:"18px"}},renderCustomBackAndNextButtons:function(e){var t=e.back,n=e.next;return(0,u.jsx)(DAe,{back:t,next:n})},renderCarouselItem:function(e){var t=e.item;return t?(0,u.jsx)(mAe,{sx:{minWidth:270,maxWidth:270},id:t.id,topChip:(0,u.jsx)(PAe,{}),bottomComponent:(0,u.jsx)(Cme,{displayName:"name",id:t.id,resource:"case-studies",renderComponent:function(e){return(0,u.jsx)(vAe,{rating:e.score})}}),coverImg:t.coverImg,caseStudyName:t.title,companyLogo:t.companyLogo,companyName:t.companyName}):null}})})]}),(0,u.jsx)(un,{sx:{mr:"1rem !important",borderColor:"secondaryBlue.100"}}),r("materials").length>0&&(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(i,{title:"Related materials",icon:(0,u.jsx)(LPe,{})}),(0,u.jsx)(Xy.Z,{children:r("materials").map((function(e){return(0,u.jsx)(L3,{component:"a",href:e.file||"",sx:{px:0},download:!0,children:(0,u.jsxs)(nn.Z,{children:[(0,u.jsxs)(nn.Z,{mb:.75,direction:"row",alignItems:"center",children:[(0,u.jsx)(tn,{width:10,height:10,sx:{border:"2px solid ".concat(tr.IV[300]),borderRadius:"50%",bgcolor:"primaryDark.500",mr:1.25}}),(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.600",children:e.fileName})]}),(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",pl:1.25,children:[(0,u.jsx)(tn,{component:"img",sx:{width:30,height:30},src:(0,rs.wQ)(null===e||void 0===e?void 0:e.fileName),mr:1.25}),(0,u.jsx)(rn.Z,{variant:"body3",fontWeight:"600",color:"primaryDark.600",children:e.fileName})]})]})})}))})]})]})})},W0e=function(){return(0,u.jsx)(g$,{label:"top-level strategy",name:"overview.strategy",items:P$,required:!0})},V0e=function(e){var t=e.isOpen,n=e.setIsOpen,r=e.type,o=e.errorMessage,i=e.onConfirm,a=e.timedProjectName,s={create:{title:"Well done",text:"Your pitch for ".concat(a," has been successfully submitted and is now under review. You'll be notified once the review process is complete."),icon:(0,u.jsx)(LAe,{fill:tr.dx[700],style:{width:24,height:24}}),wrapperBackgroundColor:tr.dx[100]},edit:{title:"Notices before change",text:"Your changes will be changed when the Spona team validates and approves them. In the meantime, the Pitch will remain as it was.  ",icon:(0,u.jsx)(LAe,{fill:tr.dx[700],style:{width:24,height:24}}),wrapperBackgroundColor:tr.dx[100]},draft:{title:"Save draft",text:"Save your case study as draft to continue editing it later.",icon:(0,u.jsx)(LAe,{fill:tr.dx[700],style:{width:24,height:24}}),wrapperBackgroundColor:tr.dx[100]},error:{title:"Error",text:"Something went wrong. Please try again later.",icon:(0,u.jsx)(V2,{fill:tr.Us[700],style:{width:24,height:24}}),wrapperBackgroundColor:tr.Us[100]},cancel:{title:"Cancel Form",text:"You are coming out of the creative form. Your recorded data will be lost.",icon:(0,u.jsx)(X2,{fill:tr.dx[700],style:{width:24,height:24}}),wrapperBackgroundColor:tr.dx[100]}},l=o||s[r].text,c=(0,ze.s0)(),d=i||function(){return c("../")};return(0,u.jsx)(y4,{width:"50%",isModalOpen:t,setIsModalOpen:n,title:s[r].title,message:(0,u.jsx)(rn.Z,{color:"primaryDark.500",lineHeight:"21px",children:l}),confirmButtonText:"draft"===r?"Confirm":"cancel"===r?"Proceed":"Close",onConfirm:d,iconProps:{icon:s[r].icon,wrapperBackgroundColor:s[r].wrapperBackgroundColor},showCancelButton:"draft"===r||"cancel"===r,onCancel:function(){return n(!1)}})},U0e=["materialsPreview","caseStudiesPreview","userAgreement","materials"],q0e=["About","Strategy","Portfolio","Materials","Preview"],G0e=["Provide an overview of your company and team that highlights why you are a good fit for the project.","Outline your project strategy. You do not have to go in specific detail, as you will be expected to provide a more concrete solution only if your pitch is accepted into the second round of negotiations.","","Upload additional documentation such as your pitch deck. Add links to external portfolios or any applicable materials that demonstrate relevant skills and knowledge."],Y0e={overview:{description:"",strategy:""},caseStudiesPreview:[],caseStudies:[],materialsPreview:null,materials:[]},K0e=function(e){var t=e.type,n=(0,ze.UO)(),r=(0,ze.TH)(),i=(0,ze.s0)(),a=qR({labels:q0e,initialState:Y0e}),s=a.form,c=a.steps,d=a.currentStep,p=a.onStepChange,f=r.state,h=(0,o.useState)(!1),m=(0,Le.Z)(h,2),v=m[0],g=m[1],y=(0,o.useState)(!1),b=(0,Le.Z)(y,2),x=b[0],w=b[1],C=(0,o.useState)(!1),j=(0,Le.Z)(C,2),S=j[0],k=j[1],Z=(0,o.useState)(!1),O=(0,Le.Z)(Z,2),E=O[0],D=O[1],P=(0,o.useState)(!1),A=(0,Le.Z)(P,2),M=A[0],T=A[1],I=(0,o.useState)(""),R=(0,Le.Z)(I,2),F=R[0],B=R[1],L=Ra({resource:"timed-project-pitches",enabled:!(null===n||void 0===n||!n.timedProjectPitchId),id:n.timedProjectPitchId,refetchOnWindowFocus:!1,refetchOnMount:!0,refetchOnReconnect:!1}).data,N=Ra({resource:"timed-project-pitch-contents",enabled:!!L,id:(null===L||void 0===L?void 0:L.edit)||(null===L||void 0===L?void 0:L.content),refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1}).data,_=oa({resource:"/timed-project-pitches"}),z=_.mutate,H=_.isLoading,W=(0,As.Z)({resource:"/timed-project-pitches"}),V=W.mutate,U=W.isLoading;(0,o.useEffect)((function(){var e=function(){var e=ds(hs().mark((function e(){var n,r,o;return hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("edit"!==t||void 0===N){e.next=5;break}return e.next=3,Promise.all(N.materials.map(function(){var e=ds(hs().mark((function e(t){var n,r,o;return hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t.file);case 2:return n=e.sent,e.next=5,n.blob();case 5:return r=e.sent,o=new File([r],t.fileName,{type:(0,rs.EE)(t.file)}),e.abrupt("return",o);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 3:o=e.sent,s.reset({overview:{description:null===(n=N.overview)||void 0===n?void 0:n.description,strategy:null===(r=N.overview)||void 0===r?void 0:r.strategy},caseStudiesPreview:N.caseStudies.map((function(e){return{id:e.id,companyName:e.seller.name,companyLogo:e.seller.avatar,coverImg:e.file}})),caseStudies:N.caseStudies.map((function(e){return e.id})),materialsPreview:o.map((function(e){return{file:e,isUploadInProgress:!1,uploadProgress:100,error:null}})),materials:N.materials.map((function(e){return e}))});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[N]);var q=function(e,n){e.materialsPreview,e.caseStudiesPreview,e.userAgreement;var r=e.materials,o=Nn(e,U0e),a=(0,l.Z)((0,l.Z)((0,l.Z)({},o),"create"===t&&{timedProject:f.timedProjectId}),{},{requestPublish:!n,type:Kt.tw.Form,materials:null===r||void 0===r?void 0:r.map((function(e){return e.id}))}),s={onSuccess:function(){n?(k(!1),i("../")):"edit"===t&&(null===L||void 0===L?void 0:L.status)!==Kt.hv.Draft?w(!0):g(!0)},onError:function(e){var t;B(null===(t=e.response)||void 0===t?void 0:t.data.message),n&&k(!1),D(!0)}};"edit"===t?V({id:null===L||void 0===L?void 0:L.id,data:a},s):z(a,s)};return(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(tn,{sx:{width:5===d?"100%":"70%"},children:[(0,u.jsx)(UR,{form:s,steps:c,currentStep:d,onChange:p,onSaveAsDraft:function(){return k(!0)},onSubmit:function(e){return q(e,!1)},layoutOrientation:5===d?"row":"column",helperText:(0,rs.DI)(d,G0e),onCancelClick:function(){return T(!0)},isSubmitLoading:H||U,children:(0,u.jsxs)(u.Fragment,{children:["edit"===t?1===d&&s.getValues("overview.description")&&(0,u.jsx)(N0e,{}):1===d&&(0,u.jsx)(N0e,{}),2===d&&(0,u.jsx)(W0e,{}),3===d&&(0,u.jsx)(z0e,{}),4===d&&(0,u.jsx)(UVe,{resource:"/timed-project-pitches/upload-materials"}),5===d&&(0,u.jsx)(H0e,{})]})}),(0,u.jsx)(V0e,{type:"create",timedProjectName:(null===f||void 0===f?void 0:f.timedProjectName)||(null===L||void 0===L?void 0:L.projectName),isOpen:v,setIsOpen:g}),(0,u.jsx)(V0e,{type:"edit",isOpen:x,setIsOpen:w}),(0,u.jsx)(V0e,{type:"draft",isOpen:S,setIsOpen:k,onConfirm:function(){q(s.getValues(),!0)}}),(0,u.jsx)(V0e,{type:"error",isOpen:E,setIsOpen:D,errorMessage:F}),(0,u.jsx)(V0e,{type:"cancel",isOpen:M,setIsOpen:T})]})})},J0e=["resourceLimit"],X0e=function(){var e=(0,ze.s0)(),t=[{field:"status",headerName:"Status",flex:.1,renderCell:function(e){return(0,u.jsx)(EI,{text:e.value})}},{field:"projectName",headerName:"Project Name",flex:.3,renderCell:function(e){return(0,u.jsx)(rn.Z,{variant:"body2",sx:{color:"primaryDark.600"},children:(0,rs.$G)(e.value,40)})}},{field:"published",headerName:"Published",flex:.15,renderCell:function(e){return(0,u.jsx)(rn.Z,{children:(0,rs.qJ)(e.value)})}},{field:"edit",headerName:"Approved",flex:.05,renderCell:function(e){var t=e.row.status===Kt.hv.Pending||e.row.edit;return(0,u.jsx)(EI,{text:t?Kt.hv.Pending:e.row.status===Kt.hv.Draft?Kt.hv.Draft:"approved",componentReturnType:"dot"})}},{field:"editIcon",headerName:"",flex:.03,sortable:!1,disableColumnMenu:!0,renderCell:function(t){return(0,u.jsx)(io.Z,{onClick:function(n){n.stopPropagation(),e("./".concat(t.row.id,"/edit"))},children:(0,u.jsx)(jQe.Z,{})})}}],n=(Kt.hv.Pending,Kt.hv.Chosen,Kt.hv.Hired,Kt.hv.FirstRound,Kt.hv.FirstRoundRejected,Kt.hv.SecondRound,Kt.hv.SecondRoundRejected,ake({resourceUrl:"timed-project-pitches"})),r=n.resourceLimit,o=Nn(n,J0e);return(0,u.jsx)(nn.Z,{sx:{height:"fit-content",width:"100%"},spacing:2,children:(0,u.jsx)(Rke,(0,l.Z)({disableSelectionOnClick:!0,numberOfRowsPerPage:r,columns:t,onRowClick:function(t){return t.row.edit?e("./".concat(t.row.edit)):e("./".concat(t.row.content))},withElements:{withTitle:"Pitches (tabs & filters will be added)",withCta:(0,u.jsx)(Wo,{onClick:function(){return e("./create")},children:"Create pitch"})}},o))})},Q0e=function(){var e,t,n,r=(0,ze.UO)().pitchId,o=(0,Ms.J)(),i=(0,ze.s0)(),a=Ra({id:r,resource:"timed-project-pitch-contents",enabled:!!r}).data,s=(0,As.Z)({resource:"/timed-project-pitches"}),l=s.mutate,c=s.isLoading,d=function(e){l({id:null===a||void 0===a?void 0:a.timedProjectPitch,suffix:e},{onSuccess:function(){o(),i("../")}})};return(0,u.jsx)(da.Z,{children:(0,u.jsxs)(nn.Z,{p:6,children:[(0,u.jsx)(rn.Z,{variant:"heading3",color:"primaryDark.600",children:null===a||void 0===a?void 0:a.timedProjectContentCurrent.body.overview.name}),(0,u.jsx)(rn.Z,{variant:"body3",pt:4,color:"primaryDark.500",children:(0,rs.qJ)(null===a||void 0===a?void 0:a.published,"---")}),(0,u.jsx)(nn.Z,{direction:"row",py:3,alignItems:"center",justifyContent:"space-between",children:(0,u.jsxs)(nn.Z,{direction:"row",gap:4,alignItems:"center",children:[(0,u.jsx)(Wo,{loading:c,variant:"secondary",onClick:function(){return d("reject")},disabled:(null===a||void 0===a?void 0:a.status)!==Kt.hv.Pending,children:"Reject"}),(0,u.jsx)(Wo,{disabled:(null===a||void 0===a?void 0:a.status)!==Kt.hv.Pending,loading:c,onClick:function(){return d("approve")},children:"Approve"})]})}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{width:"100%",children:[(0,u.jsx)(un,{}),(null===a||void 0===a||null===(e=a.overview)||void 0===e?void 0:e.description)&&(0,u.jsxs)(nn.Z,{py:2,children:[(0,u.jsxs)(nn.Z,{direction:"row",spacing:1,px:3,children:[(0,u.jsx)(bI,{fill:tr.IV[500]}),(0,u.jsx)(Cd,{text:"description"})]}),(0,u.jsx)(m$,{items:A$,content:null===a||void 0===a?void 0:a.overview.description,isEditable:!1},"description")]}),(0,u.jsx)(un,{}),(null===a||void 0===a||null===(t=a.overview)||void 0===t?void 0:t.strategy)&&(0,u.jsxs)(nn.Z,{py:2,children:[(0,u.jsxs)(nn.Z,{direction:"row",spacing:1,px:3,children:[(0,u.jsx)(aqe,{fill:tr.IV[500]}),(0,u.jsx)(Cd,{text:"strategy"})]}),(0,u.jsx)(m$,{items:A$,content:null===a||void 0===a||null===(n=a.overview)||void 0===n?void 0:n.strategy,isEditable:!1},"strategy")]})]})]})})},$0e=["resourceLimit"],e1e=function(){var e=(0,ze.s0)(),t=[{field:"reviewer",headerName:"Reviewer",flex:.3,renderCell:function(e){var t,n,r="".concat(null===(t=e.row.reviewer)||void 0===t?void 0:t.firstName," ").concat(null===(n=e.row.reviewer)||void 0===n?void 0:n.lastName);return(0,u.jsx)(rn.Z,{variant:"body2",sx:{color:"primaryDark.600"},children:r.length?r:"---"})}},{field:"caseStudyContent",headerName:"Case study",flex:.3,renderCell:function(e){return(0,u.jsx)(Cme,{resource:"case-studies-content",id:e.value,displayName:"title",renderComponent:function(e){return(0,u.jsx)(rn.Z,{variant:"body2",sx:{color:"primaryDark.600"},children:(0,rs.$G)(e.title,30)})}})}},{field:"id",headerName:"Overall score",flex:.15,renderCell:function(e){var t=e.row.score,n=t.qualityScore+t.budgetScore+t.scheduleScore+t.recommendationScore;return(0,u.jsx)(AAe,{rating:Math.round(n/4)})}},{field:"adminApproved",headerName:"Approved",flex:.1,renderCell:function(e){return(0,u.jsx)(EI,{text:e.value?"approved":"pending",componentReturnType:"dot"})}}],n=ake({resourceUrl:"case-studies-review"}),r=n.resourceLimit,o=Nn(n,$0e);return(0,u.jsx)(nn.Z,{direction:"column",sx:{height:"fit-content",width:"100%"},spacing:2,pt:4,children:(0,u.jsx)(Rke,(0,l.Z)({disableSelectionOnClick:!0,numberOfRowsPerPage:r,columns:t,onRowClick:function(t){return e("./".concat(t.id))},withElements:{withTitle:"Case study reviews (tabs & filters will be added)"}},o))})},t1e=function(e){var t,n,r,o,i,a,s,l,c,d=(0,ze.UO)().reviewId,p=(0,Ms.J)(),f=(0,ze.s0)(),h=Ra({id:d,resource:"case-studies-review",enabled:!!d}).data,m=(0,As.Z)({resource:"/case-studies-review"}),v=m.mutate,g=m.isLoading;return(0,u.jsxs)(nn.Z,{p:6,children:[(0,u.jsx)(Cme,{resource:"case-studies-content",id:null===h||void 0===h?void 0:h.caseStudyContent,displayName:"title",renderComponent:function(e){return(0,u.jsx)(rn.Z,{variant:"heading3",sx:{color:"primaryDark.600"},children:null===e||void 0===e?void 0:e.title})}}),(0,u.jsx)(nn.Z,{direction:"row",gap:4,pt:4,alignItems:"center",children:(0,u.jsx)(Wo,{disabled:!((null===h||void 0===h||!h.adminApproved)&&null!==h&&void 0!==h&&h.requestPublish),loading:g,onClick:function(){v({id:d,suffix:"approve"},{onSuccess:function(){p(),f("../")}})},children:"Approve"})}),(0,u.jsxs)(nn.Z,{spacing:4,pt:4,children:[(0,u.jsx)(rn.Z,{children:"Client info"}),(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(Cd,{text:"name"}),(0,u.jsxs)(rn.Z,{children:[null===h||void 0===h||null===(t=h.reviewer)||void 0===t?void 0:t.firstName," ",null===h||void 0===h||null===(n=h.reviewer)||void 0===n?void 0:n.lastName]})]}),(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(Cd,{text:"company name"}),(0,u.jsx)(rn.Z,{children:null===h||void 0===h||null===(r=h.reviewer)||void 0===r?void 0:r.companyName})]}),(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(Cd,{text:"company website"}),(0,u.jsx)(rn.Z,{children:null===h||void 0===h||null===(o=h.reviewer)||void 0===o?void 0:o.companyWebsite})]}),(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(Cd,{text:"job title"}),(0,u.jsx)(rn.Z,{children:null===h||void 0===h||null===(i=h.reviewer)||void 0===i?void 0:i.jobTitle})]}),(0,u.jsx)(un,{})]}),(0,u.jsxs)(nn.Z,{spacing:4,pt:4,children:[(0,u.jsx)(MAe,{title:"Quality",description:null===h||void 0===h?void 0:h.score.qualityText,rating:null!==(a=null===h||void 0===h?void 0:h.score.qualityScore)&&void 0!==a?a:0,detailedView:!0}),(0,u.jsx)(MAe,{title:"Budget",description:null===h||void 0===h?void 0:h.score.budgetText,rating:null!==(s=null===h||void 0===h?void 0:h.score.budgetScore)&&void 0!==s?s:0,detailedView:!0}),(0,u.jsx)(MAe,{title:"Schedule",description:null===h||void 0===h?void 0:h.score.scheduleText,rating:null!==(l=null===h||void 0===h?void 0:h.score.scheduleScore)&&void 0!==l?l:0,detailedView:!0}),(0,u.jsx)(MAe,{title:"Recommondation",description:null===h||void 0===h?void 0:h.score.recommendationText,rating:null!==(c=null===h||void 0===h?void 0:h.score.recommendationScore)&&void 0!==c?c:0,detailedView:!0})]})]})},n1e=function(){var e=(0,ze.TH)().search;return o.useMemo((function(){return new URLSearchParams(e)}),[e])},r1e=function(){return(0,u.jsx)(nn.Z,{width:"100%",bgcolor:"secondaryBlue.100",height:"1px"})},o1e=function(){var e,t,n,r,o,i,a,s,l,c,d,p,f,h,m,v,g,y,b,x,w,C,j,S,k,Z,O,E,D,P,A,M,T,I,R=(0,ze.UO)(),F=(0,ze.s0)(),B=n1e(),L=zp({enabled:!!R.caseStudyId,resource:"case-studies/".concat(R.caseStudyId),refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1}).data,N=zp({enabled:!(null===L||void 0===L||!L.data.content),resource:"case-studies-content/".concat(null===L||void 0===L?void 0:L.data.content),refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1}).data,_=null!=(null===L||void 0===L?void 0:L.data.review)&&0==(null===L||void 0===L?void 0:L.data.review.requestPublish);return(0,u.jsx)(nn.Z,{maxWidth:1100,mx:"auto",my:20,children:(0,u.jsxs)(nn.Z,{direction:"row",children:[(0,u.jsxs)(nn.Z,{width:"60%",border:"1px solid ".concat(tr.dx[100]),children:[(0,u.jsxs)(nn.Z,{p:3,children:[(0,u.jsx)(rn.Z,{mb:2,color:"primaryDark.600",variant:"heading1",children:null===N||void 0===N?void 0:N.data.title}),(0,u.jsx)(rn.Z,{mb:5,color:"primaryDark.500",variant:"body3",children:(0,rs.qJ)(null===N||void 0===N?void 0:N.data.published)}),(0,u.jsx)(tn,{component:"img",borderRadius:"12px",src:null===N||void 0===N?void 0:N.data.file})]}),(0,u.jsx)(r1e,{}),(0,u.jsxs)(nn.Z,{p:3,children:[(0,u.jsxs)(nn.Z,{mb:1.25,direction:"row",alignItems:"center",spacing:1,children:[(0,u.jsx)(XMe,{fill:tr.IV[500]}),(0,u.jsx)(Cd,{text:"project goals"})]}),(null===N||void 0===N||null===(e=N.data)||void 0===e||null===(t=e.description)||void 0===t?void 0:t.goals)&&(0,u.jsx)(m$,{items:A$,content:null===N||void 0===N||null===(n=N.data)||void 0===n||null===(r=n.description)||void 0===r?void 0:r.goals,isEditable:!1},"goals")]}),(0,u.jsx)(r1e,{}),(0,u.jsxs)(nn.Z,{p:3,children:[(0,u.jsxs)(nn.Z,{mb:1.25,direction:"row",alignItems:"center",spacing:1,children:[(0,u.jsx)(aqe,{fill:tr.IV[500]}),(0,u.jsx)(Cd,{text:"challenges"})]}),(null===N||void 0===N||null===(o=N.data)||void 0===o||null===(i=o.description)||void 0===i?void 0:i.challenges)&&(0,u.jsx)(m$,{items:A$,content:null===N||void 0===N||null===(a=N.data)||void 0===a||null===(s=a.description)||void 0===s?void 0:s.challenges,isEditable:!1},"challenges")]}),(0,u.jsx)(r1e,{}),(0,u.jsxs)(nn.Z,{p:3,children:[(0,u.jsxs)(nn.Z,{mb:1.25,direction:"row",alignItems:"center",spacing:1,children:[(0,u.jsx)(fqe,{fill:tr.IV[500]}),(0,u.jsx)(Cd,{text:"solution"})]}),(null===N||void 0===N||null===(l=N.data)||void 0===l||null===(c=l.description)||void 0===c?void 0:c.solutions)&&(0,u.jsx)(m$,{items:A$,content:null===N||void 0===N||null===(d=N.data)||void 0===d||null===(p=d.description)||void 0===p?void 0:p.solutions,isEditable:!1},"solution")]}),(0,u.jsx)(r1e,{}),(0,u.jsxs)(nn.Z,{p:3,children:[(0,u.jsxs)(nn.Z,{mb:1.25,direction:"row",alignItems:"center",spacing:1,children:[(0,u.jsx)(LAe,{fill:tr.IV[500]}),(0,u.jsx)(Cd,{text:"results"})]}),(null===N||void 0===N||null===(f=N.data)||void 0===f||null===(h=f.description)||void 0===h?void 0:h.results)&&(0,u.jsx)(m$,{items:A$,content:null===N||void 0===N||null===(m=N.data)||void 0===m||null===(v=m.description)||void 0===v?void 0:v.results,isEditable:!1},"results")]})]}),(0,u.jsxs)(nn.Z,{width:"40%",direction:"column",alignContent:"center",px:6,children:[(0,u.jsx)(Ca,{style:{margin:"0 auto"},alt:"company logo",src:null===N||void 0===N||null===(g=N.data)||void 0===g?void 0:g.seller.avatar,sx:{width:76,height:76}}),(0,u.jsx)(rn.Z,{textAlign:"center",mt:2,mb:8,variant:"body1",children:null===N||void 0===N||null===(y=N.data)||void 0===y?void 0:y.seller.name}),(0,u.jsx)(nn.Z,{py:2.25,children:(0,u.jsx)(eqe,{label:"services",choices:Kt.Sj,values:null===N||void 0===N||null===(b=N.data)||void 0===b||null===(x=b.details)||void 0===x?void 0:x.services})}),(0,u.jsx)(r1e,{}),(0,u.jsx)(nn.Z,{py:2.25,children:(0,u.jsx)(eqe,{label:"tech platforms",choices:T$.VA,values:null===N||void 0===N||null===(w=N.data)||void 0===w||null===(C=w.details)||void 0===C?void 0:C.platforms})}),(0,u.jsx)(r1e,{}),(0,u.jsx)(nn.Z,{py:2.25,children:(0,u.jsx)(eqe,{label:"programming tools",choices:T$.oz,values:null===N||void 0===N||null===(j=N.data)||void 0===j||null===(S=j.details)||void 0===S?void 0:S.tools})}),(0,u.jsx)(r1e,{}),(0,u.jsx)(nn.Z,{py:2.25,children:(0,u.jsx)(eqe,{label:"Programming languages",choices:T$.G3,values:null===N||void 0===N||null===(k=N.data)||void 0===k||null===(Z=k.details)||void 0===Z?void 0:Z.languages})}),(0,u.jsx)(r1e,{}),(0,u.jsx)(nn.Z,{py:2.25,children:(0,u.jsx)(eqe,{label:"buyer industry",choices:Kt.lu,values:null===N||void 0===N||null===(O=N.data)||void 0===O||null===(E=O.details)||void 0===E?void 0:E.industries})}),(0,u.jsx)(r1e,{}),(0,u.jsx)(nn.Z,{py:2.25,children:(0,u.jsx)(eqe,{label:"Target market",choices:Kt.NF,values:null===N||void 0===N||null===(D=N.data)||void 0===D||null===(P=D.details)||void 0===P?void 0:P.geographyFocus})}),(0,u.jsx)(r1e,{}),(0,u.jsxs)(nn.Z,{py:2.25,children:[(0,u.jsx)(Cd,{text:"Project size"}),(0,u.jsx)(rn.Z,{variant:"heading4",children:null!==N&&void 0!==N&&null!==(A=N.data)&&void 0!==A&&null!==(M=A.details)&&void 0!==M&&M.projectSize?Kt.Dw.get(null===N||void 0===N||null===(T=N.data)||void 0===T?void 0:T.details.projectSize):"--"})]}),(0,u.jsx)(r1e,{}),_&&(0,u.jsx)(Wo,{sx:{textTransform:"uppercase",mt:6},endIcon:(0,u.jsx)(EAe,{fill:tr.IV[150]}),variant:"primary",disabled:null===N||void 0===N||null===(I=N.data.review)||void 0===I?void 0:I.requestPublish,onClick:function(){return F("../case-study-review-submit-public/".concat(null===R||void 0===R?void 0:R.caseStudyId,"/").concat(B.get("token"),"/").concat(B.get("content")))},children:"Write review"})]})]})})},i1e=function(e){var t=e.setIsOpen,n=e.isOpen,r=(0,ze.s0)();return(0,u.jsx)(ys,{open:n,onClose:function(){return t(!1)},width:"35%",children:(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",alignItems:"center",children:[(0,u.jsx)(nn.Z,{alignItems:"center",justifyContent:"center",sx:{bgcolor:"#E5E8FF",width:"fit-content",height:"fit-content",borderRadius:"6px",p:2},children:(0,u.jsx)(MGe,{fill:tr.dx[700],style:{width:24,height:24}})}),(0,u.jsx)(rn.Z,{variant:"heading3",color:"primaryDark.600",children:"Review submitted"})]}),(0,u.jsx)(un,{}),(0,u.jsx)(rn.Z,{color:"primaryDark.500",children:"Thank you for submitting your case study review. It will be published on the platform after a review from the Spona editorial team."}),(0,u.jsx)(un,{}),(0,u.jsx)(nn.Z,{sx:{justifyContent:"end"},spacing:2,direction:"row",children:(0,u.jsx)(Wo,{variant:"primary",onClick:function(){r(-1),t(!1)},children:"Close"})})]})})},a1e=function(){var e=(0,o.useState)(!1),t=(0,Le.Z)(e,2),n=t[0],r=t[1],i=fd({defaultValues:{reviewer:{firstName:"",lastName:"",jobTitle:"",companyName:"",isAnonymous:!1},summarization:"",score:{qualityScore:0,qualityText:"",budgetScore:0,budgetText:"",scheduleScore:0,scheduleText:"",recommendationScore:0,recommendationText:""},contactNumber:""},mode:"onChange"}),a=(0,ze.UO)(),s=a.caseStudyId,c=a.token,d=a.contentId,p=(0,ze.s0)(),f=oa({resource:"/case-studies/".concat(s,"/submit-review?token=").concat(c)}),h=f.mutate,m=f.isLoading,v=Ra({resource:"case-studies-content",id:d,enabled:!!d}).data;(0,o.useEffect)((function(){var e,t=null===v||void 0===v||null===(e=v.review)||void 0===e?void 0:e.reviewer;i.reset({reviewer:(0,l.Z)({},t)})}),[v]);return(0,u.jsxs)(nn.Z,{mt:bR+"px",width:"100%",children:[(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},i),{},{children:(0,u.jsx)("form",{onSubmit:i.handleSubmit((function(e){h(e,{onSuccess:function(){p(-1)}})})),children:(0,u.jsxs)(nn.Z,{px:"10%",direction:"row",width:"100%",justifyContent:"center",children:[(0,u.jsx)(s1e,{data:v}),(0,u.jsx)(l1e,{isLoading:m})]})})})),(0,u.jsx)(i1e,{isOpen:n,setIsOpen:r})]})},s1e=function(e){var t=e.data;return(0,u.jsxs)(nn.Z,{spacing:1,width:"60%",sx:{border:"1px solid",borderColor:"primaryDark.200"},children:[(0,u.jsxs)(nn.Z,{p:4,children:[(0,u.jsx)(rn.Z,{variant:"heading1",p:1,color:"primaryDark.600",children:null===t||void 0===t?void 0:t.title}),(0,u.jsx)(rn.Z,{variant:"body3",p:1,py:3,color:"primaryDark.500",children:(0,rs.qJ)(null===t||void 0===t?void 0:t.published)})]}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{p:4,children:[(0,u.jsx)(Zd,{required:!0,multiline:!0,minRows:5,name:"summarization",placeholder:"type",label:"quote"}),(0,u.jsxs)(nn.Z,{py:2,children:[(0,u.jsxs)(nn.Z,{spacing:1,direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(Cd,{text:"quality"}),(0,u.jsx)(aMe,{name:"score.qualityScore",required:!0})]}),(0,u.jsx)(rn.Z,{variant:"body3",pb:2,color:"primaryDark.500",children:"Summarize your working relationship."}),(0,u.jsx)(g$,{required:!0,name:"score.qualityText",items:P$})]}),(0,u.jsxs)(nn.Z,{py:2,children:[(0,u.jsxs)(nn.Z,{spacing:1,direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(Cd,{text:"cost"}),(0,u.jsx)(aMe,{name:"score.budgetScore",required:!0})]}),(0,u.jsx)(rn.Z,{variant:"body3",pb:2,color:"primaryDark.500",children:"Overall value and conformance to cost estimates."}),(0,u.jsx)(g$,{required:!0,name:"score.budgetText",items:P$})]}),(0,u.jsxs)(nn.Z,{py:2,children:[(0,u.jsxs)(nn.Z,{spacing:1,direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(Cd,{text:"schedule"}),(0,u.jsx)(aMe,{name:"score.scheduleScore",required:!0})]}),(0,u.jsx)(rn.Z,{variant:"body3",pb:2,color:"primaryDark.500",children:"Ability to meet deadlines and meet agreed on project."}),(0,u.jsx)(g$,{required:!0,name:"score.scheduleText",items:P$})]}),(0,u.jsxs)(nn.Z,{py:2,children:[(0,u.jsxs)(nn.Z,{spacing:1,direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(Cd,{text:"Willingness to refer"}),(0,u.jsx)(aMe,{name:"score.recommendationScore",required:!0})]}),(0,u.jsx)(rn.Z,{variant:"body3",pb:2,color:"primaryDark.500",children:"Willingness to refer colleague to the company."}),(0,u.jsx)(g$,{required:!0,name:"score.recommendationText",items:P$})]})]})]})},l1e=function(e){var t=e.isLoading,n=Xc().formState;return(0,u.jsxs)(nn.Z,{spacing:4,width:"40%",sx:{border:"1px solid",borderColor:"primaryDark.200"},p:3,pt:20,children:[(0,u.jsx)(Zd,{required:!0,name:"reviewer.firstName",placeholder:"Add first name",label:"First name"}),(0,u.jsx)(Zd,{required:!0,name:"reviewer.lastName",placeholder:"Add Last name",label:"last name"}),(0,u.jsx)(Zd,{required:!0,name:"reviewer.jobTitle",placeholder:"Add job title",label:"Job title"}),(0,u.jsx)(Zd,{required:!0,name:"reviewer.companyName",placeholder:"Add company name",label:"Company name"}),(0,u.jsx)(NZ,{elevation:0,sx:{backgroundColor:"primaryDark.150",p:1},children:(0,u.jsx)(R4,{name:"reviewer.isAnonymous",label:(0,u.jsx)(rn.Z,{ml:1,variant:"body3",color:"primaryDark.600",children:"I prefer to remain anonymous on the public review"})})}),(0,u.jsx)(NZ,{elevation:0,sx:{backgroundColor:"primaryDark.200",p:2},children:(0,u.jsx)(rn.Z,{ml:1,variant:"body3",color:"primaryDark.500",children:"Please make sure that this information is correct, as it will be displayed publicly alongside your review. If you prefer all your details to remain hidden, please check the box above."})}),(0,u.jsx)(Wo,{disabled:!n.isValid,loading:t,type:"submit",endIcon:(0,u.jsx)(EAe,{fill:"white"}),children:"Submit review"})]})},c1e=function(e){var t=e.setIsOpen,n=e.isOpen,r=(0,ze.s0)();return(0,u.jsx)(ys,{open:n,onClose:function(){return t(!1)},width:"35%",children:(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",alignItems:"center",children:[(0,u.jsx)(nn.Z,{alignItems:"center",justifyContent:"center",sx:{bgcolor:"#E5E8FF",width:"fit-content",height:"fit-content",borderRadius:"6px",p:2},children:(0,u.jsx)(MGe,{fill:tr.dx[700],style:{width:24,height:24}})}),(0,u.jsx)(rn.Z,{variant:"heading3",color:"primaryDark.600",children:"Review submitted"})]}),(0,u.jsx)(un,{}),(0,u.jsx)(rn.Z,{color:"primaryDark.500",children:"Thank you for submitting your case study review. After Spona verifies your identity, your review will be published on the platform."}),(0,u.jsx)(un,{}),(0,u.jsx)(nn.Z,{sx:{justifyContent:"end"},spacing:2,direction:"row",children:(0,u.jsx)(Wo,{variant:"primary",onClick:function(){r(-1),t(!1)},children:"Close"})})]})})},u1e=function(e){var t=e.open,n=e.showActionBtn,r=e.caseStudyId,o=(0,ze.s0)();return(0,u.jsx)(ys,{width:{xs:"80%",sm:"70%",lg:"50%"},paperStyleProps:{p:{xs:"2rem",lg:"2rem"}},open:t,children:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(AUe,{url:"https://calendly.com/connectwithspona/30min?month=2024-01"}),n&&(0,u.jsx)(Wo,{sx:{mt:2},onClick:function(){return o("../case-study/".concat(r,"/submit-review"))},children:"Continue"})]})})},d1e=function(e){var t=e.open,n=e.handleConfirm;return(0,u.jsx)(ys,{open:t,width:"40%",children:(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",children:[(0,u.jsx)(nn.Z,{width:40,height:40,mr:2,bgcolor:"secondaryBlue.100",borderRadius:1,justifyContent:"center",alignItems:"center",children:(0,u.jsx)(LAe,{width:"20px",fill:tr.dx[700],height:"20px"})}),(0,u.jsx)(rn.Z,{variant:"heading5",children:"schedule call"})]}),(0,u.jsx)(un,{}),(0,u.jsx)(rn.Z,{pt:1,pb:1,variant:"body3",color:"primaryDark.500",children:"Thank you for submitting your case study review. The last step is to schedule a quick call with a Spona advisor so that we can verify your identity and publish your review on our platform."}),(0,u.jsx)(rn.Z,{pt:1,pb:1,variant:"body3",color:"primaryDark.500",children:"Please click continue to select a time for the call."}),(0,u.jsx)(un,{}),(0,u.jsx)(nn.Z,{direction:"row",sx:{justifyContent:"right"},spacing:2,children:(0,u.jsx)(Wo,{onClick:function(){return n()},children:"Continue"})})]})})},p1e=function(){var e=(0,o.useState)(!1),t=(0,Le.Z)(e,2),n=t[0],r=t[1],i=fd({defaultValues:{reviewer:{firstName:"",lastName:"",jobTitle:"",companyName:"",isAnonymous:!1},summarization:"",score:{qualityScore:void 0,qualityText:"",budgetScore:void 0,budgetText:"",scheduleScore:void 0,scheduleText:"",recommendationScore:void 0,recommendationText:""},contactNumber:""},mode:"onChange"}),a=(0,ze.UO)(),s=a.caseStudyId,c=a.token,d=zp({enabled:!!s,resource:"case-studies/".concat(s)}).data,p=Ra({resource:"case-studies-content",enabled:!(null===d||void 0===d||!d.data.content),id:null===d||void 0===d?void 0:d.data.content}).data;return(0,o.useEffect)((function(){var e,t=null===p||void 0===p||null===(e=p.review)||void 0===e?void 0:e.reviewer;i.reset({reviewer:(0,l.Z)({},t)})}),[p]),(0,u.jsxs)(nn.Z,{mt:bR+"px",width:"100%",children:[(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},i),{},{children:(0,u.jsx)("form",{children:(0,u.jsxs)(nn.Z,{px:"10%",direction:"row",width:"100%",justifyContent:"center",children:[(0,u.jsx)(f1e,{data:p}),(0,u.jsx)(h1e,{caseStudyId:s,token:c,contentId:null===p||void 0===p?void 0:p.id})]})})})),(0,u.jsx)(c1e,{isOpen:n,setIsOpen:r})]})},f1e=function(e){var t=e.data;return(0,u.jsxs)(nn.Z,{spacing:1,width:"60%",sx:{border:"1px solid",borderColor:"primaryDark.200"},children:[(0,u.jsxs)(nn.Z,{p:4,children:[(0,u.jsx)(rn.Z,{variant:"heading1",p:1,color:"primaryDark.600",children:null===t||void 0===t?void 0:t.title}),(0,u.jsx)(rn.Z,{variant:"body3",p:1,py:3,color:"primaryDark.500",children:(0,rs.qJ)(null===t||void 0===t?void 0:t.published)})]}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{p:4,children:[(0,u.jsx)(Zd,{required:!0,multiline:!0,minRows:5,name:"summarization",placeholder:"type",label:"quote"}),[{title:"quality",description:"Summarize your working relationship.",ratingInputName:"score.qualityScore",textInputName:"score.qualityText"},{title:"cost",description:"Overall value and conformance to cost estimates.",ratingInputName:"score.budgetScore",textInputName:"score.budgetText"},{title:"schedule",description:"Ability to meet deadlines and meet agreed on project.",ratingInputName:"score.scheduleScore",textInputName:"score.scheduleText"},{title:"Willingness to refer",description:"Willingness to refer colleague to the company.",ratingInputName:"score.recommendationScore",textInputName:"score.recommendationText"}].map((function(e){return(0,u.jsx)(nn.Z,{py:2,children:(0,u.jsx)(sMe,{description:e.description,title:e.title,ratingInputName:e.ratingInputName,textInputName:e.textInputName,showEditor:!0})})}))]})]})},h1e=function(e){var t=e.caseStudyId,n=e.token,r=e.contentId,i=Xc(),a=i.formState,s=i.getValues,c=(0,o.useState)(!1),d=(0,Le.Z)(c,2),p=d[0],f=d[1],h=(0,o.useState)(!1),m=(0,Le.Z)(h,2),v=m[0],g=m[1],y=(0,o.useState)(!1),b=(0,Le.Z)(y,2),x=b[0],w=b[1],C=oa({resource:"/case-studies/".concat(t,"/submit-review?token=").concat(n)}),j=C.mutate,S=C.isLoading;return RUe({onEventScheduled:function(e){g(!0),function(){var e=s();j((0,l.Z)((0,l.Z)({},e),{},{caseStudyContent:r}))}()}}),(0,u.jsxs)(nn.Z,{spacing:4,width:"40%",sx:{border:"1px solid",borderColor:"primaryDark.200"},p:3,pt:20,children:[(0,u.jsx)(Zd,{required:!0,name:"reviewer.firstName",placeholder:"Add first name",label:"First name"}),(0,u.jsx)(Zd,{required:!0,name:"reviewer.lastName",placeholder:"Add Last name",label:"last name"}),(0,u.jsx)(Zd,{required:!0,name:"reviewer.jobTitle",placeholder:"Add job title",label:"Job title"}),(0,u.jsx)(Zd,{required:!0,name:"reviewer.companyName",placeholder:"Add company name",label:"Company name"}),(0,u.jsx)(NZ,{elevation:0,sx:{backgroundColor:"primaryDark.150",p:1},children:(0,u.jsx)(R4,{name:"reviewer.isAnonymous",label:(0,u.jsx)(rn.Z,{ml:1,variant:"body3",color:"primaryDark.600",children:"I prefer to remain anonymous on the public review"})})}),(0,u.jsx)(NZ,{elevation:0,sx:{backgroundColor:"primaryDark.200",p:2},children:(0,u.jsx)(rn.Z,{ml:1,variant:"body3",color:"primaryDark.500",children:"Please make sure that this information is correct, as it will be displayed publicly alongside your review. If you prefer all your details to remain hidden, please check the box above."})}),(0,u.jsx)(u1e,{open:p,showActionBtn:v,caseStudyId:t}),(0,u.jsx)(d1e,{open:x,handleConfirm:function(){f(!0),w(!1)}}),(0,u.jsx)(Wo,{disabled:!a.isValid,loading:S,onClick:function(){return w(!0)},endIcon:(0,u.jsx)(EAe,{fill:"white"}),children:"Submit review"})]})},m1e={title:"Spona - The Ultimate Project Management Tool is here",description:"End-to-End Project Management is our all-in-one project management tool. Sign contracts, Track project milestones get reports and pay, all in one place."},v1e=function(){var e=(0,ze.s0)();return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Kwe,(0,l.Z)({},m1e)),(0,u.jsxs)(nn.Z,{overflow:"hidden",width:"100%",children:[(0,u.jsx)(Fqe,{bgcolor:tr.dx[501],title:"The Ultimate Project Management Tool Is Here",subtitle:"End-to-End Project Management is our all-in-one project management tool. It is designed to support successful project completion and smooth development with comprehensive features that make all phases of the process streamlined and convenient."}),(0,u.jsx)(nn.Z,{spacing:10,sx:{mt:12,mb:18.75},children:vGe.map((function(e){var t=e.title,n=e.content,r=e.image,o=e.contentOrder,i=e.contentButton;return(0,u.jsx)(Tqe,{title:t,content:n,image:r,contentOrder:o,contentButton:i})}))}),(0,u.jsx)(Bqe,{textAndIcons:mGe(tr.dx[501]),bgcolor:tr.dx[101]}),(0,u.jsx)(tn,{sx:{mt:"9rem"},children:(0,u.jsx)(Ywe,{title:"See our pricing plans",subtitle:"Choose the plan that fits your needs best and get started with Spona today.",bgcolor:"secondaryBlue.101",onButtonClick:function(){return e("/how-to-manage-buyer/pricing")},color:"primaryDark.900",dividerColor:"primaryDark.900"})})]})]})},g1e=function(){return(0,u.jsx)(ze.j3,{})},y1e=n(54467),b1e=[{title:"Create in Real Time",content:"Predefined fields let you quickly build your contract from the ground up - you only need to follow the terms and add details to finalize the process. Cooperate in real time and get inspired with industry standards for similar projects.",image:(0,rs.mB)(Wxe.W.CreateInRealTimeSeller),contentOrder:"textThenImage",alt:"Illustration of a contract review on spona"},{title:"Eliminate Legal Fees",content:"There is no need to get a lawyer to mediate the negotiations process - our contracts are fully legally binding. All you need is to agree to the terms and conditions stated in the contract and sign it.",image:(0,rs.mB)(Wxe.W.EliminateLegalFeesSeller),contentOrder:"imageThenText",alt:"Illustration showing contract terms agreement on Spona platform."},{title:"Sign Digitally",content:"No more printing and scanning your documents. Once you\u2019re satisfied with your contract terms, your contract will be available for signing through DocuSign.",image:(0,rs.mB)(Wxe.W.SignDigitallySeller),contentOrder:"textThenImage",alt:"Illustration showing digital signage on Spona"},{title:"Transparent Editing",content:"Even after the contract has been signed, project milestones are fully editable through annexes. Whenever a change is made, the buyer will be notified to review and submit it. After signing your annex, all changes will be applied to your project dashboard.",image:(0,rs.mB)(Wxe.W.TransparentEditingSeller),contentOrder:"imageThenText",alt:"Illustration of editing contracts on Spona platform"},{title:"Access at any Time ",content:"All of your contracts and contract annexes are stored and available for review and download from your account dashboard. Both parties get equal access to signed contracts, promoting transparent communication.",image:(0,rs.mB)(Wxe.W.AccessAtAnyTimeSeller),contentOrder:"textThenImage",alt:"Illustration of reviewing and downloading contracts on Spona platform"}],x1e=[{title:"Transparent Payments",content:"Predefined fields let you quickly build your contract from the ground up - you only need to follow the terms and add details to finalize the process. Cooperate in real time and get inspired with industry standards for similar projects.",image:(0,rs.mB)(Wxe.W.TransparentPaymentsSeller),contentOrder:"textThenImage",alt:"Illustration of the budget allocation  on Spona"},{title:"Stay in Sync",content:"The buyer will be alerted when it\u2019s time for them to make their payment, ensuring that they don\u2019t lose track of their invoices. You will also receive notifications for every step of the process so you have the peace of mind of being completely up to date with your invoicing",image:(0,rs.mB)(Wxe.W.StayInSyncSeller),contentOrder:"imageThenText",alt:"Notification on Spona"},{title:"Secure Processing",content:"With Spona, you can be sure that your money is in safe hands. We are a guarantee for both parties and protect payment execution to make sure you get your payments on time.",image:(0,rs.mB)(Wxe.W.SecureProcessingSeller),contentOrder:"textThenImage",alt:"Secured payments illustration"},{title:"Transparent Transactions",content:"Both you and the buyer have an overview of all transactions with invoices available for reference and download on your account dashboards.",image:(0,rs.mB)(Wxe.W.TransparentTransactionsSeller),contentOrder:"imageThenText",alt:"Illustration of transactions overview on Spona"},{title:"Get Insights",content:"Check your current and forecasted earnings across your current project (or multiple, if you\u2019re handling more than one at the same time) to review your revenue immediately.",image:(0,rs.mB)(Wxe.W.GetInsightsSeller),contentOrder:"textThenImage",alt:"Illustration of a graph on Spona"}],w1e=[{title:"Standardize Your Processes",content:"One platform for you, your buyers and all your task management. No need for multitasking or learning new tools: Spona is a powerful tool for both beginner and experienced managers.",image:(0,rs.mB)(Wxe.W.StandardizeYourProcessesSeller),contentOrder:"textThenImage",alt:"illustration_Standardize Your Processes"},{title:"Share Your Progress",content:"Segmenting your milestones into smaller tasks and updating status progress automatically reflects on your milestones, letting you easily determine your short-term and long-term goal progress. Your activity is visible to the buyer, effortlessly keeping everyone on the same page.",image:(0,rs.mB)(Wxe.W.ShareYourProgressSeller),contentOrder:"imageThenText",alt:"illustration_Share Your Progress"},{title:"Resolve Issues",content:"In case of a problem, notify the buyer immediately by flagging the associated issues. Handle roadblocks before they escalate and keep track of the impact they have on your work.",image:(0,rs.mB)(Wxe.W.ResolveIssuesSeller),contentOrder:"textThenImage",alt:"illustration_Resolve Issues"},{title:"Complete Milestones",content:"Progressing your project is a seamless and intuitive process designed to facilitate information sharing in the most convenient way possible. Simply mark a milestone as ready for buyer review to start the payment process.",image:(0,rs.mB)(Wxe.W.CompleteMilestonesSeller),contentOrder:"imageThenText",alt:"illustration_Complete Milestones"},{title:"Track Project Health",content:"You don\u2019t have to organize data yourself to get an overview into your progress. Our platform consolidates all major and minor updates to your tasks and milestones into your overall project health, visible to the buyer for quick reference.",image:(0,rs.mB)(Wxe.W.TrackProjectHealthSeller),contentOrder:"textThenImage",alt:"illustration_Track Project Health"}],C1e=[{title:"One Platform",content:"Get a direct line to buyers with Spona\u2019s messaging tool. If you\u2019re handling multiple projects at once, get the benefit of gathering all of your contacts in one place.",image:(0,rs.mB)(Wxe.W.OnePlatformSeller),contentOrder:"textThenImage",alt:"Illustration of integrated messaging on Spona"},{title:"Quick Updates",content:"Reduce back-and-forth with our automated systems for project progress, task management and payments execution.",image:(0,rs.mB)(Wxe.W.QuickUpdatesSeller),contentOrder:"imageThenText",alt:"Illustration of automated system for project progress on Spona"},{title:"Accessible Support",content:"Reduce your waiting times and get quick solutions by messaging our support team at Spona.",image:(0,rs.mB)(Wxe.W.AccessibleSupportSeller),contentOrder:"textThenImage",alt:"Support chat illustration od Spona"},{title:"Record Your Activities",content:"It\u2019s easy for data to get lost when you\u2019re using multiple sources of communication. Spona provides the answer to this problem - a digital record of all your messages, always accessible through your platform.",image:(0,rs.mB)(Wxe.W.RecordYourActivitiesSeller),contentOrder:"imageThenText",alt:"Illustration of the digital record of Spona user\u2019s data"}],j1e=[{title:"Make Data-Driven Decisions",content:"Eliminate guesswork with detailed, user-friendly reports that let you know exactly how your project is progressing. Pinpoint your strong and weak points and fuel your improvement with Spona.",image:(0,rs.mB)(Wxe.W.MakeDataDrivenDecisionsSeller),contentOrder:"textThenImage",alt:"illustration_Make Data-Driven Decisions"},{title:"Easy Resource Planning",content:"Improve your scheduling and team management by keeping track of your key metrics. Increase your efficiency and optimize your resource utilization across the board.",image:(0,rs.mB)(Wxe.W.EasyResourcePlanningSeller),contentOrder:"imageThenText",alt:"illustration_Easy Resource Planning"},{title:"Clear Communication",content:"Stay aligned with your stakeholders, your internal team and the buyer while cutting down on meetings, phone calls and emails.",image:(0,rs.mB)(Wxe.W.ClearCommunicationSeller),contentOrder:"textThenImage",alt:"illustration_Easy communication"},{title:"Consolidate Your Projects",content:"Get all your project data in one place. Get a detailed overview of all activities on one project, or compare different projects (across one or multiple buyers) to gain powerful insights.",image:(0,rs.mB)(Wxe.W.ConsolidateYourProjectsSeller),contentOrder:"imageThenText",alt:"illustration_Consolidate Your Projects"},{title:"Reduce Data Micromanagement",content:"Instead of managing multiple data sources, view all your key insights on one platform. Export your reports to easily share them with your team and external partners. ",image:(0,rs.mB)(Wxe.W.ReduceDataMicromanagementSeller),contentOrder:"textThenImage",alt:"Illustration of  reviewing key insights on Spona"}],S1e={description:"Find out how you can use Spona's End to End Managment tool to structure your contracts and manage projects all in one place."},k1e=function(){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Kwe,(0,l.Z)({},S1e)),(0,u.jsxs)(nn.Z,{overflow:"hidden",width:"100%",children:[(0,u.jsx)(fUe,{title:"Digital Contracts",content:"Structuring your contract milestone by milestone has never been easier with Spona\u2019s digital contracts. Simplify the planning process and specify your terms in collaboration with the buyer to get started with project execution as quickly as possible.",image:(0,rs.mB)(Wxe.W.DigitalContract),sx:{height:{xs:"calc(70vh + ".concat(rc,"px)"),lg:"87vh"}},alt:"Close up of a person typing on a computer with a pop up illustration of digital documents"}),(0,u.jsx)(nn.Z,{spacing:10,sx:{mt:{xs:"-76px",lg:12}},children:b1e.map((function(e){var t=e.title,n=e.content,r=e.image,o=e.contentOrder,i=e.alt;return(0,u.jsx)(Tqe,{alt:i,title:t,content:n,image:r,contentOrder:o,contentStyles:{justifyContent:"center"},contentSpacing:{xs:2,lg:3}},n)}))}),(0,u.jsx)(Rqe,{firstCard:{title:"Traditional Contracts",sx:{alignItems:"start"},bgcolor:"white",color:"black",content:(0,u.jsxs)(nn.Z,{spacing:1.5,children:[(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(FP.Z,{}),(0,u.jsx)(rn.Z,{children:"Time-consuming"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(FP.Z,{}),(0,u.jsx)(rn.Z,{children:"Incur legal fees"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(FP.Z,{}),(0,u.jsx)(rn.Z,{children:"Potential for information loss"})]})]})},secondCard:{title:"With Spona",sx:{alignItems:"start"},bgcolor:tr.NP[101],color:"black",content:(0,u.jsxs)(nn.Z,{spacing:1.5,children:[(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(y1e.Z,{sx:{color:"secondaryOrange.501"}}),(0,u.jsx)(rn.Z,{children:"Quick and easy with templates"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(y1e.Z,{sx:{color:"secondaryOrange.501"}}),(0,u.jsx)(rn.Z,{children:"Update terms in real-time"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(y1e.Z,{sx:{color:"secondaryOrange.501"}}),(0,u.jsx)(rn.Z,{children:"Eliminate legal fees"})]})]})}}),(0,u.jsx)(Ywe,{title:"Get started with End to End",bgcolor:"secondaryYellow.100",color:"black"})]})]})},Z1e={description:"See how you can get paid on time every time when you manage projects with Spona's End to End Management tool."},O1e=function(){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Kwe,(0,l.Z)({},Z1e)),(0,u.jsxs)(nn.Z,{overflow:"hidden",width:"100%",children:[(0,u.jsx)(fUe,{title:"Payment Processing",content:"From viewing budget allocation across milestones, keeping track of your earnings to handling and storing invoices, End-to-End Project Management payments is a dynamic solution to your payments and billing. Get Spona\u2019s help with ensuring transparent payments and maintaining a steady cash.",image:(0,rs.mB)(Wxe.W.PaymentSuccessful),sx:{height:{xs:"calc(77vh + ".concat(rc,"px)"),lg:"87vh"}},alt:"Transparent notification for successful payment"}),(0,u.jsx)(nn.Z,{spacing:10,sx:{mt:{xs:"-70px",lg:12}},children:x1e.map((function(e){var t=e.title,n=e.content,r=e.image,o=e.contentOrder,i=e.alt;return(0,u.jsx)(Tqe,{alt:i,title:t,content:n,image:r,contentOrder:o,contentStyles:{justifyContent:"center"},contentSpacing:{xs:2,lg:3}},n)}))}),(0,u.jsx)(Rqe,{firstCard:{title:"Traditional Contracts",sx:{alignItems:"start"},bgcolor:"white",color:"black",content:(0,u.jsxs)(nn.Z,{spacing:1.5,children:[(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(FP.Z,{}),(0,u.jsx)(rn.Z,{children:"Lack detail in regards to completed tasks"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(FP.Z,{}),(0,u.jsx)(rn.Z,{children:"Invoices easy to misplace, forget, etc."})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(FP.Z,{}),(0,u.jsx)(rn.Z,{children:"Analysis necessary to get revenue insights"})]})]})},secondCard:{title:"With Spona",sx:{alignItems:"start"},bgcolor:tr.NP[101],color:"black",content:(0,u.jsxs)(nn.Z,{spacing:1.5,children:[(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(y1e.Z,{sx:{color:"secondaryOrange.501"}}),(0,u.jsx)(rn.Z,{children:"Avoid misunderstandings with formal payment terms"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(y1e.Z,{sx:{color:"secondaryOrange.501"}}),(0,u.jsx)(rn.Z,{children:"Third-party guarantee for successful execution"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(y1e.Z,{sx:{color:"secondaryOrange.501"}}),(0,u.jsx)(rn.Z,{children:"Overview of all transactions on one platform"})]})]})}}),(0,u.jsx)(Ywe,{title:"Get started with End to End",bgcolor:"secondaryYellow.100",color:"black"})]})]})},E1e={description:"Find out how to make sure buyers of your service see your progress on all projects with quick and easy milestone reporting."},D1e=function(){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Kwe,(0,l.Z)({},E1e)),(0,u.jsxs)(nn.Z,{overflow:"hidden",width:"100%",children:[(0,u.jsx)(fUe,{title:"Milestones and Tasks",content:"Keeping up to date with milestones and tasks is the core of successfully managing a project. Spona\u2019s standardized and streamlined approach gives you a headache-free way to keep buyers aware of your progress and your team on track at all times.",image:(0,rs.mB)(Wxe.W.MilestonesAndTasksHero),sx:{height:{xs:"calc(73vh + ".concat(rc,"px)"),lg:"87vh"}},alt:"A person checking off a task from to-do list"}),(0,u.jsx)(nn.Z,{spacing:10,sx:{mt:{xs:"-90px",lg:12}},children:w1e.map((function(e){var t=e.title,n=e.content,r=e.image,o=e.contentOrder,i=e.alt;return(0,u.jsx)(Tqe,{alt:i,title:t,content:n,image:r,contentOrder:o,contentStyles:{justifyContent:"center"},contentSpacing:{xs:2,lg:3}},n)}))}),(0,u.jsx)(Rqe,{firstCard:{title:"Traditional Task Management",sx:{alignItems:"start"},bgcolor:"white",color:"black",content:(0,u.jsxs)(nn.Z,{spacing:1.5,children:[(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(FP.Z,{}),(0,u.jsx)(rn.Z,{children:"Spread across multiple platforms"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(FP.Z,{}),(0,u.jsx)(rn.Z,{children:"Not standardized between teams"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(FP.Z,{}),(0,u.jsx)(rn.Z,{children:"Additional tools used to get metrics"})]})]})},secondCard:{title:"With Spona",sx:{alignItems:"start"},bgcolor:tr.NP[101],color:"black",content:(0,u.jsxs)(nn.Z,{spacing:1.5,children:[(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(y1e.Z,{sx:{color:"secondaryOrange.501"}}),(0,u.jsx)(rn.Z,{children:"Centralizes all projects on one platform"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(y1e.Z,{sx:{color:"secondaryOrange.501"}}),(0,u.jsx)(rn.Z,{children:"Makes your management uniform"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(y1e.Z,{sx:{color:"secondaryOrange.501"}}),(0,u.jsx)(rn.Z,{children:"Provides you with all the data you need"})]})]})}}),(0,u.jsx)(Ywe,{title:"Get started with End to End",bgcolor:"secondaryYellow.100",color:"black"})]})]})},P1e={description:"Discover the easy way to stay perfectly in sync with your clients throughout the life of all projects."},A1e=function(){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Kwe,(0,l.Z)({},P1e)),(0,u.jsxs)(nn.Z,{overflow:"hidden",width:"100%",children:[(0,u.jsx)(fUe,{title:"Communication",content:"Staying in touch with buyers is key to avoiding a variety of miscommunication-based issues. Spona\u2019s End-to-End Project Management facilitates transparency with a chatting tool that lets you connect with your contacts, share files, start video calls, and more.",image:(0,rs.mB)(Wxe.W.Communication),sx:{height:{xs:"calc(64vh + ".concat(rc,"px)"),lg:"87vh"}},titleSx:{fontSize:{xs:"2.4rem",lg:"5.8rem"},alignSelf:{xs:"start"}},alt:"Close-up of hands typing on a computer with message notifications popping up"}),(0,u.jsx)(nn.Z,{spacing:10,sx:{mt:{xs:"-70px",lg:12}},children:C1e.map((function(e){var t=e.title,n=e.content,r=e.image,o=e.contentOrder,i=e.alt;return(0,u.jsx)(Tqe,{alt:i,title:t,content:n,image:r,contentOrder:o,contentStyles:{justifyContent:"center"},contentSpacing:{xs:2,lg:3}},n)}))}),(0,u.jsx)(Rqe,{firstCard:{title:"Traditional Communication",sx:{alignItems:"start"},bgcolor:"white",color:"black",content:(0,u.jsxs)(nn.Z,{spacing:1.5,children:[(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(FP.Z,{}),(0,u.jsx)(rn.Z,{children:"Inconvenient to get in contact with multiple buyers"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(FP.Z,{}),(0,u.jsx)(rn.Z,{children:"Requires effort to safeguard relevant data"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(FP.Z,{}),(0,u.jsx)(rn.Z,{children:"Frequent check-ins needed for updates"})]})]})},secondCard:{title:"With Spona",sx:{alignItems:"start"},bgcolor:tr.NP[101],color:"black",content:(0,u.jsxs)(nn.Z,{spacing:1.5,children:[(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(y1e.Z,{sx:{color:"secondaryOrange.501"}}),(0,u.jsx)(rn.Z,{children:"All data recorded"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(y1e.Z,{sx:{color:"secondaryOrange.501"}}),(0,u.jsx)(rn.Z,{children:"All your contacts on one platform"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(y1e.Z,{sx:{color:"secondaryOrange.501"}}),(0,u.jsx)(rn.Z,{children:"Automatic notifications for daily project activities"})]})]})}}),(0,u.jsx)(Ywe,{title:"Get started with End to End",bgcolor:"secondaryYellow.100",color:"black"})]})]})},M1e={description:"See how you can pull reports on your successes with quick KPIs that are easy to produce and even easier to read."},T1e=function(){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Kwe,(0,l.Z)({},M1e)),(0,u.jsxs)(nn.Z,{overflow:"hidden",width:"100%",children:[(0,u.jsx)(fUe,{title:"Monitor Your KPIs",content:"Get essential project data that will help you organize your work, provide better time estimates, quickly pinpoint your areas of improvement and engender future insights to improve all facets of your business in the future. Spona\u2019s seamlessly integrated project reporting supports your management activities and provides you with results that you need, when you need them.",image:(0,rs.mB)(Wxe.W.MonitorYourKPIs),sx:{height:{xs:"calc(79vh + ".concat(rc,"px)"),lg:"87vh"}},alt:"Close up of a hand pointing at statistic data on a personal computer"}),(0,u.jsx)(nn.Z,{spacing:10,sx:{mt:{xs:"-60px",lg:12}},children:j1e.map((function(e){var t=e.title,n=e.content,r=e.image,o=e.contentOrder,i=e.alt;return(0,u.jsx)(Tqe,{alt:i,title:t,content:n,image:r,contentOrder:o,contentStyles:{justifyContent:"center"},contentSpacing:{xs:2,lg:3}},n)}))}),(0,u.jsx)(Rqe,{firstCard:{title:"Traditional Reports",sx:{alignItems:"start"},bgcolor:"white",color:"black",content:(0,u.jsxs)(nn.Z,{spacing:1.5,children:[(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(FP.Z,{}),(0,u.jsx)(rn.Z,{children:"Require additional tools or services"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(FP.Z,{}),(0,u.jsx)(rn.Z,{children:"Promote data micromanagement"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(FP.Z,{}),(0,u.jsx)(rn.Z,{children:"Complicate instead of streamlining"})]})]})},secondCard:{title:"With Spona",sx:{alignItems:"start"},bgcolor:tr.NP[101],color:"black",content:(0,u.jsxs)(nn.Z,{spacing:1.5,children:[(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(y1e.Z,{sx:{color:"secondaryOrange.501"}}),(0,u.jsx)(rn.Z,{children:"Get all your data in one place"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(y1e.Z,{sx:{color:"secondaryOrange.501"}}),(0,u.jsx)(rn.Z,{children:"Improve communication across the board"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(y1e.Z,{sx:{color:"secondaryOrange.501"}}),(0,u.jsx)(rn.Z,{children:"Facilitate learning and make smart decisions"})]})]})}}),(0,u.jsx)(Ywe,{title:"Get started with End to End",bgcolor:"secondaryYellow.100",color:"black"})]})]})},I1e=[{title:"Create in Real Time",content:"Build your contract from the ground up with contract templates suited to your industry and project type. Efficiently translate your ideas into well-defined terms and get inspired with industry standards for related projects.",image:(0,rs.mB)(Wxe.W.CreateInRealTimeBuyer),contentOrder:"textThenImage",alt:"Illustration of a contract review on spona"},{title:"Eliminate Legal Fees",content:"There is no need to get a lawyer to mediate the negotiations process - our contracts are fully legally binding. All you need is to agree to the terms of contract and submit it.",image:(0,rs.mB)(Wxe.W.EliminateLegalFeesBuyer),contentOrder:"imageThenText",alt:"Illustration showing contract terms agreement on Spona platform."},{title:"Sign Digitally",content:"No more printing and scanning your documents. Once you\u2019re satisfied with your contract terms, your contract will be available for signing through DocuSign.",image:(0,rs.mB)(Wxe.W.SignDigitallyBuyer),contentOrder:"textThenImage",alt:"Illustration showing digital signage on Spona"},{title:"Transparent Editing",content:"Even after they\u2019ve been signed, project milestones are fully editable through annexes. Whenever a change is made, your seller will be notified to review and submit it.",image:(0,rs.mB)(Wxe.W.TransparentEditingBuyer),contentOrder:"imageThenText",alt:"Illustration of editing contracts on Spona platform"},{title:"Access at any Time ",content:"All of your contracts and contract annexes are stored and available for review and download from your account dashboard. Both parties get equal access to signed contracts, promoting transparent communication.",image:(0,rs.mB)(Wxe.W.AccessAtAnyTimeBuyer),contentOrder:"textThenImage",alt:"Illustration of reviewing and downloading contracts on Spona platform"}],R1e=[{title:"Smart Budget Allocation",content:"Determine the amount of work that should be done for each project phase and easily redistribute your budget to account for any changes that might occur. ",image:(0,rs.mB)(Wxe.W.SmartBudgetAllocationBuyer),contentOrder:"textThenImage",alt:"Illustration of the budget allocation  on Spona"},{title:"Automatic Notifications",content:"You will be alerted when it\u2019s time to make your payment, as well as when the process has been completed successfully, so you don\u2019t have to worry about missed payments.",image:(0,rs.mB)(Wxe.W.AutomaticNotificationsBuyer),contentOrder:"imageThenText",alt:"Notification on Spona"},{title:"Secure Processing",content:"With Spona, you can be sure that your money is in safe hands. We are a guarantee for both parties and protect payment execution to ensure buyer-seller satisfaction.",image:(0,rs.mB)(Wxe.W.SecureProcessingBuyer),contentOrder:"textThenImage",alt:"Secured payments illustration"},{title:"Transparent Transactions",content:"Both you and your seller have an overview of all transactions with invoices available for reference and download on your account dashboards.",image:(0,rs.mB)(Wxe.W.TransparentTransactionsBuyer),contentOrder:"imageThenText",alt:"Illustration of transactions overview on Spona"},{title:"Get Insights",content:"Check your current and forecasted costs across your current project (or multiple, if you\u2019re handling more than one at the same time) to review your revenue immediately.",image:(0,rs.mB)(Wxe.W.GetInsightsBuyer),contentOrder:"textThenImage",alt:"Illustration of a graph on Spona"}],F1e=[{title:"Standardize Your Processes",content:"Across multiple projects, your task management methods will remain uniform, facilitating comparison and general management. You don\u2019t have to get used to multiple platforms - everything is available on Spona.",image:(0,rs.mB)(Wxe.W.StandardizeYourProcessesBuyer),contentOrder:"textThenImage",alt:"Illustration of managing tasks on spona"},{title:"Get Full Control",content:"Segment larger project phases into tasks and subtasks to get daily status updates, and keep overall track of your project with milestones.",image:(0,rs.mB)(Wxe.W.GetFullControlBuyer),contentOrder:"imageThenText",alt:"Illustration of tasks and sub-tasks on spona"},{title:"Resolve Issues",content:"In case of a problem, notify your digital service seller immediately by flagging the associated issues. Handle roadblocks before they escalate and keep track of the impact they have on your project.",image:(0,rs.mB)(Wxe.W.ResolveIssuesBuyer),contentOrder:"textThenImage",alt:"Illustration of flagging the issue on Spona"},{title:"Progress Your Project",content:"Once your seller has finished work on a particular milestone, they will mark it as completed and notify you to review the work that has been done. This process is quick and intuitive and will allow you to progress seamlessly from one project phase to another.",image:(0,rs.mB)(Wxe.W.ProgressYourProjectBuyer),contentOrder:"imageThenText",alt:"Illustration of the project progress on Spona"},{title:"Track Project Health",content:"All major and minor updates to your tasks and milestones will be recorded in your project health - whether milestones were completed behind, ahead or right on time, how many issues were flagged and resolved, whether the cost on a milestone has increased, and more.",image:(0,rs.mB)(Wxe.W.TrackProjectHealthBuyer),contentOrder:"textThenImage",alt:"Illustration of project milestones on Spona"}],B1e=[{title:"One Platform",content:"Your seller is just a click away with our integrated messaging tool. If you\u2019re handling multiple projects at once, get the benefit of gathering all of your contacts in one place.",image:(0,rs.mB)(Wxe.W.OnePlatformBuyer),contentOrder:"textThenImage",alt:"Illustration of integrated messaging on Spona"},{title:"Easy Updates",content:"Our automated systems for project progress, task tracking and payments execution complement traditional communications.",image:(0,rs.mB)(Wxe.W.QuickUpdatesBuyer),contentOrder:"imageThenText",alt:"Illustration of automated system for project progress on Spona"},{title:"Accessible Support",content:"Reduce your waiting times and get solutions right away by messaging our support team at Spona.",image:(0,rs.mB)(Wxe.W.AccessibleSupportBuyer),contentOrder:"textThenImage",alt:"Support chat illustration od Spona"},{title:"Record Your Activities",content:"It\u2019s easy for data to get lost when you\u2019re using multiple sources of communication. Spona provides you with a quick solution - a digital record of all your messages, always accessible through your platform.",image:(0,rs.mB)(Wxe.W.RecordYourActivitiesBuyer),contentOrder:"imageThenText",alt:"Illustration of the digital record of Spona user\u2019s data"}],L1e=[{title:"Make Data-Driven Decisions",content:"Get detailed, user-friendly reports that let you see exactly how you\u2019re spending your money so that you can make smart business moves.",image:(0,rs.mB)(Wxe.W.MakeDataDrivenDecisionsBuyer),contentOrder:"textThenImage",alt:"Illustration of a report on Spona"},{title:"Track Your Key Metrics",content:"From schedule, scope to expense tracking, Spona project reports give you an overview into all of your project essentials.",image:(0,rs.mB)(Wxe.W.TrackYourMetricsBuyer),contentOrder:"imageThenText",alt:"Calendar illustration on Spona"},{title:"Clear Communication",content:"Stay aligned with your stakeholders, your internal team and your seller while cutting down on meetings, phone calls and emails.",image:(0,rs.mB)(Wxe.W.ClearCommunicationBuyer),contentOrder:"textThenImage",alt:"Illustration of the connection between the internam team and other stakeholders"},{title:"Consolidate Your Projects",content:"Get all your project data in one place. Get a detailed overview of all activities on one project, or compare different projects (across one or multiple agencies) to gain powerful insights.",image:(0,rs.mB)(Wxe.W.ConsolidateYourProjectsBuyer),contentOrder:"imageThenText",alt:"Illustration of the data overview on Spona"},{title:"Reduce Data Micromanagement",content:"Instead of managing multiple data sources, view all your key insights on one platform. Export your reports to easily share them with your team and external partners. ",image:(0,rs.mB)(Wxe.W.ReduceDataMicromanagementBuyer),contentOrder:"textThenImage",alt:"Illustration of  reviewing key insights on Spona"}],N1e={description:"Outsourcing a project shouldn't cost you money in legal fees. Get fully-customizable standard contract templates."},_1e=function(){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Kwe,(0,l.Z)({},N1e)),(0,u.jsxs)(nn.Z,{overflow:"hidden",width:"100%",children:[(0,u.jsx)(fUe,{title:"Digital Contracts",content:"Structuring your contract milestone by milestone has never been easier with Spona\u2019s digital contracts. Simplify the planning process and specify your terms in collaboration with your seller to get started with project execution as quickly as possible.",image:(0,rs.mB)(Wxe.W.DigitalContract),sx:{height:{xs:"calc(70vh + ".concat(rc,"px)"),lg:"87vh"}},alt:"Close up of a person typing on a computer with a pop up illustration of digital documents"}),(0,u.jsx)(nn.Z,{spacing:10,sx:{mt:{xs:"-76px",lg:12}},children:I1e.map((function(e){var t=e.title,n=e.content,r=e.image,o=e.contentOrder,i=e.alt;return(0,u.jsx)(Tqe,{title:t,content:n,image:r,contentOrder:o,contentStyles:{justifyContent:"center"},contentSpacing:{xs:2,lg:3},alt:i},n)}))}),(0,u.jsx)(Rqe,{firstCard:{title:"Traditional Contracts",sx:{alignItems:"start"},bgcolor:"white",color:"black",content:(0,u.jsxs)(nn.Z,{spacing:1.5,children:[(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(FP.Z,{}),(0,u.jsx)(rn.Z,{children:"Time-consuming"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(FP.Z,{}),(0,u.jsx)(rn.Z,{children:"Incur legal fees"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(FP.Z,{}),(0,u.jsx)(rn.Z,{children:"Potential for information loss"})]})]})},secondCard:{title:"With Spona",sx:{alignItems:"start"},bgcolor:tr.dx[101],color:"black",content:(0,u.jsxs)(nn.Z,{spacing:1.5,children:[(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(y1e.Z,{sx:{color:"secondaryBlue.501"}}),(0,u.jsx)(rn.Z,{children:"Quick and easy with templates"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(y1e.Z,{sx:{color:"secondaryBlue.501"}}),(0,u.jsx)(rn.Z,{children:"Update terms in real-time"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(y1e.Z,{sx:{color:"secondaryBlue.501"}}),(0,u.jsx)(rn.Z,{children:"Eliminate legal fees"})]})]})}}),(0,u.jsx)(Ywe,{title:"Get started with End to End",bgcolor:"secondaryYellow.100",color:"black"})]})]})},z1e={description:"Secure, automated payments for your service providers doesn't require a team of accountants. See what Spona's back office tools can do for you."},H1e=function(){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Kwe,(0,l.Z)({},z1e)),(0,u.jsxs)(nn.Z,{overflow:"hidden",width:"100%",children:[(0,u.jsx)(fUe,{title:"Payment Processing",content:"From segmenting your budget across milestones, keeping track of your costs to handling and storing invoices, Spona payments is a dynamic solution to your payments and billing. Have full flexibility and control over your budget and make smart financial decisions for your project and your business.",image:(0,rs.mB)(Wxe.W.PaymentSuccessful),sx:{height:{xs:"calc(77vh + ".concat(rc,"px)"),lg:"87vh"}},alt:"Transparent notification for successful payment"}),(0,u.jsx)(nn.Z,{spacing:10,sx:{mt:{xs:"-70px",lg:12}},children:R1e.map((function(e){var t=e.title,n=e.content,r=e.image,o=e.contentOrder,i=e.alt;return(0,u.jsx)(Tqe,{title:t,content:n,image:r,contentOrder:o,contentStyles:{justifyContent:"center"},contentSpacing:{xs:2,lg:3},alt:i},n)}))}),(0,u.jsx)(Rqe,{firstCard:{title:"Traditional Contracts",sx:{alignItems:"start"},bgcolor:"white",color:"black",content:(0,u.jsxs)(nn.Z,{spacing:1.5,children:[(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(FP.Z,{}),(0,u.jsx)(rn.Z,{children:"Lack detail in regards to completed tasks"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(FP.Z,{}),(0,u.jsx)(rn.Z,{children:"Invoices easy to forget"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(FP.Z,{}),(0,u.jsx)(rn.Z,{children:"Analysis necessary to get revenue insights"})]})]})},secondCard:{title:"With Spona",sx:{alignItems:"start"},bgcolor:tr.dx[101],color:"black",content:(0,u.jsxs)(nn.Z,{spacing:1.5,children:[(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(y1e.Z,{sx:{color:"secondaryBlue.501"}}),(0,u.jsx)(rn.Z,{children:"Avoid misunderstandings with formal payment terms"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(y1e.Z,{sx:{color:"secondaryBlue.501"}}),(0,u.jsx)(rn.Z,{children:"Spona guarantee for secure and successful execution"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(y1e.Z,{sx:{color:"secondaryBlue.501"}}),(0,u.jsx)(rn.Z,{children:"Overview of all transactions on one platform"})]})]})}}),(0,u.jsx)(Ywe,{title:"Get started with End to End",bgcolor:"secondaryYellow.100",color:"black"})]})]})},W1e={description:"See how Spona can help you track your outsourced project's progress with real-time milestone and task management."},V1e=function(){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Kwe,(0,l.Z)({},W1e)),(0,u.jsxs)(nn.Z,{overflow:"hidden",width:"100%",children:[(0,u.jsx)(fUe,{title:"Milestones and Tasks",content:"Keeping up to date with milestones and tasks is the core of successfully managing a project. Spona\u2019s standardized and streamlined approach allows you to obtain an immediate overview of your operations across all of your projects.",image:(0,rs.mB)(Wxe.W.MilestonesAndTasksHero),sx:{height:{xs:"calc(73vh + ".concat(rc,"px)"),lg:"87vh"}},alt:"A person checking off a task from to-do list"}),(0,u.jsx)(nn.Z,{spacing:10,sx:{mt:{xs:"-90px",lg:12}},children:F1e.map((function(e){var t=e.title,n=e.content,r=e.image,o=e.contentOrder,i=e.alt;return(0,u.jsx)(Tqe,{title:t,content:n,image:r,contentOrder:o,contentStyles:{justifyContent:"center"},contentSpacing:{xs:2,lg:3},alt:i},n)}))}),(0,u.jsx)(Rqe,{firstCard:{title:"Traditional Task Management",sx:{alignItems:"start"},bgcolor:"white",color:"black",content:(0,u.jsxs)(nn.Z,{spacing:1.5,children:[(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(FP.Z,{}),(0,u.jsx)(rn.Z,{children:"Spread across multiple platforms"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(FP.Z,{}),(0,u.jsx)(rn.Z,{children:"Not standardized between teams"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(FP.Z,{}),(0,u.jsx)(rn.Z,{children:"Additional tools used to get metrics"})]})]})},secondCard:{title:"With Spona",sx:{alignItems:"start"},bgcolor:tr.dx[101],color:"black",content:(0,u.jsxs)(nn.Z,{spacing:1.5,children:[(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(y1e.Z,{sx:{color:"secondaryBlue.501"}}),(0,u.jsx)(rn.Z,{children:"Centralizes tasks across all projects"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(y1e.Z,{sx:{color:"secondaryBlue.501"}}),(0,u.jsx)(rn.Z,{children:"Makes your management uniform "})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(y1e.Z,{sx:{color:"secondaryBlue.501"}}),(0,u.jsx)(rn.Z,{children:"Provides you with all data you need"})]})]})}}),(0,u.jsx)(Ywe,{title:"Get started with End to End",bgcolor:"secondaryYellow.100",color:"black"})]})]})},U1e={description:"See how easy it is to keep the lines of communication open with your outsourced services with Spona's End to End Management tool."},q1e=function(){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Kwe,(0,l.Z)({},U1e)),(0,u.jsxs)(nn.Z,{overflow:"hidden",width:"100%",children:[(0,u.jsx)(fUe,{title:"Communication",content:"Staying in touch with your digital service sellers is key to avoiding a variety of miscommunication-based issues. Spona\u2019s End-to-End Project Management facilitates transparency with a chatting tool that lets you connect with your contacts, share files, start video calls, and more.",image:(0,rs.mB)(Wxe.W.Communication),sx:{height:{xs:"calc(64vh + ".concat(rc,"px)"),lg:"87vh"}},titleSx:{fontSize:{xs:"2.4rem",lg:"5.8rem"},alignSelf:{xs:"start"}},alt:"Close-up of hands typing on a computer with message notifications popping up"}),(0,u.jsx)(nn.Z,{spacing:10,sx:{mt:{xs:"-70px",lg:12}},children:B1e.map((function(e){var t=e.title,n=e.content,r=e.image,o=e.contentOrder,i=e.alt;return(0,u.jsx)(Tqe,{alt:i,title:t,content:n,image:r,contentOrder:o,contentStyles:{justifyContent:"center"},contentSpacing:{xs:2,lg:3}})}))}),(0,u.jsx)(Rqe,{firstCard:{title:"Traditional Communication",sx:{alignItems:"start"},bgcolor:"white",color:"black",content:(0,u.jsxs)(nn.Z,{spacing:1.5,children:[(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(FP.Z,{}),(0,u.jsx)(rn.Z,{children:"Inconvenient to manage multiple sellers"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(FP.Z,{}),(0,u.jsx)(rn.Z,{children:"Require effort to safeguard relevant data"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(FP.Z,{}),(0,u.jsx)(rn.Z,{children:"Every little update requires check-in"})]})]})},secondCard:{title:"With Spona",sx:{alignItems:"start"},bgcolor:tr.dx[101],color:"black",content:(0,u.jsxs)(nn.Z,{spacing:1.5,children:[(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(y1e.Z,{sx:{color:"secondaryBlue.501"}}),(0,u.jsx)(rn.Z,{children:"Data recorded automatically"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(y1e.Z,{sx:{color:"secondaryBlue.501"}}),(0,u.jsx)(rn.Z,{children:"All your contacts on one platform"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(y1e.Z,{sx:{color:"secondaryBlue.501"}}),(0,u.jsx)(rn.Z,{children:"Automatic notifications for daily project activities"})]})]})}}),(0,u.jsx)(Ywe,{title:"Get started with End to End",bgcolor:"secondaryYellow.100",color:"black"})]})]})},G1e={description:"Is data driving decisions on your outsourced project? If not, see how Spona's End to End Management tool can help."},Y1e=function(){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Kwe,(0,l.Z)({},G1e)),(0,u.jsxs)(nn.Z,{overflow:"hidden",width:"100%",children:[(0,u.jsx)(fUe,{title:"Monitor Your KPIs",content:"Get essential project data that will help you organize your work, provide better time estimates, quickly pinpoint your areas of improvement and engender future insights to improve all facets of your business in the future. Spona\u2019s seamlessly integrated project reporting supports your management activities and provides you with results that you need, when you need them.",image:(0,rs.mB)(Wxe.W.MonitorYourKPIs),sx:{height:{xs:"calc(79vh + ".concat(rc,"px)"),lg:"87vh"}},alt:"Close up of a hand pointing at statistic data on a personal computer"}),(0,u.jsx)(nn.Z,{spacing:10,sx:{mt:{xs:"-60px",lg:12}},children:L1e.map((function(e){var t=e.title,n=e.content,r=e.image,o=e.contentOrder,i=e.alt;return(0,u.jsx)(Tqe,{title:t,content:n,image:r,contentOrder:o,contentStyles:{justifyContent:"center"},contentSpacing:{xs:2,lg:3},alt:i},n)}))}),(0,u.jsx)(Rqe,{firstCard:{title:"Traditional Reports",sx:{alignItems:"start"},bgcolor:"white",color:"black",content:(0,u.jsxs)(nn.Z,{spacing:1.5,children:[(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(FP.Z,{}),(0,u.jsx)(rn.Z,{children:"Require additional tools or services"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(FP.Z,{}),(0,u.jsx)(rn.Z,{children:"Promote data micromanagement"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(FP.Z,{}),(0,u.jsx)(rn.Z,{children:"Complicate instead of streamlining"})]})]})},secondCard:{title:"With Spona",sx:{alignItems:"start"},bgcolor:tr.dx[101],color:"black",content:(0,u.jsxs)(nn.Z,{spacing:1.5,children:[(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(y1e.Z,{sx:{color:"secondaryBlue.501"}}),(0,u.jsx)(rn.Z,{children:"Get all your data in one place"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(y1e.Z,{sx:{color:"secondaryBlue.501"}}),(0,u.jsx)(rn.Z,{children:"Improve communications across the board"})]}),(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(y1e.Z,{sx:{color:"secondaryBlue.501"}}),(0,u.jsx)(rn.Z,{children:"Facilitate learning and make smart decisions"})]})]})}}),(0,u.jsx)(Ywe,{title:"Get started with End to End",bgcolor:"secondaryYellow.100",color:"black"})]})]})},K1e=[{introduction:"Spona believes in being open and clear about how we collect and use data related to you. This Privacy Policy sets out how we collect and use data at Spona and the choices you have about how to interact with our services."},{content:[{title:"Your Privacy Matters",paragraphs:[{text:function(){return"Central to this mission is our commitment to being transparent about the data we collect about you, how it is used and who we share it with."}},{text:function(e){return(0,u.jsxs)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:["This Privacy Policy covers information we collect from users of and visitors to"," ",(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",sx:(0,l.Z)({},AQe),onClick:function(){return null===e||void 0===e?void 0:e[4]()},children:"www.spona.io"})," ","and our related research and review services (collectively, the \u201cServices\u201d). By accessing"," ",(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",sx:(0,l.Z)({},AQe),onClick:function(){return null===e||void 0===e?void 0:e[4]()},children:"www.spona.io"})," ","or any related sites, applications or using the Services, you acknowledge that you have read and understood this Privacy Policy and you are consenting to the collection, use, disclosure and handling of your information, as described below."]})}},{text:function(){return"This policy covers only the personal data of natural persons and it does not apply to any other data relating to corporate clients, suppliers or business partners, or to public authorities, except where and if the applicable law determines otherwise."}},{text:function(){return"If you have any concerns about providing information to us or having such information displayed on the Services or otherwise used in any manner permitted in this Privacy Policy, you should not use the Services."}},{text:function(){return"We offer our users choices about the data we collect, use and share as described in this Privacy Policy and Cookie Policy. Users can contact us with specific inquiries via this contact form."}}]},{title:"Introduction",paragraphs:[{text:function(){return"We are a global B2B platform that helps businesses streamline the process of managing digital service providers as well as managing their digital projects. Our Privacy Policy applies to any Member or Visitor to our Services."}},{text:function(){return"Our registered users share information about their professional businesses and services, engage with other Members, exchange knowledge and professional insights, post and view relevant content and find business opportunities. Content and data on some of our Services can be viewed by non-members."}},{text:function(){return"If you are an EU-, EEA- or UK-based Visitor or Member you are entitled to specific privacy rights as detailed below."}}]},{title:"Services",paragraphs:[{text:function(e){return(0,u.jsxs)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:["This Privacy Policy, including our"," ",(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",sx:(0,l.Z)({},AQe),onClick:function(){return null===e||void 0===e?void 0:e[3]()},children:"Cookie Policy"})," ","applies to your use of our Services."]})}},{text:function(){return"This Policy applies to www.spona.io and other Spona related sites, communications and services (\u201cServices\u201d), including off-site Services, such as our ad services and plugins, but excluding services that state that they are offered under a different privacy policy."}}]},{title:"Data Controller and Contracting Parties",paragraphs:[{text:function(){return"This Privacy Policy applies to Top Digital Agency Limited, 69 Main Street, Dublin, Ireland and its affiliated entities, explicitly encompassing the company Top Digital d.o.o., Vladimira Nazora 23, Zabok, Croatia (together in the text \u201cSpona\u201d)."}},{text:function(){return"As a Visitor or Member of our Services, the collection, use and sharing of your personal data are subject to this Privacy Policy (which includes our Cookie Policy and other documents referenced in this Privacy Policy) and updates."}}]},{title:"Change",paragraphs:[{text:function(){return"Changes to the Privacy Policy apply to your use of our Services after the \u201ceffective date.\u201d"}},{text:function(){return"Spona (\u201cwe\u201d or \u201cus\u201d) can modify this Privacy Policy, and if we make material changes to it, we will provide notice through our Services, or by other means, to provide you with the opportunity to review the changes before they become effective. If you object to any changes, you may close your account."}},{text:function(){return"You acknowledge that your continued use of our Services after we publish or send a notice about our changes to this Privacy Policy means that the collection, use and sharing of your personal data is subject to the updated Privacy Policy."}}]}]},{title:"1. Data We Collect",content:[{subtitle:"1.1 Data You Provide To Us",paragraphs:[{text:function(){return"You provide data to create an account with us."}}]},{subtitle:"Registration",paragraphs:[{text:function(){return"To create an account you need to provide certain personal data including your name, contact email address, job title."}},{text:function(){return"If you use the Service to make or receive payments, we will also collect certain payment information, such as credit card or other financial account information, and the billing address. We may collect personal information, such as your date of birth or taxpayer identification number to validate your identity or as may be required by law, such as to complete tax filings. We may request documents to verify this information, such as a copy of your government-issued identification or photo or a billing statement."}},{text:function(){return"You create your Spona profile (a complete profile helps you get the most from our Services)."}}]},{subtitle:"Profile",paragraphs:[{text:function(){return"When you register as a User, we ask you to provide certain personal information including admin name, and other important non-personal information. We will collect that information via a form that opens up in a modal once users are redirected to the dashboard after  successful registration. Filled-out fields from this modal are a requirement for companies registered with Spona, and may help you to get more from our Services, including helping other organizations and business opportunities find you. We will also ask you to provide or otherwise collect additional information, such as a telephone number or other contact details. It\u2019s your choice whether to make that sensitive information public. Please do not post or add personal data to your profile that you would not want to be publicly available."}},{text:function(){return"We may collect, process and store your user ID associated with any social media account (such as your LinkedIn account) that you use to sign in to the Services or connect with or use with the Services. When you sign in to your account with your social media account information, or otherwise connect your social media account with the Services, you consent to our collection, storage and use, in accordance with this Privacy Policy, of the information that you choose to make available to us through the social media interface. This could include, without limitation, any information that you have made public in connection with your social media account, information that the social media service shares with us, or information that is disclosed as being shared during the sign-in process. This information varies and is controlled by that service or as authorized by you via your privacy settings at that service. Please see your social media provider\u2019s privacy policy and help center for more information about how they share information when you choose to connect your account."}},{text:function(){return"You give other data to us."}}]},{subtitle:"Posting and Uploading",paragraphs:[{text:function(){return"We collect data from you when you provide, post or upload it to our Services, such as when you fill out a form, publish or apply to a project on the Spona platform, or submit a case study review. You don\u2019t have to post or upload data; though if you don\u2019t, it may limit your ability to grow and use our Services."}},{text:function(){return"When you publish a project on our platform it is important to be as accurate as possible and list as much relevant information as possible. We will need, at the minimum, your name, company name, project details, email contact details and preferred way for us to contact you. Please note that your email address, phone number, and other submitted information will be shared with other Users as well as affiliate networks and partners who may best fit your project needs."}},{text:function(){return"You may also provide information about others (e.g. your clients), including their names, emails, phone numbers and companies to help us verify your references and feedback. You should acquire the consent of other individuals prior to providing Spona with their information. The information you provide about others is only used in the reference check and review process."}}]},{subtitle:"1.2 Data From Others",paragraphs:[{text:function(){return"Others may post or write about you."}}]},{subtitle:"Content and News",paragraphs:[{text:function(){return"You and others may post content that includes information about you on our Services. We receive data about you when you create or respond to projects published on our platform. Also, we receive data about you when you submit a case study or reference reviews from your clients."}},{text:function(){return"We may also obtain information about you if it is contained in user-generated content that other users post to our Services. For example, a user could include information about you in a review they post."}},{text:function(){return"If you are invited to the Spona platform by another user (e.g. as part of our referral program) we will receive certain information about you such as your email address or other contact information, and we will use it for the same purpose it was provided and in accordance with the terms of this Privacy Policy."}}]},{subtitle:"1.3 Service Use",paragraphs:[{text:function(){return"We log your visits and use of our Services."}},{text:function(){return"We log usage data when you visit or otherwise use our Services, including our sites and platform technology (e.g. our off-site plugins), such as when you view or click on content or ads (on or off our sites), perform a search or apply to a Spona project. We use and process the information relating to log-ins, cookies and internet protocol (\u201cIP\u201d) addresses to identify you and log your use."}},{text:function(){return"We use that information to enhance our services,  improve user experience, personalize your browsing experience as well as prevent fraud and inappropriate content or behavior on our Site."}}]},{subtitle:"1.4 Cookies, Web Beacons and Other Similar"},{subtitle:"Technologies",paragraphs:[{text:function(){return"We collect data through cookies and similar technologies."}},{text:function(e){return(0,u.jsxs)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:["As further described in our"," ",(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",sx:(0,l.Z)({},AQe),onClick:function(){return null===e||void 0===e?void 0:e[3]()},children:"Cookie Policy"}),", we use cookies and similar technologies (e.g. pixels, ad tags and device identifiers) to recognize you and/or your device(s) on, off, and across different Services and devices. We also allow some others to use cookies as described in our Cookie Policy. You can control cookies through your browser settings and other tools. You can also opt-out from our use of cookies and similar technologies that track your behavior on the sites of others for third-party advertising."]})}}]},{subtitle:"1.5 Your Device and Location",paragraphs:[{text:function(){return"We receive data from your devices, including location data."}},{text:function(){return"When you visit or leave our Services (including our plugins or cookies or similar technology on the sites of others), we receive the URL of both the site you came from and the one you go to next. We also get information about your IP address, proxy server, operating system, web browser and add-ons, device identifier and features, and/or ISP or your mobile carrier. If you access the Services through a mobile device and you do not want your device to provide us with GPS location-tracking information, you can disable the GPS or other location-tracking functions on your device, provided your device allows you to do this. See your device manufacturer\u2019s instructions for further details."}}]},{subtitle:"1.6 Sites and Services of Others",paragraphs:[{text:function(){return"We and third parties may use automated means to collect information about you, your computer or another device, and your use of the Services. These automated means include technologies such as cookies, Web server logs, Web beacons, and JavaScript."}}]},{subtitle:"1.7 Children\u2019s Privacy",paragraphs:[{text:function(){return"Our Services are not intended for use by children under the age of 18. We do not knowingly collect personal information from anyone younger than 18 years old. If we become aware that personal information has been collected from a person under the age of 18, we will delete this information as quickly as possible."}}]},{subtitle:"1.8 Other",paragraphs:[{text:function(){return"We are improving our Services, which means we get new data and create new ways to use data."}},{text:function(){return"Our Services are dynamic, and we often introduce new features, which may require the collection of new information. If we collect materially different data or materially change how we use your data, we will notify you and may also modify this Privacy Policy."}}]}]},{title:"2. How Do We Use Your Data",content:[{paragraphs:[{text:function(){return"We use your data to provide, support, personalize and develop our Services."}},{text:function(){return"How we use your personal data will depend on which Services you use, how you use those Services. We use the data that we have about you to provide and personalize, including with the help of automated systems and inferences we make, our Services (including ads) so that they can be more relevant and useful to you and others."}}]},{subtitle:"2.1. Legal Basis for Using Your Personal Information",paragraphs:[{text:function(){return'Where relevant under applicable laws, all processing of your personal information will be justified by a "lawful ground" for processing. In the majority of cases, processing will be justified on the basis that:'}},{text:function(){return(0,u.jsx)(u.Fragment,{children:TQe({listType:"number",items:["You have given us your permission to use your personal information for a specific purpose;","Our data processing activity is necessary to perform a contract or take steps to enter into a contract with you (e.g. to provide you with services which you have purchased);","The processing is necessary to comply with a relevant legal obligation or regulatory obligation that we have (e.g. fraud prevention); or","The processing is necessary to support our legitimate interests as a business (e.g. to improve our services to you), subject to your interests and fundamental rights, and provided it is conducted at all times in a way that is proportionate."]})})}},{text:function(){return"Where we rely on your consent to process personal data, you have the right to withdraw or decline your consent at any time and where we rely on legitimate interests, you have the right to object or submit a Data Request. If you have any questions about the lawful bases upon which we collect and use your personal data, please contact our Data Protection Officer."}}]},{subtitle:"2.2 Services",paragraphs:[{text:function(){return"Our Services help you connect with other businesses, find business opportunities and solutions, as well as manage your projects. We use your data to authorize access to our Services."}}]},{subtitle:"Find Business Partners",paragraphs:[{text:function(){return"Our Services allow you to find business partners, clients, and other professional contacts. We will use data about you (such as your profile) to help others find your profile, suggest projects for you and other Services."}},{text:function(){return"It is your choice whether to approach an organization found through our Services or to create or apply to a project. When you apply or respond to a Pitch, this action will include such information as you provide."}}]},{subtitle:"Manage Your Projects",paragraphs:[{text:function(){return"End to End Project Management is Spona\u2019s all-in-one, comprehensive project management tool. It is designed to address challenges that appear during the management process, giving you the peace of mind that your project is progressing according to plan."}}]},{subtitle:"Stay Informed",paragraphs:[{text:function(){return"Our Services allow you to stay informed about news, events and ideas regarding professional topics you care about, and from professionals you respect. We use the data we have about you (e.g. data you provide, data we collect from your engagement with our Services and inferences we make from the data we have about you), to provide relevant content on our Services and to make suggestions about how to find the best partner for your business on our platform."}}]},{subtitle:"2.3 Premium Services",paragraphs:[{text:function(){return"Our premium Services allow paying users to use our End-to-End project management tool for their ongoing projects, connect a Buyer or Seller of choice and enable smoother communication and collaboration."}},{text:function(){return"We sell premium Services that provide our customers functionality tools, support, project and account management, as part of our business solutions. Customers can export the project reports from their profile and use them for various reporting needs."}},{text:function(){return"A premium Services customer can store information they have about you in our premium Services, such as project materials or contact information."}}]},{subtitle:"2.4 Communications",paragraphs:[{text:function(){return"We may contact you and enable communications between Users through the Spona platform."}},{text:function(){return"We will contact you through email, notices posted on our websites, push notifications as well as through our in-platform messaging service. We will send you messages about the availability of our Services, security, or other service-related issues. We also send messages about how to use the Services, network updates, reminders, and promotional messages from us and our partners. If you enter into projects with other Users of the Spona platform, those other Users will have the option to contact you using our in-platform messaging service."}},{text:function(){return"You understand that Spona has unlimited access to all documents, correspondence and communications between Users made in any form through the platform and confirm that Spona might access it without prior notice and/or permission."}},{text:function(){return"In addition, we automatically collect information when you access, browse, view, or otherwise use the platform. If you create or respond to a project, we track whether you have acted on it and will send you reminders."}},{text:function(){return"Please be aware that you cannot opt out of receiving service messages from us, including security and legal notices."}}]},{subtitle:"2.5 Advertising",paragraphs:[{text:function(){return"We do not serve you tailored ads as part of our Services. But you cannot opt-out of seeing other ads."}},{text:function(){return"We measure the performance of ads to Members, Visitors and others both on and off our Services directly or through a variety of partners, using the following data, whether separately or combined:"}},{text:function(){return(0,u.jsx)(u.Fragment,{children:TQe({listType:"dot",items:["Data from advertising technologies on and off our Services, like pixels, ad tags, cookies, and device identifiers;","Member-provided information (e.g. profile, contact information and industry);","Data from your use of our Services (e.g. search history, content you read, who you reads your content, Spona projects or applications, page visits, videos you watch, clicking on an ad, etc.), including as described in Section 1.3;","Information from advertising partners and publishers; and","Information inferred from the data described above."]})})}}]},{subtitle:"Info to Ad Providers",paragraphs:[{text:function(){return"We do not share your personal data with any third-party advertisers or ad networks for their advertising except for (a) hashed or device identifiers (to the extent they are personal data in some countries); (b) with your separate permission or (c) data already visible to any users of the Services (e.g. your profile). However, if you view or click on an ad on or off our site, the ad provider will get a signal that someone visited the page that displayed the ad, and they may through the use of mechanisms such as cookies determine it is you."}},{text:function(){return"Advertising partners can associate personal data collected by the advertiser directly from you with our cookies and similar technologies. In such instances, we seek to contractually require such advertising partners to obtain your explicit, opt-in consent before doing so."}}]},{subtitle:"2.6 Marketing",paragraphs:[{text:function(){return"We promote our Services to you and others."}},{text:function(){return"We use data and content about Members for invitations and communications promoting membership and network growth, engagement and our Services."}}]},{subtitle:"2.7 Developing Services and Research",paragraphs:[{text:function(){return"We develop our Services and conduct research."}}]},{subtitle:"Service Development",paragraphs:[{text:function(){return"We use data, including public feedback, to conduct research and development for the further development of our Services in order to provide you and others with a better, more intuitive experience, drive membership growth and engagement on our Services, and help connect organizations and digital service providers with each other and to other business opportunities."}}]},{subtitle:"Other Research",paragraphs:[{text:function(){return"We seek to create business opportunities for Members of the global economy and to help them be more productive and successful. We use the data available to us to research industry trends and policies that help bridge the gap in various industries and geographic areas."}}]},{subtitle:"Surveys",paragraphs:[{text:function(){return"Polls and surveys are conducted by us and others through our Services. You are not obligated to respond to polls or surveys, and you have choices about the information you provide."}}]},{subtitle:"2.8 Customer Support",paragraphs:[{text:function(){return"We use data to help you and fix problems."}},{text:function(){return"We use the data (which can include your communications) to investigate, respond to and resolve complaints and Service issues (e.g. bugs)."}}]},{subtitle:"2.9 Aggregate Insights",paragraphs:[{text:function(){return"We use data to generate aggregate insights."}},{text:function(){return"We use your data to produce and share aggregated insights that do not identify you. For example, we may use your data to generate statistics about our members, their industry or location, to calculate ad impressions served or clicked on, or to publish visitor demographics for a Service or industry insights."}}]},{subtitle:"2.10 Security and Investigations",paragraphs:[{text:function(){return"We use data for security, fraud prevention and investigations."}},{text:function(e){return(0,u.jsxs)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:["We use your data (including your communications) if we think it\u2019s necessary for security purposes or to investigate possible fraud or other violations of our"," ",(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",sx:(0,l.Z)({},AQe),onClick:function(){return null===e||void 0===e?void 0:e[0]()},children:"User Agreement"})," ","or this Privacy Policy and/or attempts to harm our Members or Visitors."]})}}]}]},{title:"3. How We Share Information",content:[{subtitle:"3.1 Our Services",paragraphs:[{text:function(){return"We do not sell or rent your personal information to third parties for their marketing purposes without your explicit consent."}},{text:function(){return"Any data that you include on your profile and any content you post or action you take on our Services will be seen by others."}}]},{subtitle:"Profile",paragraphs:[{text:function(){return"Your profile is fully visible to all Members and customers of our Services. It can also be visible to others e.g. Visitors to our Services or users of third-party search engines."}}]},{subtitle:"Posts and creating projects",paragraphs:[{text:function(){return"Our Services allow viewing and sharing information including through posts and creating projects."}},{text:function(){return(0,u.jsx)(u.Fragment,{children:TQe({listType:"dot",items:["When you create a project, Members that satisfy the criterion you have selected will see the project and all details that you publish in the specific project.","When you respond to a project, the project creator will see all details that you provide to them in your response."]})})}}]},{subtitle:"3.2 Communication Archival",paragraphs:[{text:function(){return"Your profile is fully visible to all Members and customers of our Services. It can also be visible to others e.g. Visitors to our Services or users of third-party search engines."}},{text:function(){return"Some Members (or their employers) need, for legal or professional compliance, to archive their communications (e.g. creation or responses to projects) and other activity, and will use the services of others to provide these archival services."}}]},{subtitle:"3.2 Communication Archival",paragraphs:[{text:function(){return"We share your data across our different Services and Spona-affiliated entities."}},{text:function(){return"We will share your data with our affiliates (such as Spona Croatia) to provide and develop our Services. We may combine information internally across the different Services covered by this Privacy Policy to help our Services be more relevant and useful to you and others."}}]},{subtitle:"3.4 Service Providers",paragraphs:[{text:function(){return"We may use others to help us with our Services."}},{text:function(){return"We use others to help us provide our Services (e.g. maintenance, analysis, audit, payments, fraud detection, marketing and development). They will have access to your information as reasonably necessary to perform these tasks on our behalf and are obligated not to disclose or use it for other purposes."}}]},{subtitle:"3.5 Legal Disclosures",paragraphs:[{text:function(){return"We may need to share your data when we believe it\u2019s required by law or to help protect the rights and safety of you, us, or others."}},{text:function(){return"It is possible that we will need to disclose information about you when required by law, subpoena, or other legal process or if we have a good faith belief that disclosure is reasonably necessary to (a) investigate, prevent, or take action regarding suspected or actual illegal activities or to assist government enforcement agencies; (b) enforce our agreements with you, (c) investigate and defend ourselves against any third-party claims or allegations, (d) protect the security or integrity of our Service (such as by sharing with companies facing similar threats); or (e) exercise or protect the rights and safety of Spona, our Members, personnel, or others. We attempt to notify Members about legal demands for their personal data when appropriate in our judgment unless prohibited by law or court order or when the request is an emergency. We may dispute such demands when we believe, at our discretion, that the requests are overbroad, vague, or lack proper authority, but we do not promise to challenge every demand."}}]},{subtitle:"3.6 Change in Control or Sale",paragraphs:[{text:function(){return"We may share your data if our business is sold to others, but it must continue to be used in accordance with this Privacy Policy."}},{text:function(){return"We can also share your personal data as part of a sale, merger, or change in control, or in preparation for any of these events. Any other entity which buys us or part of our business will have the right to continue to use your data, but only in the manner set out in this Privacy Policy unless you agree otherwise."}}]}]},{title:"Your Choices & Obligations",content:[{subtitle:"4.1 Data Retention",paragraphs:[{text:function(){return"We keep most of your data for as long as your account is open."}},{text:function(){return"We retain your data while your account is in existence or as needed to provide you Services. This includes data you or others provided to us and data generated or inferred from your use of our Services. Even if you only use our Services every few years, we will retain your information and keep your free profile open until you decide to close your account."}},{text:function(){return"We will retain personal information as long as it is necessary or relevant for our services (e.g. holding an accurate record of your business with us in the event of any dispute or complaints). In some cases, we choose to retain certain information (e.g. visits to sites carrying our plugins without clicking on the plugin) in a depersonalized or aggregated form."}}]}]},{title:"4.2 Rights to Access and Control Your Personal Data",content:[{paragraphs:[{text:function(){return"You can access or delete your data. You have many choices about how your data is collected, used and shared."}},{text:function(){return"We provide many choices about the collection, use and sharing of your data -- from deleting or correcting data you include in your profile, to cookies opt-outs and other controls. We offer you settings to control and manage the personal data we have about you. For data that we hold about you:"}},{text:function(){return(0,u.jsx)(u.Fragment,{children:TQe({listType:"dot",items:[(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(rn.Z,{variant:"publicBody5",color:"common.black",children:["Delete Data:"," ",(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:"You can ask us to erase or delete all or some of your personal data (e.g. if it is no longer necessary to provide Services to you)."})]}),","]}),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(rn.Z,{variant:"publicBody5",color:"common.black",children:["Change or Correct Data:"," ",(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:"You can edit some of your personal data through your account. You can also ask us to change, update or fix your data in certain cases, particularly if it\u2019s inaccurate."})]}),","]}),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(rn.Z,{variant:"publicBody5",color:"common.black",children:["Object to, or Limit or Restrict, Use of Data:"," ",(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:"You can ask us to stop using all or some of your data (e.g. if we have no legal right to keep using it) or to limit our use of it (e.g. if your data is inaccurate or unlawfully held)."})]}),","]}),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(rn.Z,{variant:"publicBody5",color:"common.black",children:["Right to Access and/or Take Your Data:"," ",(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:"You can ask us for a copy of your personal data and can ask for a copy of the personal data you provided in a machine-readable form."})]}),","]})]})})}},{text:function(e){return(0,u.jsxs)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:["Visitors can learn more about how to make these requests"," ",(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",sx:(0,l.Z)({},AQe),onClick:function(){return null===e||void 0===e?void 0:e[6]()},children:"here"}),". You may also contact us using the contact information below, and we will consider your request in accordance with applicable laws."]})}}]},{subtitle:"Rights of EU, EEA and UK Users",paragraphs:[{text:function(){return"This section of the Policy applies to you if you are in the European Union (EU), the European Economic Area (EEA) or the United Kingdom (UK)."}},{text:function(){return"Under applicable EU regulation, you have the following rights in respect of your personal information:"}},{text:function(){return(0,u.jsxs)(u.Fragment,{children:[TQe({listType:"dot",items:["To obtain information about how and on what basis your personal information is processed and to obtain a copy;","To rectify inaccurate personal information;","To erase your personal information in limited circumstances where:"]}),(0,u.jsx)(nn.Z,{sx:{ml:"32px !important"},children:TQe({omitListType:!0,listType:"dot",items:[(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:"a. You believe that it is no longer necessary for us to hold your personal information;"}),(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:"b. We are processing your personal information based on legitimate interests and you object to such processing, and we cannot demonstrate an overriding legitimate ground for the processing;"}),(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:"c. Where you have provided your personal information to us with your consent and you wish to withdraw your consent and there is no other ground under which we can process your personal information; and"}),(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:"d. Where you believe the personal information we hold about you is being unlawfully processed by us;"})]})}),TQe({listType:"dot",items:["To restrict processing of your personal information where:"]}),(0,u.jsx)(nn.Z,{sx:{ml:"32px !important"},children:TQe({omitListType:!0,listType:"dot",items:[(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:"a. The accuracy of the personal information is contested;"}),(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:"b. The processing is unlawful but you object to the erasure of the personal information;"}),(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:"c. We no longer require the personal information for the purposes for which it was collected, but it is required for the establishment, exercise or defense of a legal claim; or"}),(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:"d. You have objected to us processing your personal information based on our legitimate interests and we are considering your objection;"})]})}),TQe({listType:"dot",items:["To object to decisions that are based solely on automated processing or profiling;","Where you have provided your personal information to us with your consent, to ask us for a copy of this data in a structured, machine-readable format and to ask us to share (port) this data to another data controller; or","To obtain a copy of or access to safeguards under which your personal information is transferred outside of the EEA."]})]})}},{text:function(){return"Under certain circumstances, you may have the right to object, on grounds relating to your particular situation, to the processing of your personal data by us, and we may be required to no longer process your personal data. If your personal data is processed for direct marketing purposes, you have the right to object at any time to the processing of personal data concerning you for such marketing, which includes profiling to the extent that it is related to such direct marketing. In this case, your personal data will no longer be processed for such purposes by us."}},{text:function(){return"You have the right to file a complaint with a supervisory authority for data protection. Please note that the right of access and the right to erasure do not constitute absolute rights and the interests of other individuals may restrict your right of access or erase in accordance with local laws."}},{text:function(){return"We will ask you for additional data to confirm your identity and for security purposes, before disclosing data requested by you. We will decline to process requests that jeopardize the privacy of others, are extremely impractical, or would cause us to take any action that is not permissible under applicable laws. Additionally, as permitted by applicable laws, we will retain where necessary certain personal information for a limited period of time for record-keeping, accounting and fraud prevention purposes."}}]}]},{title:"4.3 Account Closure",content:[{paragraphs:[{text:function(){return"We keep some of your data even after you close your account."}},{text:function(){return"If you choose to close your Spona account, your data will generally stop being visible to others on our Services within 36 hours. We generally delete closed account information within 30 days of account closure, except as noted in this Privacy Policy."}},{text:function(e){return(0,u.jsxs)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:["We retain your data even after you have closed your account if reasonably necessary to comply with our legal obligations (including law enforcement requests), meet regulatory requirements, resolve disputes, maintain security, prevent fraud and abuse, enforce our"," ",(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",sx:(0,l.Z)({},AQe),onClick:function(){return null===e||void 0===e?void 0:e[0]()},children:"User Agreement"}),", or fulfill your request to \u201cunsubscribe\u201d from further messages from us. We will retain de-personalized information after your account has been closed."]})}},{text:function(){return"Information you have shared with others (e.g. through profile or actions related to publishing briefs on our platform) will remain visible after you close your account or delete the information from your own profile or mailbox, and we do not control data that other Members copied out of our Services. Your profile may continue to be displayed in the services of others (e.g. search engine results) until they refresh their cache."}}]}]},{title:"5. Other Important Information",content:[{subtitle:"5.1 Security",paragraphs:[{text:function(){return"We implement modern information security practices to protect your data."}},{text:function(){return"We implement security safeguards designed to prevent unauthorized access, misuse, or loss of data, including but not limited to:"}},{text:function(){return(0,u.jsx)(u.Fragment,{children:TQe({listType:"dot",items:["Encrypting data sent to and from our servers to keep your data private while in transit.","Keeping software up-to-date and in line with industry recommendations in order to prevent security breaches.","Making regular automated backups to prevent data loss.","Restricting access to sensitive data and services to Spona employees on a need-to-know basis."]})})}}]},{subtitle:"5.2. Cross-Border Data Transfers",paragraphs:[{text:function(){return"We store and use your data outside your country."}},{text:function(){return"We process data both inside and outside of Ireland and the Republic of Croatia and rely on legally provided mechanisms to lawfully transfer data across borders. Countries where we process data may have laws that are different, and potentially not as protective, as the laws of your own country."}}]},{subtitle:"5.3. Direct Marketing and Do Not Track Signals",paragraphs:[{text:function(){return"Our statements regarding direct marketing and \u201cdo not track\u201d signals."}},{text:function(){return"We currently do not share personal data with third parties for their direct marketing purposes without your permission. We undertake steps to limit direct marketing to a reasonable and proportionate level, and to send you communications we think may be of interest or relevance to you."}},{text:function(e){return(0,u.jsxs)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:["Like many websites and online services, Spona does not alter its practices when it receives a \u201cDo Not Track\u201d signal from a visitor\u2019s browser. For more information regarding \u201cDo Not Track\u201d signals please read our"," ",(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",sx:(0,l.Z)({},AQe),onClick:function(){return null===e||void 0===e?void 0:e[3]()},children:"Cookie policy"})]})}}]},{subtitle:"5.4. Contact Information",paragraphs:[{text:function(){return"You can contact us or use other options to resolve any complaints."}},{text:function(e){return(0,u.jsxs)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:["If you have questions or complaints regarding this Policy, please"," ",(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",sx:(0,l.Z)({},AQe),onClick:function(){return null===e||void 0===e?void 0:e[5]()},children:"contact"})," ","Spona online. If contacting us does not resolve your complaint, you may contact the relevant Data Protection Authority. Residents in the Designated Countries may also have the right to contact our Data Protection Officer at legal@spona.io."]})}}]}]}],J1e=[{content:[{title:"Effective from January 2024",paragraphs:[{text:function(){return(0,u.jsxs)(u.Fragment,{children:["This policy provides detailed information about how Spona uses cookies on"," ",(0,u.jsx)("a",{href:"https://spona.io",style:{textDecoration:"underline"},children:"https://spona.io"})," ","(the \u201cSite\u201d). We advise you to also consult our Privacy Policy for additional information on how we collect and use information collected from visitors to the Site. This Cookie Policy applies to any Spona product or service that links to this policy or incorporates it by reference."]})}},{text:function(){var e=(0,ze.bx)(),t=(0,Le.Z)(e,1)[0];return(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:["By using the Site, you agree that we can use the cookies described in this Cookie Policy. Although most browsers and devices accept cookies by default, their settings usually allow you to clear and to decline cookies. You may change your cookie consent choices by clicking on the button"," ",(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",sx:(0,l.Z)({},AQe),onClick:function(){return t(!0)},children:"manage cookies"}),". If you disable cookies, however, some of the features of our Site may not function properly."]})})}}]},{title:"What are Cookies ?",paragraphs:[{text:function(){return"A cookie is a small text file that a website stores on your computer or mobile device when you visit the site."}},{text:function(){return(0,u.jsxs)(u.Fragment,{children:[TQe({listType:"dot",items:["First party cookies are cookies set by the website you are visiting. Only that website can read them. In addition, a website might potentially use external services, which also set their own cookies, known as third-party cookies."]}),TQe({listType:"dot",items:["Persistent cookies are cookies saved on your computer and that are not deleted automatically when you quit your browser, unlike a session cookie, which is deleted when you quit your browser."]})]})}},{text:function(){return"First time you visit the website managed by Spona you will be prompted to accept or refuse cookies.The purpose is to enable the site to remember your preferences (such as user name, language, etc.) for a certain period of time. That way, you do not have to re-enter them when browsing around the site during the same visit.Cookies can also be used to establish anonymised statistics about the browsing experience on our sites."}}]},{title:"How Do We Use Cookies?",paragraphs:[{text:function(){return"As described in Section 1.4 of our Privacy Policy we use cookies and other technologies to ensure everyone who uses Spona has the best possible experience. Our websites mostly use first-party cookies. These are cookies set and controlled by the Spona, not by any external organisation. However, to view some of our pages, you will have to accept cookies from external organisations."}},{text:function(){return"The 3 types of first-party cookie we use are to:"}},{text:function(){return(0,u.jsxs)(u.Fragment,{children:[TQe({listType:"dot",items:["store visitor preferences"]}),TQe({listType:"dot",items:["make our websites operational"]}),TQe({listType:"dot",items:["gather analytics data (about user behaviour)."]})]})}}]},{title:"When Does Spona Place Cookies?",paragraphs:[{text:function(){return(0,u.jsxs)(u.Fragment,{children:["We use cookies on"," ",(0,u.jsx)("a",{href:"https://spona.io",style:{textDecoration:"underline"},children:"https://spona.io"})," ","and other Spona related sites. Any browser visiting these sites will receive cookies from us. We also place cookies in your browser when you visit non-Spona sites that host our plugins or tags. We do not place unnecessary cookies before the visitor consent."]})}}]},{title:"What Are Cookies Used For?",paragraphs:[{text:function(){return"Cookies applied on Spona fall into two categories: strictly necessary and analytics. Cookies can be used to recognize you when you visit Spona, remember your preferences, and give you a personalized experience that\u2019s in line with your settings. Cookies also make your interactions with Spona faster and more secure. Additionally, cookies allow us to bring you advertising both on and off the Spona sites, and bring customized features to you through Spona plugins."}},{text:function(){return"Essential"}},{text:function(){return(0,u.jsx)(u.Fragment,{children:TQe({listType:"dot",items:["Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data."]})})}},{text:function(){return"Analytics"}},{text:function(){return(0,u.jsx)(u.Fragment,{children:TQe({listType:"dot",items:["Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc."]})})}}]},{title:"What Is Do Not Track (DNT)?",paragraphs:[{text:function(){return"DNT is a concept that has been promoted by regulatory agencies such, as the U.S. Federal Trade Commission (FTC), for the Internet industry to develop and implement a mechanism for allowing Internet users to control the tracking of their online activities across websites by using browser settings. The World Wide Web Consortium (W3C) has been working with industry groups, Internet browsers, technology companies, and regulators to develop a DNT technology standard. While some progress has been made, it has been slow. No standard has been adopted to this date. As such, Spona does not generally respond to \u201cdo not track\u201d signals."}}]},{title:"How Are Cookies Used for Advertising Purposes?",paragraphs:[{text:function(){return"Cookies and other ad technology such as pixels, and tags help us serve relevant ads to you more effectively. They also help us provide aggregated auditing, research, and reporting for advertisers, understand and improve our service, and know when content has been shown to you. Note: Because your web browser may request advertisements and beacons directly from third party ad network servers, these networks can view, edit, or set third-party cookies, just as if you had requested a web page from their site. Ads served by Spona may also set third-party cookies."}},{text:function(){return"If you are logged in on any of our sites or another service that references this Cookie Policy or browsing a third party partner site of Spona and one of our cookies on your device identifies you, your usage (such as your browsing behavior) and log data (such as your IP address), will be associated by us with your account as noted in Sections 1.3 and 1.4 of our Privacy Policy. We also use aggregate data from third parties and data from your profile and Spona activity."}},{text:function(){return"If you are a Spona member but logged out of your account on a browser, Spona may still continue to log your interaction with our services on that browser for up to 30 days in order to generate usage analytics for our services, which analytics we may share in aggregate form with our advertising customers."}},{text:function(){return"Unless you clear these cookies from your browser, we may use this information to:"}},{text:function(){return(0,u.jsx)(u.Fragment,{children:TQe({listType:"dot",items:["Provide more relevant, interest-based advertising.","Provide aggregate reports of ads activity to advertisers and websites hosting the ads.","Help website and app owners understand how visitors engage with their sites or apps.","Detect and defend against fraud and other risks to protect users and partners.","Improve our products."]})})}}]},{title:"Controlling Cookies",paragraphs:[{text:function(){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(rn.Z,{variant:"publicBody4",children:"Removing cookies from your device"}),(0,u.jsx)("br",{}),"You can delete all cookies that are already on your device by clearing the browsing history of your browser. This will remove all cookies from all websites you have visited.Be aware though that you may also lose some saved information (e.g. saved login details, site preferences)."]})}},{text:function(){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(rn.Z,{variant:"publicBody4",children:"Managing site-specific cookies"}),(0,u.jsx)("br",{}),"For more detailed control over site-specific cookies, check the privacy and cookie settings in your preferred browser."]})}},{text:function(){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(rn.Z,{variant:"publicBody4",children:"Blocking cookies"}),(0,u.jsx)("br",{}),"You can set most modern browsers to prevent any cookies being placed on your device, but you may then have to manually adjust some preferences every time you visit a site/page. And some services and functionalities may not work properly at all (e.g. profile logging-in)."]})}}]},{title:"Other Helpful Resources",paragraphs:[{text:function(){return"To find out more about cookies, including how to see what cookies have been set and how to manage and delete them, visit:"}},{text:function(e){return(0,u.jsx)(u.Fragment,{children:TQe({listType:"dot",omitListType:!0,items:[(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",sx:(0,l.Z)((0,l.Z)({},AQe),{},{textDecoration:"underline"}),onClick:function(){return window.location.replace("http://www.youronlinechoices.eu")},children:"European Interactive Digital Advertising Alliance (EU)"}),(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",sx:(0,l.Z)((0,l.Z)({},AQe),{},{textDecoration:"underline"}),onClick:function(){return window.location.replace("http://www.iab.net/")},children:"Internet Advertising Bureau (US)"}),(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",sx:(0,l.Z)((0,l.Z)({},AQe),{},{textDecoration:"underline"}),onClick:function(){return window.location.replace("http://www.iabeurope.eu/")},children:"Internet Advertising Bureau (EU)"})]})})}},{text:function(){return"Browser manufacturers provide help pages relating to cookie management in their products. Please see below for more information."}},{text:function(){return(0,u.jsx)(u.Fragment,{children:TQe({listType:"dot",omitListType:!0,items:[(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",sx:(0,l.Z)((0,l.Z)({},AQe),{},{textDecoration:"underline"}),onClick:function(){return window.location.replace("https://support.google.com/chrome/answer/95647?hl=en")},children:"Google Chrome"}),(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",sx:(0,l.Z)((0,l.Z)({},AQe),{},{textDecoration:"underline"}),onClick:function(){return window.location.replace("https://support.microsoft.com/en-us/kb/260971")},children:"Internet Explorer"}),(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",sx:(0,l.Z)((0,l.Z)({},AQe),{},{textDecoration:"underline"}),onClick:function(){return window.location.replace("https://support.mozilla.org/en-US/kb/cookies-information-websites-store-on-your-computer")},children:"Mozilla Firefox"}),(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",sx:(0,l.Z)((0,l.Z)({},AQe),{},{textDecoration:"underline"}),onClick:function(){return window.location.replace("https://support.apple.com/kb/PH5042?locale=en_US")},children:"Safari (Desktop)"}),(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",sx:(0,l.Z)((0,l.Z)({},AQe),{},{textDecoration:"underline"}),onClick:function(){return window.location.replace("https://support.apple.com/en-us/HT201265")},children:"Safari (Mobile)"}),(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",sx:(0,l.Z)((0,l.Z)({},AQe),{},{textDecoration:"underline"}),onClick:function(){return window.location.replace("https://support.google.com/ics/nexus/bin/answer.py?hl=en&answer=2425067")},children:"Android Browser"}),(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",sx:(0,l.Z)((0,l.Z)({},AQe),{},{textDecoration:"underline"}),onClick:function(){return window.location.replace("https://www.opera.com/help")},children:"Opera"}),(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"common.black",sx:(0,l.Z)((0,l.Z)({},AQe),{},{textDecoration:"underline"}),onClick:function(){return window.location.replace("https://www.opera.com/help/mobile/android#privacy")},children:"Opera Mobile"})]})})}},{text:function(){return"For other browsers, please consult the documentation that your browser manufacturer provides."}}]}]}],X1e=J1e,Q1e=[{introduction:"Welcome to Spona Digital Contracts \u2013 the simple contract drafting tool with pre-built contract fields that enables smooth collaboration between vetted Digital Service Sellers and Buyers. It's essential to note that these terms supplement the Spona Terms of Service, collectively defining the terms and conditions under which Spona offers you its services, and you agree to use the Spona Digital Contracts service, as described in these terms.",content:[{title:"Creating the Digital Contract",paragraphs:[{text:function(){return"Digital Contracts enable parties to draft and edit contract proposals by filling in the pre-built contract fields, leaving the parties the complete freedom to decide on the milestones, time frame and budget allocation. Both Sellers and Buyers can initiate a contract proposal. Once a Digital Contract is created, the parties should review the fully completed contract and check the terms. If both parties agree on all the terms and submit the contract they will receive an email from DocuSign to digitally sign it."}},{text:function(){return"You understand and accept that the Digital Contract will become legally binding once signed."}}]},{title:"Start of the Project",paragraphs:[{text:function(){return"Once a Digital Contract is created, signed by both parties and verified by the Spona administrator, the project is ready to start."}}]},{title:"Duration of the Project",paragraphs:[{text:function(){return"As tasks are completed and milestones met, the Seller can request the release of the corresponding funds. Approval by the Buyer initiates the creation of the invoice and funds are to be collected from the Buyer to the Spona account. Once Spona receives the funds in its account it will immediately, or no later than within three working days, distribute the funds to the Seller account. In case of delayed bank transfers Spona is not eligible for late payments."}}]},{title:"Who Can Use Digital Contracts?",paragraphs:[{text:function(){return(0,u.jsxs)(rn.Z,{variant:"publicBody5Regular",color:"common.black",children:["You understand that Spona is a B2B project management tool and agree to use its services on behalf of an entity (e.g. company, limited partnership, agency, organization\u2026 ).",(0,u.jsx)(rn.Z,{variant:"publicBody5",color:"common.black",children:"You represent and warrant that you have the authority to bind that entity."})]})}},{text:function(){return"You acknowledge that neither Spona (registered company name Top Digital Agency Limited)  nor any affiliated entities assume the role of a party in any Service Agreement between users, even when these Digital Contracting Services are used."}}]}]}],$1e=function(){var e=(0,ze.TH)();return(0,u.jsx)(nn.Z,{spacing:8,children:"/terms-of-service/privacy-policy"===e.pathname?K1e.map((function(e,t){var n=e.title,r=e.introduction,o=e.content;return(0,u.jsx)(PQe,{title:n,introduction:r,content:o,onLinkClickArray:MQe},n)})):"/terms-of-service/spona-digital-contract-terms"===e.pathname?Q1e.map((function(e,t){var n=e.title,r=e.introduction,o=e.content;return(0,u.jsx)(PQe,{title:n,introduction:r,content:o,onLinkClickArray:MQe},n)})):"/terms-of-service/cookie-policy"===e.pathname?X1e.map((function(e,t){var n=e.title,r=e.introduction,o=e.content;return(0,u.jsx)(PQe,{title:n,introduction:r,content:o,onLinkClickArray:MQe},n)})):void 0})};var e2e,t2e=n.p+"static/media/login-ellipse.02b3c684ac78e0df8793c240cce259d7.svg",n2e=function(e){var t=e.sx;return(0,u.jsxs)(nn.Z,{sx:(0,l.Z)({position:"relative",display:{xs:"block",lg:"flex"},justifyContent:{xs:"center"},alignItems:{xs:"center"},backgroundColor:"#EA7440",height:"100%",overflow:{xs:"hidden",lg:"visible"}},t),children:[(0,u.jsx)(io.Z,{href:"/",sx:{display:{xs:"flex",lg:"none"},backgroundColor:"common.white",alignItems:"center",zIndex:10,top:"10%",left:"5%",justifyContent:"center",position:"absolute",border:"1px solid",borderColor:"primaryDark.300",p:"16px"},children:(0,u.jsx)(CAe,{style:{height:"0.9rem",width:"0.9rem",fill:tr.IV[500]}})}),(0,u.jsx)(da.Z,{component:"img",src:t2e,sx:{position:"absolute",zIndex:5,pointerEvents:"none",top:{xs:"-16%",lg:"auto",xxl:"auto"},left:{xs:"0%"},overflowX:"hidden",height:{xs:"42vh",lg:"75vh",xxl:"70vh"},maxHeight:{xs:"100%",lg:"70%",xl:"50%",xxl:"100%"},maxWidth:"90%",minWidth:"75%"}}),(0,u.jsx)(da.Z,{component:"img",src:(0,rs.mB)(Wxe.W.SponaDashboard),sx:{zIndex:10,position:{xs:"absolute",lg:"relative"},width:{xs:"81%",sm:"55%",bg:"45%",lg:"50vw"},bottom:-25,overflowX:"visible",m:"0 auto",left:0,right:0}})]})},r2e=function(e){var t=e.accountSection,n=e.accountSectionWrapperSx,r=e.leftSection,o=void 0===r?(0,u.jsx)(n2e,{}):r;return(0,u.jsxs)(nn.Z,{direction:{xs:"column",lg:"row"},sx:{height:{xs:"auto",lg:"100vh"}},children:[(0,u.jsx)(nn.Z,{sx:{width:{xs:"100%",lg:"50%"},height:{xs:"32vh",lg:"100%"},mt:{xs:"".concat(rc,"px"),lg:0}},children:o}),(0,u.jsxs)(nn.Z,{position:"relative",sx:{alignItems:"center",justifyContent:"center",overflowY:{xs:"hidden",lg:"auto"},width:{xs:"100%",lg:"50%"}},children:[(0,u.jsx)(io.Z,{href:"/",sx:{display:{xs:"none",lg:"flex"},alignItems:"center",justifyContent:"center",position:"absolute",left:{xs:10,md:"2em"},top:"2em",border:"1px solid",borderColor:"primaryDark.300",p:"16px"},children:(0,u.jsx)(CAe,{style:{height:"0.9rem",width:"0.9rem",fill:tr.IV[500]}})}),(0,u.jsxs)(nn.Z,{spacing:1,sx:(0,l.Z)({width:{xs:"100%",lg:"60%",xxl:"45%"},px:{xs:"1rem",lg:0}},n),children:[(0,u.jsx)($n,{to:"/",sx:{width:"fit-content"},children:(0,u.jsx)(tn,{component:"img",src:Ln,sx:{height:"30px",width:"130px"}})}),t]})]})]})},o2e=function(e){e.sx;var t=e.image,n=void 0===t?(0,rs.mB)(Wxe.W.NewPasswordChangeSection):t;return(0,u.jsx)(nn.Z,{height:"100%",children:(0,u.jsx)(da.Z,{sx:{backgroundImage:"url(".concat(n,")"),position:"relative",overflow:"hidden",height:"100%",objectFit:"cover",display:"flex",justifyContent:"center",alignItems:"center",backgroundRepeat:"no-repeat",backgroundPosition:"right",backgroundSize:"cover"},children:(0,u.jsx)(da.Z,{component:"img",src:t2e,sx:{position:"absolute",zIndex:50,left:{xs:"-35%",lg:-100},top:{xs:"35%",lg:"55%"},maxWidth:{xs:"90%",lg:"100%"},opacity:"85%"}})})})},i2e=function(e){var t=e.checkForScreenWidth,n=void 0===t||t,r=e.leftSection,o=void 0===r?(0,u.jsx)(n2e,{}):r,i=e.accountSection,a=e.accountSectionWrapperSx,s=Bn(ir.breakpoints.down("lg")),c=(0,ze.TH)(),d=c.search,p=c.pathname,f=new URLSearchParams(d).get("token"),h="/login"===p&&null!==f;return(0,u.jsx)(u.Fragment,{children:n&&s?(0,u.jsx)(sc,{}):(0,u.jsx)(r2e,{accountSection:i,accountSectionWrapperSx:(0,l.Z)({},a),leftSection:h?(0,u.jsx)(o2e,{}):o})})},a2e=n(694),s2e=n(71713),l2e=["title","titleId"];function c2e(){return c2e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c2e.apply(this,arguments)}function u2e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d2e(e,t){var n=e.title,r=e.titleId,i=u2e(e,l2e);return o.createElement("svg",c2e({width:18,height:15,viewBox:"0 0 18 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,e2e||(e2e=o.createElement("path",{d:"M3.9594 0.831055C2.26439 0.831055 0.93774 1.25938 0.703573 2.88855C0.628572 3.41021 0.793563 3.92356 1.17273 4.29439C1.36106 4.47856 1.56024 4.69772 1.82357 4.91939C2.48441 5.47689 3.32691 6.10355 4.11524 6.66438C6.28441 8.20605 7.99692 9.16438 9.01109 9.16438C10.0253 9.16438 11.7378 8.20605 13.9069 6.66438C14.6961 6.10355 15.5386 5.47606 16.1986 4.91939C16.4619 4.69772 16.6611 4.47939 16.8494 4.29439C17.2286 3.92356 17.3936 3.41021 17.3186 2.88855C17.0844 1.25938 15.7578 0.831055 14.0628 0.831055H3.9594ZM0.677734 5.96106V10.831C0.677734 12.6719 2.17024 14.1644 4.01108 14.1644H14.0111C15.8519 14.1644 17.3444 12.6719 17.3444 10.831V5.96106C16.6611 6.61022 15.8978 7.28022 14.8186 8.04439C12.4553 9.71772 10.3328 10.831 9.01109 10.831C7.68942 10.831 5.56692 9.71772 3.20358 8.04439C2.12358 7.28022 1.36107 6.61022 0.677734 5.96106Z",fill:"#4051EC"})))}var p2e,f2e=o.forwardRef(d2e),h2e=(n.p,function(e){var t=e.open,n=e.email,r=e.setIsOpen,o=e.setOpenSuccessModal,i=(0,ze.s0)(),a=oa({resource:"/auth/resend-verification"}).mutate;return(0,u.jsx)(ys,{open:t,sx:{width:{xs:"85%",lg:"45%"}},children:(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",alignItems:"center",children:[(0,u.jsx)(nn.Z,{alignItems:"center",justifyContent:"center",sx:{bgcolor:"#E5E8FF",width:"fit-content",height:"fit-content",borderRadius:"6px",p:1.5},children:(0,u.jsx)(f2e,{})}),(0,u.jsx)(rn.Z,{variant:"heading3",color:"primaryDark.600",children:"verify your email"})]}),(0,u.jsx)(un,{}),(0,u.jsxs)(rn.Z,{color:"primaryDark.500",children:["You must verify your email before you can set up your account. If you did not receive a verification email, please"," ",(0,u.jsx)("span",{style:{textDecoration:"underline",cursor:"pointer"},onClick:function(){a({email:n},{onSuccess:function(){o(!0),r(!1)}})},children:"click to resend."})]}),(0,u.jsxs)(rn.Z,{color:"primaryDark.500",children:["If you would like to talk to our support team,"," ",(0,u.jsx)("span",{style:{textDecoration:"underline",cursor:"pointer"},onClick:function(){return i("/contact-us")},children:"send us a message"})]}),(0,u.jsx)(un,{}),(0,u.jsx)(nn.Z,{sx:{justifyContent:"end"},spacing:2,direction:"row",children:(0,u.jsx)(Wo,{variant:"secondary",onClick:function(){return r(!1)},children:"Cancel"})})]})})}),m2e=function(e){var t=e.open,n=(e.closeModal,(0,ze.s0)());return(0,u.jsx)(ys,{open:t,sx:{width:{xs:"85%",lg:"45%"}},children:(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",alignItems:"center",children:[(0,u.jsx)(nn.Z,{alignItems:"center",justifyContent:"center",sx:{bgcolor:"#E5E8FF",width:"fit-content",height:"fit-content",borderRadius:"6px",p:2},children:(0,u.jsx)(f2e,{fill:tr.dx[700],style:{width:24,height:24}})}),(0,u.jsx)(rn.Z,{variant:"heading3",color:"primaryDark.600",children:"Password Reset"})]}),(0,u.jsx)(un,{}),(0,u.jsx)(rn.Z,{color:"primaryDark.500",children:"You will receive an email from Spona shortly. Follow the link in the to reset your password."}),(0,u.jsx)(un,{}),(0,u.jsx)(nn.Z,{sx:{justifyContent:"end"},spacing:2,direction:"row",children:(0,u.jsx)(Wo,{variant:"primary",sx:{width:{xs:"100%",md:"30%",lg:"22%"}},onClick:function(){n("/login")},children:"Continue"})})]})})},v2e=function(e){var t=e.isOpen,n=e.setIsOpen,r=(0,o.useState)(!0),i=(0,Le.Z)(r,2),a=i[0],s=i[1],l=(0,ze.s0)(),c=Pa(),d=localStorage.getItem("AccessToken");(0,o.useEffect)((function(){pi.e.defaults.headers.common.Authorization="Bearer ".concat(d)}),[d]);var p=Ra({resource:"users",id:null===c||void 0===c?void 0:c.id,enabled:!1,refetchOnWindowFocus:!1,onSuccess:function(e){localStorage.setItem("userData",JSON.stringify(e)),l("/dashboard/end-to-end",{replace:!0}),n(!1)}}).refetch,f=(0,Yt.useMutation)({mutationFn:function(){return pi.Z.post("/users/".concat(null===c||void 0===c?void 0:c.id,"/acceptTerms"),{},{headers:{Authorization:"Bearer ".concat(d)}})},onSuccess:function(){p()}}).mutate;(0,o.useEffect)((function(){return null!==c&&null===c.agreementDate?n(!0):n(!1)}),[c]);return(0,u.jsx)(ys,{open:t,children:(0,u.jsxs)(nn.Z,{spacing:2,children:[(0,u.jsx)(nn.Z,{children:(0,u.jsx)(rn.Z,{sx:{fontSize:"1.25em",fontWeight:500},children:"Important!"})}),(0,u.jsxs)(nn.Z,{direction:"row",children:[(0,u.jsx)(G$.Z,{color:"secondary",onChange:function(){return s(!a)}}),(0,u.jsxs)(rn.Z,{sx:{mt:3},children:["To start using Spona, you must first agree to our\xa0",(0,u.jsx)("a",{style:{color:"#32009A",textDecoration:"none"},href:"/terms-of-service",target:"_blank",rel:"noreferrer",children:"Terms of service"})," ","and"," ",(0,u.jsx)("a",{href:"/terms-of-service/privacy-policy",style:{color:"#32009A",textDecoration:"none"},target:"_blank",rel:"noreferrer",children:"Privacy Policy"})," ","by checking the box."]})]}),(0,u.jsx)(un,{}),(0,u.jsx)(nn.Z,{spacing:2,direction:"row",sx:{justifyContent:"right"},children:(0,u.jsx)(jZ,{variant:"contained",color:"secondary",disabled:a,onButtonClick:function(){c&&d&&f()},sx:{borderRadius:"100px",fontWeight:500},children:"Confirm"})})]})})},g2e=function(e){var t=e.open,n=e.email,r=e.setIsOpen;return(0,u.jsx)(ys,{open:t,children:(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",alignItems:"center",children:[(0,u.jsx)(nn.Z,{alignItems:"center",justifyContent:"center",sx:{bgcolor:"#E5E8FF",width:"fit-content",height:"fit-content",borderRadius:"6px",p:1.5},children:(0,u.jsx)(f2e,{})}),(0,u.jsx)(rn.Z,{variant:"heading3",color:"primaryDark.600",children:"verify your email"})]}),(0,u.jsx)(un,{}),(0,u.jsx)(rn.Z,{color:"primaryDark.500",children:"The verification email has been resent to this address:"}),(0,u.jsx)(rn.Z,{color:"primaryDark.500",children:n}),(0,u.jsx)(un,{}),(0,u.jsx)(nn.Z,{sx:{justifyContent:"end"},spacing:2,direction:"row",children:(0,u.jsx)(Wo,{variant:"secondary",onClick:function(){return r(!1)},children:"close"})})]})})},y2e=["title","titleId"];function b2e(){return b2e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b2e.apply(this,arguments)}function x2e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function w2e(e,t){var n=e.title,r=e.titleId,i=x2e(e,y2e);return o.createElement("svg",b2e({width:20,height:21,viewBox:"0 0 20 21",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,p2e||(p2e=o.createElement("g",{id:"eye-fill"},o.createElement("path",{id:"Vector",d:"M10.0012 3.83154C7.53538 3.83154 5.45788 5.0432 3.75122 7.03487C3.16705 7.7157 2.65622 8.44321 2.24122 9.16987C1.98955 9.60987 1.83621 9.94986 1.74621 10.1599C1.65621 10.369 1.65621 10.6274 1.74621 10.8365C1.83621 11.0465 1.98955 11.3865 2.24122 11.8265C2.65622 12.5532 3.16705 13.2807 3.75122 13.9615C5.45788 15.9532 7.53538 17.1649 10.0012 17.1649C12.4671 17.1649 14.5445 15.9532 16.2512 13.9615C16.8354 13.2807 17.3462 12.5532 17.7612 11.8265C18.0129 11.3865 18.1662 11.0465 18.2562 10.8365C18.3462 10.6274 18.3462 10.369 18.2562 10.1599C18.1662 9.94986 18.0129 9.60987 17.7612 9.16987C17.3462 8.44321 16.8354 7.7157 16.2512 7.03487C14.5445 5.0432 12.4671 3.83154 10.0012 3.83154ZM10.0012 7.16487C11.8421 7.16487 13.3346 8.65737 13.3346 10.4982C13.3346 12.339 11.8421 13.8315 10.0012 13.8315C8.16038 13.8315 6.66788 12.339 6.66788 10.4982C6.66788 8.65737 8.16038 7.16487 10.0012 7.16487ZM10.0012 8.83153C9.08038 8.83153 8.33455 9.57737 8.33455 10.4982C8.33455 11.419 9.08038 12.1649 10.0012 12.1649C10.9221 12.1649 11.6679 11.419 11.6679 10.4982C11.6679 9.57737 10.9221 8.83153 10.0012 8.83153Z",fill:"current"}))))}var C2e=o.forwardRef(w2e),j2e=n.p+"static/media/eye-fill.63c80e5ec03ef19ab9aee3dfc8babbd5.svg";var S2e,k2e=n.p+"static/media/eye-slash-fill.b77feadba462b424c8374fc4ab7a72f5.svg",Z2e=["outerLabel","sx","showPassword","name","required","startAdornment","startAdornmentOnClick","showStartAdornment","endAdornment","endAdornmentOnClick","showEndAdornment","readOnly","customValidation"],O2e=function(e){var t,n,r,o=e.outerLabel,i=e.sx,a=e.showPassword,s=e.name,c=e.required,d=(e.startAdornment,e.startAdornmentOnClick,e.showStartAdornment,e.endAdornment),p=e.endAdornmentOnClick,f=e.showEndAdornment,h=void 0===f||f,m=e.readOnly,v=e.customValidation,g=Nn(e,Z2e),y=Xc(),b=y.register,x=(y.formState.errors,y.getFieldState),w=y.trigger,C=x(s),j=C.error;return(0,u.jsxs)(nn.Z,{spacing:1,children:[o&&(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.500",children:o})," ",(0,u.jsx)(xd.Z,(0,l.Z)((0,l.Z)({},b(s,c?{required:"Too short! Use 8 or more characters",minLength:8}:{required:!1})),{},{fullWidth:!0,type:"string",sx:(0,l.Z)({".MuiOutlinedInput-input":{backgroundColor:"common.white"},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:"secondaryBlue.100"},"&:hover fieldset":{borderColor:"secondaryBlue.100"},"&.Mui-focused":{boxShadow:"6px 6px 15px rgba(56, 69, 114, 0.1)"},"&.Mui-focused fieldset":{borderColor:"secondaryBlue.100"}}},i),variant:"standard",helperText:v||(0,u.jsx)(u.Fragment,{children:j?(0,u.jsx)(rn.Z,{color:"secondaryPink.500",variant:"body4",sx:{position:"absolute"},children:null!==C&&void 0!==C&&null!==(t=C.error)&&void 0!==t&&null!==(n=t.message)&&void 0!==n&&n.length?null===C||void 0===C||null===(r=C.error)||void 0===r?void 0:r.message:"This field is required"}):""}),onBlur:function(){return w(s)},InputProps:{readOnly:m||!1,endAdornment:h?(0,u.jsx)(gy,{position:"end",sx:{width:"3em",justifyContent:"center"},children:d||(0,u.jsx)(io.Z,{"aria-label":"toggle password visibility",onClick:function(){null===p||void 0===p||p()},children:a?(0,u.jsx)(tn,{component:"img",src:j2e,height:"1em"}):(0,u.jsx)(tn,{component:"img",src:k2e,height:"1em"})})}):null}},g))]})},E2e=function(e){var t,n,r,i,a=e.token,s=(0,ze.s0)(),c=fd(),d=(0,o.useState)({password:!1,repeatPassword:!1}),p=(0,Le.Z)(d,2),f=p[0],h=p[1],m=c.getValues,v=c.control,g=oa({resource:"/auth/edit-password"}).mutate;return(0,u.jsxs)(nn.Z,{width:"100%",spacing:4,children:[(0,u.jsx)(rn.Z,{variant:"headline1",sx:{color:"primaryDark.600"},children:"Enter Password"}),(0,u.jsx)(nn.Z,{spacing:6,children:(0,u.jsxs)(Qc,(0,l.Z)((0,l.Z)({},c),{},{children:[(0,u.jsx)(O2e,{value:null!==(t=cu({control:v,name:"password"}))&&void 0!==t?t:"",variant:"outlined",name:"password",placeholder:"\u2022\u2022\u2022\u2022\u2022\u2022\u2022",outerLabel:"NEW PASSWORD",type:f.password?"text":"password",required:!0,InputLabelProps:{shrink:cu({control:v,name:"headquartersLocation"})&&!0},endAdornmentOnClick:function(){return h((0,l.Z)((0,l.Z)({},f),{},{password:!f.password}))}}),(0,u.jsx)(O2e,{value:null!==(n=cu({control:v,name:"repeatPassword"}))&&void 0!==n?n:"",variant:"outlined",name:"repeatPassword",placeholder:"\u2022\u2022\u2022\u2022\u2022\u2022\u2022",outerLabel:"REPEAT PASSWORD",type:f.repeatPassword?"text":"password",required:!0,InputLabelProps:{shrink:cu({control:v,name:"headquartersLocation"})&&!0},endAdornmentOnClick:function(){return h((0,l.Z)((0,l.Z)({},f),{},{repeatPassword:!f.repeatPassword}))}})]}))}),(0,u.jsx)(Wo,{sx:{width:{xs:"100%",lg:"50%"},alignSelf:"flex-end",mt:2},onClick:function(){g({token:a,password:m("password")},{onSuccess:function(){s("/login")}})},disabled:m("password")!==m("repeatPassword")||(null===(r=m("password"))||void 0===r?void 0:r.length)<8||(null===(i=m("repeatPassword"))||void 0===i?void 0:i.length)<8,children:"Reset Password"})]})},D2e={minHeight:120},P2e=function(){var e=(0,ze.TH)().search,t=(0,ze.s0)(),n=new URLSearchParams(e).get("token"),r=(0,o.useState)(!1),i=(0,Le.Z)(r,2),a=i[0],s=i[1],c=(0,o.useState)(!1),d=(0,Le.Z)(c,2),p=d[0],f=d[1],h=(0,o.useState)(!1),m=(0,Le.Z)(h,2),v=m[0],g=m[1],y=(0,o.useState)(!1),b=(0,Le.Z)(y,2),x=b[0],w=b[1],C=(0,o.useState)(!1),j=(0,Le.Z)(C,2),S=j[0],k=j[1],Z=Bn(ir.breakpoints.down("md")),O=(0,o.useState)(!1),E=(0,Le.Z)(O,2),D=E[0],P=E[1],A=oa({resource:"/auth/login"}),M=A.mutate,T=A.isLoading,I=A.isError;(0,o.useEffect)((function(){var e,t=JSON.parse(localStorage.getItem("userData"));null!==t&&void 0!==t&&null!==(e=t.membership)&&void 0!==e&&e.company&&(null!==t&&void 0!==t&&t.agreementDate||k(!0))}),[]);var R=fd({defaultValues:{email:"",password:""},mode:"onChange"}),F=R.watch,B=R.handleSubmit,L=R.setError;R.formState.errors;return(0,o.useEffect)((function(){I&&L("password",{type:"manual",message:"Invalid password or email address. Please try again"})}),[I]),(0,u.jsxs)(u.Fragment,{children:[D&&(0,u.jsx)(K0,{isGoToBiggerScreenModalOpen:D,automaticallyShowModalIfBelowTreshold:!1,onClick:function(){return t("/",{replace:!0})}}),(0,u.jsx)(h2e,{open:a,setIsOpen:s,email:F("email"),setOpenSuccessModal:f}),(0,u.jsx)(g2e,{email:F("email"),open:p,setIsOpen:f}),(0,u.jsx)(m2e,{open:v,closeModal:function(){return g(!1)}}),(0,u.jsx)(v2e,{setIsOpen:k,isOpen:S}),(0,u.jsx)(u.Fragment,{children:null===n?(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},R),{},{children:(0,u.jsx)(tn,{component:"form",sx:{height:"90%"},onSubmit:B((function(e){Z?P(!0):M(e,{onSuccess:function(e){var n,r,o=e.data.user,i=e.data.token;null!==(n=o.roles)&&void 0!==n&&n.includes(Kt.vX.Verified)?(localStorage.setItem("AccessToken",i),localStorage.setItem("userData",JSON.stringify(o)),null!==(r=o.membership)&&void 0!==r&&r.company?o.agreementDate?t("/dashboard",{replace:!0}):k(!0):t("/dashboard/create-company",{replace:!0})):s(!0)}})})),children:(0,u.jsxs)(nn.Z,{height:"100%",justifyContent:"space-between",spacing:4,children:[(0,u.jsxs)(nn.Z,{spacing:1,children:[(0,u.jsx)(rn.Z,{sx:{color:"primaryDark.600"},variant:"headline1",children:"Welcome!"}),(0,u.jsx)(rn.Z,{variant:"body1",sx:{color:"primaryDark.500"},children:"Sign into your account to access your project management hub"})]}),(0,u.jsxs)(nn.Z,{spacing:{lg:7},children:[(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Text,{}),name:"email",type:"email",placeholder:"example@mail.com",label:"Email",required:!0,validationRegEx:{value:/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,message:"Invalid email address"},sx:(0,l.Z)({},D2e)}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Text,{}),type:x?"text":"password",name:"password",label:"Password",required:!0,placeholder:"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",adornment:{icon:x?(0,u.jsx)(s2e.Z,{sx:{color:"primaryDark.400",width:22,height:22}}):(0,u.jsx)(a2e.Z,{sx:{color:"primaryDark.400",width:22,height:22}}),onClick:function(){w((function(e){return!e}))}},sx:(0,l.Z)({},D2e)})]}),(0,u.jsxs)(nn.Z,{spacing:2,direction:{xs:"column",lg:"row-reverse"},alignItems:"center",justifyContent:"space-between",children:[(0,u.jsx)(Wo,{type:"submit",loading:T,variant:"primary",sx:{width:{xs:"100%",lg:"35%",xxl:"25%"}},children:"Sign in"}),(0,u.jsx)(rn.Z,{variant:"heading3",color:"primaryLight.500",sx:{cursor:"pointer",textTransform:"capitalize"},onClick:function(){return t("/reset-password")},children:"Forgot Password?"})]})]})]})})})):(0,u.jsx)(E2e,{token:n})})]})},A2e={minHeight:120},M2e=function(){var e=(0,ze.s0)(),t=oa({resource:"/auth/register"}),n=t.mutate,r=t.isLoading,i=fd({defaultValues:{firstName:"",lastName:"",email:"",confirmPassword:"",password:"",TermsAndConditions:!1},mode:"onChange"}),a=i.watch,s=i.handleSubmit,c=i.getValues,d=i.setError,p=(0,o.useState)({password:!1,repeatPassword:!1}),f=(0,Le.Z)(p,2),h=f[0],m=f[1];return(0,u.jsxs)(nn.Z,{spacing:6,sx:{pb:4},children:[(0,u.jsx)(rn.Z,{variant:"headline1",sx:{color:"primaryDark.600"},children:"Sign Up"}),(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},i),{},{children:(0,u.jsx)(tn,{component:"form",sx:{height:"90%"},onSubmit:s((function(){return t={email:c("email"),password:c("password"),firstName:c("firstName"),lastName:c("lastName")},void n(t,{onError:function(e){var t,n;"already-registered"===(null===(t=e.response)||void 0===t?void 0:t.data.code)&&d("email",{type:"manual",message:null===(n=e.response)||void 0===n?void 0:n.data.message})},onSuccess:function(){e("/verify")}});var t})),children:(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Text,{}),name:"firstName",label:"First name",required:!0,sx:(0,l.Z)({},A2e)}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Text,{}),name:"lastName",label:"Last name",required:!0,sx:(0,l.Z)({},A2e)}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Text,{}),name:"email",type:"email",placeholder:"example@mail.com",label:"Email",required:!0,validationRegEx:{value:/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,message:"Invalid email address"},sx:(0,l.Z)({},A2e)}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Text,{}),type:h.password?"text":"password",name:"password",label:"Password",required:!0,defaultHelperText:"Your password must be a minimum of 8 characters in length and contain at least 1 lowercase letter, 1 uppercase letter, 1 number and 1 special character.",placeholder:"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",adornment:{icon:h.password?(0,u.jsx)(s2e.Z,{sx:{color:"primaryDark.400",width:22,height:22}}):(0,u.jsx)(a2e.Z,{sx:{color:"primaryDark.400",width:22,height:22}}),onClick:function(){m((0,l.Z)((0,l.Z)({},h),{},{password:!h.password}))}},validationRegEx:{value:/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*()_+{}\[\]:;<>,.?~\\-]).{8,}$/,message:"Your password must be a minimum of 8 characters in length and contain at least 1 lowercase letter, 1 uppercase letter, 1 number and 1 special character."},rules:{maxLength:{value:127,message:"Password is too long. Please choose a password with fewer than 128 characters"}},sx:(0,l.Z)({},A2e)}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Text,{}),type:h.repeatPassword?"text":"password",name:"confirmPassword",label:"Repeat password",required:!0,placeholder:"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",adornment:{icon:h.repeatPassword?(0,u.jsx)(s2e.Z,{sx:{color:"primaryDark.400",width:22,height:22}}):(0,u.jsx)(a2e.Z,{sx:{color:"primaryDark.400",width:22,height:22}}),onClick:function(){m((0,l.Z)((0,l.Z)({},h),{},{repeatPassword:!h.repeatPassword}))}},validate:function(){return a("confirmPassword")===a("password")||"Passwords do not match"},rules:{maxLength:{value:127,message:"Password is too long. Please choose a password with fewer than 128 characters"}},sx:(0,l.Z)({},A2e)}),(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(f0,{input:(0,u.jsx)(f0.UserAgreement,{}),name:"TermsAndConditions",required:!0,customRequiredMessage:"Agree to terms to continue",sx:(0,l.Z)({},A2e)}),(0,u.jsxs)(nn.Z,{spacing:2,direction:{xs:"column-reverse",lg:"row"},alignSelf:"center",width:"100%",justifyContent:"space-between",children:[(0,u.jsxs)(rn.Z,{sx:{alignSelf:"center",width:{xs:"fit-content",lg:"100%"},fontSize:"14px"},children:["Already have an account?"," ",(0,u.jsx)($n,{to:"/login",color:"secondary.main",sx:{fontWeight:"bold"},children:"Sign In"})]}),(0,u.jsx)(Wo,{type:"submit",loading:r,variant:"primary",sx:{width:{xs:"100%",lg:"55%"}},children:"Create Account"})]})]})]})})}))]})},T2e=function(){var e=(0,ze.s0)();return(0,u.jsxs)(nn.Z,{width:"100%",spacing:3,children:[(0,u.jsx)(rn.Z,{variant:"headline1",sx:{color:"primaryDark.600"},children:"Verify your email"}),(0,u.jsx)(rn.Z,{variant:"body2",sx:{color:"primaryDark.600"},children:"An email with a verification link has been sent to your account. Click on the link to complete the registration process."}),(0,u.jsx)(Wo,{sx:{maxWidth:"fit-content",mt:2,alignSelf:{xs:"start",md:"end"}},onClick:function(){return e("/login")},children:"Continue"})]})},I2e=function(){var e=(0,ze.s0)(),t=(0,ze.TH)().search,n=new URLSearchParams(t).get("token"),r=oa({resource:"/auth/activate?token=".concat(n)}),i=r.mutate,a=(r.isLoading,(0,o.useState)(!1)),s=(0,Le.Z)(a,2),l=s[0],c=s[1];return(0,o.useEffect)((function(){n&&i(n,{onSuccess:function(){c(!0)},onError:function(){c(!1)}})}),[n]),(0,u.jsx)(nn.Z,{width:"100%",spacing:3,children:l?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(rn.Z,{variant:"headline1",sx:{color:"primaryDark.600"},children:"Verification successful!"}),(0,u.jsx)(rn.Z,{variant:"body2",sx:{color:"primaryDark.600"},children:"Log in to complete your account creation."}),(0,u.jsx)(Wo,{onClick:function(){return e("/login")},sx:{maxWidth:"fit-content",mt:2,alignSelf:{xs:"start",md:"end"}},children:"Continue"})]}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(rn.Z,{variant:"headline1",sx:{color:"primaryDark.600"},children:"Sorry, verification failed."}),(0,u.jsx)(rn.Z,{variant:"body2",sx:{color:"primaryDark.600"},children:"Email verification has failed, please request a new verification link to complete your sign up to Spona."})]})})},R2e=function(){var e=(0,o.useState)(!1),t=(0,Le.Z)(e,2),n=t[0],r=t[1],i=(0,o.useState)(""),a=(0,Le.Z)(i,2),s=a[0],l=a[1],c=(0,o.useState)(!1),d=(0,Le.Z)(c,2),p=(d[0],d[1]),f=oa({resource:"/auth/reset-password"}).mutate;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(m2e,{open:n,closeModal:function(){return r(!1)}}),(0,u.jsxs)(nn.Z,{width:"100%",spacing:4,children:[(0,u.jsx)(rn.Z,{variant:"headline1",sx:{color:"primaryDark.600"},children:"Forgot Password?"}),(0,u.jsx)(rn.Z,{variant:"body2",sx:{color:"primaryDark.600"},children:"Send us a password reset request and we\u2019ll get back to you shortly."}),(0,u.jsxs)(nn.Z,{direction:"column",width:"100%",sx:{mt:"2.5rem !important",mb:"1rem !important"},spacing:1,children:[(0,u.jsx)(rn.Z,{sx:{textTransform:"uppercase",fontFamily:"Gellix-SemiBold",color:"#79829B"},children:"email"}),(0,u.jsx)(xd.Z,{onChange:function(e){l(e.target.value)},value:s,placeholder:"Enter your email",fullWidth:!0,variant:"outlined"})]}),(0,u.jsx)(Wo,{sx:{alignSelf:"flex-end",width:{xs:"100%",lg:"35%",xxl:"30%"}},onClick:function(){return r(!0),void f({email:s},{onSuccess:function(){p(!0)}})},disabled:!s,children:"Reset Password"})]})]})},F2e=function(e){var t=e.project,n=(0,ze.s0)();return(0,u.jsx)(NZ,{onClick:function(){return n("./end-to-end/project/".concat(t.id))},sx:{overflow:"hidden",backgroundColor:"common.white",border:"1px solid",borderColor:"secondaryBlue.100",borderRadius:2,flex:1},elevation:0,children:(0,u.jsx)(nAe,{children:(0,u.jsxs)(ms,{height:"100%",children:[(0,u.jsxs)(ms,{p:2,height:"80%",gap:1,sx:{background:"linear-gradient(240.98deg, #E6E8FF 0%, #FFEAE1 68.46%, #FFFBEA 99.58%)"},children:[(0,u.jsxs)(ms,{direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(EI,{text:t.status}),(0,u.jsx)(Cme,{resource:"spaces",displayName:t.name,id:t.space,renderComponent:function(e){return(0,u.jsx)(io.Z,{href:"/dashboard/chat/".concat(null===e||void 0===e?void 0:e.id),sx:{borderRadius:"3px",bgcolor:"secondaryBlue.100"},children:(0,u.jsx)(bd,{fill:"#4051EC",height:"16px"})})}})]}),(0,u.jsx)(rn.Z,{pt:1,variant:"heading4",color:"primaryDark.600",children:t.name}),t.status!==Kt.FP.Pending&&(0,u.jsx)(rn.Z,{variant:"body4",color:"primaryDark.500",children:(0,rs.$G)((0,rs.oN)(t.description)||"",100)})]}),(0,u.jsxs)(ms,{p:2,gap:2,children:[(0,u.jsxs)(ms,{direction:"row",alignItems:"center",gap:2,children:[(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.400",children:"Progress"}),(0,u.jsx)(z5,{value:t.progress?Math.round(t.progress):0})]}),(0,u.jsx)(Cme,{displayName:"name",id:t.seller,resource:"companies",renderComponent:function(e){return(0,u.jsxs)(ms,{direction:"row",alignItems:"center",gap:1,children:[(0,u.jsx)(da.Z,{component:"img",src:e.avatar,sx:{borderRadius:"4px"},height:"22px"}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.600",children:e.name})]})}})]})]})})})},B2e=bhe({chartName:"BarChart",GraphicalChild:nfe,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Fhe},{axisType:"yAxis",AxisComp:Bhe}],formatAxisMap:cfe}),L2e=function(e){var t=e.sx,n=e.currency,r=e.milestones,i=(0,o.useState)([]),a=(0,Le.Z)(i,2),s=a[0],c=a[1],d=(0,o.useState)(null),p=(0,Le.Z)(d,2),f=p[0],h=p[1],m=(0,o.useState)("year"),v=(0,Le.Z)(m,2),g=v[0],y=v[1],b=function(){var e=new Date,t=e.getFullYear(),n=e.getMonth(),r=ym(new Date(t,n));return fm({start:new Date(t,n,1),end:new Date(t,n,r)})},x=function(){var e=new Date,t=new Date(e.getFullYear(),e.getMonth()-2,e.getDate()),n=new Date(e.getFullYear(),e.getMonth()+3,e.getDate()),r=a6({start:new Date(t),end:new Date}),o=a6({start:new Date(e.getFullYear(),e.getMonth()+1),end:new Date(n)}),i=r.concat(o);return fm({start:new Date(i[0]),end:new Date(i[i.length-1])})},w=function(){var e=new Date((new Date).getFullYear(),0,1),t=new Date((new Date).getFullYear(),11,31);return fm({start:new Date(e),end:new Date(t)})},C=w().map((function(e,t){return{date:e,name:e,id:t,paid:0,unpaid:0}}));C[286].paid=165e3,C[46].unpaid=200,C[326].paid=175e3,C[C.length-1].paid=35e4,(0,o.useEffect)((function(){h({month:b(),halfyear:x(),year:w()})}),[]),(0,o.useEffect)((function(){var e=[];if(r&&null!==f){f[g].forEach((function(t,n){var o;r.forEach((function(n){(0,vm.Z)(t,"P")===(0,vm.Z)(new Date(null===n||void 0===n?void 0:n.paid),"P")&&e.push({id:n.id,name:n.name,date:t,paid:n.budget,unpaid:0}),null===(null===n||void 0===n?void 0:n.paid)&&(0,vm.Z)(t,"P")===(0,vm.Z)(new Date(n.end),"P")&&e.push({id:n.id,name:n.name,date:t,paid:0,unpaid:n.budget})})),(null===(o=e[n])||void 0===o?void 0:o.date)!==t&&e.push({date:t,paid:0,unpaid:0})}));var t=[],n=e.filter((function(e,n,r){var o=[];if(r.findIndex((function(t){return t.date===e.date}))!==n){var i=(0,dn.Z)(r),a=i[n-1];i.slice(i.findIndex((function(t){return t.date===e.date}))).forEach((function(e){e.date===a.date&&o.push(e)}));var s=o.filter((function(e){return void 0!==e.name})),l=s.reduce((function(e,t,n){return 0===t.unpaid&&t.name?e.paidMilestones+="".concat(t.name,", "):0===t.paid&&t.name&&(e.unpaidMilestones+="".concat(t.name,", ")),e.id=fme(),e.date=t.date,e.paid+=t.paid,e.unpaid+=t.unpaid,s.length-1===n&&e.unpaidMilestones&&(e.unpaidMilestones=e.unpaidMilestones.replace(/,\s*$/,"")),s.length-1===n&&e.paidMilestones&&(e.paidMilestones=e.paidMilestones.replace(/,\s*$/,"")),e}),{id:"",unpaidMilestones:"",paidMilestones:"",date:null,paid:0,unpaid:0});t.push(l)}return r.findIndex((function(t){return t.date===e.date}))===n})),o=t.map((function(e){return n.findIndex((function(t){return t.date===e.date}))})),i=(0,dn.Z)(n);i.forEach((function(e,n){void 0!==o[n]&&(i[o[n]]=t[n])})),c(i)}}),[r,g,f]);var j={py:.1,px:1.2,border:"none",color:"primaryDark.500",fontWeight:600},S={color:"primaryLight.500",backgroundColor:"transparent"};return(0,u.jsxs)(nn.Z,{sx:(0,l.Z)((0,l.Z)({},t),{},{position:"relative"}),width:"100%",height:"100%",justifyContent:"center",children:[(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",px:1.5,pb:1,children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",children:"project payments"}),(0,u.jsxs)($4,{color:"secondary",value:g,exclusive:!0,onChange:function(e,t){null!==t&&y(t)},"aria-label":"Platform",sx:{alignSelf:"end",width:"fit-content",gap:0,border:"1px solid ".concat(ir.palette.secondaryBlue[100]),justifyContent:"center"},children:[(0,u.jsx)(i6,{value:"month",sx:(0,l.Z)((0,l.Z)({},j),{},{borderRight:"1px solid ".concat(ir.palette.secondaryBlue[100]),"&.Mui-selected":(0,l.Z)({},S)}),children:"1M"}),(0,u.jsx)(i6,{value:"halfyear",sx:(0,l.Z)((0,l.Z)({},j),{},{borderRight:"1px solid ".concat(ir.palette.secondaryBlue[100]),"&.Mui-selected":(0,l.Z)({},S)}),children:"6M"}),(0,u.jsx)(i6,{value:"year",sx:(0,l.Z)((0,l.Z)({},j),{},{"&.Mui-selected":(0,l.Z)({},S)}),children:"1Y"})]})]}),(0,u.jsx)(F9,{width:"100%",height:"75%",children:(0,u.jsxs)(B2e,{data:0!==(null===r||void 0===r?void 0:r.length)?s:C,style:{fontSize:"1rem",fontFamily:ir.typography.fontFamily},margin:{top:20,right:10,bottom:0},children:[(0,u.jsxs)("defs",{children:[(0,u.jsxs)("linearGradient",{id:"paid",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,u.jsx)("stop",{offset:"5%",stopColor:"#7F57FF",stopOpacity:1}),(0,u.jsx)("stop",{offset:"100%",stopColor:"#7F57FF",stopOpacity:1})]}),(0,u.jsxs)("linearGradient",{id:"unpaid",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,u.jsx)("stop",{offset:"5%",stopColor:"#808080",stopOpacity:1}),(0,u.jsx)("stop",{offset:"100%",stopColor:"#808080",stopOpacity:1})]})]}),(0,u.jsx)(gne,{wrapperStyle:{fontFamily:ir.typography.fontFamily,fontSize:"0.8rem",textTransform:"capitalize"},verticalAlign:"bottom",height:15}),(0,u.jsx)(eme,{opacity:.3,vertical:!1}),(0,u.jsx)(Fee,{active:!0,isAnimationActive:!1,content:(0,u.jsx)(_2e,{currency:n}),wrapperStyle:{outline:"none",zIndex:35,top:-50,left:-50}}),n&&(0,u.jsx)(Bhe,{dataKey:null!==r&&void 0!==r&&r.length?function(){var e={paid:0,unpaid:0};return s.filter((function(e){return 0!==e.paid||0!==e.unpaid})).forEach((function(t){t.paid>(null===e||void 0===e?void 0:e.paid)&&(e.paid=t.paid),t.unpaid>(null===e||void 0===e?void 0:e.unpaid)&&(e.unpaid=t.unpaid)})),e?e.paid>e.unpaid?"paid":"unpaid":null}():"paid",axisLine:!1,tickLine:!1,tick:{fill:ir.palette.primaryDark[400]},tickFormatter:function(e){return e.toLocaleString("en-US",{style:"currency",currency:n,notation:"compact"})},dx:-5,style:{fontSize:"0.875rem",fontWeight:600}}),(0,u.jsx)(Fhe,{dataKey:"date",axisLine:!1,tickLine:!1,padding:{left:25,right:25},tick:{fill:ir.palette.primaryDark[400]},scale:"point",tickMargin:15,height:50,interval:0,tickFormatter:function(e){if("month"===g){if(1===e.getDate())return(0,vm.Z)(e,"MMM d").toUpperCase();if(1!==e.getMonth()){if(e.getDate()%10===0&&30!==e.getDate())return(0,vm.Z)(e,"MMM d").toUpperCase();if(e.getDate()%10===0&&30===e.getDate()&&Kh(e))return(0,vm.Z)(e,"MMM d").toUpperCase();if(31===e.getDate()&&Kh(e))return(0,vm.Z)(e,"MMM d").toUpperCase()}if(1===e.getMonth()){if(e.getDate()%10===0)return(0,vm.Z)(e,"MMM d").toUpperCase();if(28===e.getDate()||29===e.getDate())return(0,vm.Z)(e,"MMM d").toUpperCase()}}if("halfyear"===g&&1===e.getDate())return(0,vm.Z)(e,"MMM d").toUpperCase();if("year"===g){if(0===e.getMonth()&&1===e.getDate())return(0,vm.Z)(e,"MMM d").toUpperCase();if(3===e.getMonth()&&1===e.getDate())return(0,vm.Z)(e,"MMM d").toUpperCase();if(6===e.getMonth()&&1===e.getDate())return(0,vm.Z)(e,"MMM d").toUpperCase();if(9===e.getMonth()&&1===e.getDate())return(0,vm.Z)(e,"MMM d").toUpperCase();if(11===e.getMonth()&&31===e.getDate())return(0,vm.Z)(e,"MMM d").toUpperCase()}return""},style:{fontSize:"0.875rem",fontWeight:600}}),(0,u.jsx)(nfe,{dataKey:"paid",legendType:"circle",type:"monotone",stroke:"#7F57FF",fill:"#7F57FF",fillOpacity:1,isAnimationActive:!1,strokeWidth:15,radius:[25,25,25,25]}),!(null!==r&&void 0!==r&&r.length&&s.every((function(e){return 0===e.unpaid})))&&(0,u.jsx)(nfe,{dataKey:"unpaid",legendType:"circle",isAnimationActive:!1,type:"monotone",stroke:"#C7B9FA",fillOpacity:1,strokeWidth:15,fill:"#C7B9FA",radius:[25,25,25,25]})]})}),!(null!==r&&void 0!==r&&r.length)&&(0,u.jsx)(RI,{})]})},N2e=(0,o.memo)(L2e),_2e=function(e){e.payload,e.active,e.currency;return(0,u.jsx)(rn.Z,{color:"white",variant:"body3"})},z2e=function(){var e,t=Pa(),n=hi({enabled:!!t,resource:"milestones?company=".concat(null===t||void 0===t||null===(e=t.membership)||void 0===e?void 0:e.company)}).data;return(0,u.jsx)(NZ,{elevation:0,sx:{width:"100%",height:"50vh",border:"1px solid",borderColor:"secondaryBlue.100",borderRadius:"8px",display:"flex",flexDirection:"column",alignItems:"center",p:1},children:(0,u.jsx)(N2e,{currency:Kt.CF.Usd,milestones:null===n||void 0===n?void 0:n.data.results})})},H2e=function(){var e=(0,ze.s0)(),t=(Pa(),[{field:"status",headerName:"Status",flex:.15,renderCell:function(e){return(0,u.jsx)(EI,{text:e.value})}},{field:"name",headerName:"project name",flex:.4,renderCell:function(e){return(0,u.jsx)(rn.Z,{variant:"body2",sx:{color:"primaryDark.600",width:"90%"},children:e.value})}},{field:"id",headerName:"latest pitch",flex:.3,renderCell:function(e){var t,n,r;return(0,u.jsxs)(ms,{direction:"row",gap:1,children:[(0,u.jsx)(Ca,{alt:null===(t=e.row)||void 0===t?void 0:t.seller.name,src:null===(n=e.row)||void 0===n?void 0:n.seller.avatar,sx:{width:24,height:24}}),(0,u.jsx)(rn.Z,{children:null===(r=e.row)||void 0===r?void 0:r.seller.name})]})}},{field:"totalPitches",headerName:"Total Pitches",align:"center",headerAlign:"right",flex:.15,renderCell:function(e){return(0,u.jsx)(rn.Z,{variant:"body1",sx:{color:"primaryDark.600"},children:e.value})}}]);return(0,u.jsx)(b2,{headline:"project pitches",linkText:"view all",link:"/dashboard/timed-projects",renderComponent:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(un,{sx:{width:"100%",my:0,backgroundColor:tr.IV[250]},color:"primaryDark.500"}),(0,u.jsx)(k2,{sx:{"&.MuiDataGrid-root .MuiDataGrid-cell":{padding:"0px"}},resource:"timed-projects/featured-pitches",disableTabView:!0,columns:t,searchParams:{limit:4},onRowClick:function(t){return e("/dashboard/timed-projects/".concat(t.id))},autoHeight:!0,hideFooter:!0})]})})},W2e=function(e){var t=e.event;return(0,u.jsxs)(NZ,{elevation:1,sx:{width:"100%",height:"9rem",border:"1px solid",borderColor:"secondaryBlue.100",borderRadius:"8px",display:"flex",flexDirection:"column",alignItems:"start",justifyContent:"space-between",boxShadow:"4px 4px 5px 0px rgba(56, 69, 114, 0.05)",p:2,m:1,gap:2,"&:hover":{boxShadow:"4px 4px 6px 0px rgba(56, 69, 114, 0.1)"}},children:[(0,u.jsxs)(ms,{width:"100%",gap:1,children:[(0,u.jsxs)(ms,{width:"100%",direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",children:(null===t||void 0===t?void 0:t.type)&&T$.sJ.get(t.type)}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.700",children:(0,rs.qJ)(t.end)})]}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryLight.500",children:(null===t||void 0===t?void 0:t.projectTitle)||(null===t||void 0===t?void 0:t.name)})]}),(0,u.jsxs)(ms,{width:"100%",gap:1,children:[t.type!==Kt.JN.Event?(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.500",children:(0,rs.$G)(t.name,120)}):(0,u.jsxs)(ms,{direction:"row",gap:1,children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",children:"event time:"}),(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.500",children:(0,rs.FG)(null===t||void 0===t?void 0:t.start)})]}),(0,u.jsxs)(ms,{width:"100%",gap:1,direction:"row",children:[(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.500",children:"Amount due:"}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryDark.700",children:t.type===Kt.JN.Payment?(0,rs.xG)(t.budget,Kt.CF.Usd):" "})]})]})]})},V2e=(S2e={},(0,t.Z)(S2e,ir.breakpoints.values.xs,{items:1}),(0,t.Z)(S2e,ir.breakpoints.values.sm,{items:1}),(0,t.Z)(S2e,ir.breakpoints.values.md,{items:2}),(0,t.Z)(S2e,ir.breakpoints.values.bg,{items:2}),(0,t.Z)(S2e,ir.breakpoints.values.lg,{items:2}),(0,t.Z)(S2e,ir.breakpoints.values.xl,{items:2}),(0,t.Z)(S2e,ir.breakpoints.values.xxl,{items:4}),S2e),U2e=function(){var e=(0,o.useRef)(null),t=Pa(),n=(0,rs.pu)(new Date),r=(0,rs.pu)(Ih(new Date,4)),i=hi({enabled:!!t,resource:"/calendar?user=".concat(null===t||void 0===t?void 0:t.id,"&start=").concat(n,"&end=").concat(r)}).data,a=null===i||void 0===i?void 0:i.data.results;return(0,u.jsx)(b2,{headline:"Events",linkText:"view all",renderComponentSx:{width:"100%"},sx:{px:0},headlineSx:{px:2},linkSx:{px:2},mainCardClassName:"event_slider",link:"/dashboard/calendar",renderComponent:(0,u.jsxs)(u.Fragment,{children:[!(null!==a&&void 0!==a&&a.length)&&(0,u.jsx)(ms,{position:"relative",height:"10rem",children:(0,u.jsx)(RI,{type:"events"})}),(0,u.jsx)(zwe(),{ref:e,mouseTracking:!0,renderPrevButton:function(e){var t=e.isDisabled;return(0,u.jsx)(Wo,{disabled:t,variant:"primaryText",sx:{mr:1},startIcon:(0,u.jsx)(CAe,{fill:t?tr.E4[300]:tr.E4[500]}),children:"Back"})},renderNextButton:function(e){var t=e.isDisabled;return(0,u.jsx)(Wo,{disabled:t,variant:"primaryText",endIcon:(0,u.jsx)(EAe,{fill:t?tr.E4[300]:tr.E4[500]}),children:"Next"})},items:null===a||void 0===a?void 0:a.map((function(e){return(0,u.jsx)(W2e,{event:e})})),infinite:!1,paddingLeft:0,paddingRight:50,disableSlideInfo:!0,disableDotsControls:!0,responsive:V2e})]})})},q2e=function(){var e=(0,ze.s0)();return(0,u.jsx)(NZ,{sx:{overflow:"hidden",backgroundColor:"common.white",border:"1px solid",borderColor:"secondaryBlue.100",borderRadius:2,flex:1},elevation:0,children:(0,u.jsxs)(ms,{height:"100%",sx:{backgroundColor:"secondaryBlue.50"},justifyContent:"center",alignItems:"center",gap:1,children:[(0,u.jsx)(rn.Z,{variant:"body3",width:"60%",textAlign:"center",color:"primaryDark.600",mt:3,mb:2,children:"Discover our all-in-one tool for streamlined project management"}),(0,u.jsx)(Wo,{onClick:function(){return e("/how-to-manage-buyer")},children:"Learn more"})]})})},G2e=function(){var e,t,n=Pa(),r=hi({enabled:!!n,resource:"/projects?limit=2&company=".concat(null===n||void 0===n||null===(e=n.membership)||void 0===e?void 0:e.company)}),o=r.data,i=r.isLoading,a=null!==(t=null===o||void 0===o?void 0:o.data.results)&&void 0!==t?t:[];return(0,u.jsxs)(ms,{width:"100%",height:"100%",gap:3,pb:6,children:[(0,u.jsxs)(ms,{width:a.length<=1?"50%":"100%",direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,u.jsx)(rn.Z,{variant:"heading3",color:"primaryDark.500",children:"END-TO-END project management"}),(0,u.jsx)($n,{to:"/dashboard/end-to-end",sx:{display:"flex",justifyContent:"end",pointerEvents:a.length<=1?"none":"inherit"},children:(0,u.jsx)(rn.Z,{variant:"heading4",color:a.length<=1?"primaryLight.200":"primaryLight.500",children:"View all"})})]}),i||(0,u.jsxs)(ms,{gap:2,width:"100%",direction:{xs:"column",lg:"row"},children:[a.map((function(e){return(0,u.jsx)(F2e,{project:e})})),0===a.length&&(0,u.jsx)(q2e,{}),a.length<=1&&(0,u.jsx)(gVe,{imgHeight:"50%"})]}),(0,u.jsx)(z2e,{}),(0,u.jsx)(H2e,{}),(0,u.jsx)(U2e,{})]})},Y2e=(0,o.createContext)({}),K2e=function(){return(0,o.useContext)(Y2e)},J2e=Y2e;var X2e,Q2e,$2e=n.p+"static/media/hello-user-new.57ea856468bf6a2702bb672fd4691434.svg",e3e=function(){var e=K2e().user;return(0,u.jsxs)(tn,{sx:{position:"relative"},children:[(0,u.jsx)(tn,{component:"img",src:$2e,sx:{height:"100%",width:"100%"}}),(0,u.jsx)(tn,{sx:{position:"absolute",bottom:{md:"6%",xl:"7%"},left:{md:"25%",xl:"20%"},top:{md:"65%",xl:"70%"},width:"100%"},children:(0,u.jsx)(tn,{children:(0,u.jsx)(tn,{sx:{position:"absolute",top:{md:"-186%",xl:"-155%"},left:{md:"-7%",xl:"-3%"},backgroundColor:"primaryDark.900",color:"#fff",padding:"10px",borderRadius:"10px",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)","::before":{content:'""',position:"absolute",left:"15px",bottom:"-14px",borderWidth:"20px 20px 0",borderStyle:"solid",borderColor:"".concat(tr.IV[900]," transparent transparent transparent")}},children:(0,u.jsxs)(rn.Z,{sx:{typography:"publicHeading5",fontSize:{md:"18px",xl:"22px"}},children:["Hello, ",null===e||void 0===e?void 0:e.firstName]})})})})]})},t3e=(0,o.memo)(e3e),n3e=function(e){var t=e.row,n=e.sx;return(0,u.jsx)(nn.Z,{spacing:1.5,direction:"row",sx:(0,l.Z)({},n),children:t.map((function(e,n){return(0,u.jsxs)(nn.Z,{spacing:{md:1,lg:1.5},direction:"row",width:"100%",children:[e,n+1!==t.length&&(0,u.jsx)(un,{orientation:"vertical"})]})}))})},r3e=function(e){var t,n,r,i=e.isModalOpen,a=e.setIsModalOpen,s=(0,Ms.J)(),c=K2e().companyData,d=fd({mode:"onChange",reValidateMode:"onChange",defaultValues:{averageProjectSize:(null===c||void 0===c?void 0:c.averageProjectSize)||"",hourlyRate:(null===c||void 0===c?void 0:c.hourlyRate)||"",companySize:(null===c||void 0===c?void 0:c.companySize)||"",headquartersLocation:{country:(null===c||void 0===c||null===(t=c.headquartersLocation)||void 0===t?void 0:t.country)||"",city:(null===c||void 0===c||null===(n=c.headquartersLocation)||void 0===n?void 0:n.city)||"",state:(null===c||void 0===c||null===(r=c.headquartersLocation)||void 0===r?void 0:r.state)||""}}}),p=(0,As.Z)({resource:"companies"}),f=p.mutate,h=p.isLoading;return(0,o.useEffect)((function(){d.getValues("headquartersLocation.country")!==Kt.bU.Us&&d.setValue("headquartersLocation.state","")}),[d.getValues("headquartersLocation.country")]),(0,u.jsx)(y4,{isModalOpen:i,setIsModalOpen:a,confirmButtonText:"Save",onCancel:function(){return a(!1)},onConfirm:d.handleSubmit((function(e){f({id:null===c||void 0===c?void 0:c.id,data:e},{onSuccess:function(){s(),a(!1)}})})),title:"Company Overview",width:"40%",automaticallyCloseModalOnButtonClick:!1,isLoading:h,iconProps:{icon:(0,u.jsx)(yA,{fill:tr.E4[500]}),wrapperBackgroundColor:"#E3DBFC"},message:(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},d),{},{children:(0,u.jsxs)(nn.Z,{sx:{maxHeight:"398px",overflowY:"auto",fontSize:"12px",fontFamily:"Gellix-SemiBold"},spacing:3,pr:"10px",children:[(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsxs)(rn.Z,{variant:"heading4",color:"primaryDark.500",children:[" ","Headquarters location"]}),(0,u.jsx)(un,{}),(0,u.jsx)(f0,{rules:{required:"Country is required"},name:"headquartersLocation.country",label:"Country",input:(0,u.jsx)(f0.Autocomplete,{}),choices:Kt.NF,placeholder:"Select country",sx:{minHeight:"none"}}),(0,u.jsx)(f0,{rules:{required:"City is required"},input:(0,u.jsx)(f0.Text,{}),name:"headquartersLocation.city",label:"City",placeholder:"Type city name",sx:{minHeight:"none"}}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Autocomplete,{}),name:"headquartersLocation.state",label:"State",placeholder:"Select state",choices:T$.gS,disabled:d.watch("headquartersLocation.country")!==Kt.bU.Us,required:d.watch("headquartersLocation.country")===Kt.bU.Us})]}),(0,u.jsx)(un,{}),(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsx)(f0,{rules:{required:"Company size is required"},input:(0,u.jsx)(f0.Autocomplete,{}),name:"companySize",label:"Company size",placeholder:"Select size",choices:Kt.Tz,sx:{minHeight:"none"}}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Text,{}),name:"founded",label:"Founding Year",placeholder:"Type year",sx:{minHeight:"none"},type:"number"}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Select,{}),name:"averageProjectSize",label:"Average project size",placeholder:"Select size",choices:Kt.Dw,sx:{minHeight:"none"}}),(0,u.jsx)(f0,{rules:{required:"Hourly rate is required"},name:"hourlyRate",label:"Hourly rate",placeholder:"Select rate",choices:Kt.vs,input:(0,u.jsx)(V$,{}),sx:{minHeight:"none"}})]})]})}))})},o3e=function(e){var t,n,r,o,i=e.isOverviewModalOpen,a=e.setIsOverviewModalOpen,s=K2e(),l=s.companyData,c=s.chipLabelTruncateValue;return(0,u.jsxs)(ms,{width:"100%",spacing:1,children:[[{label:"COMPANY SIZE",value:Kt.Tz.get(null===l||void 0===l?void 0:l.companySize)},{label:"HEADQUARTERS",value:null!==l&&void 0!==l&&null!==(t=l.headquartersLocation)&&void 0!==t&&t.state?"".concat(null===l||void 0===l?void 0:l.headquartersLocation.city,", ").concat(null===l||void 0===l?void 0:l.headquartersLocation.state,", ").concat(Kt.NF.get(null===l||void 0===l||null===(n=l.headquartersLocation)||void 0===n?void 0:n.country)):"".concat(null===l||void 0===l||null===(r=l.headquartersLocation)||void 0===r?void 0:r.city,", ").concat(Kt.NF.get(null===l||void 0===l||null===(o=l.headquartersLocation)||void 0===o?void 0:o.country))},{label:"AVG. PROJECT SIZE",value:Kt.Dw.get(null===l||void 0===l?void 0:l.averageProjectSize)},{label:"HOURLY RATE",value:Kt.vs.get(null===l||void 0===l?void 0:l.hourlyRate)}].map((function(e,t){return(0,u.jsxs)(ms,{direction:{xl:"row"},justifyContent:"flex-start",gap:1,alignItems:"flex-start",children:[(0,u.jsx)(rn.Z,{color:"primaryDark.500",fontWeight:"700",fontSize:"11px",width:"40%",whiteSpace:"nowrap",align:"left",marginTop:"8px",children:e.label}),(0,u.jsx)(_d,{tooltipTitle:e.value,label:e.value&&(0,rs.$G)(e.value,c),sx:{flexGrow:0,flexShrink:5,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",textTransform:"capitalize"}})]},t)})),i&&(0,u.jsx)(r3e,{isModalOpen:i,setIsModalOpen:a})]})},i3e=["title","titleId"];function a3e(){return a3e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a3e.apply(this,arguments)}function s3e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l3e(e,t){var n=e.title,r=e.titleId,i=s3e(e,i3e);return o.createElement("svg",a3e({width:16,height:17,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,X2e||(X2e=o.createElement("rect",{width:16,height:16,transform:"translate(0 0.5)",fill:"CurrentColor"})),Q2e||(Q2e=o.createElement("path",{d:"M7.99384 2.45317C7.62584 2.45317 7.32717 2.75183 7.32717 3.11983V7.7865H2.6605C2.2925 7.7865 1.99384 8.08517 1.99384 8.45317C1.99384 8.82117 2.2925 9.11983 2.6605 9.11983H7.32717V13.7865C7.32717 14.1545 7.62584 14.4532 7.99384 14.4532C8.36184 14.4532 8.6605 14.1545 8.6605 13.7865V9.11983H13.3272C13.6952 9.11983 13.9938 8.82117 13.9938 8.45317C13.9938 8.08517 13.6952 7.7865 13.3272 7.7865H8.6605V3.11983C8.6605 2.75183 8.36184 2.45317 7.99384 2.45317Z",fill:"white"})))}var c3e,u3e=o.forwardRef(l3e),d3e=(n.p,["title","titleId"]);function p3e(){return p3e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p3e.apply(this,arguments)}function f3e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function h3e(e,t){var n=e.title,r=e.titleId,i=f3e(e,d3e);return o.createElement("svg",p3e({width:16,height:16,viewBox:"0 0 22 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,c3e||(c3e=o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.1582 4.23285C15.1582 6.58253 13.285 8.4666 10.9489 8.4666C8.61277 8.4666 6.73959 6.58253 6.73959 4.23285C6.73959 1.88227 8.61277 0 10.9489 0C13.285 0 15.1582 1.88227 15.1582 4.23285ZM10.9489 16C7.5177 16 4.58794 15.456 4.58794 13.2801C4.58794 11.1034 7.4989 10.5396 10.9489 10.5396C14.3801 10.5396 17.3098 11.0836 17.3098 13.2603C17.3098 15.4362 14.3989 16 10.9489 16ZM16.9568 4.30914C16.9568 5.50695 16.5995 6.6228 15.9727 7.55042C15.9082 7.64589 15.9655 7.77467 16.0793 7.79449C16.236 7.8215 16.398 7.83681 16.5628 7.84132C18.2058 7.88455 19.6806 6.82093 20.088 5.21965C20.6915 2.84115 18.9195 0.705811 16.6631 0.705811C16.4177 0.705811 16.1831 0.731928 15.9548 0.77876C15.9235 0.785965 15.8903 0.800374 15.8724 0.828293C15.8509 0.862516 15.867 0.908447 15.8885 0.938167C16.5664 1.89371 16.9568 3.0591 16.9568 4.30914ZM19.678 9.51264C20.782 9.72969 21.5082 10.1728 21.8091 10.8167C22.0634 11.3454 22.0634 11.9587 21.8091 12.4864C21.3488 13.4852 19.8651 13.8058 19.2885 13.8887C19.1694 13.9067 19.0736 13.8031 19.0861 13.6834C19.3807 10.9158 17.0375 9.60361 16.4313 9.3019C16.4053 9.28839 16.3999 9.26768 16.4026 9.25507C16.4044 9.24607 16.4152 9.23166 16.4349 9.22895C17.7466 9.20464 19.1569 9.38476 19.678 9.51264ZM5.43695 7.84132C5.60171 7.83682 5.76288 7.82241 5.92047 7.79449C6.03418 7.77467 6.09149 7.64589 6.02702 7.55042C5.40024 6.6228 5.04297 5.50695 5.04297 4.30914C5.04297 3.0591 5.43337 1.89371 6.11119 0.938167C6.13268 0.908447 6.1479 0.862516 6.12731 0.828293C6.1094 0.801275 6.07537 0.785965 6.04493 0.77876C5.81571 0.731928 5.58111 0.705811 5.33577 0.705811C3.07936 0.705811 1.30735 2.84115 1.91175 5.21965C2.31916 6.82093 3.79389 7.88455 5.43695 7.84132ZM5.59669 9.25445C5.59938 9.26796 5.59401 9.28777 5.56894 9.30218C4.96185 9.60388 2.61858 10.9161 2.91317 13.6827C2.92571 13.8034 2.8308 13.9061 2.71171 13.889C2.13507 13.8061 0.651385 13.4855 0.191148 12.4867C-0.0640416 11.9581 -0.0640416 11.3457 0.191148 10.817C0.492004 10.1731 1.21728 9.72997 2.32131 9.51202C2.84333 9.38504 4.2527 9.20492 5.56536 9.22923C5.58505 9.23193 5.5949 9.24634 5.59669 9.25445Z",fill:"current"})))}var m3e,v3e,g3e=o.forwardRef(h3e),y3e=(n.p,function(e){var t,n,r=e.isEditModalOpen,i=e.setIsEditModalOpen,a=K2e(),s=a.companyClients,c=a.companyData,d=(0,Ms.J)(),p=(0,o.useRef)(null),f=(0,o.useState)(0),h=(0,Le.Z)(f,2),m=h[0],v=h[1],g=fd({mode:"onChange",defaultValues:{clients:null!==(t=s)&&void 0!==t?t:[],name:""}}),y=g.handleSubmit,b=g.watch,x=g.getValues,w=g.setValue,C=g.setError,j=g.formState.errors,S=x("clients"),k=Object.keys(j).length>0,Z=oa({resource:"company-client"}),O=Z.mutate,E=Z.isLoading,D=(0,As.Z)({resource:"companies"}),P=D.mutate,A=D.isLoading,M=zk({resource:"company-client"}).mutate;return(0,u.jsx)(y4,{width:"40%",title:"Clients",confirmButtonText:"Save",isLoading:A||E,isModalOpen:r,setIsModalOpen:i,automaticallyCloseModalOnButtonClick:!1,onConfirm:y((function(e){var t=x("clients").map((function(e){return e.id}));P({id:null===c||void 0===c?void 0:c.id,data:{clients:t}},{onSuccess:function(e){i(!1),d()}})})),iconProps:{icon:(0,u.jsx)(g3e,{fill:tr.dx[700]}),wrapperBackgroundColor:tr.E4[100]},message:(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},g),{},{children:(0,u.jsxs)(nn.Z,{spacing:6,sx:{overflowY:"auto",maxHeight:"380px",pr:1},children:[(0,u.jsx)(Cl,{cropRef:p,avatar:"",withOpenFileExplorerButton:!0},m),(0,u.jsxs)(nn.Z,{spacing:1,alignItems:null!==j&&void 0!==j&&j.name?"center":"end",direction:"row",children:[(0,u.jsx)(f0,{name:"name",input:(0,u.jsx)(f0.Text,{}),placeholder:"Client name",label:"Client company name",sx:{minHeight:"none",width:"70%"}}),(0,u.jsx)(Wo,{onClick:function(){var e;if(""!==x("name")){var t=null===p||void 0===p||null===(e=p.current)||void 0===e?void 0:e.getImage().toDataURL(),n=b("name");O({avatar:t,name:n},{onSuccess:function(e){var t=e.data,n=t.id,r=t.avatar,o=t.name;w("name",""),v((function(e){return e+1})),w("clients",[].concat((0,dn.Z)(S),[{id:n,avatar:r,name:o}]))}})}else C("name",{message:"This field is required"})},variant:"primaryLight",sx:{width:"30%",height:"47px"},disabled:E||A,startIcon:(0,u.jsx)(u3e,{}),children:"Add Client"})]}),(0,u.jsx)(nn.Z,{direction:"row",flexWrap:"wrap",gap:1,children:S.map((function(e){return(0,u.jsx)(_d,{styleVariant:"rounded",avatar:(0,u.jsx)(Ca,{alt:"".concat(e.name,"-client"),src:e.avatar}),label:e.name,onDelete:function(){return t=e.id,void(1!==S.length?M({id:t},{onSuccess:function(){w("clients",S.filter((function(e){return e.id!==t}))),d()}}):C("clients",{message:"You need to have at least one new client."}));var t}},e.id)}))}),(0,u.jsx)(R$,{error:k,sx:{mt:"2rem !important"},children:null===j||void 0===j||null===(n=j.clients)||void 0===n?void 0:n.message})]})}))})}),b3e=function(e){var t=e.isEditModalOpen,n=e.setIsEditModalOpen,r=K2e().companyClients;return(0,u.jsxs)(nn.Z,{direction:"column",gap:1,alignItems:"flex-start",sx:{maxWidth:"190px"},children:[r&&r.length>0&&r.slice(0,3).map((function(e){return(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",spacing:1,children:[" ",(0,u.jsx)(Ca,{src:e.avatar,alt:e.name,sx:{width:20,height:20}}),(0,u.jsx)(rn.Z,{sx:{fontWeight:600,fontSize:"1rem",letterSpacing:"normal",color:"rgb(79, 87, 110)",wordBreak:"break-word",overflowWrap:"break-word"},children:e.name})]},e.id)})),(0,u.jsxs)(nn.Z,{direction:"row",children:[r&&(null===r||void 0===r?void 0:r.length)>3&&(0,u.jsx)(tn,{sx:{bgcolor:"rgb(227, 219, 252)",borderRadius:"50%",width:20,height:20}}),r&&(null===r||void 0===r?void 0:r.length)>3&&(0,u.jsxs)(rn.Z,{paddingLeft:"3px",sx:{color:"rgb(79, 87, 110)"},variant:"bodySemiBold1",children:["+",r&&r.length-3]})]}),t&&(0,u.jsx)(y3e,{isEditModalOpen:t,setIsEditModalOpen:n})]})},x3e=["title","titleId"];function w3e(){return w3e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w3e.apply(this,arguments)}function C3e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function j3e(e,t){var n=e.title,r=e.titleId,i=C3e(e,x3e);return o.createElement("svg",w3e({width:16,height:17,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,m3e||(m3e=o.createElement("rect",{width:16,height:16,transform:"translate(0 0.5)",fill:"currentColor"})),v3e||(v3e=o.createElement("path",{d:"M7.99384 2.45317C7.62584 2.45317 7.32717 2.75183 7.32717 3.11983V7.7865H2.6605C2.2925 7.7865 1.99384 8.08517 1.99384 8.45317C1.99384 8.82117 2.2925 9.11983 2.6605 9.11983H7.32717V13.7865C7.32717 14.1545 7.62584 14.4532 7.99384 14.4532C8.36184 14.4532 8.6605 14.1545 8.6605 13.7865V9.11983H13.3272C13.6952 9.11983 13.9938 8.82117 13.9938 8.45317C13.9938 8.08517 13.6952 7.7865 13.3272 7.7865H8.6605V3.11983C8.6605 2.75183 8.36184 2.45317 7.99384 2.45317Z",fill:"white"})))}var S3e,k3e=o.forwardRef(j3e),Z3e=(n.p,["title","titleId"]);function O3e(){return O3e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O3e.apply(this,arguments)}function E3e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function D3e(e,t){var n=e.title,r=e.titleId,i=E3e(e,Z3e);return o.createElement("svg",O3e({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,S3e||(S3e=o.createElement("g",{id:"geo-alt-fill"},o.createElement("path",{id:"Vector",d:"M9.99869 1.67773C6.31703 1.67773 3.33203 4.66273 3.33203 8.3444C3.33203 11.2336 5.20537 14.5211 7.73286 17.2511C7.81453 17.3386 7.8812 17.4069 7.96704 17.4852C8.68287 18.1261 9.42452 18.3527 9.99869 18.3444C10.0062 18.3444 10.0187 18.3444 10.0245 18.3444C10.6229 18.3444 11.4662 18.0752 12.2645 17.2769C14.6895 14.8519 16.6653 11.2761 16.6653 8.3444C16.6653 4.66273 13.6804 1.67773 9.99869 1.67773ZM9.99869 5.8444C11.3795 5.8444 12.4987 6.96357 12.4987 8.3444C12.4987 9.72523 11.3795 10.8444 9.99869 10.8444C8.61786 10.8444 7.49869 9.72523 7.49869 8.3444C7.49869 6.96357 8.61786 5.8444 9.99869 5.8444Z",fill:"#6D51F6"}))))}var P3e,A3e=o.forwardRef(D3e),M3e=(n.p,function(e){var t=e.isModalOpen,n=e.setIsModalOpen,r=e.showCancelButton,o=(0,Ms.J)(),i=K2e().companyData,a=fd({mode:"onChange",reValidateMode:"onChange",defaultValues:{officeLocations:(null===i||void 0===i?void 0:i.officeLocations)||[],tempCountry:"",tempCity:"",tempState:""}}),s=a.setValue,c=a.watch,d=c("officeLocations")||[],p=c("tempCountry"),f=c("tempCity"),h=(0,As.Z)({resource:"companies"}),m=h.mutate,v=h.isLoading;return(0,u.jsx)(y4,{isModalOpen:t,setIsModalOpen:n,confirmButtonText:"Save",onCancel:function(){return n(!1)},onConfirm:function(){return function(){var e=a.getValues("officeLocations");m({id:null===i||void 0===i?void 0:i.id,data:(0,l.Z)((0,l.Z)({},i),{},{officeLocations:e})},{onSuccess:function(){o(),n(!1)}})}()},automaticallyCloseModalOnButtonClick:!1,isLoading:v,title:"Additional office locations",width:"40%",iconProps:{icon:(0,u.jsx)(A3e,{fill:tr.E4[500]}),wrapperBackgroundColor:"#E3DBFC"},message:(0,u.jsx)("form",{children:(0,u.jsxs)(Qc,(0,l.Z)((0,l.Z)({},a),{},{children:[(0,u.jsx)(ms,{spacing:2,direction:"row",alignItems:"center",justifyContent:"flex-start"}),(0,u.jsxs)(ms,{sx:{height:"auto",maxHeight:"400px",overflowY:"auto",fontSize:"12px",fontFamily:"Gellix-SemiBold"},spacing:2,pr:"10px",children:[(0,u.jsxs)(ms,{spacing:2,children:[(0,u.jsx)(f0,{required:!0,input:(0,u.jsx)(f0.Autocomplete,{}),name:"tempCountry",choices:Kt.NF,label:"Country",placeholder:"Select country",sx:{width:"100%",minHeight:"100%"}}),(0,u.jsx)(f0,{required:!0,input:(0,u.jsx)(f0.Text,{}),name:"tempCity",label:"City",placeholder:"Type city name",sx:{width:"100%",minHeight:"100%"}}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Autocomplete,{}),name:"tempState",label:"State",choices:T$.gS,placeholder:"Type state",sx:{width:"100%",minHeight:"100%"},disabled:"us"!==a.watch("tempCountry"),required:a.watch("tempCountry")===Kt.bU.Us})]}),(0,u.jsx)(da.Z,{style:{display:"flex",justifyContent:"flex-end",width:"100%"},children:(0,u.jsx)(Wo,{variant:"primaryLight",sx:{width:"auto",mt:"10px",boxShadow:"none"},onClick:function(){var e=a.getValues(),t=e.tempCountry,n=e.tempCity,r=e.tempState;if(d.some((function(e){return e.country===t&&e.city===n&&e.state===(r||"")})))a.setError("tempCity",{type:"manual",message:"Location already exists"});else if(t!==Kt.bU.Us||r){var o={country:t,city:n,state:r||""},i=[].concat((0,dn.Z)(d),[o]);s("officeLocations",i),s("tempCountry",""),s("tempCity",""),s("tempState",""),a.clearErrors("officeLocations")}else a.setError("tempState",{type:"manual",message:"State is required for the US"})},disabled:!p||!f,startIcon:(0,u.jsx)(k3e,{}),children:"Add office"})}),(0,u.jsx)(un,{}),(0,u.jsx)(ms,{direction:"row",flexWrap:"wrap",gap:1,children:null===d||void 0===d?void 0:d.map((function(e,t){return(0,u.jsx)(_d,{label:e.state?"".concat(e.city,", ").concat(e.state,", ").concat(e.country?Kt.NF.get(e.country):""):"".concat(e.city,", ").concat(e.country?Kt.NF.get(e.country):""),sx:{width:"fit-content",textTransform:"capitalize",display:"flex",alignItems:"center"},onDelete:function(){return function(e){var t=d.filter((function(t,n){return n!==e}));s("officeLocations",t)}(t)}})}))})]})]}))}),showCancelButton:r})}),T3e=function(e){var t,n=e.isEditModalOpen,r=e.setIsEditModalOpen,o=K2e(),i=o.companyData,a=o.chipLabelTruncateValue;return(0,u.jsxs)(ms,{direction:"row",gap:1,flexWrap:"wrap",alignItems:"flex-start",justifyContent:"flex-start",children:[null===i||void 0===i||null===(t=i.officeLocations)||void 0===t?void 0:t.map((function(e,t){return(0,u.jsx)(_d,{tooltipTitle:e.state?"".concat(e.city,", ").concat(e.state,", ").concat(Kt.NF.get(e.country)):"".concat(e.city,", ").concat(Kt.NF.get(e.country)),label:e.state?(0,rs.$G)("".concat(e.city,", ").concat(e.state,", ").concat(Kt.NF.get(e.country)),a):(0,rs.$G)("".concat(e.city,", ").concat(Kt.NF.get(e.country)),a),sx:{width:"fit-content",textTransform:"capitalize"}},t)})),i&&n&&(0,u.jsx)(M3e,{isModalOpen:n,setIsModalOpen:r,showCancelButton:!0})]})},I3e=["title","titleId"];function R3e(){return R3e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R3e.apply(this,arguments)}function F3e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function B3e(e,t){var n=e.title,r=e.titleId,i=F3e(e,I3e);return o.createElement("svg",R3e({width:24,height:24,viewBox:"0 0 22 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,P3e||(P3e=o.createElement("g",{id:"Language"},o.createElement("path",{id:"Vector",d:"M15.6129 5.10352L16.7551 8.00027H14.4707L15.6129 5.10352Z",fill:"#6D51F6"}),o.createElement("path",{id:"Vector_2",fillRule:"evenodd",clipRule:"evenodd",d:"M10.1875 4C10.1875 2.1144 10.1875 1.17157 10.8221 0.585785C11.4567 -5.96046e-08 12.4781 0 14.5208 0H17.0716C19.1821 0 20.2373 -5.96046e-08 20.8763 0.61125C21.5152 1.2225 21.4776 2.1959 21.4022 4.14275L21.1701 10.1427C21.0996 11.9665 21.0643 12.8785 20.4347 13.4393C19.8051 14 18.8166 14 16.8395 14H14.5208C12.4781 14 11.4567 14 10.8221 13.4142C10.1875 12.8285 10.1875 11.8856 10.1875 10V4ZM13.2879 11H11.5586L14.7274 2.9636L16.341 2.5642L19.6673 11H17.938L17.3466 9.50005H13.8793L13.2879 11Z",fill:"#6D51F6"}),o.createElement("path",{id:"Vector_3",d:"M0.166016 2.99961H3.68685V1.99961L5.31185 1.59961V2.99961H8.56184V4.49961H7.47358C7.41129 6.07971 6.76059 7.52121 5.71772 8.64301C6.54192 9.14191 7.51497 9.44856 8.56211 9.49376L8.56179 9.49961L8.13718 10.9695C6.78317 10.8516 5.53664 10.3929 4.49925 9.68736C3.45529 10.3974 2.19949 10.8574 0.835537 10.9717L0.436849 9.49961L0.436561 9.49376C1.48361 9.44851 2.45662 9.14191 3.28078 8.64301C2.6168 7.92876 2.11179 7.08491 1.8164 6.15821L3.387 5.76961C3.61591 6.46931 3.99878 7.10741 4.49925 7.65026C5.28927 6.79331 5.78624 5.69911 5.84717 4.49961H0.572265L0.166016 2.99961Z",fill:"#6D51F6"}))))}var L3e,N3e,_3e,z3e,H3e=o.forwardRef(B3e),W3e=(n.p,function(e){var t,n=e.isEditModalOpen,r=e.setIsEditModalOpen,o=(0,Ms.J)(),i=K2e().companyData,a=fd({mode:"onChange",defaultValues:{languages:null!==(t=null===i||void 0===i?void 0:i.languages)&&void 0!==t?t:[]}}),s=(0,As.Z)({resource:"companies"}),c=s.mutate,d=s.isLoading;return(0,u.jsx)(y4,{width:"40%",isModalOpen:n,setIsModalOpen:r,title:"Working languages",onCancel:function(){return r(!1)},onConfirm:a.handleSubmit((function(e){c({id:null===i||void 0===i?void 0:i.id,data:e},{onSuccess:function(){o(),r(!1)}})})),confirmButtonText:"Save",automaticallyCloseModalOnButtonClick:!1,isLoading:d,message:(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},a),{},{children:(0,u.jsx)(da.Z,{component:"form",children:(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Autocomplete,{}),choices:Kt.u9,name:"languages",label:"Language",multiple:!0,placeholder:"Select Language",sx:{width:"100%"},required:!0})})})),iconProps:{icon:(0,u.jsx)(H3e,{fill:tr.E4[500]}),wrapperBackgroundColor:tr.E4[100]}})}),V3e=function(e){var t,n=e.isEditModalOpen,r=e.setIsEditModalOpen,o=K2e(),i=o.companyData,a=o.chipLabelTruncateValue;return(0,u.jsxs)(ms,{direction:"row",gap:1,flexWrap:"wrap",alignItems:"flex-start",justifyContent:"flex-start",children:[null===i||void 0===i||null===(t=i.languages)||void 0===t?void 0:t.map((function(e){return(0,u.jsx)(_d,{tooltipTitle:Kt.u9.get(e),label:e&&(0,rs.$G)(Kt.u9.get(e),a),sx:{width:"fit-content",textTransform:"capitalize"}},e)})),i&&n&&(0,u.jsx)(W3e,{isEditModalOpen:n,setIsEditModalOpen:r})]})},U3e=function(e){var t=e.isEditModalOpen,n=e.setIsEditModalOpen,r=K2e().companyData,o=(0,Ms.J)(),i=fd({mode:"onChange",defaultValues:{certifications:(null===r||void 0===r?void 0:r.certifications)||[],newCertification:""}}),a=i.handleSubmit,s=i.setValue,c=i.getValues,d=i.watch,p=d("certifications")||[],f=d("newCertification"),h=(0,As.Z)({resource:"companies"}),m=h.mutate,v=h.isLoading;return(0,u.jsx)(y4,{width:"40%",confirmButtonText:"Save",onCancel:function(){return n(!1)},title:"Certifications",isModalOpen:t,setIsModalOpen:n,automaticallyCloseModalOnButtonClick:!1,isLoading:v,iconProps:{icon:(0,u.jsx)(yA,{fill:tr.E4[500]}),wrapperBackgroundColor:tr.E4[100]},onConfirm:a((function(e){m({id:null===r||void 0===r?void 0:r.id,data:{certifications:e.certifications}},{onSuccess:function(){o(),n(!1)}})})),message:(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},i),{},{children:(0,u.jsxs)(ms,{direction:"column",gap:1,children:[(0,u.jsx)(f0,{name:"newCertification",input:(0,u.jsx)(f0.Text,{}),placeholder:"Type certificate name",label:"Certificate name",sx:{minHeight:"none"}}),(0,u.jsx)(ms,{direction:"row",flexWrap:"wrap",gap:1,children:p.map((function(e,t){return(0,u.jsx)(_d,{label:e,onDelete:function(){return function(e){var t=(c("certifications")||[]).filter((function(t,n){return n!==e}));s("certifications",t)}(t)}},"".concat(e,"-").concat(t))}))}),(0,u.jsx)(Wo,{variant:"primaryLight",sx:{boxShadow:"none",alignSelf:"flex-end",mt:"10px"},disabled:!f||""===f.trim(),onClick:function(){var e=c("newCertification")||"",t=c("certifications")||[];if(t.includes(e.trim()))i.setError("newCertification",{type:"manual",message:"Certification already added!"});else{var n=[].concat((0,dn.Z)(t),[e.trim()]);s("certifications",n),s("newCertification","")}},startIcon:(0,u.jsx)(u3e,{}),children:"Add Certification"})]})}))})},q3e=function(e){var t,n=e.isEditModalOpen,r=e.setIsEditModalOpen,o=K2e(),i=o.companyData,a=o.chipLabelTruncateValue;return(0,u.jsxs)(ms,{direction:"row",gap:1,flexWrap:"wrap",alignItems:"flex-start",justifyContent:"flex-start",children:[null===i||void 0===i||null===(t=i.certifications)||void 0===t?void 0:t.map((function(e){return(0,u.jsx)(_d,{tooltipTitle:e,label:e&&(0,rs.$G)(e,a),sx:{width:"fit-content",textTransform:"capitalize"}},e)})),i&&n&&(0,u.jsx)(U3e,{isEditModalOpen:n,setIsEditModalOpen:r})]})},G3e=function(e){var t=e.isEditModalOpen,n=e.setIsEditModalOpen,r=K2e().companyData,o=(0,Ms.J)(),i=fd({mode:"onChange",defaultValues:{awards:(null===r||void 0===r?void 0:r.awards)||[],newAward:""}}),a=i.handleSubmit,s=i.setValue,c=i.getValues,d=i.watch,p=d("awards")||[],f=d("newAward"),h=(0,As.Z)({resource:"companies"}),m=h.mutate,v=h.isLoading;return(0,u.jsx)(y4,{width:"40%",confirmButtonText:"Save",onCancel:function(){return n(!1)},title:"Industry awards",isModalOpen:t,setIsModalOpen:n,iconProps:{icon:(0,u.jsx)(yA,{fill:tr.E4[500]}),wrapperBackgroundColor:tr.E4[100]},onConfirm:a((function(e){m({id:null===r||void 0===r?void 0:r.id,data:{awards:e.awards}},{onSuccess:function(){o(),n(!1)}})})),automaticallyCloseModalOnButtonClick:!1,isLoading:v,message:(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},i),{},{children:(0,u.jsxs)(ms,{direction:"column",gap:1,children:[(0,u.jsx)(f0,{name:"newAward",input:(0,u.jsx)(f0.Text,{}),placeholder:"Enter name",label:"Award name",sx:{minHeight:"none"}}),(0,u.jsx)(ms,{direction:"row",flexWrap:"wrap",gap:1,children:p.map((function(e,t){return(0,u.jsx)(_d,{label:e,onDelete:function(){return function(e){var t=(c("awards")||[]).filter((function(t,n){return n!==e}));s("awards",t)}(t)}},"".concat(e,"-").concat(t))}))}),(0,u.jsx)(Wo,{variant:"primaryLight",sx:{alignSelf:"flex-end"},disabled:!f||""===f.trim(),onClick:function(){var e=c("newAward")||"",t=c("awards")||[];if(t.includes(e.trim()))i.setError("newAward",{type:"manual",message:"Award already added!"});else{var n=[].concat((0,dn.Z)(t),[e.trim()]);s("awards",n),s("newAward","")}},startIcon:(0,u.jsx)(D0,{}),children:"Add awards"})]})}))})},Y3e=function(e){var t,n=e.isEditModalOpen,r=e.setIsEditModalOpen,o=K2e(),i=o.companyData,a=o.chipLabelTruncateValue;return(0,u.jsxs)(ms,{direction:"row",gap:1,flexWrap:"wrap",alignItems:"flex-start",justifyContent:"flex-start",children:[null===i||void 0===i||null===(t=i.awards)||void 0===t?void 0:t.map((function(e){return(0,u.jsx)(_d,{tooltipTitle:e,label:e&&(0,rs.$G)(e,a),sx:{width:"fit-content",textTransform:"capitalize"}},e)})),i&&(0,u.jsx)(G3e,{isEditModalOpen:n,setIsEditModalOpen:r})]})},K3e=function(e){var t,n=e.isEditModalOpen,r=e.setIsEditModalOpen,o=K2e().companyData,i=(0,Ms.J)(),a=fd({mode:"onChange",defaultValues:{targetIndustries:null!==(t=null===o||void 0===o?void 0:o.targetIndustries)&&void 0!==t?t:[]}}),s=(0,As.Z)({resource:"companies"}),c=s.mutate,d=s.isLoading;return(0,u.jsx)(y4,{width:"40%",title:"Target Industries",isModalOpen:n,setIsModalOpen:r,onCancel:function(){return r(!1)},onConfirm:a.handleSubmit((function(e){c({id:null===o||void 0===o?void 0:o.id,data:e},{onSuccess:function(){i(),r(!1)}})})),confirmButtonText:"Save",automaticallyCloseModalOnButtonClick:!1,isLoading:d,iconProps:{icon:(0,u.jsx)(yA,{fill:tr.E4[500]}),wrapperBackgroundColor:tr.E4[100]},message:(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},a),{},{children:(0,u.jsx)(da.Z,{component:"form",children:(0,u.jsx)(f0,{required:!0,input:(0,u.jsx)(f0.Autocomplete,{}),choices:Kt.lu,name:"targetIndustries",label:"Target client industries",multiple:!0,placeholder:"Select target industries",sx:{width:"100%"}})})}))})},J3e=function(e){var t,n=e.isEditModalOpen,r=e.setIsEditModalOpen,o=K2e(),i=o.companyData,a=o.chipLabelTruncateValue;return(0,u.jsxs)(ms,{direction:"row",gap:1,flexWrap:"wrap",alignItems:"flex-start",justifyContent:"flex-start",children:[null===i||void 0===i||null===(t=i.targetIndustries)||void 0===t?void 0:t.map((function(e){return(0,u.jsx)(_d,{tooltipTitle:Kt.lu.get(e),label:e&&(0,rs.$G)(Kt.lu.get(e),a),sx:{width:"fit-content",textTransform:"capitalize"}},e)})),i&&(0,u.jsx)(K3e,{isEditModalOpen:n,setIsEditModalOpen:r})]})},X3e=function(e){var t,n=e.isEditModalOpen,r=e.setIsEditModalOpen,o=K2e().companyData,i=(0,Ms.J)(),a=fd({mode:"onChange",defaultValues:{targetCountries:null!==(t=null===o||void 0===o?void 0:o.targetCountries)&&void 0!==t?t:[]}}),s=(0,As.Z)({resource:"companies"}),c=s.mutate,d=s.isLoading;return(0,u.jsx)(y4,{width:"40%",confirmButtonText:"Save",title:"Target markets",isModalOpen:n,setIsModalOpen:r,onCancel:function(){return r(!1)},automaticallyCloseModalOnButtonClick:!1,isLoading:d,onConfirm:a.handleSubmit((function(e){c({id:null===o||void 0===o?void 0:o.id,data:e},{onSuccess:function(){i(),r(!1)}})})),iconProps:{icon:(0,u.jsx)(yA,{fill:tr.E4[500]}),wrapperBackgroundColor:"#E3DBFC"},message:(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},a),{},{children:(0,u.jsx)(da.Z,{component:"form",children:(0,u.jsx)(f0,{required:!0,input:(0,u.jsx)(f0.Autocomplete,{}),choices:Kt.NF,name:"targetCountries",label:"Target Markets",multiple:!0,placeholder:"Select target markets",sx:{width:"100%"}})})}))})},Q3e=function(e){var t,n=e.isEditModalOpen,r=e.setIsEditModalOpen,o=K2e(),i=o.companyData,a=o.chipLabelTruncateValue;return(0,u.jsxs)(ms,{direction:"row",gap:1,flexWrap:"wrap",alignItems:"flex-start",justifyContent:"flex-start",children:[null===i||void 0===i||null===(t=i.targetCountries)||void 0===t?void 0:t.map((function(e){return(0,u.jsx)(_d,{tooltipTitle:Kt.NF.get(e),label:e&&(0,rs.$G)(Kt.NF.get(e),a),sx:{width:"fit-content",textTransform:"capitalize"}},e)})),i&&(0,u.jsx)(X3e,{isEditModalOpen:n,setIsEditModalOpen:r})]})},$3e=["title","titleId"];function e5e(){return e5e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e5e.apply(this,arguments)}function t5e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function n5e(e,t){var n=e.title,r=e.titleId,i=t5e(e,$3e);return o.createElement("svg",e5e({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,L3e||(L3e=o.createElement("rect",{width:24,height:24,rx:12,fill:"black"})),N3e||(N3e=o.createElement("path",{d:"M12.9905 12.0301C12.9905 14.2557 11.2017 16.06 8.99532 16.06C6.7889 16.06 5 14.2553 5 12.0301C5 9.8048 6.78876 8 8.99532 8C11.2019 8 12.9905 9.80439 12.9905 12.0301Z",fill:"white"})),_3e||(_3e=o.createElement("path",{d:"M17.3742 12.0303C17.3742 14.1253 16.4799 15.8243 15.3766 15.8243C14.2733 15.8243 13.3789 14.1253 13.3789 12.0303C13.3789 9.93533 14.2732 8.23633 15.3764 8.23633C16.4797 8.23633 17.3741 9.93479 17.3741 12.0303",fill:"white"})),z3e||(z3e=o.createElement("path",{d:"M19.1667 12.0297C19.1667 13.9063 18.8522 15.4285 18.4642 15.4285C18.0761 15.4285 17.7617 13.9067 17.7617 12.0297C17.7617 10.1527 18.0762 8.63086 18.4642 8.63086C18.8521 8.63086 19.1667 10.1525 19.1667 12.0297Z",fill:"white"})))}var r5e,o5e,i5e,a5e,s5e,l5e,c5e,u5e,d5e,p5e=o.forwardRef(n5e),f5e=(n.p,["title","titleId"]);function h5e(){return h5e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h5e.apply(this,arguments)}function m5e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function v5e(e,t){var n=e.title,r=e.titleId,i=m5e(e,f5e);return o.createElement("svg",h5e({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,r5e||(r5e=o.createElement("rect",{width:24,height:24,rx:12,fill:"#191717"})),o5e||(o5e=o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.6948 5C9.86746 5.00095 8.09999 5.64817 6.70849 6.82594C5.31698 8.00371 4.39218 9.63523 4.09944 11.4288C3.80671 13.2223 4.16512 15.0609 5.1106 16.6157C6.05608 18.1706 7.52698 19.3404 9.26027 19.9159C9.64266 19.9869 9.7867 19.7499 9.7867 19.5484C9.7867 19.3469 9.77905 18.7626 9.7765 18.1239C7.6351 18.5864 7.1826 17.2202 7.1826 17.2202C6.83335 16.333 6.32859 16.0998 6.32859 16.0998C5.63009 15.6258 6.38086 15.6347 6.38086 15.6347C7.15456 15.6892 7.56118 16.4243 7.56118 16.4243C8.24693 17.5941 9.36224 17.2557 9.80072 17.058C9.86955 16.5624 10.0697 16.2253 10.2902 16.0339C8.57961 15.8413 6.78236 15.1848 6.78236 12.252C6.77176 11.4914 7.05562 10.7559 7.5752 10.1976C7.49617 10.0049 7.23231 9.22676 7.6504 8.16975C7.6504 8.16975 8.29665 7.96443 9.76758 8.95427C11.0293 8.6112 12.3604 8.6112 13.6221 8.95427C15.0918 7.96443 15.7367 8.16975 15.7367 8.16975C16.1561 9.22422 15.8922 10.0024 15.8132 10.1976C16.3344 10.756 16.6189 11.4928 16.6073 12.2546C16.6073 15.1936 14.8062 15.8413 13.0931 16.0301C13.3684 16.2684 13.6145 16.7335 13.6145 17.4483C13.6145 18.4724 13.6055 19.2962 13.6055 19.5484C13.6055 19.7525 13.7445 19.9907 14.1345 19.9159C15.868 19.3403 17.339 18.1703 18.2845 16.6152C19.23 15.0601 19.5882 13.2212 19.2951 11.4275C19.0021 9.63381 18.0768 8.00228 16.6848 6.82471C15.2929 5.64715 13.525 5.00035 11.6974 5H11.6948Z",fill:"white"})),i5e||(i5e=o.createElement("path",{d:"M6.91179 15.9895C6.89522 16.0276 6.83403 16.039 6.78432 16.0124C6.73461 15.9857 6.69765 15.9363 6.7155 15.897C6.73334 15.8577 6.79325 15.8476 6.84296 15.8742C6.89267 15.9008 6.93091 15.9515 6.91179 15.9895Z",fill:"white"})),a5e||(a5e=o.createElement("path",{d:"M7.22443 16.3356C7.19804 16.3488 7.16784 16.3525 7.139 16.346C7.11017 16.3395 7.0845 16.3233 7.06638 16.3001C7.01667 16.2468 7.00647 16.1733 7.04471 16.1404C7.08294 16.1074 7.15178 16.1226 7.20149 16.1759C7.2512 16.2291 7.26267 16.3026 7.22443 16.3356Z",fill:"white"})),s5e||(s5e=o.createElement("path",{d:"M7.5275 16.7745C7.48033 16.8074 7.40003 16.7745 7.35541 16.7086C7.34308 16.6968 7.33327 16.6826 7.32657 16.6669C7.31986 16.6512 7.31641 16.6344 7.31641 16.6173C7.31641 16.6003 7.31986 16.5834 7.32657 16.5678C7.33327 16.5521 7.34308 16.5379 7.35541 16.5261C7.40258 16.4944 7.48288 16.5261 7.5275 16.5907C7.57211 16.6554 7.57338 16.7415 7.5275 16.7745Z",fill:"white"})),l5e||(l5e=o.createElement("path",{d:"M7.93888 17.2009C7.89682 17.2478 7.81142 17.2351 7.74132 17.1717C7.67121 17.1084 7.65464 17.0222 7.6967 16.9766C7.73876 16.9309 7.82416 16.9436 7.89682 17.0057C7.96947 17.0678 7.9835 17.1553 7.93888 17.2009Z",fill:"white"})),c5e||(c5e=o.createElement("path",{d:"M8.51615 17.4493C8.49703 17.5088 8.41035 17.5354 8.32368 17.5101C8.237 17.4847 8.17964 17.4138 8.19621 17.3529C8.21278 17.2921 8.30073 17.2642 8.38868 17.2921C8.47663 17.32 8.53272 17.3871 8.51615 17.4493Z",fill:"white"})),u5e||(u5e=o.createElement("path",{d:"M9.14654 17.4924C9.14654 17.5545 9.07516 17.6077 8.98338 17.609C8.89161 17.6103 8.81641 17.5596 8.81641 17.4975C8.81641 17.4354 8.88778 17.3822 8.97956 17.3809C9.07133 17.3796 9.14654 17.429 9.14654 17.4924Z",fill:"white"})),d5e||(d5e=o.createElement("path",{d:"M9.73317 17.3961C9.74464 17.4582 9.68091 17.5228 9.58914 17.538C9.49736 17.5532 9.41706 17.5165 9.40559 17.4557C9.39412 17.3948 9.4604 17.3289 9.54962 17.3124C9.63885 17.296 9.7217 17.334 9.73317 17.3961Z",fill:"white"})))}var g5e,y5e,b5e,x5e=o.forwardRef(v5e),w5e=(n.p,["title","titleId"]);function C5e(){return C5e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C5e.apply(this,arguments)}function j5e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function S5e(e,t){var n=e.title,r=e.titleId,i=j5e(e,w5e);return o.createElement("svg",C5e({width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,g5e||(g5e=o.createElement("rect",{x:.166016,width:24,height:24,rx:12,fill:"#EA4C89"})),y5e||(y5e=o.createElement("path",{d:"M12.5652 19.568C16.5244 19.568 19.734 16.3584 19.734 12.3992C19.734 8.44003 16.5244 5.23047 12.5652 5.23047C8.60604 5.23047 5.39648 8.44003 5.39648 12.3992C5.39648 16.3584 8.60604 19.568 12.5652 19.568Z",fill:"#EA4C89"})),b5e||(b5e=o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.566 5C8.48077 5 5.16602 8.31475 5.16602 12.4C5.16602 16.4853 8.48077 19.8 12.566 19.8C16.6432 19.8 19.966 16.4853 19.966 12.4C19.966 8.31475 16.6432 5 12.566 5ZM17.4539 8.41106C18.3367 9.48655 18.8665 10.859 18.8825 12.3438C18.6738 12.3037 16.587 11.8783 14.4842 12.1432C14.4361 12.0388 14.3959 11.9264 14.3478 11.8141C14.2194 11.5091 14.0749 11.1961 13.9304 10.8991C16.258 9.95208 17.3174 8.58764 17.4539 8.41106ZM12.566 6.09154C14.1712 6.09154 15.64 6.69349 16.7556 7.6807C16.6432 7.84122 15.6881 9.11736 13.4408 9.96008C12.4055 8.05792 11.2578 6.50087 11.0812 6.26009C11.5547 6.14772 12.0524 6.09154 12.566 6.09154ZM9.87732 6.68547C10.0459 6.91019 11.1695 8.47527 12.2209 10.3373C9.26732 11.1239 6.65886 11.1078 6.37795 11.1078C6.78727 9.14946 8.11157 7.52017 9.87732 6.68547ZM6.2415 12.408C6.2415 12.3438 6.2415 12.2796 6.2415 12.2154C6.51439 12.2234 9.58033 12.2636 12.7346 11.3165C12.9192 11.6696 13.0877 12.0308 13.2482 12.392C13.168 12.416 13.0797 12.4401 12.9994 12.4642C9.74085 13.5156 8.00723 16.3889 7.86276 16.6297C6.85951 15.5141 6.2415 14.0293 6.2415 12.408ZM12.566 18.7245C11.1053 18.7245 9.75691 18.2269 8.68944 17.3922C8.80181 17.1594 10.086 14.6874 13.6495 13.4434C13.6656 13.4354 13.6736 13.4354 13.6897 13.4274C14.5805 15.7308 14.9417 17.6651 15.038 18.2189C14.2756 18.5479 13.4408 18.7245 12.566 18.7245ZM16.0894 17.641C16.0252 17.2557 15.6881 15.4098 14.8614 13.1384C16.8439 12.8254 18.5775 13.3391 18.7942 13.4113C18.5214 15.169 17.51 16.6859 16.0894 17.641Z",fill:"white"})))}var k5e,Z5e,O5e=o.forwardRef(S5e),E5e=(n.p,["title","titleId"]);function D5e(){return D5e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D5e.apply(this,arguments)}function P5e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function A5e(e,t){var n=e.title,r=e.titleId,i=P5e(e,E5e);return o.createElement("svg",D5e({width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,k5e||(k5e=o.createElement("rect",{x:.166016,width:24,height:24,rx:12,fill:"#1877F2"})),Z5e||(Z5e=o.createElement("path",{d:"M16.8371 15.4688L17.3691 12H14.041V9.75C14.041 8.80078 14.5051 7.875 15.9957 7.875H17.5098V4.92188C17.5098 4.92188 16.1363 4.6875 14.8238 4.6875C12.0816 4.6875 10.291 6.34922 10.291 9.35625V12H7.24414V15.4688H10.291V23.8547C10.9027 23.9508 11.5285 24 12.166 24C12.8035 24 13.4293 23.9508 14.041 23.8547V15.4688H16.8371Z",fill:"white"})))}var M5e,T5e,I5e=o.forwardRef(A5e),R5e=(n.p,["title","titleId"]);function F5e(){return F5e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},F5e.apply(this,arguments)}function B5e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function L5e(e,t){var n=e.title,r=e.titleId,i=B5e(e,R5e);return o.createElement("svg",F5e({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,M5e||(M5e=o.createElement("g",{clipPath:"url(#clip0_2283_46990)"},o.createElement("rect",{width:24,height:24,rx:6,fill:"#0A66C2"}),o.createElement("g",{clipPath:"url(#clip1_2283_46990)"},o.createElement("path",{d:"M5 6.86851C5 6.41805 5.15766 6.04643 5.47297 5.75364C5.78828 5.46085 6.1982 5.31445 6.7027 5.31445C7.1982 5.31445 7.59909 5.45859 7.90541 5.74689C8.22072 6.04418 8.37838 6.43156 8.37838 6.90905C8.37838 7.34148 8.22523 7.70183 7.91892 7.99013C7.60361 8.28743 7.18919 8.43607 6.67568 8.43607H6.66216C6.16666 8.43607 5.76577 8.28743 5.45946 7.99013C5.15315 7.69283 5 7.31895 5 6.86851ZM5.17568 18.6928V9.6658H8.17568V18.6928H5.17568ZM9.83784 18.6928H12.8378V13.6523C12.8378 13.337 12.8739 13.0937 12.9459 12.9226C13.0721 12.6162 13.2635 12.3572 13.5203 12.1455C13.777 11.9338 14.0991 11.828 14.4865 11.828C15.4955 11.828 16 12.5081 16 13.8685V18.6928H19V13.5172C19 12.1838 18.6847 11.1726 18.0541 10.4834C17.4234 9.79418 16.5901 9.44959 15.5541 9.44959C14.3919 9.44959 13.4865 9.94959 12.8378 10.9496V10.9766H12.8243L12.8378 10.9496V9.6658H9.83784C9.85585 9.95409 9.86486 10.8505 9.86486 12.355C9.86486 13.8595 9.85585 15.9721 9.83784 18.6928Z",fill:"white"})))),T5e||(T5e=o.createElement("defs",null,o.createElement("clipPath",{id:"clip0_2283_46990"},o.createElement("rect",{width:24,height:24,rx:12,fill:"white"})),o.createElement("clipPath",{id:"clip1_2283_46990"},o.createElement("rect",{width:14,height:14,fill:"white",transform:"translate(5 5)"})))))}var N5e,_5e,z5e,H5e,W5e=o.forwardRef(L5e),V5e=(n.p,["title","titleId"]);function U5e(){return U5e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U5e.apply(this,arguments)}function q5e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function G5e(e,t){var n=e.title,r=e.titleId,i=q5e(e,V5e);return o.createElement("svg",U5e({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,N5e||(N5e=o.createElement("rect",{width:24,height:24,rx:12,fill:"black"})),_5e||(_5e=o.createElement("rect",{width:24,height:24,rx:12,fill:"black",fillOpacity:.2})),z5e||(z5e=o.createElement("rect",{width:24,height:24,rx:12,fill:"black",fillOpacity:.2})),H5e||(H5e=o.createElement("path",{d:"M5.03413 5L10.4394 12.7218L5 19H6.22419L10.9864 13.5034L14.834 19H19L13.2906 10.8438L18.3536 5H17.1294L12.7437 10.0623L9.20008 5H5.03413ZM6.83439 5.96344H8.74824L17.1995 18.0364H15.2856L6.83439 5.96344Z",fill:"white"})))}var Y5e,K5e,J5e=o.forwardRef(G5e),X5e=(n.p,["title","titleId"]);function Q5e(){return Q5e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Q5e.apply(this,arguments)}function $5e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function e4e(e,t){var n=e.title,r=e.titleId,i=$5e(e,X5e);return o.createElement("svg",Q5e({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,Y5e||(Y5e=o.createElement("g",{clipPath:"url(#clip0_2283_46993)"},o.createElement("path",{d:"M6.08577 23.9151C4.65848 23.8502 3.88314 23.6127 3.36743 23.4115C2.6841 23.1455 2.19693 22.8288 1.68407 22.3166C1.17122 21.8045 0.853806 21.3173 0.589176 20.634C0.388029 20.1183 0.150504 19.3429 0.0855946 17.9157C0.0142658 16.3728 0 15.9099 0 12.0011C0 8.09225 0.0156923 7.63004 0.0848813 6.08577C0.14979 4.65848 0.388742 3.88457 0.588463 3.36743C0.854519 2.6841 1.17193 2.19693 1.68336 1.68336C2.1955 1.17122 2.68268 0.853092 3.36672 0.588463C3.88243 0.387315 4.65777 0.14979 6.08506 0.0848813C7.62861 0.0142658 8.09225 0 11.9996 0C15.9085 0 16.3707 0.0156923 17.9149 0.0848813C19.3422 0.14979 20.1161 0.388742 20.6333 0.588463C21.3166 0.853092 21.8038 1.17122 22.3166 1.68336C22.8295 2.1955 23.1455 2.68339 23.4115 3.36672C23.6127 3.88243 23.8502 4.65777 23.9151 6.08506C23.9857 7.62933 24 8.09154 24 12.0004C24 15.9077 23.9857 16.3714 23.9151 17.9157C23.8502 19.3429 23.6113 20.1183 23.4115 20.634C23.1455 21.3173 22.8288 21.8045 22.3166 22.3166C21.8045 22.8288 21.3166 23.1455 20.6333 23.4115C20.1176 23.6127 19.3422 23.8502 17.9149 23.9151C16.3721 23.9857 15.9085 24 11.9996 24C8.09225 24 7.62862 23.9864 6.08577 23.9151Z",fill:"url(#paint0_radial_2283_46993)"}),o.createElement("path",{d:"M6.08577 23.9151C4.65848 23.8502 3.88314 23.6127 3.36743 23.4115C2.6841 23.1455 2.19693 22.8288 1.68407 22.3166C1.17122 21.8045 0.853806 21.3173 0.589176 20.634C0.388029 20.1183 0.150504 19.3429 0.0855946 17.9157C0.0142658 16.3728 0 15.9099 0 12.0011C0 8.09225 0.0156923 7.63004 0.0848813 6.08577C0.14979 4.65848 0.388742 3.88457 0.588463 3.36743C0.854519 2.6841 1.17193 2.19693 1.68336 1.68336C2.1955 1.17122 2.68268 0.853092 3.36672 0.588463C3.88243 0.387315 4.65777 0.14979 6.08506 0.0848813C7.62861 0.0142658 8.09225 0 11.9996 0C15.9085 0 16.3707 0.0156923 17.9149 0.0848813C19.3422 0.14979 20.1161 0.388742 20.6333 0.588463C21.3166 0.853092 21.8038 1.17122 22.3166 1.68336C22.8295 2.1955 23.1455 2.68339 23.4115 3.36672C23.6127 3.88243 23.8502 4.65777 23.9151 6.08506C23.9857 7.62933 24 8.09154 24 12.0004C24 15.9077 23.9857 16.3714 23.9151 17.9157C23.8502 19.3429 23.6113 20.1183 23.4115 20.634C23.1455 21.3173 22.8288 21.8045 22.3166 22.3166C21.8045 22.8288 21.3166 23.1455 20.6333 23.4115C20.1176 23.6127 19.3422 23.8502 17.9149 23.9151C16.3721 23.9857 15.9085 24 11.9996 24C8.09225 24 7.62862 23.9864 6.08577 23.9151Z",fill:"url(#paint1_radial_2283_46993)"}),o.createElement("path",{d:"M9.27709 11.915C9.27709 10.4579 10.4579 9.27645 11.915 9.27645C13.3721 9.27645 14.5535 10.4579 14.5535 11.915C14.5535 13.3721 13.3721 14.5535 11.915 14.5535C10.4579 14.5535 9.27709 13.3721 9.27709 11.915ZM7.85074 11.915C7.85074 14.1597 9.67031 15.9793 11.915 15.9793C14.1597 15.9793 15.9793 14.1597 15.9793 11.915C15.9793 9.67031 14.1597 7.85074 11.915 7.85074C9.67031 7.85074 7.85081 9.67018 7.85081 11.915M15.1904 7.68959C15.1903 7.87745 15.246 8.0611 15.3503 8.21734C15.4546 8.37357 15.6029 8.49537 15.7764 8.56733C15.9499 8.63929 16.1409 8.65817 16.3251 8.6216C16.5094 8.58502 16.6787 8.49463 16.8116 8.36185C16.9444 8.22907 17.035 8.05987 17.0717 7.87564C17.1084 7.69141 17.0897 7.50043 17.0179 7.32685C16.946 7.15327 16.8244 7.00488 16.6682 6.90045C16.5121 6.79603 16.3285 6.74025 16.1406 6.74017H16.1402C15.8884 6.74029 15.647 6.84034 15.4689 7.01836C15.2908 7.19637 15.1906 7.43779 15.1904 7.68959ZM8.71734 18.3577C7.94566 18.3225 7.52623 18.194 7.24749 18.0854C6.87796 17.9415 6.61429 17.7702 6.33708 17.4934C6.05986 17.2165 5.88827 16.9531 5.74504 16.5836C5.63638 16.305 5.50784 15.8854 5.47276 15.1137C5.43439 14.2794 5.42673 14.0288 5.42673 11.9151C5.42673 9.80144 5.43502 9.55152 5.47276 8.71652C5.5079 7.94484 5.63739 7.5261 5.74504 7.24667C5.8889 6.87713 6.06024 6.61347 6.33708 6.33625C6.61391 6.05904 6.87732 5.88744 7.24749 5.74421C7.5261 5.63556 7.94566 5.50702 8.71734 5.47194C9.55164 5.43356 9.80227 5.4259 11.915 5.4259C14.0277 5.4259 14.2786 5.43407 15.1136 5.47206C15.8853 5.50721 16.304 5.6367 16.5835 5.74434C16.953 5.88757 17.2167 6.05955 17.4939 6.33638C17.7711 6.61322 17.942 6.87726 18.0859 7.2468C18.1946 7.5254 18.3231 7.94496 18.3582 8.71664C18.3966 9.55164 18.4042 9.80157 18.4042 11.9153C18.4042 14.0289 18.3966 14.2789 18.3582 15.1139C18.323 15.8855 18.1939 16.305 18.0859 16.5837C17.942 16.9532 17.7707 17.2169 17.4939 17.4935C17.217 17.7701 16.953 17.9417 16.5835 18.0855C16.3048 18.1942 15.8853 18.3227 15.1136 18.3578C14.2793 18.3962 14.0287 18.4038 11.915 18.4038C9.80132 18.4038 9.55139 18.3962 8.71734 18.3578M8.6518 4.04793C7.8092 4.08631 7.23344 4.21991 6.73061 4.41557C6.21018 4.61762 5.76903 4.8887 5.32852 5.32852C4.888 5.76834 4.61762 6.20955 4.41557 6.73061C4.21991 7.23375 4.08631 7.8092 4.04793 8.6518C4.00893 9.49573 4 9.76554 4 11.915C4 14.0645 4.00893 14.3343 4.04793 15.1782C4.08631 16.0209 4.21991 16.5962 4.41557 17.0994C4.61762 17.6198 4.88806 18.0619 5.32852 18.5015C5.76897 18.9411 6.20955 19.2118 6.73061 19.4144C7.23439 19.6101 7.8092 19.7437 8.6518 19.7821C9.49618 19.8204 9.76554 19.83 11.915 19.83C14.0645 19.83 14.3343 19.8211 15.1782 19.7821C16.0209 19.7437 16.5962 19.6101 17.0994 19.4144C17.6198 19.2118 18.061 18.9413 18.5015 18.5015C18.942 18.0617 19.2118 17.6198 19.4144 17.0994C19.6101 16.5962 19.7443 16.0208 19.7821 15.1782C19.8204 14.3336 19.8294 14.0645 19.8294 11.915C19.8294 9.76554 19.8204 9.49573 19.7821 8.6518C19.7437 7.80914 19.6101 7.23344 19.4144 6.73061C19.2118 6.21018 18.9413 5.76903 18.5015 5.32852C18.0617 4.888 17.6198 4.61762 17.1 4.41557C16.5962 4.21991 16.0208 4.08567 15.1788 4.04793C14.3348 4.00937 14.0651 4 11.916 4C9.76681 4 9.49649 4.00893 8.65212 4.04793",fill:"white"}))),K5e||(K5e=o.createElement("defs",null,o.createElement("radialGradient",{id:"paint0_radial_2283_46993",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(1.55326 23.4742) scale(30.4711)"},o.createElement("stop",{offset:.09,stopColor:"#FA8F21"}),o.createElement("stop",{offset:.78,stopColor:"#D82D7E"})),o.createElement("radialGradient",{id:"paint1_radial_2283_46993",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(16.624 22.7036) scale(26.8148)"},o.createElement("stop",{offset:.64,stopColor:"#8C3AAA",stopOpacity:0}),o.createElement("stop",{offset:1,stopColor:"#8C3AAA"})),o.createElement("clipPath",{id:"clip0_2283_46993"},o.createElement("rect",{width:24,height:24,rx:12,fill:"white"})))))}var t4e,n4e=o.forwardRef(e4e),r4e=(n.p,function(e){var t,n,r,o,i,a,s,c,d,p,f,h,m,v,g=e.isEditModalOpen,y=e.setIsEditModalOpen,b=e.socialIcons,x=K2e().companyData,w=(0,Ms.J)(),C=fd({defaultValues:{socialMediaLinks:{medium:null!==(t=null===x||void 0===x||null===(n=x.socialMediaLinks)||void 0===n?void 0:n.medium)&&void 0!==t?t:"",dribbble:null!==(r=null===x||void 0===x||null===(o=x.socialMediaLinks)||void 0===o?void 0:o.dribbble)&&void 0!==r?r:"",facebook:null!==(i=null===x||void 0===x||null===(a=x.socialMediaLinks)||void 0===a?void 0:a.facebook)&&void 0!==i?i:"",github:null!==(s=null===x||void 0===x||null===(c=x.socialMediaLinks)||void 0===c?void 0:c.github)&&void 0!==s?s:"",instagram:null!==(d=null===x||void 0===x||null===(p=x.socialMediaLinks)||void 0===p?void 0:p.instagram)&&void 0!==d?d:"",linkedin:null!==(f=null===x||void 0===x||null===(h=x.socialMediaLinks)||void 0===h?void 0:h.linkedin)&&void 0!==f?f:"",twitter:null!==(m=null===x||void 0===x||null===(v=x.socialMediaLinks)||void 0===v?void 0:v.twitter)&&void 0!==m?m:""}},mode:"onChange"}),j=(0,As.Z)({resource:"companies"}),S=j.mutate,k=j.isLoading,Z=/^(http|https):\/\/[^ "]+$/;return(0,u.jsx)(y4,{width:"40%",isModalOpen:g,setIsModalOpen:y,title:"Social Media",onCancel:function(){return y(!1)},automaticallyCloseModalOnButtonClick:!1,isLoading:k,onConfirm:C.handleSubmit((function(e){S({id:null===x||void 0===x?void 0:x.id,data:e},{onSuccess:function(){w(),y(!1)}})})),confirmButtonText:"Save",message:(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},C),{},{children:(0,u.jsx)(da.Z,{component:"form",sx:{maxHeight:"398px",overflowY:"auto"},children:Object.entries(b).map((function(e){var t=(0,Le.Z)(e,2),n=t[0],r=t[1],o=b[n.toLowerCase()];return(0,u.jsx)(ms,{spacing:1,direction:"row",alignItems:"center",justifyContent:"space-between",mr:"10px",children:(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Text,{}),placeholder:"Type",name:"socialMediaLinks.".concat(n),label:n,sx:{width:"100%",minHeight:"none",mb:"10px"},adornment:{icon:(0,u.jsx)(o,{})},defaultValue:r,rules:{pattern:{value:Z,message:"Invalid URL. Please include http:// or https://"}}})},n)}))})})),iconProps:{icon:(0,u.jsx)(yA,{fill:tr.E4[500]}),wrapperBackgroundColor:tr.E4[100]}})}),o4e={medium:p5e,dribbble:O5e,facebook:I5e,github:x5e,instagram:n4e,linkedin:W5e,twitter:J5e},i4e=function(e){var t=e.isEditModalOpen,n=e.setIsEditModalOpen,r=K2e().companyData;return(0,u.jsxs)(ms,{direction:"row",gap:1,flexWrap:"wrap",alignItems:"flex-start",justifyContent:"flex-start",children:[(null===r||void 0===r?void 0:r.socialMediaLinks)&&Object.entries(r.socialMediaLinks).map((function(e){var t=(0,Le.Z)(e,2),n=t[0],r=t[1];if(r){var o=o4e[n.toLowerCase()];return(0,u.jsx)("a",{href:r,target:"_blank",rel:"noopener noreferrer",children:o&&(0,u.jsx)(Ca,{sx:{width:"24px",height:"24px"},children:(0,u.jsx)(o,{})})},n)}})),r&&t&&(0,u.jsx)(r4e,{isEditModalOpen:t,setIsEditModalOpen:n,socialIcons:o4e})]})},a4e=function(e){var t,n=e.isEditModalOpen,r=e.setIsEditModalOpen,o=K2e().companyData,i=(0,Ms.J)(),a=fd({defaultValues:{services:null!==(t=null===o||void 0===o?void 0:o.services)&&void 0!==t?t:[]},mode:"onChange"}),s=a.handleSubmit,c=a.getValues,d=(0,As.Z)({resource:"companies"}),p=d.mutate,f=d.isLoading;return(0,u.jsx)(y4,{width:"40%",isModalOpen:n,setIsModalOpen:r,title:"Services",onCancel:function(){return r(!1)},automaticallyCloseModalOnButtonClick:!1,isLoading:f,onConfirm:s((function(){p({id:null===o||void 0===o?void 0:o.id,data:{services:c("services")}},{onSuccess:function(){i(),r(!1)}})})),confirmButtonText:"Save",message:(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},a),{},{children:(0,u.jsx)(tn,{component:"form",children:(0,u.jsx)(f0,{required:!0,input:(0,u.jsx)(f0.Autocomplete,{}),choices:Kt.Sj,name:"services",label:"Services",multiple:!0,placeholder:"Select offered services",sx:{width:"100%"}})})})),iconProps:{icon:(0,u.jsx)(yA,{fill:tr.E4[500]}),wrapperBackgroundColor:tr.E4[100]}})},s4e=function(e){var t,n=e.isEditModalOpen,r=e.setIsEditModalOpen,o=K2e(),i=o.companyData,a=o.chipLabelTruncateValue;return(0,u.jsx)(ms,{direction:"row",gap:1,flexWrap:"wrap",alignItems:"flex-start",justifyContent:"flex-start",children:(0,u.jsxs)(u.Fragment,{children:[n&&(0,u.jsx)(a4e,{isEditModalOpen:n,setIsEditModalOpen:r}),null===i||void 0===i||null===(t=i.services)||void 0===t?void 0:t.map((function(e){return(0,u.jsx)(_d,{tooltipTitle:Kt.Sj.get(e),label:e&&(0,rs.$G)(Kt.Sj.get(e),a),sx:{width:"fit-content",textTransform:"capitalize"}},e)}))]})})},l4e=function(e){var t,n=e.isEditModalOpen,r=e.setIsEditModalOpen,o=K2e().companyData,i=(0,Ms.J)(),a=fd({mode:"onChange",defaultValues:{techTools:null!==(t=null===o||void 0===o?void 0:o.techTools)&&void 0!==t?t:[]}}),s=(0,As.Z)({resource:"companies"}),c=s.mutate,d=s.isLoading;return(0,u.jsx)(y4,{width:"40%",title:"Tech tools",onCancel:function(){return r(!1)},onConfirm:a.handleSubmit((function(e){c({id:null===o||void 0===o?void 0:o.id,data:e},{onSuccess:function(){i(),r(!1)}})})),isModalOpen:n,setIsModalOpen:r,confirmButtonText:"Save",automaticallyCloseModalOnButtonClick:!1,isLoading:d,iconProps:{icon:(0,u.jsx)(yA,{fill:tr.E4[500]}),wrapperBackgroundColor:tr.E4[100]},message:(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},a),{},{children:(0,u.jsx)(da.Z,{component:"form",children:(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Autocomplete,{}),choices:T$.oz,name:"techTools",label:"Tech tools",multiple:!0,placeholder:"Select tech tools",sx:{width:"100%"}})})}))})},c4e=function(e){var t,n=e.isEditModalOpen,r=e.setIsEditModalOpen,o=K2e(),i=o.companyData,a=o.chipLabelTruncateValue;return(0,u.jsxs)(ms,{direction:"row",gap:1,flexWrap:"wrap",alignItems:"flex-start",justifyContent:"flex-start",children:[null===i||void 0===i||null===(t=i.techTools)||void 0===t?void 0:t.map((function(e){return(0,u.jsx)(_d,{tooltipTitle:T$.oz.get(e),label:e&&(0,rs.$G)(T$.oz.get(e),a),sx:{width:"fit-content",textTransform:"capitalize"}},e)})),i&&n&&(0,u.jsx)(l4e,{isEditModalOpen:n,setIsEditModalOpen:r})]})},u4e=function(e){var t,n=e.isEditModalOpen,r=e.setIsEditModalOpen,o=(0,Ms.J)(),i=K2e().companyData,a=fd({mode:"onChange",defaultValues:{techPlatforms:null!==(t=null===i||void 0===i?void 0:i.techPlatforms)&&void 0!==t?t:[]}}),s=(0,As.Z)({resource:"companies"}),c=s.mutate,d=s.isLoading;return(0,u.jsx)(y4,{width:"40%",title:"Tech platforms",onCancel:function(){return r(!1)},onConfirm:a.handleSubmit((function(e){c({id:null===i||void 0===i?void 0:i.id,data:e},{onSuccess:function(){o(),r(!1)}})})),isModalOpen:n,setIsModalOpen:r,automaticallyCloseModalOnButtonClick:!1,isLoading:d,confirmButtonText:"Save",iconProps:{icon:(0,u.jsx)(yA,{fill:tr.E4[500]}),wrapperBackgroundColor:tr.E4[100]},message:(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},a),{},{children:(0,u.jsx)(da.Z,{component:"form",children:(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Autocomplete,{}),choices:T$.VA,name:"techPlatforms",label:"Tech platforms",multiple:!0,placeholder:"Select tech platforms",sx:{width:"100%"}})})}))})},d4e=function(e){var t,n=e.isEditModalOpen,r=e.setIsEditModalOpen,o=K2e(),i=o.companyData,a=o.chipLabelTruncateValue;return(0,u.jsxs)(ms,{direction:"row",gap:1,flexWrap:"wrap",alignItems:"flex-start",justifyContent:"flex-start",children:[null===i||void 0===i||null===(t=i.techPlatforms)||void 0===t?void 0:t.map((function(e){return(0,u.jsx)(_d,{tooltipTitle:T$.VA.get(e),label:e&&(0,rs.$G)(T$.VA.get(e),a),sx:{width:"fit-content",textTransform:"capitalize"}},e)})),i&&n&&(0,u.jsx)(u4e,{isEditModalOpen:n,setIsEditModalOpen:r})]})},p4e=function(e){var t,n=e.isEditModalOpen,r=e.setIsEditModalOpen,o=K2e().companyData,i=(0,Ms.J)(),a=fd({defaultValues:{techLanguages:null!==(t=null===o||void 0===o?void 0:o.techLanguages)&&void 0!==t?t:[]},mode:"onChange"}),s=a.handleSubmit,c=a.getValues,d=(0,As.Z)({resource:"companies"}).mutate;return(0,u.jsx)(y4,{width:"40%",isModalOpen:n,setIsModalOpen:r,title:"Programming languages",onCancel:function(){return r(!1)},automaticallyCloseModalOnButtonClick:!1,onConfirm:s((function(){d({id:null===o||void 0===o?void 0:o.id,data:{techLanguages:c("techLanguages")}},{onSuccess:function(){i(),r(!1)}})})),confirmButtonText:"Save",message:(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},a),{},{children:(0,u.jsx)(tn,{component:"form",children:(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Autocomplete,{}),choices:T$.G3,name:"techLanguages",label:"Programming languages",multiple:!0,placeholder:"Programming languages",sx:{width:"100%"}})})})),iconProps:{icon:(0,u.jsx)(yA,{fill:tr.E4[500]}),wrapperBackgroundColor:tr.E4[100]}})},f4e=function(e){var t,n=e.isEditModalOpen,r=e.setIsEditModalOpen,o=K2e(),i=o.companyData,a=o.chipLabelTruncateValue;return(0,u.jsx)(nn.Z,{direction:"row",gap:1,flexWrap:"wrap",alignItems:"flex-start",justifyContent:"flex-start",children:(0,u.jsxs)(u.Fragment,{children:[n&&(0,u.jsx)(p4e,{isEditModalOpen:n,setIsEditModalOpen:r}),null===i||void 0===i||null===(t=i.techLanguages)||void 0===t?void 0:t.map((function(e){return(0,u.jsx)(_d,{tooltipTitle:T$.G3.get(e),label:e&&(0,rs.$G)(T$.G3.get(e),a),sx:{width:"fit-content",textTransform:"capitalize"}},e)}))]})})},h4e=["title","titleId"];function m4e(){return m4e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m4e.apply(this,arguments)}function v4e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function g4e(e,t){var n=e.title,r=e.titleId,i=v4e(e,h4e);return o.createElement("svg",m4e({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,t4e||(t4e=o.createElement("path",{d:"M10.0111 1.66602C8.8619 1.66602 7.93357 2.40685 7.64107 3.46268C6.88691 3.67185 6.24272 4.28018 6.00106 4.99934C5.54939 4.99934 5.1544 4.99934 5.01107 4.99934C3.17023 4.99934 1.67773 6.49184 1.67773 8.33267V14.9993C1.67773 16.8402 3.17023 18.3327 5.01107 18.3327H15.0111C16.8519 18.3327 18.3444 16.8402 18.3444 14.9993V8.33267C18.3444 6.49184 16.8519 4.99934 15.0111 4.99934L14.0211 5.02518C13.8186 4.32935 13.1236 3.59351 12.3811 3.43685C12.0886 2.38101 11.1602 1.66602 10.0111 1.66602ZM10.0111 3.33268C10.4711 3.33268 10.8444 3.70601 10.8444 4.16601C10.8444 4.62601 11.2177 4.99934 11.6777 4.99934C12.1377 4.99934 12.5111 5.37268 12.5111 5.83268C12.5111 6.29268 12.1377 6.66601 11.6777 6.66601H8.3444C7.8844 6.66601 7.51107 6.29268 7.51107 5.83268C7.51107 5.37268 7.8844 4.99934 8.3444 4.99934C8.8044 4.99934 9.17773 4.62601 9.17773 4.16601C9.17773 3.70601 9.55107 3.33268 10.0111 3.33268ZM12.5111 9.99934C12.7244 9.99934 12.9469 10.071 13.1102 10.2335C13.4352 10.5593 13.4352 11.106 13.1102 11.4318L9.7769 14.7652C9.45106 15.0902 8.90441 15.0902 8.57857 14.7652L6.91191 13.0985C6.58691 12.7727 6.58691 12.226 6.91191 11.9002C7.23774 11.5752 7.7844 11.5752 8.11023 11.9002L9.17773 12.9677L11.9119 10.2335C12.0752 10.071 12.2977 9.99934 12.5111 9.99934Z",fill:"#6D51F6"})))}var y4e=o.forwardRef(g4e),b4e=(n.p,function(e){var t=e.isModalOpen,n=e.setIsModalOpen,r=(0,Ms.J)(),o=K2e().companyData,i=fd({mode:"onChange",defaultValues:{description:null===o||void 0===o?void 0:o.description}}),a=(0,As.Z)({resource:"companies"}),s=a.mutate,c=a.isLoading;return(0,u.jsx)(y4,{isModalOpen:t,setIsModalOpen:n,onCancel:function(){return n(!1)},onConfirm:i.handleSubmit((function(e){s({id:null===o||void 0===o?void 0:o.id,data:e},{onSuccess:function(){r(),n(!1)}})})),automaticallyCloseModalOnButtonClick:!1,confirmButtonText:"Save",title:"About your company",width:"40%",isLoading:c,iconProps:{icon:(0,u.jsx)(y4e,{fill:tr.E4[500]}),wrapperBackgroundColor:"#E3DBFC"},message:(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},i),{},{children:(0,u.jsx)(g$,{name:"description",items:P$,required:!0})}))})}),x4e=function(e){var t=e.isEditModalOpen,n=e.setIsEditModalOpen,r=K2e().companyData,i=(0,o.useState)(0),a=(0,Le.Z)(i,2),s=a[0],l=a[1];return(0,o.useEffect)((function(){l(s+1)}),[r]),(0,u.jsxs)(da.Z,{sx:{maxHeight:{sm:"400px",xl:"230px"},overflowY:"auto",wordBreak:"break-word","&::-webkit-scrollbar":{width:"0.1em"},"&::-webkit-scrollbar-thumb":{backgroundColor:"rgba(227, 231, 240)",borderRadius:"4px",outline:"1px solid slategrey",outlineColor:"rgba(227, 231, 240)",wordBreak:"break-word",overflowWrap:"break-word"}},children:[(null===r||void 0===r?void 0:r.description)&&(0,u.jsx)(m$,{items:[],isEditable:!1,content:null===r||void 0===r?void 0:r.description},s),r&&t&&(0,u.jsx)(b4e,{isModalOpen:t,setIsModalOpen:n})]})},w4e=function(){var e=K2e().companyData,t=null===e||void 0===e?void 0:e.team;return(0,u.jsxs)(nn.Z,{direction:"row",gap:1,alignItems:"flex-start",sx:{flexWrap:{md:"wrap"}},children:[t&&t.length>0&&t.slice(0,6).map((function(e){return(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",spacing:1,children:[" ",(0,u.jsx)(Ca,{src:e.avatar,alt:e.name,sx:{width:32,height:32,boxShadow:"0px 1px 3px 1px #00000026"}})]},e.id)})),t&&t.length>6&&(0,u.jsx)(nn.Z,{sx:{alignItems:"center",justifyContent:"center",bgcolor:"primaryLight.100",borderRadius:"50%",boxShadow:"0px 1px 3px 1px #00000026",width:32,height:32},children:(0,u.jsxs)(rn.Z,{variant:"body1",fontSize:"1rem",color:"primaryLight.500",children:["+",t.length-6]})})]})},C4e=function(){var e=(0,ze.s0)();return(0,u.jsxs)(nn.Z,{spacing:4,children:[(0,u.jsx)(n3e,{sx:{justifyContent:"space-between"},row:[(0,u.jsx)(OQe,{title:"Overview",content:function(e,t){return(0,u.jsx)(o3e,{isOverviewModalOpen:e,setIsOverviewModalOpen:t})}}),(0,u.jsx)(OQe,{title:"About",content:function(e,t){return(0,u.jsx)(x4e,{isEditModalOpen:e,setIsEditModalOpen:t})}}),(0,u.jsxs)(nn.Z,{spacing:2,sx:{width:"100%"},children:[(0,u.jsx)(OQe,{title:"Team",actionButton:(0,u.jsx)(Wo,{variant:"primaryText",onClick:function(){return e("./team")},sx:{fontSize:"14px"},children:"Add"}),content:(0,u.jsx)(w4e,{})}),(0,u.jsx)(OQe,{title:"Clients",actionButton:(0,u.jsx)(Wo,{variant:"primaryText",onClick:function(){},sx:{fontSize:"14px"},children:"View all"}),content:function(e,t){return(0,u.jsx)(b3e,{isEditModalOpen:e,setIsEditModalOpen:t})}})]})]}),(0,u.jsx)(un,{}),(0,u.jsx)(n3e,{sx:{justifyContent:"space-between"},row:[(0,u.jsxs)(nn.Z,{spacing:2,sx:{width:"100%"},children:[(0,u.jsx)(OQe,{title:"Office Locations",content:function(e,t){return(0,u.jsx)(T3e,{isEditModalOpen:e,setIsEditModalOpen:t})}}),(0,u.jsx)(OQe,{title:"Working Languages",content:function(e,t){return(0,u.jsx)(V3e,{isEditModalOpen:e,setIsEditModalOpen:t})}})]}),(0,u.jsxs)(nn.Z,{spacing:2,sx:{width:"100%"},children:[(0,u.jsx)(OQe,{title:"Certifications",content:function(e,t){return(0,u.jsx)(q3e,{isEditModalOpen:e,setIsEditModalOpen:t})}}),(0,u.jsx)(OQe,{title:"Awards",content:function(e,t){return(0,u.jsx)(Y3e,{isEditModalOpen:e,setIsEditModalOpen:t})}})]}),(0,u.jsxs)(nn.Z,{spacing:2,sx:{width:"100%"},children:[(0,u.jsx)(OQe,{title:"Target Industries",content:function(e,t){return(0,u.jsx)(J3e,{isEditModalOpen:e,setIsEditModalOpen:t})}}),(0,u.jsx)(OQe,{title:"Target Markets",content:function(e,t){return(0,u.jsx)(Q3e,{isEditModalOpen:e,setIsEditModalOpen:t})}})]})]}),(0,u.jsx)(un,{}),(0,u.jsx)(n3e,{sx:{justifyContent:"space-between"},row:[(0,u.jsx)(OQe,{title:"Social Media",content:function(e,t){return(0,u.jsx)(i4e,{isEditModalOpen:e,setIsEditModalOpen:t})}}),(0,u.jsxs)(nn.Z,{spacing:2,sx:{width:"100%"},children:[(0,u.jsx)(OQe,{title:"Services",content:function(e,t){return(0,u.jsx)(s4e,{isEditModalOpen:e,setIsEditModalOpen:t})}}),(0,u.jsx)(OQe,{title:"Tech Tools",content:function(e,t){return(0,u.jsx)(c4e,{isEditModalOpen:e,setIsEditModalOpen:t})}})]}),(0,u.jsxs)(nn.Z,{spacing:2,sx:{width:"100%"},children:[(0,u.jsx)(OQe,{title:"Tech Platforms",content:function(e,t){return(0,u.jsx)(d4e,{isEditModalOpen:e,setIsEditModalOpen:t})}}),(0,u.jsx)(OQe,{title:"Programming Languages",content:function(e,t){return(0,u.jsx)(f4e,{isEditModalOpen:e,setIsEditModalOpen:t})}})]})]})]})};var j4e=n.p+"static/media/seller_dashboard_createstudy.2e578396cb73dcae4aeaeec1271f6800.svg";var S4e,k4e,Z4e,O4e=n.p+"static/media/seller_dashboard_createstudy_disabled.b301e3042eb3ea1799bc234986ca2772.svg",E4e=function(){var e=K2e(),t=e.companyData,n=e.companyCaseStudies,r=(0,ze.s0)();return(0,u.jsxs)(ms,{spacing:3,children:[(0,u.jsx)(da.Z,{component:"img",src:"pending"===(null===t||void 0===t?void 0:t.status)||"rejected"===(null===t||void 0===t?void 0:t.status)?O4e:j4e,sx:{objectFit:"cover",height:200,width:"100%"}}),(0,u.jsx)(rn.Z,{color:"primaryDark.600",alignSelf:"center",textAlign:"center",sx:{px:4},children:"Client-reviewed case studies are the first step to winning new projects on Spona."}),(0,u.jsx)(Wo,{endIcon:(0,u.jsx)(e4,{fill:"#fff",style:{width:16,height:16}}),sx:{width:"auto",alignSelf:"center"},variant:"primary",disabled:"pending"===(null===t||void 0===t?void 0:t.status)||"rejected"===(null===t||void 0===t?void 0:t.status),onClick:function(){return r("/dashboard/case-studies/")},children:n&&(null===n||void 0===n?void 0:n.length)>0?"case studies":"create case study"})]})},D4e=(0,o.memo)((function(e){var t=e.width,n=e.value,r=(0,o.useRef)(null),i=(0,o.useRef)(null),a=(0,o.useState)(null),s=(0,Le.Z)(a,2),l=s[0],c=s[1],d=(0,o.useState)(!1),p=(0,Le.Z)(d,2),f=p[0],h=p[1],m=(0,o.useState)(!1),v=(0,Le.Z)(m,2),g=v[0],y=v[1];return(0,o.useEffect)((function(){if(f){var e=function(e){"Escape"!==e.key&&"Esc"!==e.key||h(!1)};return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}}}),[h,f]),(0,u.jsxs)(tn,{onMouseEnter:function(){var e,t=(e=i.current).scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth;y(t),c(r.current),h(!0)},onMouseLeave:function(){h(!1)},sx:{alignItems:"center",lineHeight:"24px",width:1,height:1,position:"relative",display:"flex"},children:[(0,u.jsx)(tn,{ref:r,sx:{height:1,width:t,display:"block",position:"absolute",top:0}}),(0,u.jsx)(tn,{ref:i,sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:n}),g&&(0,u.jsx)(Bl.Z,{open:f&&null!==l,anchorEl:l,style:{width:"fit-content",marginLeft:-17},children:(0,u.jsx)(ao.Z,{elevation:1,sx:{display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"primaryDark.700",color:"common.white"},children:(0,u.jsx)(rn.Z,{variant:"body4",style:{padding:8},children:n})})})]})})),P4e=function(e){return(0,u.jsx)(D4e,{value:e.value||"",width:e.colDef.computedWidth})},A4e=function(){var e=(0,ze.s0)(),t=K2e().companyData,n=[{field:"status",headerName:"Status",flex:.2,renderCell:function(e){return(0,u.jsx)(EI,{text:e.value})}},{field:"projectName",headerName:"Project Name",flex:.5,renderCell:P4e},{field:"published",flex:.35,headerName:"Pitched",headerAlign:"center",align:"center",renderCell:function(e){return null!==e.value?(0,u.jsx)(rn.Z,{children:(0,rs.qJ)(e.value)}):"-"}}];return(0,u.jsx)(u.Fragment,{children:t&&(0,u.jsx)(k2,{disableTabView:!0,disableSelectionOnClick:!0,resource:"timed-project-pitches?company=".concat(t.id),columns:n,height:"215px",withDashboardCard:{headline:"Project Pitches",linkText:"View all",link:"./pitches",sx:{px:2,width:{md:"100%"},"& .MuiDataGrid-cell":{px:"0px !important"}}},onRowClick:function(t){e("/dashboard/pitches",{state:t.row.content})},visualStyle:"secondary",sx:{".MuiDataGrid-row":{".MuiDataGrid-cell:first-child":{px:.5}}}})})},M4e=function(e){var n=e.size,r=void 0===n?6:n,o=e.thickness,i=void 0===o?3.5:o,a=e.sx,s=e.position,c=e.color,d=e.value;return(0,u.jsx)(tn,{sx:{position:"relative"},children:(0,u.jsxs)(nn.Z,{alignItems:"center",justifyContent:"center",children:[(0,u.jsx)(Zo.Z,{variant:"determinate",sx:(0,l.Z)({color:"primaryDark.250",position:"absolute"},a),size:"".concat(r,"rem"),thickness:i,value:100}),(0,u.jsx)(Zo.Z,{variant:"determinate",thickness:i,value:d,size:"".concat(r,"rem"),sx:(0,l.Z)((0,l.Z)((0,t.Z)({color:c},"& .".concat(CM.Z.circle),{strokeLinecap:"round"}),a),{},{position:s})})]})})},T4e=[tr.E4[400],tr.E4[500],tr.E4[800]],I4e=function(e){var t=null===e||void 0===e?void 0:e.reduce((function(e,t){return null!==t.paid&&(e.paid+=t.budget),e}),{paid:0});return null===t||void 0===t?void 0:t.paid},R4e=function(e,t){return[(0,u.jsx)(M4e,{thickness:3.9,value:null!==t[0].totalBudget?t[0].totalPaidUntilNow/t[0].totalBudget*100:0,color:tr.E4[400],position:1===e?"relative":"absolute",sx:{width:"9rem !important",height:"9rem !important",padding:"20px",top:0}}),(0,u.jsx)(M4e,{value:void 0!==t[1]&&null!==t[1].totalBudget?t[1].totalPaidUntilNow/t[1].totalBudget*100:0,color:tr.E4[500],sx:{width:"8.5rem !important",height:"8.5rem !important",margin:"0.25rem"}}),(0,u.jsx)(M4e,{thickness:3.1,value:void 0!==t[2]&&null!==t[2].totalBudget?t[2].totalPaidUntilNow/t[2].totalBudget*100:0,color:tr.E4[800],position:3===e?"absolute":"relative",sx:{width:"13rem !important",height:"13rem !important",padding:"20px",top:"-176px"}})]},F4e=function(e,t){switch(e){case 1:default:return R4e(e,t).slice(0,1);case 2:return R4e(e,t).slice(0,2);case 3:return R4e(e,t).slice(0,3)}},B4e=function(e){e.sx;var t,n,r,i,a=Bn(ir.breakpoints.between("lg","gr"))?10:18,s=K2e().user,l=hi({resource:"/projects?company=".concat(null===s||void 0===s||null===(t=s.membership)||void 0===t?void 0:t.company),enabled:!(null===s||void 0===s||null===(n=s.membership)||void 0===n||!n.company)}).data,c=hi({resource:"/milestones?company=".concat(null===s||void 0===s||null===(r=s.membership)||void 0===r?void 0:r.company),enabled:!(null===s||void 0===s||null===(i=s.membership)||void 0===i||!i.company)}).data,d=(0,o.useMemo)((function(){return null===l||void 0===l?void 0:l.data.results}),[null===l||void 0===l?void 0:l.data.results]),p=(0,o.useMemo)((function(){return null===c||void 0===c?void 0:c.data.results}),[null===c||void 0===c?void 0:c.data.results]),f=function(){if(d&&0===d.length||void 0===d)return[];if(p&&0===p.length||void 0===p)return[];var e=d.filter((function(e){return e.status===Kt.FP.InProgress||e.status===Kt.FP.Completed})).sort((function(e,t){return new Date(t.start).getTime()-new Date(e.start).getTime()})).slice(0,3);if(void 0===e)return[];var t=e.map((function(e){var t;return{projectName:e.name,totalPaidUntilNow:null!==(t=I4e(p.filter((function(t){return t.project===e.id}))))&&void 0!==t?t:0,totalBudget:e.budget}}));return t};return(0,u.jsx)(ms,{direction:"row",sx:{mt:6,width:{md:"75%",lg:"100%"},overflow:"visible",justifyContent:"center",alignItems:"center",margin:"auto"},children:(0,u.jsx)(u.Fragment,{children:f().length>0?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(ms,{sx:{position:"relative",margin:"auto"},children:[F4e(f().length,f()),(0,u.jsxs)(ms,{alignItems:"center",justifyContent:"center",spacing:.5,sx:{position:"absolute",top:0,left:0,bottom:0,right:0},children:[(0,u.jsx)(rn.Z,{color:"primaryDark.500",variant:"body3",sx:{maxWidth:"50%",textAlign:"center"},children:"Total current"}),(0,u.jsx)(rn.Z,{color:"primaryDark.800",variant:"bodySemiBold2",fontWeight:"600",children:f().reduce((function(e,t){return e+t.totalPaidUntilNow}),0).toLocaleString("en-US",{style:"currency",currency:Kt.CF.Usd,notation:"compact",minimumFractionDigits:1})})]})]}),(0,u.jsx)(ms,{spacing:1.5,children:f().map((function(e,t){return(0,u.jsxs)(ms,{spacing:1,direction:"row",alignItems:"baseline",width:"100%",children:[(0,u.jsx)(da.Z,{sx:{borderRadius:"50%",bgcolor:T4e[t],width:"10px",height:"10px"}}),(0,u.jsxs)(ms,{children:[e.projectName.length<=a?(0,u.jsx)(rn.Z,{color:"primaryDark.500",children:e.projectName}):(0,u.jsx)(ns,{placement:"top",title:e.projectName,children:(0,u.jsx)(rn.Z,{color:"primaryDark.500",children:(0,rs.$G)(e.projectName,a)})}),(0,u.jsx)(rn.Z,{children:e&&"totalPaidUntilNow"in e&&e.totalPaidUntilNow.toLocaleString("en-US",{style:"currency",currency:Kt.CF.Usd,minimumFractionDigits:2})})]})]})}))})]}):(0,u.jsx)(RI,{})})})},L4e=function(){var e,t,n,r,o,i,a=Pa(),s=(0,ze.s0)(),l=Ra({resource:"companies",id:null===a||void 0===a||null===(e=a.membership)||void 0===e?void 0:e.company,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,enabled:!(null===a||void 0===a||null===(t=a.membership)||void 0===t||!t.company)||!1}).data,c=hi({resource:"company-client/?company=".concat(null===a||void 0===a||null===(n=a.membership)||void 0===n?void 0:n.company),refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,enabled:!(null===a||void 0===a||null===(r=a.membership)||void 0===r||!r.company)||!1}).data,d=null===c||void 0===c?void 0:c.data.results,p=(null===l||void 0===l?void 0:l.status)===Kt.cM.Pending||(null===l||void 0===l?void 0:l.status)===Kt.cM.Rejected,f=hi({resource:"case-studies/?company=".concat(null===a||void 0===a||null===(o=a.membership)||void 0===o?void 0:o.company),refetchOnWindowFocus:!1,refetchOnMount:!0,refetchOnReconnect:!1,enabled:!(null===a||void 0===a||null===(i=a.membership)||void 0===i||!i.company)||!1}).data,h=null===f||void 0===f?void 0:f.data.results,m=null===h||void 0===h?void 0:h.some((function(e){return"verified"===e.status}));return(0,u.jsx)(J2e.Provider,{value:{companyData:l,user:a,companyClients:d,companyCaseStudies:h,chipLabelTruncateValue:20},children:(0,u.jsxs)(nn.Z,{spacing:"10px",children:[(0,u.jsx)(t3e,{}),(0,u.jsx)(p5,{screen:Kt.Cx.DashboardHome}),(0,u.jsxs)(nn.Z,{width:"100%",spacing:{md:"20px",lg:"40px"},children:[(0,u.jsxs)(nn.Z,{width:"100%",direction:{md:"column",lg:"row"},spacing:{md:"20px",lg:"24px"},children:[(0,u.jsx)(b2,{headlineEndElement:(0,u.jsx)(Wo,{variant:"secondary",onClick:function(){return s("./end-to-end")},children:"E2E"}),renderComponentSx:{my:"32px !important"},headline:"Earnings",renderComponent:(0,u.jsx)(B4e,{}),sx:{position:"relative",width:{md:"100%",xxl:"55%"},minHeight:"306px"}}),m?(0,u.jsx)(A4e,{}):(0,u.jsx)(b2,{renderComponent:(0,u.jsx)(E4e,{}),sx:{width:{md:"100%"},p:0,pt:0,pb:3.5},mainStackSpacing:0})]}),(0,u.jsx)(b2,{headline:p?(0,u.jsx)(EI,{text:null===l||void 0===l?void 0:l.status}):null,renderComponent:(0,u.jsx)(C4e,{}),renderComponentSx:{m:p?"initial":"0 !important"},sx:{width:{md:"100%"}}})]})]})})},N4e=function(e){var t;return(null===(t=Yd())||void 0===t?void 0:t.includes(Kt.ks.Buyer))?(0,u.jsx)(G2e,{}):(0,u.jsx)(L4e,{})},_4e=function(){return(0,u.jsxs)(ms,{spacing:5,mt:1,width:"100%",children:[(0,u.jsxs)(ms,{direction:"row",spacing:4,width:"100%",pr:3,children:[(0,u.jsx)(Zd,{required:!0,name:"admin.firstName",placeholder:"Enter first name",label:"First name",sx:{width:"100%"}}),(0,u.jsx)(Zd,{required:!0,name:"admin.lastName",placeholder:"Enter last name",label:"Last name",sx:{width:"100%"}})]}),(0,u.jsxs)(ms,{direction:"row",spacing:4,width:"100%",pr:3,children:[(0,u.jsx)(Zd,{required:!0,name:"admin.email",placeholder:"Enter email",label:"User email",sx:{width:"100%"}}),(0,u.jsx)(Zd,{name:"admin.jobTitle",placeholder:"Enter job title",label:"Job title",sx:{width:"100%"}})]})]})},z4e=["tmpClients"],H4e=["User","Overview","Admin","Details"],W4e={user:Kt.ks.SellerService,overview:{name:"",url:"",description:"",headquartersLocation:{country:"",city:"",state:""},avatar:""},admin:{jobTitle:"",email:"",firstName:"",lastName:""}},V4e=(0,l.Z)((0,l.Z)({},W4e),{},{details:{targetIndustries:[],targetCountries:[],companySize:"",languages:[],services:[],clients:[],hourlyRate:"",averageProjectSize:"",currency:Kt.CF.Usd},user:Kt.ks.SellerService}),U4e=(0,l.Z)((0,l.Z)({},W4e),{},{details:{targetIndustries:[],targetCountries:[],companySize:"",languages:[]},user:Kt.ks.Buyer}),q4e=function(){var e,t=(0,ze.s0)(),n=(null===(e=(0,ze.TH)().state)||void 0===e?void 0:e.fromBuyerPage)||!1?Kt.ks.Buyer:Kt.ks.SellerService,r=(0,l.Z)((0,l.Z)({},W4e),{},{user:n,details:n===Kt.ks.SellerService?V4e.details:U4e.details}),o=qR({labels:H4e,initialState:r}),i=o.currentStep,a=o.steps,s=o.onStepChange,c=o.form,d=oa({resource:"users/create-company-user"}),p=d.mutate,f=d.isLoading,h=c.watch("user")===Kt.ks.SellerService?(0,u.jsx)(L0,{}):(0,u.jsx)(N0,{});return(0,u.jsx)(UR,{form:c,steps:a,currentStep:i,onChange:s,onSubmit:function(e){var n=e.details,r=(n.tmpClients,Nn(n,z4e));p((0,l.Z)((0,l.Z)((0,l.Z)({},r),e.overview),{},{admin:e.admin,roles:[e.user]}),{onSuccess:function(){t("../sos")}})},helperText:(0,rs.DI)(i,_F),disableCancelButton:!0,isSubmitLoading:f,children:(0,u.jsxs)(u.Fragment,{children:[1===i&&(0,u.jsx)(VF,{}),2===i&&(0,u.jsx)(m0,{}),3===i&&(0,u.jsx)(_4e,{}),4===i&&h]})})},G4e=["id"],Y4e=function(){var e=(0,o.useState)(!1),t=(0,Le.Z)(e,2),n=t[0],r=t[1],i=Xc(),a=i.reset,s=i.getValues,c=hi({enabled:!!s("seller"),resource:"case-studies-content?company=".concat(s("seller"),"&status=published&status=under_review&status=verified")}).data,d=null===c||void 0===c?void 0:c.data.results,p=n?d:null===d||void 0===d?void 0:d.slice(0,3);return(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsxs)(rn.Z,{variant:"heading4",color:"primaryDark.500",children:["Case study portfolio"," ",(0,u.jsxs)(rn.Z,{component:"span",variant:"heading4",color:s("caseStudies").length>0?"secondaryGreen.700":"primaryDark.500",children:[s("caseStudies").length," selected"]})]}),(0,u.jsx)(rn.Z,{color:"primaryDark.500",children:"Attach case studies from your profile that show your expertise in similar projects or fields."})]}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"primaryLight.500",sx:{"&:hover":{textDecoration:"underline",cursor:"pointer"}},onClick:function(){return r(!n)},children:n?"View less":"View all"})]}),(0,u.jsx)(nn.Z,{direction:"row",justifyContent:"space-between",sx:{flexWrap:"wrap",gap:"25px"},children:d&&d.length>0&&(null===p||void 0===p?void 0:p.map((function(e){return(0,u.jsx)(mAe,{id:e.caseStudy,sx:{width:{md:"46%",bg:"47%",xl:"30%"}},toggleMode:{condition:s("caseStudies").some((function(t){return t===e.caseStudy}))},onClick:function(e){var t=e.id,n=Nn(e,G4e),r=s("caseStudies"),o=s("caseStudiesPreview");if(r.length>0&&r.some((function(e){return e===t}))){var i=r.filter((function(e){return e!==t})),c=o.filter((function(e){return e.id!==t}));a((0,l.Z)((0,l.Z)({},s()),{},{caseStudies:(0,dn.Z)(i),caseStudiesPreview:(0,dn.Z)(c)}))}else a((0,l.Z)((0,l.Z)({},s()),{},{caseStudies:[].concat((0,dn.Z)(r),[t]),caseStudiesPreview:[].concat((0,dn.Z)(o),[(0,l.Z)({id:t},n)])}))},topChip:(0,u.jsx)(PAe,{}),bottomComponent:e.review&&(0,u.jsx)(Cme,{displayName:"score",id:e.caseStudy,resource:"case-studies",renderComponent:function(e){return(0,u.jsx)(vAe,{rating:e.score})}}),coverImg:e.file,caseStudyName:e.title,companyLogo:e.seller.avatar,companyName:e.seller.name})})))})]})},K4e=function(e){var t=e.type,n=(0,ze.UO)().timedProjectPitchId,r=Xc(),i=r.getValues,a=r.setValue,s=hi({resource:"/companies?role=seller_tool&role=seller_service&status=approved"}).data,l=hi({resource:"/timed-projects"}).data,c=null===l||void 0===l?void 0:l.data.results;return(0,o.useEffect)((function(){if("create"===t&&c&&""!==i("timedProject")){var e,n=null===(e=c.find((function(e){return String(e.id)===String(i("timedProject"))})))||void 0===e?void 0:e.name;a("timedProjectName",n)}}),[t,c,i("timedProject")]),(0,u.jsxs)(nn.Z,{spacing:4,children:[(0,u.jsx)(Hd,{name:"timedProject",label:"Timed project",required:!0,disabled:!!n,choices:c,placeholder:"Select"}),(0,u.jsx)(Hd,{name:"seller",label:"Seller",required:!0,disabled:!!n,choices:null===s||void 0===s?void 0:s.data.results,placeholder:"Select"})]})},J4e=["materialsPreview","caseStudiesPreview","userAgreement","materials","timedProjectName"],X4e=["Seller","About","Strategy","Portfolio","Materials","Preview"],Q4e=["Provide an overview of your company and team that highlights why you are a good fit for the project.","Outline your project strategy. You do not have to go in specific detail, as you will be expected to provide a more concrete solution only if your pitch is accepted into the second round of negotiations.","","Upload additional documentation such as your pitch deck. Add links to external portfolios or any applicable materials that demonstrate relevant skills and knowledge."],$4e={seller:"",timedProjectName:"",timedProject:"",overview:{description:"",strategy:""},caseStudiesPreview:[],caseStudies:[],materialsPreview:null,materials:[]},e6e=function(e){var t=e.type,n=(0,ze.UO)(),r=(0,ze.s0)(),i=qR({labels:X4e,initialState:$4e}),a=i.form,s=i.steps,c=i.currentStep,d=i.onStepChange,p=(0,o.useState)(!1),f=(0,Le.Z)(p,2),h=f[0],m=f[1],v=(0,o.useState)(!1),g=(0,Le.Z)(v,2),y=g[0],b=g[1],x=(0,o.useState)(!1),w=(0,Le.Z)(x,2),C=w[0],j=w[1],S=(0,o.useState)(!1),k=(0,Le.Z)(S,2),Z=k[0],O=k[1],E=(0,o.useState)(!1),D=(0,Le.Z)(E,2),P=D[0],A=D[1],M=(0,o.useState)(""),T=(0,Le.Z)(M,2),I=T[0],R=T[1],F=Ra({resource:"timed-project-pitches",enabled:!(null===n||void 0===n||!n.timedProjectPitchId),id:n.timedProjectPitchId,refetchOnWindowFocus:!1,refetchOnMount:!0,refetchOnReconnect:!1}).data,B=Ra({resource:"timed-project-pitch-contents",enabled:!!F,id:(null===F||void 0===F?void 0:F.edit)||(null===F||void 0===F?void 0:F.content),refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1}).data,L=Ra({resource:"timed-project-contents",enabled:!!B,id:null===B||void 0===B?void 0:B.timedProjectContentCurrent.id,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1}).data,N=oa({resource:"/timed-project-pitches/admin"}),_=N.mutate,z=N.isLoading,H=(0,As.Z)({resource:"/timed-project-pitches"}),W=H.mutate,V=H.isLoading;(0,o.useEffect)((function(){var e=function(){var e=ds(hs().mark((function e(){var n,r,o;return hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("edit"!==t||void 0===B||void 0===L||void 0===F){e.next=5;break}return e.next=3,Promise.all(B.materials.map(function(){var e=ds(hs().mark((function e(t){var n,r,o;return hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t.file);case 2:return n=e.sent,e.next=5,n.blob();case 5:return r=e.sent,o=new File([r],t.fileName,{type:(0,rs.EE)(t.file)}),e.abrupt("return",o);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 3:o=e.sent,a.reset({overview:{description:null===(n=B.overview)||void 0===n?void 0:n.description,strategy:null===(r=B.overview)||void 0===r?void 0:r.strategy},caseStudiesPreview:B.caseStudies.map((function(e){return{id:e.id,companyName:e.seller.name,companyLogo:e.seller.avatar,coverImg:e.file}})),caseStudies:B.caseStudies.map((function(e){return e.id})),materialsPreview:o.map((function(e){return{file:e,isUploadInProgress:!1,uploadProgress:100,error:null}})),materials:B.materials.map((function(e){return e})),seller:B.seller,timedProject:L.timedProject,timedProjectName:null===F||void 0===F?void 0:F.projectName});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[B,L,F]);var U=function(e,n){e.materialsPreview,e.caseStudiesPreview,e.userAgreement;var o=e.materials,i=(e.timedProjectName,Nn(e,J4e)),s=(0,l.Z)((0,l.Z)((0,l.Z)({},i),"create"===t&&{timedProject:a.getValues("timedProject")}),{},{requestPublish:!n,type:Kt.tw.Form,materials:null===o||void 0===o?void 0:o.map((function(e){return e.id}))}),c={onSuccess:function(){n?(j(!1),r("../")):"edit"===t&&(null===F||void 0===F?void 0:F.status)!==Kt.hv.Draft?b(!0):m(!0)},onError:function(e){var t;R(null===(t=e.response)||void 0===t?void 0:t.data.message),n&&j(!1),O(!0)}};"edit"===t?W({id:null===F||void 0===F?void 0:F.id,data:s,suffix:"admin"},c):_(s,c)};return(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(tn,{sx:{width:5===c?"100%":"70%"},children:[(0,u.jsx)(UR,{form:a,steps:s,currentStep:c,onChange:d,onSaveAsDraft:function(){return j(!0)},onSubmit:function(e){return U(e,!1)},layoutOrientation:5===c?"row":"column",helperText:(0,rs.DI)(c,Q4e),onCancelClick:function(){return A(!0)},isSubmitLoading:z||V,children:(0,u.jsxs)(u.Fragment,{children:[1===c&&(0,u.jsx)(K4e,{type:t}),"edit"===t?2===c&&null!==a.getValues("overview.description")&&(0,u.jsx)(N0e,{}):2===c&&(0,u.jsx)(N0e,{}),3===c&&(0,u.jsx)(W0e,{}),4===c&&(0,u.jsx)(Y4e,{}),5===c&&(0,u.jsx)(UVe,{resource:"/timed-project-pitches/upload-materials"}),6===c&&(0,u.jsx)(H0e,{})]})}),(0,u.jsx)(V0e,{type:"create",timedProjectName:a.getValues("timedProjectName"),isOpen:h,setIsOpen:m}),(0,u.jsx)(V0e,{type:"edit",isOpen:y,setIsOpen:b}),(0,u.jsx)(V0e,{type:"draft",isOpen:C,setIsOpen:j,onConfirm:function(){U(a.getValues(),!0)}}),(0,u.jsx)(V0e,{type:"error",isOpen:Z,setIsOpen:O,errorMessage:I}),(0,u.jsx)(V0e,{type:"cancel",isOpen:P,setIsOpen:A})]})})},t6e=function(){var e=(0,ze.UO)().caseStudyId,t=hi({resource:"/companies?role=seller_tool&role=seller_service&status=approved"}).data;return(0,u.jsx)(Hd,{name:"seller",label:"Select seller",required:!0,disabled:!!e,choices:null===t||void 0===t?void 0:t.data.results,placeholder:"Select"})},n6e=["projectSize"],r6e=["file","fileName","details"],o6e={seller:"",file:void 0,fileName:"",title:"",description:{goals:"",challenges:"",solutions:"",results:""},details:{services:[],languages:[],industries:[],projectSize:"",platforms:[],tools:[],geographyFocus:[]}},i6e=["User","General","Content","Details","Preview"],a6e=["The maximum character count for your case study title is 100 characters. The suggested dimensions for your featured image are 1920x900 pixels.","Create and format the main body of your case study here. You can attach links and add visual media such as photos or videos to each subsection.","",""],s6e=function(){var e=qR({labels:i6e,initialState:o6e}),t=e.currentStep,n=e.steps,r=e.onStepChange,i=e.form,a=(0,ze.UO)().caseStudyId,s=oa({resource:"case-studies/admin"}),c=s.mutate,d=s.isLoading,p=(0,As.Z)({resource:"case-studies"}),f=p.mutate,h=p.isLoading,m=Ra({id:a,resource:"case-studies",enabled:!!a}).data,v=Ra({id:null!==m&&void 0!==m&&m.edit?null===m||void 0===m?void 0:m.edit:null===m||void 0===m?void 0:m.content,resource:"case-studies-content",enabled:!!m}).data,g=(0,o.useState)(!1),y=(0,Le.Z)(g,2),b=y[0],x=y[1],w=(0,o.useState)(!1),C=(0,Le.Z)(w,2),j=C[0],S=C[1],k=(0,o.useState)(!1),Z=(0,Le.Z)(k,2),O=Z[0],E=Z[1],D=(0,o.useState)(!1),P=(0,Le.Z)(D,2),A=P[0],M=P[1],T=(0,o.useState)(!1),I=(0,Le.Z)(T,2),R=I[0],F=I[1],B=(0,o.useState)(""),L=(0,Le.Z)(B,2),N=L[0],_=L[1],z=(0,ze.s0)(),H=function(){var e=ds(hs().mark((function e(t,n){var r,o,s,u,d,p,h,v,g;return hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.file,o=t.fileName,s=t.details,u=s.projectSize,d=Nn(s,n6e),p=Nn(t,r6e),e.next=3,r?(0,rs.y3)(r):null;case 3:h=e.sent,v=(0,l.Z)((0,l.Z)((0,l.Z)({},p),{},{details:(0,l.Z)((0,l.Z)({},d),""!==u&&{projectSize:u})},i.getFieldState("file").isDirty&&r&&{file:h,fileName:o}),{},{requestPublish:!n}),g={onSuccess:function(){z("../"),n?(E(!1),z("../")):a&&(null===m||void 0===m?void 0:m.status)!==Kt.U_.Draft?S(!0):x(!0)},onError:function(e){var t;_(null===(t=e.response)||void 0===t?void 0:t.data.message),n&&E(!1),M(!0)}},a?f({data:v,id:a,suffix:"admin"},g):c(v,g);case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return(0,o.useEffect)((function(){var e=function(){var e=ds(hs().mark((function e(){var t,n,r;return hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!v||!a){e.next=10;break}return e.next=3,fetch(v.file);case 3:return n=e.sent,e.next=6,n.blob();case 6:r=e.sent,v.file&&(t=new File([r],v.fileName)),i.reset((0,l.Z)((0,l.Z)({},v),{},{seller:v.seller.id,file:t})),i.trigger();case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[v]),(0,u.jsxs)(tn,{sx:{width:4===t?"100%":"70%"},children:[(0,u.jsx)(UR,{form:i,steps:n,currentStep:t,onChange:r,onSubmit:function(e){return H(e,!1)},onSaveAsDraft:function(){return E(!0)},layoutOrientation:4===t?"row":"column",onCancelClick:function(){return F(!0)},helperText:(0,rs.DI)(t,a6e),rightColumnRenderProp:function(){return(0,u.jsx)(SGe,{form:i})},isSubmitLoading:d||h,children:(0,u.jsxs)(u.Fragment,{children:[1===t&&(0,u.jsx)(t6e,{}),2===t&&(0,u.jsx)(xGe,{}),3===t&&(0,u.jsx)(wGe,{}),4===t&&(0,u.jsx)(CGe,{}),5===t&&(0,u.jsx)(jGe,{})]})}),(0,u.jsx)(_Ge,{type:"create",isOpen:b,setIsOpen:x}),(0,u.jsx)(_Ge,{type:"edit",isOpen:j,setIsOpen:S}),(0,u.jsx)(_Ge,{type:"draft",isOpen:O,setIsOpen:E,onConfirm:function(){H(i.getValues(),!0)}}),(0,u.jsx)(_Ge,{type:"error",isOpen:A,setIsOpen:M,errorMessage:N}),(0,u.jsx)(_Ge,{type:"cancel",isOpen:R,setIsOpen:F})]})},l6e=function(){var e=(0,ze.UO)().timedProjectId,t=hi({resource:"/companies?role=buyer&status=approved"}).data;return(0,u.jsx)(Hd,{name:"buyer",label:"Select buyer",required:!0,disabled:!!e,choices:null===t||void 0===t?void 0:t.data.results,placeholder:"Select"})},c6e=["materialsPreview","userAgreement","materials","buyer"],u6e=["body"],d6e=["Buyer","Overview","About","Seller","Timeline","Budget","Materials","Preview"],p6e=["In your company description, outline your general goals and direction without referring explicitly to your company name, as your identity will only be shared with sellers in the second round of negotiations.","For project requirements, feel free to go as detailed as you desire. The more information you can provide, the bigger the chance that pitches will address your specific needs.","Define the core service and technical expertise you expect your digital service seller to provide, if applicable to your project type.","Projects with a flexible pitching deadline will be closed once you have selected a seller to cooperate with, or after multiple months of inactivity.","If your project has a separate budget amount for its execution (e.g. marketing budget), please specify the amount of the budget allotted to the execution and to the seller in the budget breakdown section.","Additional materials will be shared only with sellers who are accepted into the second round of negotiations. The files will be automatically uploaded into your shared chat space."],f6e={overview:{name:"",description:""},about:{goals:"",targetMarkets:[],audience:"",competitors:[],industries:[]},skills:{services:[],platforms:[],tools:[],languages:[],providerScope:"undefined"},timeline:{pitchDeadline:null,projectStart:null},budget:{budget:null,recurring:!1,currency:"usd",budgetDescription:""},materialsPreview:null,materials:[],userAgreement:!1,buyer:""},h6e=function(e){return{file:e,isUploadInProgress:!1,uploadProgress:100,error:null}},m6e=function(){var e=qR({labels:d6e,initialState:f6e}),t=e.currentStep,n=e.steps,r=e.onStepChange,i=e.form,a=((0,ze.s0)(),(0,ze.UO)()),s=(null===a||void 0===a?void 0:a.timedProjectId)||"",c=!!s,d=(0,o.useState)(!1),p=(0,Le.Z)(d,2),f=p[0],h=p[1],m=(0,o.useState)(!1),v=(0,Le.Z)(m,2),g=v[0],y=v[1],b=(0,o.useState)(!1),x=(0,Le.Z)(b,2),w=x[0],C=x[1],j=(0,o.useState)(!1),S=(0,Le.Z)(j,2),k=S[0],Z=S[1],O=(0,o.useState)(!1),E=(0,Le.Z)(O,2),D=E[0],P=E[1],A=(0,o.useState)(""),M=(0,Le.Z)(A,2),T=M[0],I=M[1],R=zp({resource:"timed-projects/".concat(s),enabled:!!s,refetchOnWindowFocus:!1}).data,F=(c&&null===(null===R||void 0===R?void 0:R.data.edit)&&(null===R||void 0===R||R.data.status,Kt.Tl.Draft),null===(null===R||void 0===R?void 0:R.data.edit)?null===R||void 0===R?void 0:R.data.content:null===R||void 0===R?void 0:R.data.edit),B=zp({resource:"timed-project-contents/".concat(F),enabled:!!F,refetchOnWindowFocus:!1}).data,L=oa({resource:"/timed-projects/admin"}),N=L.mutate,_=L.isLoading,z=(0,As.Z)({resource:"/timed-projects"}),H=z.mutate,W=z.isLoading,V=null===B||void 0===B?void 0:B.data,U=function(e,t){e.materialsPreview,e.userAgreement;var n=e.materials,r=e.buyer,o=Nn(e,c6e),i={body:(0,l.Z)((0,l.Z)({},o),{},{budget:(0,l.Z)((0,l.Z)({},o.budget),{},{budget:Number(o.budget.budget)})}),buyerApproved:!t,buyer:r,materials:null===n||void 0===n?void 0:n.map((function(e){return e.id}))},u={onSuccess:function(){t||(null!==a&&void 0!==a&&a.projectId?y(!0):h(!0))},onError:function(e){var n;t||(I(null===(n=e.response)||void 0===n?void 0:n.data.message),Z(!0))}};c?H({id:s,data:i,suffix:"admin"},u):N(i,u)};return(0,o.useEffect)((function(){if(V&&s){var e=function(){var e=ds(hs().mark((function e(){var t,n,r,o;return hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=V.body,n=Nn(V,u6e),e.next=3,(a=V.materials)?Promise.all(a.map(function(){var e=ds(hs().mark((function e(t){var n,r;return hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t.file).then((function(e){return e.blob()}));case 2:return n=e.sent,r=(0,rs.EE)(t.file),e.abrupt("return",new File([n],t.fileName,{type:r}));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())):null;case 3:r=e.sent,o=null===r||void 0===r?void 0:r.map(h6e),i.reset((0,l.Z)((0,l.Z)({},t),{},{materials:n.materials,materialsPreview:o,buyer:B.data.buyer}));case 6:case"end":return e.stop()}var a}),e)})));return function(){return e.apply(this,arguments)}}();e()}}),[V]),(0,u.jsxs)(da.Z,{sx:{width:"70%"},children:[(0,u.jsx)(UR,{form:i,steps:n,currentStep:t,onChange:r,onSubmit:function(e){return U(e,!1)},onSaveAsDraft:function(){return C(!0)},helperText:(0,rs.DI)(t,p6e),onCancelClick:function(){return P(!0)},isSubmitLoading:!(!0!==W&&!0!==_),rightColumnRenderProp:function(){return(0,u.jsx)(zVe,{})},layoutOrientation:8===t?"row":"column",children:(0,u.jsxs)(u.Fragment,{children:[1===t&&(0,u.jsx)(l6e,{}),V?2===t&&i.getValues("overview.description")&&(0,u.jsx)(SVe,{}):2===t&&(0,u.jsx)(SVe,{}),3===t&&(0,u.jsx)(OVe,{}),4===t&&(0,u.jsx)(TVe,{}),5===t&&(0,u.jsx)(MVe,{}),6===t&&(0,u.jsx)(RVe,{}),7===t&&(0,u.jsx)(UVe,{resource:"/timed-projects/upload-materials"}),8===t&&(0,u.jsx)(LVe,{})]})}),(0,u.jsx)(XVe,{type:"create",isOpen:f,setIsOpen:h}),(0,u.jsx)(XVe,{type:"edit",isOpen:g,setIsOpen:y}),(0,u.jsx)(XVe,{type:"draft",isOpen:w,setIsOpen:C,onConfirm:function(){U(i.getValues(),!0)}}),(0,u.jsx)(XVe,{type:"error",isOpen:k,setIsOpen:Z,errorMessage:T}),(0,u.jsx)(XVe,{type:"cancel",isOpen:D,setIsOpen:P})]})},v6e=function(e){var t=e.sx,n=(0,ze.TH)().search,r=new URLSearchParams(n).get("company");return(0,u.jsx)(nn.Z,{sx:(0,l.Z)({position:"relative",height:"100%",width:"100%"},t),children:(0,u.jsx)(da.Z,{component:"img",sx:{height:"100%",objectFit:"cover",content:{xs:"url(".concat("seller"===r?(0,rs.mB)(Wxe.W.ConfirmAccountSellerxl):(0,rs.mB)(Wxe.W.ConfirmAccountBuyerxl),")"),lg:"url(".concat("seller"===r?(0,rs.mB)(Wxe.W.ConfirmAccountSeller):(0,rs.mB)(Wxe.W.ConfirmAccountBuyer),")")}}})})},g6e=function(){var e=(0,ze.s0)(),t=(0,ze.TH)().search,n=new URLSearchParams(t),r=n.get("token"),i=n.get("email"),a=fd({defaultValues:{email:i||"",password:"",confirmPassword:"",token:r||""}}),s=a.watch,c=a.handleSubmit,d=a.getValues,p=oa({resource:"auth/confirm-account?token=".concat(r,"&email=").concat(i)}),f=p.mutate,h=p.isLoading,m=(0,o.useState)({password:!1,repeatPassword:!1}),v=(0,Le.Z)(m,2),g=v[0],y=v[1],b=oa({resource:"/auth/login"}).mutate;return(0,u.jsxs)(ms,{spacing:6,sx:{pb:4},children:[(0,u.jsx)(rn.Z,{variant:"headline1",sx:{color:"primaryDark.600"},children:"Enter password"}),(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},a),{},{children:(0,u.jsx)(da.Z,{component:"form",sx:{height:"90%"},onSubmit:c((function(){return t={password:d("password"),token:d("token")},void f(t,{onSuccess:function(){var n={email:i,password:t.password};b(n,{onSuccess:function(t){localStorage.setItem("AccessToken",t.data.token),e("/dashboard/end-to-end",{replace:!0})}})}});var t})),children:(0,u.jsxs)(ms,{spacing:2,children:[(0,u.jsx)(rn.Z,{sx:{textTransform:"uppercase",fontFamily:"Gellix-SemiBold",color:"#79829B",fontSize:"12px"},children:"email"}),i,(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Text,{}),type:g.password?"text":"password",name:"password",label:"Change Password",required:!0,defaultHelperText:"Your password must be a minimum of 8 characters in length and contain at least 1 lowercase letter, 1 uppercase letter, 1 number and 1 special character.",placeholder:"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",adornment:{icon:g.password?(0,u.jsx)(s2e.Z,{sx:{color:"primaryDark.400",width:22,height:22}}):(0,u.jsx)(a2e.Z,{sx:{color:"primaryDark.400",width:22,height:22}}),onClick:function(){y((0,l.Z)((0,l.Z)({},g),{},{password:!g.password}))}},validationRegEx:{value:/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*()_+{}\[\]:;<>,.?~\\-]).{8,}$/,message:"Your password must be a minimum of 8 characters in length and contain at least 1 lowercase letter, 1 uppercase letter, 1 number and 1 special character."},rules:{maxLength:{value:127,message:"Password is too long. Please choose a password with fewer than 128 characters"}}}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Text,{}),type:g.repeatPassword?"text":"password",name:"confirmPassword",label:"Repeat password",required:!0,placeholder:"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",adornment:{icon:g.repeatPassword?(0,u.jsx)(s2e.Z,{sx:{color:"primaryDark.400",width:22,height:22}}):(0,u.jsx)(a2e.Z,{sx:{color:"primaryDark.400",width:22,height:22}}),onClick:function(){y((0,l.Z)((0,l.Z)({},g),{},{repeatPassword:!g.repeatPassword}))}},validate:function(){return s("confirmPassword")===s("password")||"Passwords do not match"},rules:{maxLength:{value:127,message:"Password is too long. Please choose a password with fewer than 128 characters"}}}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.UserAgreement,{}),name:"TermsAndConditions",required:!0,customRequiredMessage:"Agree to terms to continue"}),(0,u.jsxs)(Wo,{type:"submit",loading:h,sx:{alignSelf:"flex-end",width:{xs:"fit-content",lg:"35%"},fontSize:"14px"},children:["Continue"," "]})]})})}))]})},y6e=(0,pa.Z)((0,u.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel"),b6e=(0,pa.Z)((0,u.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),x6e=function(){var e,t=fd({}),n=Du({control:t.control,name:"entries"}),r=n.fields,o=n.append,i=n.remove,a=(0,ze.UO)().footerType,s=hi({resource:"/custom-footer?type=".concat(a),refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,refetchIntervalInBackground:!1,onSuccess:function(e){var n;t.reset({entries:null===(n=e.data.results)||void 0===n?void 0:n[0].entries,type:a})}}).data,c=null===s||void 0===s||null===(e=s.data.results)||void 0===e?void 0:e[0],d=(0,As.Z)({resource:"/custom-footer"}).mutate;return(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},t),{},{children:(0,u.jsx)(tn,{component:"form",sx:{width:"100%",height:"100%"},onSubmit:t.handleSubmit((function(e){d({id:null===c||void 0===c?void 0:c.id,data:e})})),children:(0,u.jsxs)(ms,{direction:"column",p:2,width:"60%",gap:2,children:[r.map((function(e,t){return(0,u.jsxs)(ms,{p:2,sx:{border:"1px solid",borderColor:"primaryDark.300",borderRadius:"8px",boxShadow:"4px 4px 10px rgba(56, 69, 114, 0.1)"},children:[(0,u.jsx)(y6e,{sx:{color:"primaryDark.500",alignSelf:"end",cursor:"pointer"},onClick:function(){return i(t)}}),(0,u.jsx)(f0,{sx:{minHeight:10,minWidth:"fit-content"},input:(0,u.jsx)(f0.Text,{}),name:"entries.".concat(t,".title"),placeholder:"Title",label:"Title"},e.id),(0,u.jsx)(f0,{sx:{minHeight:10,minWidth:"fit-content"},input:(0,u.jsx)(f0.SearchSelect,{}),name:"entries.".concat(t,".services"),placeholder:"Services",label:"Services",multiple:!0,choices:Kt.Sj,withChips:!0})]})})),(0,u.jsx)(Wo,{variant:"primaryLight",endIcon:(0,u.jsx)(b6e,{}),onClick:function(){return o({title:"",services:[]})},children:"Add new"}),(0,u.jsx)(Wo,{type:"submit",children:"Submit"})]})})}))},w6e=n(26887),C6e={centerMode:!0,prevArrow:(0,u.jsx)(io.Z,{sx:{background:"#red !important",backgroundColor:"#red !important",width:"2.5rem",height:"2.5rem",border:"1px solid",borderColor:"primaryLight.500",p:0,position:"absolute",display:"flex",justifyContent:"center",alignItems:"center","&:hover":{color:"primaryLight.500"}},disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,children:(0,u.jsx)(uM.Z,{sx:{color:"primaryLight.700",fontSize:"1.5rem"}})}),nextArrow:(0,u.jsx)(io.Z,{sx:{background:"#red !important",backgroundColor:"#red !important",width:"2.5rem",height:"2.5rem",border:"1px solid",borderColor:"primaryLight.500",p:0,position:"absolute",display:"flex",justifyContent:"center",alignItems:"center","&:hover":{color:"primaryLight.500"}},disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,children:(0,u.jsx)(dM.Z,{sx:{color:"primaryLight.700",fontSize:"1.5rem"}})}),arrows:!0,className:"center",responsive:[{breakpoint:1204,settings:{slidesToShow:3,slidesToScroll:3,infinite:!0,dots:!0}},{breakpoint:899,settings:{slidesToShow:1,slidesToScroll:1}},{breakpoint:360,settings:{slidesToShow:1,slidesToScroll:1}}],infinite:!0,centerPadding:"0px",slidesToShow:3,speed:500},j6e=function(e){var t=e.data,n=e.renderCustomComponent;return(0,u.jsx)(nn.Z,{width:"100%",maxWidth:"55rem",mx:"auto",children:t&&(0,u.jsx)(w6e.Z,(0,l.Z)((0,l.Z)({},C6e),{},{children:n(t)}))})},S6e=function(e){var t=e.children;return(0,u.jsx)(da.Z,{sx:{maxWidth:"15rem",mx:"auto",py:"3.5rem"},children:t})},k6e=function(e){var t,n=e.link,r=e.type,o=hi({resource:"/custom-footer?type=".concat(void 0===r?"seller_archive":r)}).data,i=null===o||void 0===o||null===(t=o.data.results[0])||void 0===t?void 0:t.entries;return(0,u.jsxs)(nn.Z,{alignItems:"flex-start",spacing:{xs:3,md:5},py:{xs:3,md:7},sx:{mx:{xs:"1rem",gr:"auto"},width:{gr:"80rem"}},children:[(0,u.jsxs)(da.Z,{sx:{width:"100%",display:"flex",alignItems:"flex-start",justifyContent:"space-between"},children:[(0,u.jsx)(rn.Z,{variant:"publicHeading5",sx:{textAlign:{sx:"start",sm:"start",md:"center"},flexGrow:1},children:"Browse by services"}),(0,u.jsx)(Wo,{variant:"secondaryText",href:n,children:"View all"})]}),(0,u.jsx)(nn.Z,{spacing:{xs:3,md:16.25},direction:{xs:"column",sm:"row"},alignItems:{xs:"flex-start"},justifyContent:{sm:"center"},sx:{width:"100%"},children:null===i||void 0===i?void 0:i.map((function(e,t){var r;return(0,u.jsxs)(da.Z,{children:[(0,u.jsx)(rn.Z,{variant:"publicBody4",sx:{fontWeight:600,color:"primaryDark.900",lineHeight:"1.5rem"},children:e.title}),(0,u.jsx)(nn.Z,{spacing:1.5,pt:1.5,children:null===(r=e.services)||void 0===r?void 0:r.map((function(e){return(0,u.jsx)($n,{to:"".concat(n,"?service=").concat(e),variant:"publicBody5Regular",sx:{fontWeight:350,color:"#4F576E"},children:Kt.Sj.get(e)},e)}))},e.title)]})}))})]})},Z6e=function(e){var t=e.imgUrl,n=e.title,r=e.description,o=e.link,i=e.linkText,a=Bn(ir.breakpoints.down("md"));return(0,u.jsx)(tn,{sx:{backgroundImage:a?"none":"url(".concat(t,")"),backgroundSize:"cover",borderRadius:"12px",width:{gr:"100%"},maxWidth:"80rem",my:{xs:"5rem"},mb:{gr:"7.5rem"},mx:{xs:"2.1875rem",sm:"2rem",bg:"5rem",gr:"auto"},p:{xs:0,sm:0,md:"5.3125rem 0 3.0625rem 2.9375rem",bg:"10.0625rem 0 2.5rem  4.0625rem"}},children:(0,u.jsxs)(nn.Z,{justifyContent:{xs:"center",sm:"center",md:"flex-end"},alignItems:{xs:"center",sm:"center",md:"flex-start"},height:"100%",color:{xs:"primaryDark.900",sm:"primaryDark.900",md:"white",lg:"white"},gap:3,textAlign:{xs:"center"},children:[(0,u.jsx)(rn.Z,{variant:"publicHeading2",children:n}),(0,u.jsx)(rn.Z,{variant:"publicBody3Regular",children:r}),(0,u.jsx)(Wo,{endIcon:(0,u.jsx)(TR,{fill:"#fff"}),href:o,children:i})]})})},O6e=function(e){var t,n,r,o,i,a,s,l,c=e.data,d=e.showFocusArea,p=(0,ze.s0)(),f=Ra({resource:"case-studies-content",id:null===c||void 0===c?void 0:c.content}).data;return(0,u.jsx)(NZ,{sx:{width:"100%",borderRadius:"0.8rem",boxShadow:"6px 6px 17px 0px #3845721A",display:"flex",flexDirection:"column",background:"white",height:"100%"},onClick:function(e){e.stopPropagation(),p("/case-study/".concat(null===c||void 0===c?void 0:c.id))},children:(0,u.jsxs)(nAe,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%"},disableRipple:!0,children:[(0,u.jsx)(qUe,{component:"img",image:null===c||void 0===c?void 0:c.file,alt:"Case study card",sx:{width:"100%",height:"190px",objectFit:"cover"}}),(0,u.jsxs)(lAe,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between",width:"100%",flex:"1 0 auto",minHeight:d?"320px":" 216px"},children:[(0,u.jsxs)(ms,{gap:2,sx:{flex:"1 0 auto"},children:[(0,u.jsx)(Cme,{resource:"companies",displayName:"name",id:null===c||void 0===c?void 0:c.seller,renderComponent:function(e){return(0,u.jsxs)(ms,{direction:"row",alignItems:"center",gap:1,children:[(0,u.jsx)(Ca,{alt:"card logo",src:null===e||void 0===e?void 0:e.avatar,sx:{width:34,height:34}}),(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.500",children:null===e||void 0===e?void 0:e.name})]})}},null===c||void 0===c?void 0:c.seller),(0,u.jsx)(ns,{title:"".length>70?null===c||void 0===c?void 0:c.title:"",placement:"top",children:(0,u.jsx)(rn.Z,{variant:"publicBody6",color:"primaryDark.600",children:(0,rs.$G)(null!==(t=null===c||void 0===c?void 0:c.title)&&void 0!==t?t:"",70)})}),d&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(rn.Z,{variant:"publicBody6",color:"primaryDark.500",children:"SERVICES"}),(0,u.jsxs)(ms,{direction:"row",gap:1.5,justifyContent:"start",alignItems:"center",flexWrap:"wrap",children:[null===f||void 0===f||null===(n=f.details.services)||void 0===n?void 0:n.slice(0,5).map((function(e){return(0,u.jsx)(_d,{label:Kt.Sj.get(e)},Kt.Sj.get(e))})),(null===f||void 0===f||null===(r=f.details)||void 0===r||null===(o=r.services)||void 0===o?void 0:o.length)&&(null===f||void 0===f||null===(i=f.details)||void 0===i||null===(a=i.services)||void 0===a?void 0:a.length)>=5]})]})]}),(0,u.jsxs)(ms,{direction:"row",alignItems:"center",mt:4,justifyContent:"space-between",sx:{opacity:null!==c&&void 0!==c&&c.score?1:0},children:[(0,u.jsxs)(ms,{direction:"row",alignItems:"center",gap:1,children:[(0,u.jsx)(AAe,{rating:Math.round(null!==(s=null===c||void 0===c?void 0:c.score)&&void 0!==s?s:0)}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"secondaryBlue.700",children:Math.round(null!==(l=null===c||void 0===c?void 0:c.score)&&void 0!==l?l:0)})]}),(0,u.jsx)(EI,{text:null===c||void 0===c?void 0:c.status})]})]})]})})},E6e=function(e){var t,n,r=e.data,o=e.sectionTitle,i=e.bgcolor,a=(0,ze.s0)(),s=(null===r||void 0===r?void 0:r.linkedServices)&&(0,rs.C4)(null===r||void 0===r?void 0:r.linkedServices,"service");return(0,u.jsx)(ms,{bgcolor:i,sx:{position:"relative"},children:(0,u.jsxs)(ms,{direction:"column",alignItems:"center",alignContent:"flex-start",py:10,gap:5,sx:{mx:{xs:"1.5rem",gr:"auto"},width:{gr:"80rem"}},children:[(0,u.jsxs)(ms,{width:"100%",direction:"row",justifyContent:"space-between",alignItems:"center",gap:2,children:[(0,u.jsx)(rn.Z,{variant:"publicBody1",children:o}),(0,u.jsx)(Wo,{variant:"primaryText",onClick:function(){return a("/case-study-subarchive?".concat(s))},children:"View all"})]}),(0,u.jsxs)(ms,{sx:{width:"100%",maxWidth:{xs:"none",bg:"30rem",lg:"none"}},direction:{xs:"column",bg:"row"},spacing:3,gap:0,justifyContent:"center",children:[(0,u.jsx)(ms,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",gap:3,sx:{maxWidth:{xs:"none",bg:"30rem",lg:"none"},width:"100%"},children:null===r||void 0===r||null===(t=r.caseStudies)||void 0===t?void 0:t.slice(0,2).map((function(e){return(0,u.jsx)(Cme,{resource:"case-studies",displayName:e.title,id:e.id,renderComponent:function(e){return(0,u.jsx)(O6e,{data:e})}},e.id)}))}),(0,u.jsx)(ms,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",gap:3,sx:{width:"100%",maxWidth:{xs:"none",bg:"30rem",lg:"none"}},children:null===r||void 0===r||null===(n=r.caseStudies)||void 0===n?void 0:n.slice(2,4).map((function(e){return(0,u.jsx)(Cme,{resource:"case-studies",displayName:e.title,id:e.id,renderComponent:function(e){return(0,u.jsx)(O6e,{data:e})}},e.id)}))})]})]})})},D6e=function(e){var t=e.imgUrl,n=e.link,r=e.title,o=e.description,i=e.linkText,a=e.location;return(0,u.jsx)(tn,{sx:{mx:{xs:"0.5rem",sm:"1.5rem",gr:"auto"},maxWidth:"80rem",width:{gr:"100%"},mt:{xs:"1.5rem",sm:"3rem"}},children:(0,u.jsxs)(nn.Z,{direction:{xs:"column-reverse",md:"row"},alignItems:"center",justifyContent:"flex-start",sx:{borderRadius:"1.25rem",bgcolor:"secondaryOrange.401",mr:{xs:"0",md:"2%",bg:"16%",lg:"15%",gr:"15.5%",xxl:"15%"},height:"30.5rem"},position:"relative",spacing:{xs:"seller-archive"===a?4:7,sm:1},children:[(0,u.jsxs)(nn.Z,{spacing:2,sx:{ml:{md:"1.5rem",lg:"1.75rem",gr:"2rem"},px:{xs:"1.5rem",md:"0"},pb:{xs:"2.5rem",md:"0"}},children:[(0,u.jsx)(rn.Z,{whiteSpace:"pre-line",sx:{color:"#FFFFFF",typography:{xs:"publicHeading4",md:"publicHeading3"},maxWidth:"seller-archive"===a?{xs:"100%",md:"34rem",lg:"100%"}:{xs:"100%",md:"100%"}},children:r}),(0,u.jsx)(rn.Z,{sx:{typography:{xs:"publicBody5Regular",sm:"publicBody4Light"},color:"#FFFFFF",maxWidth:{xs:"100%",md:"28rem"},zIndex:10},children:o}),(0,u.jsx)(Wo,{href:n,variant:"primaryText",endIcon:(0,u.jsx)(TR,{fill:"white"}),sx:{fontSize:"1rem",color:"white"},children:i})]}),(0,u.jsx)(tn,{component:"img",src:t,sx:{width:{xs:"20.8125rem",sm:"28.6875rem",md:"37rem",bg:"44.8125rem",lg:"45.25rem"},position:{xs:"unset",md:"absolute"},right:{xs:"0",md:"-2%",bg:"-19%",lg:"-18%",gr:"-20%",xxl:"-19%"}}})]})})},P6e=function(e){var t=e.sx,n=e.sxCp;return(0,u.jsx)(nn.Z,{sx:(0,l.Z)({py:"5rem"},t),direction:"row",alignItems:"center",justifyContent:"center",children:(0,u.jsx)(Zo.Z,{sx:(0,l.Z)({color:tr.E4[300]},n)})})},A6e=function(){var e=hi({resource:"/featured-case-studies"}),t=e.data,n=e.isLoading,r=null===t||void 0===t?void 0:t.data.results,o=null===r||void 0===r?void 0:r.find((function(e){return!0===e.main})),i=null===r||void 0===r?void 0:r.filter((function(e){return!0!==e.main}));return(0,u.jsxs)(nn.Z,{overflow:"hidden",maxWidth:"100%",alignSelf:"center",mt:"".concat(rc,"px"),children:[(0,u.jsx)(Z6e,{imgUrl:(0,rs.mB)(Wxe.W.CaseStudyArchiveHero),title:"Case studies",description:"Explore top projects from industry-leading digital service sellers",link:"/case-study-subarchive",linkText:"View all"}),(0,u.jsxs)(nn.Z,{direction:"column",justifyContent:"center",alignItems:"center",pb:"2rem",spacing:1,children:[(0,u.jsx)(rn.Z,{variant:"publicHeading4",children:null===o||void 0===o?void 0:o.title}),(0,u.jsx)(rn.Z,{variant:"publicBody5Light",sx:{textAlign:"center"},maxWidth:{xs:"90%",sm:"60%",md:"58%",lg:"50%",xl:"30%"},children:"Discover the best of the best in the world of digital projects. Get inspired by stories of creativity, innovation and results-driven success."})]}),(0,u.jsx)(tn,{sx:{px:"0.625rem",mb:{xs:"5rem",gr:"7.5rem"}},children:n?(0,u.jsx)(P6e,{}):(0,u.jsx)(j6e,{data:null===o||void 0===o?void 0:o.caseStudies,renderCustomComponent:function(e){return null===e||void 0===e?void 0:e.map((function(e){return(0,u.jsx)(Cme,{resource:"case-studies",displayName:null===e||void 0===e?void 0:e.title,id:null===e||void 0===e?void 0:e.id,renderComponent:function(e){return(0,u.jsx)(S6e,{children:(0,u.jsx)(O6e,{data:e})},null===e||void 0===e?void 0:e.id)}},null===e||void 0===e?void 0:e.id)}))}})}),n?(0,u.jsx)(P6e,{}):(0,u.jsx)(u.Fragment,{children:(null===i||void 0===i?void 0:i[0].caseStudies.length)>0&&(0,u.jsx)(E6e,{sectionTitle:null===i||void 0===i?void 0:i[0].title,bgcolor:"secondaryOrange.50",data:null===i||void 0===i?void 0:i[0]})}),(0,u.jsx)(D6e,{imgUrl:(0,rs.mB)(Wxe.W.CaseStudyArchiveMacbook),title:"Be inspired",description:"Browse project case studies from the world's leading digital service sellers and see what you could achieve for your business.",link:"/case-study-subarchive",linkText:"View all case studies"}),n?(0,u.jsx)(P6e,{}):(0,u.jsx)(u.Fragment,{children:(null===i||void 0===i?void 0:i[1].caseStudies.length)>0&&(0,u.jsx)(E6e,{sectionTitle:null===i||void 0===i?void 0:i[1].title,data:null===i||void 0===i?void 0:i[1]})}),n?(0,u.jsx)(P6e,{}):(0,u.jsx)(u.Fragment,{children:(null===i||void 0===i?void 0:i[2].caseStudies.length)>0&&(0,u.jsx)(E6e,{sectionTitle:null===i||void 0===i?void 0:i[2].title,bgcolor:"secondaryOrange.50",data:null===i||void 0===i?void 0:i[2]})}),(0,u.jsx)(k6e,{link:"/case-study-subarchive",type:"case_study_archive"})]})},M6e=["title","titleId"];function T6e(){return T6e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T6e.apply(this,arguments)}function I6e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function R6e(e,t){var n=e.title,r=e.titleId,i=I6e(e,M6e);return o.createElement("svg",T6e({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,S4e||(S4e=o.createElement("path",{d:"M10.4923 0.441406C9.43581 0.441406 8.45064 1.13475 8.14323 2.10975L1.32564 2.10807C0.865393 2.10807 0.49231 2.48141 0.49231 2.94141C0.49231 3.40141 0.865393 3.77474 1.32564 3.77474L8.14323 3.77393C8.51665 4.79476 9.43581 5.44141 10.4923 5.44141C11.5488 5.44141 12.4774 4.7931 12.8573 3.76726L14.659 3.77474C15.1192 3.77474 15.4923 3.40141 15.4923 2.94141C15.4923 2.48141 15.1192 2.10807 14.659 2.10807H12.8502C12.449 1.09224 11.5488 0.441406 10.4923 0.441406ZM10.4923 2.10807C10.9526 2.10807 11.3256 2.48141 11.3256 2.94141C11.3256 3.40141 10.9526 3.77474 10.4923 3.77474C10.0321 3.77474 9.65898 3.40141 9.65898 2.94141C9.65898 2.48141 10.0321 2.10807 10.4923 2.10807ZM5.49231 5.44141C4.39398 5.44141 3.47464 6.12475 3.13898 7.10975C3.02181 7.11725 1.32564 7.10807 1.32564 7.10807C0.865393 7.10807 0.49231 7.48141 0.49231 7.94141C0.49231 8.40141 0.865393 8.77474 1.32564 8.77474C1.32564 8.77474 3.03598 8.75724 3.14256 8.76808C3.47823 9.75308 4.39398 10.4414 5.49231 10.4414C6.54881 10.4414 7.45414 9.7939 7.85014 8.77723L14.659 8.77474C15.1192 8.77474 15.4923 8.40141 15.4923 7.94141C15.4923 7.48141 15.1192 7.10807 14.659 7.10807L7.84581 7.1006C7.48056 6.10643 6.54881 5.44141 5.49231 5.44141ZM5.49231 7.10807C5.95256 7.10807 6.32564 7.48141 6.32564 7.94141C6.32564 8.40141 5.95256 8.77474 5.49231 8.77474C5.03206 8.77474 4.65898 8.40141 4.65898 7.94141C4.65898 7.48141 5.03206 7.10807 5.49231 7.10807ZM10.4923 10.4414C9.43581 10.4414 8.4694 11.1372 8.14264 12.0997L1.32564 12.1081C0.865393 12.1081 0.49231 12.4814 0.49231 12.9414C0.49231 13.4014 0.865393 13.7747 1.32564 13.7747L8.13031 13.7756C8.47606 14.7631 9.43581 15.4414 10.4923 15.4414C11.5488 15.4414 12.4597 14.7806 12.8611 13.7756L14.659 13.7747C15.1192 13.7747 15.4923 13.4014 15.4923 12.9414C15.4923 12.4814 15.1192 12.1081 14.659 12.1081L12.8535 12.1031C12.4937 11.1173 11.5488 10.4414 10.4923 10.4414ZM10.4923 12.1081C10.9526 12.1081 11.3256 12.4814 11.3256 12.9414C11.3256 13.4014 10.9526 13.7747 10.4923 13.7747C10.0321 13.7747 9.65898 13.4014 9.65898 12.9414C9.65898 12.4814 10.0321 12.1081 10.4923 12.1081Z",fill:"#4F576E"})),k4e||(k4e=o.createElement("path",{d:"M10.4923 0.441406C9.43581 0.441406 8.45064 1.13475 8.14323 2.10975L1.32564 2.10807C0.865393 2.10807 0.49231 2.48141 0.49231 2.94141C0.49231 3.40141 0.865393 3.77474 1.32564 3.77474L8.14323 3.77393C8.51665 4.79476 9.43581 5.44141 10.4923 5.44141C11.5488 5.44141 12.4774 4.7931 12.8573 3.76726L14.659 3.77474C15.1192 3.77474 15.4923 3.40141 15.4923 2.94141C15.4923 2.48141 15.1192 2.10807 14.659 2.10807H12.8502C12.449 1.09224 11.5488 0.441406 10.4923 0.441406ZM10.4923 2.10807C10.9526 2.10807 11.3256 2.48141 11.3256 2.94141C11.3256 3.40141 10.9526 3.77474 10.4923 3.77474C10.0321 3.77474 9.65898 3.40141 9.65898 2.94141C9.65898 2.48141 10.0321 2.10807 10.4923 2.10807ZM5.49231 5.44141C4.39398 5.44141 3.47464 6.12475 3.13898 7.10975C3.02181 7.11725 1.32564 7.10807 1.32564 7.10807C0.865393 7.10807 0.49231 7.48141 0.49231 7.94141C0.49231 8.40141 0.865393 8.77474 1.32564 8.77474C1.32564 8.77474 3.03598 8.75724 3.14256 8.76808C3.47823 9.75308 4.39398 10.4414 5.49231 10.4414C6.54881 10.4414 7.45414 9.7939 7.85014 8.77723L14.659 8.77474C15.1192 8.77474 15.4923 8.40141 15.4923 7.94141C15.4923 7.48141 15.1192 7.10807 14.659 7.10807L7.84581 7.1006C7.48056 6.10643 6.54881 5.44141 5.49231 5.44141ZM5.49231 7.10807C5.95256 7.10807 6.32564 7.48141 6.32564 7.94141C6.32564 8.40141 5.95256 8.77474 5.49231 8.77474C5.03206 8.77474 4.65898 8.40141 4.65898 7.94141C4.65898 7.48141 5.03206 7.10807 5.49231 7.10807ZM10.4923 10.4414C9.43581 10.4414 8.4694 11.1372 8.14264 12.0997L1.32564 12.1081C0.865393 12.1081 0.49231 12.4814 0.49231 12.9414C0.49231 13.4014 0.865393 13.7747 1.32564 13.7747L8.13031 13.7756C8.47606 14.7631 9.43581 15.4414 10.4923 15.4414C11.5488 15.4414 12.4597 14.7806 12.8611 13.7756L14.659 13.7747C15.1192 13.7747 15.4923 13.4014 15.4923 12.9414C15.4923 12.4814 15.1192 12.1081 14.659 12.1081L12.8535 12.1031C12.4937 11.1173 11.5488 10.4414 10.4923 10.4414ZM10.4923 12.1081C10.9526 12.1081 11.3256 12.4814 11.3256 12.9414C11.3256 13.4014 10.9526 13.7747 10.4923 13.7747C10.0321 13.7747 9.65898 13.4014 9.65898 12.9414C9.65898 12.4814 10.0321 12.1081 10.4923 12.1081Z",fill:"black",fillOpacity:.2})),Z4e||(Z4e=o.createElement("path",{d:"M10.4923 0.441406C9.43581 0.441406 8.45064 1.13475 8.14323 2.10975L1.32564 2.10807C0.865393 2.10807 0.49231 2.48141 0.49231 2.94141C0.49231 3.40141 0.865393 3.77474 1.32564 3.77474L8.14323 3.77393C8.51665 4.79476 9.43581 5.44141 10.4923 5.44141C11.5488 5.44141 12.4774 4.7931 12.8573 3.76726L14.659 3.77474C15.1192 3.77474 15.4923 3.40141 15.4923 2.94141C15.4923 2.48141 15.1192 2.10807 14.659 2.10807H12.8502C12.449 1.09224 11.5488 0.441406 10.4923 0.441406ZM10.4923 2.10807C10.9526 2.10807 11.3256 2.48141 11.3256 2.94141C11.3256 3.40141 10.9526 3.77474 10.4923 3.77474C10.0321 3.77474 9.65898 3.40141 9.65898 2.94141C9.65898 2.48141 10.0321 2.10807 10.4923 2.10807ZM5.49231 5.44141C4.39398 5.44141 3.47464 6.12475 3.13898 7.10975C3.02181 7.11725 1.32564 7.10807 1.32564 7.10807C0.865393 7.10807 0.49231 7.48141 0.49231 7.94141C0.49231 8.40141 0.865393 8.77474 1.32564 8.77474C1.32564 8.77474 3.03598 8.75724 3.14256 8.76808C3.47823 9.75308 4.39398 10.4414 5.49231 10.4414C6.54881 10.4414 7.45414 9.7939 7.85014 8.77723L14.659 8.77474C15.1192 8.77474 15.4923 8.40141 15.4923 7.94141C15.4923 7.48141 15.1192 7.10807 14.659 7.10807L7.84581 7.1006C7.48056 6.10643 6.54881 5.44141 5.49231 5.44141ZM5.49231 7.10807C5.95256 7.10807 6.32564 7.48141 6.32564 7.94141C6.32564 8.40141 5.95256 8.77474 5.49231 8.77474C5.03206 8.77474 4.65898 8.40141 4.65898 7.94141C4.65898 7.48141 5.03206 7.10807 5.49231 7.10807ZM10.4923 10.4414C9.43581 10.4414 8.4694 11.1372 8.14264 12.0997L1.32564 12.1081C0.865393 12.1081 0.49231 12.4814 0.49231 12.9414C0.49231 13.4014 0.865393 13.7747 1.32564 13.7747L8.13031 13.7756C8.47606 14.7631 9.43581 15.4414 10.4923 15.4414C11.5488 15.4414 12.4597 14.7806 12.8611 13.7756L14.659 13.7747C15.1192 13.7747 15.4923 13.4014 15.4923 12.9414C15.4923 12.4814 15.1192 12.1081 14.659 12.1081L12.8535 12.1031C12.4937 11.1173 11.5488 10.4414 10.4923 10.4414ZM10.4923 12.1081C10.9526 12.1081 11.3256 12.4814 11.3256 12.9414C11.3256 13.4014 10.9526 13.7747 10.4923 13.7747C10.0321 13.7747 9.65898 13.4014 9.65898 12.9414C9.65898 12.4814 10.0321 12.1081 10.4923 12.1081Z",fill:"black",fillOpacity:.2})))}var F6e,B6e=o.forwardRef(R6e),L6e=(n.p,(0,pa.Z)((0,u.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")),N6e=function(e){var t=Xe(),n=(0,Le.Z)(t,2),r=n[0],o=n[1];return[Object.fromEntries(r),function(e){o((function(t){return(0,l.Z)((0,l.Z)({},Object.fromEntries(t)),function(){for(var t in e)""!==e[t]&&void 0!==e[t]||delete e[t];return e}())}))},function(e){o((function(t){return t.delete(e),t}))},r]},_6e=function(e){var t=e.open,n=e.setIsOpen,r=N6e(),i=(0,Le.Z)(r,4),a=i[1],s=i[2],c=i[3],d=fd({defaultValues:{orderBy:"-published",service:[],targetIndustry:[],targetMarket:[],platform:[],language:[],averageProjectSize:"",tool:[]}});(0,o.useEffect)((function(){d.reset({orderBy:c.get("orderBy")||"-published",service:c.getAll("service")||[],targetIndustry:c.getAll("targetIndustry")||[],targetMarket:c.getAll("targetMarket")||[],platform:c.getAll("platform")||[],tool:c.getAll("tool")||[],language:c.getAll("language")||[],averageProjectSize:c.get("averageProjectSize")||""})}),[t]);return(0,u.jsx)(ec,{disablePortal:!0,anchor:"left",open:t,onClose:function(){return n(!1)},hideBackdrop:!0,elevation:4,PaperProps:{sx:{mt:"".concat(79,"px"),borderTopRightRadius:"0.25rem"}},children:(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},d),{},{children:(0,u.jsx)(U.Z,{onClickAway:function(e){return n(!1)},children:(0,u.jsx)(tn,{component:"form",sx:{width:"100%",height:"100%"},onSubmit:d.handleSubmit((function(e){a(e),n(!1)})),children:(0,u.jsx)(ms,{width:{md:"35vw",lg:"25vw"},direction:"column",alignItems:"end",p:2,pt:3,children:(0,u.jsxs)(ms,{gap:1,pt:4,bgcolor:"white",width:"100%",children:[(0,u.jsxs)(ms,{width:"100%",mb:2,direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{variant:"publicHeading4",color:"primaryDark.900",children:"All filters"}),(0,u.jsx)(io.Z,{onClick:function(){return n(!t)},children:(0,u.jsx)(L6e,{sx:{color:"primaryDark.500"}})})]}),(0,u.jsx)(f0,{sx:{minHeight:10,minWidth:"fit-content"},input:(0,u.jsx)(f0.SearchSelect,{}),name:"service",placeholder:"Category ",choices:Kt.Sj,multiple:!0}),(0,u.jsx)(f0,{sx:{minHeight:10,minWidth:"fit-content"},input:(0,u.jsx)(f0.SearchSelect,{}),name:"targetIndustry",placeholder:"Buyer Industry",choices:Kt.lu,multiple:!0,withChips:!1}),(0,u.jsx)(f0,{sx:{minHeight:10,minWidth:"fit-content"},input:(0,u.jsx)(f0.SearchSelect,{}),name:"targetMarket",placeholder:"Target market",choices:Kt.NF,multiple:!0}),(0,u.jsx)(f0,{sx:{minHeight:10,minWidth:"fit-content"},input:(0,u.jsx)(f0.SearchSelect,{}),name:"averageProjectSize",placeholder:"Project Budget",choices:Kt.Dw}),(0,u.jsx)(f0,{sx:{minHeight:10,minWidth:"fit-content"},input:(0,u.jsx)(f0.SearchSelect,{}),name:"platform",placeholder:"Tech platforms",choices:T$.VA,multiple:!0}),(0,u.jsx)(f0,{sx:{minHeight:10,minWidth:"fit-content"},input:(0,u.jsx)(f0.SearchSelect,{}),name:"tool",placeholder:"Tech tools",choices:T$.oz,multiple:!0}),(0,u.jsx)(f0,{sx:{minHeight:10,minWidth:"fit-content"},input:(0,u.jsx)(f0.SearchSelect,{}),name:"language",placeholder:"Programming languages",choices:T$.G3,multiple:!0}),(0,u.jsxs)(ms,{direction:"row",gap:2,mt:2,children:[(0,u.jsx)(Wo,{variant:"primaryLight",onClick:function(){d.reset({orderBy:"-published",service:[],targetIndustry:[],targetMarket:[],platform:[],language:[],averageProjectSize:"",tool:[]}),s("orderBy"),s("service"),s("targetIndustry"),s("targetMarket"),s("platform"),s("language"),s("averageProjectSize"),s("tool"),n(!1)},children:"Clear filters"}),(0,u.jsx)(Wo,{type:"submit",children:"Apply all"})]})]})})})})}))})},z6e=["orderBy"],H6e=new Map([].concat((0,dn.Z)(Array.from(Kt.NF.entries())),(0,dn.Z)(Array.from(T$.oz.entries())),(0,dn.Z)(Array.from(Kt.lu.entries())),(0,dn.Z)(Array.from(Kt.Dw.entries())),(0,dn.Z)(Array.from(Kt.Sj.entries())),(0,dn.Z)(Array.from(T$.VA.entries())),(0,dn.Z)(Array.from(T$.G3.entries())))),W6e=new Map([["-published","New"],["title","A-Z"],["-title","Z-A"]]),V6e=function(){var e,t,n,r,i=(0,o.useState)(!1),a=(0,Le.Z)(i,2),s=a[0],c=a[1],d=N6e(),p=(0,Le.Z)(d,4),f=p[1],h=p[2],m=p[3],v=fd({defaultValues:{orderBy:"-published",service:[],targetIndustry:[],targetMarket:[],platform:[],language:[],averageProjectSize:"",tool:[]},mode:"onChange"}),g=v.setValue,y=v.trigger,b=v.getValues,x=v.watch,w=v.handleSubmit,C=v.reset,j=(Bn(ir.breakpoints.down("lg")),x()),S=function(){j.orderBy;var e=Nn(j,z6e);return Object.keys(e).filter((function(t){return 0!==e[t].length}))};return(0,o.useEffect)((function(){v.reset({orderBy:m.get("orderBy")||"-published",service:m.getAll("service")||[],targetIndustry:m.getAll("targetIndustry")||[],targetMarket:m.getAll("targetMarket")||[],platform:m.getAll("platform")||[],tool:m.getAll("tool")||[],language:m.getAll("language")||"",averageProjectSize:m.get("averageProjectSize")||""})}),[s]),(0,o.useEffect)((function(){var e=x((function(){return f(x())}));return function(){return e.unsubscribe()}}),[x]),(0,u.jsxs)(ms,{gap:3,pt:5,bgcolor:"white",width:"100%",children:[(0,u.jsx)(rn.Z,{variant:"publicHeading4",children:"Case study"}),(0,u.jsxs)(Qc,(0,l.Z)((0,l.Z)({},v),{},{children:[(0,u.jsx)(tn,{component:"form",onSubmit:w((function(){return null})),children:(0,u.jsxs)(ms,{direction:"row",gap:3,flexWrap:"wrap",children:[(0,u.jsx)(Wo,{sx:{textTransform:"none"},variant:"secondaryDark",endIcon:(0,u.jsx)(B6e,{}),onClick:function(){return c(!s)},children:"All filters"}),(0,u.jsx)(f0,{sx:{minHeight:8,minWidth:"fit-content","& .MuiTypography-root":{color:"primaryDark.600",fontFamily:"Gellix-SemiBold"}},input:(0,u.jsx)(f0.Select,{}),name:"orderBy",placeholder:"Sort by",choices:W6e})]})}),!(null===(e=S())||void 0===e||!e.length)&&(0,u.jsx)(un,{}),(0,u.jsxs)(ms,{direction:"row",gap:2.5,alignItems:"center",flexWrap:"wrap",sx:{mb:null!==(t=S())&&void 0!==t&&t.length?3:0},children:[null===(n=S())||void 0===n?void 0:n.map((function(e){var t;return Array.isArray(j[e])?null===(t=j[e])||void 0===t?void 0:t.map((function(t,n){return(0,u.jsx)(_d,{label:H6e.get(t),onDelete:function(){g(e,b(e).filter((function(e){return e!==t}))),y(e)}},t+n)})):(0,u.jsx)(_d,{style:{textTransform:"capitalize"},label:H6e.get(j[e]),onDelete:function(){g(e,""),y(e)}},j[e])})),!(null===(r=S())||void 0===r||!r.length)&&(0,u.jsx)(Wo,{onClick:function(){C({orderBy:"-published",service:[],targetIndustry:[],targetMarket:[],platform:[],language:[],averageProjectSize:"",tool:[]}),h("orderBy"),h("service"),h("targetIndustry"),h("targetMarket"),h("platform"),h("language"),h("averageProjectSize"),h("tool")},variant:"secondaryText",children:"Clear all"})]})]})),(0,u.jsx)(_6e,{open:s,setIsOpen:c})]})},U6e=function(e){var t=e.count,n=12,r=0,o=N6e(),i=(0,Le.Z)(o,2),a=i[0],s=i[1],l=function(e){s({offset:(e-1)*n}),window.scrollTo(0,0)};return(0,u.jsxs)(nn.Z,{py:3,justifyContent:"space-between",alignItems:"center",flexDirection:"row",children:[(0,u.jsx)(Wo,{onClick:function(){var e=(a.offset||r)/n+1;l(e-1)},disabled:(a.offset||r)/12+1===1,variant:"secondaryText",startIcon:(0,u.jsx)(TR,{fill:tr.E4[500],style:{transform:"rotate(180deg)"}}),children:"Previous"}),(0,u.jsx)(nn.Z,{direction:"row",gap:2,children:(0,u.jsx)(Oke,{hideNextButton:!0,hidePrevButton:!0,count:Math.ceil((t||0)/n),page:(a.offset||r)/12+1,siblingCount:1,boundaryCount:2,sx:{"& .MuiPaginationItem-root":{color:"primaryDark.500","&.Mui-selected":{backgroundColor:"primaryLight.50",color:"primaryLight.500",borderRadius:"8px"}}},onChange:function(e,t){return l(t)}})}),(0,u.jsx)(Wo,{onClick:function(){var e=(a.offset||r)/n+1;l(e+1)},variant:"secondaryText",disabled:Math.ceil((t||.001)/n)===(a.offset||r)/12+1,endIcon:(0,u.jsx)(TR,{fill:tr.E4[500]}),children:"Next"})]})},q6e=function(){var e=N6e(),t=(0,Le.Z)(e,4),n=t[0],r=t[3],o=hi({resource:"/case-studies?".concat(function(){var e,t,o,i=new URLSearchParams(r);return i.set("limit",null!==(e=n.limit)&&void 0!==e?e:"12"),i.set("offset",null!==(t=n.offset)&&void 0!==t?t:"0"),i.set("orderBy",null!==(o=n.orderBy)&&void 0!==o?o:"-published"),i.set("status","verified"),i.set("visibility","true"),i.append("status","under_review"),i.append("status","published"),i.toString()}())}),i=o.data,a=o.isLoading,s=null===i||void 0===i?void 0:i.data.results,l=null===i||void 0===i?void 0:i.data.count;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(da.Z,{children:(0,u.jsx)(ms,{overflow:"hidden",maxWidth:"100%",alignSelf:"center",mt:"".concat(rc,"px"),sx:{px:{xs:"1.5rem",lg:"2.5rem"},mx:{gr:"auto"},width:{gr:"85rem"}},children:(0,u.jsx)(V6e,{})})}),(0,u.jsx)(da.Z,{sx:{backgroundColor:"primaryDark.100"},children:a?(0,u.jsx)(P6e,{}):(0,u.jsx)(u.Fragment,{children:l&&l>0?(0,u.jsxs)(ms,{overflow:"hidden",maxWidth:"100%",alignSelf:"center",sx:{px:{xs:"1.5rem",lg:"2.5rem"},mx:{gr:"auto"},width:{gr:"85rem"}},children:[(0,u.jsx)(kn,{container:!0,spacing:3,rowSpacing:5,pt:0,mt:-1.5,gridAutoRows:"max-content",children:null===s||void 0===s?void 0:s.map((function(e,t){return(0,u.jsx)(kn,{item:!0,xs:12,sm:6,md:4,lg:4,xl:4,gridAutoRows:"max-content",children:(0,u.jsx)(O6e,{showFocusArea:!0,data:e})},null===e||void 0===e?void 0:e.id)}))}),(0,u.jsx)(un,{sx:{mt:5}}),(0,u.jsx)(U6e,{count:l})]}):(0,u.jsx)(RI,{sx:{transform:"none",WebkitTransform:"none",position:"static"}})})})]})},G6e=function(){var e=(0,ze.UO)().archiveId,t=(0,ze.s0)(),n=fd({defaultValues:{linkedServices:[],companies:[],description:"",title:""}}),r=hi({resource:"companies?role=seller_service&status=approved"}).data,o=zp({resource:"featured-companies/".concat(e),onSuccess:function(e){var t=e.data,r=(t.id,t.main,t.companies),o=t.linkedServices,i=t.description,a=t.title,s=null===r||void 0===r?void 0:r.map((function(e){return e.id}));n.reset({title:a,description:i,companies:s,linkedServices:o})}}),i=(o.data,null===r||void 0===r?void 0:r.data.results),a=new Map(null===i||void 0===i?void 0:i.map((function(e){return[e.id,e.name]}))),s=(0,As.Z)({resource:"/featured-companies"}).mutate;return(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},n),{},{children:(0,u.jsx)(tn,{component:"form",sx:{width:"100%",height:"100%"},onSubmit:n.handleSubmit((function(n){s({id:e,data:(0,l.Z)({},n)},{onSuccess:function(){t("/admin/seller-archive")}})})),children:(0,u.jsx)(ms,{direction:"column",p:2,width:"60%",children:(0,u.jsxs)(ms,{gap:3,children:[(0,u.jsx)(ms,{width:"100%",mb:2,children:(0,u.jsx)(rn.Z,{variant:"publicHeading4",color:"primaryDark.900",children:"Edit featured companies"})}),(0,u.jsx)(f0,{sx:{minHeight:10,minWidth:"fit-content"},input:(0,u.jsx)(f0.Text,{}),name:"title",placeholder:"Title",label:"Title"}),(0,u.jsx)(f0,{sx:{minHeight:10,minWidth:"fit-content"},input:(0,u.jsx)(f0.Text,{}),name:"description",placeholder:"Description",label:"Description"}),r&&(0,u.jsx)(f0,{sx:{minHeight:10,minWidth:"fit-content"},input:(0,u.jsx)(f0.SearchSelect,{}),withChips:!0,name:"companies",placeholder:"Companies",choices:a||[],multiple:!0,label:"Companies"}),(0,u.jsx)(f0,{sx:{minHeight:10,minWidth:"fit-content"},input:(0,u.jsx)(f0.SearchSelect,{}),name:"linkedServices",placeholder:"Services",label:"Services",multiple:!0,choices:Kt.Sj,withChips:!0}),(0,u.jsx)(ms,{direction:"row",gap:2,mt:2,children:(0,u.jsx)(Wo,{type:"submit",children:"Sumbit"})})]})})})}))},Y6e=(0,pa.Z)((0,u.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),K6e=function(){var e=(0,ze.s0)(),t=[{field:"title",headerName:"Title",flex:.3,renderCell:function(e){return(0,u.jsx)(rn.Z,{variant:"body2",sx:{color:"primaryDark.600"},children:(0,rs.$G)(e.value,40)})}},{field:"description",headerName:"Description",flex:.5,renderCell:function(e){return(0,u.jsx)(rn.Z,{variant:"body2",sx:{color:"primaryDark.600"},children:(0,rs.$G)(e.value,100)})}},{field:"id",headerName:"Companies",flex:.2,renderCell:function(e){return(0,u.jsx)(rn.Z,{variant:"bodySemiBold1",sx:{color:"primaryDark.600"},children:e.row.companies.length})}},{field:"main",headerName:"Main",flex:.1,renderCell:function(e){return e.value?(0,u.jsx)(Y6e,{}):(0,u.jsx)(y6e,{})}}];return(0,u.jsx)(nn.Z,{direction:"column",sx:{height:"fit-content",width:"100%"},spacing:2,children:(0,u.jsx)(k2,{resource:"featured-companies",columns:t,disableTabView:!0,onRowClick:function(t){return e("./".concat(t.id))},autoHeight:!0,hideFooter:!0})})},J6e=function(){var e=(0,ze.UO)().archiveId,t=(0,ze.s0)(),n=fd({defaultValues:{linkedServices:[],caseStudies:[],description:"",title:""}}),r=hi({resource:"case-studies?status=".concat(Kt.U_.Verified)}).data,o=zp({resource:"featured-case-studies/".concat(e),onSuccess:function(e){var t=e.data,r=(t.id,t.main,t.caseStudies),o=t.linkedServices,i=t.description,a=t.title,s=null===r||void 0===r?void 0:r.map((function(e){return e.id}));n.reset({title:a,description:i,caseStudies:s,linkedServices:o})}}),i=(o.data,null===r||void 0===r?void 0:r.data.results),a=new Map(null===i||void 0===i?void 0:i.map((function(e){return[e.id,e.title]}))),s=(0,As.Z)({resource:"/featured-case-studies"}).mutate;return(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},n),{},{children:(0,u.jsx)(tn,{component:"form",sx:{width:"100%",height:"100%"},onSubmit:n.handleSubmit((function(n){s({id:e,data:(0,l.Z)({},n)},{onSuccess:function(){t("/admin/case-study-archive")}})})),children:(0,u.jsx)(ms,{direction:"column",p:2,width:"60%",children:(0,u.jsxs)(ms,{gap:3,children:[(0,u.jsx)(ms,{width:"100%",mb:2,children:(0,u.jsx)(rn.Z,{variant:"publicHeading4",color:"primaryDark.900",children:"Edit featured caseStudies"})}),(0,u.jsx)(f0,{sx:{minHeight:10,minWidth:"fit-content"},input:(0,u.jsx)(f0.Text,{}),name:"title",placeholder:"Title",label:"Title"}),(0,u.jsx)(f0,{sx:{minHeight:10,minWidth:"fit-content"},input:(0,u.jsx)(f0.Text,{}),name:"description",placeholder:"Description",label:"Description"}),r&&(0,u.jsx)(f0,{sx:{minHeight:10,minWidth:"fit-content"},input:(0,u.jsx)(f0.SearchSelect,{}),withChips:!0,name:"caseStudies",placeholder:"Case Studies",choices:a||[],multiple:!0,label:"Case Studies"}),(0,u.jsx)(f0,{sx:{minHeight:10,minWidth:"fit-content"},input:(0,u.jsx)(f0.SearchSelect,{}),name:"linkedServices",placeholder:"Services",label:"Services",multiple:!0,choices:Kt.Sj,withChips:!0}),(0,u.jsx)(ms,{direction:"row",gap:2,mt:2,children:(0,u.jsx)(Wo,{type:"submit",children:"Sumbit"})})]})})})}))},X6e=function(){var e=(0,ze.s0)(),t=[{field:"title",headerName:"Title",flex:.3,renderCell:function(e){return(0,u.jsx)(rn.Z,{variant:"body2",sx:{color:"primaryDark.600"},children:(0,rs.$G)(e.value,40)})}},{field:"description",headerName:"Description",flex:.5,renderCell:function(e){return(0,u.jsx)(rn.Z,{variant:"body2",sx:{color:"primaryDark.600"},children:(0,rs.$G)(e.value,100)})}},{field:"id",headerName:"Companies",flex:.2,renderCell:function(e){var t,n;return(0,u.jsx)(rn.Z,{variant:"bodySemiBold1",sx:{color:"primaryDark.600"},children:null===(t=e.row)||void 0===t||null===(n=t.caseStudies)||void 0===n?void 0:n.length})}},{field:"main",headerName:"Main",flex:.1,renderCell:function(e){return e.value?(0,u.jsx)(Y6e,{}):(0,u.jsx)(y6e,{})}}];return(0,u.jsx)(nn.Z,{direction:"column",sx:{height:"fit-content",width:"100%"},spacing:2,children:(0,u.jsx)(k2,{resource:"featured-case-studies",columns:t,disableTabView:!0,onRowClick:function(t){return e("./".concat(t.id))},autoHeight:!0,hideFooter:!0})})},Q6e=function(e){var t,n,r,o,i,a,s,l,c,d,p,f,h,m,v,g,y,b,x,w,C,j,S=e.data,k=e.scrollRef,Z=null===S||void 0===S||null===(t=S.review)||void 0===t?void 0:t.reviewer;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(nn.Z,{pb:2,pt:1,children:[(0,u.jsxs)(nn.Z,{mb:1.5,direction:"row",alignItems:"center",spacing:1,py:{xs:0,lg:3},children:[(0,u.jsx)(VPe,{ref:k,fill:tr.IV[500]}),(0,u.jsx)(Cd,{textVariant:"heading3",text:"Client review"})]}),(0,u.jsxs)(nn.Z,{bgcolor:"secondaryBlue.50",p:2.25,spacing:1,mb:4,children:[(0,u.jsxs)(rn.Z,{variant:"publicBody5Regular",color:"primaryDark.700",children:["\u201c",null===S||void 0===S||null===(n=S.review)||void 0===n?void 0:n.summarization,"\u201d"]}),(0,u.jsx)(rn.Z,{variant:"publicBody5",color:"primaryDark.700",children:Z?"".concat(Z.firstName," ").concat(Z.firstName,", ").concat(Z.jobTitle,", ").concat(Z.companyName):"Unknown"})]}),(0,u.jsxs)(nn.Z,{mb:1.5,direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{variant:"publicBody6",children:"Quality"}),(0,u.jsx)(AAe,{rating:Math.round(null!==(r=null===S||void 0===S||null===(o=S.review)||void 0===o||null===(i=o.score)||void 0===i?void 0:i.qualityScore)&&void 0!==r?r:0)})]}),(null===S||void 0===S||null===(a=S.review)||void 0===a?void 0:a.score.qualityText)&&(0,u.jsx)(m$,{items:A$,content:null===S||void 0===S||null===(s=S.review)||void 0===s?void 0:s.score.qualityText,isEditable:!1},"quality")]}),(0,u.jsxs)(nn.Z,{py:2,children:[(0,u.jsxs)(nn.Z,{mb:1.5,direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{variant:"publicBody6",children:"Budget"}),(0,u.jsx)(AAe,{rating:Math.round(null!==(l=null===S||void 0===S||null===(c=S.review)||void 0===c||null===(d=c.score)||void 0===d?void 0:d.budgetScore)&&void 0!==l?l:0)})]}),(null===S||void 0===S||null===(p=S.review)||void 0===p?void 0:p.score.budgetText)&&(0,u.jsx)(m$,{items:A$,content:null===S||void 0===S||null===(f=S.review)||void 0===f?void 0:f.score.budgetText,isEditable:!1},"budget")]}),(0,u.jsxs)(nn.Z,{py:2,children:[(0,u.jsxs)(nn.Z,{mb:1.5,direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{variant:"publicBody6",children:"Schedule"}),(0,u.jsx)(AAe,{rating:Math.round(null!==(h=null===S||void 0===S||null===(m=S.review)||void 0===m||null===(v=m.score)||void 0===v?void 0:v.scheduleScore)&&void 0!==h?h:0)})]}),(null===S||void 0===S||null===(g=S.review)||void 0===g?void 0:g.score.scheduleText)&&(0,u.jsx)(m$,{items:A$,content:null===S||void 0===S||null===(y=S.review)||void 0===y?void 0:y.score.scheduleText,isEditable:!1},"schedule")]}),(0,u.jsxs)(nn.Z,{py:2,children:[(0,u.jsxs)(nn.Z,{mb:1.5,direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{variant:"publicBody6",children:"Willingness to refer"}),(0,u.jsx)(AAe,{rating:Math.round(null!==(b=null===S||void 0===S||null===(x=S.review)||void 0===x||null===(w=x.score)||void 0===w?void 0:w.recommendationScore)&&void 0!==b?b:0)})]}),(null===S||void 0===S||null===(C=S.review)||void 0===C?void 0:C.score.recommendationText)&&(0,u.jsx)(m$,{items:A$,content:null===S||void 0===S||null===(j=S.review)||void 0===j?void 0:j.score.recommendationText,isEditable:!1},"willingness")]})]})},$6e=function(e){var t,n,r,o,i,a,s,l,c=e.data,d=e.scrollRef,p=Bn(ir.breakpoints.down("md"));return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(nn.Z,{py:{xs:3,md:5},children:[(0,u.jsxs)(nn.Z,{mb:3,direction:"row",alignItems:"center",spacing:1,children:[(0,u.jsx)(XMe,{fill:tr.IV[500]}),(0,u.jsx)(Cd,{textVariant:"heading3",text:"project goals"})]}),(null===c||void 0===c||null===(t=c.description)||void 0===t?void 0:t.goals)&&(0,u.jsx)(m$,{items:A$,content:null===c||void 0===c||null===(n=c.description)||void 0===n?void 0:n.goals,isEditable:!1},"goals")]}),(0,u.jsx)(i9e,{}),(0,u.jsxs)(nn.Z,{py:{xs:3,md:5},children:[(0,u.jsxs)(nn.Z,{mb:3,direction:"row",alignItems:"center",spacing:1,children:[(0,u.jsx)(aqe,{fill:tr.IV[500]}),(0,u.jsx)(Cd,{textVariant:"heading3",text:"challenges"})]}),(null===c||void 0===c||null===(r=c.description)||void 0===r?void 0:r.challenges)&&(0,u.jsx)(m$,{items:A$,content:null===c||void 0===c||null===(o=c.description)||void 0===o?void 0:o.challenges,isEditable:!1},"challenges")]}),(0,u.jsx)(i9e,{}),(0,u.jsxs)(nn.Z,{py:{xs:3,md:5},children:[(0,u.jsxs)(nn.Z,{mb:3,direction:"row",alignItems:"center",spacing:1,children:[(0,u.jsx)(fqe,{fill:tr.IV[500]}),(0,u.jsx)(Cd,{textVariant:"heading3",text:"solution"})]}),(null===c||void 0===c||null===(i=c.description)||void 0===i?void 0:i.solutions)&&(0,u.jsx)(m$,{items:A$,content:null===c||void 0===c||null===(a=c.description)||void 0===a?void 0:a.solutions,isEditable:!1},"solution")]}),(0,u.jsx)(i9e,{}),(0,u.jsxs)(nn.Z,{py:{xs:3,md:5},children:[(0,u.jsxs)(nn.Z,{mb:3,direction:"row",alignItems:"center",spacing:1,children:[(0,u.jsx)(LAe,{fill:tr.IV[500]}),(0,u.jsx)(Cd,{textVariant:"heading3",text:"results"})]}),(null===c||void 0===c||null===(s=c.description)||void 0===s?void 0:s.results)&&(0,u.jsx)(m$,{items:A$,content:null===c||void 0===c||null===(l=c.description)||void 0===l?void 0:l.results,isEditable:!1},"results")]}),(0,u.jsx)(i9e,{}),(0,u.jsx)(nn.Z,{display:{xs:"none",md:"flex"},py:{md:5},children:(0,u.jsx)(Q6e,{scrollRef:p?null:d,data:c})})]})},e9e=function(e){var t=e.label,n=e.choices,r=e.values,i=(0,o.useState)(!0),a=(0,Le.Z)(i,2),s=a[0],l=a[1];return(0,u.jsxs)(nn.Z,{flex:1,children:[(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(Cd,{text:t,color:"primaryDark.900"}),(0,u.jsx)(io.Z,{onClick:function(){return l(!s)},children:(0,u.jsx)(Ea,{width:12,height:8,style:{transform:s?"rotate(180deg)":"rotate(0)",transition:"all 0.2s",color:"red !important"}})})]}),(0,u.jsx)(nn.Z,{direction:"row",gap:1,flexWrap:"wrap",overflow:"hidden",sx:{maxHeight:s?"max-content":"0px"},children:null===r||void 0===r?void 0:r.map((function(e){return(0,u.jsx)(_d,{label:n.get(e)})}))})]})},t9e=function(e){var t,n,r,o,i,a,s,l,c,d,p,f,h,m,v,g,y,b,x,w,C,j=e.data,S=e.score,k=e.scrollOnClick,Z=e.setActiveTab,O=Bn(ir.breakpoints.down("md"));return(0,u.jsxs)(u.Fragment,{children:[!O&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Ca,{style:{margin:"0 auto"},alt:"company logo",src:null===j||void 0===j||null===(t=j.seller)||void 0===t?void 0:t.avatar,sx:{width:76,height:76}}),(0,u.jsx)(rn.Z,{textAlign:"center",mt:2,mb:8,variant:"publicBody2",children:null===j||void 0===j||null===(n=j.seller)||void 0===n?void 0:n.name})]}),(0,u.jsx)(un,{sx:{borderColor:tr.aK[200]}}),(0,u.jsxs)(nn.Z,{py:2.25,gap:2,children:[(0,u.jsx)(rn.Z,{variant:"heading3",color:"primaryDark.500",children:"Client review"}),(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",alignContent:"center",children:[(0,u.jsx)(rn.Z,{variant:"publicBody5",color:"primaryDark.600",children:"Total score"}),(0,u.jsx)(rn.Z,{variant:"publicBody5",color:"secondaryBlue.700",width:"100px",alignContent:"center",children:Math.round(null!==S&&void 0!==S?S:0)})]}),(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{variant:"publicBody5",color:"primaryDark.600",children:"Execution"}),(0,u.jsx)(rn.Z,{variant:"publicBody5",color:"primaryDark.600",width:"100px",alignContent:"center",children:(0,u.jsx)(AAe,{rating:Math.round(null!==(r=null===j||void 0===j||null===(o=j.review)||void 0===o||null===(i=o.score)||void 0===i?void 0:i.qualityScore)&&void 0!==r?r:0)})})]}),(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{variant:"publicBody5",color:"primaryDark.600",children:"Budget"}),(0,u.jsx)(rn.Z,{variant:"publicBody5",color:"primaryDark.600",width:"100px",alignContent:"center",children:(0,u.jsx)(AAe,{rating:Math.round(null!==(a=null===j||void 0===j||null===(s=j.review)||void 0===s||null===(l=s.score)||void 0===l?void 0:l.budgetScore)&&void 0!==a?a:0)})})]}),(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{variant:"publicBody5",color:"primaryDark.600",children:"Timeframe"}),(0,u.jsx)(rn.Z,{variant:"publicBody5",color:"primaryDark.600",width:"100px",alignContent:"center",children:(0,u.jsx)(AAe,{rating:Math.round(null!==(c=null===j||void 0===j||null===(d=j.review)||void 0===d||null===(p=d.score)||void 0===p?void 0:p.scheduleScore)&&void 0!==c?c:0)})})]}),(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{variant:"publicBody5",color:"primaryDark.600",children:"Recommend to others"}),(0,u.jsx)(rn.Z,{variant:"publicBody5",color:"primaryDark.600",width:"100px",alignContent:"center",children:(0,u.jsx)(AAe,{rating:Math.round(null!==(f=null===j||void 0===j||null===(h=j.review)||void 0===h||null===(m=h.score)||void 0===m?void 0:m.recommendationScore)&&void 0!==f?f:0)})})]}),(0,u.jsx)(nn.Z,{justifyContent:"center",direction:"row",children:(0,u.jsx)(Wo,{variant:"primaryText",sx:{mt:2},onClick:function(){return O?Z("review"):k()},children:"Read full review"})})]}),(0,u.jsxs)(tn,{children:[(0,u.jsx)(nn.Z,{pb:3,pt:1.5,children:(0,u.jsx)(e9e,{label:"services",choices:Kt.Sj,values:null===j||void 0===j||null===(v=j.details)||void 0===v?void 0:v.services})}),(0,u.jsx)(un,{sx:{borderColor:tr.aK[200]}}),(0,u.jsx)(nn.Z,{py:3,children:(0,u.jsx)(e9e,{label:"tech languages",choices:T$.G3,values:null===j||void 0===j||null===(g=j.details)||void 0===g?void 0:g.languages})}),(0,u.jsx)(un,{sx:{borderColor:tr.aK[200]}}),(0,u.jsx)(nn.Z,{py:3,children:(0,u.jsx)(e9e,{label:"tech tools",choices:T$.oz,values:null===j||void 0===j||null===(y=j.details)||void 0===y?void 0:y.tools})}),(0,u.jsx)(un,{sx:{borderColor:tr.aK[200]}}),(0,u.jsx)(nn.Z,{py:3,children:(0,u.jsx)(e9e,{label:"Programming platforms",choices:T$.VA,values:null===j||void 0===j||null===(b=j.details)||void 0===b?void 0:b.platforms})}),(0,u.jsx)(un,{sx:{borderColor:tr.aK[200]}}),(0,u.jsx)(nn.Z,{py:3,children:(0,u.jsx)(e9e,{label:"Industry focus",choices:Kt.lu,values:null===j||void 0===j||null===(x=j.details)||void 0===x?void 0:x.industries})}),(0,u.jsx)(un,{sx:{borderColor:tr.aK[200]}}),(0,u.jsx)(nn.Z,{py:3,children:(0,u.jsx)(e9e,{label:"Geography focus",choices:Kt.NF,values:null===j||void 0===j||null===(w=j.details)||void 0===w?void 0:w.geographyFocus})}),(0,u.jsx)(un,{sx:{borderColor:tr.aK[200]}}),(0,u.jsxs)(nn.Z,{pb:6.75,pt:3,children:[(0,u.jsx)(Cd,{text:"Project size",color:"primaryDark.900"}),(0,u.jsx)(rn.Z,{variant:"heading3",color:"primaryDark.900",children:null!==j&&void 0!==j&&null!==(C=j.details)&&void 0!==C&&C.projectSize?Kt.Dw.get(null===j||void 0===j?void 0:j.details.projectSize):"--"})]})]})]})},n9e={centerMode:!0,prevArrow:(0,u.jsx)(io.Z,{sx:{background:"#red !important",backgroundColor:"#red !important",width:"2.5rem",height:"2.5rem",border:"1px solid",borderColor:"primaryLight.500",p:0,position:"absolute",display:"flex",justifyContent:"center",alignItems:"center","&:hover":{color:"primaryLight.500"}},disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,children:(0,u.jsx)(uM.Z,{sx:{color:"primaryLight.700",fontSize:"1.5rem"}})}),nextArrow:(0,u.jsx)(io.Z,{sx:{background:"#red !important",backgroundColor:"#red !important",width:"2.5rem",height:"2.5rem",border:"1px solid",borderColor:"primaryLight.500",p:0,position:"absolute",display:"flex",justifyContent:"center",alignItems:"center","&:hover":{color:"primaryLight.500"}},disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,children:(0,u.jsx)(dM.Z,{sx:{color:"primaryLight.700",fontSize:"1.5rem"}})}),arrows:!0,className:"related",responsive:[{breakpoint:1024,settings:{slidesToShow:3,slidesToScroll:3,infinite:!0,dots:!0}},{breakpoint:800,settings:{slidesToShow:2,slidesToScroll:2,initialSlide:2}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}}],infinite:!0,centerPadding:"0px",slidesToShow:3,speed:500},r9e=function(e){var t=e.renderCustomComponent,n=e.services,r=new URLSearchParams;null===n||void 0===n||n.map((function(e){r.append("services",e)}));var o=hi({resource:"/case-studies?limit=6&".concat(r.toString()),enabled:!!r.toString().length}).data,i=hi({resource:"/case-studies?limit=6",enabled:!!r.toString().length}).data,a=null!==o&&void 0!==o&&o.data.results.length?null===o||void 0===o?void 0:o.data.results:null===i||void 0===i?void 0:i.data.results;return(0,u.jsx)(nn.Z,{width:"100%",sx:{px:.5},maxWidth:{md:"55rem",lg:"64.6rem",xxl:"72.4rem"},mx:"auto",children:a&&(0,u.jsx)(w6e.Z,(0,l.Z)((0,l.Z)({},n9e),{},{children:t(a)}))})},o9e=function(e){var t=e.children;return(0,u.jsx)(da.Z,{sx:{maxWidth:{md:"16.75rem",lg:"18.875rem"},mx:"auto",my:3},children:t})},i9e=function(){return(0,u.jsx)(nn.Z,{width:"100%",bgcolor:tr.aK[200],height:"1px"})},a9e=function(){var e,t,n,r,i,a,s,l,c,d=(0,o.useState)("case-study"),p=(0,Le.Z)(d,2),f=p[0],h=p[1],m=(0,ze.UO)(),v=Bn(ir.breakpoints.down("md")),g=(0,o.useRef)(null),y=zp({enabled:!(null===m||void 0===m||!m.caseStudyId),resource:"case-studies/".concat(m.caseStudyId),refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1}),b=y.data,x=y.isLoading,w=zp({enabled:!(null===b||void 0===b||null===(e=b.data)||void 0===e||!e.content),resource:"case-studies-content/".concat(null===b||void 0===b?void 0:b.data.content),refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1}),C=w.data,j=w.isLoading,S=function(e){return"review"!==e||v?v?e!==f&&"none":"flex":"none"};return(0,u.jsx)(u.Fragment,{children:j||x?(0,u.jsx)(P6e,{sx:{pt:"15rem",pb:"10rem"}}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(nn.Z,{pt:20,px:{xs:3,gr:10},children:[v&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Ca,{style:{margin:"0 auto"},alt:"company logo",src:null===C||void 0===C||null===(t=C.data)||void 0===t||null===(n=t.seller)||void 0===n?void 0:n.avatar,sx:{width:100,height:100}}),(0,u.jsx)(rn.Z,{textAlign:"center",mt:2,variant:"publicBody1",children:null===C||void 0===C||null===(r=C.data)||void 0===r||null===(i=r.seller)||void 0===i?void 0:i.name})]}),v&&(0,u.jsxs)(nn.Z,{direction:"row",width:"100%",justifyContent:"center",pt:4,pb:5,children:[(0,u.jsx)(Wo,{onClick:function(){return h("case-study")},variant:"primaryLight",sx:{borderColor:"primaryDark.250",borderRadius:" 4px 0 0 4px",boxShadow:"case-study"===f?"6px 6px 15px 0px #3845721A":"none",color:"case-study"===f?"primaryLight.500":"primaryDark.500",fontSize:"0.75rem",minWidth:"6.4rem"},children:"Case study"}),(0,u.jsx)(Wo,{onClick:function(){return h("details")},variant:"primaryLight",sx:{borderColor:"primaryDark.250",borderRadius:0,boxShadow:"details"===f?"6px 6px 15px 0px #3845721A":"none",color:"details"===f?"primaryLight.500":"primaryDark.500",fontSize:"0.75rem",minWidth:"6.4rem"},children:"Details"}),(0,u.jsx)(Wo,{onClick:function(){return h("review")},variant:"primaryLight",sx:{borderColor:"primaryDark.250",borderRadius:"0 4px 4px 0",boxShadow:"review"===f?"6px 6px 15px 0px #3845721A":"none",color:"review"===f?"primaryLight.500":"primaryDark.500",fontSize:"0.75rem",minWidth:"6.4rem"},children:"Review"})]}),(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",spacing:{xs:0,md:5},maxWidth:{xl:"86.0625rem"},mx:{xl:"auto"},children:[(0,u.jsxs)(nn.Z,{width:{xs:"100%",lg:"100%"},display:S("case-study"),children:[(0,u.jsxs)(nn.Z,{mb:{xs:3,md:5},children:[(0,u.jsx)(rn.Z,{px:1.5,pt:1,mb:2,color:"primaryDark.600",variant:"heading1",sx:{textTransform:"inherit"},children:null===C||void 0===C?void 0:C.data.title}),(0,u.jsx)(rn.Z,{px:1.5,mb:{xs:3,md:5},color:"primaryDark.500",variant:"body3",children:(0,rs.qJ)(null===C||void 0===C||null===(a=C.data)||void 0===a?void 0:a.published,"")}),(0,u.jsx)(tn,{maxHeight:"22rem",width:"100%",overflow:"hidden",borderRadius:"12px",children:(0,u.jsx)(tn,{component:"img",width:"100%",src:null===C||void 0===C?void 0:C.data.file,height:"100%",sx:{objectFit:"contain"}})})]}),(0,u.jsx)(i9e,{}),(0,u.jsx)($6e,{data:null===C||void 0===C?void 0:C.data,scrollRef:g}),!v&&(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",spacing:1,pl:3,children:[(0,u.jsx)(kPe,{fill:tr.IV[500]}),(0,u.jsx)(Cd,{textVariant:"heading3",text:"Related case studies"})]})]}),(0,u.jsx)(nn.Z,{width:{xs:"100%",lg:"100%"},display:S("details"),direction:{xs:"column-reverse",md:"column"},alignContent:"center",height:"fit-content",mx:{xs:0,lg:3},border:{md:"1px solid ".concat(tr.IV[300])},borderRadius:"12px",px:{xs:0,md:2,lg:3,gr:5},maxWidth:{xs:"100%",md:"22.25rem",lg:"25rem",gr:"26.875rem"},pt:{xs:0,md:3},children:(0,u.jsx)(t9e,{setActiveTab:h,scrollOnClick:function(){var e;return null===g||void 0===g||null===(e=g.current)||void 0===e?void 0:e.scrollIntoView({behavior:"smooth",block:"center"})},score:null!==(s=null===b||void 0===b||null===(l=b.data)||void 0===l?void 0:l.score)&&void 0!==s?s:null,data:null===C||void 0===C?void 0:C.data})})]}),(0,u.jsx)(nn.Z,{py:{xs:0,lg:3},display:S("review"),children:(0,u.jsx)(Q6e,{scrollRef:v?g:null,data:null===C||void 0===C?void 0:C.data})})]}),!v&&(0,u.jsx)(r9e,{services:null===C||void 0===C||null===(c=C.data.details)||void 0===c?void 0:c.services,renderCustomComponent:function(e){return null===e||void 0===e?void 0:e.map((function(e){return(0,u.jsx)(o9e,{children:(0,u.jsx)(O6e,{data:e})},e.id)}))}})]})})},s9e=["title","titleId"];function l9e(){return l9e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l9e.apply(this,arguments)}function c9e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u9e(e,t){var n=e.title,r=e.titleId,i=c9e(e,s9e);return o.createElement("svg",l9e({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,F6e||(F6e=o.createElement("path",{d:"M2.94649 0.0240326C1.51983 0.0240326 0.368164 1.17569 0.368164 2.60236V5.8832C0.368164 6.5557 0.726497 7.38737 1.2015 7.86237C1.99816 8.65904 7.55566 14.2432 7.55566 14.2424C8.6465 15.3332 10.4232 15.3332 11.514 14.2424L14.5865 11.1699C15.6773 10.079 15.6773 8.30237 14.5865 7.21153L8.2065 0.857366C7.7315 0.382366 6.89984 0.0240326 6.22734 0.0240326H2.94649ZM5.36816 3.35737C6.289 3.35737 7.03483 4.1032 7.03483 5.02403C7.03483 5.94487 6.289 6.6907 5.36816 6.6907C4.44733 6.6907 3.7015 5.94487 3.7015 5.02403C3.7015 4.1032 4.44733 3.35737 5.36816 3.35737Z",fill:"current"})))}var d9e,p9e=o.forwardRef(u9e),f9e=(n.p,["title","titleId"]);function h9e(){return h9e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h9e.apply(this,arguments)}function m9e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function v9e(e,t){var n=e.title,r=e.titleId,i=m9e(e,f9e);return o.createElement("svg",h9e({width:14,height:18,viewBox:"0 0 14 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,d9e||(d9e=o.createElement("path",{d:"M6.87442 0.87265C3.19276 0.87265 0.207764 3.85765 0.207764 7.53932C0.207764 10.4285 2.0811 13.716 4.60859 16.446C4.69026 16.5335 4.75693 16.6018 4.84276 16.6801C5.5586 17.321 6.30025 17.5476 6.87442 17.5393C6.88192 17.5393 6.89442 17.5393 6.90026 17.5393C7.49859 17.5393 8.34191 17.2701 9.14024 16.4718C11.5652 14.0468 13.5411 10.471 13.5411 7.53932C13.5411 3.85765 10.5561 0.87265 6.87442 0.87265ZM6.87442 5.03932C8.25525 5.03932 9.37441 6.15848 9.37441 7.53932C9.37441 8.92015 8.25525 10.0393 6.87442 10.0393C5.49359 10.0393 4.37442 8.92015 4.37442 7.53932C4.37442 6.15848 5.49359 5.03932 6.87442 5.03932Z",fill:"current"})))}var g9e,y9e=o.forwardRef(v9e),b9e=(n.p,["title","titleId"]);function x9e(){return x9e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x9e.apply(this,arguments)}function w9e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function C9e(e,t){var n=e.title,r=e.titleId,i=w9e(e,b9e);return o.createElement("svg",x9e({width:14,height:17,viewBox:"0 0 14 17",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,g9e||(g9e=o.createElement("path",{d:"M6.87419 0.95134C6.25669 0.95134 5.63003 1.04634 4.99919 1.21134C4.55419 1.32884 4.30919 1.78218 4.42585 2.22718C4.54335 2.67218 4.9967 2.94301 5.4417 2.82634C5.94003 2.69551 6.40669 2.61801 6.87419 2.61801C7.35586 2.61801 7.83586 2.69551 8.33253 2.82634C8.77753 2.94301 9.23086 2.67218 9.34836 2.22718C9.46502 1.78218 9.1942 1.32884 8.7492 1.21134C8.11919 1.04634 7.50419 0.95134 6.87419 0.95134ZM6.87419 3.45134C3.19252 3.45134 0.20752 6.43634 0.20752 10.118C0.20752 13.7997 3.19252 16.7847 6.87419 16.7847C10.5559 16.7847 13.5409 13.7997 13.5409 10.118C13.5409 6.43634 10.5559 3.45134 6.87419 3.45134ZM12.7075 3.45134C12.2475 3.45134 11.8742 3.82467 11.8742 4.28467C11.8742 4.74467 12.2475 5.11801 12.7075 5.11801C13.1675 5.11801 13.5409 4.74467 13.5409 4.28467C13.5409 3.82467 13.1675 3.45134 12.7075 3.45134ZM6.87419 6.78467C7.33419 6.78467 7.70753 7.15801 7.70753 7.61801V9.753L9.14002 11.1855C9.46502 11.5113 9.46502 12.058 9.14002 12.3838C8.81419 12.7088 8.26753 12.7088 7.9417 12.3838L6.27503 10.7172C6.1192 10.5605 6.04086 10.3388 6.04086 10.118V7.61801C6.04086 7.15801 6.41419 6.78467 6.87419 6.78467Z",fill:"current",stroke:"#79829B",strokeWidth:.002,strokeLinecap:"round",strokeLinejoin:"round"})))}var j9e=o.forwardRef(C9e),S9e=(n.p,function(e){var t,n,r,o,i,a,s=e.companyData,l=e.showFocusArea,c=void 0!==l&&l,d=e.carouselItem,p=void 0!==d&&d,f=(0,_x.Z)(),h=Bn(f.breakpoints.down("sm")),m=Bn(f.breakpoints.between("sm","md")),v=Bn(f.breakpoints.between("md","lg")),g=Bn(f.breakpoints.between("lg","xl")),y=Bn(f.breakpoints.up("xl"));a=h?15:m||v?25:g?20:y?35:30;var b=null!==s&&void 0!==s&&s.headquartersLocation?"".concat(null===s||void 0===s||null===(t=s.headquartersLocation)||void 0===t?void 0:t.city,", ").concat(Kt.NF.get(null===s||void 0===s||null===(n=s.headquartersLocation)||void 0===n?void 0:n.country)):"---",x=b.length>a;return(0,u.jsxs)(tn,{sx:{py:2.5,p:1.5,width:"100%",borderRadius:"0.8rem",boxShadow:"  6px 6px 17px 0px #3845721A",display:"flex",flexDirection:"column",alignItems:"center",background:"white",minHeight:"100%",height:c?"":"416px"},children:[(0,u.jsxs)(nn.Z,{flexDirection:"row",maxHeight:"fit-content",width:"100%",alignItems:"center",p:2,px:0,gap:2,children:[(0,u.jsx)(Ca,{alt:s.name,src:null===s||void 0===s?void 0:s.avatar,sx:{width:"60px",height:"60px",bgcolor:"primaryLight.400"},children:null===(r=s.name)||void 0===r?void 0:r[0]}),(0,u.jsx)(ns,{title:s.name.length>35?s.name:"",placement:"top",children:(0,u.jsx)(rn.Z,{variant:"publicBody3",lineHeight:"normal",color:"primaryDark.600",whiteSpace:"initial",sx:{lineBreak:"anywhere"},children:(0,rs.$G)(null===s||void 0===s?void 0:s.name,p?20:35)})})]}),(0,u.jsx)(un,{sx:{borderColor:"#E5E8FF",width:"100%"}}),(0,u.jsxs)(tn,{sx:{display:"flex",flexDirection:"column",flexGrow:1,width:"100%",minHeight:c?{xs:"400px",sm:"330px",md:"440px",lg:"380px",xl:"320px"}:"fit-content"},children:[(0,u.jsxs)(nn.Z,{gap:2,py:c?2:4,width:"100%",children:[(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",color:"primaryDark.500",sx:{fontWeight:600,lineHeight:"18px"},children:"DETAILS"}),(0,u.jsxs)(nn.Z,{direction:"row",pl:1,gap:1.5,justifyContent:"start",alignItems:"center",children:[(0,u.jsx)(y9e,{fill:tr.IV[500],height:16}),(0,u.jsx)(rn.Z,{color:"primaryDark.500",variant:"body3",sx:{fontWeight:450},children:x?(0,u.jsx)(ns,{title:b,children:(0,u.jsx)(rn.Z,{color:"primaryDark.500",variant:"body3",sx:{fontWeight:450},children:(0,rs.$G)(b,a)})}):(0,u.jsx)(rn.Z,{color:"primaryDark.500",variant:"body3",sx:{fontWeight:500},children:b})})]}),(0,u.jsxs)(nn.Z,{direction:"row",pl:1,gap:1.5,justifyContent:"start",alignItems:"center",children:[(0,u.jsx)(j9e,{fill:tr.IV[500],height:16}),(0,u.jsx)(rn.Z,{color:"primaryDark.500",variant:"body3",sx:{fontWeight:500},children:s.hourlyRate?Kt.vs.get(s.hourlyRate):"---"})]}),(0,u.jsxs)(nn.Z,{direction:"row",pl:1,gap:1.5,justifyContent:"start",alignItems:"center",children:[(0,u.jsx)(g3e,{fill:tr.IV[500],height:16}),(0,u.jsx)(rn.Z,{color:"primaryDark.500",variant:"body3",sx:{fontWeight:500},children:s.companySize?Kt.Tz.get(s.companySize):"---"})]}),(0,u.jsxs)(nn.Z,{direction:"row",pl:1,gap:1.5,justifyContent:"start",alignItems:"center",children:[(0,u.jsx)(p9e,{fill:tr.IV[500],height:16}),(0,u.jsx)(rn.Z,{color:"primaryDark.500",variant:"body3",sx:{fontWeight:450},children:s.averageProjectSize?Kt.Dw.get(s.averageProjectSize):"---"})]})]}),c&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(rn.Z,{sx:{fontWeight:600,lineHeight:"18px"},variant:"publicBody5Regular",color:"primaryDark.500",children:"FOCUS AREA"}),(0,u.jsx)(nn.Z,{direction:"row",pt:1,pl:1,gap:1.5,justifyContent:"start",alignItems:"center",flexWrap:"wrap",children:null===(o=s.services)||void 0===o||null===(i=o.slice(0,5))||void 0===i?void 0:i.map((function(e){return(0,u.jsx)(_d,{label:Kt.Sj.get(e)})}))})]})]}),(0,u.jsx)(Wo,{sx:{p:"0",mt:1,mb:2,justifySelf:"end"},href:"/company/".concat(s.id),children:"view profile"})]})}),k9e=function(e){var t,n,r=e.data,o=e.sectionTitle,i=e.bgcolor,a=(0,ze.s0)(),s=(null===r||void 0===r?void 0:r.linkedServices)&&(0,rs.C4)(null===r||void 0===r?void 0:r.linkedServices,"service");return(0,u.jsx)(ms,{bgcolor:i,sx:{position:"relative"},children:(0,u.jsxs)(ms,{direction:"column",alignItems:"center",alignContent:"flex-start",py:10,gap:5,sx:{mx:{xs:"1.5rem",gr:"auto"},width:{gr:"80rem"}},children:[(0,u.jsxs)(ms,{width:"100%",direction:"row",justifyContent:"space-between",alignItems:"center",gap:2,children:[(0,u.jsx)(rn.Z,{variant:"publicBody1",children:o}),(0,u.jsx)(Wo,{variant:"primaryText",onClick:function(){return a("/how-to-manage-buyer/seller-subarchive?".concat(s))},children:"View all"})]}),(0,u.jsxs)(ms,{sx:{width:"100%",maxWidth:{xs:"none",bg:"none",lg:"none"}},direction:{xs:"column",bg:"row"},spacing:3,gap:0,justifyContent:"center",children:[(0,u.jsx)(ms,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",gap:3,sx:{maxWidth:{xs:"none",bg:"30rem",lg:"none"},width:"100%"},children:null===r||void 0===r||null===(t=r.companies)||void 0===t?void 0:t.slice(0,2).map((function(e){return(0,u.jsx)(Cme,{resource:"companies",displayName:e.name,id:e.id,renderComponent:function(e){return(0,u.jsx)(S9e,{companyData:e},e.id)}},e.id)}))}),(0,u.jsx)(ms,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",gap:3,sx:{width:"100%",maxWidth:{xs:"none",bg:"30rem",lg:"none"}},children:null===r||void 0===r||null===(n=r.companies)||void 0===n?void 0:n.slice(2,4).map((function(e){return(0,u.jsx)(Cme,{resource:"companies",displayName:e.name,id:e.id,renderComponent:function(e){return(0,u.jsx)(S9e,{companyData:e},e.id)}},e.id)}))})]})]})})},Z9e=function(){var e=hi({resource:"/featured-companies"}),t=e.data,n=e.isLoading,r=null===t||void 0===t?void 0:t.data.results,o=null===r||void 0===r?void 0:r.find((function(e){return!0===e.main})),i=null===r||void 0===r?void 0:r.filter((function(e){return!0!==e.main}));return(0,u.jsxs)(nn.Z,{overflow:"hidden",maxWidth:"100%",alignSelf:"center",mt:"".concat(rc,"px"),children:[(0,u.jsx)(Z6e,{imgUrl:(0,rs.mB)(Wxe.W.ArchiveHero),title:"Seller Catalog",description:"Find the best in the digital service business today",link:"/seller-subarchive",linkText:"View all sellers"}),(0,u.jsxs)(nn.Z,{direction:"column",justifyContent:"center",alignItems:"center",pb:"2rem",spacing:1,children:[(0,u.jsx)(rn.Z,{variant:"publicHeading4",children:null===o||void 0===o?void 0:o.title}),(0,u.jsx)(rn.Z,{variant:"publicBody5Light",sx:{textAlign:"center"},maxWidth:{xs:"90%",sm:"60%",md:"58%",lg:"50%",xl:"30%"},children:"Get to know the service sellers that have gone above and beyond with their unparalleled expertise, quality, and project track record."})]}),(0,u.jsx)(tn,{sx:{px:"0.625rem",mb:{xs:"5rem",gr:"7.5rem"}},children:n?(0,u.jsx)(P6e,{}):(0,u.jsx)(j6e,{data:null===o||void 0===o?void 0:o.companies,renderCustomComponent:function(e){return null===e||void 0===e?void 0:e.map((function(e){return(0,u.jsx)(Cme,{resource:"companies",displayName:e.name,id:e.id,renderComponent:function(e){return(0,u.jsx)(S6e,{children:(0,u.jsx)(S9e,{carouselItem:!0,companyData:e},e.id)},e.id)}},e.id)}))}})}),n?(0,u.jsx)(P6e,{}):(0,u.jsx)(u.Fragment,{children:(null===i||void 0===i?void 0:i[0].companies.length)>0&&(0,u.jsx)(k9e,{bgcolor:"secondaryOrange.50",sectionTitle:null===i||void 0===i?void 0:i[0].title,data:null===i||void 0===i?void 0:i[0]})}),(0,u.jsx)(D6e,{imgUrl:(0,rs.mB)(Wxe.W.MacbookSellerArchive),title:"Find your perfect match",description:"Check out our full catalog of digital service sellers, filtered by their services, industry focus, location, technology expertise, and more.",link:"/seller-subarchive",linkText:"View all sellers",location:"seller-archive"}),n?(0,u.jsx)(P6e,{}):(0,u.jsx)(u.Fragment,{children:(null===i||void 0===i?void 0:i[1].companies.length)>0&&(0,u.jsx)(k9e,{sectionTitle:null===i||void 0===i?void 0:i[1].title,data:null===i||void 0===i?void 0:i[1]})}),n?(0,u.jsx)(P6e,{}):(0,u.jsx)(u.Fragment,{children:(null===i||void 0===i?void 0:i[2].companies.length)>0&&(0,u.jsx)(k9e,{bgcolor:"secondaryOrange.50",sectionTitle:null===i||void 0===i?void 0:i[2].title,data:null===i||void 0===i?void 0:i[2]})}),(0,u.jsx)(nn.Z,{children:(0,u.jsx)(k6e,{link:"/seller-subarchive"})})]})},O9e=function(e){var t=e.open,n=e.setIsOpen,r=N6e(),i=(0,Le.Z)(r,4),a=i[1],s=i[2],c=i[3],d=fd({defaultValues:{orderBy:"-created",service:[],sellerCountry:[],targetIndustry:[],targetMarket:[],averageProjectSize:"",hourlyRate:""}});(0,o.useEffect)((function(){d.reset({orderBy:c.get("orderBy")||"-created",service:c.getAll("service")||[],sellerCountry:c.getAll("sellerCountry")||[],targetIndustry:c.getAll("targetIndustry")||[],targetMarket:c.getAll("targetMarket")||[],averageProjectSize:c.get("averageProjectSize")||"",hourlyRate:c.get("hourlyRate")||""})}),[t]);return(0,u.jsx)(ec,{disablePortal:!0,anchor:"left",open:t,onClose:function(){return n(!1)},hideBackdrop:!0,elevation:4,PaperProps:{sx:{mt:"".concat(79,"px"),borderTopRightRadius:"4px"}},children:(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},d),{},{children:(0,u.jsx)(U.Z,{onClickAway:function(e){return n(!1)},children:(0,u.jsx)(tn,{component:"form",sx:{width:"100%",height:"100%"},onSubmit:d.handleSubmit((function(e){a(e),n(!1)})),children:(0,u.jsx)(ms,{width:{md:"35vw",lg:"25vw"},direction:"column",alignItems:"end",p:2,pt:3,children:(0,u.jsxs)(ms,{gap:1,pt:4,bgcolor:"white",width:"90%",children:[(0,u.jsxs)(ms,{width:"100%",mb:2,direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{variant:"publicHeading4",color:"primaryDark.900",children:"All filters"}),(0,u.jsx)(io.Z,{onClick:function(){return n(!t)},children:(0,u.jsx)(L6e,{sx:{color:"primaryDark.500"}})})]}),(0,u.jsx)(f0,{sx:{minHeight:10,minWidth:"fit-content"},input:(0,u.jsx)(f0.SearchSelect,{}),name:"service",placeholder:"Services",choices:Kt.Sj,multiple:!0}),(0,u.jsx)(f0,{sx:{minHeight:10,minWidth:"fit-content"},input:(0,u.jsx)(f0.SearchSelect,{}),name:"sellerCountry",placeholder:"Seller country",choices:Kt.NF,multiple:!0,withChips:!1}),(0,u.jsx)(f0,{sx:{minHeight:10,minWidth:"fit-content"},input:(0,u.jsx)(f0.SearchSelect,{}),name:"targetIndustry",placeholder:"Target industry",choices:Kt.lu,multiple:!0}),(0,u.jsx)(f0,{sx:{minHeight:10,minWidth:"fit-content"},input:(0,u.jsx)(f0.SearchSelect,{}),name:"targetMarket",placeholder:"Target market",choices:Kt.NF,multiple:!0}),(0,u.jsx)(f0,{sx:{minHeight:10,minWidth:"fit-content"},input:(0,u.jsx)(f0.SearchSelect,{}),name:"hourlyRate",placeholder:"Hourly rate",choices:Kt.vs}),(0,u.jsx)(f0,{sx:{minHeight:10,minWidth:"fit-content"},input:(0,u.jsx)(f0.SearchSelect,{}),name:"averageProjectSize",placeholder:"Avarage Project size",choices:Kt.Dw}),(0,u.jsxs)(ms,{direction:"row",gap:2,mt:2,children:[(0,u.jsx)(Wo,{variant:"primaryLight",onClick:function(){d.reset({orderBy:"-created",service:[],sellerCountry:[],targetIndustry:[],targetMarket:[],averageProjectSize:"",hourlyRate:""}),s("orderBy"),s("service"),s("sellerCountry"),s("targetIndustry"),s("targetMarket"),s("averageProjectSize"),s("hourlyRate"),n(!1)},children:"Clear filters"}),(0,u.jsx)(Wo,{type:"submit",children:"Apply all"})]})]})})})})}))})},E9e=["orderBy"],D9e=new Map([].concat((0,dn.Z)(Array.from(Kt.NF.entries())),(0,dn.Z)(Array.from(Kt.vs.entries())),(0,dn.Z)(Array.from(Kt.lu.entries())),(0,dn.Z)(Array.from(Kt.Dw.entries())),(0,dn.Z)(Array.from(Kt.Sj.entries())))),P9e=new Map([["-created","New"],["name","A-Z"],["-name","Z-A"]]),A9e=function(){var e,t,n,r,i=(0,o.useState)(!1),a=(0,Le.Z)(i,2),s=a[0],c=a[1],d=N6e(),p=(0,Le.Z)(d,4),f=p[1],h=p[2],m=p[3],v=fd({defaultValues:{orderBy:"-created",service:[],sellerCountry:[],targetIndustry:[],targetMarket:[],averageProjectSize:"",hourlyRate:""},mode:"onChange"}),g=v.setValue,y=v.trigger,b=v.getValues,x=v.watch,w=v.handleSubmit,C=v.reset,j=x(),S=function(){j.orderBy;var e=Nn(j,E9e);return Object.keys(e).filter((function(t){return 0!==e[t].length}))};return(0,o.useEffect)((function(){v.reset({orderBy:m.get("orderBy")||"-created",service:m.getAll("service")||[],sellerCountry:m.getAll("sellerCountry")||[],targetIndustry:m.getAll("targetIndustry")||[],targetMarket:m.getAll("targetMarket")||[],averageProjectSize:m.get("averageProjectSize")||"",hourlyRate:m.get("hourlyRate")||""})}),[s]),(0,o.useEffect)((function(){var e=x((function(){return f(x())}));return function(){return e.unsubscribe()}}),[x]),(0,u.jsxs)(ms,{gap:3,pt:5,bgcolor:"white",width:"100%",children:[(0,u.jsx)(rn.Z,{variant:"publicHeading4",children:"Sellers"}),(0,u.jsxs)(Qc,(0,l.Z)((0,l.Z)({},v),{},{children:[(0,u.jsx)(tn,{component:"form",onSubmit:w((function(){return null})),children:(0,u.jsxs)(ms,{direction:"row",gap:3,flexWrap:"wrap",children:[(0,u.jsx)(Wo,{sx:{textTransform:"none"},variant:"secondaryDark",endIcon:(0,u.jsx)(B6e,{}),onClick:function(){return c(!s)},children:"All filters"}),(0,u.jsx)(f0,{sx:{minHeight:8,minWidth:"fit-content","& .MuiTypography-root":{color:"primaryDark.600",fontFamily:"Gellix-SemiBold"}},input:(0,u.jsx)(f0.Select,{}),name:"orderBy",placeholder:"Sort by",choices:P9e})]})}),!(null===(e=S())||void 0===e||!e.length)&&(0,u.jsx)(un,{}),(0,u.jsxs)(ms,{direction:"row",gap:2.5,alignItems:"center",flexWrap:"wrap",sx:{mb:null!==(t=S())&&void 0!==t&&t.length?3:0},children:[null===(n=S())||void 0===n?void 0:n.map((function(e){var t;return Array.isArray(j[e])?null===(t=j[e])||void 0===t?void 0:t.map((function(t,n){return(0,u.jsx)(_d,{label:D9e.get(t),onDelete:function(){g(e,b(e).filter((function(e){return e!==t}))),y(e)}},t+n)})):(0,u.jsx)(_d,{style:{textTransform:"capitalize"},label:D9e.get(j[e]),onDelete:function(){g(e,""),y(e)}},j[e])})),!(null===(r=S())||void 0===r||!r.length)&&(0,u.jsx)(Wo,{onClick:function(){C({orderBy:"-created",service:[],sellerCountry:[],targetIndustry:[],targetMarket:[],averageProjectSize:"",hourlyRate:""}),h("orderBy"),h("service"),h("sellerCountry"),h("targetIndustry"),h("targetMarket"),h("averageProjectSize"),h("hourlyRate")},variant:"secondaryText",children:"Clear all"})]})]})),(0,u.jsx)(O9e,{open:s,setIsOpen:c})]})},M9e=function(){var e=N6e({defaultValue:{limit:12,offset:0}}),t=(0,Le.Z)(e,4),n=t[0],r=t[3],i=hi({resource:"/companies?".concat(function(){var e,t,o,i=new URLSearchParams(r);return i.set("limit",null!==(e=n.limit)&&void 0!==e?e:"12"),i.set("offset",null!==(t=n.offset)&&void 0!==t?t:"0"),i.set("orderBy",null!==(o=n.orderBy)&&void 0!==o?o:"-created"),i.set("role","seller_service"),i.set("status","approved"),i.set("visibility","true"),i.toString()}())}),a=i.data,s=i.refetch,l=i.isLoading,c=null===a||void 0===a?void 0:a.data.results,d=null===a||void 0===a?void 0:a.data.count;return(0,o.useEffect)((function(){s()}),[n.limit,n.offset,s]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(da.Z,{children:(0,u.jsx)(ms,{overflow:"hidden",maxWidth:"100%",alignSelf:"center",mt:"".concat(rc,"px"),sx:{px:{xs:"1.5rem",lg:"2.5rem"},mx:{gr:"auto"},width:{gr:"85rem"}},children:(0,u.jsx)(A9e,{})})}),(0,u.jsx)(da.Z,{sx:{backgroundColor:"primaryDark.100"},children:l?(0,u.jsx)(P6e,{}):(0,u.jsx)(u.Fragment,{children:d&&d>0?(0,u.jsxs)(ms,{overflow:"hidden",maxWidth:"100%",alignSelf:"center",sx:{px:{xs:"1.5rem",lg:"2.5rem"},mx:{gr:"auto"},width:{gr:"85rem"}},children:[(0,u.jsx)(kn,{container:!0,spacing:3,rowSpacing:5,pt:0,mt:-1.5,gridAutoRows:"max-content",children:null===c||void 0===c?void 0:c.map((function(e,t){return(0,u.jsx)(kn,{item:!0,xs:12,sm:6,md:4,lg:4,xl:4,gridAutoRows:"max-content",children:(0,u.jsx)(S9e,{showFocusArea:!0,companyData:e})},null===e||void 0===e?void 0:e.id)}))}),(0,u.jsx)(un,{sx:{mt:5}}),(0,u.jsx)(U6e,{count:d})]}):(0,u.jsx)(RI,{sx:{transform:"none",WebkitTransform:"none",position:"static"}})})})]})};var T9e,I9e=n.p+"static/media/company-profile-banner-default.002335dc9c8df62e36353b999531cb3b.svg",R9e=["company","sx"],F9e=function(e){var t=e.company,n=e.sx,r=Nn(e,R9e);return(0,u.jsxs)(nn.Z,(0,l.Z)((0,l.Z)({sx:(0,l.Z)({},n)},r),{},{children:[(0,u.jsx)(tn,{children:void 0!==t&&null===t.avatar?(0,u.jsx)(Ca,{alt:"company-logo",src:vMe,sx:{zIndex:6,width:135,height:135,filter:"drop-shadow(1px 10px 30px rgba(56, 69, 114, 0.10))",margin:"0 auto"}}):(0,u.jsx)(Ca,{alt:"company-logo",src:null===t||void 0===t?void 0:t.avatar,sx:{zIndex:6,width:135,height:135,filter:"drop-shadow(1px 10px 30px rgba(56, 69, 114, 0.10))",margin:"0 auto"}})}),(0,u.jsx)(rn.Z,{color:"common.black",variant:"publicBody2",sx:{textAlign:"center",my:"1.5rem"},children:null===t||void 0===t?void 0:t.name})]}))},B9e=["title","titleId"];function L9e(){return L9e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},L9e.apply(this,arguments)}function N9e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _9e(e,t){var n=e.title,r=e.titleId,i=N9e(e,B9e);return o.createElement("svg",L9e({width:14,height:20,viewBox:"0 0 14 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,T9e||(T9e=o.createElement("path",{d:"M7 0C3.13 0 0 3.13 0 7C0 12.25 7 20 7 20C7 20 14 12.25 14 7C14 3.13 10.87 0 7 0ZM7 9.5C5.62 9.5 4.5 8.38 4.5 7C4.5 5.62 5.62 4.5 7 4.5C8.38 4.5 9.5 5.62 9.5 7C9.5 8.38 8.38 9.5 7 9.5Z",fill:"current"})))}var z9e,H9e,W9e=o.forwardRef(_9e),V9e=(n.p,function(e){var t=e.company,n=e.sx;return(0,u.jsxs)(nn.Z,{spacing:4,sx:(0,l.Z)({},n),children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",justifyContent:"flex-start",spacing:1.5,children:[(0,u.jsx)(wTe,{icon:(0,u.jsx)(g3e,{fill:tr.IV[500],style:{width:"20px",height:"20px"}}),toolTipText:"COMPANY SIZE"}),(0,u.jsx)(rn.Z,{variant:"bodyMedium3",sx:{fontWeight:450},children:"People"})]}),(0,u.jsx)(rn.Z,{variant:"bodyMedium3",sx:{fontWeight:450},children:t&&t.companySize&&t.companySize?Kt.Tz.get(t.companySize):"-"})]}),(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",justifyContent:"flex-start",spacing:1.5,children:[(0,u.jsx)(wTe,{icon:(0,u.jsx)(p9e,{fill:tr.IV[500]}),toolTipText:"TYPICAL PROJECT SIZE",style:{width:"20px",height:"20px"}}),(0,u.jsx)(rn.Z,{variant:"bodyMedium3",sx:{fontWeight:450},children:"Price"})]}),(0,u.jsx)(rn.Z,{variant:"bodyMedium3",sx:{fontWeight:450},children:t&&t.averageProjectSize&&t.averageProjectSize?Kt.Dw.get(t.averageProjectSize):"-"})]}),(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",justifyContent:"flex-start",spacing:1.5,children:[(0,u.jsx)(wTe,{icon:(0,u.jsx)(W9e,{fill:tr.IV[500]}),toolTipText:"HEADQUARTERS LOCATION",style:{width:"20px",height:"20px"}}),(0,u.jsx)(rn.Z,{variant:"bodyMedium3",sx:{fontWeight:450},children:"Location"})]}),(0,u.jsx)(rn.Z,{variant:"bodyMedium3",sx:{fontWeight:450},children:t&&t.headquartersLocation?"".concat(Kt.NF.get(t.headquartersLocation.country),", ").concat(t.headquartersLocation.city):"-"})]}),(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",justifyContent:"flex-start",spacing:1.5,children:[(0,u.jsx)(wTe,{icon:(0,u.jsx)(eM,{fill:tr.IV[500]}),toolTipText:"HOURLY RATE",style:{width:"20px",height:"20px"}}),(0,u.jsx)(rn.Z,{variant:"bodyMedium3",sx:{fontWeight:450},children:"Hourly rate"})]}),(0,u.jsx)(rn.Z,{variant:"bodyMedium3",sx:{fontWeight:450},children:t&&t.hourlyRate?Kt.vs.get(t.hourlyRate):"-"})]})]})}),U9e={medium:p5e,dribbble:O5e,facebook:I5e,github:x5e,instagram:n4e,linkedin:W5e,twitter:J5e},q9e=function(e){var t=e.company,n=e.sx;return(0,u.jsx)(nn.Z,{direction:"row",alignItems:"center",justifyContent:"center",gap:2.5,sx:(0,l.Z)({},n),children:(null===t||void 0===t?void 0:t.socialMediaLinks)&&Object.entries(t.socialMediaLinks).map((function(e){var t=(0,Le.Z)(e,2),n=t[0],r=t[1];if(!r)return null;var o=U9e[n.toLowerCase()];return(0,u.jsx)("a",{href:r,target:"_blank",rel:"noopener noreferrer",children:o&&(0,u.jsx)(Ca,{sx:{width:"24px",height:"24px"},children:(0,u.jsx)(o,{})})},n)}))})},G9e={px:0,"& .MuiAccordionSummary-content":{my:0,minHeight:"unset"},"& .MuiAccordionSummary-content.Mui-expanded":{my:0,minHeight:"unset"}},Y9e=[{title:"industry focus",properties:[{name:"targetIndustries",map:Kt.lu,type:"enum"}]},{title:"services",properties:[{name:"services",map:Kt.Sj,type:"enum"}]},{title:"programing languages",properties:[{name:"techLanguages",map:Kt.G3,type:"enum"}]},{title:"tech tools",properties:[{name:"techTools",map:T$.oz,type:"enum"}]},{title:"tech platforms",properties:[{name:"techPlatforms",map:T$.VA,type:"enum"}]},{title:"target markets",properties:[{name:"targetCountries",map:Kt.NF,type:"enum"}]},{title:"languages",properties:[{name:"languages",map:Kt.u9,type:"enum"}]},{title:"office locations",properties:[{name:"headquartersLocation",map:Kt.NF,type:"hq_loaction"},{name:"officeLocations",map:Kt.NF,type:"locations"}]},{title:"certifications",properties:[{name:"certifications",type:"string"}]},{title:"awards",properties:[{name:"awards",type:"string"}]}],K9e=function(e){var t=e.company,n=e.sx;return(0,u.jsx)(nn.Z,{spacing:1,sx:(0,l.Z)({},n),divider:(0,u.jsx)(un,{flexItem:!0,sx:{borderColor:"secondaryBlue.100"}}),children:t&&Y9e.map((function(e){var n=e.properties.map((function(e){var n=t[e.name];return"enum"===e.type?n.map((function(t){return e.map.get(t)})):"hq_loaction"===e.type?n?["".concat(n.city,", ").concat(""!==n.state?"".concat(n.state,", "):"").concat(e.map.get(n.country)," (HQ)")]:[]:"locations"===e.type?n.map((function(t){return"".concat(t.city,", ").concat(""!==t.state?"".concat(t.state,", "):"").concat(e.map.get(t.country))})):n})),r=n.flat();return 0===r.length?null:(0,u.jsxs)(ewe,{defaultExpanded:!0,sx:{boxShadow:"none",m:"0 !important"},children:[(0,u.jsx)(lwe,{expandIcon:(0,u.jsx)(zl.Z,{}),sx:(0,l.Z)({},G9e),children:(0,u.jsx)(rn.Z,{variant:"heading4",children:e.title})}),(0,u.jsx)(fwe,{sx:{px:0},children:(0,u.jsx)(nn.Z,{direction:"row",flexWrap:"wrap",gap:1,children:r.map((function(e){return(0,u.jsx)(_d,{label:e,tooltipTitle:e,sx:{height:"auto","& .MuiChip-label":{display:"block",whiteSpace:"break-spaces",padding:"0.5rem 0.75rem"}}})}))})})]})}))})},J9e=["company","sx"],X9e=function(e){var t=e.company,n=e.sx,r=Nn(e,J9e),o=(0,ze.UO)(),i=hi({resource:"company-client?company=".concat(null===o||void 0===o?void 0:o.companyId)}).data,a=null===i||void 0===i?void 0:i.data.results;return(0,u.jsxs)(nn.Z,(0,l.Z)((0,l.Z)({spacing:3,sx:(0,l.Z)({},n)},r),{},{children:[(0,u.jsx)(tn,{sx:(0,l.Z)({},n8e),children:t&&t.description&&(0,u.jsx)(m$,{items:[],isEditable:!1,content:t.description})}),(0,u.jsxs)(nn.Z,{spacing:3,sx:(0,l.Z)({},n8e),children:[(0,u.jsx)(rn.Z,{color:"common.black",sx:{fontSize:"20px",fontWeight:600},children:"Clients"}),a&&a.length>0?(0,u.jsx)(nn.Z,{direction:"row",flexWrap:"wrap",sx:{columnGap:"45px",rowGap:"25px"},children:a.map((function(e){return(0,u.jsxs)(nn.Z,{spacing:1.5,direction:"row",alignItems:"center",children:[(0,u.jsx)(Ca,{alt:"company logo",src:"".concat(e.avatar),sx:{width:40,height:40}}),(0,u.jsx)(rn.Z,{color:"common.black",children:e.name})]},e.id)}))}):(0,u.jsx)(rn.Z,{sx:{fontStyle:"italic",paddingTop:"15px",paddingLeft:"15px",fontSize:"14px",width:"100%"},children:"No information provided."})]})]}))},Q9e=function(e){var t,n,r,o,i,a,s,l,c=e.data,d=e.showFocusArea,p=(0,ze.s0)(),f=Ra({resource:"case-studies-content",id:null===c||void 0===c?void 0:c.content}).data;return(0,u.jsx)(NZ,{sx:{width:"100%",borderRadius:"0.8rem",boxShadow:"6px 6px 17px 0px #3845721A",display:"flex",flexDirection:"column",background:"white",height:"100%"},onClick:function(e){e.stopPropagation(),p("/case-study/".concat(null===c||void 0===c?void 0:c.id))},children:(0,u.jsxs)(nAe,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%"},disableRipple:!0,children:[(0,u.jsx)(qUe,{component:"img",image:null===c||void 0===c?void 0:c.file,alt:"Case study card",sx:{width:"100%",height:"190px",objectFit:"cover"}}),(0,u.jsxs)(lAe,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between",width:"100%",flex:"1 0 auto",minHeight:"12rem"},children:[(0,u.jsxs)(nn.Z,{gap:2,sx:{flex:"1 0 auto"},children:[(0,u.jsx)(ns,{title:"".length>70?null===c||void 0===c?void 0:c.title:"",placement:"top",children:(0,u.jsx)(rn.Z,{variant:"publicBody6",color:"primaryDark.600",children:(0,rs.$G)(null!==(t=null===c||void 0===c?void 0:c.title)&&void 0!==t?t:"",100)})}),d&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(rn.Z,{variant:"publicBody6",color:"primaryDark.500",children:"SERVICES"}),(0,u.jsxs)(nn.Z,{direction:"row",gap:1.5,justifyContent:"start",alignItems:"center",flexWrap:"wrap",children:[null===f||void 0===f||null===(n=f.details.services)||void 0===n?void 0:n.slice(0,5).map((function(e){return(0,u.jsx)(_d,{label:Kt.Sj.get(e),tooltipTitle:Kt.Sj.get(e)},Kt.Sj.get(e))})),(null===f||void 0===f||null===(r=f.details)||void 0===r||null===(o=r.services)||void 0===o?void 0:o.length)&&(null===f||void 0===f||null===(i=f.details)||void 0===i||null===(a=i.services)||void 0===a?void 0:a.length)>=5]})]})]}),(0,u.jsxs)(nn.Z,{direction:{xs:"row",md:"column",bg:"row"},alignItems:"center",mt:4,justifyContent:"space-between",sx:{opacity:null!==c&&void 0!==c&&c.score?1:0},spacing:2,children:[(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",gap:1,children:[(0,u.jsx)(AAe,{rating:Math.round(null!==(s=null===c||void 0===c?void 0:c.score)&&void 0!==s?s:0)}),(0,u.jsx)(rn.Z,{variant:"heading4",color:"secondaryBlue.700",children:Math.round(null!==(l=null===c||void 0===c?void 0:c.score)&&void 0!==l?l:0)})]}),(0,u.jsx)(EI,{text:null===c||void 0===c?void 0:c.status})]})]})]})})},$9e=function(){var e,t,n=(0,ze.UO)(),r=N6e(),o=(0,Le.Z)(r,4),i=o[0],a=o[3],s=hi({resource:"/case-studies?company=".concat(null===n||void 0===n?void 0:n.companyId,"&status=published&status=verified&status=under_review&limit=").concat(null!==(e=i.limit)&&void 0!==e?e:12,"&offset=").concat(null!==(t=i.offset)&&void 0!==t?t:0,"&").concat((a.delete("offset"),a.toString()))}),l=s.data,c=s.isLoading,d=null===l||void 0===l?void 0:l.data.results,p=null===l||void 0===l?void 0:l.data.count;return(0,u.jsxs)(nn.Z,{overflow:"hidden",maxWidth:{xs:"20rem",sm:"100%"},alignSelf:"center",mx:{xs:"auto",sm:0},children:[c?(0,u.jsx)(P6e,{}):(0,u.jsx)(kn,{container:!0,spacing:3,rowSpacing:5,pt:0,mt:-1.5,gridAutoRows:"max-content",children:null===d||void 0===d?void 0:d.map((function(e,t){return(0,u.jsx)(kn,{item:!0,xs:12,sm:6,md:6,lg:4,xl:4,gridAutoRows:"max-content",children:(0,u.jsx)(Q9e,{data:e,showFocusArea:!0})},null===e||void 0===e?void 0:e.id)}))}),(0,u.jsx)(un,{sx:{mt:5}}),(0,u.jsx)(U6e,{count:p})]})},e8e=function(e){var t=e.company,n=e.isLoading,r=(e.sx,(0,o.useState)("overview")),i=(0,Le.Z)(r,2),a=i[0],s=i[1];return(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",spacing:5,sx:{px:{xs:"1rem",md:"1.5rem",lg:"2.5rem"},mx:{gr:"auto"},width:{gr:"85rem"}},children:[(0,u.jsxs)(nn.Z,{width:"100%",maxWidth:"374px",sx:{px:0},spacing:3,children:[(0,u.jsxs)(nn.Z,{sx:{border:"solid",borderWidth:"0.5px",borderColor:"#E5E8FF",borderRadius:"0px 0px 15px 15px",py:3.5,px:1.5},divider:(0,u.jsx)(un,{flexItem:!0}),children:[(0,u.jsx)(F9e,{company:t,sx:{mt:"-6.125rem"}}),(0,u.jsx)(V9e,{company:t,sx:{my:3,pl:2}}),(0,u.jsx)(q9e,{company:t,sx:{mt:3}})]}),(0,u.jsx)(tn,{sx:{border:"solid",borderWidth:"0.5px",borderColor:"#E5E8FF",borderRadius:" 15px",p:2,pt:0},children:(0,u.jsx)(K9e,{company:t})})]}),n?(0,u.jsx)(tn,{width:"100%",children:(0,u.jsx)(P6e,{sx:{width:"100%",pt:"15rem"}})}):(0,u.jsxs)(tn,{width:"100%",children:[(0,u.jsxs)(nn.Z,{direction:"row",width:"100%",justifyContent:"flex-start",pt:4,pb:5,children:[(0,u.jsx)(Wo,{onClick:function(){return s("overview")},variant:"primaryLight",sx:{borderColor:"primaryDark.250",borderRadius:" 4px 0 0 4px",boxShadow:"overview"===a?"6px 6px 15px 0px #3845721A":"none",color:"overview"===a?"primaryLight.500":"primaryDark.500",fontSize:"0.75rem",minWidth:"6.4rem"},children:"Overview"}),(0,u.jsx)(Wo,{onClick:function(){return s("case-study")},variant:"primaryLight",sx:{borderColor:"primaryDark.250",borderRadius:0,boxShadow:"case-study"===a?"6px 6px 15px 0px #3845721A":"none",color:"case-study"===a?"primaryLight.500":"primaryDark.500",fontSize:"0.75rem",minWidth:"6.4rem"},children:"Case study"})]}),(0,u.jsx)(tn,{display:"overview"===a?"block":"none",children:(0,u.jsx)(X9e,{company:t})}),(0,u.jsx)(tn,{display:"case-study"===a?"block":"none",alignContent:"center",justifyContent:"center",children:(0,u.jsx)($9e,{})})]})]})},t8e=function(e){var t=e.company,n=e.isLoading,r=(e.sx,(0,o.useState)("overview")),i=(0,Le.Z)(r,2),a=i[0],s=i[1];return(0,u.jsx)(u.Fragment,{children:n?(0,u.jsx)(P6e,{}):(0,u.jsxs)(nn.Z,{direction:"column",justifyContent:"space-between",spacing:1,px:2,children:[(0,u.jsx)(F9e,{company:t,sx:{mt:"-2.125rem"},spacing:1.5}),(0,u.jsxs)(nn.Z,{direction:"row",width:"100%",justifyContent:"center",pt:2,pb:5,children:[(0,u.jsx)(Wo,{onClick:function(){return s("overview")},variant:"primaryLight",sx:{borderColor:"primaryDark.250",borderRadius:0,boxShadow:"overview"===a?"6px 6px 15px 0px #3845721A":"none",color:"overview"===a?"primaryLight.500":"primaryDark.500",fontSize:"0.75rem",minWidth:"6.4rem"},children:"Overview"}),(0,u.jsx)(Wo,{onClick:function(){return s("about")},variant:"primaryLight",sx:{borderColor:"primaryDark.250",borderRadius:"0 4px 4px 0",boxShadow:"about"===a?"6px 6px 15px 0px #3845721A":"none",color:"about"===a?"primaryLight.500":"primaryDark.500",fontSize:"0.75rem",minWidth:"6.4rem"},children:"About"}),(0,u.jsx)(Wo,{onClick:function(){return s("case-study")},variant:"primaryLight",sx:{borderColor:"primaryDark.250",borderRadius:" 4px 0 0 4px",boxShadow:"case-study"===a?"6px 6px 15px 0px #3845721A":"none",color:"case-study"===a?"primaryLight.500":"primaryDark.500",fontSize:"0.75rem",minWidth:"6.4rem"},children:"Case study"})]}),"overview"===a&&(0,u.jsx)(tn,{sx:{mt:1},children:(0,u.jsx)(X9e,{company:t,spacing:6})}),"about"===a&&(0,u.jsxs)(tn,{children:[(0,u.jsxs)(nn.Z,{sx:{border:"solid",borderWidth:"0.5px",borderColor:"#E5E8FF",borderRadius:"15px",pb:3.5,px:1.5},divider:(0,u.jsx)(un,{flexItem:!0}),children:[(0,u.jsx)(V9e,{company:t,sx:{my:3,pl:2}}),(0,u.jsx)(q9e,{company:t,sx:{mt:3}})]}),(0,u.jsx)(K9e,{company:t,sx:{border:"solid",borderWidth:"0.5px",borderColor:"#E5E8FF",borderRadius:"15px",pb:3.5,px:1.5,my:6}})]}),"case-study"===a&&(0,u.jsx)(tn,{children:(0,u.jsx)($9e,{})})]})})},n8e={border:"1px solid",borderColor:"secondaryBlue.100",padding:"24px",borderRadius:"12px"},r8e=function(){var e=(0,ze.UO)(),t=Bn(ir.breakpoints.down("md")),n=zp({resource:"companies/".concat(null===e||void 0===e?void 0:e.companyId),enabled:!(null===e||void 0===e||!e.companyId),refetchOnWindowFocus:!1}),r=n.data,o=n.isLoading,i=null===r||void 0===r?void 0:r.data;return(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(tn,{mt:"".concat(rc,"px"),sx:{height:"10.75rem",backgroundColor:"primaryLight.500"},children:(0,u.jsx)(tn,{sx:{backgroundImage:"url(".concat(I9e,")"),backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"cover",height:"100%"}})}),t?(0,u.jsx)(t8e,{isLoading:o,company:i}):(0,u.jsx)(e8e,{isLoading:o,company:i})]})},o8e=n(25814),i8e={name:"",jobTitle:"",avatar:""},a8e=function(e){var t,n=e.type,r=e.isEditModalOpen,i=e.setIsEditModalOpen,a=e.teamMemberId,s=e.setTeamMemberId,c=e.setForceAvatarRemount,d=(0,Ms.J)(),p=a&&"edit"===n,f=(0,o.useRef)(null),h=zp({enabled:!!p,resource:"company-team-member/".concat(a)}).data,m=fd({mode:"onChange",defaultValues:i8e}),v=oa({resource:"company-team-member"}),g=v.mutate,y=v.isLoading,b=(0,As.Z)({resource:"company-team-member"}),x=b.mutate,w=b.isLoading,C=m.handleSubmit,j=m.reset;(0,o.useEffect)((function(){p&&j((0,l.Z)({},null===h||void 0===h?void 0:h.data))}),[a,n,h]);return(0,u.jsx)(y4,{width:"40%",title:"".concat(p?"Edit":"Add"," team member"),confirmButtonText:"".concat(p?"Save":"Add"),isLoading:y||w,onCancel:function(){return s(null)},isModalOpen:r,setIsModalOpen:i,automaticallyCloseModalOnButtonClick:!1,onConfirm:C((function(e){var t,n=null===f||void 0===f||null===(t=f.current)||void 0===t?void 0:t.getImage().toDataURL();p?x({data:(0,l.Z)((0,l.Z)({},e),{},{avatar:n}),id:a},{onSuccess:function(){d(),s(null),c((function(e){return e+1})),i(!1)}}):g((0,l.Z)((0,l.Z)({},e),{},{avatar:n}),{onSuccess:function(){d(),s(null),c((function(e){return e+1})),i(!1)}})})),iconProps:{icon:(0,u.jsx)(o8e.Z,{sx:{color:tr.dx[700]}}),wrapperBackgroundColor:tr.E4[100]},message:(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},m),{},{children:(0,u.jsxs)(nn.Z,{spacing:6,sx:{height:"380px",overflowY:"auto",pr:1},children:[(0,u.jsx)(Cl,{cropRef:f,avatar:null!==(t=null===h||void 0===h?void 0:h.data.avatar)&&void 0!==t?t:"",withOpenFileExplorerButton:!0}),(0,u.jsx)(f0,{required:!0,name:"name",input:(0,u.jsx)(f0.Text,{}),placeholder:"Enter full name",label:"Full name",sx:{minHeight:"none"}}),(0,u.jsx)(f0,{required:!0,name:"jobTitle",input:(0,u.jsx)(f0.Text,{}),placeholder:"Enter job title",label:"Job title",sx:{minHeight:"none"}})]})}))})},s8e=function(e){var t=e.isDeleteModalOpen,n=e.setIsDeleteModalOpen,r=e.teamMemberId,o=e.setTeamMemberId,i=(0,Ms.J)(),a=zk({resource:"company-team-member"}),s=a.mutate,l=a.isLoading;return(0,u.jsx)(y4,{width:"40%",confirmButtonText:"Confirm",isLoading:l,onCancel:function(){return n(!1)},title:"Remove team member",isModalOpen:t,setIsModalOpen:n,automaticallyCloseModalOnButtonClick:!1,onConfirm:function(){s({id:r},{onSuccess:function(){i(),o(null),n(!1)}})},iconProps:{icon:(0,u.jsx)(o8e.Z,{sx:{color:tr.dx[700]}}),wrapperBackgroundColor:tr.E4[100]},message:"Are you sure that you want to permanently remove this team member?"})},l8e=["resourceLimit"],c8e=function(){var e,t=Pa(),n=(0,o.useState)("create"),r=(0,Le.Z)(n,2),i=r[0],a=r[1],s=(0,o.useState)(null),c=(0,Le.Z)(s,2),d=c[0],p=c[1],f=(0,o.useState)(!1),h=(0,Le.Z)(f,2),m=h[0],v=h[1],g=(0,o.useState)(!1),y=(0,Le.Z)(g,2),b=y[0],x=y[1],w=(0,o.useState)(0),C=(0,Le.Z)(w,2),j=C[0],S=C[1],k=ake({resourceUrl:"company-team-member",queryParams:"company=".concat(null===t||void 0===t||null===(e=t.membership)||void 0===e?void 0:e.company)}),Z=k.resourceLimit,O=Nn(k,l8e),E=[{field:"name",headerName:"Name",flex:.5,renderCell:function(e){return(0,u.jsxs)(nn.Z,{spacing:2,direction:"row",alignItems:"center",children:[(0,u.jsx)(Ca,{alt:"company-team-member-avatar",src:e.row.avatar},j),(0,u.jsx)(rn.Z,{children:e.value})]})}},{field:"jobTitle",headerName:"Job title",flex:.5,renderCell:function(e){return(0,u.jsx)(rn.Z,{children:e.value})}},{field:"icons",headerName:"",sortable:!1,renderCell:function(e){return(0,u.jsxs)(nn.Z,{direction:"row",children:[(0,u.jsx)(io.Z,{onClick:function(){a("edit"),p(e.row.id),v(!0)},children:(0,u.jsx)(G5,{fill:tr.IV[500],style:{width:18,height:18}})}),(0,u.jsx)(io.Z,{onClick:function(){p(e.row.id),x(!0)},children:(0,u.jsx)(_k,{fill:tr.IV[500],style:{width:22,height:22}})})]})}}];return(0,u.jsxs)(u.Fragment,{children:[m&&(0,u.jsx)(a8e,{type:i,isEditModalOpen:m,setIsEditModalOpen:v,teamMemberId:d,setTeamMemberId:p,setForceAvatarRemount:S}),b&&(0,u.jsx)(s8e,{isDeleteModalOpen:b,setIsDeleteModalOpen:x,teamMemberId:d,setTeamMemberId:p}),(0,u.jsx)(Rke,(0,l.Z)({disableSelectionOnClick:!0,numberOfRowsPerPage:Z,columns:E,withElements:{withTitle:"Team members",withCta:(0,u.jsx)(Wo,{startIcon:(0,u.jsx)(Jme.Z,{}),onClick:function(){a("create"),v(!0)},children:"Add new"})}},O))]})},u8e=function(){return(0,u.jsx)(nn.Z,{width:"100%",overflow:"hidden",children:(0,u.jsx)(ze.j3,{})})},d8e=["resourceLimit","chipFilters"],p8e=function(){var e=(0,ze.s0)(),t=[{field:"headline",headerName:"title",editable:!1,flex:.3},{field:"createdBy",headerName:"Created by",editable:!1,flex:.3,renderCell:function(e){return(0,u.jsx)(rn.Z,{sx:{fontSize:"0.875rem",fontWeight:600},children:"".concat(e.row.createdBy.firstName||""," ").concat(e.row.createdBy.lastName||"")})}},{field:"author",headerName:"Author",editable:!1,flex:.3,renderCell:function(e){var t,n;return(0,u.jsx)(rn.Z,{sx:{fontSize:"0.875rem",fontWeight:600},children:"".concat((null===(t=e.row.author)||void 0===t?void 0:t.firstName)||""," ").concat((null===(n=e.row.author)||void 0===n?void 0:n.lastName)||"")})}},{field:"published",headerName:"published",editable:!1,flex:.3,renderCell:function(e){return(0,u.jsx)(rn.Z,{sx:{fontSize:"0.875rem"},children:(0,rs.qJ)(e.value,"-")})}},{field:"status",headerName:"Status",flex:.1,renderCell:function(e){return(0,u.jsx)(EI,{text:e.value})}}],n=ake({resourceUrl:"blogs",withTabs:!0,chipFilterQueryParams:[{title:"All"},{title:"published",search:{status:Kt.D9.Published}},{title:"draft",search:{status:Kt.D9.Draft}}]}),r=n.resourceLimit,o=n.chipFilters,i=Nn(n,d8e);return(0,u.jsx)(kZe,(0,l.Z)({numberOfRowsPerPage:r,columns:t,onRowClick:function(t){return e("./".concat(t.row.id,"/view"))},withElements:{withTitle:"Blogs",withCta:(0,u.jsx)(Wo,{startIcon:(0,u.jsx)(Jme.Z,{sx:{fontSize:"25px !important"}}),onClick:function(){return e("./create")},children:"Add new"})},chipFilters:o,sx:{"& .MuiDataGrid-cell":{overflowX:"auto"}}},i))},f8e=n(93250),h8e=n.n(f8e),m8e=function(){var e=Xc(),t=e.control,n=e.setValue,r=e.formState.errors,o=cu({control:t,name:"file"}),i=null===r||void 0===r?void 0:r.file;return(0,u.jsxs)(tn,{children:[(0,u.jsx)(Cd,{text:"thumbnail"}),(0,u.jsxs)(nn.Z,{direction:"row",spacing:3,children:[(0,u.jsx)(E$,{name:"file",required:!0,dropzoneText:"Drag your file here or ",dropzoneHighlightText:"browse",onUpload:function(e,t){var r=null===e||void 0===e?void 0:e[0];r&&(t(r),n("fileName",r.name))},sx:{minWidth:"50%"},dropzoneProps:{multiple:!1}}),o&&(0,u.jsx)(bGe,{name:"file"}),i&&(0,u.jsx)(rn.Z,{color:"secondaryPink.500",variant:"body4",sx:{alignSelf:"start",display:"block",margin:"12px 0"},children:"This field is required"})]})]})},v8e=function(){var e=Du({control:Xc().control,name:"sections"}),t=e.fields,n=e.remove,r=e.append;return(0,u.jsxs)(u.Fragment,{children:[t.map((function(e,t){return(0,u.jsxs)(NZ,{elevation:4,sx:{padding:"0"},children:[(0,u.jsx)(nn.Z,{direction:"row",justifyContent:"flex-end",children:(0,u.jsx)(io.Z,{size:"small",sx:{paddingBottom:0,visibility:0===t?"hidden":"visible"},onClick:function(){n(t)},children:(0,u.jsx)(_xe.Z,{})})}),(0,u.jsxs)(tn,{sx:{display:"flex",flexDirection:"column",padding:"0 16px  16px 16px"},children:[(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Text,{}),name:"sections.".concat(t,".subtitle"),type:"text",placeholder:"Enter subtitle",label:"subtitle",required:!0,sx:{paddingBottom:"1.25rem"}}),(0,u.jsx)(g$,{label:"body",name:"sections.".concat(t,".body"),items:M$,required:!0},"".concat(e.id,"-body"))]})]},e.id)})),(0,u.jsx)(un,{orientation:"horizontal"}),(0,u.jsx)(nn.Z,{alignItems:"center",justifyContent:"center",children:(0,u.jsx)(Wo,{variant:"primaryLight",onClick:function(){r({subtitle:"",body:""})},children:"new section"})})]})},g8e=function(e){var t=e.values;return(0,u.jsx)(nn.Z,{spacing:3,sx:{padding:"0 1.5rem"},divider:(0,u.jsx)(un,{orientation:"horizontal"}),children:null===t||void 0===t?void 0:t.map((function(e,t){return(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(Cd,{text:"Subtitle"}),(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.600",sx:{lineHeight:"1.25rem",mt:0},children:e.subtitle})]}),(0,u.jsxs)(nn.Z,{children:[(0,u.jsx)(Cd,{text:"Body"}),(0,u.jsx)(m$,{items:M$,content:e.body,isEditable:!1})]})]},t)}))})},y8e=function(e){var t=e.viewMode,n=e.values;return(0,u.jsx)(u.Fragment,{children:t?(0,u.jsx)(g8e,{values:n}):(0,u.jsx)(v8e,{})})},b8e=function(e){var t=e.viewMode,n=e.value;return(0,u.jsx)(u.Fragment,{children:t?(0,u.jsxs)(nn.Z,{spacing:0,children:[(0,u.jsx)(Cd,{text:"Lead text"}),(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.600",sx:{lineHeight:"1.25rem",mt:0},children:n})]}):(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Text,{}),name:"leadText",type:"text",placeholder:"Enter lead text",label:"Lead text",required:!0,sx:{paddingBottom:"1.25rem"},multiline:!0,rows:5})})},x8e=function(e){var t=e.viewMode,n=e.basePath,r=e.initialSlug,i=e.onConfirm,a=(0,o.useState)(!1),s=(0,Le.Z)(a,2),c=s[0],d=s[1],p=(0,o.useState)(!1),f=(0,Le.Z)(p,2),h=f[0],m=f[1],v=fd({defaultValues:{slug:r},mode:"onChange"});return(0,u.jsxs)(tn,{children:[(0,u.jsx)(Cd,{sx:{marginBottom:"0.25rem"},text:"Slug"}),(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",justifyContent:"flex-start",sx:{minHeight:"47px"},children:[(0,u.jsx)(rn.Z,{variant:"bodyMedium3",color:"secondaryGray.700",sx:{whiteSpace:"nowrap",display:"flex",alignItems:"center"},children:n}),c?(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(Qc,(0,l.Z)((0,l.Z)({},v),{},{children:[(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Text,{}),name:"slug",type:"text",sx:{width:"100%"},onKeyUp:function(e){v.setValue("slug",h8e()(v.getValues("slug")))}}),(0,u.jsxs)(Wo,{onClick:function(){d(!1);var e=v.getValues("slug");e&&e!==r&&i&&i(e)},sx:{marginLeft:"24px",minWidth:0},variant:"secondary",children:[" ","OK"," "]}),(0,u.jsxs)(Wo,{onClick:function(){return d(!1)},sx:{marginLeft:"16px"},variant:"primaryText",children:[" ","Cancel"," "]})]}))}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(rn.Z,{variant:"body3",color:"secondaryGray.700",sx:{whiteSpace:"nowrap",display:"flex",alignItems:"center"},children:r}),!t&&(0,u.jsx)(io.Z,{"aria-label":"edit",sx:{marginLeft:"15px"},onClick:function(){v.setValue("slug",r),d(!0)},children:(0,u.jsx)(G5,{fill:tr.E4[500],style:{width:16,height:16}})}),(0,u.jsx)(es.Z,{title:"Copied!",open:h,children:(0,u.jsx)(io.Z,{onClick:function(){m(!0),navigator.clipboard.writeText("".concat(n).concat(r)),setTimeout((function(){m(!1)}),1e3)},"aria-label":"edit",children:(0,u.jsx)(S4,{fill:tr.E4[500],style:{width:16,height:16}})})})]})]})]})},w8e=function(e){var t=e.viewMode,n=e.author,r=hi({resource:"/authors?",enabled:!t}).data,o=new Map(t?[]:null===r||void 0===r?void 0:r.data.results.map((function(e){return[e.id,"".concat(e.firstName," ").concat(e.lastName)]})));return(0,u.jsx)(u.Fragment,{children:t?(0,u.jsxs)(nn.Z,{spacing:0,children:[(0,u.jsx)(Cd,{text:"Author"}),(0,u.jsx)(rn.Z,{variant:"bodyMedium3",color:"primaryDark.800",sx:{lineHeight:"1.25rem",mt:0},children:n})]}):(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Select,{}),name:"author",placeholder:"Select",choices:o,label:"Author",sx:{width:"100%","& .MuiInputBase-root":{borderTopLeftRadius:"0px",borderBottomLeftRadius:"0px"}},required:!0})})},C8e=["title","titleId"];function j8e(){return j8e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j8e.apply(this,arguments)}function S8e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function k8e(e,t){var n=e.title,r=e.titleId,i=S8e(e,C8e);return o.createElement("svg",j8e({xmlns:"http://www.w3.org/2000/svg",width:16,height:17,viewBox:"0 0 16 17",fill:"none",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,z9e||(z9e=o.createElement("circle",{cx:8,cy:8.5,r:7,fill:"#AA96F8",stroke:"#AA96F8",strokeWidth:2})),H9e||(H9e=o.createElement("circle",{cx:8,cy:8.5,r:5,fill:"#6D51F6"})))}var Z8e,O8e=o.forwardRef(k8e),E8e=(n.p,function(e){var t=e.icon,n=e.label,r=e.value,o=e.type,i=void 0===o?"string":o,a=e.onChange,s=(0,u.jsx)(rn.Z,{variant:"body2",sx:{fontWeight:"bold"},children:(0,u.jsx)(u.Fragment,{children:r})});switch(i){case"chip":s=r?(0,u.jsx)(EI,{sx:{mt:"0.0.125rem"},text:r}):(0,u.jsx)(u.Fragment,{});break;case"radio":s=(0,u.jsxs)(oF,{"aria-labelledby":"visibility-options",name:"visibility",value:r,onChange:function(e,t){null!==t&&(null===a||void 0===a||a(t))},sx:{flexDirection:"column"},children:[(0,u.jsx)(iF.Z,{value:"true",control:(0,u.jsx)(CF,{icon:(0,u.jsx)(DF,{}),checkedIcon:(0,u.jsx)(O8e,{})}),label:"Public",sx:{"& .Mui-checked":{color:tr.E4[500]}},componentsProps:{typography:{variant:"body3"}}}),(0,u.jsx)(iF.Z,{value:"false",control:(0,u.jsx)(CF,{icon:(0,u.jsx)(DF,{}),checkedIcon:(0,u.jsx)(O8e,{})}),label:"Private",sx:{"& .Mui-checked":{color:tr.E4[500]}},componentsProps:{typography:{variant:"body3"}}})]});break;default:s=(0,u.jsx)(rn.Z,{variant:"body3",sx:{fontWeight:"bold",mt:"0.375rem"},children:r})}return(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"flex-start",justifyContent:"flex-start",sx:{py:2},children:[(0,u.jsx)(An,{sx:{color:tr.IV[500]},children:t}),(0,u.jsx)(rn.Z,{variant:"heading5",color:tr.IV[500],sx:{width:"7rem",ml:"0.25rem",mr:"0.5rem",mt:"0.375rem",fontSize:"0.75rem"},children:n}),s]})}),D8e=["title","titleId"];function P8e(){return P8e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P8e.apply(this,arguments)}function A8e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function M8e(e,t){var n=e.title,r=e.titleId,i=A8e(e,D8e);return o.createElement("svg",P8e({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20",fill:"current",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,Z8e||(Z8e=o.createElement("path",{d:"M9.99804 1.67773C7.69721 1.67773 5.83138 3.54357 5.83138 5.8444C5.83138 7.84773 7.28555 9.52438 9.17054 9.92355L9.16471 14.1777C9.16471 14.6377 9.53804 15.0111 9.99804 15.0111C10.458 15.0111 10.8314 14.6377 10.8314 14.1777L10.8347 9.92355C12.7189 9.52438 14.1647 7.84773 14.1647 5.8444C14.1647 3.54357 12.2989 1.67773 9.99804 1.67773ZM9.99804 5.01106C10.458 5.01106 10.8314 5.3844 10.8314 5.8444C10.8314 6.3044 10.458 6.67773 9.99804 6.67773C9.53804 6.67773 9.16471 6.3044 9.16471 5.8444C9.16471 5.3844 9.53804 5.01106 9.99804 5.01106ZM13.2272 12.6677C13.0147 12.691 12.8239 12.8002 12.6805 12.9794C12.393 13.3394 12.4514 13.8644 12.8105 14.1519C13.163 14.4335 13.3314 14.7394 13.3314 15.0111C13.3314 15.8185 11.8989 16.6777 9.99804 16.6777C8.09721 16.6777 6.66471 15.8185 6.66471 15.0111C6.66471 14.7402 6.83638 14.4586 7.18554 14.1777C7.54388 13.8894 7.60472 13.3644 7.31555 13.006C7.17138 12.8269 6.95471 12.716 6.74304 12.6935C6.53054 12.6702 6.32305 12.731 6.14388 12.876C5.42805 13.451 4.99805 14.1902 4.99805 15.0111C4.99805 16.9652 7.29638 18.3444 9.99804 18.3444C12.6997 18.3444 14.998 16.9652 14.998 15.0111C14.998 14.1869 14.573 13.4261 13.8522 12.8494C13.6722 12.7061 13.4397 12.6435 13.2272 12.6677Z",fill:"current"})))}var T8e,I8e=o.forwardRef(M8e),R8e=(n.p,["title","titleId"]);function F8e(){return F8e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},F8e.apply(this,arguments)}function B8e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function L8e(e,t){var n=e.title,r=e.titleId,i=B8e(e,R8e);return o.createElement("svg",F8e({width:16,height:17,viewBox:"0 0 16 17",fill:"current",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,T8e||(T8e=o.createElement("path",{d:"M4.67253 0.178711C4.21253 0.178711 3.83919 0.552044 3.83919 1.01204C1.99836 1.01204 0.505859 2.50454 0.505859 4.34538V5.23039L15.5059 5.17871V4.34538C15.5059 2.50454 14.0134 1.01204 12.1725 1.01204C12.1725 0.552044 11.7992 0.178711 11.3392 0.178711C10.8792 0.178711 10.5059 0.552044 10.5059 1.01204H5.50586C5.50586 0.552044 5.13253 0.178711 4.67253 0.178711ZM0.505859 6.84538V12.6787C0.505859 14.5195 1.99836 16.012 3.83919 16.012H12.1725C14.0134 16.012 15.5059 14.5195 15.5059 12.6787V6.84538H0.505859ZM10.5059 8.51204C10.7192 8.51204 10.9417 8.58372 11.105 8.74622C11.43 9.07205 11.43 9.61871 11.105 9.94454L8.60502 12.4445C8.27919 12.7695 7.73253 12.7695 7.4067 12.4445L5.74003 10.7779C5.41503 10.452 5.41503 9.90538 5.74003 9.57955C6.06586 9.25455 6.61252 9.25455 6.93835 9.57955L8.00586 10.6471L9.9067 8.74622C10.07 8.58372 10.2925 8.51204 10.5059 8.51204Z",fill:"current"})))}var N8e,_8e=o.forwardRef(L8e),z8e=(n.p,["title","titleId"]);function H8e(){return H8e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H8e.apply(this,arguments)}function W8e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function V8e(e,t){var n=e.title,r=e.titleId,i=W8e(e,z8e);return o.createElement("svg",H8e({xmlns:"http://www.w3.org/2000/svg",width:20,height:21,viewBox:"0 0 20 21",fill:"current",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,N8e||(N8e=o.createElement("path",{d:"M9.9987 2.12695C7.69753 2.12695 5.83203 3.99245 5.83203 6.29362C5.83203 8.59479 7.69753 10.4603 9.9987 10.4603C12.2999 10.4603 14.1654 8.59479 14.1654 6.29362C14.1654 3.99245 12.2999 2.12695 9.9987 2.12695ZM7.05603 11.554C4.87745 12.1495 3.33203 14.0438 3.33203 16.2936V17.9603C3.33203 18.4205 3.70511 18.7936 4.16536 18.7936H15.832C16.2923 18.7936 16.6654 18.4205 16.6654 17.9603V16.2936C16.6654 14.0438 15.12 12.1495 12.9414 11.554C12.7546 11.503 12.5711 11.5265 12.3945 11.6061C11.6316 11.95 10.8195 12.127 9.9987 12.127C9.17795 12.127 8.36578 11.95 7.60287 11.6061C7.42628 11.5265 7.24278 11.503 7.05603 11.554Z",fill:"current"})))}var U8e,q8e,G8e=o.forwardRef(V8e),Y8e=(n.p,function(e){var t=e.viewMode,n=e.blogData,r=e.onPublish,i=e.saveAsDraft,a=e.onDelete,s=e.isLoading,l=(0,ze.s0)(),c=Xc(),d=(0,o.useState)(!1),p=(0,Le.Z)(d,2),f=p[0],h=p[1],m=(null===n||void 0===n?void 0:n.status)!==Kt.D9.Published&&!t,v=m?"space-between":"flex-end";return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(nn.Z,{divider:(0,u.jsx)(un,{}),sx:{borderBottomWidth:"1px",borderBottomStyle:" solid",borderBottomColor:tr.IV[250],padding:"3rem 1.5rem"},spacing:0,children:[(0,u.jsxs)(nn.Z,{direction:"row",sx:{mb:"1rem"},spacing:2,children:[(0,u.jsx)(Wo,{variant:"primary",sx:{height:"2.8125rem",width:"100%"},onClick:r,loading:s,disabled:(null===n||void 0===n?void 0:n.status)===Kt.D9.Published&&t,children:"publish"}),!t&&(0,u.jsx)(Wo,{variant:"primaryLight",sx:{height:"2.8125rem"},onClick:function(){return l("../view",{relative:"path"})},children:"cancel"})]}),(0,u.jsxs)(nn.Z,{direction:"column",divider:(0,u.jsx)(un,{}),children:[(0,u.jsx)(E8e,{icon:(0,u.jsx)(G8e,{fill:tr.IV[500]}),label:"created by",value:"".concat((null===n||void 0===n?void 0:n.createdBy.firstName)||""," ").concat((null===n||void 0===n?void 0:n.createdBy.lastName)||"")}),t?(0,u.jsx)(E8e,{icon:(0,u.jsx)(C2e,{fill:tr.IV[500]}),label:"visibility",value:null!==n&&void 0!==n&&n.visibility?"Public":"Private"}):(0,u.jsx)(E8e,{icon:(0,u.jsx)(C2e,{fill:tr.IV[500]}),label:"visibility",value:c.getValues("visibility"),type:"radio",onChange:function(e){c.setValue("visibility",!("true"!==e&&!0!==e)),c.trigger("visibility")}}),(0,u.jsx)(E8e,{icon:(0,u.jsx)(I8e,{fill:tr.IV[500]}),label:"status",value:null===n||void 0===n?void 0:n.status,type:"chip"}),(0,u.jsx)(E8e,{icon:(0,u.jsx)(zw,{fill:tr.IV[500]}),label:"date created",value:(0,rs.qJ)(null===n||void 0===n?void 0:n.created)}),(0,u.jsx)(E8e,{icon:(0,u.jsx)(_8e,{fill:tr.IV[500]}),label:"last edited",value:(0,rs.qJ)(null===n||void 0===n?void 0:n.updated)})]}),(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:v,spacing:2,sx:{mt:"1rem"},children:[m&&(0,u.jsx)(Wo,{variant:"secondaryDark",sx:{height:"2.8125rem"},onClick:i,loading:s,children:"Save as Draft"}),(null===n||void 0===n?void 0:n.status)&&(0,u.jsx)(Wo,{variant:"secondaryDark",sx:{height:"2.8125rem"},onClick:function(){return h(!0)},children:"delete"})]})]}),(0,u.jsx)(y4,{width:"50%",isModalOpen:f,setIsModalOpen:h,title:"Delete blog",message:(0,u.jsx)(rn.Z,{color:"primaryDark.500",lineHeight:"21px",children:"Are you sure you want to permanently delete this blog?"}),confirmButtonText:"Confirm",onConfirm:function(){h(!1),a()},iconProps:{icon:(0,u.jsx)(k5,{fill:tr.dx[700],style:{width:24,height:24}}),wrapperBackgroundColor:tr.dx[100]},showCancelButton:!0,onCancel:function(){return h(!1)}})]})}),K8e=function(e){var t=e.viewMode,n=e.values,r=hi({resource:"/blog-categories?",enabled:!t}).data,o=new Map(t?[]:null===r||void 0===r?void 0:r.data.results.map((function(e){return[e.id,e.name]})));return(0,u.jsx)(u.Fragment,{children:t?(0,u.jsxs)(nn.Z,{spacing:0,children:[(0,u.jsx)(Cd,{text:"Categories",sx:{mb:"0.8rem"}}),(0,u.jsx)(nn.Z,{direction:"row",gap:1,flexWrap:"wrap",overflow:"hidden",sx:{maxHeight:"max-content"},children:null===n||void 0===n?void 0:n.map((function(e){return(0,u.jsx)(_d,{label:e,sx:{pointerEvents:"none",color:tr.IV[600],fontSize:"0.875rem",fontWeight:600}})}))})]}):(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Select,{}),name:"categories",placeholder:"Select",choices:o,label:"Categories",multiple:!0,withChips:!0,sx:{width:"100%","& .MuiInputBase-root":{borderTopLeftRadius:"0px",borderBottomLeftRadius:"0px"}},required:!0})})},J8e=["file","fileName","slug","author"],X8e=function(){var e=(0,o.useState)(""),t=(0,Le.Z)(e,2),n=t[0],r=t[1],i=(0,ze.UO)(),a=(null===i||void 0===i?void 0:i.blogId)||"",s=!!a.length,c=(0,ze.s0)(),d=(0,o.useState)(!1),p=(0,Le.Z)(d,2),f=p[0],h=p[1],m=fd({defaultValues:{headline:"",fileName:"",file:void 0,leadText:"",sections:[{subtitle:"",body:""}],slug:"",visibility:!0,author:"",categories:[]},mode:"onSubmit"}),v=Ra({id:a,resource:"blogs",enabled:!!a}).data,g=oa({resource:"blogs"}),y=g.mutate,b=g.isLoading,x=(0,As.Z)({resource:"blogs"}),w=x.mutate,C=x.isLoading,j=zk({resource:"blogs"}).mutate,S=zp({resource:"blogs/".concat(n,"/exist"),enabled:!1,onSuccess:function(e){e.data?r("".concat(n,"-2")):m.setValue("slug",n)}}).refetch;(0,o.useEffect)((function(){n&&S()}),[n]),(0,o.useEffect)((function(){var e=function(){var e=ds(hs().mark((function e(){var t,n,r,o,i;return hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!v){e.next=12;break}return e.next=3,fetch(v.file);case 3:return r=e.sent,e.next=6,r.blob();case 6:o=e.sent,v.file&&(n=new File([o],v.fileName)),i=(0,l.Z)((0,l.Z)({},v),{},{file:n,sections:(0,dn.Z)(v.sections),slug:v.slug||"",categories:v.categories.map((function(e){return e.id})),leadText:v.leadText,author:null===(t=v.author)||void 0===t?void 0:t.id}),m.reset(i),m.trigger(),h(!0);case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[v]);var k=function(){var e=ds(hs().mark((function e(t){var n,r,o,i,s,u,d,p,f,h=arguments;return hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=h.length>1&&void 0!==h[1]&&h[1],r=t.file,o=t.fileName,i=t.slug,s=t.author,u=Nn(t,J8e),e.next=4,r?(0,rs.y3)(r):null;case 4:d=e.sent,p=(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},u),m.getFieldState("file").isDirty&&r&&{file:d,fileName:o}),""===i&&n?{}:{slug:i}),""===m.getValues("author")?{}:{author:s}),{},{isDraft:n}),f={onSuccess:function(e){c(a?"../view":"../".concat(e.data.id,"/view"),{relative:"path"})},onError:function(e){c("../")}},a?w({id:a,data:p},f):y(p,f);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},m),{},{children:(0,u.jsx)("form",{children:(0,u.jsxs)(nn.Z,{sx:{padding:"1.5rem 1.5rem 0 1.5rem",borderRadius:"8px",border:"1px solid",borderColor:tr.E4[50],minHeight:"100%",alignItems:"stretch"},divider:(0,u.jsx)(un,{orientation:"horizontal"}),children:[(0,u.jsx)(nn.Z,{sx:{height:"61px"},direction:"row",justifyContent:"space-between",children:(0,u.jsx)(rn.Z,{variant:"headline3",sx:{marginTop:"6px"},color:"#384572",children:s?"Edit blog":"Create blog"})}),f||!s?(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-evenly",divider:(0,u.jsx)(un,{orientation:"vertical",flexItem:!0}),children:[(0,u.jsx)(tn,{sx:{width:"100%",padding:"1.5em 1.5em 1.5em 0"},children:(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsx)(w8e,{}),(0,u.jsx)(K8e,{}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Text,{}),name:"headline",type:"text",placeholder:"Enter blog headline",label:"headline",required:!0,sx:{paddingBottom:"1.25rem"},onBlur:function(e){var t=m.getValues("slug"),n=m.getValues("headline");t||r(h8e()(n))}}),m.getValues("slug")&&(0,u.jsx)(x8e,{basePath:"".concat(origin,"/blog/"),initialSlug:m.getValues("slug"),onConfirm:function(e){return r(e)}}),(0,u.jsx)(m8e,{}),(0,u.jsx)(b8e,{}),(0,u.jsx)(y8e,{})]})}),(0,u.jsx)(tn,{sx:{width:"20.5rem",minWidth:"20.5rem"},children:(0,u.jsx)(Y8e,{blogData:v,onPublish:m.handleSubmit((function(e){k(e,!1)})),saveAsDraft:m.handleSubmit((function(e){k(e,!0)})),isLoading:b||C,onDelete:function(){j({id:a}),c("../")}})})]}):(0,u.jsx)(P6e,{})]})})}))},Q8e=function(e){var t=e.blog,n=(0,o.useState)(!1),r=(0,Le.Z)(n,2),i=r[0],a=r[1],s=(0,ze.s0)(),l=[{key:"edit",text:"Edit",onClick:function(){return s("../edit",{relative:"path"})}}];return(null===t||void 0===t?void 0:t.status)===Kt.D9.Published&&t.visibility&&l.push({key:"view",text:(0,u.jsx)(Xn,{target:"_blank",href:"".concat(window.location.origin,"/blog/").concat(t.slug),underline:"none",sx:{color:"primaryDark.500"},children:"Go to public version"}),onClick:function(){}}),(0,u.jsx)(Dk,{menuItemsContents:l,renderDropdownButtonElement:function(e){var t=e.onClick;return(0,u.jsx)(ko.Z,{variant:"outlined",color:"primary",onClick:function(e){t(e),a(!i)},endIcon:i?(0,u.jsx)(_l.Z,{}):(0,u.jsx)(zl.Z,{}),sx:{borderRadius:"0.25rem",color:"primaryDark.600"},children:"Editing"})},onClickAway:function(){return a(!1)},dropdownSx:{width:"max-content"}})},$8e=function(){var e,t,n=(0,ze.UO)(),r=(null===n||void 0===n?void 0:n.blogId)||"",o=(0,ze.s0)();0===r.length&&o("../");var i=Ra({id:r,resource:"blogs",enabled:!!r}),a=i.data,s=i.isFetched,c=i.refetch;s&&void 0===a&&o("../");var d=(0,As.Z)({resource:"blogs"}),p=d.mutate,f=d.isLoading,h=zk({resource:"blogs"}).mutate;return(0,u.jsxs)(nn.Z,{sx:{padding:"1.5rem 1.5rem 0 1.5rem",borderRadius:"8px",border:"1px solid",borderColor:tr.E4[50],minHeight:"100%",alignItems:"stretch"},divider:(0,u.jsx)(un,{orientation:"horizontal"}),children:[(0,u.jsxs)(nn.Z,{sx:{height:"61px",pr:"1.5rem"},direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{variant:"headline3",sx:{marginTop:"6px"},color:"#384572",children:"Preview blog"}),(0,u.jsx)(Q8e,{blog:a})]}),a?(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-evenly",divider:(0,u.jsx)(un,{orientation:"vertical",flexItem:!0}),children:[(0,u.jsx)(tn,{sx:{width:"100%",padding:"1.5rem 1.5rem 1.5rem 0"},children:(0,u.jsxs)(nn.Z,{sx:{border:"1px solid",borderRadius:"5px",paddingBottom:"1.5rem",backgroundColor:tr.aK[100],borderColor:tr.IV[250]},spacing:3,divider:(0,u.jsx)(un,{orientation:"horizontal"}),children:[(0,u.jsxs)(nn.Z,{spacing:3,sx:{padding:"1.5rem 1.5rem 0 1.5rem"},children:[(0,u.jsx)(w8e,{viewMode:!0,author:"".concat(null===a||void 0===a||null===(e=a.author)||void 0===e?void 0:e.firstName," ").concat(null===a||void 0===a||null===(t=a.author)||void 0===t?void 0:t.lastName)}),(0,u.jsx)(K8e,{viewMode:!0,values:null===a||void 0===a?void 0:a.categories.map((function(e){return e.name}))}),(0,u.jsx)(x8e,{viewMode:!0,basePath:"".concat(origin,"/blog/"),initialSlug:null===a||void 0===a?void 0:a.slug})]}),(0,u.jsxs)(nn.Z,{spacing:3,sx:{padding:"0 1.5rem"},children:[(0,u.jsx)(rn.Z,{variant:"heading1",sx:{fontWeight:600,lineHeight:"2rem",letterSpacing:"0.035rem"},children:null===a||void 0===a?void 0:a.headline}),(0,u.jsx)(b8e,{viewMode:!0,value:null===a||void 0===a?void 0:a.leadText})]}),(0,u.jsx)(y8e,{viewMode:!0,values:null===a||void 0===a?void 0:a.sections})]})}),(0,u.jsx)(tn,{sx:{width:"20.5rem",minWidth:"20.5rem"},children:(0,u.jsx)(Y8e,{viewMode:!0,blogData:a,isLoading:f,onPublish:function(){var e,t={id:r,data:(0,l.Z)((0,l.Z)({},a),{},{author:null===a||void 0===a||null===(e=a.author)||void 0===e?void 0:e.id,categories:null===a||void 0===a?void 0:a.categories.map((function(e){return e.id})),isDraft:!1})};p(t,{onSuccess:function(){c()}})},onDelete:function(){h({id:r}),o("../")}})})]}):(0,u.jsx)(P6e,{})]})},e7e=["title","titleId"];function t7e(){return t7e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t7e.apply(this,arguments)}function n7e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function r7e(e,t){var n=e.title,r=e.titleId,i=n7e(e,e7e);return o.createElement("svg",t7e({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",fill:"none",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,U8e||(U8e=o.createElement("g",{clipPath:"url(#clip0_3142_22620)"},o.createElement("circle",{cx:8,cy:8,r:8,fill:"#6D51F6"}),o.createElement("path",{d:"M7.9861 2.99976C5.48843 2.99976 3.5 4.73054 3.5 6.8819C3.5 9.36485 5.76326 10.667 7.92143 10.667C9.13389 10.667 10.3383 9.95526 10.3383 8.92002C10.3383 6.70397 6.9838 7.77964 6.9838 6.45325C6.9838 6.04077 7.42836 5.77387 8.01034 5.77387C8.64891 5.77387 9.10964 6.11356 9.17431 6.56648H10.2413C10.1039 5.4908 9.14197 4.88421 8.03459 4.88421C6.7898 4.88421 5.94917 5.57976 5.94917 6.53412C5.94917 7.63406 6.83022 7.89287 7.69511 8.05463C8.51149 8.2083 9.30363 8.273 9.30363 8.94429C9.30363 9.41338 8.60849 9.75307 7.91335 9.75307C6.34524 9.75307 4.48613 8.73401 4.48613 6.84955C4.48613 5.20773 5.99766 3.91368 7.9861 3.91368C10.1362 3.91368 11.8902 5.66873 11.8902 7.82008C11.8902 9.97144 10.1362 11.7265 7.9861 11.7265C6.3129 11.7265 5.18128 10.942 4.66396 10.4729L4.09006 11.1927C5.16511 12.1551 6.51498 12.6485 7.9861 12.6485C10.6454 12.6485 12.8763 10.4891 12.8763 7.82817C12.8763 5.16729 10.6454 2.99976 7.9861 2.99976Z",fill:"white"}))),q8e||(q8e=o.createElement("defs",null,o.createElement("clipPath",{id:"clip0_3142_22620"},o.createElement("rect",{width:16,height:16,fill:"white"})))))}var o7e,i7e,a7e=o.forwardRef(r7e),s7e=(n.p,function(e){var t=e.author,n=e.publishDate,r=e.categories;return(0,u.jsxs)(nn.Z,{direction:{xs:"column",md:"row"},justifyContent:"space-between",children:[(0,u.jsxs)(nn.Z,{direction:{xs:"column",md:"row"},spacing:{xs:3,md:5},children:[(0,u.jsxs)(nn.Z,{direction:"column",spacing:.5,children:[(0,u.jsx)(rn.Z,{variant:"body2",color:"primaryDark.500",children:"Author"}),(0,u.jsxs)(nn.Z,{direction:"row",spacing:2,alignItems:"center",children:[(0,u.jsx)(Vo.Z,{overlap:"circular",anchorOrigin:{vertical:"bottom",horizontal:"right"},badgeContent:(0,u.jsx)(a7e,{fill:tr.E4[500]}),children:(0,u.jsx)(Ca,{src:"",alt:"Company logo",sx:{border:"1px solid #BFC6D7",boxShadow:"6px 6px 15px 0px #9747FF40",height:"32px",width:"32px"}})}),(0,u.jsx)(rn.Z,{variant:"bodyMedium2",color:"secondaryGray.900",children:t})]})]}),(0,u.jsxs)(nn.Z,{direction:"column",spacing:1.25,children:[(0,u.jsx)(rn.Z,{variant:"body2",color:"primaryDark.500",children:"Published on:"}),(0,u.jsx)(rn.Z,{variant:"bodyMedium2",color:"secondaryGray.900",children:n})]}),(0,u.jsx)(nn.Z,{direction:"column",spacing:0,justifyContent:"flex-end",children:(0,u.jsx)(nn.Z,{direction:"row",gap:2,flexWrap:"wrap",overflow:"hidden",sx:{maxHeight:"max-content",mt:"22px"},children:null===r||void 0===r?void 0:r.map((function(e){return(0,u.jsx)(_d,{label:e,sx:{pointerEvents:"none",color:tr.IV[600],fontSize:"0.75rem",fontWeight:600,height:"30px"}})}))})})]}),(0,u.jsxs)(nn.Z,{direction:"row",sx:{marginTop:"24px"},spacing:2,children:[(0,u.jsx)(Xn,{href:"https://www.linkedin.com/sharing/share-offsite/?url={".concat(window.location.href,"}"),target:"_blank",rel:"noopener",children:(0,u.jsx)(Ca,{sx:{width:"24px",height:"24px"},children:(0,u.jsx)(W5e,{})})}),(0,u.jsx)(Xn,{href:"https://twitter.com/share?url=".concat(window.location.href),target:"_blank",rel:"noopener",children:(0,u.jsx)(Ca,{sx:{width:"24px",height:"24px"},children:(0,u.jsx)(J5e,{})})}),(0,u.jsx)(Xn,{href:"https://www.facebook.com/sharer/sharer.php?u=".concat(window.location.href),target:"_blank",rel:"noopener",children:(0,u.jsx)(Ca,{sx:{width:"24px",height:"24px"},children:(0,u.jsx)(I5e,{})})})]})]})}),l7e=function(e){var t,n,r,o=e.blog;return(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsx)(rn.Z,{variant:"publicHeading2",sx:{fontSize:{xs:"3rem",md:"4rem"}},children:null===o||void 0===o?void 0:o.headline}),(0,u.jsx)(rn.Z,{variant:"publicBody2Regular",sx:{letterSpacing:"0.06rem",lineHeight:"2rem",fontSize:{xs:"1.25rem",md:"1.5rem"}},children:null===o||void 0===o?void 0:o.leadText}),(0,u.jsx)(nn.Z,{direction:"row",justifyContent:"center",children:(0,u.jsx)(tn,{component:"img",maxWidth:"100%",src:null===o||void 0===o?void 0:o.file,sx:{objectFit:"contain"}})}),(0,u.jsx)(s7e,{author:"".concat(null===(t=o.author)||void 0===t?void 0:t.firstName," ").concat(null===(n=o.author)||void 0===n?void 0:n.lastName),publishDate:(0,rs.qJ)(null===o||void 0===o?void 0:o.published,""),categories:null===(r=o.categories)||void 0===r?void 0:r.map((function(e){return e.name}))})]})},c7e=function(e){var t=e.sections;return(0,u.jsx)(nn.Z,{spacing:5,children:null===t||void 0===t?void 0:t.map((function(e){return(0,u.jsxs)(nn.Z,{spacing:2,id:e.id,sx:{scrollMarginTop:"".concat(93,"px")},children:[(0,u.jsx)(nn.Z,{children:(0,u.jsx)(rn.Z,{variant:"publicBody1",color:"secondaryGray.900",children:e.subtitle})}),(0,u.jsx)(nn.Z,{children:(0,u.jsx)(m$,{items:[],content:e.body,isEditable:!1,notEditableFontSize:"1.25rem !important"})})]})}))})},u7e=function(e){var t=e.sections,n=e.activeId;return(0,u.jsx)("nav",{className:"stickyElement","aria-label":"Table of contents",style:{top:104},children:(0,u.jsxs)(ms,{direction:"column",spacing:4,marginTop:"40px",children:[(0,u.jsx)(rn.Z,{variant:"publicBody3",color:"secondaryGray.900",lineHeight:"145%",children:"Table of contents"}),(0,u.jsx)("ul",{children:(0,u.jsx)(ms,{spacing:2,direction:"column",children:t.map((function(e){return(0,u.jsx)(Xn,{href:"#".concat(e.id),onClick:function(t){t.preventDefault();var n=document.querySelector("#".concat(e.id));n&&n.scrollIntoView({behavior:"smooth"})},sx:{textDecoration:"none"},children:(0,u.jsx)(rn.Z,{variant:"publicBody3Regular",color:n===e.id?"primaryLight.500":"#secondaryGray.900",sx:{textDecoration:"none"},children:e.subtitle})},e.id)}))})})]})})},d7e=function(e,t){var n=(0,o.useRef)({}),r=t.join(",");(0,o.useEffect)((function(){var t=new IntersectionObserver((function(t){n.current=t.reduce((function(e,t){return e[t.target.id]=t,e}),n.current);var r=[];Object.keys(n.current).forEach((function(e){var t=n.current[e];t.isIntersecting&&r.push(t)}));var i=function(e){return o.findIndex((function(t){return t.id===e}))};if(1===r.length)e(r[0].target.id);else if(r.length>1){var a=r.sort((function(e,t){return i(e.target.id)-i(t.target.id)}));e(a[0].target.id)}}),{rootMargin:"-90px 0px -40% 0px"}),o=Array.from(document.querySelectorAll(r));return o.forEach((function(e){return t.observe(e)})),function(){return t.disconnect()}}),[e])},p7e=function(e){var t=e.blog,n=(0,o.useState)(""),r=(0,Le.Z)(n,2),i=r[0],a=r[1],s=null===t||void 0===t?void 0:t.sections.map((function(e,t){return{subtitle:e.subtitle,body:e.body,id:"section-".concat(t)}})),l=s.map((function(e){return"#".concat(e.id)}));d7e(a,l);var c=Bn(ir.breakpoints.down("bg"));return(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(da.Z,{sx:{width:{xs:"720px"}},children:(0,u.jsx)(c7e,{sections:s})}),!c&&(0,u.jsx)(da.Z,{sx:{width:"340px",minWidth:"340px",marginLeft:{xs:"auto",bg:"40px"}},children:(0,u.jsx)(u7e,{sections:s,activeId:i})})]})},f7e=function(e){var t,n,r,o,i=e.blogData,a=e.orientation,s=e.featured,l=(Bn((0,j.Z)().breakpoints.down("sm")),(0,ze.s0)());return(0,u.jsx)(da.Z,{sx:{boxShadow:2,borderRadius:2,overflow:"hidden",display:"flex",flexDirection:"column",m:1,bgcolor:"background.paper",cursor:"pointer"},onClick:function(e){e.stopPropagation(),l("/blog/".concat(null===i||void 0===i?void 0:i.slug))},children:(0,u.jsxs)(ms,{direction:"horizontal"===a?"row":"column",spacing:s?1.5:2,children:[(0,u.jsx)(da.Z,{component:"img",sx:{height:s&&"vertical"===a?232:205,width:"100%",objectFit:"cover",maxWidth:s&&"horizontal"===a?"55%":"none",minWidth:s&&"horizontal"===a?"55%":"none"},src:i.file,alt:"Image description"}),(0,u.jsxs)(ms,{direction:"column",px:"horizontal"===a?0:1.5,pr:1.5,spacing:s&&"vertical"!==a?1.5:2,pb:s&&"horizontal"===a?2:3,pt:s&&"horizontal"===a?2:0,children:[!s&&(0,u.jsx)(ms,{direction:"row",justifyContent:"space-between",children:(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.500",sx:{lineHeight:"1.25rem"},children:null!==i&&void 0!==i&&i.published?(0,vm.Z)(new Date(null===i||void 0===i?void 0:i.published),"MMMM dd, yyyy"):""})}),(0,u.jsx)(ns,{title:i.headline.length>90?i.headline:"",placement:"top",children:(0,u.jsx)(rn.Z,{variant:"bodySemiBold2",color:"primaryDark.900",sx:{lineHeight:"1.5rem",minHeight:"48px",maxHeight:"48px",overflow:"hidden"},children:(0,rs.$G)(null!==(t=i.headline)&&void 0!==t?t:"",90)})}),(0,u.jsx)(ns,{title:i.leadText.length>140?i.leadText:"",placement:"top",children:(0,u.jsx)(rn.Z,{variant:"body3",color:"primaryDark.900",sx:{fontSize:"0.875rem",lineHeight:"1.25rem",minHeight:"60px",maxHeight:"60px",overflow:"hidden"},children:(0,rs.$G)(null!==(n=i.leadText)&&void 0!==n?n:"",140)})}),(0,u.jsx)(ns,{placement:"top",title:null===i||void 0===i||null===(r=i.categories)||void 0===r?void 0:r.map((function(e){return e.name})).join(", "),children:(0,u.jsx)(ms,{direction:"row",gap:1.5,justifyContent:"start",alignItems:"center",flexWrap:"wrap",sx:{minHeight:"34px",maxHeight:"34px",overflow:"hidden"},children:null===i||void 0===i||null===(o=i.categories)||void 0===o?void 0:o.slice(0,3).map((function(e){return(0,u.jsx)(_d,{label:e.name},e.id)}))})})]})]})})},h7e=function(){var e=(0,ze.s0)(),t=hi({resource:"/blogs?limit=3&orderBy=-created",refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1}).data,n=null===t||void 0===t?void 0:t.data.results;return(0,u.jsxs)(ms,{direction:"column",spacing:5,pt:2.5,children:[(0,u.jsxs)(ms,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{variant:"publicBody1",children:"Latest blog posts"}),(0,u.jsx)(Wo,{variant:"primaryText",onClick:function(){return e("/blog-archive")},sx:{minWidth:"fit-content"},children:"View all"})]}),(0,u.jsx)(kn,{container:!0,spacing:2,rowSpacing:3,pt:0,mt:-1.5,gridAutoRows:"max-content",sx:{background:"transparent",marginLeft:"-16px !important"},children:null===n||void 0===n?void 0:n.map((function(e,t){return(0,u.jsx)(kn,{item:!0,xs:12,md:4,bg:4,lg:4,xl:4,gridAutoRows:"max-content",children:(0,u.jsx)(f7e,{blogData:e})},null===e||void 0===e?void 0:e.id)}))})]})},m7e={success:{title:"Successfully subscribed",text:(0,u.jsxs)(u.Fragment,{children:["Thank you for subscribing to our newsletter! ",(0,u.jsx)("br",{})," ",(0,u.jsx)("br",{}),"Check your inbox for a welcome email from us which includes helpful information to get you started."]}),icon:(0,u.jsx)(Rd,{fill:tr.dx[700],style:{width:24,height:24}}),wrapperBackgroundColor:tr.dx[100]},error:{title:"Error",text:(0,u.jsx)(u.Fragment,{children:"Something went wrong.Please try again later."}),icon:(0,u.jsx)(V2,{fill:tr.Us[700],style:{width:24,height:24}}),wrapperBackgroundColor:tr.Us[100]}},v7e=function(e){var t=e.isOpen,n=e.setIsOpen,r=e.type,o=e.onConfirm;return(0,u.jsx)(y4,{isModalOpen:t,setIsModalOpen:n,title:m7e[r].title,message:(0,u.jsx)(rn.Z,{color:"primaryDark.500",lineHeight:"21px",children:m7e[r].text}),confirmButtonText:"OK",onConfirm:o,iconProps:{icon:m7e[r].icon,wrapperBackgroundColor:m7e[r].wrapperBackgroundColor},showCancelButton:!1})},g7e=function(){var e=(0,o.useState)(!1),t=(0,Le.Z)(e,2),n=t[0],r=t[1],i=(0,o.useState)(!1),a=(0,Le.Z)(i,2),s=a[0],c=a[1],d=fd({defaultValues:{email:""},mode:"onSubmit"}),p=oa({resource:"newsletter/subscribe"}),f=p.mutate,h=p.isLoading;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},d),{},{children:(0,u.jsx)("form",{children:(0,u.jsxs)(ms,{direction:"column",spacing:3,alignItems:"flex-start",children:[(0,u.jsx)(rn.Z,{variant:"publicHeading3",color:"secondaryGray.900",children:"Subscribe to our newsletter"}),(0,u.jsx)(rn.Z,{variant:"publicBody3Regular",color:"secondaryGray.900",sx:{maxWidth:"718px"},children:"Subscribe to our newsletter and receive the latest trends, updates and exclusive insights into the world of digital services straight to your inbox."}),(0,u.jsxs)(ms,{spacing:3,direction:{xs:"column",md:"row"},alignItems:"flex-start",justifyContent:"space-between",sx:{width:"100%",maxWidth:"845px"},children:[(0,u.jsxs)(ms,{direction:"column",spacing:.5,alignItems:"flex-start",sx:{width:"100%"},children:[(0,u.jsx)(Cd,{text:"Email",sx:{mb:0}}),(0,u.jsx)(tn,{sx:{backgroundColor:"#fff",width:"100%",maxWidth:{xs:"718px",md:"none"}},children:(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Text,{}),name:"email",type:"email",placeholder:"Enter your e-mail",required:!0,disabled:h,validationRegEx:{value:/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,message:"Invalid email address"},sx:{width:"100%",backgroundColor:"#fff"}})})]}),(0,u.jsx)(Wo,{variant:"primary",sx:{height:"2.8125rem",width:"100%",maxWidth:"120px",marginTop:"22px !important"},onClick:d.handleSubmit((function(){var e={onSuccess:function(e){r(!0),d.reset()},onError:function(e){c(!0),d.reset()}};f({email:d.getValues("email")},e)})),loading:h,children:"Subscribe"})]})]})})})),(0,u.jsx)(v7e,{type:"success",isOpen:n,onConfirm:function(){return r(!1)},setIsOpen:r}),(0,u.jsx)(v7e,{type:"error",isOpen:s,onConfirm:function(){return c(!1)},setIsOpen:c})]})},y7e=function(){var e=(0,ze.UO)(),t=zp({enabled:!(null===e||void 0===e||!e.blogSlug),resource:"blogs/".concat(e.blogSlug),refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1}).data;return(0,u.jsx)(u.Fragment,{children:t&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(nn.Z,{spacing:10,pt:20,mx:"auto",maxWidth:{xs:"1328px",lg:"1360px",gr:"1440px"},px:{xs:3,lg:5,gr:10,xxl:"auto"},children:[(0,u.jsx)(l7e,{blog:null===t||void 0===t?void 0:t.data}),(0,u.jsx)(p7e,{blog:null===t||void 0===t?void 0:t.data}),(0,u.jsx)(h7e,{})]}),(0,u.jsx)(tn,{sx:{backgroundColor:"primaryLight.50"},children:(0,u.jsx)(nn.Z,{spacing:10,pt:10,pb:12.5,mt:12.5,mx:"auto",maxWidth:{xs:"1328px",lg:"1360px",gr:"1440px"},px:{xs:3,lg:5,gr:10,xxl:"auto"},children:(0,u.jsx)(g7e,{})})})]})})},b7e=function(){return(0,u.jsxs)(nn.Z,{direction:"column",alignItems:"flex-start",sx:{display:"flex",px:{xs:1}},spacing:5,children:[(0,u.jsxs)(rn.Z,{variant:"publicHeadline6",color:"primaryDark.900",children:["Spona Blog",(0,u.jsx)(tn,{sx:{backgroundColor:"primaryLight.500",width:"100%",height:"0.75rem",borderRadius:"7rem"}})]}),(0,u.jsx)(rn.Z,{variant:"publicBody3Regular",color:"primaryDark.900",children:"Stay informed with Spona's blog where you'll find updates on our digital service solutions, industry trends, news,profiles on standout sellers, Spona Stars, and projects that are redefining the digital service marketplace."})]})},x7e=function(e){var t=e.label,n=e.active,r=void 0!==n&&n,o=e.onClick;return(0,u.jsx)(_d,{styleVariant:"rounded",label:t,sx:{backgroundColor:r?"primaryLight.500":"#FFF",borderColor:"primaryLight.50",color:r?"primaryLight.50":"primaryLight.500",cursor:"pointer","&:hover":{backgroundColor:r?"primaryLight.500":"#FFF"},textTransform:"none",fontSize:14,lineHeight:"21px",fontFamily:"Gellix-SemiBold",py:"8px"},onClick:o})},w7e=function(){var e=N6e(),t=(0,Le.Z)(e,4),n=t[1],r=t[2],o=t[3],i=hi({resource:"/blog-categories"}).data,a=null===i||void 0===i?void 0:i.data.results.filter((function(e){return e.blogCount>0}));return(0,u.jsxs)(tn,{sx:{overflow:"auto",mx:1,pb:1,whiteSpace:"nowrap","::-webkit-scrollbar":{height:"6px"},zIndex:99},children:[(0,u.jsx)(tn,{sx:{display:"inline-block"},children:(0,u.jsx)(x7e,{label:"All",active:!o.has("categories"),onClick:function(){r("categories")}},"all")},"all"),null===a||void 0===a?void 0:a.map((function(e,t){return(0,u.jsx)(tn,{sx:{display:"inline-block",ml:1},children:(0,u.jsx)(x7e,{label:e.name,active:o.getAll("categories").includes(e.name),onClick:function(){n({categories:e.name})}},e.id)},e.id)}))]})},C7e=function(){var e=N6e({defaultValue:{limit:12,offset:0}}),t=(0,Le.Z)(e,4),n=t[0],r=t[3],i=hi({resource:"/blogs?".concat(function(){var e,t,o,i=new URLSearchParams(r);return i.set("limit",null!==(e=n.limit)&&void 0!==e?e:"12"),i.set("offset",null!==(t=n.offset)&&void 0!==t?t:"0"),i.set("orderBy",null!==(o=n.orderBy)&&void 0!==o?o:"-published"),i.set("status","published"),i.toString()}())}),a=i.data,s=i.refetch,l=i.isLoading,c=null===a||void 0===a?void 0:a.data.results,d=null===a||void 0===a?void 0:a.data.count;return(0,o.useEffect)((function(){s()}),[n.limit,n.offset,s]),(0,u.jsx)(tn,{sx:{backgroundColor:"transparent"},children:(0,u.jsxs)(nn.Z,{overflow:"hidden",maxWidth:"100%",alignSelf:"center",children:[(0,u.jsx)(w7e,{}),l?(0,u.jsx)(P6e,{}):(0,u.jsx)(kn,{container:!0,spacing:2,rowSpacing:3,pt:0,mt:-1.5,gridAutoRows:"max-content",sx:{background:"transparent"},children:null===c||void 0===c?void 0:c.map((function(e,t){return(0,u.jsx)(kn,{item:!0,xs:12,sm:6,md:6,bg:4,lg:4,xl:4,gridAutoRows:"max-content",children:(0,u.jsx)(f7e,{blogData:e})},null===e||void 0===e?void 0:e.id)}))}),(0,u.jsx)(un,{sx:{mt:6}}),(0,u.jsx)(U6e,{count:d})]})})},j7e=function(){var e=hi({resource:"/blogs?featuredPosition=one&featuredPosition=two&featuredPosition=three"}),t=e.data,n=(e.refetch,e.isLoading),r=null===t||void 0===t?void 0:t.data.results,o=null===r||void 0===r?void 0:r.find((function(e){return"one"===e.featuredPosition})),i=null===r||void 0===r?void 0:r.find((function(e){return"two"===e.featuredPosition})),a=null===r||void 0===r?void 0:r.find((function(e){return"three"===e.featuredPosition})),s=Bn(ir.breakpoints.down("sm"));return(0,u.jsx)(u.Fragment,{children:(n||o&&i&&a)&&(0,u.jsxs)(ms,{sx:{pb:2.5},children:[(0,u.jsx)(rn.Z,{variant:"publicBody1",color:"primaryDark.900",sx:{mb:"1rem",ml:1},children:"Featured Blogs"}),n?(0,u.jsx)(P6e,{}):(0,u.jsxs)(kn,{container:!0,gridAutoRows:"max-content",sx:{background:"transparent"},spacing:2,children:[(0,u.jsx)(kn,{item:!0,bg:5,xs:12,children:(0,u.jsx)(kn,{container:!0,children:(0,u.jsx)(kn,{item:!0,xs:12,children:(0,u.jsx)(f7e,{blogData:o,featured:!0,orientation:"vertical"})})})}),(0,u.jsx)(kn,{item:!0,bg:7,xs:12,children:(0,u.jsxs)(kn,{container:!0,spacing:2,children:[(0,u.jsx)(kn,{item:!0,xs:12,children:(0,u.jsx)(f7e,{blogData:i,orientation:s?"vertical":"horizontal",featured:!0})}),(0,u.jsx)(kn,{item:!0,xs:12,children:(0,u.jsx)(f7e,{blogData:a,orientation:s?"vertical":"horizontal",featured:!0})})]})})]})]})})},S7e=function(){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(tn,{sx:{backgroundColor:"primaryDark.100"},children:(0,u.jsxs)(nn.Z,{direction:"column",pt:20,pb:10,mx:{xs:2,gr:10,xxl:"auto"},maxWidth:{xs:"100%",xxl:"1280px"},spacing:12.5,children:[(0,u.jsx)(b7e,{}),(0,u.jsx)(j7e,{}),(0,u.jsx)(C7e,{})]})}),(0,u.jsx)(tn,{sx:{backgroundColor:"primaryLight.50"},children:(0,u.jsx)(nn.Z,{spacing:10,pt:10,pb:12.5,mx:{xs:3,lg:5,gr:10,xxl:"auto"},maxWidth:{xs:"100%",xxl:"1280px"},children:(0,u.jsx)(g7e,{})})})]})},k7e=["resourceLimit","chipFilters"],Z7e=function(){(0,ze.s0)();var e=[{field:"email",headerName:"Email",editable:!1,flex:.3},{field:"created",headerName:"Created",editable:!1,flex:.3,renderCell:function(e){return(0,u.jsx)(rn.Z,{sx:{fontSize:"0.875rem"},children:(0,rs.qJ)(e.value)})}},{field:"updated",headerName:"Updated",editable:!1,flex:.3,renderCell:function(e){return(0,u.jsx)(rn.Z,{sx:{fontSize:"0.875rem"},children:(0,rs.qJ)(e.value)})}},{field:"unsubcribed",headerName:"Subscribed",flex:.1,renderCell:function(e){return e.row.unsubscribed?(0,u.jsx)(_xe.Z,{}):(0,u.jsx)(CZe.Z,{})}}],t=ake({resourceUrl:"newsletter",withTabs:!0,chipFilterQueryParams:[{title:"All"},{title:"Subscribed",search:{unsubscribed:"false"}},{title:"Unsubscribed",search:{unsubscribed:"true"}}]}),n=t.resourceLimit,r=t.chipFilters,o=Nn(t,k7e);return(0,u.jsx)(kZe,(0,l.Z)({numberOfRowsPerPage:n,columns:e,onRowClick:function(e){},withElements:{withTitle:"Subscribers"},chipFilters:r,sx:{"& .MuiDataGrid-cell":{overflowX:"auto"}}},o))},O7e=function(e){var t={one:null,two:null,three:null};return{selectDataSources:e.reduce((function(e,n){return n.featuredPosition===Kt.Wp.One?(e.one.set(n.id,n.headline),t.one=n):n.featuredPosition===Kt.Wp.Two?(e.two.set(n.id,n.headline),t.two=n):n.featuredPosition===Kt.Wp.Three?(t.three=n,e.three.set(n.id,n.headline)):(e.one.set(n.id,n.headline),e.two.set(n.id,n.headline),e.three.set(n.id,n.headline)),e}),{one:new Map([]),two:new Map([]),three:new Map([])}),featuredBlogs:t}},E7e=function(){var e=(0,o.useState)({one:new Map([]),two:new Map([]),three:new Map([])}),t=(0,Le.Z)(e,2),n=t[0],r=t[1],i=fd({defaultValues:{one:"",two:"",three:""},mode:"onSubmit"}),a=hi({resource:"/blogs?limit=1000"}),s=a.data,c=(a.refetch,oa({resource:"blogs/featured"})),d=c.mutate,p=c.isLoading,f=null===s||void 0===s?void 0:s.data.results;(0,o.useEffect)((function(){var e=function(){var e=ds(hs().mark((function e(){var t,n,o,a,s,l;return hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:f&&(a=O7e(f),s=a.selectDataSources,l=a.featuredBlogs,r(s),i.reset({one:(null===(t=l.one)||void 0===t?void 0:t.id)||"",two:(null===(n=l.two)||void 0===n?void 0:n.id)||"",three:(null===(o=l.three)||void 0===o?void 0:o.id)||""}),i.trigger());case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[f]);return(0,o.useEffect)((function(){var e=i.watch((function(e,t){t.name,t.type;if(f)return r(function(e,t){return e.reduce((function(e,n){return n.id===t.one?e.one.set(n.id,n.headline):n.id===t.two?e.two.set(n.id,n.headline):(n.id===t.three||(e.one.set(n.id,n.headline),e.two.set(n.id,n.headline)),e.three.set(n.id,n.headline)),e}),{one:new Map([]),two:new Map([]),three:new Map([])})}(f,e))}));return function(){return e.unsubscribe()}}),[i.watch]),(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},i),{},{children:(0,u.jsx)("form",{children:(0,u.jsxs)(nn.Z,{sx:{padding:"1.5rem 1.5rem 0 1.5rem",borderRadius:"8px",border:"1px solid",borderColor:tr.E4[50],minHeight:"100%",alignItems:"stretch"},divider:(0,u.jsx)(un,{orientation:"horizontal"}),children:[(0,u.jsxs)(nn.Z,{sx:{height:"61px",pr:"1.5rem"},direction:"row",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{variant:"headline3",sx:{marginTop:"6px"},color:"#384572",children:"Featured blogs"}),(0,u.jsx)(Wo,{variant:"primary",sx:{height:"2.8125rem"},onClick:i.handleSubmit((function(e){d(e)})),loading:p,children:"publish"})]}),(0,u.jsxs)(nn.Z,{spacing:3,sx:{py:"2rem"},maxWidth:"53rem",height:"100%",children:[(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Select,{}),name:"one",placeholder:"Position one",choices:null===n||void 0===n?void 0:n.one,label:"Position one",disabled:p,sx:{width:"100%","& .MuiInputBase-root":{borderTopLeftRadius:"0px",borderBottomLeftRadius:"0px"}},required:!0}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Select,{}),name:"two",placeholder:"Position two",choices:null===n||void 0===n?void 0:n.two,label:"Position two",disabled:p,sx:{width:"100%","& .MuiInputBase-root":{borderTopLeftRadius:"0px",borderBottomLeftRadius:"0px"}},required:!0}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Select,{}),name:"three",placeholder:"Position three",choices:null===n||void 0===n?void 0:n.three,label:"Position three",disabled:p,sx:{width:"100%","& .MuiInputBase-root":{borderTopLeftRadius:"0px",borderBottomLeftRadius:"0px"}},required:!0})]})]})})}))},D7e=function(){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(rn.Z,{variant:"publicHeading2",align:"center",color:"primaryDark.900",children:"Plans & Pricing"}),(0,u.jsx)(rn.Z,{variant:"publicBody5Regular",width:{lg:"30%"},align:"center",color:"primaryDark.900",children:"A plan for every company's project needs. Get started for free."})]})},P7e=function(e){var t=e.children;return(0,u.jsxs)(nn.Z,{mt:"".concat(rc,"px"),pt:10,gap:3,justifyContent:"center",alignItems:"center",children:[(0,u.jsx)(D7e,{}),t]})},A7e=n(9229),M7e=n(5354),T7e=n(8387),I7e=n(77786),R7e=function(){return(0,u.jsxs)(nn.Z,{alignItems:"center",gap:5,width:"100%",children:[(0,u.jsx)(rn.Z,{variant:"publicBody4Regular",color:"primaryLight.500",my:2,children:"Trusted by companies around the world"}),(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",width:"65%",flexWrap:"wrap",children:[(0,u.jsx)(tn,{component:"img",src:A7e,sx:{maxWidth:"70px"},alt:"museum"}),(0,u.jsx)(tn,{component:"img",src:M7e,sx:{maxWidth:"70px"},alt:"blvc"}),(0,u.jsx)(tn,{component:"img",src:T7e,sx:{maxWidth:"130px"},alt:"lightfilm"}),(0,u.jsx)(tn,{component:"img",src:I7e,sx:{maxWidth:"70px"},alt:"gameboost"})]})]})},F7e=[{summary:"Is there a limit to the number of projects we can manage through Spona?",details:"No, there are no limits to projects, milestones, or tasks that can be managed through Spona."},{summary:"What happens when my trial expires?",details:"Your account will be downgraded to the free version until you decide whether to continue to a paid subscription or not. A Spona representative will be able to talk you through your options."},{summary:"Which payment options do you accept?",details:"Get in touch with a Spona representative to discuss your subscription options. You can pay for monthly or annual subscriptions by credit card or bank transfer."}],B7e=function(){return(0,u.jsxs)(nn.Z,{justifyContent:"space-between",direction:{lg:"row"},gap:10,mt:10,children:[(0,u.jsxs)(nn.Z,{width:"100%",gap:3,children:[(0,u.jsx)(rn.Z,{variant:"publicHeading3",color:"primaryDark.900",children:"Frequently asked questions"}),(0,u.jsx)(rn.Z,{variant:"publicBody4Regular",color:"primaryDark.700",width:"90%",children:"Got more questions? We're here to answer them! Drop us a message any time."}),(0,u.jsx)(Wo,{variant:"primaryText",endIcon:(0,u.jsx)(TR,{fill:tr.E4[500]}),href:"/contact-us",children:"Contact us"})]}),(0,u.jsx)(vwe,{group:F7e})]})},L7e=function(){var e=Bn(ir.breakpoints.down("lg"));return(0,u.jsxs)(nn.Z,{justifyContent:"space-between",width:"100%",height:"100%",px:2,p:{lg:10},py:10,direction:{lg:"row"},gap:10,mt:10,bgcolor:"primaryLight.50",children:[(0,u.jsxs)(nn.Z,{width:"100%",gap:3,justifyContent:{lg:"center"},alignItems:{lg:"center"},children:[(0,u.jsx)(rn.Z,{variant:"publicHeading3",color:"primaryDark.900",sx:{textAlign:{lg:"center"}},children:"Get a demo"}),(0,u.jsx)(rn.Z,{variant:"publicBody4Regular",color:"primaryDark.700",sx:{textAlign:{lg:"center"}},children:"Not sure which plan is right for you? Let us talk you through the options"}),(0,u.jsx)(Wo,{sx:{width:"fit-content"},href:"https://calendly.com/connectwithspona/30min?month=2024-01",children:"Book your demo"})]}),e?(0,u.jsx)(un,{flexItem:!0,children:"Or"}):(0,u.jsx)(un,{orientation:"vertical",flexItem:!0,children:"Or"}),(0,u.jsxs)(nn.Z,{width:"100%",gap:3,justifyContent:{lg:"center"},alignItems:{lg:"center"},children:[(0,u.jsx)(rn.Z,{variant:"publicHeading3",color:"primaryDark.900",sx:{textAlign:{lg:"center"}},children:"Start a free trial"}),(0,u.jsx)(rn.Z,{variant:"publicBody4Regular",color:"primaryDark.700",sx:{textAlign:{lg:"center"}},children:"We offer a 30-day free trial to all companies interested in using our End-to-End Project Management tool"}),(0,u.jsx)(Wo,{sx:{width:"fit-content"},variant:"primaryLight",href:"https://calendly.com/connectwithspona/30min?month=2024-01",children:"Try for free"})]})]})},N7e=function(){return(0,u.jsx)(nn.Z,{justifyContent:"space-between",width:"100%",height:"100%",px:(0,l.Z)({},ar.mx),p:{lg:10},py:10,direction:{lg:"row"},gap:10,mt:10,bgcolor:"primaryLight.50",children:(0,u.jsxs)(nn.Z,{width:"100%",gap:2,children:[(0,u.jsx)(rn.Z,{variant:"publicHeading3",color:"primaryDark.900",children:"Not sure which plan is right for you?"}),(0,u.jsx)(rn.Z,{variant:"publicBody4Regular",color:"primaryDark.700",children:"Schedule some time with a Spona advisor and let us talk you through the options"}),(0,u.jsx)(Wo,{sx:{width:"fit-content"},href:"https://calendly.com/connectwithspona/30min?month=2024-01",endIcon:(0,u.jsx)(TR,{fill:tr.E4[50]}),children:"Book your demo"})]})})},_7e=function(e){return"manage"===e.type?(0,u.jsx)(L7e,{}):(0,u.jsx)(N7e,{})},z7e=function(e){var t=e.sx,n=e.purple,r=e.children;return(0,u.jsx)(NZ,{sx:(0,l.Z)({p:5,px:{xs:2,md:5},boxShadow:n?"3px 3px 12px 0px #6D51F666":"1px 10px 30px 0px #3845721A",borderRadius:"20px",width:"50%",minHeight:"100% !important",zIndex:n?"2":"0",bgcolor:n?"primaryLight.50":"white",display:"flex",flexDirection:"column",justifyContent:"space-evenly",alignItems:"center"},t),children:r})},H7e=["title","titleId"];function W7e(){return W7e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W7e.apply(this,arguments)}function V7e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function U7e(e,t){var n=e.title,r=e.titleId,i=V7e(e,H7e);return o.createElement("svg",W7e({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,o7e||(o7e=o.createElement("rect",{width:24,height:24,rx:12,fill:"#6D51F6"})),i7e||(i7e=o.createElement("path",{d:"M16.6549 8C16.3149 8 15.9589 8.11468 15.6989 8.37469L10.7521 13.3748C10.4094 13.7188 10.0654 13.6548 9.79604 13.2508L8.46669 11.2507C8.05868 10.6374 7.20663 10.4667 6.59594 10.8748C5.98525 11.2841 5.81457 12.1375 6.22125 12.7495L7.55199 14.7496C8.75203 16.5549 11.0934 16.7843 12.6228 15.2509L17.611 10.2921C18.1297 9.77071 18.1297 8.89603 17.611 8.37469C17.351 8.11468 16.995 8 16.6549 8Z",fill:"#F4F1FE"})))}var q7e=o.forwardRef(U7e),G7e=(n.p,function(e){var t=e.title,n=e.hideCheck,r=e.sxTitle;return(0,u.jsxs)(nn.Z,{direction:"row",alignItems:"center",gap:1.5,children:[(0,u.jsx)(tn,{sx:{width:24,height:24},children:(0,u.jsx)(q7e,{style:{display:n?"none":"unset"}})}),(0,u.jsx)(rn.Z,{sx:(0,l.Z)({},r),variant:"publicBody4Regular",color:"primaryDark.900",children:t})]})}),Y7e=function(){return(0,u.jsxs)(nn.Z,{gap:.5,alignItems:"center",width:"100%",height:"100%",children:[(0,u.jsx)(rn.Z,{variant:"publicHeading4",color:"primaryLight.500",sx:{mb:1},children:"Basic"}),(0,u.jsxs)(rn.Z,{variant:"publicBody1",color:"primaryDark.900",display:"flex",justifyContent:"center",alignItems:"center",align:"center",gap:1,children:["$99.99",(0,u.jsx)(rn.Z,{component:"span",variant:"publicBody5Light",color:"primaryDark.900",children:"monthly"})]}),(0,u.jsxs)(rn.Z,{variant:"publicBody5Light",color:"primaryDark.900",display:"flex",justifyContent:"center",alignItems:"center",align:"center",gap:1,children:["or",(0,u.jsx)(rn.Z,{component:"span",variant:"publicBody5Light",color:"primaryDark.900",sx:{fontFamily:"Gellix-SemiBold",fontWeight:700},children:"$84.99 per month"}),"annually"]}),(0,u.jsx)(rn.Z,{variant:"publicBody3",color:"primaryDark.900",my:2,children:"Try for free for 30 days"}),(0,u.jsxs)(nn.Z,{gap:2,width:"83%",children:[(0,u.jsx)(G7e,{title:"Management of up to 2 projects",sxTitle:{fontFamily:"Gellix-Bold"}}),(0,u.jsx)(G7e,{title:"Built-in chat & video calls"}),(0,u.jsx)(G7e,{title:"Company calendar"}),(0,u.jsx)(G7e,{title:"Notifications"}),(0,u.jsx)(G7e,{title:"Ready-to-use contracts"}),(0,u.jsx)(G7e,{title:"Milestone & task management"}),(0,u.jsx)(G7e,{title:"Payment processing"}),(0,u.jsx)(G7e,{title:"Expense tracking"}),(0,u.jsx)(G7e,{title:"",hideCheck:!0}),(0,u.jsx)(G7e,{title:"",hideCheck:!0})]}),(0,u.jsx)(Wo,{sx:{mt:5},href:"https://calendly.com/connectwithspona/30min?month=2024-01",children:"try for free"})]})},K7e=function(){return(0,u.jsxs)(nn.Z,{gap:.5,alignItems:"center",width:"100%",sx:{py:{xs:0,lg:"15px"}},children:[(0,u.jsx)(rn.Z,{variant:"publicHeading4",color:"primaryLight.500",sx:{mb:1},children:"Standard"}),(0,u.jsxs)(rn.Z,{variant:"publicBody1",color:"primaryDark.900",display:"flex",justifyContent:"center",alignItems:"center",align:"center",gap:1,children:["$299.99",(0,u.jsx)(rn.Z,{component:"span",variant:"publicBody5Light",color:"primaryDark.900",children:"monthly"})]}),(0,u.jsxs)(rn.Z,{variant:"publicBody5Light",color:"primaryDark.900",display:"flex",justifyContent:"center",alignItems:"center",align:"center",gap:1,children:["or",(0,u.jsx)(rn.Z,{component:"span",variant:"publicBody5Light",color:"primaryDark.900",sx:{fontFamily:"Gellix-SemiBold",fontWeight:700},children:"$254.99 per month"}),"annually"]}),(0,u.jsx)(rn.Z,{variant:"publicBody3",color:"primaryDark.900",my:2,children:"Try for free for 30 days"}),(0,u.jsxs)(nn.Z,{gap:2,width:"83%",children:[(0,u.jsx)(G7e,{title:"Management of up to 8 projects",sxTitle:{fontFamily:"Gellix-Bold"}}),(0,u.jsx)(G7e,{title:"Built-in chat & video calls"}),(0,u.jsx)(G7e,{title:"Company calendar"}),(0,u.jsx)(G7e,{title:"Notifications"}),(0,u.jsx)(G7e,{title:"Ready-to-use contracts"}),(0,u.jsx)(G7e,{title:"Milestone & task management"}),(0,u.jsx)(G7e,{title:"Payment processing"}),(0,u.jsx)(G7e,{title:"Expense tracking"}),(0,u.jsx)(G7e,{title:"Priority support"}),(0,u.jsx)(G7e,{title:"Dedicated account manager"})]}),(0,u.jsx)(Wo,{sx:{mt:5},href:"https://calendly.com/connectwithspona/30min?month=2024-01",children:"try for free"})]})},J7e=function(){return(0,u.jsxs)(nn.Z,{gap:.5,alignItems:"center",width:"100%",children:[(0,u.jsx)(rn.Z,{variant:"publicHeading4",color:"primaryLight.500",sx:{mb:1},children:"Premium"}),(0,u.jsxs)(rn.Z,{variant:"publicBody1",color:"primaryDark.900",display:"flex",justifyContent:"center",alignItems:"center",align:"center",gap:1,children:["$799.99",(0,u.jsx)(rn.Z,{component:"span",variant:"publicBody5Light",color:"primaryDark.900",children:"monthly"})]}),(0,u.jsxs)(rn.Z,{variant:"publicBody5Light",color:"primaryDark.900",display:"flex",justifyContent:"center",alignItems:"center",align:"center",gap:1,children:["or",(0,u.jsx)(rn.Z,{component:"span",variant:"publicBody5Light",color:"primaryDark.900",sx:{fontFamily:"Gellix-SemiBold",fontWeight:700},children:"$679.99 per month"}),"annually"]}),(0,u.jsx)(rn.Z,{variant:"publicBody3",color:"primaryDark.900",my:2,children:"Try for free for 30 days"}),(0,u.jsxs)(nn.Z,{gap:2,width:"83%",children:[(0,u.jsx)(G7e,{title:"Management of up to 8+ projects",sxTitle:{fontFamily:"Gellix-Bold"}}),(0,u.jsx)(G7e,{title:"Built-in chat & video calls"}),(0,u.jsx)(G7e,{title:"Company calendar"}),(0,u.jsx)(G7e,{title:"Notifications"}),(0,u.jsx)(G7e,{title:"Ready-to-use contracts"}),(0,u.jsx)(G7e,{title:"Milestone & task management"}),(0,u.jsx)(G7e,{title:"Payment processing"}),(0,u.jsx)(G7e,{title:"Expense tracking"}),(0,u.jsx)(G7e,{title:"Priority support"}),(0,u.jsx)(G7e,{title:"Dedicated account manager"})]}),(0,u.jsx)(Wo,{sx:{mt:5},href:"https://calendly.com/connectwithspona/30min?month=2024-01",children:"try for free"})]})},X7e=function(){return(0,u.jsxs)(nn.Z,{gap:5,alignItems:"center",width:"100%",justifyContent:"space-between",children:[(0,u.jsx)(rn.Z,{variant:"publicHeading4",color:"primaryLight.500",children:"Self-service"}),(0,u.jsxs)(nn.Z,{gap:2,width:"80%",children:[(0,u.jsx)(G7e,{title:"Unlimited pitches"}),(0,u.jsx)(G7e,{title:"Seller evaluation tools"}),(0,u.jsx)(G7e,{title:"Built-in selection tool"}),(0,u.jsx)(G7e,{title:"Built-in chat & video calls"}),(0,u.jsx)(G7e,{title:"Company calendar"}),(0,u.jsx)(G7e,{title:"Ready-to-use contracts"}),(0,u.jsx)(G7e,{title:"Milestone & task management"}),(0,u.jsx)(G7e,{title:"Invoice management"}),(0,u.jsx)(G7e,{title:"Payment processing"}),(0,u.jsx)(G7e,{title:"Expense tracking"})]}),(0,u.jsx)(rn.Z,{variant:"publicBody5Light",maxWidth:"95%",color:"primaryDark.900",children:"3% fee per project to cover payment processing and Spona services when successfully matched with a digital service seller"}),(0,u.jsx)(Wo,{href:"/register",children:"Get started"})]})},Q7e=function(){return(0,u.jsxs)(nn.Z,{gap:5,alignItems:"center",justifyContent:"space-between",height:"100%",width:"100%",children:[(0,u.jsxs)(nn.Z,{gap:2,alignItems:"center",width:"100%",children:[(0,u.jsxs)(nn.Z,{gap:1,alignItems:"center",width:"100%",children:[(0,u.jsx)(rn.Z,{variant:"publicHeading4",color:"primaryLight.500",children:"Spona Connect"}),(0,u.jsx)(rn.Z,{variant:"publicBody4",color:"primaryDark.900",my:2,children:"Everything in self-service, plus:"})]}),(0,u.jsxs)(nn.Z,{gap:2,width:"80%",children:[(0,u.jsx)(G7e,{title:"Market analysis"}),(0,u.jsx)(G7e,{title:"Competitor benchmarking"}),(0,u.jsx)(G7e,{title:"Project creation"}),(0,u.jsx)(G7e,{title:"Tailored seller outreach"}),(0,u.jsx)(G7e,{title:"Pitch analysis"}),(0,u.jsx)(G7e,{title:"Project creation"}),(0,u.jsx)(G7e,{title:"Budget negotiation"}),(0,u.jsx)(G7e,{title:"Priority support"}),(0,u.jsx)(G7e,{title:"Dedicated success manager"})]}),(0,u.jsx)(rn.Z,{variant:"publicBody5Light",maxWidth:"95%",color:"primaryDark.900",mt:3,children:"5% fee per project to cover payment processing and Spona services when successfully matched with a digital service seller"})]}),(0,u.jsx)(Wo,{href:"https://calendly.com/connectwithspona/30min?month=2024-01",children:"Talk to us"})]})},$7e=function(e){var t=e.type,n=(0,o.useState)(t),r=(0,Le.Z)(n,2),i=r[0],a=r[1],s=function(e){return i===e?"primary":"primaryLight"};return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(ms,{direction:"row",children:[(0,u.jsx)(Wo,{sx:{width:{lg:"15rem"},borderRadius:"20px 0px 0px 20px"},variant:s("hire"),onClick:function(){return a("hire")},children:"Hire and manage"}),(0,u.jsx)(Wo,{sx:{width:{lg:"15rem"},borderRadius:"0px 20px 20px 0px"},variant:s("manage"),onClick:function(){return a("manage")},children:"Manage"})]}),(0,u.jsxs)(ms,{sx:(0,l.Z)({},ar),alignItems:"center",children:["manage"===i?(0,u.jsxs)(ms,{direction:{lg:"row"},alignItems:"center",width:"100%",minHeight:"100%",maxWidth:"1310px",my:8,gap:{xs:5,lg:0},children:[(0,u.jsx)(z7e,{purple:!0,sx:{mr:{lg:"-32px"},width:{xs:"100%",lg:"50%"},maxWidth:"500px"},children:(0,u.jsx)(Y7e,{})}),(0,u.jsx)(z7e,{sx:{width:{xs:"100%",lg:"50%"},maxWidth:"500px",zIndex:4},children:(0,u.jsx)(K7e,{})}),(0,u.jsx)(z7e,{purple:!0,sx:{ml:{lg:"-32px"},width:{xs:"100%",lg:"50%"},maxWidth:"500px"},children:(0,u.jsx)(J7e,{})})]}):(0,u.jsxs)(ms,{direction:{md:"row"},alignItems:{xs:"center",md:"stretch"},width:{lg:"100%"},minHeight:"100%",maxWidth:"932px",my:8,gap:{xs:5,md:0},sx:{mr:{md:"-32px"}},children:[(0,u.jsx)(z7e,{sx:{mr:{md:"-32px"},width:{xs:"100%",md:"50%"},maxWidth:"500px"},children:(0,u.jsx)(X7e,{})}),(0,u.jsx)(z7e,{purple:!0,sx:{width:{xs:"100%",md:"50%"},maxWidth:"500px"},children:(0,u.jsx)(Q7e,{})})]}),(0,u.jsx)(R7e,{}),(0,u.jsx)(B7e,{})]}),(0,u.jsx)(_7e,{type:i})]})},eet=function(e){var t=e.type;return(0,u.jsx)(P7e,{children:(0,u.jsx)($7e,{type:t})})},tet=function(){return(0,u.jsxs)(nn.Z,{gap:.5,alignItems:"center",width:"100%",height:"100%",children:[(0,u.jsx)(rn.Z,{variant:"publicHeading4",color:"primaryLight.500",sx:{mb:1},children:"Basic"}),(0,u.jsxs)(rn.Z,{variant:"publicBody1",color:"primaryDark.900",display:"flex",justifyContent:"center",alignItems:"center",align:"center",gap:1,children:["$99.99",(0,u.jsx)(rn.Z,{component:"span",variant:"publicBody5Light",color:"primaryDark.900",children:"monthly"})]}),(0,u.jsxs)(rn.Z,{variant:"publicBody5Light",color:"primaryDark.900",display:"flex",justifyContent:"center",alignItems:"center",align:"center",gap:1,children:["or",(0,u.jsx)(rn.Z,{component:"span",variant:"publicBody5Light",color:"primaryDark.900",sx:{fontFamily:"Gellix-SemiBold",fontWeight:700},children:"$84.99 per month"}),"annually"]}),(0,u.jsx)(rn.Z,{variant:"publicBody3",color:"primaryDark.900",my:2,children:"Try for free for 30 days"}),(0,u.jsxs)(nn.Z,{gap:2,width:"83%",children:[(0,u.jsx)(G7e,{title:"Management of up to 2 projects",sxTitle:{fontFamily:"Gellix-Bold"}}),(0,u.jsx)(G7e,{title:"Built-in chat & video calls"}),(0,u.jsx)(G7e,{title:"Company calendar"}),(0,u.jsx)(G7e,{title:"Notifications"}),(0,u.jsx)(G7e,{title:"Ready-to-use contracts"}),(0,u.jsx)(G7e,{title:"Milestone & task management"}),(0,u.jsx)(G7e,{title:"Payment processing"}),(0,u.jsx)(G7e,{title:"Expense tracking"}),(0,u.jsx)(G7e,{title:"",hideCheck:!0}),(0,u.jsx)(G7e,{title:"",hideCheck:!0})]}),(0,u.jsx)(Wo,{sx:{mt:5},href:"https://calendly.com/connectwithspona/30min?month=2024-01",children:"try for free"})]})},net=function(){return(0,u.jsxs)(nn.Z,{gap:.5,alignItems:"center",width:"100%",sx:{py:{xs:0,lg:"15px"}},children:[(0,u.jsx)(rn.Z,{variant:"publicHeading4",color:"primaryLight.500",sx:{mb:1},children:"Standard"}),(0,u.jsxs)(rn.Z,{variant:"publicBody1",color:"primaryDark.900",display:"flex",justifyContent:"center",alignItems:"center",align:"center",gap:1,children:["$299.99",(0,u.jsx)(rn.Z,{component:"span",variant:"publicBody5Light",color:"primaryDark.900",children:"monthly"})]}),(0,u.jsxs)(rn.Z,{variant:"publicBody5Light",color:"primaryDark.900",display:"flex",justifyContent:"center",alignItems:"center",align:"center",gap:1,children:["or",(0,u.jsx)(rn.Z,{component:"span",variant:"publicBody5Light",color:"primaryDark.900",sx:{fontFamily:"Gellix-SemiBold",fontWeight:700},children:"$254.99 per month"}),"annually"]}),(0,u.jsx)(rn.Z,{variant:"publicBody3",color:"primaryDark.900",my:2,children:"Try for free for 30 days"}),(0,u.jsxs)(nn.Z,{gap:2,width:"83%",children:[(0,u.jsx)(G7e,{title:"Management of up to 8 projects",sxTitle:{fontFamily:"Gellix-Bold"}}),(0,u.jsx)(G7e,{title:"Built-in chat & video calls"}),(0,u.jsx)(G7e,{title:"Company calendar"}),(0,u.jsx)(G7e,{title:"Notifications"}),(0,u.jsx)(G7e,{title:"Ready-to-use contracts"}),(0,u.jsx)(G7e,{title:"Milestone & task management"}),(0,u.jsx)(G7e,{title:"Payment processing"}),(0,u.jsx)(G7e,{title:"Expense tracking"}),(0,u.jsx)(G7e,{title:"Priority support"}),(0,u.jsx)(G7e,{title:"Dedicated account manager"})]}),(0,u.jsx)(Wo,{sx:{mt:5},href:"https://calendly.com/connectwithspona/30min?month=2024-01",children:"try for free"})]})},ret=function(){return(0,u.jsxs)(nn.Z,{gap:.5,alignItems:"center",width:"100%",children:[(0,u.jsx)(rn.Z,{variant:"publicHeading4",color:"primaryLight.500",sx:{mb:1},children:"Premium"}),(0,u.jsxs)(rn.Z,{variant:"publicBody1",color:"primaryDark.900",display:"flex",justifyContent:"center",alignItems:"center",align:"center",gap:1,children:["$799.99",(0,u.jsx)(rn.Z,{component:"span",variant:"publicBody5Light",color:"primaryDark.900",children:"monthly"})]}),(0,u.jsxs)(rn.Z,{variant:"publicBody5Light",color:"primaryDark.900",display:"flex",justifyContent:"center",alignItems:"center",align:"center",gap:1,children:["or",(0,u.jsx)(rn.Z,{component:"span",variant:"publicBody5Light",color:"primaryDark.900",sx:{fontFamily:"Gellix-SemiBold",fontWeight:700},children:"$679.99 per month"}),"annually"]}),(0,u.jsx)(rn.Z,{variant:"publicBody3",color:"primaryDark.900",my:2,children:"Try for free for 30 days"}),(0,u.jsxs)(nn.Z,{gap:2,width:"83%",children:[(0,u.jsx)(G7e,{title:"Management of up to 8+ projects",sxTitle:{fontFamily:"Gellix-Bold"}}),(0,u.jsx)(G7e,{title:"Built-in chat & video calls"}),(0,u.jsx)(G7e,{title:"Company calendar"}),(0,u.jsx)(G7e,{title:"Notifications"}),(0,u.jsx)(G7e,{title:"Ready-to-use contracts"}),(0,u.jsx)(G7e,{title:"Milestone & task management"}),(0,u.jsx)(G7e,{title:"Payment processing"}),(0,u.jsx)(G7e,{title:"Expense tracking"}),(0,u.jsx)(G7e,{title:"Priority support"}),(0,u.jsx)(G7e,{title:"Dedicated account manager"})]}),(0,u.jsx)(Wo,{sx:{mt:5},href:"https://calendly.com/connectwithspona/30min?month=2024-01",children:"try for free"})]})},oet=function(){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(nn.Z,{sx:(0,l.Z)({},ar),alignItems:"center",children:[(0,u.jsxs)(nn.Z,{direction:{lg:"row"},alignItems:"center",width:"100%",minHeight:"100%",maxWidth:"1310px",my:8,gap:{xs:5,lg:0},children:[(0,u.jsx)(z7e,{purple:!0,sx:{mr:{lg:"-32px"},width:{xs:"100%",lg:"50%"},maxWidth:"500px"},children:(0,u.jsx)(tet,{})}),(0,u.jsx)(z7e,{sx:{width:{xs:"100%",lg:"50%"},maxWidth:"500px",zIndex:4},children:(0,u.jsx)(net,{})}),(0,u.jsx)(z7e,{purple:!0,sx:{ml:{lg:"-32px"},width:{xs:"100%",lg:"50%"},maxWidth:"500px"},children:(0,u.jsx)(ret,{})})]}),(0,u.jsx)(R7e,{}),(0,u.jsx)(B7e,{})]}),(0,u.jsx)(_7e,{type:"manage"})]})},iet=function(){return(0,u.jsx)(P7e,{children:(0,u.jsx)(oet,{})})},aet=n(17948),set=function(){var e=Bn(ir.breakpoints.down("lg"));return(0,u.jsxs)(nn.Z,{spacing:12.5,direction:e?"column":"row",justifyContent:"space-between",alignItems:"flext-start",sx:(0,l.Z)((0,l.Z)({},ar),{},{marginTop:"".concat(207,"px"),marginBottom:{xs:"10rem"},overflow:"hidden"}),children:[(0,u.jsxs)(nn.Z,{spacing:3,justifyContent:"flex-start",children:[(0,u.jsx)(rn.Z,{variant:"publicBody3Regular",color:"primaryLight.500",children:"Free Download"}),(0,u.jsxs)(rn.Z,{variant:"publicHeading3",children:["Embracing AI:",(0,u.jsx)("br",{}),"A New Era in User Experience and Growth"]}),(0,u.jsx)(rn.Z,{variant:"publicBody2Regular",children:"In this e-book, you'll learn why AI is the next big revolution and how it offers an unprecedented opportunity to lead in innovation and efficiency."}),(0,u.jsx)(nn.Z,{direction:"row",justifyContent:{xs:"center",lg:"flex-start"},children:(0,u.jsx)(Wo,{variant:"primary",sx:{py:{xs:"1.125rem"},width:"fit-content",marginTop:{xs:"1.625rem",lg:0,gr:"1.265rem"}},href:"https://tdc-production.ams3.cdn.digitaloceanspaces.com/_public/ebooks/embracing_aii.pdf",children:"Download for free"})})]}),(0,u.jsx)(nn.Z,{alignItems:"center",spacing:3,justifyContent:"space-around",children:(0,u.jsx)(tn,{component:"img",src:aet,alt:"Embrasing AI e-book cover",sx:{maxWidth:"559px",maxHeight:"505px",borderRadius:"12px"}})})]})},cet=n(37065),uet=function(){return(0,u.jsxs)(nn.Z,{spacing:12.5,direction:"column",alignItems:"center",sx:{marginTop:"".concat(157,"px"),marginBottom:{xs:"10rem"},overflow:"hidden",mx:"auto",maxWidth:"1440px",width:"100%",px:{xs:"16px",md:"32px",gr:"80px"}},children:[(0,u.jsxs)(nn.Z,{direction:"column",justifyContent:"center",alignItems:"center",sx:{px:"138px"},gap:0,children:[(0,u.jsx)(rn.Z,{variant:"publicBody3Regular",color:"primaryLight.500",sx:{mb:1},children:"Free Download"}),(0,u.jsx)(rn.Z,{variant:"publicHeading2",textAlign:"center",sx:{mb:3,fontSize:{xs:"3rem",sm:"4rem"}},children:"Maximize your business growth by mastering outsourcing!"}),(0,u.jsx)(rn.Z,{variant:"publicBody2Regular",textAlign:"center",sx:{mb:5},children:"Unlock the full potential of your business by leveraging the power of outsourcing! In today\u2019s fast-paced world, outsourcing is not just a cost-saving measure; it\u2019s a strategic move that can help you scale efficiently, access top talent, and focus on your core business activities."}),(0,u.jsx)(Wo,{variant:"primary",sx:{py:{xs:"1.125rem"},width:"fit-content"},href:"https://tdc-production.ams3.cdn.digitaloceanspaces.com/_public/ebooks/spona_b2b_infographic.pdf",children:"Download for free"})]}),(0,u.jsxs)(nn.Z,{direction:{xs:"column",bg:"row"},alignItems:"center",spacing:10,justifyContent:"space-between",sx:{width:"100%"},overflow:"hidden",children:[(0,u.jsx)(tn,{component:"img",src:cet,alt:"Embrasing AI e-book cover",sx:{maxWidth:{xs:"471px",sm:"628px"},maxHeight:{xs:"425px",sm:"566px"},borderRadius:"12px"}}),(0,u.jsxs)(nn.Z,{direction:"column",gap:2,sx:{mt:{xs:"4rem",bg:0}},children:[(0,u.jsx)(rn.Z,{variant:"publicHeading4",sx:{mb:"1rem"},children:"You will find out:"}),(0,u.jsx)(G7e,{title:"The impact of outsourcing in international market"}),(0,u.jsx)(G7e,{title:"Global insights on marketing outsourcing across different countries"}),(0,u.jsx)(G7e,{title:"Top 3 marketing trends in 2024"})]})]})]})},det=function(e){var t,n=e.isLoading,r=null===(t=Xc().formState.errors)||void 0===t?void 0:t.projectName;return(0,u.jsxs)(nn.Z,{sx:{pl:"24px"},children:[(0,u.jsx)(jVe,{label:"* Project name",name:"projectName",placeholder:"YOUR PROJECT NAME",required:!0,inputProps:{maxLength:100},disabled:n}),r&&(0,u.jsx)(rn.Z,{color:"secondaryPink.500",variant:"body4",sx:{alignSelf:"start",display:"block",margin:"12px 0"},children:"This field is required"})]})},pet=function(e){var t=e.isLoading;return(0,u.jsxs)(nn.Z,{sx:{pl:"24px"},children:[(0,u.jsx)(rn.Z,{variant:"heading5",color:"primaryDark.500",children:"Project participant information"}),(0,u.jsx)(un,{sx:{mt:"0.75rem",mb:"1rem"}}),(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",gap:4.5,sx:{pr:"20px"},children:[(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Text,{}),name:"participantCompanyName",type:"text",placeholder:"Enter company name",label:"* Company name",required:!0,sx:{paddingBottom:"1.25rem",width:"50%"},disabled:t}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Text,{}),name:"participantCompanyUrl",type:"text",placeholder:"Enter URL",label:"Company url",sx:{paddingBottom:"1.25rem",width:"50%"},disabled:t})]})]})},fet=function(e){var t=e.isLoading;return(0,u.jsxs)(nn.Z,{sx:{pl:"24px"},children:[(0,u.jsx)(rn.Z,{variant:"heading5",fontSize:"65",color:"primaryDark.500",children:"Contact information"}),(0,u.jsx)(un,{sx:{mt:"0.75rem",mb:"1rem"}}),(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",gap:4.5,sx:{pr:"20px"},children:[(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Text,{}),name:"contactName",type:"text",placeholder:"Enter name",label:"Contact name",sx:{paddingBottom:"1.25rem",width:"50%"},disabled:t}),(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Text,{}),name:"contactEmail",type:"text",placeholder:"Enter e-mail",label:"Personal business email",sx:{paddingBottom:"1.25rem",width:"50%"},disabled:t})]})]})},het=function(e){var t=e.onSubmit,n=e.isLoading,r=Xc(),o=(0,ze.s0)();return(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"flex-end",sx:{pl:"24px",pr:"20px"},spacing:2,children:[(0,u.jsx)(Wo,{disabled:n,variant:"secondary",withBackArrow:!0,onClick:function(){return o("../")},children:"Back"}),(0,u.jsx)(Wo,{variant:"primary",onClick:r.handleSubmit((function(){return t(r.getValues())})),sx:{width:"fill-content"},endIcon:(0,u.jsx)(hTe,{}),loading:n,children:"Submit"},"submit")]})},met=function(e){var t=e.isLoading;return(0,u.jsx)(tn,{sx:{pl:"24px",pr:"20px"},children:(0,u.jsx)(f0,{input:(0,u.jsx)(f0.Text,{}),name:"projectDescription",type:"text",label:"Decription",required:!0,sx:{paddingBottom:"1.25rem",width:"100%"},multiline:!0,rows:5,disabled:t})})},vet={".MuiButton-startIcon":{border:"1px solid ".concat(tr.IV[300]),borderRadius:"50%",padding:"14px 12px"},margin:"0 0 40px 0",padding:"2px",justifyContent:"flex-start",color:tr.IV[500]},get={projectName:"",projectDescription:"",participantCompanyName:"",participantCompanyUrl:"",contactName:"",contactEmail:"",contactJobTite:"",contactPhone:""},yet=function(){var e=(0,o.useState)(!1),t=(0,Le.Z)(e,2),n=t[0],r=t[1],i=(0,ze.s0)(),a=fd({defaultValues:(0,l.Z)({},get)}),s=oa({resource:"project-requests"}),c=s.mutate,d=s.isLoading;return(0,u.jsxs)(Qc,(0,l.Z)((0,l.Z)({},a),{},{children:[(0,u.jsx)(Wo,{variant:"primaryText",sx:vet,startIcon:(0,u.jsx)(LR,{fill:tr.IV[500]}),onClick:function(){i("../")},disabled:d,children:"Cancel"}),(0,u.jsxs)(nn.Z,{direction:"column",spacing:3,sx:{position:"relative",left:"-24px",maxWidth:"980px"},children:[(0,u.jsx)(det,{isLoading:d}),(0,u.jsx)(pet,{isLoading:d}),(0,u.jsx)(un,{}),(0,u.jsx)(met,{isLoading:d}),(0,u.jsx)(un,{}),(0,u.jsx)(fet,{isLoading:d}),(0,u.jsx)(het,{onSubmit:function(e){c((0,l.Z)({},e),{onSuccess:function(){r(!0)},onError:function(){console.log("error")}})},isLoading:d})]}),(0,u.jsx)(y4,{width:"600px",isModalOpen:n,setIsModalOpen:r,title:"Project setup Confirmation",message:(0,u.jsxs)(rn.Z,{color:"primaryDark.500",lineHeight:"21px",children:["Your first step in creating a new project has been successfully completed. ",(0,u.jsx)("br",{}),(0,u.jsx)("br",{}),"Once the E2E project is created, you will be notified on your dashboard. ",(0,u.jsx)("br",{}),(0,u.jsx)("br",{}),"The project status will be marked as 'pending,' and you will then be able to sign the digital contract to begin the project."]}),confirmButtonText:"Close",onConfirm:function(){r(!1),i("../")},iconProps:{icon:(0,u.jsx)(j0,{fill:tr.dx[700],style:{width:24,height:24}}),wrapperBackgroundColor:tr.dx[100]},showCancelButton:!1})]}))},bet=["resourceLimit","chipFilters"],xet=function(e){return e.row.company.roles.includes(Kt.ks.Buyer)?"Buyer":"Seller"},wet=function(){var e=(0,ze.s0)(),t=[{field:"projectName",headerName:"Project name",editable:!1,flex:.3},{field:"company",headerName:"Company requested",editable:!1,flex:.2,renderCell:function(e){return(0,u.jsx)(rn.Z,{sx:{fontSize:"0.875rem",fontWeight:600},children:e.value.name})}},{field:"companyRole",headerName:"Company type",editable:!1,flex:.2,valueGetter:xet},{field:"created",headerName:"Requested",editable:!1,flex:.2,renderCell:function(e){return(0,u.jsx)(rn.Z,{sx:{fontSize:"0.875rem"},children:(0,rs.qJ)(e.value,"-")})}},{field:"status",headerName:"Status",flex:.2,renderCell:function(e){var t=e.value;return t===Kt.xS.Requested&&null!==e.row.project&&(t=Kt.xS.ProjectCreated),(0,u.jsx)(EI,{text:t})}}],n=ake({resourceUrl:"project-requests",withTabs:!0,chipFilterQueryParams:[{title:"All"}]}),r=n.resourceLimit,o=n.chipFilters,i=Nn(n,bet);return(0,u.jsx)(kZe,(0,l.Z)({numberOfRowsPerPage:r,columns:t,onRowClick:function(t){return e("./".concat(t.row.id))},withElements:{withTitle:"Project requests (E2E)"},chipFilters:o,sx:{"& .MuiDataGrid-cell":{overflowX:"auto"}}},i))},Cet=function(e){var t,n=e.data;return(0,u.jsxs)(nn.Z,{gap:4,sx:{backgroundColor:"primaryDark.200",p:"1.5rem"},children:[(0,u.jsxs)(tn,{children:[(0,u.jsx)(Cd,{text:"project name",sx:{fontSize:"12px !important"}}),(0,u.jsx)(rn.Z,{fontSize:"1.75rem",children:null===n||void 0===n?void 0:n.projectName})]}),(0,u.jsxs)(tn,{children:[(0,u.jsx)(Cd,{text:"Project participant information",sx:{fontSize:"12px !important"}}),(0,u.jsx)(un,{sx:{mt:"0.5rem",mb:"1rem"}}),(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",gap:4.5,sx:{pr:"20px"},children:[(0,u.jsxs)(nn.Z,{sx:{width:"50%"},children:[(0,u.jsx)(Cd,{text:"Company name",sx:{fontSize:"12px !important"}}),(0,u.jsx)(rn.Z,{children:null===n||void 0===n?void 0:n.participantCompanyName})]}),(0,u.jsxs)(nn.Z,{sx:{width:"50%"},children:[(0,u.jsx)(Cd,{text:"Company url",sx:{fontSize:"12px !important"}}),(0,u.jsx)(rn.Z,{children:null===n||void 0===n?void 0:n.participantCompanyUrl})]})]})]}),(0,u.jsxs)(tn,{children:[(0,u.jsx)(Cd,{text:"Description",sx:{fontSize:"12px !important"}}),(0,u.jsx)(un,{sx:{mt:"0.5rem",mb:"1rem"}}),(0,u.jsx)(rn.Z,{children:(t=null===n||void 0===n?void 0:n.projectDescription,(new DOMParser).parseFromString(t,"text/html").body.textContent||"")})]}),(0,u.jsxs)(tn,{children:[(0,u.jsx)(Cd,{text:"Contact information",sx:{fontSize:"12px !important"}}),(0,u.jsx)(un,{sx:{mt:"0.5rem",mb:"1rem"}}),(0,u.jsxs)(nn.Z,{direction:"row",justifyContent:"space-between",gap:4.5,sx:{pr:"20px"},children:[(0,u.jsxs)(nn.Z,{sx:{width:"50%"},children:[(0,u.jsx)(Cd,{text:"Contact name",sx:{fontSize:"12px !important"}}),(0,u.jsx)(rn.Z,{children:null===n||void 0===n?void 0:n.contactName})]}),(0,u.jsxs)(nn.Z,{sx:{width:"50%"},children:[(0,u.jsx)(Cd,{text:"Email",sx:{fontSize:"12px !important"}}),(0,u.jsx)(rn.Z,{children:null===n||void 0===n?void 0:n.contactEmail})]})]})]})]})},jet=function(e){var t,n=e.projectRequestData,r=(0,ze.s0)(),o=null===n||void 0===n||null===(t=n.company)||void 0===t?void 0:t.roles.includes(Kt.ks.Buyer),i=fd({defaultValues:{name:n.projectName,description:n.projectDescription,buyer:"",seller:""}}),a=hi({resource:"/companies?role=seller_tool&role=seller_service&status=approved",enabled:!!n&&o}).data,s=hi({resource:"/companies?role=buyer&status=approved",enabled:!!n&&!o}).data,c=(0,As.Z)({resource:"project-requests"}),d=c.mutate,p=c.isLoading,f=i.handleSubmit;return(0,u.jsx)(Qc,(0,l.Z)((0,l.Z)({},i),{},{children:(0,u.jsx)("form",{onSubmit:f((function(e){var t={participantCompany:o?i.getValues("seller"):i.getValues("buyer"),name:i.getValues("name"),description:i.getValues("description")};d({id:n.id,data:t,suffix:"create-project"},{onSuccess:function(e){r("../projects/".concat((null===e||void 0===e?void 0:e.data).id))}})})),children:(0,u.jsxs)(nn.Z,{spacing:1,sx:{mt:"3rem"},children:[(0,u.jsxs)(nn.Z,{spacing:3,children:[(0,u.jsxs)(nn.Z,{spacing:1,children:[(0,u.jsxs)(tn,{sx:{mb:0},children:[(0,u.jsx)(rn.Z,{variant:"body1",sx:{fontWeight:"bold"},children:"Title"}),(0,u.jsx)(rn.Z,{variant:"caption",children:"The title should include the necessery keywords and be between 4-9 words long."})]}),(0,u.jsx)(Zd,{name:"name",placeholder:"Title",required:!0})]}),(0,u.jsxs)(nn.Z,{spacing:1,children:[(0,u.jsx)(tn,{sx:{mb:0},children:(0,u.jsx)(Cd,{text:"Buyer:",sx:{fontSize:"14px !important",mb:0}})}),!o&&(0,u.jsx)(Hke,{displayLabel:!1,name:"buyer",choices:null===s||void 0===s?void 0:s.data.results,displayName:"name",displayValue:"id",required:!0}),o&&(0,u.jsx)(rn.Z,{variant:"body1",children:n.company.name})]}),(0,u.jsxs)(nn.Z,{spacing:1,children:[(0,u.jsx)(tn,{sx:{mb:0},children:(0,u.jsx)(Cd,{text:"Seller:",sx:{fontSize:"14px !important",mb:0}})}),o&&(0,u.jsx)(Hke,{displayLabel:!1,name:"seller",choices:null===a||void 0===a?void 0:a.data.results,displayName:"name",displayValue:"id",required:!0}),!o&&(0,u.jsx)(rn.Z,{variant:"body1",children:n.company.name})]}),(0,u.jsxs)(nn.Z,{spacing:1,children:[(0,u.jsx)(tn,{sx:{mb:0},children:(0,u.jsx)(rn.Z,{variant:"body1",sx:{fontWeight:"bold"},children:"Description"})}),(0,u.jsx)(Zd,{name:"description",multiline:!0,minRows:4,required:!0})]})]}),(0,u.jsx)(un,{sx:{pt:5}}),(0,u.jsx)(Pme,{onButtonClick:function(){return null},sx:{alignSelf:"end"},variant:"contained",size:"medium",fontWeight:"bold",minWidth:102,type:"submit",loading:p,children:"Create project"})]})})}))},ket=function(){var e=(0,ze.s0)(),t=(0,ze.UO)(),n=(null===t||void 0===t?void 0:t.projectRequestId)||"",r=Ra({id:n,resource:"project-requests",enabled:!!n}).data,o=null!==(null===r||void 0===r?void 0:r.project);return(0,u.jsxs)(nn.Z,{sx:{padding:"1.5rem 1.5rem 0 1.5rem",borderRadius:"8px",border:"1px solid",borderColor:tr.E4[50],minHeight:"100%",alignItems:"stretch"},divider:(0,u.jsx)(un,{orientation:"horizontal"}),children:[(0,u.jsx)(nn.Z,{sx:{height:"61px"},direction:"row",justifyContent:"space-between",children:(0,u.jsx)(rn.Z,{variant:"headline3",sx:{marginTop:"6px"},color:"#384572",children:"Project request"})}),(0,u.jsx)(nn.Z,{direction:"row",justifyContent:"flex-start",divider:(0,u.jsx)(un,{orientation:"vertical",flexItem:!0}),children:(0,u.jsx)(tn,{sx:{width:"100%",padding:"1.5em 1.5em 1.5em 0",maxWidth:"1200px"},children:(0,u.jsxs)(nn.Z,{spacing:2,children:[r&&o&&(0,u.jsx)(Wo,{variant:"secondary",withNextArrow:!0,onClick:function(){return e("../projects/".concat(null===r||void 0===r?void 0:r.project))},sx:{width:"fit-content"},children:"Open project"}),(0,u.jsx)(Cet,{data:r}),r&&!o&&(0,u.jsx)(jet,{projectRequestData:r})]})})})]})},Zet=function(e){var t=e.accessToken,n=e.agreementDate,r=e.isSponaAdmin;return[{element:(0,u.jsx)(sc,{}),children:[{path:"*",element:(0,u.jsx)(tCe,{})}]},{path:"login",element:t&&n?(0,u.jsx)(ze.Fg,{to:"/dashboard/end-to-end"}):(0,u.jsx)(i2e,{accountSection:(0,u.jsx)(P2e,{}),accountSectionWrapperSx:{height:{xs:"100%",lg:"auto"},justifyContent:"space-between"}}),children:[{index:!0,element:(0,u.jsx)(i2e,{accountSection:(0,u.jsx)(P2e,{}),checkForScreenWidth:!1,accountSectionWrapperSx:{height:{xs:"100%",lg:"70%"},pt:{xs:"40px",lg:0}}})}]},{path:"register",element:t?(0,u.jsx)(ze.Fg,{to:"/"}):(0,u.jsx)(i2e,{accountSection:(0,u.jsx)(M2e,{}),accountSectionWrapperSx:{height:{xs:"100%",lg:"70%"},pt:{xs:"40px",lg:0}}}),children:[{index:!0,element:(0,u.jsx)(i2e,{accountSection:(0,u.jsx)(M2e,{}),checkForScreenWidth:!1,accountSectionWrapperSx:{height:{xs:"100%",lg:"70%"},pt:{xs:"40px",lg:0}}})}]},{path:"confirm-account",element:t?(0,u.jsx)(ze.Fg,{to:"/"}):(0,u.jsx)(i2e,{leftSection:(0,u.jsx)(v6e,{}),accountSection:(0,u.jsx)(g6e,{}),accountSectionWrapperSx:{height:{xs:"100%",lg:"auto"},justifyContent:"space-between"}}),children:[{index:!0,element:(0,u.jsx)(i2e,{leftSection:(0,u.jsx)(v6e,{}),accountSection:(0,u.jsx)(g6e,{}),checkForScreenWidth:!1,accountSectionWrapperSx:{height:{xs:"100%"},pt:{xs:"40px"}}})}]},{path:"verify",element:t?(0,u.jsx)(ze.Fg,{to:"/"}):(0,u.jsx)(i2e,{accountSection:(0,u.jsx)(T2e,{}),accountSectionWrapperSx:{height:{lg:"70%"},pt:{lg:0}}}),children:[{index:!0,element:(0,u.jsx)(i2e,{accountSection:(0,u.jsx)(T2e,{}),checkForScreenWidth:!1,accountSectionWrapperSx:{height:{xs:"100%"},pt:{xs:"40px"}}})}]},{path:"activate",element:t?(0,u.jsx)(ze.Fg,{to:"/"}):(0,u.jsx)(i2e,{accountSection:(0,u.jsx)(I2e,{}),accountSectionWrapperSx:{height:{lg:"70%"},pt:{lg:0}}}),children:[{index:!0,element:(0,u.jsx)(i2e,{accountSection:(0,u.jsx)(I2e,{}),checkForScreenWidth:!1,accountSectionWrapperSx:{height:{xs:"100%"},pt:{xs:"40px"}}})}]},{path:"reset-password",element:t?(0,u.jsx)(ze.Fg,{to:"/"}):(0,u.jsx)(i2e,{accountSection:(0,u.jsx)(R2e,{}),leftSection:(0,u.jsx)(o2e,{}),accountSectionWrapperSx:{height:{lg:"70%"},pt:{lg:0}}}),children:[{index:!0,element:(0,u.jsx)(i2e,{accountSection:(0,u.jsx)(R2e,{}),leftSection:(0,u.jsx)(o2e,{}),checkForScreenWidth:!1,accountSectionWrapperSx:{height:{xs:"100%"},pt:{xs:"40px"}}})}]},{path:"/",element:(0,u.jsx)(sc,{}),children:[{index:!0,element:(0,u.jsx)(Qwe,{})},{path:"case-study-archive",element:(0,u.jsx)(A6e,{})},{path:"case-study-subarchive",element:(0,u.jsx)(q6e,{})},{path:"case-study/:caseStudyId",element:(0,u.jsx)(a9e,{})},{path:"blog/:blogSlug",element:(0,u.jsx)(y7e,{})},{path:"seller-archive",element:(0,u.jsx)(Z9e,{})},{path:"seller-subarchive",element:(0,u.jsx)(M9e,{})},{path:"blog-archive",element:(0,u.jsx)(S7e,{})},{path:"how-to-manage-seller",element:(0,u.jsx)(g1e,{}),children:[{index:!0,element:(0,u.jsx)(yGe,{})},{path:"digital-contracts",element:(0,u.jsx)(k1e,{})},{path:"payment-processing",element:(0,u.jsx)(O1e,{})},{path:"milestones-and-tasks",element:(0,u.jsx)(D1e,{})},{path:"communication",element:(0,u.jsx)(A1e,{})},{path:"monitor-your-kpis",element:(0,u.jsx)(T1e,{})},{path:"pricing",children:[{index:!0,element:(0,u.jsx)(iet,{})}]}]},{path:"how-to-manage-buyer",element:(0,u.jsx)(g1e,{}),children:[{index:!0,element:(0,u.jsx)(v1e,{})},{path:"digital-contracts",element:(0,u.jsx)(_1e,{})},{path:"payment-processing",element:(0,u.jsx)(H1e,{})},{path:"milestones-and-tasks",element:(0,u.jsx)(V1e,{})},{path:"communication",element:(0,u.jsx)(q1e,{})},{path:"monitor-your-kpis",element:(0,u.jsx)(Y1e,{})},{path:"pricing",children:[{index:!0,element:(0,u.jsx)(eet,{type:"manage"})}]},{path:"seller-archive",element:(0,u.jsx)(Z9e,{})},{path:"seller-subarchive",element:(0,u.jsx)(M9e,{})}]},{path:"how-to-hire",children:[{index:!0,element:(0,u.jsx)(dUe,{})},{path:"spona-connect",element:(0,u.jsx)(BUe,{})},{path:"timed-projects",element:(0,u.jsx)(bUe,{})},{path:"pricing",children:[{index:!0,element:(0,u.jsx)(eet,{type:"hire"})}]}]},{path:"/contact-us",element:(0,u.jsx)(DXe,{})},{path:"company/:companyId",element:(0,u.jsx)(r8e,{})},{path:"/how-to-find-work",element:(0,u.jsx)(NUe,{})},{path:"/about-us",element:(0,u.jsx)(CQe,{})},{path:"e-book",element:(0,u.jsx)(u8e,{}),children:[{path:"embracing-ai",element:(0,u.jsx)(set,{})},{path:"b2b-infographic",element:(0,u.jsx)(uet,{})}]},{path:"terms-of-service",element:(0,u.jsx)(n$e,{}),children:[{path:"privacy-policy",element:(0,u.jsx)($1e,{})},{path:"spona-digital-contract-terms",element:(0,u.jsx)($1e,{})},{path:"cookie-policy",element:(0,u.jsx)($1e,{})}]},{path:"/work-with-us",element:(0,u.jsx)(S0e,{})},{path:"/spona-media",element:(0,u.jsx)(B0e,{})},{path:"/case-study/:caseStudyId/submit-review",element:(0,u.jsx)(o1e,{})},{path:"/case-study-review-submit/:caseStudyId/:token/:contentId",element:(0,u.jsx)(a1e,{})},{path:"/case-study-review-submit-public/:caseStudyId/:token/:contentId",element:(0,u.jsx)(p1e,{})}]},{path:"dashboard",element:t?(0,u.jsx)(J0,{showSidebar:!1,bgColor:"#FFF"}):(0,u.jsx)(ze.Fg,{to:"/"}),children:[{path:"calendar",element:(0,u.jsx)(pVe,{})},{path:"notifications",element:(0,u.jsx)(qke,{})},{path:"calendar",element:(0,u.jsx)(pVe,{})},{path:"end-to-end",element:(0,u.jsx)(BSe,{}),children:[{path:"project-request",element:(0,u.jsx)(yet,{})},{path:"project/:projectId/contract",element:(0,u.jsx)(DDe,{sx:{width:"75%"}})},{path:"project/:projectId/contract/:contractId",element:(0,u.jsx)(DDe,{sx:{width:"75%"}})},{path:"contracts",element:(0,u.jsx)(FSe,{})},{path:"milestone/:milestoneId",element:(0,u.jsx)(U4,{})}]},{path:"timed-projects",children:[{path:"create",element:(0,u.jsx)(iUe,{})},{path:":projectId/edit",element:(0,u.jsx)(iUe,{})},{path:":projectId",element:(0,u.jsx)(yXe,{})}]},{path:"case-studies",children:[{index:!0,element:(0,u.jsx)(Mqe,{})},{path:"create",element:(0,u.jsx)(qGe,{})},{path:"edit/:caseStudyId",element:(0,u.jsx)(qGe,{})}]},{path:"pitches",children:[{path:"create",element:(0,u.jsx)(K0e,{type:"create"})}]}]},{path:"dashboard",element:t?(0,u.jsx)(J0,{showSidebar:!1,showChat:!1,padding:!1}):(0,u.jsx)(ze.Fg,{to:"/"}),children:[{path:"chat/:channelId",element:(0,u.jsx)(ZR,{})},{path:"chat",element:(0,u.jsx)(ZR,{})},{path:"create-company",element:(0,u.jsx)(H0,{})}]},{path:"dashboard",element:t?(0,u.jsx)(J0,{}):(0,u.jsx)(ze.Fg,{to:"/"}),children:[{index:!0,element:(0,u.jsx)(N4e,{})},{path:"achievements",element:(0,u.jsx)("p",{children:"Not implemented yet."})},{path:"chat/:channelId",element:(0,u.jsx)(ZR,{})},{path:"chat",element:(0,u.jsx)(ZR,{})},{path:"team",element:(0,u.jsx)(c8e,{})},{path:"end-to-end",element:(0,u.jsx)(BSe,{}),children:[{index:!0,element:(0,u.jsx)(jme,{})},{path:"project/:projectId",element:(0,u.jsx)(f5,{})},{path:"payments",element:(0,u.jsx)(Qke,{})},{path:"payments/:paymentId",element:(0,u.jsx)(iOe,{})},{path:"task/:taskId",element:(0,u.jsx)(Qme,{})},{path:"task/edit/:taskId",element:(0,u.jsx)(Hxe,{})}]},{path:"pitches",element:(0,u.jsx)(STe,{}),children:[{index:!0,element:(0,u.jsx)(jTe,{})},{path:"create",element:(0,u.jsx)(K0e,{type:"create"})},{path:":timedProjectPitchId/edit",element:(0,u.jsx)(K0e,{type:"edit"})}]},{path:"timed-projects",children:[{index:!0,element:(0,u.jsx)(bVe,{})}]}]},{path:"admin",element:r?(0,u.jsx)(NSe,{}):(0,u.jsx)(ze.Fg,{to:"/"}),children:[{index:!0,element:(0,u.jsx)(_Se,{})},{path:"blogs",children:[{index:!0,element:(0,u.jsx)(p8e,{})},{path:"create",element:(0,u.jsx)(X8e,{})},{path:":blogId/edit",element:(0,u.jsx)(X8e,{})},{path:":blogId/view",element:(0,u.jsx)($8e,{})}]},{path:"featured-blogs",element:(0,u.jsx)(E7e,{})},{path:"newsletter",children:[{index:!0,element:(0,u.jsx)(Z7e,{})}]},{path:"article",element:(0,u.jsx)(lc,{}),children:[{path:"create",element:(0,u.jsx)($je,{adminMode:!0})},{path:"edit/:articleId",element:(0,u.jsx)(eSe,{adminMode:!0})}]},{path:"case-study",children:[{index:!0,element:(0,u.jsx)(kQe,{})},{path:":caseStudyId",element:(0,u.jsx)(L0e,{})},{path:"create",element:(0,u.jsx)(s6e,{})},{path:"edit/:caseStudyId",element:(0,u.jsx)(s6e,{})}]},{path:"seller-archive",children:[{index:!0,element:(0,u.jsx)(K6e,{})},{path:":archiveId",element:(0,u.jsx)(G6e,{})}]},{path:"case-study-archive",children:[{index:!0,element:(0,u.jsx)(X6e,{})},{path:":archiveId",element:(0,u.jsx)(J6e,{})}]},{path:"footer/:footerType",children:[{index:!0,element:(0,u.jsx)(x6e,{})}]},{path:"pitching",children:[{index:!0,element:(0,u.jsx)(X0e,{})},{path:":pitchId",element:(0,u.jsx)(Q0e,{})},{path:"create",element:(0,u.jsx)(e6e,{type:"create"})},{path:":timedProjectPitchId/edit",element:(0,u.jsx)(e6e,{type:"edit"})}]},{path:"timed-projects",children:[{index:!0,element:(0,u.jsx)(DQe,{})},{path:":timedProjectId",element:(0,u.jsx)(bXe,{})},{path:"create-timed-project",element:(0,u.jsx)(m6e,{})},{path:"edit/:timedProjectId",element:(0,u.jsx)(m6e,{})}]},{path:"case-study-review",children:[{index:!0,element:(0,u.jsx)(e1e,{})},{path:":reviewId",element:(0,u.jsx)(t1e,{})}]},{path:"end-to-end",element:(0,u.jsx)(zSe,{}),children:[{path:"flagging",element:(0,u.jsx)(HSe,{})},{path:"payments",element:(0,u.jsx)(Lke,{})},{path:"create-project",element:(0,u.jsx)(Wke,{})},{path:"projects",element:(0,u.jsx)(iZe,{})},{path:"projects/:projectId",element:(0,u.jsx)(wZe,{})},{path:"projects/:projectId/contracts",element:(0,u.jsx)(dOe,{})},{path:"project-requests",element:(0,u.jsx)(wet,{})},{path:"project-requests/:projectRequestId",element:(0,u.jsx)(ket,{})}]},{path:"companies",element:(0,u.jsx)(zSe,{}),children:[{path:"sos",element:(0,u.jsx)(OZe,{companyType:Kt.ks.SellerService},Kt.ks.SellerService)},{path:"tos",element:(0,u.jsx)(OZe,{companyType:Kt.ks.SellerTool},Kt.ks.SellerTool)},{path:"buyer",element:(0,u.jsx)(OZe,{companyType:Kt.ks.Buyer},Kt.ks.Buyer)},{path:":companyId",element:(0,u.jsx)(RZe,{})},{path:":companyId/edit",element:(0,u.jsx)(tOe,{})},{path:"create-company",element:(0,u.jsx)(q4e,{})}]}]}]},Oet=function(){var e=(0,ze.TH)().pathname,t=!(e.includes("dashboard")||e.includes("admin"));return(0,o.useEffect)((function(){var e="Freshchat-js-sdk",n=localStorage.getItem("restoreId"),r=function(){var e=function(){var e=localStorage.getItem("userData");return e?JSON.parse(e):null}();window.fcWidget.on("user:created",(function(e){var t=e||{},n=t.status,r=t.data;200===n&&r.restoreId&&localStorage.setItem("restoreId",r.restoreId)})),window.fcWidget&&window.fcWidget.init({token:"539e3257-4d1f-4072-8033-b237731c824f",host:"https://topdigitalagency.freshchat.com",widgetUuid:"",externalId:null===e||void 0===e?void 0:e.email,firstName:null===e||void 0===e?void 0:e.firstName,lastName:null===e||void 0===e?void 0:e.lastName,email:null===e||void 0===e?void 0:e.email,restoreId:n||null})},o=function(){var t,n;null===(t=window.fcWidget)||void 0===t||null===(n=t.destroy)||void 0===n||n.call(t);var r=document.getElementById(e);r&&document.head.removeChild(r)};return t?function(){if(document.getElementById(e))r();else{var t=document.createElement("script");t.id=e,t.async=!0,t.src="https://topdigitalagency.freshchat.com/js/widget.js",t.onload=function(){r()},document.head.appendChild(t)}}():o(),function(){o()}}),[t]),null},Eet=new Yt.QueryClient;var Det=function(){var e,t=(0,ze.TH)().pathname,n=(0,ze.s0)(),r=(0,o.useState)(!1),i=(0,Le.Z)(r,2),a=i[0],s=i[1];(0,o.useEffect)((function(){window.scrollTo(0,0)}),[t]),(0,o.useEffect)((function(){window.history.scrollRestoration="manual"}),[t]);var l=localStorage.getItem("userData"),c=null===(e=JSON.parse(l))||void 0===e?void 0:e.agreementDate,d=localStorage.getItem("AccessToken"),p=JSON.parse(l),f=((null===p||void 0===p?void 0:p.roles)||[]).includes("admin"),h=(0,ze.V$)(Zet({accessToken:d,agreementDate:c,isSponaAdmin:f}));return(0,o.useEffect)((function(){d&&(pi.Z.defaults.headers.common.Authorization=d?"Bearer ".concat(d):"")}),[d]),(0,o.useEffect)((function(){(t.includes("dashboard")||t.includes("admin"))&&(c||n("/login"))}),[c,t]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Kwe,{description:"If you want to streamline your digital project collaboration, management, and financing within a single platform, see what Spona can do for you."}),(0,u.jsx)(eYe,{children:(0,u.jsxs)(Yt.QueryClientProvider,{client:Eet,children:[h,(0,u.jsx)(Oet,{}),(0,u.jsx)(XQe,{bannerOpen:a,setBannerOpen:s})]})})]})},Pet=function(e){e&&e instanceof Function&&n.e(651).then(n.bind(n,75651)).then((function(t){var n=t.getCLS,r=t.getFID,o=t.getFCP,i=t.getLCP,a=t.getTTFB;n(e),r(e),o(e),i(e),a(e)}))};g.render((0,u.jsx)(o.StrictMode,{children:(0,u.jsx)(v,{theme:ir,children:(0,u.jsx)(Ge,{children:(0,u.jsx)(Be,{maxSnack:5,children:(0,u.jsx)(Nt,{children:(0,u.jsx)(Det,{})})})})})}),document.getElementById("root")),Pet()}()}();
//# sourceMappingURL=main.fd27458e.js.map