PageSourceSearch

https://regex101.com/static/shareDialogs.c6584e20b4ad03885d4f.chunk.js

js regex101.com collected 2026-10-01 08:37:27 UTC 24,753 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"v14.1.1"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="04edf5bc-a442-4c3f-80b3-6bb47aea1476",e._sentryDebugIdIdentifier="sentry-dbid-04edf5bc-a442-4c3f-80b3-6bb47aea1476")}catch(e){}}(),(("undefined"!=typeof self?self:this).webpackChunk_r101_web=("undefined"!=typeof self?self:this).webpackChunk_r101_web||[]).push([[9747],{70936(e,t,a){var s=a(14041),n=a(17200),r=a(88300),i=a(97962),l=a(50445),o=a(84574),d=a(31085);a.d(t,["H",0,({asChild:e,disabled:t,libraryTitle:a,onTagsChange:c,onTitleChange:u,tags:g=[],title:h=""})=>{const p=(0,l.I6)().data,m=void 0===p?{tags:[]}:p,x=e?s.Fragment:r.D;return(0,d.jsxs)(x,{children:[(0,d.jsx)(r.q,{disabled:t,header:(0,o.Ay)("Title"),name:"personalTitle",children:(0,d.jsx)(n.ks,{disabled:t,maxLength:150,showLengthCounter:!0,onValueChange:u,placeholder:a||(0,o.Ay)("Insert a personal title"),size:"small",value:h??""})}),(0,d.jsx)(r.q,{disabled:t,header:(0,o.Ay)("Tags"),name:"tags",children:(0,d.jsx)(i.i,{allowCreate:!0,availableTags:m.tags,disabled:t,onValueChange:c,value:g})})]})}])},97321(e,t,a){a.d(t,{SaveDialogPopup:()=>q});var s=a(47075),n=a(14041),r=a(89924),i=a(81328),l=a(86116),o=a(28116),d=a(845),c=a(4174),u=a(82025),g=a(17200),h=a(88300),p=a(50445),m=a(15311),x=a(13176),y=a(71699),b=a(9583),f=a(7876),v=a(56646),j=a(18940),k=a(48694),w=a(30653),A=a(84574),C=a(9210),S=a(70936),N=a(75391),E=a(97762),I=a(63313),D=a(14202),V=a(17380),L=a(84002),T=a(99789),O=a(92909),M=a(31085);const R=({claim:e})=>{var t;const a=(0,j.CU)(),i=(0,p.FE)(),l=(0,s.A)(i,2),o=l[0],d=l[1],c=(0,T.O)(!0),u=(0,n.useCallback)(e=>{null==e||e.focus()},[]);if((0,n.useEffect)(()=>{(0,v.s)("workspace.account_prompt_shown",{})},[]),d.isSuccess)return null;const h="signing-out"===(null==(t=c.state)?void 0:t.step)?null:c.state;return(0,M.jsx)("section",{className:"GIoKc",children:null!=h?(0,M.jsx)("div",{ref:u,className:"f2WMG",role:"group","aria-label":(0,A.Ay)("Sign in to regex101"),tabIndex:-1,children:(0,M.jsx)(L.t,{state:h,start:c.start,checkSignIn:c.checkSignIn,retry:c.retry})}):(0,M.jsxs)("div",{className:"f3HpH",children:[(0,M.jsx)(g.WV,{tag:"p",text:"Save to your free account to find this workspace later, organize it with tags, and manage access. {1}",ph1:(0,M.jsx)(g.N_,{to:V.vW,target:"_blank",absolute:!0,withExternalIcon:!0,"aria-label":(0,A.Ay)("Read more about managing saved workspaces"),children:(0,A.Ay)("Read more")})}),(0,M.jsx)(g.$n,{text:(0,A.Ay)("Save to account"),variant:"text",onClick:()=>{(0,v.s)("workspace.claim_requested",{}),(0,v.s)("account.sign_in_opened",{source:"workspace-save",feature:"general"}),c.actions.signIn({source:"workspace-save",description:(0,A.Ay)("Sign in to keep this workspace in your account and organize it with titles and tags."),onSignedIn:async()=>{try{await o({body:[e]}).unwrap(),await(0,O.C)(a,{mode:"refresh-access"}).catch(()=>null),(0,v.s)("workspace.claim_completed",{}),(0,C.oR)((0,A.Ay)("Workspace added to your account."),{type:"success"})}catch(e){throw(0,v.s)("workspace.claim_failed",{}),e}}})},endAdornment:(0,M.jsx)(r.xCi,{size:16,"aria-hidden":!0})})]})})};var P=a(2618),_="qTd7f";const U=({permalink:e,error:t,signedIn:a,isOwner:s,isPrivate:n,permalinkDeleteUrl:r,permalinkVersionDeleteUrl:i,isLoading:l})=>t?(0,M.jsx)("div",{className:_,children:(0,M.jsx)(P._,{})}):l?(0,M.jsxs)("div",{className:_,children:[(0,M.jsx)(g.y$,{"aria-hidden":!0,size:"small"}),(0,M.jsx)("div",{className:"MUhQY",children:(0,A.Ay)("Please wait while your request is being processed...")})]}):(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(h.q,{header:n?(0,A.Ay)("Private Link"):(0,A.Ay)("Access Link"),children:(0,M.jsx)(g.ks,{type:"text",value:e??"",autoFocus:!0,selectOnFocus:!0,readOnly:!0,copyButton:!0,size:"small"})}),!a&&s&&null!=r&&(0,M.jsx)(h.q,{header:(0,A.Ay)("Delete Link"),children:(0,M.jsx)(g.ks,{type:"text",value:r,readOnly:!0,copyButton:!0,selectOnFocus:!0,size:"small"})}
1),!a&&null!=i&&(0,M.jsx)(h.q,{header:(0,A.Ay)("Delete Version Link"),children:(0,M.jsx)(g.ks,{type:"text",value:i,readOnly:!0,copyButton:!0,selectOnFocus:!0,size:"small"})})]}),F=[],q=({mode:e="save",onLoadingChange:t,onSaveComplete:a})=>{const V=(0,j.jL)(),L=(0,p.ng)(),T=(0,s.A)(L,2),O=T[0],P=T[1],_=(0,p.Kd)(),q=(0,s.A)(_,2),z=q[0],G=q[1],$=(0,p.D5)(),H=(0,s.A)($,2),W=H[0],K=H[1],B=(0,j.GV)(e=>e.user.signedIn),Y=(0,j.GV)(e=>e.settings.saveMode),Q=(0,j.GV)(e=>e.regexEditor.permalinkDetails.isPrivate),X=(0,j.GV)(e=>e.regexEditor.permalinkDetails.fragment),Z=(0,j.GV)(e=>e.regexEditor.permalinkDetails.title||e.regexEditor.libraryDetails.title)||"",J=(0,j.GV)(e=>e.regexEditor.permalinkDetails.tags)||F,ee=(0,j.GV)(e=>e.regexEditor.userDetails.isOwner),te=(0,j.GV)(e=>e.regexEditor.permalinkDetails.permalinkVersionDeleteCode),ae="available"===(0,k.kh)("accounts"),se=(0,b.M)("update"===e?X:null),ne=(0,i.Zp)(),re=(0,x.w)().editorMode,ie=(0,n.useRef)(!1),le=(0,n.useState)(!1),oe=(0,s.A)(le,2),de=oe[0],ce=oe[1],ue=(0,n.useState)(Z),ge=(0,s.A)(ue,2),he=ge[0],pe=ge[1],me=(0,n.useState)(J),xe=(0,s.A)(me,2),ye=xe[0],be=xe[1],fe=(0,n.useState)(null),ve=(0,s.A)(fe,2),je=ve[0],ke=ve[1],we=(0,n.useState)(null),Ae=(0,s.A)(we,2),Ce=Ae[0],Se=Ae[1],Ne=(0,n.useState)(null),Ee=(0,s.A)(Ne,2),Ie=Ee[0],De=Ee[1],Ve=(0,n.useState)(null),Le=(0,s.A)(Ve,2),Te=Le[0],Oe=Le[1],Me=B&&"save"===e?Y:void 0,Re=(0,n.useCallback)(e=>{(0,v.s)("account.tags_changed",{}),be([...new Set(e)]),ce(!0)},[]),Pe=(0,n.useCallback)(e=>{pe(e),ce(!0)},[]);(0,n.useEffect)(()=>{pe(Z),be(J)},[J,Z]),(0,n.useEffect)(()=>{ie.current||(ie.current=!0,Promise.all([W({body:Object.assign(Object.assign({},se),{},{saveMode:Me})}),(0,w.A)(250)]).then(([t])=>{var a;if(null!=t.error)return void(0,C.oR)((0,A.Ay)("There was an error trying to save your workspace. Please try again later."),{type:"error"});const s=t.data,n=s.permalinkFragment,r=s.version,i=s.permalinkDeleteCode,l=s.permalinkVersionDeleteCode,o=s.isLibraryEntry,c=s.savedToAccount,u=window.location.origin,g=(0,d.LG)({permalinkFragment:n,version:r,editorMode:re});V((0,m.c2)({permalinkFragment:n,version:r,permalinkDeleteCode:i,permalinkVersionDeleteCode:l,isLibraryEntry:o,mode:e,saveMode:Me,editorMode:re})),re===d.lX.SUBSTITUTION_PIPELINE&&V((0,y.gU)());const h=i??(null==(a=(0,f.gQ)(n))?void 0:a.deleteCode);ke(`${u}${g}`),Se(null!=i?`${u}/delete/${i}`:null),De(`${u}/delete/${r}/${l}`),Oe(c?null:Object.assign({action:"add",permalinkFragment:n},null!=h?{deleteCode:h}:{version:r,versionDeleteCode:l})),ne(g,{replace:!0})}))},[V,ne,e,X,re,se,Me,W]);const _e="update"===e?(0,A.Ay)("Update Workspace"):(0,A.Ay)("Save Workspace"),Ue=P.isLoading||G.isLoading,Fe=Ue||K.isLoading;(0,n.useEffect)(()=>(t(Fe),()=>t(!1)),[Fe,t]);const qe=null!=X&&!K.isLoading&&B&&null!=te;return(0,M.jsxs)(E.h,{allowFullBleed:!1,className:"gb_bM",children:[(0,M.jsx)(D.c,{isLoading:Fe,children:_e}),(0,M.jsxs)(N.R,{className:"df322",children:[(0,M.jsxs)(h.D,{className:"Oe3cC",children:[(0,M.jsx)(U,{error:K.isError,permalink:je,signedIn:B,isOwner:ee,isPrivate:Q,permalinkDeleteUrl:Ce,permalinkVersionDeleteUrl:Ie,isLoading:K.isLoading}),qe&&je&&!K.isError&&(0,M.jsx)(S.H,{title:he,tags:ye,onTagsChange:Re,onTitleChange:Pe,disabled:Ue,asChild:!0})]}),ae&&null!=Te&&!K.isLoading&&!K.isError&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(g.w0,{}),(0,M.jsx)(R,{claim:Te})]})]}),(0,M.jsxs)(I.E,{className:"HnFub",children:[B&&(0,M.jsx)(l.z,{handle:c.CL,payload:u.L.interfaceSaving,disabled:Fe,className:"UKC3h",render:(0,M.jsx)(g.$n,{variant:"text",text:(0,A.Ay)("Change save mode"),icon:r.xPd})}),qe&&!K.isError&&!K.isLoading&&(0,M.jsx)(g.$n,{onClick:async()=>{(0,v.s)("account.action",{action:"edit"});const e=await z({permalinkFragment:X,body:{title:he}});(await O({permalinkFragment:X,body:{tags:ye}})).error||e.error?(0,C.oR)((0,A.Ay)("Unable to save changes, please try again"),{type:"error"}):a()},text:(0,A.Ay)("Save title and tags"),disabled:!de||Fe,color:"primary",loading:Fe}),(0,M.jsx)(o.H,{disabled:Fe,render:(0,M.jsx)(g.$n,{text:qe&&de?(0,A.Ay)("Cancel"):(0,A.Ay)("Close"),variant:"ghost",color:qe&&de?"danger":"secondary"})})]})]})}},81413(e,t,a){a.d(t,{SubmitToLibraryDialogPopup:()=>X});var s=a(47075),n=a(14041),r=a(89924),i=a(28116),l=a(8339),o=a(97053),d=a(44594),c=a(98827),u=a(48155),g=a(37247),h=a(31085);const p=n.forwardRef(function(e,t){const{render:a,className:s,validationMode:r="onSubmit",errors:i,onSubmit:p,onFormSubmit:x,actionsRef:y,style:b,...f}=e,v=n.useRef({fields:new Map}),j=n.useRef(null),k=n.useRef(!1),w=n.useRef(0),A=(0,l.K)(()=>{let e=!1,t=null;
1for(const a of v.current.fields.values()){if(!1!==a.validityData.state.valid)continue;e=!0;const s=a.controlRef.current;!s||t&&!m(s,t)||(t=s)}return t?(t.focus(),"INPUT"===t.tagName&&t.select(),!0):e}),[C,S]=n.useState(i);(0,g.x)(i,()=>{S(i)}),n.useEffect(()=>{k.current&&(k.current=!1,A())},[C,A]),n.useImperativeHandle(y,()=>({validate(e){e?Array.from(v.current.fields.values()).find(t=>t.name===e)?.validate():v.current.fields.forEach(e=>{e.validate()})}}),[]);const N=(0,u.o)("form",e,{ref:[t,j],props:[{noValidate:!0,onSubmit(e){if(w.current+=1,v.current.fields.forEach(e=>{e.validate()}),A())e.preventDefault();else if(k.current=!0,p?.(e),x){e.preventDefault();const t={};v.current.fields.forEach(e=>{e.name&&(t[e.name]=e.getValue())}),x(t,(0,d.M)("none",e.nativeEvent))}}},f]}),E=(0,l.K)(e=>{e&&S(t=>{if(!t||!Object.hasOwn(t,e))return t;const a={...t};return delete a[e],a})}),I=n.useMemo(()=>({elementRef:j,formRef:v,validationMode:r,errors:C??o.t0,clearErrors:E,submitCountRef:w}),[v,r,C,E]);return(0,h.jsx)(c.c.Provider,{value:I,children:N})});function m(e,t){const a=e.compareDocumentPosition(t);return 0===(a&Node.DOCUMENT_POSITION_DISCONNECTED)&&0!==(a&Node.DOCUMENT_POSITION_FOLLOWING)}var x=a(53986),y=a(66006),b=a(73146),f=a(62040),v=a(36287),j=a(53373),k=a.n(j),w=a(17200),A=a(19606),C=a(84574),S=a(74296),N=a(23030),E=a(71969),I=a(55056),D=a(5145),V=a(4891);const L=({onHeaderClick:e})=>(0,h.jsxs)(N.i,{children:[(0,h.jsx)(w.VE,{text:(0,C.Ay)("Add header"),children:(0,h.jsx)(I.I,{render:(0,h.jsx)(E.c,{render:(0,h.jsx)(w.K0,{variant:"ghost",size:16,icon:r.WYS,"aria-label":(0,C.Ay)("Add header")})})})}),(0,h.jsx)(D._G,{children:(0,h.jsxs)(D.rX,{label:(0,C.Ay)("Headers"),children:[(0,h.jsx)(V.Dr,{onClick:()=>e("# "),children:"H1"}),(0,h.jsx)(V.Dr,{onClick:()=>e("## "),children:"H2"}),(0,h.jsx)(V.Dr,{onClick:()=>e("### "),children:"H3"})]})})]}),T=({onTextChange:e,className:t,getStart:a,getEnd:s,value:n})=>{const i=(t="",n="")=>{const r=t+d()+n;e(o(r),a()+t.length,s()+t.length)},l=t=>{const n=d(),r=n.split("\n").map(t).join("\n");e(o(r),a(),s()+r.length-n.length)},o=e=>n.substring(0,a())+e+n.substring(s()),d=()=>n.substring(a(),s());return(0,h.jsxs)(S.K,{className:k()("vpQgd",t),children:[(0,h.jsx)(L,{onHeaderClick:e=>i(e)}),(0,h.jsx)(w.fl,{variant:"ghost",size:16,icon:r.lcf,tooltip:(0,C.Ay)("Add bold text"),onClick:()=>i("**","**")}),(0,h.jsx)(w.fl,{variant:"ghost",size:16,icon:r.uXv,tooltip:(0,C.Ay)("Add italic text"),onClick:()=>i("_","_")}),(0,h.jsx)(w.fl,{variant:"ghost",size:16,icon:r.O$U,tooltip:(0,C.Ay)("Insert quote"),onClick:()=>l(e=>"> "+e)}),(0,h.jsx)(w.fl,{variant:"ghost",size:16,icon:r.Fzf,tooltip:(0,C.Ay)("Insert code snippet"),onClick:()=>{-1!==d().indexOf("\n")?l(e=>" ".repeat(4)+e):i("`","`")}}),(0,h.jsx)(w.fl,{variant:"ghost",size:16,icon:r.GPF,tooltip:(0,C.Ay)("Insert link"),onClick:()=>{const t=d(),s=`[${t}](url)`,n=a()+t.length+3,r=n+3;e(o(s),n,r)}}),(0,h.jsx)(w.fl,{variant:"ghost",size:16,icon:r.mz3,tooltip:(0,C.Ay)("Add bulleted list"),onClick:()=>l(e=>"- "+e)}),(0,h.jsx)(w.fl,{variant:"ghost",size:16,icon:r.ZN1,tooltip:(0,C.Ay)("Add numbered list"),onClick:()=>l((e,t)=>t+1+". "+e)})]})};var O="MlaNm",M="pkebS";const R=["defaultValue","onValueChange","className"],P=e=>{let t=e.defaultValue,a=e.onValueChange,r=e.className,i=(0,x.A)(e,R);const l=(0,n.useRef)(null),o=(0,n.useState)(t??""),d=(0,s.A)(o,2),c=d[0],u=d[1],g=(0,n.useCallback)(()=>{var e;return(null==(e=l.current)?void 0:e.selectionStart)||0},[]),p=(0,n.useCallback)(()=>{var e;return(null==(e=l.current)?void 0:e.selectionEnd)||0},[]),m=(0,n.useCallback)(e=>{u(e),null==a||a(e)},[a]),j=(0,n.useCallback)((e,t,s)=>{u(e),null==a||a(e),setTimeout(()=>{const e=l.current;null!=e&&(e.focus(),e.setSelectionRange(t,s))})},[a]);return(0,h.jsxs)(y.p,{className:k()("Hi0sx",r),defaultValue:"write",children:[(0,h.jsxs)("div",{className:"g8EuY",children:[(0,h.jsxs)(b.j,{className:"aV2EV",children:[(0,h.jsx)(f.M,{className:M,value:"write",children:(0,C.Ay)("Write")}),(0,h.jsx)(f.M,{className:k()(M,"xZMx9"),value:"preview",children:(0,C.Ay)("Preview")})]}),(0,h.jsx)(T,{className:"ZaSVy",onTextChange:j,getStart:g,getEnd:p,value:c})]}),(0,h.jsxs)("div",{className:"wKOmo",children:[(0,h.jsx)(v.R,{className:O,value:"write",children:(0,h.jsx)(w.fs,Object.assign(Object.assign({},i),{},{className:"rU8Wy",onValueChange:m,controlClassName:"U7g5Y",value:c,ref:l}))}),(0,h.jsx)(v.R,{className:O,value:"preview",children:(0,h.jsx)(A.B,{className:"Nbff7",children:c||(0,C.Ay)("Nothing to preview")})})]}),(0,h.jsx)(w.N_,{to:"https://www.markdownguide.org/",absolute:!0,target:"_blank",className:"NMBtO",children:(0,C.Ay)("Styling with Markdown is supported")})]})},_=(0,n.memo)(P);var U=a(88300),F=a(34835),q=a(50445),z=a(9583),G=a(56646),$=a(18940),H=a(27212),W=a(9210),K=a(75391),B=a(97762),Y=a(63313),Q=a(14202);const X=({onSubmitComplete:e,onLoadingChange:t})=>{const a=(0,$.GV)(e=>
1e.regexEditor.permalinkDetails.fragment),l=(0,$.GV)(e=>e.regexEditor.permalinkDetails.isLibraryEntry),o=(0,$.GV)(e=>e.regexEditor.permalinkDetails.isEditable),d=(0,$.GV)(e=>e.regexEditor.libraryDetails.description)||"",c=(0,$.GV)(e=>e.regexEditor.libraryDetails.title)||"",u=(0,$.GV)(e=>e.regexEditor.libraryDetails.author)||"",g=(0,q.iF)(),m=(0,s.A)(g,2),x=m[0],y=m[1],b=(0,q.$Y)(),f=(0,s.A)(b,2),v=f[0],j=f[1],k=(0,z.M)(null),A=l&&o,S=(0,n.useState)(!1),N=(0,s.A)(S,2),E=N[0],I=N[1],D=(0,n.useState)(A?c:""),V=(0,s.A)(D,2),L=V[0],T=V[1],O=(0,n.useState)(A?u:""),M=(0,s.A)(O,2),R=M[0],P=M[1],X=(0,n.useState)(A?d:""),Z=(0,s.A)(X,2),J=Z[0],ee=Z[1],te=(0,n.useCallback)(e=>{T(e),I(!0)},[]),ae=(0,n.useCallback)(e=>{P(e),I(!0)},[]),se=(0,n.useCallback)(e=>{ee(e),I(!0)},[]),ne=y.isLoading||j.isLoading,re=y.isSuccess||j.isSuccess;return(0,n.useEffect)(()=>(t(ne),()=>t(!1)),[ne,t]),(0,h.jsxs)(B.h,{className:"UYG6q",children:[(0,h.jsx)(Q.c,{isLoading:ne,children:A?(0,C.Ay)("Update Community Library Entry"):(0,C.Ay)("Submit Workspace to the Community Library")}),(0,h.jsxs)(p,{className:"phsyB",onFormSubmit:async()=>{(0,G.s)("library.save_requested",{operation:A?"update":"submit"});const t={title:L,description:J,author:R||null};try{if(A)await v({permalinkFragment:a,body:t}).unwrap(),(0,W.oR)((0,h.jsx)(w.WV,{text:"Your Community Library entry has been updated ({1})",ph1:(0,h.jsx)("code",{children:(0,h.jsxs)(w.N_,{to:`/library/${a}`,children:["/library/",a]})})}),{type:"success",timeout:0});else{const e=(await x({body:{workspaceData:k,libraryData:t}}).unwrap()).permalinkFragment;(0,W.oR)((0,h.jsx)(w.WV,{text:"Your workspace has been successfully submitted to the Community Library ({1})",ph1:(0,h.jsx)("code",{children:(0,h.jsxs)(w.N_,{to:`/library/${e}`,children:["/library/",e]})})}),{type:"success",timeout:0})}e()}catch(e){H.A.warn("Unable to perform action",e),(0,W.oR)(A?(0,C.Ay)("There was a problem while trying to update your Community Library entry. Please try again later."):(0,C.Ay)("There was a problem while trying to submit your workspace to the library. Please try again later."),{type:"error"})}},children:[(0,h.jsxs)(K.R,{children:[(0,h.jsxs)(U.D,{children:[(0,h.jsx)(U.q,{header:(0,C.Ay)("Title"),name:"title",required:!0,children:(0,h.jsx)(w.ks,{maxLength:150,showLengthCounter:!0,onValueChange:te,defaultValue:L,placeholder:(0,C.Ay)("Title of workspace"),disabled:ne||re,required:!0})}),(0,h.jsx)(U.q,{header:(0,C.Ay)("Author"),name:"author",children:(0,h.jsx)(w.ks,{maxLength:150,showLengthCounter:!0,onValueChange:ae,defaultValue:R,placeholder:(0,C.Ay)("Name or other identifier of the author"),disabled:ne||re})}),(0,h.jsx)(U.q,{header:(0,C.Ay)("Description"),name:"description",required:!0,children:(0,h.jsx)(_,{maxLength:5e3,showLengthCounter:!0,onValueChange:se,placeholder:(0,C.Ay)("Description of workspace"),defaultValue:J,disabled:ne||re,required:!0})})]}),(0,h.jsx)(w.$T,{type:"info",className:"oHHrf",children:(0,h.jsx)(w.WV,{text:"Please remember this workspace will be public in the Community Library. To save, access and manage your personal workspaces, please go to the {1} instead.",ph1:(0,h.jsx)(w.N_,{to:`/account/${F.I.MINE}`,children:(0,C.Ay)("Account Page")})})})]}),(0,h.jsxs)(Y.E,{children:[(0,h.jsx)(w.$n,{text:A?(0,C.Ay)("Update"):(0,C.Ay)("Submit"),disabled:!E||0===L.length||0===J.length||ne||re,loading:ne,type:"submit",color:"primary",icon:A?r.vAB:r.Qv8}),(0,h.jsx)(i.H,{disabled:ne,render:(0,h.jsx)(w.$n,{text:(0,C.Ay)("Cancel"),variant:"ghost"})})]})]})]})}},88300(e,t,a){a.d(t,{D:()=>o,q:()=>d});var s=a(56938),n=a(44569),r=a(53373),i=a.n(r),l=a(31085);const o=({children:e,className:t})=>(0,l.jsx)("div",{className:i()("_Irk9",t),children:e}),d=({children:e,disabled:t,header:a,name:r,required:i})=>(0,l.jsxs)(s.X,{className:"e5wb4",disabled:t,name:r,children:[(0,l.jsxs)(n.d,{className:"skTHi PM3QQ",nativeLabel:!1,render:(0,l.jsx)("span",{}),children:[a,i&&(0,l.jsx)("span",{className:"rP294",children:" *"})]}),(0,l.jsx)("div",{className:"IycOP",children:e})]})},97962(e,t,a){a.d(t,{i:()=>q});var s=a(47075),n=a(14041),r=a(89924),i=a(76972),l=a(60553),o=a(97053),d=a(48155),c=a(99395),u=a(42309),g=a(21963),h=a(93077),p=a(31085);const m=n.forwardRef(function(e,t){const{render:a,className:s,style:r,...i}=e,l=(0,g.Ee)(),m=l.useState("open"),x=l.useState("hasSelectionChips"),[y,b]=n.useState(void 0);m&&void 0!==y&&b(void 0);const f=n.useRef([]),v=(0,d.o)("div",e,{ref:[t,l.context.chipsContainerRef],props:[x?{role:"toolbar"}:o.t0,{onMouseDown(e){(0,h.E)(e,l,l.state.disabled)}},i]}),j=n.useMemo(()=>({highlightedChipIndex:y,setHighlightedChipIndex:b,chipsRef:f}),[y,b,f]);return(0,p.jsx)(c.Y.Provider,{value:j,children:(0,p.jsx)(u.u,{elementsRef:f,children:v})})});var x=a(82274),y=a(43144),b=a(62971),f=a(91496);const v=n.createContext(void 0);var j=a(75244),k=a(44594),w=a(70476),A=a(46933),C=a(14104);const S=n.forwardRef(function(e,t){const{render:a,className:s,style:r,...i}=e,l=(0,g.Ee)(),{setHighlightedChipIndex:o,chipsRef:u}=(0,c.d)(),h=(0,A.j)(),m=l.useState("disabled"),x=l.useState("readOnly"),f=l.useState("selectedValue"),{ref:S,index:N}=(0,b.q)(),E={disabled:m},I=(0,d.o)("div",e,{ref:[t,S],state:E,props:[{tabIndex:-1,"aria-disabled":m||void 0,"aria-readonly":x||void 0,onKeyDown(e){if(m||x)return;const t=function(e){let t=N;const[a,s]=(0,C.ln)(h);return e.key===a?(e.preventDefault(),t=N>0?N-1:void 0):e.key===s?(e.preventDefault(),t=N<u.current.length-1?N+1:void 0):"Backspace"===e.key||"Delete"===e.key?(t=(0,C.jr)(N,f.length),(0,j.jo)(e),l.context.setIndices({activeIndex:null,selectedIndex:null,type:w.QJ}),l.context.setSelectedValue(f.filter((e,t)=>
1t!==N),(0,k.d)("none",e.nativeEvent))):"Enter"===e.key||" "===e.key?((0,j.jo)(e),t=void 0):"ArrowDown"===e.key||"ArrowUp"===e.key?((0,j.jo)(e),l.context.setOpen(!0,(0,k.d)(w.Dq,e.nativeEvent)),t=void 0):1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey||(t=void 0),t}(e);y.flushSync(()=>{o(t)}),void 0===t?l.context.inputRef.current?.focus():u.current[t]?.focus()}},i]}),D=n.useMemo(()=>({index:N}),[N]);return(0,p.jsx)(v.Provider,{value:D,children:I})});var N=a(83911),E=a(18256);const I=n.forwardRef(function(e,t){const{render:a,className:s,disabled:r=!1,nativeButton:i=!0,style:l,...o}=e,c=(0,g.Ee)(),{index:u}=function(){const e=n.useContext(v);if(!e)throw new Error((0,f.A)(17));return e}(),h=c.useState("disabled"),p=c.useState("readOnly"),m=c.useState("selectedValue"),x=c.useState("isItemEqualToValue"),y=h||r,{buttonRef:b,getButtonProps:A}=(0,N.s)({native:i,disabled:y||p,focusableWhenDisabled:!0}),C={disabled:y};function S(e){const t=(0,k.d)(w.ux,e.nativeEvent);return function(e){const t=c.state.activeIndex;if(null==t)return;const a=(0,E.Vz)(c.context.valuesRef.current,e,x);-1!==a&&t===a&&c.context.setIndices({activeIndex:null,type:c.context.keyboardActiveRef.current?w.QJ:w.Wn})}(m[u]),c.context.setSelectedValue(m.filter((e,t)=>t!==u),t),c.context.inputRef.current?.focus(),t}return(0,d.o)("button",e,{ref:[t,b],state:C,props:[{tabIndex:-1,onMouseDown(e){e.preventDefault()},onClick(e){S(e).isPropagationAllowed||e.stopPropagation()},onKeyDown(e){"Enter"!==e.key&&" "!==e.key||S(e).isPropagationAllowed||(0,j.jo)(e)}},o,A]})});var D=a(4382),V=a(682),L=a(95418),T=a(99554),O=a(23626),M=a(17273),R=a(3341),P=a(90236),_=a(7267),U=a(84574),F=a(27345);const q=({allowCreate:e=!1,availableTags:t,disabled:a,onValueChange:o,value:d})=>{const c=(0,n.useState)(""),u=(0,s.A)(c,2),g=u[0],h=u[1],y=e&&g.length>0&&!t.includes(g)&&!d.includes(g),b=[...new Set([...t,...d])],f=y?[g,...b]:b;return(0,p.jsxs)(i.i,{autoHighlight:!0,disabled:a,inputValue:g,items:f,multiple:!0,onInputValueChange:t=>{e&&!/^\w*$/u.test(t)||h(t)},onValueChange:e=>{o(e),h("")},openOnInputClick:!0,value:d,children:[(0,p.jsxs)(l.v,{className:"P6UOe vtweW",children:[(0,p.jsx)(m,{className:"Rse63",children:(0,p.jsx)(x.p,{children:t=>(0,p.jsxs)(p.Fragment,{children:[t.map(e=>(0,p.jsxs)(S,{"aria-label":e,className:"movSo",children:[(0,p.jsx)("span",{className:"gsUKP PM3QQ",children:e}),(0,p.jsx)(I,{"aria-label":(0,U.Ay)("Remove {1}",e),className:"iGAdq C6U5L",children:(0,p.jsx)(r.SXS,{size:12})})]},e)),(0,p.jsx)(D.o,{"aria-label":(0,U.Ay)("Tags"),className:"NJvnd U7dvf",maxLength:125,placeholder:0===t.length?e?(0,U.Ay)("Type a tag or choose a suggestion"):(0,U.Ay)("Filter by tags"):void 0})]})})}),(0,p.jsx)(V.M,{"aria-label":(0,U.Ay)("Show tag suggestions"),className:"Ii_U_ C6U5L",children:(0,p.jsx)(r.zrT,{size:16})})]}),(0,p.jsx)(L.K,{children:(0,p.jsx)(T.o,{align:"start",className:F.Ej,collisionPadding:12,sideOffset:4,children:(0,p.jsxs)(O.I,{className:F.lY,children:[(0,p.jsx)(M.$,{className:F.Ie,children:0===b.length?(0,U.Ay)("No tags available"):(0,U.Ay)("No matching tags")}),(0,p.jsx)(R.e,{className:F.p_,children:e=>(0,p.jsxs)(P.x,{className:F.AS,value:e,children:[(0,p.jsx)("span",{className:F.rv,children:y&&e===g?(0,U.Ay)("Add \u201c{1}\u201d",e):e}),(0,p.jsx)(_.Q,{className:F.be,children:(0,p.jsx)(r.sk9,{})})]},e)})]})})})]})}},9583(e,t,a){var s=a(14041),n=a(57306),r=a(845),i=a(77196),l=a(13176),o=a(18940);a.d(t,["M",0,e=>{const t=(0,l.w)().editorMode,a=(0,o.GV)(e=>({regex:e.regexEditor.regex,testStrings:e.regexEditor.testStrings,flags:e.regexEditor.flags,delimiter:e.regexEditor.delimiter,flavor:e.regexEditor.flavor,substString:e.regexEditor.substString,extractionString:e.regexEditor.extractionString,unitTests:e.unitTests.tests,pipelineInitialInput:e.substitutionPipeline.initialInput,pipelineLayers:e.substitutionPipeline.layers}),n.bN);return(0,s.useMemo)(()=>{if(t===r.lX.SUBSTITUTION_PIPELINE)return{permalinkFragment:e,editorMode:t,initialInput:a.pipelineInitialInput,layers:a.pipelineLayers.map(e=>Object.assign(Object.assign({name:e.name,disabled:e.disabled,regex:e.regex},{flags:e.flags,delimiter:e.delimiter,flavor:e.flavor}),e.extractionMode?{substitution:null,extraction:e.substitution}:{substitution:e.substitution,extraction:null}))};const s=(0,i.P0)({editorMode:t,substString:a.substString,extractionString:a.extractionString}),n=s.substitution,l=s.extraction;return Object.assign(Object.assign({permalinkFragment:e,editorMode:t,unitTests:a.unitTests.map(e=>({description:e.description,testString:e.testString,compareString:e.compareString,target:e.target,criteria:e.criteria})),regex:a.regex,testStrings:(0,i.E8)(a.testStrings)?a.testStrings.map(({name:e,value:t,disabled:a})=>({name:e,value:t,disabled:a})):[]},{flags:a.flags,delimiter:a.delimiter,flavor:a.flavor}),{},{substitution:n,extraction:l})},[t,a,e])}])},74296(e,t,a){var s=a(14041),n=a(45770),r=a(34225),i=a(31085);const l=s.forwardRef(function(e,t){const{disabled:a=!1,loopFocus:l,orientation:o="horizontal",className:d,render:c,style:u,...g}=e,[h,p]=s.useState(()=>new Map),m=s.useMemo(()=>{const e=[];for(const t of h.values())t.disabled&&!t.focusableWhenDisabled&&e.push(t.index);return e},[h]),x=s.useMemo(()=>({disabled:a,orientation:o}),[a,o]),y={disabled:a,orientation:o},b={"aria-orientation":o,role:"toolbar"};return(0,i.jsx)(r.t.Provider,{value:x,children:(0,i.jsx)(n.Y,{render:c,className:d,style:u,state:y,refs:[t],props:[b,g],disabledIndices:m,loopFocus:l,onMapChange:p,orientation:o})})});a.d(t,["K",0,l])}}]);

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.