PageSourceSearch

https://www.proof.xyz/_next/static/chunks/6071-71ebd0b9caf66eec.js

js proof.xyz collected 2026-10-03 22:55:51 UTC 41,887 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6071],{16681:function(e,t,o){"use strict";o.d(t,{Z:function(){return AspectRatioImgix_AspectRatioImgix}});var a=o(52322),n=o(1627),r=o(12524),i=o.n(r),l=o(68187),s=o(90273),AspectRatioImgix_AspectRatioImgix=e=>{let{available:t=!0,src:o,domain:r,x:u,y:c,className:d,imgixParams:p,...m}=e,h="moonbirds"===r,f=t&&h?Number(o.split("/").pop()):NaN;return(0,a.jsx)(n.AspectRatioContainer,{x:u,y:c,children:t?h?(0,a.jsx)("img",{src:"/api/moonbirds/".concat(f,"/image"),alt:"Moonbird #".concat(f),className:i()("absolute top-0 left-0 w-full h-full",d),style:{imageRendering:"pixelated"},...m}):(0,a.jsx)(l.ZP,{src:(0,s.wf)(o,r),className:i()("absolute top-0 left-0 w-full h-full",d),imgixParams:Object.assign({},{ar:"".concat(u,":").concat(c),fit:"crop",auto:"format"},p),...m}):(0,a.jsx)("div",{className:i()("absolute top-0 left-0 w-full h-full animate-pulse bg-light-ui-tertiary dark:bg-dark-ui-tertiary",d)})})}},12299:function(e,t,o){"use strict";o.d(t,{A:function(){return n},Z:function(){return Box_Box}}),(a=n||(n={})).DEFAULT="default",a.COZY="cozy",a.COMPACT="compact";var a,n,r=o(52322),i=o(79130),l=o.n(i),s=o(92869),u=o.n(s);let c=l().bind({...u()});var Box_Box=e=>{let{children:t,className:o,density:a=n.DEFAULT}=e,i=c("Box","Box--density-".concat(a),o);return(0,r.jsx)("div",{className:i,children:t})}},51718:function(e,t,o){"use strict";o.d(t,{Z:function(){return a.Z}});var a=o(78754)},91757:function(e,t,o){"use strict";var a=o(52322),n=o(1627);t.Z=()=>(0,a.jsx)("div",{className:"flex items-center justify-center relative w-48 h-48 mx-auto my-10",children:(0,a.jsx)(n.Spinner,{size:"xl",children:(0,a.jsx)("img",{src:"/images/illustrations/toolbox.gif",className:"w-24 h-24",alt:"toolbox"})})})},72377:function(e,t,o){"use strict";o.d(t,{Z:function(){return MetaTags}});var a=o(52322),n=o(92642),r=o(97729),i=o.n(r);function MetaTags(e){var t,o,r;let l=e.title,s=e.description;l||n.Tb(Error("MetaTags: title is undefined"));let u=null!==(t=e.ogTitle)&&void 0!==t?t:l,c=null!==(o=e.ogDescription)&&void 0!==o?o:s,d=e.ogImage,p=null!==(r=e.twitterCard)&&void 0!==r?r:"summary_large_image";return(0,a.jsxs)(i(),{children:[(0,a.jsx)("title",{children:l}),s&&(0,a.jsx)("meta",{name:"description",content:s}),u&&(0,a.jsx)("meta",{property:"og:title",content:u}),c&&(0,a.jsx)("meta",{name:"og:description",content:c}),d&&(0,a.jsx)("meta",{property:"og:image",content:d.toString()}),d&&(0,a.jsx)("meta",{property:"twitter:card",content:p})]})}},37312:function(e,t,o){"use strict";o.d(t,{Z:function(){return DaoSubmissionForm}});var a=o(52322),n=o(1627),r=o(92642),i=o(12524),l=o.n(i),s=o(2784),u=o(12299),c=o(91757),d=o(63355),p=o(41599),m=o(6087),h=o(43858);let useToast=()=>{let{mode:e}=(0,h.vs)();return{toast:function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,m.A)(t,{theme:"dark"===e?"dark":"light",...o})}}};var f=o(4435),x=o(82925),g=o(27319),y=o.n(g),_=o(98060),v=o.n(_),b=o(16681),j=o(39620),w=o(75531),T=o.n(w);function MediaAttachment(e){let t,{url:o,onRemove:r}=e,i=/\.mp4$/i.test(o);return(t=i?o:(0,f.w7)(o))?(0,a.jsxs)("div",{className:T().mediaAttachment,children:[(0,a.jsx)("button",{className:T().closeButton,onClick:()=>r(),children:(0,a.jsx)(j.Z,{})}),i?(0,a.jsx)(n.AspectRatioContainer,{x:16,y:9,className:T().videoContainer,children:(0,a.jsx)("video",{playsInline:!0,controls:!0,children:(0,a.jsx)("source",{src:t,type:"video/mp4"})})}):(0,a.jsx)(b.Z,{domain:"lunar-society",imgixParams:{crop:t.endsWith("pdf")?"top":"center"},src:t,x:16,y:9,className:T().imageContainer,width:176})]}):null}var F=o(62350),C=o(95231),S=o.n(C);let generateUploadUrl=async(e,t)=>{let o=await fetch("/api/dao/upload",{method:"POST",body:JSON.stringify({fileName:e,contentType:t}),credentials:"include",headers:{"Content-Type":"application/json"}});if(o.ok)return await o.json();throw Error("Unable to generate upload URL")},uploadFiles=async e=>{let{files:t,allowedFileTypes:o,onUploadProgress:a}=e,n=[],r=Array.from(t);if(r.some(e=>e.size>1e9))throw Error("File is greater than the max allowed filesize of 1GB.");
1r.forEach(e=>validateFileType(o,e.name));let i=0,l=Array.from(t).reduce((e,t)=>e+t.size,0);for(let e=0;e<t.length;e++){let o=t[e];if(!o)continue;let{url:r,path:s}=await generateUploadUrl(o.name,o.type);await new Promise((e,t)=>{let n=new XMLHttpRequest;n.upload.addEventListener("progress",e=>{let t=(i+e.loaded)/l;a(t),e.loaded===o.size&&(i+=o.size)}),n.open("PUT",r),n.onreadystatechange=()=>{if(n.readyState===XMLHttpRequest.DONE){let o=n.status;0===o||o>=200&&o<400?e():t()}},n.timeout=3e5,n.setRequestHeader("content-type",o.type),n.send(o)}),n.push("https://proof-lunar-society.s3.us-west-2.amazonaws.com/".concat(s))}return n},validateFileCount=e=>t=>{let{files:o}=t;if(o.length+((null==e?void 0:e.length)||0)>f.ru)throw Error("Cannot upload more than ".concat(f.ru," files to this field."))},validateFileType=(e,t)=>{let o=RegExp("(".concat(e.join("|"),")$"),"i");if(!o.test(t))throw Error("".concat(t," is not an allowed file type. Allowed formats are: ").concat(e.join(", "),"."))};function MediaAttachmentUpload(e){let{allowedFileTypes:t,multiple:o,onUploadRequested:r,onFilesUploaded:i}=e,[l,u]=(0,s.useState)(""),[c,d]=(0,s.useState)(0),{mutate:p,isLoading:m,isError:h,error:x}=(0,F.D)(uploadFiles,{onMutate:r});return(0,a.jsxs)("div",{className:S().mediaAttachment,children:[h?(0,a.jsx)("div",{className:"mb-4",children:(0,a.jsx)(n.Callout,{type:"error",children:x instanceof Error?x.message:(0,a.jsxs)(a.Fragment,{children:["There was an error uploading your file",o?"s":"",". Are you sure it's an accepted file format? Allowed formats are:"," ",t.join(", "),"."," ",o?"There is also a max of ".concat(f.ru," files for this field."):null]})})}):null,(0,a.jsx)("div",{className:"flex",children:(0,a.jsx)("input",{type:"file",multiple:o,value:l,onChange:e=>{let o=e.target.files;o&&(u(e.target.value),p({files:o,onUploadProgress:d,allowedFileTypes:t},{onSuccess:e=>{u(""),i(e)}}))},disabled:m})}),(0,a.jsx)("div",{className:S().progressContainer,children:(0,a.jsx)("div",{className:S().progressBar,style:{width:"".concat(100*c,"%")}})})]})}let StepNavigation=e=>{let{prevStep:t,disabled:o}=e;return(0,a.jsxs)("div",{className:"flex gap-4",children:[t&&(0,a.jsx)(n.Button,{color:n.C
1olor.neutral,size:"lg",style:n.ButtonStyle.secondary,onClick:t,children:"Previous step"}),(0,a.jsx)(n.Button,{type:"submit",color:n.Color.neutral,size:"lg",disabled:o,children:"Next step"})]})},StepWrapper=e=>{let{step:t,title:o,children:r}=e;return(0,a.jsxs)("div",{children:[(0,a.jsxs)("h4",{className:l()(n.Caps.md,"text-content-secondary mb-2"),children:[t," of ",D.length]}),(0,a.jsx)("h3",{className:l()(n.Heading.md,"mb-6"),children:o}),(0,a.jsx)("div",{className:"flex flex-col gap-6",children:r})]})};var M=o(59970);let D=[{title:"Your information",component:e=>{var t,o;let{proposal:r,setProposal:i,updateProposal:l}=e,[u,c]=(0,s.useState)(!0),{viewer:d}=(0,M.jY)();return(0,s.useEffect)(()=>{if(!d||!u)return;let e=!1,t={...r};d.profile.displayName&&!r.authorName&&(t.authorName=d.profile.displayName,e=!0),d.profile.email&&!r.authorEmail&&(t.authorEmail=d.profile.email,e=!0),e&&i(t),c(!1)},[d,r,i,u]),(0,a.jsxs)(StepWrapper,{title:"Your information",step:1,children:[(0,a.jsx)(n.InputGroup,{inputRequired:!0,label:"Name",helperText:"Give us a name you'd like us to use for our correspondence with you about your proposal. This won't be displayed publicly. Your PROOF profile display name is what will be displayed on your proposal.",charLimit:{length:null===(t=r.authorName)||void 0===t?void 0:t.length,maxLength:75},children:(0,a.jsx)(n.TextInput,{className:"w-full",value:r.authorName||"",onChange:e=>l("authorName",e),maxLength:75,required:!0})}),(0,a.jsx)(n.InputGroup,{inputRequired:!0,label:"Email",helperText:"Give us an email address we can use to communicate with you in the event of any questions about your proposal. This won't be displayed publicly.",charLimit:{length:null===(o=r.authorEmail)||void 0===o?void 0:o.length,maxLength:75},children:(0,a.jsx)(n.TextInput,{type:"email",className:"w-full",value:r.authorEmail||"",onChange:e=>l("authorEmail",e),maxLength:75,required:!0})}),(0,a.jsx)(StepNavigation,{})]})}},{title:"Key details",component:e=>{var t,o,r,i,l,s,u;let{proposal:c,updateProposal:d,prevStep:p}=e,m=c.proposalThumbnail&&c.featureMedia&&!!(null===(t=c.missions)||void 0===t?void 0:t.length)&&!!(null===(o=c.projectType)||void 0===o?void 0:o.length),updateMultiSelect=(e,t,o)=>{let a=c[e],n=new Set(a);o?n.add(t):n.delete(t),d(e,Array.from(n))};return(0,a.jsxs)(StepWrapper,{title:"Key details",step:2,children:[(0,a.jsx)(n.InputGroup,{inputRequired:!0,label:"Project title",charLimit:{length:null===(r=c.title)||void 0===r?void 0:r.length,maxLength:100},children:(0,a.jsx)(n.TextInput,{className:"w-full",value:c.title||"",onChange:e=>d("title",e),maxLength:100,required:!0})}),(0,a.jsxs)(n.InputGroup,{inputRequired:!0,label:"Proposal thumbnail",helperText:"This image will be used when this proposal is listed with other proposals as well as when the proposal is shared in any social media posts. Formats: JPG, PNG. Suggested dimensions: 16:9.",children:[(0,a.jsx)(MediaAttachmentUpload,{allowedFileTypes:f.Ix,onFilesUploaded:e=>{d("proposalThumbnail",e[0])}}),c.proposalThumbnail?(0,a.jsx)("div",{className:"grid grid-cols-3 gap-2 my-4",children:(0,a.jsx)(MediaAttachment,{url:c.proposalThumbnail,onRemove:()=>{d("proposalThumbnail",void 0)}})}):null]}),(0,a.jsx)(n.InputGroup,{inputRequired:!0,label:"Proposal summary",helperText:"Two or three sentences that summarize the proposal",charLimit:{length:null===(i=c.proposalSummary)||void 0===i?void 0:i.plainText.length,maxLength:400},children:(0,a.jsx)(n.TextArea,{className:"w-full",value:(null===(l=c.proposalSummary)||void 0===l?void 0:l.plainText)||"",onChange:e=>d("proposalSummary",{plainText:e}),maxLength:400,required:!0})}),(0,a.jsx)(n.InputGroup,{label:"Funding requested",helperText:"In ETH or USDC. As a reminder, we recommend under $50k USD equivalent. If your project has grander ambitions, break it up into smaller sub-proposals. If you don't need funds and only seek the support of and affiliation with the community, leave blank.",charLimit:{length:null===(s=c.fundingAmount)||void 0===s?void 0:s.plainText.length,maxLength:100},children:(0,a.jsx)(n.TextInput,{className:"w-full",value:(null===(u=c.fundingAmount)||void 0===u?void 0:u.plainText)||"",onChange:e=>d("fundingAmount",{plainText:e}),maxLength:100})}),(0,a.jsx)(n.InputGroup,{helperText:"After your proposal is passed by the community, this will require a round of discussions with our lawyers to establish the exact terms for this usage.",children:(0,a.jsx)(n.Checkbox,{label:"Do you want permission to use the Moonbirds name and/or logo?",value:c.requestTrademark||!1,onChange:e=>d("requestTrademark",e)})}),(0,a.jsx)(n.InputGroup,{inputRequired:!0,label:"Mission alignment",helperText:"Select one or more objectives which the proposal best aligns with.",children:(0,a.jsx)("div",{className:"mt-2",children:f.Ms.map(e=>{var t;return(0,a.jsx)(n.Checkbox,{label:e,value:(null===(t=c.missions)||void 0===t?void 0:t.includes(e))||!1,onChange:t=>{updateMultiSelect("missions",e,t)}},e)})})}),(0,a.jsx)(n.InputGroup,{label:"Project type",inputRequired:!0,helperText:"Select all that apply.",children:(0,a.jsx)("div",{className:"mt-2",children:f.c4.map(e=>{var t;return(0,a.jsx)("div",{children:(0,a.jsx)(n.Checkbox,{label:e,value:(null===(t=c.projectType)||void 0===t?void 0:t.includes(e))||!1,onChange:t=>{updateMultiSelect("projectType",e,t)}})},e)})})}),(0,a.jsxs)(n.InputGroup,{inputRequired:!0,label:"Feature image or video",helperText:"Media that will be included in the summary view of your proposal. This will be displayed at the very top of your entry, so it’s worth taking a little time to create a good one! If you decide to do a mini video, we recommend keeping it to 30 seconds max—think of this as a trailer, not the full pitch. Suggested dimensions: 16:9. Max file size: 1GB.",children:[(0,a.jsx)(MediaAttachmentUpload,{allowedFileTypes:f.Dp,onFilesUploaded:e=>{d("featureMedia",e[0])}}),c.featureMedia?(0,a.jsx)("div",{className:"grid grid-cols-3 gap-2 my-4",children:(0,a.jsx)(MediaAttachment,{url:c.featureMedia,onRemove:()=>{d("featureMedia",void 0)}})}):null]}),(0,a.jsx)(StepNavigation,{prevStep:p,disabled:!m})]})}},{title:"About the project",component:e=>{var t,o,r,i,l,s,u;let{proposal:c,updateProposal:d,prevStep:p}=e;return(0,a.jsxs)(StepWrapper,{title:"About the project",step:3,children:[(0,a.jsx)(n.InputGroup,{inputRequired:!0,label:"What is it?",helperText:"A fuller explanation of what you're proposing to build or arrange for the community. You can include links where appropriate.",charLimit:{length:null===(t=c.proposalBody)||void 0===t?void 0:t.plainText.length,maxLength:2e3},children:(0,a.jsx)(n.TextArea,{className:v().proposalBody,value:(null===(o=c.proposalBody)||void 0===o?void 0:o.plainText)||"",onChange:e=>d("proposalBody",{plainText:e}),maxLength:2e3,required:!0})}),(0,a.jsxs)(n.InputGroup,{label:"Project media",helperText:"There will be a space in your proposal page for up to six items of media.",children:[(0,a.jsx)(MediaAttachmentUpload,{multiple:!0,allowedFileTypes:f.Dp,onUploadRequested:validateFileCount(c.projectMedia),onFilesUploaded:e=>{let t=c.projectMedia||[];d("projectMedia",[...t,...e])}}),(null===(r=c.projectMedia)||void 0===r?void 0:r.length)?(0,a.jsx)("div",{className:"grid grid-cols-3 gap-2",children:c.projectMedia.map(e=>(0,a.jsx)(MediaAttachment,{url:e,onRemove:()=>{d("projectMedia",(c.projectMedia||[]).filter(t=>t!==e))}},e))}):null]}),(0,a.jsx)(n.InputGroup,{inputRequired:!0,label:"How does it benef
1it the Moonbirds and Mythics holder community?",helperText:"A space for you to explain a bit more fully how your idea will bring value to the community.",charLimit:{length:null===(i=c.communityBenefit)||void 0===i?void 0:i.plainText.length,maxLength:500},children:(0,a.jsx)(n.TextArea,{className:"w-full",value:(null===(l=c.communityBenefit)||void 0===l?void 0:l.plainText)||"",onChange:e=>d("communityBenefit",{plainText:e}),maxLength:500,required:!0})}),(0,a.jsx)(n.InputGroup,{inputRequired:!0,label:"Who are you (and your team) and why are you right to bring this idea to life?",helperText:"Holders want to fund projects that have a good chance of success - driven in large part by who the team is doing the work. Use this space to share your relevant experience (no need to dox to the whole community unless you want to!) as well as the relevant experience of any team members or advisors who will be supporting you.",charLimit:{length:null===(s=c.team)||void 0===s?void 0:s.plainText.length,maxLength:1500},children:(0,a.jsx)(n.TextArea,{className:v().team,value:(null===(u=c.team)||void 0===u?void 0:u.plainText)||"",onChange:e=>d("team",{plainText:e}),maxLength:1500,required:!0})}),(0,a.jsx)(StepNavigation,{prevStep:p})]})}},{title:"Project execution",component:e=>{var t,o,r,i,l,s,u,c;let{proposal:d,updateProposal:p,prevStep:m}=e;return(0,a.jsxs)(StepWrapper,{title:"Project execution",step:4,children:[(0,a.jsx)(n.InputGroup,{inputRequired:!0,label:"What's the game plan?",helperText:"What are the implementation stages? What are the timelines you're expecting to hit? What team will you need?",charLimit:{length:null===(t=d.executionPlan)||void 0===t?void 0:t.plainText.length,maxLength:1500},children:(0,a.jsx)(n.TextArea,{className:v().executionPlan,value:(null===(o=d.executionPlan)||void 0===o?void 0:o.plainText)||"",onChange:e=>p("executionPlan",{plainText:e}),maxLength:1500,required:!0})}),(0,a.jsxs)(n.InputGroup,{label:"Execution plan media",helperText:"Add any images or videos that you feel will help explain your game plan.",children:[(0,a.jsx)(MediaAttachmentUpload,{multiple:!0,allowedFileTypes:f.Dp,onUploadRequested:validateFileCount(d.executionPlanMedia),onFilesUploaded:e=>{let t=d.executionPlanMedia||[];p("executionPlanMedia",[...t,...e])}}),(null===(r=d.executionPlanMedia)||void 0===r?void 0:r.length)?(0,a.jsx)("div",{className:"grid grid-cols-3 gap-2",children:d.executionPlanMedia.map(e=>(0,a.jsx)(MediaAttachment,{url:e,onRemove:()=>{p("executionPlanMedia",(d.executionPlanMedia||[]).filter(t=>t!==e))}},e))}):null]}),(0,a.jsx)(n.InputGroup,{inputRequired:!0,label:"What are the risks?",helperText:"What are the most significant risks or challenges for this proposal, and what are you doing to mitigate them?",charLimit:{length:null===(i=d.risks)||void 0===i?void 0:i.plainText.length,maxLength:1500},children:(0,a.jsx)(n.TextArea,{className:v().risks,value:(null===(l=d.risks)||void 0===l?void 0:l.plainText)||"",onChange:e=>p("risks",{plainText:e}),maxLength:1500,required:!0})}),(0,a.jsx)(n.InputGroup,{inputRequired:!0,label:"What will the money actually be spent on? Do you expect any other money to come in related to this project, e.g. revenues?",helperText:"This is a space for you to explain the role of the requested funding. No need to be too detailed! We just want to get a sense of what this is covering e.g. you might only be looking for support with some upfront work to launch a project, with all ongoing costs covered by revenues.",charLimit:{length:null===(s=d.useOfFunds)||void 0===s?void 0:s.plainText.length,maxLength:1500},children:(0,a.jsx)(n.TextArea,{className:v().useOfFunds,value:(null===(u=d.useOfFunds)||void 0===u?void 0:u.plainText)||"",onChange:e=>p("useOfFunds",{plainText:e}),maxLength:1500,required:!0})}),(0,a.jsxs)(n.InputGroup,{label:"Use of funds media",helperText:"Add any additional media you think will illustrate how the funds will be used.",children:[(0,a.jsx)(MediaAttachmentUpload,{multiple:!0,allowedFileTypes:f.Dp,onUploadRequested:validateFileCount(d.useOfFundsMedia),onFilesUploaded:e=>{let t=d.useOfFundsMedia||[];p("useOfFundsMedia",[...t,...e])}}),(null===(c=d.useOfFundsMedia)||void 0===c?void 0:c.length)?(0,a.jsx)("div",{className:"grid grid-cols-3 gap-2",children:d.useOfFundsMedia.map(e=>(0,a.jsx)(MediaAttachment,{url:e,onRemove:()=>{p("useOfFundsMedia",(d.useOfFundsMedia||[]).filter(t=>t!==e))}},e))}):null]}),(0,a.jsx)(StepNavigation,{prevStep:m})]})}},{title:"Finalize",component:e=>{let{mode:t,prevStep:o}
1=e,[r,i]=(0,s.useState)(!1);return(0,a.jsxs)(StepWrapper,{title:"Finalize",step:5,children:["new"===t?(0,a.jsx)(n.InputGroup,{helperText:"These checks are mandatory for the listing of your proposal and are required by US law.",children:(0,a.jsx)(n.Checkbox,{label:"If approved, I agree to complete KYC and a background check",value:r,onChange:e=>i(e)})}):(0,a.jsx)(n.Text,{color:"secondary",weight:"300",children:"After submitting your changes, they may take up to a minute to be reflected on the site. You can continue making updates until your proposal is approved, after which it's publicly visible on the site."}),(0,a.jsxs)("div",{className:"flex gap-4",children:[(0,a.jsx)(n.Button,{color:n.Color.neutral,size:"lg",style:n.ButtonStyle.secondary,onClick:o,children:"Previous step"}),(0,a.jsx)(n.Button,{type:"submit",color:n.Color.neutral,size:"lg",disabled:"new"===t&&!r,children:"Submit"})]})]})}}],executeMutation=async e=>{let{proposal:t,method:o}=e,a=await fetch("/api/dao/submit",{method:o,body:JSON.stringify(t),credentials:"include",headers:{"Content-Type":"application/json"}});if(a.ok)return await a.json();throw Error("Unable to save DAO proposal")},useSubmitProposal=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mutate:o,...a}=(0,F.D)(executeMutation,t),n=(0,s.useCallback)(t=>{o({proposal:t,method:"create"===e?"POST":"PUT"})},[o,e]);return{submitProposal:n,...a}},storageKey=e=>e?"daoProposal/".concat(e.id):"daoProposal/v2";function DaoSubmissionForm(e){var t;let{editProposal:o}=e,[i,c]=(0,s.useState)(1),[m,h]=(0,s.useState)(o?o.id:null),[g,_]=(0,p.V)(storageKey(o),o||{}),{toast:b}=useToast(),{submitProposal:j,isLoading:w,isSuccess:T}=useSubmitProposal(o?"update":"create",{onSuccess:e=>{h(e.id),o||_({})},onError:e=>{r.Tb(e),b("There was an error submitting your proposal, please try again.",{type:"error"})}}),handleSubmit=async e=>{e.preventDefault(),i+1>D.length?j(g):c(i+1)},F=null===(t=D[i-1])||void 0===t?void 0:t.component;return(0,x.qV)(F,"No component found for step ".concat(i)),(0,a.jsxs)("div",{className:y().WalkthroughContainer,children:[(0,a.jsxs)("main",{children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:l()(n.Heading.lg,n.Heading.bold,"mb-2"),children:o?"Edit your proposal":"Submit a proposal"}),(0,a.jsxs)(n.Text,{color:"secondary",weight:"300",children:[!o&&(0,a.jsxs)(a.Fragment,{children:["Before starting this form, we recommend downloading the"," ",(0,a.jsx)(n.Anchor,{href:f.q9,target:"_blank",rel:"noreferer nofollow",children:"template"})," ","to prepare your responses beforehand."]})," ","Your inputs are saved locally if you need to refresh your browser or come back later."]})]}),(0,a.jsx)("hr",{className:"border-ui-secondary"}),w?(0,a.jsx)(FormSubmitting,{}):T?(0,a.jsx)(FormSuccess,{proposalId:m}):(0,a.jsx)("form",{className:v().proposalForm,onSubmit:handleSubmit,children:(0,a.jsx)(F,{mode:o?"edit":"new",proposal:g,setProposal:_,updateProposal:(e,t)=>{_(o=>({...o,[e]:t}))},prevStep:()=>c(i-1)})})]}),(0,a.jsx)("aside",{children:(0,a.jsxs)(u.Z,{children:[(0,a.jsx)(d.Z,{steps:D.map(e=>e.title),currentStep:T?D.length+1:i}),(0,a.jsx)("hr",{className:"my-6"}),(0,a.jsxs)(n.Text,{size:"xs",color:"secondary",children:["Download the"," ",(0,a.jsx)(n.Anchor,{href:f.q9,target:"_blank",rel:"noreferer nofollow",children:"form template"})," ","to prepare if needed."]})]})})]})}let FormSubmitting=()=>(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)(c.Z,{}),(0,a.jsx)("h3",{className:l()(n.Heading.md,"mt-8"),children:"Submitting your proposal..."})]}),FormSuccess=e=>{let{proposalId:t}=e;return(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:l()(n.Heading.md,"mb-2"),children:"Thanks for your submission"}),(0,a.jsx)(n.Text,{color:"secondary",children:"We will review your proposal and let you know via email if we have any questions. If we don't, we will email you to let you know 
1when your proposal will go live for voting."}),t?(0,a.jsx)(n.Anchor,{href:"/society/proposals/".concat(t),style:n.ButtonStyle.primary,color:n.Color.neutral,className:"mt-4",children:"View proposal"}):null]})}},50189:function(e,t,o){"use strict";o.d(t,{Y:function(){return a}});let a="https://proof-xyz.imgix.net/banners/default.png"},63355:function(e,t,o){"use strict";o.d(t,{Z:function(){return walkthrough_NumberedChecklist}});var a,n=o(52322),r=o(1627),i=o(2784);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e}).apply(this,arguments)}var tick=function(e){return i.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),a||(a=i.createElement("path",{fillRule:"evenodd",d:"M18.354 8.354a.5.5 0 0 1 0 .707l-8 8a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 0-.707l.708-.708a.5.5 0 0 1 .707 0L10 14.586l6.94-6.94a.5.5 0 0 1 .706 0z",clipRule:"evenodd"})))},l=o(12524),s=o.n(l),u=o(29238),c=o.n(u),walkthrough_StepNumber=e=>{let{stepNumber:t,isActive:o}=e,a=s()(c().StepNumber,{[c().active]:o});return(0,n.jsx)(r.Text,{className:a,size:"xs",children:t})},walkthrough_NumberedChecklist=e=>{let{steps:t,currentStep:o}=e;return(0,n.jsx)("ul",{className:"flex flex-col gap-4",children:t.map((e,t)=>{let a=t+1;return(0,n.jsxs)("li",{className:"flex items-center",children:[a<o?(0,n.jsx)(tick,{className:"fill-green-250"}):(0,n.jsx)(walkthrough_StepNumber,{stepNumber:a,isActive:a===o}),(0,n.jsx)(r.Text,{className:"ml-4",children:e})]},"step-".concat(t))})})}},18467:function(e,t,o){"use strict";o.d(t,{o1:function(){return getCollectionMediaAsset},st:function(){return getPrimaryPreviewAsset},td:function(){return getContentfulImage}});let getContentfulImage=(e,t)=>{let o=Object.entries(t).reduce((e,t)=>{let[o,a]=t;return{...e,[o]:"number"==typeof a?a.toString():a}},{});return"".concat(e,"?").concat(new URLSearchParams(o))},getPrimaryPreviewAsset=e=>"Media"===e.media.__typename?e.media.previewAsset:e.media.mediaCollection.items[0].previewAsset,getCollectionMediaAsset=(e,t)=>{var o;let a="Media"===e.__typename?e:null===(o=e.mediaCollection)||void 0===o?void 0:o.items[0];if(!a)return;let{originalAsset:n,previewAsset:r,gridAsset:i,thumbnailAsset:l}=a;return"thumbnail"===t?l||i||r||n:"grid"===t?i||r||n:"preview"===t&&r||n}},4435:function(e,t,o){"use strict";o.d(t,{ml:function(){return v},q9:function(){return _},Ix:function(){return j},ru:function(){return b},Dp:function(){return w},Ms:function(){return T},c4:function(){return F},q:function(){return y},lF:function(){return i},r7:function(){return r},w7:function(){return daoBucketUrlToImgix},ci:function(){return proposalCanHaveVotes}});var a,n,r,i,l=o(22970),s=o(47694),u=o(69244),c=o(12729),d=o(39666),p=o(28246),m=o(68959),h=o(62542),f=o(49758),x=o(34647);function IsFileNameWithType(e,t){return function(o,a){(0,x.e)({name:"isFileNameWithType",target:o.constructor,propertyName:a,constraints:e,options:{...t,message:"".concat(a," must be a valid file type")},validator:{validate(e,t){let o=t.constraints,a=RegExp("\\.(".concat(o.join("|"),")$"),"i");return"string"==typeof e&&a.test(e)}}})}}function RichTextMaxLength(e,t){return function(o,a){(0,x.e)({name:"richTextMaxLength",target:o.constructor,propertyName:a,options:{...t,message:"".concat(a,".plainText must be shorter than or equal to ").concat(e," characters")},validator:{validate:t=>t.plainText.length<=e}})}}var g=o(9645);let y=(0,f.zX)("DAO-social.png"),_="https://docs.google.com/document/d/1fcGgzDoUritVtYCrolQy3EpCiOUpXIX9983pVF6sj_c/edit?usp=sharing",v={[g.re.MOONBIRDS]:3,[g.re.MYTHICS_PROXY]:1},b=6,j=["jpg","jpeg","png"],w=[...j,"mp4","pdf"],T=["Create experiences or products which directly benefit holders","Promote the Moonbirds and Mythics brand beyond web3","Elevate Moonbirds and Mythics within the web3 community"],F=["NFT (art)","NFT (other)","ERC20 token","IRL event","Virtual event","Physical goods","Other software tool","Advertising opportunity"];let DaoCreateProposalDto=class DaoCreateProposalDto{};(0,l.__decorate)([(0,s.XV)(),(0,u.nf)(100),(0,l.__metadata)("design:type",String)],DaoCreateProposalDto.prototype,"title",void 0),(0,l.__decorate)([IsFileNameWithType(j),(0,l.__metadata)("design:type",String)],DaoCreateProposalDto.prototype,"proposalThumbnail",void 0),(0,l.__decorate)([RichTextMaxLength(400),(0,l.__metadata)("design:type","undefined"==typeof RichText?Object:RichText)],DaoCreateProposalDto.prototype,"proposalSummary",void 0),(0,l.__decorate)([(0,c.X)(),RichTextMaxLength(100),(0,l.__metadata)("design:type","undefined"==typeof RichText?Object:RichText)],DaoCreateProposalDto.prototype,"fundingAmount",void 0),(0,l.__decorate)([(0,s.XV)(),(0,u.nf)(75),(0,l.__metadata)("design:type",String)],DaoCreateProposalDto.prototype,"authorName",void 0),(0,l.__decorate)([(0,d.s6)(),(0,u.nf)(75),(0,l.__metadata)("design:type",String)],DaoCreateProposalDto.prototype,"authorEmail",void 0),(0,l.__decorate)([(0,c.X)(),(0,p.si)(),(0,l.__metadata)("design:type",Boolean)],DaoCreateProposalDto.prototype,"requestTrademark",void 0),(0,l.__decorate)([(0,m.Yl)(),(0,h.BU)(T,{each:!0}),(0,l.__metadata)("design:type",Array)],DaoCreateProposalDto.prototype,"missions",void 0),(0,l.__decorate)([(0,m.Yl)(),(0,h.BU)(F,{each:!0}),(0,l.__metadata)("design:type",Object)],DaoCreateProposalDto.prototype,"projectType",void 0),(0,l.__decorate)([RichTextMaxLength(125),(0,c.X)(),(0,l.__metadata)("design:type","undefined"==typeof RichText?Object:RichText)],DaoCreateProposalDto.prototype,"backers",void 0),(0,l.__decorate)([(0,c.X)(),IsFileNameWithType(w),(0,l.__metadata)("design:type",String)],DaoCreateProposalDto.prototype,"featureMedia",void 0),(0,l.__decorate)([RichTextMaxLength(2e3),(0,l.__metadata)("design:type","undefined"==typeof RichText?Object:RichText)],DaoCreateProposalDto.prototype,"proposalBody",void 0),(0,l.__decorate)([(0,c.X)(),IsFileNameWithType(w,{each:!0}),(0,l.__metadata)("design:type",Array)],DaoCreateProposalDto.prototype,"projectMedia",void 0),(0,l.__decorate)([RichTextMaxLength(500),(0,l.__metadata)("design:type","undefined"==typeof RichText?Object:RichText)],DaoCreateProposalDto.prototype,"communityBenefit",void 0),(0,l.__decorate)([RichTextMaxLength(1500),(0,l.__metadata)("design:type","undefined"==typeof RichText?Object:RichText)],DaoCreateProposalDto.prototype,"team",void 0),(0,l.__decorate)([RichTextMaxLength(1500),(0,l.__metadata)("design:type","undefined"==typeof RichText?Object:RichText)],DaoCreateProposalDto.prototype,"executionPlan",void 0),(0,l.__decorate)([(0,c.X)(),IsFileNameWithType(w,{each:!0}),(0,l.__metadata)("design:type",Array)],DaoCreateProposalDto.prototype,"executionPlanMedia",void 0),(0,l.__decorate)([RichTextMaxLength(1500),(0,l.__metadata)("design:type","undefined"==typeof RichText?Object:RichText)],DaoCreateProposalDto.prototype,"risks",void 0),(0,l.__decorate)([RichTextMaxLength(1500),(0,l.__metadata)("design:type","undefined"==typeof RichText?Object:RichText)],DaoCreateProposalDto.prototype,"useOfFunds",void 0),(0,l.__decorate)([(0,c.X)(),IsFileNameWithType(w,{each:!0}),(0,l.__metadata)("design:type",Array)],DaoCreateProposalDto.prototype,"useOfFundsMedia",void 0),(0,l.__decorate)([(0,s.XV)(),(0,l.__metadata)("design:type",String)],(class extends DaoCreateProposalDto{}).prototype,"id",void 0),(a=r||(r={})).PRE_APPROVAL="pre_approval",a.PRE_VOTE="pre_vote",a.ACTIVE="active",a.PASSED="passed",a.HISTORICAL="historical",a.DECLINED="declined",(n=i||(i={})).UPDATED_DESC="updated_DESC",n.UPDATED_ASC="updated_ASC";let daoBucketUrlToImgix=e=>{var t;let o=null===(t=e.match(/\/lunar-society(\/.+)/))||void 0===t?void 0:t[1];return"https://lunar-society.imgix.net".concat(o)},proposalCanHaveVotes=e=>"active"===e.proposalState||"historical"===e.proposalState},49758:function(e,t,o){"use strict";o.d(t,{Eg:function(){return getNftOgImage},Vj:function(){return getOgImageFromContentful},dM:function(){return getProfileOgImage},gr:function(){return getMoonbirdOgImage},zX:function(){return getOgImageFromImgix}});var a=o(79685),n=o(50189),r=o(18467),i=o(9645),l=o(16768);let s=new URLSearchParams({fm:"png",w:"256",mask:"ellipse",border:"6,FFFF"}),u={"mark-align":"bottom,left","mark-w":"256","mark-pad":"24"},getProfileOgImage=e=>{var t,o;let r;if(!e)return n.Y;let c=null!==(t=e.profile.bannerUrl)&&void 0!==t?t:n.Y,d=null!==(o=e.profile.avatarUrl)&&void 0!==o?o:a.jz;if(d===a.jz)r={};else if(d.includes("moonbirds.imgix.net")){let e=(0,l.E)(d);r={mark:"".concat(i.ME,"/").concat(i.re.MOONBIRDS,"/").concat(e,"?").concat(s),...u}}else r={mark:"".concat(d,"?").concat(s),...u};
1return"".concat(c,"?").concat(new URLSearchParams({w:"1200",h:"627",fm:"jpg",fit:"crop",auto:"format",...r}))},getMoonbirdOgImage=e=>getNftOgImage(i.re.MOONBIRDS,e),getNftOgImage=(e,t)=>"".concat(i.ME,"/").concat(e,"/").concat(t,"?").concat(new URLSearchParams({w:"576",h:"576",fm:"png",auto:"format",q:"55",usm:"12"})),getOgImageFromImgix=e=>"https://proof-xyz.imgix.net/ogImages/".concat(e,"?w=1200&h=627&fm=jpg&fit=crop&auto=format&q=55&usm=12"),getOgImageFromContentful=e=>{let{url:t,width:o}=e;return(0,r.td)(t,{w:o?Math.min(o,1200):1200,fm:"jpg",q:55})}},6087:function(e,t,o){"use strict";o.d(t,{A:function(){return toast}});var a=o(57892);let n={position:"bottom-right",autoClose:1e4,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,theme:"light"},toast=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.Am)(e,{...n,...t})}},92869:function(e){e.exports={Box:"Box_Box__xVLzD","Box--density-default":"Box_Box--density-default__EY9uu","Box--density-cozy":"Box_Box--density-cozy__LcbZe","Box--density-compact":"Box_Box--density-compact__37P9n"}},98060:function(e){e.exports={submissionContent:"DaoSubmissionForm_submissionContent__StSy5",proposalForm:"DaoSubmissionForm_proposalForm__HxkAG",proposalBody:"DaoSubmissionForm_proposalBody__MIida",team:"DaoSubmissionForm_team__9_V6N",executionPlan:"DaoSubmissionForm_executionPlan___iFPm",risks:"DaoSubmissionForm_risks__3G5hl",useOfFunds:"DaoSubmissionForm_useOfFunds__1oYl3"}},75531:function(e){e.exports={mediaAttachment:"MediaAttachment_mediaAttachment__7GkTO",closeButton:"MediaAttachment_closeButton__GejW5",videoContainer:"MediaAttachment_videoContainer__oSZ5V",imageContainer:"MediaAttachment_imageContainer__bU_yK"}},95231:function(e){e.exports={mediaAttachment:"MediaAttachmentUpload_mediaAttachment__oCXbf",progressContainer:"MediaAttachmentUpload_progressContainer__CPxBD",progressBar:"MediaAttachmentUpload_progressBar__4ah9_"}},29238:function(e){e.exports={container:"StepNumber_container__DJxh_",StepNumber:"StepNumber_StepNumber__WHqei",active:"StepNumber_active__BzJab","!active":"StepNumber___active__AB9_d"}},27319:function(e){e.exports={WalkthroughContainer:"walkthrough_WalkthroughContainer__i_w76",ul:"walkthrough_ul__PC0KU"}},84529:function(e){e.exports={contentContainer:"submit_contentContainer__cMS8_",submissionContent:"submit_submissionContent__QM6q1"}},82775:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e),"object"===_typeof(t)?(o=t.min||0,a=t.max):(o=arguments[1],a=arguments[2]);var o,a,r=encodeURI(e).split(/%..|./).length-1;return r>=o&&(void 0===a||r<=a)};var a,n=(a=o(67359))&&a.__esModule?a:{default:a};function _typeof(e){return(_typeof="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)}e.exports=t.default,e.exports.default=t.default},44525:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),(t=(0,l.default)(t,s)).require_display_name||t.allow_display_name){var o=e.match(u);if(o){var f,x,g=o[1];if(e=e.replace(g,"").replace(/(^<|>$)/g,""),g.endsWith(" ")&&(g=g.slice(0,-1)),!(x=(f=g).replace(/^"(.+)"$/,"$1")).trim()||/[\.";<>]/.test(x)&&(x===f||x.split('"').length!==x.split('\\"').length))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>254)return!1;var y=e.split("@"),_=y.pop(),v=_.toLowerCase();if(t.host_blacklist.includes(v)||t.host_whitelist.length>0&&!t.host_whitelist.includes(v))return!1;var b=y.join("@");if(t.domain_specific_validation&&("gmail.com"===v||"googlemail.com"===v)){var j=(b=b.toLowerCase()).split("+")[0];if(!(0,n.default)(j.replace(/\./g,""),{min:6,max:30}))return!1;for(var w=j.split("."),T=0;T<w.length;T++)if(!d.test(w[T]))return!1}if(!1===t.ignore_max_length&&(!(0,n.default)(b,{max:64})||!(0,n.default)(_,{max:254})))return!1;if(!(0,r.default)(_,{require_tld:t.require_tld,ignore_max_length:t.ignore_max_length,allow_underscores:t.allow_underscores})){if(!t.allow_ip_domain)return!1;if(!(0,i.default)(_)){if(!_.startsWith("[")||!_.endsWith("]"))return!1;var F=_.slice(1,-1);if(0===F.length||!(0,i.default)(F))return!1}}if('"'===b[0])return b=b.slice(1,b.length-1),t.allow_utf8_local_part?h.test(b):p.test(b);for(var C=t.allow_utf8_local_part?m:c,S=b.split("."),M=0;M<S.length;M++)if(!C.test(S[M]))return!1;return!t.blacklisted_chars||-1===b.search(RegExp("[".concat(t.blacklisted_chars,"]+"),"g"))};var a=_interopRequireDefault(o(67359)),n=_interopRequireDefault(o(82775)),r=_interopRequireDefault(o(78139)),i=_interopRequireDefault(o(37962)),l=_interopRequireDefault(o(51778));
1function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var s={allow_display_name:!1,allow_underscores:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},u=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,c=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,d=/^[a-z\d]+$/,p=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,m=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,h=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i;e.exports=t.default,e.exports.default=t.default},78139:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e),(t=(0,n.default)(t,r)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1)),!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var o=e.split("."),i=o[o.length-1];return!(t.require_tld&&(o.length<2||!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(i)||/\s/.test(i))||!t.allow_numeric_tld&&/^\d+$/.test(i))&&o.every(function(e){return!(e.length>63&&!t.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)||/[\uff01-\uff5e]/.test(e)||/^-|-$/.test(e)||!t.allow_underscores&&/_/.test(e))})};var a=_interopRequireDefault(o(67359)),n=_interopRequireDefault(o(51778));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var r={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};e.exports=t.default,e.exports.default=t.default},37962:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function isIP(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return((0,n.default)(e),t=String(t))?"4"===t?l.test(e):"6"===t&&u.test(e):isIP(e,4)||isIP(e,6)};var a,n=(a=o(67359))&&a.__esModule?a:{default:a},r="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",i="(".concat(r,"[.]){3}").concat(r),l=new RegExp("^".concat(i,"$")),s="(?:[0-9a-fA-F]{1,4})",u=RegExp("^("+"(?:".concat(s,":){7}(?:").concat(s,"|:)|")+"(?:".concat(s,":){6}(?:").concat(i,"|:").concat(s,"|:)|")+"(?:".concat(s,":){5}(?::").concat(i,"|(:").concat(s,"){1,2}|:)|")+"(?:".concat(s,":){4}(?:(:").concat(s,"){0,1}:").concat(i,"|(:").concat(s,"){1,3}|:)|")+"(?:".concat(s,":){3}(?:(:").concat(s,"){0,2}:").concat(i,"|(:").concat(s,"){1,4}|:)|")+"(?:".concat(s,":){2}(?:(:").concat(s,"){0,3}:").concat(i,"|(:").concat(s,"){1,5}|:)|")+"(?:".concat(s,":){1}(?:(:").concat(s,"){0,4}:").concat(i,"|(:").concat(s,"){1,6}|:)|")+"(?::((?::".concat(s,"){0,5}:").concat(i,"|(?::").concat(s,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default},86500:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e),"object"===_typeof(t)?(o=t.min||0,a=t.max):(o=arguments[1]||0,a=arguments[2]);var o,a,r=e.match(/(\uFE0F|\uFE0E)/g)||[],i=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],l=e.length-r.length-i.length;return l>=o&&(void 0===a||l<=a)};var a,n=(a=o(67359))&&a.__esModule?a:{default:a};function _typeof(e){return(_typeof="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)}e.exports=t.default,e.exports.default=t.default},67359:function(e,t){"use strict";function _typeof(e){return(_typeof="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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!("string"==typeof e||e instanceof String)){var t=_typeof(e);throw null===e?t="null":"object"===t&&(t=e.constructor.name),TypeError("Expected a string but received a ".concat(t))}},e.exports=t.default,e.exports.default=t.default},51778:function(e,t){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var o in t)void 0===e[o]&&(e[o]=t[o]);return e},e.exports=t.default,e.exports.default=t.default},12729:function(e,t,o){"use strict";o.d(t,{X:function(){return IsOptional}});var a=o(56350),n=o(14250),r=o(64285);function IsOptional(e){return function(t,o){var i={type:a.P.CONDITIONAL_VALIDATION,target:t.constructor,propertyName:o,constraints:[function(e,t){return null!==e[o]&&void 0!==e[o]}],validationOptions:e};(0,r.A)().addValidationMetadata(new n.L(i))}}},39666:function(e,t,o){"use strict";o.d(t,{s6:function(){return IsEmail}});var a=o(18348),n=o(44525),r=o.n(n);function IsEmail(e,t){return(0,a.Y)({name:"isEmail",constraints:[e],validator:{validate:function(e,t){var o;return o=t.constraints[0],"string"==typeof e&&r()(e,o)},defaultMessage:(0,a.l)(function(e){return e+"$property must be an email"},t)}},t)}},69244:function(e,t,o){"use strict";o.d(t,{nf:function(){return MaxLength}});var a=o(18348),n=o(86500),r=o.n(n);function MaxLength(e,t){return(0,a.Y)({name:"maxLength",constraints:[e],validator:{validate:function(e,t){var o;return o=t.constraints[0],"string"==typeof e&&r()(e,{min:0,max:o})},defaultMessage:(0,a.l)(function(e){return e+"$property must be shorter than or equal to $constraint1 characters"},t)}},t)}},68959:function(e,t,o){"use strict";o.d(t,{Yl:function(){return IsArray}});var a=o(18348);function IsArray(e){return(0,a.Y)({name:"isArray",validator:{validate:function(e,t){return Array.isArray(e)},defaultMessage:(0,a.l)(function(e){return e+"$property must be an array"},e)}},e)}},28246:function(e,t,o){"use strict";o.d(t,{si:function(){return IsBoolean}});var a=o(18348);function IsBoolean(e){return(0,a.Y)({name:"isBoolean",validator:{validate:function(e,t){return e instanceof Boolean||"boolean"==typeof e},defaultMessage:(0,a.l)(function(e){return e+"$property must be a boolean value"},e)}},e)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.