pulls.review 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/dist/client/assets/ActionButton-BYTohOMA.js +1 -0
  2. package/dist/client/assets/ActionIconButton-B2taMg1G.js +1 -0
  3. package/dist/client/assets/ChatMessage-BRtxpV-j.js +80 -0
  4. package/dist/client/assets/ChatWidget-DGoJBAHG.js +1 -0
  5. package/dist/client/assets/DisplayFileIcon-CgcKzuIF.js +151 -0
  6. package/dist/client/assets/LandingHero-BcDLrBWu.js +1 -0
  7. package/dist/client/assets/LocalAgentSettings-DnWX-4ja.js +1 -0
  8. package/dist/client/assets/MarkdownMermaid-CZsnBTo5.js +134 -0
  9. package/dist/client/assets/ModelPicker-DJOF4_oE.js +3 -0
  10. package/dist/client/assets/SelectViewport-CLu2vHZ1.js +1 -0
  11. package/dist/client/assets/_repo_-B9Xsfdgp.js +22 -0
  12. package/dist/client/assets/analyze-Dt4HsiiL.js +1 -0
  13. package/dist/client/assets/{core-messages-E0LWb5xA.js → core-messages-BKVsL0s6.js} +1 -1
  14. package/dist/client/assets/dark-BBICmi9u.js +1 -0
  15. package/dist/client/assets/de-X0_7KOpR.js +1 -0
  16. package/dist/client/assets/decode-BMLx_QAi.js +1 -0
  17. package/dist/client/assets/{diagnostics-DundJi2s.js → diagnostics-FPncUZ9A.js} +1 -1
  18. package/dist/client/assets/diff-BVBdGkpM.js +37 -0
  19. package/dist/client/assets/diff-CNjyt43T.js +1 -0
  20. package/dist/client/assets/diffs-store-M5WP-Rye.js +1432 -0
  21. package/dist/client/assets/dist-B3ulq7dg.js +3 -0
  22. package/dist/client/assets/en-4wf48bhl.js +1 -0
  23. package/dist/client/assets/es-z_aJuLEM.js +1 -0
  24. package/dist/client/assets/fr-BSSnc845.js +1 -0
  25. package/dist/client/assets/i18n-BaWfCCFj.js +2 -0
  26. package/dist/client/assets/id-DpmfJDwA.js +1 -0
  27. package/dist/client/assets/index-B346Vuj9.css +1 -0
  28. package/dist/client/assets/index-DAczNoU5.js +2 -0
  29. package/dist/client/assets/install-BtceKESn.js +4 -0
  30. package/dist/client/assets/it-DnvTXQOp.js +1 -0
  31. package/dist/client/assets/ja-EKD3f8pB.js +1 -0
  32. package/dist/client/assets/ko-3WANYsbE.js +1 -0
  33. package/dist/client/assets/llm-DwxQbGwE.js +88 -0
  34. package/dist/client/assets/llm-store-CBiRLoQj.js +1 -0
  35. package/dist/client/assets/local-agents-Bhc2OYII.js +1 -0
  36. package/dist/client/assets/pages-IPE7GMm2.js +1 -0
  37. package/dist/client/assets/pages-local-B-qUAdMG.js +1 -0
  38. package/dist/client/assets/pages-web-CV7QqqdA.js +21 -0
  39. package/dist/client/assets/portalTarget-DKryvPGY.js +1 -0
  40. package/dist/client/assets/pt-BR-BC7-mMJ3.js +1 -0
  41. package/dist/client/assets/rpc-backends-Bm_fmyjf.js +1 -0
  42. package/dist/client/assets/ru-ChI2XEFF.js +1 -0
  43. package/dist/client/assets/runtime-dom.esm-bundler-D9VhaAqy.js +2 -0
  44. package/dist/client/assets/{source-CvnvCX42.js → source-BWADV8Aq.js} +1 -1
  45. package/dist/client/assets/time-ago-CMSCAiQn.js +1 -0
  46. package/dist/client/assets/upload-riZ3DIfL.js +1 -0
  47. package/dist/client/assets/useCommitView-CgsbPEnq.js +1 -0
  48. package/dist/client/assets/useDocumentTitle-D1Q-0ufQ.js +92 -0
  49. package/dist/client/assets/useNonce-AntPf6d2.js +1 -0
  50. package/dist/client/assets/useTypeahead-DtM58Ahg.js +1 -0
  51. package/dist/client/assets/utils-DaMPgnza.js +1 -0
  52. package/dist/client/assets/vue-i18n-X72ILEtz.js +3 -0
  53. package/dist/client/assets/zh-CN-DXr4JfHY.js +1 -0
  54. package/dist/client/assets/zh-TW-CmCU_HxU.js +1 -0
  55. package/dist/client/index.html +9 -8
  56. package/dist/{devframe-Z3sgjlMJ.mjs → devframe-C2cyQ64F.mjs} +1 -1
  57. package/dist/devframe.mjs +1 -1
  58. package/dist/index.mjs +6 -2
  59. package/package.json +2 -2
  60. package/dist/client/assets/ActionButton-wEgApzce.js +0 -1
  61. package/dist/client/assets/ActionIconButton-wh9iuTi4.js +0 -1
  62. package/dist/client/assets/ChatMessage-wZOblr2O.js +0 -80
  63. package/dist/client/assets/ChatWidget-Dbic6F6V.js +0 -1
  64. package/dist/client/assets/DisplayFileIcon-DffhOXN6.js +0 -151
  65. package/dist/client/assets/GithubAvatar-eLlc5vap.js +0 -1
  66. package/dist/client/assets/LandingHero-Bb_CGwOP.js +0 -1
  67. package/dist/client/assets/LocalAgentSettings-CWvSCuNr.js +0 -1
  68. package/dist/client/assets/ModelPicker-CLoBWotf.js +0 -3
  69. package/dist/client/assets/SelectViewport-Dt28PIGK.js +0 -1
  70. package/dist/client/assets/_repo_-BIF9MuRW.js +0 -22
  71. package/dist/client/assets/analyze-B3YV6_zK.js +0 -1
  72. package/dist/client/assets/de-BfUc2exP.js +0 -1
  73. package/dist/client/assets/diff-BwixkBTz.js +0 -1
  74. package/dist/client/assets/diff-Coo81SbJ.js +0 -37
  75. package/dist/client/assets/diffs-store-BPvgHGVY.js +0 -1431
  76. package/dist/client/assets/en-OkC_9BLh.js +0 -1
  77. package/dist/client/assets/es-DuVRv3jP.js +0 -1
  78. package/dist/client/assets/fr-BI5_M_ty.js +0 -1
  79. package/dist/client/assets/i18n-DtZTpAlH.js +0 -2
  80. package/dist/client/assets/id-BU9INgNZ.js +0 -1
  81. package/dist/client/assets/index-Buksdj5x.js +0 -2
  82. package/dist/client/assets/index-m8kW8Q0V.css +0 -1
  83. package/dist/client/assets/install-BrSGg9K8.js +0 -4
  84. package/dist/client/assets/it-C2TUiK_A.js +0 -1
  85. package/dist/client/assets/ja-BQDWzjgo.js +0 -1
  86. package/dist/client/assets/ko-Ca7kDPia.js +0 -1
  87. package/dist/client/assets/llm-5e9k-gOP.js +0 -88
  88. package/dist/client/assets/llm-store-1j45N-6d.js +0 -1
  89. package/dist/client/assets/local-agents-0SHBuj0A.js +0 -1
  90. package/dist/client/assets/pages-hDJHVoGR.js +0 -1
  91. package/dist/client/assets/pages-local-0BoMyVi4.js +0 -1
  92. package/dist/client/assets/pages-web-QiNoFNlt.js +0 -21
  93. package/dist/client/assets/portalTarget-I9JDQCD2.js +0 -1
  94. package/dist/client/assets/pt-BR-DcjGEP2y.js +0 -1
  95. package/dist/client/assets/rpc-backends-arDnFRtp.js +0 -1
  96. package/dist/client/assets/ru-DhCHBcLb.js +0 -1
  97. package/dist/client/assets/runtime-dom.esm-bundler-DL194Z-s.js +0 -2
  98. package/dist/client/assets/time-ago-Bdao9Hh1.js +0 -1
  99. package/dist/client/assets/upload-Bi-0MPhd.js +0 -1
  100. package/dist/client/assets/useDocumentTitle-DSsMzDvH.js +0 -92
  101. package/dist/client/assets/useNonce-DujRSGP5.js +0 -1
  102. package/dist/client/assets/useTypeahead-CV0JPPYe.js +0 -1
  103. package/dist/client/assets/utils-bzkWQhBP.js +0 -1
  104. package/dist/client/assets/vue-i18n-B4RRzKT-.js +0 -5
  105. package/dist/client/assets/zh-CN-DKqrk-nJ.js +0 -1
  106. package/dist/client/assets/zh-TW-CXhwUL4C.js +0 -1
@@ -0,0 +1 @@
1
+ import{$ as e,Bt as t,Cr as n,Dr as r,Er as i,G as a,H as o,K as s,Kt as c,M as l,Q as u,Tt as d,U as f,W as p,Wn as m,er as h,h as g,sn as _,tt as v,un as y,xn as b,yn as x}from"./dist-B3ulq7dg.js";import{x as S}from"./runtime-dom.esm-bundler-D9VhaAqy.js";import{t as C}from"./ActionButton-BYTohOMA.js";import{t as w}from"./ActionIconButton-B2taMg1G.js";import{a as T,o as E,s as D,t as O}from"./ChatMessage-BRtxpV-j.js";var k={class:`flex items-center gap-2 border-b border-base px-3 py-2`},A={class:`flex-auto text-sm font-semibold`},j={key:0,class:`flex flex-auto items-center justify-center p-6 text-center text-sm op-mute`},M={key:0,class:`flex items-center gap-1.5 text-xs op-mute`,role:`status`},N={key:0,class:`break-words px-3 pb-2 text-xs text-red-500`},P={class:`flex items-end gap-2 border-t border-base p-2`},F=[`placeholder`,`aria-label`,`disabled`],I=[`aria-label`,`title`],L=v({__name:`ChatWidget`,props:d({store:{},docked:{type:Boolean}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:[`update:open`],setup(d){let v=d,L=o(()=>v.store.llm.chat),R=_(d,`open`),z=m(``),B=o(()=>L.value.isStreaming||v.store.llm.isAnalyzing),V=o(()=>L.value.messages.length-1),H=o(()=>{let e=L.value.messages.at(-1);return e?.role===`assistant`&&e.stopReason===`error`}),U=o(()=>{if(!L.value.isStreaming)return!1;let e=L.value.messages.at(-1),t=e?.role===`assistant`?e.content.at(-1):void 0;return!(t?.type===`text`&&t.text.trim())}),W=y(`listEl`),G=y(`contentEl`),K=m(!0);function q(){let e=W.value;e&&(K.value=e.scrollHeight-e.scrollTop-e.clientHeight<40)}g(G,()=>{K.value&&W.value&&(W.value.scrollTop=W.value.scrollHeight)});async function J(){let e=z.value;e.trim()&&!B.value&&(z.value=``,K.value=!0,await L.value.send(e))}let Y=o(()=>v.docked&&R.value),X=y(`root`),Z=o(()=>Y.value&&E.value?{width:`min(${E.value}px, ${T*100}%)`}:void 0),{resizing:Q,onPointerDown:$}=D({target:()=>X.value,width:E,min:320,max:()=>X.value.parentElement.clientWidth*T,edge:`left`});function ee(e){e.key!==`Enter`||e.shiftKey||e.isComposing||(e.preventDefault(),J())}return(o,d)=>(t(),s(`div`,{ref:`root`,class:n(Y.value?`relative w-120 shrink-0 border-l border-base`:`fixed bottom-4 right-4 z-dropdown`),style:i(Z.value)},[R.value?(t(),s(`div`,{key:1,class:n([`flex flex-col overflow-hidden bg-base`,Y.value?`sticky top-[var(--diffs-header-height,0px)] h-[calc(100vh-var(--diffs-header-height,0px))]`:`h-140 max-h-[calc(100vh-2rem)] max-w-[calc(100vw-2rem)] w-100 border border-base rounded-lg shadow-xl`])},[f(`div`,k,[d[9]||=f(`span`,{class:`i-ph:chat-circle-dots-duotone op-mute`,"aria-hidden":`true`},null,-1),f(`span`,A,r(o.$t(`chat.title`)),1),L.value.available?(t(),p(C,{key:0,size:`sm`,variant:`text`,onClick:d[1]||=e=>L.value.clear()},{default:x(()=>[u(r(o.$t(`common.clear`)),1)]),_:1})):a(``,!0),e(w,{compact:``,icon:`i-ph:caret-down`,tooltip:o.$t(`chat.collapse`),onClick:d[2]||=e=>R.value=!1},null,8,[`tooltip`])]),L.value.available?(t(),s(l,{key:1},[f(`div`,{ref_key:`listEl`,ref:W,class:`min-w-0 flex-auto overflow-y-auto overscroll-contain p-3`,onScroll:q},[f(`div`,{ref_key:`contentEl`,ref:G,class:`flex flex-col gap-3`},[(t(!0),s(l,null,c(L.value.messages,(e,n)=>(t(),p(O,{key:n,message:e,retryable:n===V.value&&!L.value.isStreaming,onRetry:d[3]||=e=>L.value.retry()},null,8,[`message`,`retryable`]))),128)),U.value?(t(),s(`div`,M,[d[10]||=f(`span`,{class:`i-ph:spinner-duotone animate-spin`,"aria-hidden":`true`},null,-1),u(` `+r(o.$t(`chat.thinking`)),1)])):a(``,!0)],512)],544),L.value.error&&!H.value?(t(),s(`p`,N,r(L.value.error.message),1)):a(``,!0),f(`div`,P,[b(f(`textarea`,{"onUpdate:modelValue":d[4]||=e=>z.value=e,rows:`2`,placeholder:o.$t(`chat.placeholder`),"aria-label":o.$t(`chat.title`),disabled:B.value,class:`flex-auto resize-none border border-base rounded bg-raised p-2 text-sm outline-none disabled:op-mute focus-visible:ring-2 focus-visible:ring-primary-500/40`,onKeydown:ee},null,40,F),[[S,z.value]]),L.value.isStreaming?(t(),p(C,{key:0,size:`sm`,icon:`i-ph:stop-duotone`,onClick:d[5]||=e=>L.value.stop()},{default:x(()=>[u(r(o.$t(`common.stop`)),1)]),_:1})):(t(),p(C,{key:1,size:`sm`,variant:`primary`,icon:`i-ph:paper-plane-right-duotone`,disabled:B.value||!z.value.trim(),onClick:d[6]||=e=>J()},{default:x(()=>[u(r(o.$t(`common.send`)),1)]),_:1},8,[`disabled`]))])],64)):(t(),s(`div`,j,r(o.$t(`chat.reanalyzeToEnable`)),1))],2)):(t(),p(w,{key:0,icon:`i-ph:chat-circle-dots-duotone`,title:o.$t(`chat.title`),label:o.$t(`chat.title`),class:`border border-base bg-base text-xl shadow-lg`,onClick:d[0]||=e=>R.value=!0},null,8,[`title`,`label`])),Y.value?(t(),s(`div`,{key:2,role:`separator`,"aria-orientation":`vertical`,"aria-label":o.$t(`group.resize`),title:o.$t(`group.resize`),class:`group/resize absolute inset-y-0 left-0 w-3 flex cursor-col-resize touch-none justify-center -translate-x-1/2`,onPointerdown:d[7]||=(...e)=>h($)&&h($)(...e),onDblclick:d[8]||=e=>E.value=null},[f(`div`,{class:n([`w-px transition-colors`,h(Q)?`bg-primary-500`:`group-hover/resize:bg-primary-500`])},null,2)],40,I)):a(``,!0)],6))}});export{L as default};
@@ -0,0 +1,151 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./typescript-BTGs5etX.js","./rolldown-runtime-Dd_uD5pT.js","./javascript-DcMHgNcu.js","./jsx-BUUYi3qs.js","./tsx-DvWhG4dC.js","./vue-BbYmdtmv.js","./css-DlBQoFxe.js","./html-BC8aFsRK.js","./json-qhed-kSA.js","./vue-html-BXjKVtKk.js","./glimmer-js-BheR6Tf0.js","./glimmer-ts-B3Q3-uij.js","./handlebars-qjPKy-PP.js","./yaml-rwi0_p6S.js","./scss-C-_0yqZd.js","./xml-BsprbK0m.js","./java-D7h0NA_A.js","./c-BNQJhXlP.js","./cpp-7GgD5o7L.js","./ruby-CaMjWH7T.js","./graphql-ki1Ij_uk.js","./lua-DCW0Dwo5.js","./sql-BsFa4tDR.js","./shellscript-CLZ0U2zV.js","./php-BahmaYs0.js","./perl-C8GHouAq.js","./elixir-D3n0XgqJ.js","./nginx-C4fSytnP.js"])))=>i.map(i=>d[i]);
2
+ import{n as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Bt as t,Cr as n,Er as r,H as i,K as a,U as o,er as s,tt as c}from"./dist-B3ulq7dg.js";import{t as l}from"./preload-helper-BaNbYf_w.js";import{A as u,C as d,D as f,E as p,F as m,H as h,I as g,L as _,M as ee,N as te,O as ne,P as re,R as v,S as ie,T as ae,j as oe,k as se,w as y,x as ce}from"./useDocumentTitle-D1Q-0ufQ.js";var le=new Map,ue=new Map,de=new Map,fe=new Set;function pe(e){for(let t of Array.isArray(e)?e:[e])if(t!==`text`&&t!==`ansi`&&!fe.has(t))return!1;return!0}function me(e,t){e=Array.isArray(e)?e:[e];for(let n of e){if(fe.has(n.name))continue;let e=le.get(n.name);e??(e=n,le.set(n.name,e));let r=e.data.find(t=>t.name===e.name||t.aliases?.includes(e.name)===!0);if(r==null)throw Error(`attachResolvedLanguages: No returned grammar declares "${e.name}" as its name or an alias.`);t.loadLanguageSync(e.data);try{t.getLanguage(e.name)}catch{throw Error(`attachResolvedLanguages: "${r.name}" is already loaded without alias "${e.name}". Load the alias first or give the grammar a unique name.`)}fe.add(e.name)}}function he(){return typeof WorkerGlobalScope<`u`&&typeof self<`u`&&self instanceof WorkerGlobalScope}var ge=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`],_e=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};_e.prototype.normal={},_e.prototype.property={},_e.prototype.space=void 0;function ve(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new _e(n,r,t)}function ye(e){return e.toLowerCase()}var b=class{constructor(e,t){this.attribute=t,this.property=e}};b.prototype.attribute=``,b.prototype.booleanish=!1,b.prototype.boolean=!1,b.prototype.commaOrSpaceSeparated=!1,b.prototype.commaSeparated=!1,b.prototype.defined=!1,b.prototype.mustUseProperty=!1,b.prototype.number=!1,b.prototype.overloadedBoolean=!1,b.prototype.property=``,b.prototype.spaceSeparated=!1,b.prototype.space=void 0;var be=e({boolean:()=>x,booleanish:()=>S,commaOrSpaceSeparated:()=>E,commaSeparated:()=>T,number:()=>C,overloadedBoolean:()=>Se,spaceSeparated:()=>w}),xe=0,x=D(),S=D(),Se=D(),C=D(),w=D(),T=D(),E=D();function D(){return 2**++xe}var Ce=Object.keys(be),we=class extends b{constructor(e,t,n,r){let i=-1;if(super(e,t),Te(this,`space`,r),typeof n==`number`)for(;++i<Ce.length;){let e=Ce[i];Te(this,Ce[i],(n&be[e])===be[e])}}};we.prototype.defined=!0;function Te(e,t,n){n&&(e[t]=n)}function O(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new we(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[ye(r)]=r,n[ye(a.attribute)]=r}return new _e(t,n,e.space)}var Ee=O({properties:{ariaActiveDescendant:null,ariaAtomic:S,ariaAutoComplete:null,ariaBusy:S,ariaChecked:S,ariaColCount:C,ariaColIndex:C,ariaColSpan:C,ariaControls:w,ariaCurrent:null,ariaDescribedBy:w,ariaDetails:null,ariaDisabled:S,ariaDropEffect:w,ariaErrorMessage:null,ariaExpanded:S,ariaFlowTo:w,ariaGrabbed:S,ariaHasPopup:null,ariaHidden:S,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:w,ariaLevel:C,ariaLive:null,ariaModal:S,ariaMultiLine:S,ariaMultiSelectable:S,ariaOrientation:null,ariaOwns:w,ariaPlaceholder:null,ariaPosInSet:C,ariaPressed:S,ariaReadOnly:S,ariaRelevant:null,ariaRequired:S,ariaRoleDescription:w,ariaRowCount:C,ariaRowIndex:C,ariaRowSpan:C,ariaSelected:S,ariaSetSize:C,ariaSort:null,ariaValueMax:C,ariaValueMin:C,ariaValueNow:C,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function De(e,t){return t in e?e[t]:t}function Oe(e,t){return De(e,t.toLowerCase())}var ke=O({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:T,acceptCharset:w,accessKey:w,action:null,allow:null,allowFullScreen:x,allowPaymentRequest:x,allowUserMedia:x,alpha:x,alt:null,as:null,async:x,autoCapitalize:null,autoComplete:w,autoFocus:x,autoPlay:x,blocking:w,capture:null,charSet:null,checked:x,cite:null,className:w,closedBy:null,colorSpace:null,cols:C,colSpan:C,command:null,commandFor:null,content:null,contentEditable:S,controls:x,controlsList:w,coords:C|T,crossOrigin:null,data:null,dateTime:null,decoding:null,default:x,defer:x,dir:null,dirName:null,disabled:x,download:Se,draggable:S,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:x,formTarget:null,headers:w,height:C,hidden:Se,high:C,href:null,hrefLang:null,htmlFor:w,httpEquiv:w,id:null,imageSizes:null,imageSrcSet:null,inert:x,inputMode:null,integrity:null,is:null,isMap:x,itemId:null,itemProp:w,itemRef:w,itemScope:x,itemType:w,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:x,low:C,manifest:null,max:null,maxLength:C,media:null,method:null,min:null,minLength:C,multiple:x,muted:x,name:null,nonce:null,noModule:x,noValidate:x,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:x,optimum:C,pattern:null,ping:w,placeholder:null,playsInline:x,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:x,referrerPolicy:null,rel:w,required:x,reversed:x,rows:C,rowSpan:C,sandbox:w,scope:null,scoped:x,seamless:x,selected:x,shadowRootClonable:x,shadowRootCustomElementRegistry:x,shadowRootDelegatesFocus:x,shadowRootMode:null,shadowRootSerializable:x,shape:null,size:C,sizes:null,slot:null,span:C,spellCheck:S,src:null,srcDoc:null,srcLang:null,srcSet:null,start:C,step:null,style:null,tabIndex:C,target:null,title:null,translate:null,type:null,typeMustMatch:x,useMap:null,value:S,width:C,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:w,axis:null,background:null,bgColor:null,border:C,borderColor:null,bottomMargin:C,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:x,declare:x,event:null,face:null,frame:null,frameBorder:null,hSpace:C,leftMargin:C,link:null,longDesc:null,lowSrc:null,marginHeight:C,marginWidth:C,noResize:x,noHref:x,noShade:x,noWrap:x,object:null,profile:null,prompt:null,rev:null,rightMargin:C,rules:null,scheme:null,scrolling:S,standby:null,summary:null,text:null,topMargin:C,valueType:null,version:null,vAlign:null,vLink:null,vSpace:C,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:x,disablePictureInPicture:x,disableRemotePlayback:x,exportParts:T,part:w,prefix:null,property:null,results:C,security:null,unselectable:null},space:`html`,transform:Oe}),Ae=O({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:E,accentHeight:C,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:C,amplitude:C,arabicForm:null,ascent:C,attributeName:null,attributeType:null,azimuth:C,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:C,by:null,calcMode:null,capHeight:C,className:w,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:C,diffuseConstant:C,direction:null,display:null,dur:null,divisor:C,dominantBaseline:null,download:x,dx:null,dy:null,edgeMode:null,editable:null,elevation:C,enableBackground:null,end:null,event:null,exponent:C,externalResourcesRequired:null,fill:null,fillOpacity:C,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:T,g2:T,glyphName:T,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:C,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:C,horizOriginX:C,horizOriginY:C,id:null,ideographic:C,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:C,k:C,k1:C,k2:C,k3:C,k4:C,kernelMatrix:E,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:C,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:C,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:C,overlineThickness:C,paintOrder:null,panose1:null,path:null,pathLength:C,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:w,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:C,pointsAtY:C,pointsAtZ:C,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:E,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:E,rev:E,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:E,requiredFeatures:E,requiredFonts:E,requiredFormats:E,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:C,specularExponent:C,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:C,strikethroughThickness:C,string:null,stroke:null,strokeDashArray:E,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:C,strokeOpacity:C,strokeWidth:null,style:null,surfaceScale:C,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:E,tabIndex:C,tableValues:null,target:null,targetX:C,targetY:C,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:E,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:C,underlineThickness:C,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:C,values:null,vAlphabetic:C,vMathematical:C,vectorEffect:null,vHanging:C,vIdeographic:C,version:null,vertAdvY:C,vertOriginX:C,vertOriginY:C,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:C,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:De}),je=O({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),Me=O({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:Oe}),Ne=O({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Pe=/[A-Z]/g,Fe=/-[a-z]/g,Ie=/^data[-\w.:]+$/i;function Le(e,t){let n=ye(t),r=t,i=b;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&Ie.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(Fe,ze);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!Fe.test(e)){let n=e.replace(Pe,Re);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=we}return new i(r,t)}function Re(e){return`-`+e.toLowerCase()}function ze(e){return e.charAt(1).toUpperCase()}var Be=ve([Ee,ke,je,Me,Ne],`html`),Ve=ve([Ee,Ae,je,Me,Ne],`svg`),He={}.hasOwnProperty;function Ue(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&He.call(t,e)){let n=String(t[e]);i=He.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var We=/["&'<>`]/g,Ge=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ke=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,qe=/[|\\{}()[\]^$+*?.]/g,Je=new WeakMap;function Ye(e,t){return e=e.replace(t.subset?Xe(t.subset):We,r),t.subset||t.escapeOnly?e:e.replace(Ge,n).replace(Ke,r);function n(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}function r(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function Xe(e){let t=Je.get(e);return t||(t=Ze(e),Je.set(e,t)),t}function Ze(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(qe,`\\$&`));return RegExp(`(?:`+t.join(`|`)+`)`,`g`)}var Qe=/[\dA-Fa-f]/;function $e(e,t,n){let r=`&#x`+e.toString(16).toUpperCase();return n&&t&&!Qe.test(String.fromCharCode(t))?r:r+`;`}var et=/\d/;function tt(e,t,n){let r=`&#`+String(e);return n&&t&&!et.test(String.fromCharCode(t))?r:r+`;`}var nt=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`),rt={nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,fnof:`ƒ`,Alpha:`Α`,Beta:`Β`,Gamma:`Γ`,Delta:`Δ`,Epsilon:`Ε`,Zeta:`Ζ`,Eta:`Η`,Theta:`Θ`,Iota:`Ι`,Kappa:`Κ`,Lambda:`Λ`,Mu:`Μ`,Nu:`Ν`,Xi:`Ξ`,Omicron:`Ο`,Pi:`Π`,Rho:`Ρ`,Sigma:`Σ`,Tau:`Τ`,Upsilon:`Υ`,Phi:`Φ`,Chi:`Χ`,Psi:`Ψ`,Omega:`Ω`,alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ε`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`π`,rho:`ρ`,sigmaf:`ς`,sigma:`σ`,tau:`τ`,upsilon:`υ`,phi:`φ`,chi:`χ`,psi:`ψ`,omega:`ω`,thetasym:`ϑ`,upsih:`ϒ`,piv:`ϖ`,bull:`•`,hellip:`…`,prime:`′`,Prime:`″`,oline:`‾`,frasl:`⁄`,weierp:`℘`,image:`ℑ`,real:`ℜ`,trade:`™`,alefsym:`ℵ`,larr:`←`,uarr:`↑`,rarr:`→`,darr:`↓`,harr:`↔`,crarr:`↵`,lArr:`⇐`,uArr:`⇑`,rArr:`⇒`,dArr:`⇓`,hArr:`⇔`,forall:`∀`,part:`∂`,exist:`∃`,empty:`∅`,nabla:`∇`,isin:`∈`,notin:`∉`,ni:`∋`,prod:`∏`,sum:`∑`,minus:`−`,lowast:`∗`,radic:`√`,prop:`∝`,infin:`∞`,ang:`∠`,and:`∧`,or:`∨`,cap:`∩`,cup:`∪`,int:`∫`,there4:`∴`,sim:`∼`,cong:`≅`,asymp:`≈`,ne:`≠`,equiv:`≡`,le:`≤`,ge:`≥`,sub:`⊂`,sup:`⊃`,nsub:`⊄`,sube:`⊆`,supe:`⊇`,oplus:`⊕`,otimes:`⊗`,perp:`⊥`,sdot:`⋅`,lceil:`⌈`,rceil:`⌉`,lfloor:`⌊`,rfloor:`⌋`,lang:`〈`,rang:`〉`,loz:`◊`,spades:`♠`,clubs:`♣`,hearts:`♥`,diams:`♦`,quot:`"`,amp:`&`,lt:`<`,gt:`>`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,circ:`ˆ`,tilde:`˜`,ensp:` `,emsp:` `,thinsp:` `,zwnj:`‌`,zwj:`‍`,lrm:`‎`,rlm:`‏`,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,permil:`‰`,lsaquo:`‹`,rsaquo:`›`,euro:`€`},it=[`cent`,`copy`,`divide`,`gt`,`lt`,`not`,`para`,`times`],at={}.hasOwnProperty,ot={},st;for(st in rt)at.call(rt,st)&&(ot[rt[st]]=st);var ct=/[^\dA-Za-z]/;function lt(e,t,n,r){let i=String.fromCharCode(e);if(at.call(ot,i)){let e=ot[i],a=`&`+e;return n&&nt.includes(e)&&!it.includes(e)&&(!r||t&&t!==61&&ct.test(String.fromCharCode(t)))?a:a+`;`}return``}function ut(e,t,n){let r=$e(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=lt(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){let i=tt(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function k(e,t){return Ye(e,Object.assign({format:ut},t))}var dt=/^>|^->|<!--|-->|--!>|<!-$/g,ft=[`>`],pt=[`<`,`>`];function mt(e,t,n,r){return r.settings.bogusComments?`<?`+k(e.value,Object.assign({},r.settings.characterReferences,{subset:ft}))+`>`:`<!--`+e.value.replace(dt,i)+`-->`;function i(e){return k(e,Object.assign({},r.settings.characterReferences,{subset:pt}))}}function ht(e,t,n,r){return`<!`+(r.settings.upperDoctype?`DOCTYPE`:`doctype`)+(r.settings.tightDoctype?``:` `)+`html>`}function gt(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function _t(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}function vt(e){return e.join(` `).trim()}var yt=/[ \t\n\f\r]/g;function bt(e){return typeof e==`object`?e.type===`text`&&xt(e.value):xt(e)}function xt(e){return e.replace(yt,``)===``}var A=wt(1),St=wt(-1),Ct=[];function wt(e){return t;function t(t,n,r){let i=t?t.children:Ct,a=(n||0)+e,o=i[a];if(!r)for(;o&&bt(o);)a+=e,o=i[a];return o}}var Tt={}.hasOwnProperty;function Et(e){return t;function t(t,n,r){return Tt.call(e,t.tagName)&&e[t.tagName](t,n,r)}}var Dt=Et({body:At,caption:Ot,colgroup:Ot,dd:Pt,dt:Nt,head:Ot,html:kt,li:Mt,optgroup:It,option:Lt,p:jt,rp:Ft,rt:Ft,tbody:zt,td:Ht,tfoot:Bt,th:Ht,thead:Rt,tr:Vt});function Ot(e,t,n){let r=A(n,t,!0);return!r||r.type!==`comment`&&!(r.type===`text`&&bt(r.value.charAt(0)))}function kt(e,t,n){let r=A(n,t);return!r||r.type!==`comment`}function At(e,t,n){let r=A(n,t);return!r||r.type!==`comment`}function jt(e,t,n){let r=A(n,t);return r?r.type===`element`&&(r.tagName===`address`||r.tagName===`article`||r.tagName===`aside`||r.tagName===`blockquote`||r.tagName===`details`||r.tagName===`div`||r.tagName===`dl`||r.tagName===`fieldset`||r.tagName===`figcaption`||r.tagName===`figure`||r.tagName===`footer`||r.tagName===`form`||r.tagName===`h1`||r.tagName===`h2`||r.tagName===`h3`||r.tagName===`h4`||r.tagName===`h5`||r.tagName===`h6`||r.tagName===`header`||r.tagName===`hgroup`||r.tagName===`hr`||r.tagName===`main`||r.tagName===`menu`||r.tagName===`nav`||r.tagName===`ol`||r.tagName===`p`||r.tagName===`pre`||r.tagName===`section`||r.tagName===`table`||r.tagName===`ul`):!n||n.type!==`element`||n.tagName!==`a`&&n.tagName!==`audio`&&n.tagName!==`del`&&n.tagName!==`ins`&&n.tagName!==`map`&&n.tagName!==`noscript`&&n.tagName!==`video`}function Mt(e,t,n){let r=A(n,t);return!r||r.type===`element`&&r.tagName===`li`}function Nt(e,t,n){let r=A(n,t);return!(!r||r.type!==`element`||r.tagName!==`dt`&&r.tagName!==`dd`)}function Pt(e,t,n){let r=A(n,t);return!r||r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`)}function Ft(e,t,n){let r=A(n,t);return!r||r.type===`element`&&(r.tagName===`rp`||r.tagName===`rt`)}function It(e,t,n){let r=A(n,t);return!r||r.type===`element`&&r.tagName===`optgroup`}function Lt(e,t,n){let r=A(n,t);return!r||r.type===`element`&&(r.tagName===`option`||r.tagName===`optgroup`)}function Rt(e,t,n){let r=A(n,t);return!(!r||r.type!==`element`||r.tagName!==`tbody`&&r.tagName!==`tfoot`)}function zt(e,t,n){let r=A(n,t);return!r||r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`)}function Bt(e,t,n){return!A(n,t)}function Vt(e,t,n){let r=A(n,t);return!r||r.type===`element`&&r.tagName===`tr`}function Ht(e,t,n){let r=A(n,t);return!r||r.type===`element`&&(r.tagName===`td`||r.tagName===`th`)}var Ut=Et({body:Kt,colgroup:qt,head:Gt,html:Wt,tbody:Jt});function Wt(e){let t=A(e,-1);return!t||t.type!==`comment`}function Gt(e){let t=new Set;for(let n of e.children)if(n.type===`element`&&(n.tagName===`base`||n.tagName===`title`)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||n.type===`element`}function Kt(e){let t=A(e,-1,!0);return!t||t.type!==`comment`&&!(t.type===`text`&&bt(t.value.charAt(0)))&&(t.type!==`element`||t.tagName!==`meta`&&t.tagName!==`link`&&t.tagName!==`script`&&t.tagName!==`style`&&t.tagName!==`template`)}function qt(e,t,n){let r=St(n,t),i=A(e,-1,!0);return n&&r&&r.type===`element`&&r.tagName===`colgroup`&&Dt(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`col`)}function Jt(e,t,n){let r=St(n,t),i=A(e,-1);return n&&r&&r.type===`element`&&(r.tagName===`thead`||r.tagName===`tbody`)&&Dt(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`tr`)}var Yt={name:[[`
3
+ \f\r &/=>`.split(``),`
4
+ \f\r "&'/=>\``.split(``)],[`\0
5
+ \f\r "&'/<=>`.split(``),`\0
6
+ \f\r "&'/<=>\``.split(``)]],unquoted:[[`
7
+ \f\r &>`.split(``),`\0
8
+ \f\r "&'<=>\``.split(``)],[`\0
9
+ \f\r "&'<=>\``.split(``),`\0
10
+ \f\r "&'<=>\``.split(``)]],single:[[`&'`.split(``),`"&'\``.split(``)],[`\0&'`.split(``),`\0"&'\``.split(``)]],double:[[`"&`.split(``),`"&'\``.split(``)],[`\0"&`.split(``),`\0"&'\``.split(``)]]};function Xt(e,t,n,r){let i=r.schema,a=i.space!==`svg`&&r.settings.omitOptionalTags,o=i.space===`svg`?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),s=[],c;i.space===`html`&&e.tagName===`svg`&&(r.schema=Ve);let l=Zt(r,e.properties),u=r.all(i.space===`html`&&e.tagName===`template`?e.content:e);return r.schema=i,u&&(o=!1),(l||!a||!Ut(e,t,n))&&(s.push(`<`,e.tagName,l?` `+l:``),o&&(i.space===`svg`||r.settings.closeSelfClosing)&&(c=l.charAt(l.length-1),(!r.settings.tightSelfClosing||c===`/`||c&&c!==`"`&&c!==`'`)&&s.push(` `),s.push(`/`)),s.push(`>`)),s.push(u),!o&&(!a||!Dt(e,t,n))&&s.push(`</`+e.tagName+`>`),s.join(``)}function Zt(e,t){let n=[],r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){let r=Qt(e,i,t[i]);r&&n.push(r)}}for(;++r<n.length;){let t=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&t!==`"`&&t!==`'`&&(n[r]+=` `)}return n.join(``)}function Qt(e,t,n){let r=Le(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space===`html`?0:1,a=+!e.settings.allowDangerousCharacters,o=e.quote,s;if(r.overloadedBoolean&&(n===r.attribute||n===``)?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!=`string`||n===r.attribute||n===``)&&(n=!!n),n==null||n===!1||typeof n==`number`&&Number.isNaN(n))return``;let c=k(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Yt.name[i][a]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?_t:vt)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?c:(e.settings.preferUnquoted&&(s=k(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Yt.unquoted[i][a]}))),s!==n&&(e.settings.quoteSmart&&gt(n,o)>gt(n,e.alternative)&&(o=e.alternative),s=o+k(n,Object.assign({},e.settings.characterReferences,{subset:(o===`'`?Yt.single:Yt.double)[i][a],attribute:!0}))+o),c+(s&&`=`+s))}var $t=[`<`,`&`];function en(e,t,n,r){return n&&n.type===`element`&&(n.tagName===`script`||n.tagName===`style`)?e.value:k(e.value,Object.assign({},r.settings.characterReferences,{subset:$t}))}function tn(e,t,n,r){return r.settings.allowDangerousHtml?e.value:en(e,t,n,r)}function nn(e,t,n,r){return r.all(e)}var rn=Ue(`type`,{invalid:an,unknown:on,handlers:{comment:mt,doctype:ht,element:Xt,raw:tn,root:nn,text:en}});function an(e){throw Error("Expected node, not `"+e+"`")}function on(e){throw Error("Cannot compile unknown node `"+e.type+"`")}var sn={},cn={},ln=[];function un(e,t){let n=t||sn,r=n.quote||`"`,i=r===`"`?`'`:`"`;if(r!==`"`&&r!==`'`)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:dn,all:fn,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||ge,characterReferences:n.characterReferences||cn,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space===`svg`?Ve:Be,quote:r,alternative:i}.one(Array.isArray(e)?{type:`root`,children:e}:e,void 0,void 0)}function dn(e,t,n){return rn(e,t,n,this)}function fn(e){let t=[],n=e&&e.children||ln,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join(``)}var pn=/\s+/g;function mn(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class==`string`&&(e.properties.class=e.properties.class.split(pn)),Array.isArray(e.properties.class)||(e.properties.class=[]);let n=Array.isArray(t)?t:t.split(pn);for(let t of n)t&&!e.properties.class.includes(t)&&e.properties.class.push(t);return e}function hn(e){let t=g(e,!0).map(([e])=>e);function n(n){if(n===e.length)return{line:t.length-1,character:t.at(-1).length};let r=n,i=0;for(let e of t){if(r<e.length)break;r-=e.length,i++}return{line:i,character:r}}function r(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+=n,r}return{lines:t,indexToPos:n,posToIndex:r}}var gn=[`color`,`background-color`];function _n(e,t){let n=0,r=[];for(let i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function vn(e,t){let n=0,r=e.length;for(;n<r;){let i=n+(r-n>>1);e[i]<=t?n=i+1:r=i}return n}function yn(e,t){let n=[...t instanceof Set?t:new Set(t)].sort((e,t)=>e-t);return n.length?e.map(e=>e.flatMap(e=>{let t=e.offset+e.content.length,r=vn(n,e.offset),i=r;for(;i<n.length&&n[i]<t;)i++;if(r===i)return e;let a=n.slice(r,i);for(let t=0;t<a.length;t++)a[t]-=e.offset;return _n(e,a)})):e}function bn(e,t,n,r,i=`css-vars`){let a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>xn(e.variants[t])),s=new Set(o.flatMap(e=>Object.keys(e))),c={},l=(e,r)=>{let i=r===`color`?``:r===`background-color`?`-bg`:`-${r}`;return n+t[e]+(r===`color`?``:i)};return o.forEach((e,n)=>{for(let a of s){let s=e[a]||`inherit`;if(n===0&&r&&gn.includes(a)){if(r===`light-dark()`&&o.length>1){let e=t.findIndex(e=>e===`light`),r=t.findIndex(e=>e===`dark`);if(e===-1||r===-1)throw new v('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let u=o[e][a]||`inherit`,d=o[r][a]||`inherit`;c[a]=`light-dark(${u}, ${d})`,i===`css-vars`&&(c[l(n,a)]=s)}else c[a]=s}else i===`css-vars`&&(c[l(n,a)]=s)}}),a.htmlStyle=c,a}function xn(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t[`background-color`]=e.bgColor),e.fontStyle){e.fontStyle&_.Italic&&(t[`font-style`]=`italic`),e.fontStyle&_.Bold&&(t[`font-weight`]=`bold`);let n=[];e.fontStyle&_.Underline&&n.push(`underline`),e.fontStyle&_.Strikethrough&&n.push(`line-through`),n.length&&(t[`text-decoration`]=n.join(` `))}return t}function Sn(e){return typeof e==`string`?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(`;`)}function Cn(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let n=hn(t.source);function r(e){if(typeof e==`number`){if(e<0||e>t.source.length)throw new v(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...n.indexToPos(e),offset:e}}{let t=n.lines[e.line];if(t===void 0)throw new v(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${n.lines.length}`);let r=e.character;if(r<0&&(r=t.length+r),r<0||r>t.length)throw new v(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:r,offset:n.posToIndex(e.line,r)}}}let i=(t.options.decorations||[]).map(e=>({...e,start:r(e.start),end:r(e.end)}));wn(i),e.set(t.meta,{decorations:i,converter:n,source:t.source})}return e.get(t.meta)}return{name:`shiki:decorations`,tokens(e){if(this.options.decorations?.length)return yn(e,t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))},code(e){if(!this.options.decorations?.length)return;let n=t(this),r=[...e.children].filter(e=>e.type===`element`&&e.tagName===`span`);if(r.length!==n.converter.lines.length)throw new v(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(e,t,n,i){let a=r[e],s=``,c=-1,l=-1;if(t===0&&(c=0),n===0&&(l=0),n===1/0&&(l=a.children.length),c===-1||l===-1)for(let e=0;e<a.children.length;e++)s+=Tn(a.children[e]),c===-1&&s.length===t&&(c=e+1),l===-1&&s.length===n&&(l=e+1);if(c===-1)throw new v(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(l===-1)throw new v(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let u=a.children.slice(c,l);if(!i.alwaysWrap&&u.length===a.children.length)o(a,i,`line`);else if(!i.alwaysWrap&&u.length===1&&u[0].type===`element`)o(u[0],i,`token`);else{let e={type:`element`,tagName:`span`,properties:{},children:u};o(e,i,`wrapper`),a.children.splice(c,u.length,e)}}function a(e,t){r[e]=o(r[e],t,`line`)}function o(e,t,n){let r=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||`span`,e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&mn(e,t.properties.class),e=i(e,n)||e,e}let s=[],c=n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset);for(let e of c){let{start:t,end:n}=e;if(t.line===n.line)i(t.line,t.character,n.character,e);else if(t.line<n.line){i(t.line,t.character,1/0,e);for(let r=t.line+1;r<n.line;r++)s.unshift(()=>a(r,e));i(n.line,0,n.character,e)}}s.forEach(e=>e())}}}function wn(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new v(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){let t=e[r],i=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,a=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,o=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,s=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(i||a||o||s){if(i&&a||o&&s||o&&n.start.offset===n.end.offset||a&&t.start.offset===t.end.offset)continue;throw new v(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}}function Tn(e){return e.type===`text`?e.value:e.type===`element`?e.children.map(Tn).join(``):``}var En=[Cn()];function Dn(e){let t=On(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...En]}function On(e){let t=[],n=[],r=[];for(let i of e)switch(i.enforce){case`pre`:t.push(i);break;case`post`:n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}var j=[`black`,`red`,`green`,`yellow`,`blue`,`magenta`,`cyan`,`white`,`brightBlack`,`brightRed`,`brightGreen`,`brightYellow`,`brightBlue`,`brightMagenta`,`brightCyan`,`brightWhite`],kn={1:`bold`,2:`dim`,3:`italic`,4:`underline`,7:`reverse`,8:`hidden`,9:`strikethrough`};function An(e,t){let n=e.indexOf(`\x1B`,t);if(n!==-1&&e[n+1]===`[`){let t=e.indexOf(`m`,n);if(t!==-1)return{sequence:e.substring(n+2,t).split(`;`),startPosition:n,position:t+1}}return{position:e.length}}function jn(e){let t=e.shift();if(t===`2`){let t=e.splice(0,3).map(e=>Number.parseInt(e));return t.length!==3||t.some(e=>Number.isNaN(e))?void 0:{type:`rgb`,rgb:t}}if(t===`5`){let t=e.shift();if(t)return{type:`table`,index:Number(t)}}}function Mn(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r)){if(r===0)t.push({type:`resetAll`});else if(r<=9)kn[r]&&t.push({type:`setDecoration`,value:kn[r]});else if(r<=29){let e=kn[r-20];e&&(t.push({type:`resetDecoration`,value:e}),e===`dim`&&t.push({type:`resetDecoration`,value:`bold`}))}else if(r<=37)t.push({type:`setForegroundColor`,value:{type:`named`,name:j[r-30]}});else if(r===38){let n=jn(e);n&&t.push({type:`setForegroundColor`,value:n})}else if(r===39)t.push({type:`resetForegroundColor`});else if(r<=47)t.push({type:`setBackgroundColor`,value:{type:`named`,name:j[r-40]}});else if(r===48){let n=jn(e);n&&t.push({type:`setBackgroundColor`,value:n})}else r===49?t.push({type:`resetBackgroundColor`}):r===53?t.push({type:`setDecoration`,value:`overline`}):r===55?t.push({type:`resetDecoration`,value:`overline`}):r>=90&&r<=97?t.push({type:`setForegroundColor`,value:{type:`named`,name:j[r-90+8]}}):r>=100&&r<=107&&t.push({type:`setBackgroundColor`,value:{type:`named`,name:j[r-100+8]}})}}return t}function Nn(){let e=null,t=null,n=new Set;return{parse(r){let i=[],a=0;do{let o=An(r,a),s=o.sequence?r.substring(a,o.startPosition):r.substring(a);if(s.length>0&&i.push({value:s,foreground:e,background:t,decorations:new Set(n)}),o.sequence){let r=Mn(o.sequence);for(let i of r)i.type===`resetAll`?(e=null,t=null,n.clear()):i.type===`resetForegroundColor`?e=null:i.type===`resetBackgroundColor`?t=null:i.type===`resetDecoration`&&n.delete(i.value);for(let i of r)i.type===`setForegroundColor`?e=i.value:i.type===`setBackgroundColor`?t=i.value:i.type===`setDecoration`&&n.add(i.value)}a=o.position}while(a<r.length);return i}}}var Pn={black:`#000000`,red:`#bb0000`,green:`#00bb00`,yellow:`#bbbb00`,blue:`#0000bb`,magenta:`#ff00ff`,cyan:`#00bbbb`,white:`#eeeeee`,brightBlack:`#555555`,brightRed:`#ff5555`,brightGreen:`#00ff00`,brightYellow:`#ffff55`,brightBlue:`#5555ff`,brightMagenta:`#ff55ff`,brightCyan:`#55ffff`,brightWhite:`#ffffff`};function Fn(e=Pn){function t(t){return e[t]}function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,`0`)).join(``)}`}let r;function i(){if(r)return r;r=[];for(let e=0;e<j.length;e++)r.push(t(j[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)r.push(n([e[t],e[i],e[a]]));let i=8;for(let e=0;e<24;e++,i+=10)r.push(n([i,i,i]));return r}function a(e){return i()[e]}function o(e){switch(e.type){case`named`:return t(e.name);case`rgb`:return n(e.rgb);case`table`:return a(e.index)}}return{value:o}}var In=/#([0-9a-f]{3,8})/i,Ln=/var\((--[\w-]+-ansi-[\w-]+)\)/,Rn={black:`#000000`,red:`#cd3131`,green:`#0DBC79`,yellow:`#E5E510`,blue:`#2472C8`,magenta:`#BC3FBC`,cyan:`#11A8CD`,white:`#E5E5E5`,brightBlack:`#666666`,brightRed:`#F14C4C`,brightGreen:`#23D18B`,brightYellow:`#F5F543`,brightBlue:`#3B8EEA`,brightMagenta:`#D670D6`,brightCyan:`#29B8DB`,brightWhite:`#FFFFFF`};function zn(e,t,n){let r=re(e,n),i=g(t),a=Fn(Object.fromEntries(j.map(t=>{let n=`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;return[t,e.colors?.[n]||Rn[t]]}))),o=Nn();return i.map(t=>o.parse(t[0]).map(n=>{let i,o;n.decorations.has(`reverse`)?(i=n.background?a.value(n.background):e.bg,o=n.foreground?a.value(n.foreground):e.fg):(i=n.foreground?a.value(n.foreground):e.fg,o=n.background?a.value(n.background):void 0),i=y(i,r),o=y(o,r),n.decorations.has(`dim`)&&(i=Bn(i));let s=_.None;return n.decorations.has(`bold`)&&(s|=_.Bold),n.decorations.has(`italic`)&&(s|=_.Italic),n.decorations.has(`underline`)&&(s|=_.Underline),n.decorations.has(`strikethrough`)&&(s|=_.Strikethrough),{content:n.value,offset:t[1],color:i,bgColor:o,fontStyle:s}}))}function Bn(e){let t=e.match(In);if(t){let e=t[1];if(e.length===8){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,`0`);return`#${e.slice(0,6)}${t}`}if(e.length===6)return`#${e}80`;if(e.length===4){let t=e[0],n=e[1],r=e[2],i=e[3];return`#${t}${t}${n}${n}${r}${r}${Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,`0`)}`}if(e.length===3){let t=e[0],n=e[1],r=e[2];return`#${t}${t}${n}${n}${r}${r}80`}}let n=e.match(Ln);return n?`var(${n[1]}-dim)`:e}function Vn(e,t,n={}){let r=e.resolveLangAlias(n.lang||`text`),{theme:i=e.getLoadedThemes()[0]}=n;if(!oe(r)&&!u(i)&&r===`ansi`){let{theme:r}=e.setTheme(i);return zn(r,t,n)}return ae(e,t,n)}function Hn(e,t,n){let r,i,a,o,s,c;if(`themes`in n){let{defaultColor:l=`light`,cssVariablePrefix:u=`--shiki-`,colorsRendering:d=`css-vars`}=n,f=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===l?-1:+(t.color===l));if(f.length===0)throw new v("`themes` option must not be empty");let h=p(e,t,n,Vn);if(c=se(h),l&&l!==`light-dark()`&&!f.some(e=>e.color===l))throw new v(`\`themes\` option must contain the defaultColor key \`${l}\``);let g=f.map(t=>e.getTheme(t.theme)),_=f.map(e=>e.color);a=h.map(e=>e.map(e=>bn(e,_,u,l,d))),c&&m(a,c);let ee=f.map(e=>re(e.theme,n));i=Un(f,g,ee,u,l,`fg`,d),r=Un(f,g,ee,u,l,`bg`,d),o=`shiki-themes ${g.map(e=>e.name).join(` `)}`,s=l?void 0:[i,r].join(`;`)}else if(`theme`in n){let s=re(n.theme,n);a=Vn(e,t,n);let l=e.getTheme(n.theme);r=y(l.bg,s),i=y(l.fg,s),o=l.name,c=se(a)}else throw new v("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:r,themeName:o,rootStyle:s,grammarState:c}}function Un(e,t,n,r,i,a,o){return e.map((s,c)=>{let l=y(t[c][a],n[c])||`inherit`,u=`${r+s.color}${a===`bg`?`-bg`:``}:${l}`;if(c===0&&i){if(i===`light-dark()`&&e.length>1){let r=e.findIndex(e=>e.color===`light`),i=e.findIndex(e=>e.color===`dark`);if(r===-1||i===-1)throw new v('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${y(t[r][a],n[r])||`inherit`}, ${y(t[i][a],n[i])||`inherit`});${u}`}return l}return o===`css-vars`?u:null}).filter(e=>!!e).join(`;`)}var Wn=/^\s+$/,Gn=/^(\s*)(.*?)(\s*)$/;function Kn(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>Kn(e,t,n),codeToTokens:(t,n)=>Hn(e,t,n)}){let i=t;for(let e of Dn(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:o,bg:s,themeName:c,rootStyle:l,grammarState:u}=Hn(e,i,n),{mergeWhitespaces:d=!0,mergeSameStyleTokens:f=!1}=n;d===!0?a=Jn(a):d===`never`&&(a=Yn(a)),f&&(a=Xn(a));let p={...r,get source(){return i}};for(let e of Dn(n))a=e.tokens?.call(p,a)||a;return qn(a,{...n,fg:o,bg:s,themeName:c,rootStyle:n.rootStyle===!1?!1:n.rootStyle??l},p,u)}function qn(e,t,n,r=se(e)){let i=Dn(t),a=[],o={type:`root`,children:[]},{structure:s=`classic`,tabindex:c=`0`}=t,l={class:`shiki ${t.themeName||``}`};t.rootStyle!==!1&&(l.style=t.rootStyle==null?`background-color:${t.bg};color:${t.fg}`:t.rootStyle),c!==!1&&c!=null&&(l.tabindex=c.toString());for(let[e,n]of Object.entries(t.meta||{}))e.startsWith(`_`)||(l[e]=n);let u={type:`element`,tagName:`pre`,properties:l,children:[],data:t.data},d={type:`element`,tagName:`code`,properties:{},children:a},f=[],p={...n,structure:s,addClassToHast:mn,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return o},get pre(){return u},get code(){return d},get lines(){return f}};if(e.forEach((e,t)=>{t&&(s===`inline`?o.children.push({type:`element`,tagName:`br`,properties:{},children:[]}):s===`classic`&&a.push({type:`text`,value:`
11
+ `}));let n={type:`element`,tagName:`span`,properties:{class:`line`},children:[]},r=0;for(let a of e){let e={type:`element`,tagName:`span`,properties:{...a.htmlAttrs},children:[{type:`text`,value:a.content}]},c=Sn(a.htmlStyle||xn(a));c&&(e.properties.style=c);for(let o of i)e=o?.span?.call(p,e,t+1,r,n,a)||e;s===`inline`?o.children.push(e):s===`classic`&&n.children.push(e),r+=a.content.length}if(s===`classic`){for(let e of i)n=e?.line?.call(p,n,t+1)||n;f.push(n),a.push(n)}else s===`inline`&&f.push(n)}),s===`classic`){for(let e of i)d=e?.code?.call(p,d)||d;u.children.push(d);for(let e of i)u=e?.pre?.call(p,u)||u;o.children.push(u)}else if(s===`inline`){let e=[],t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]};for(let n of o.children)n.type===`element`&&n.tagName===`br`?(e.push(t),t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]}):(n.type===`element`||n.type===`text`)&&t.children.push(n);e.push(t);let n={type:`element`,tagName:`code`,properties:{},children:e};for(let e of i)n=e?.code?.call(p,n)||n;o.children=[];for(let e=0;e<n.children.length;e++){e>0&&o.children.push({type:`element`,tagName:`br`,properties:{},children:[]});let t=n.children[e];t.type===`element`&&o.children.push(...t.children)}}let h=o;for(let e of i)h=e?.root?.call(p,h)||h;return r&&m(h,r),h}function Jn(e){return e.map(e=>{let t=[],n=``,r;return e.forEach((i,a)=>{let o=!(i.fontStyle&&(i.fontStyle&_.Underline||i.fontStyle&_.Strikethrough));o&&Wn.test(i.content)&&e[a+1]?(r===void 0&&(r=i.offset),n+=i.content):n?(o?t.push({...i,offset:r,content:n+i.content}):t.push({content:n,offset:r},i),r=void 0,n=``):t.push(i)}),t})}function Yn(e){return e.map(e=>e.flatMap(e=>{if(Wn.test(e.content))return e;let t=e.content.match(Gn);if(!t)return e;let[,n,r,i]=t;if(!n&&!i)return e;let a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a}))}function Xn(e){return e.map(e=>{let t=[];for(let n of e){if(t.length===0){t.push({...n});continue}let e=t.at(-1),r=Sn(e.htmlStyle||xn(e)),i=Sn(n.htmlStyle||xn(n)),a=e.fontStyle&&(e.fontStyle&_.Underline||e.fontStyle&_.Strikethrough),o=n.fontStyle&&(n.fontStyle&_.Underline||n.fontStyle&_.Strikethrough);!a&&!o&&r===i?e.content+=n.content:t.push({...n})}return t})}var Zn=un;function Qn(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>Kn(e,t,n),codeToTokens:(t,n)=>Hn(e,t,n)},i=Zn(Kn(e,t,n,r));for(let e of Dn(n))i=e.postprocess?.call(r,i,n)||i;return i}async function $n(e){let t=await f(e);return{getLastGrammarState:(...e)=>ne(t,...e),codeToTokensBase:(e,n)=>Vn(t,e,n),codeToTokensWithThemes:(e,n)=>p(t,e,n),codeToTokens:(e,n)=>Hn(t,e,n),codeToHast:(e,n)=>Kn(t,e,n),codeToHtml:(e,n)=>Qn(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function er(e){let t=e.langs,n=e.themes,r=e.engine;async function i(e){function i(n){if(typeof n==`string`){if(n=e.langAlias?.[n]||n,ee(n))return[];let r=t[n];if(!r)throw new v(`Language \`${n}\` is not included in this bundle. You may want to load it from external source.`);return r}return n}function a(e){if(te(e))return`none`;if(typeof e==`string`){let t=n[e];if(!t)throw new v(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let o=(e.themes??[]).map(e=>a(e)),s=(e.langs??[]).map(e=>i(e)),c=await $n({engine:e.engine??r(),...e,themes:o,langs:s});return{...c,loadLanguage(...e){return c.loadLanguage(...e.map(i))},loadTheme(...e){return c.loadTheme(...e.map(a))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return i}var tr=4294967295;function nr(e){return!e.sticky&&!e.rawOptions?.strategy}function rr(e,t){return{index:e,captureIndices:t.map(e=>e==null?{start:tr,end:tr,length:0}:{start:e[0],end:e[1],length:e[1]-e[0]})}}var ir=class{patterns;options;regexps;lastSearches;constructor(e,t={}){this.patterns=e,this.options=t;let{forgiving:n=!1,cache:r,regexConstructor:i}=t;if(!i)throw Error("Option `regexConstructor` is not provided");this.regexps=e.map(e=>{if(typeof e!=`string`)return e;let t=r?.get(e);if(t){if(t instanceof RegExp)return t;if(n)return null;throw t}try{let t=i(e);return r?.set(e,t),t}catch(t){if(r?.set(e,t),n)return null;throw t}}),this.lastSearches=this.regexps.map(e=>e&&nr(e)?{strId:0,searchedFrom:0,matchIndex:-1,indices:null}:null)}findNextMatchSync(e,t,n){let r=typeof e==`string`?e:e.content,i=typeof e==`string`?0:e.id||0,a=-1,o=0,s=null;for(let e=0;e<this.regexps.length;e++){let n=this.regexps[e];if(n)try{let c=i?this.lastSearches[e]:null,l,u;if(c&&c.strId===i&&c.searchedFrom<=t&&(c.matchIndex===-1||c.matchIndex>=t))l=c.matchIndex,u=c.indices;else{n.lastIndex=t;let e=n.exec(r);l=e?e.index:-1,u=e?e.indices:null,c&&(c.strId=i,c.searchedFrom=t,c.matchIndex=l,c.indices=u)}if(l===-1)continue;if(l===t)return rr(e,u);(a===-1||l<o)&&(a=e,o=l,s=u)}catch(e){if(this.options.forgiving)continue;throw e}}return a===-1?null:rr(a,s)}},ar=0;function or(e){return{content:e,id:++ar}}function M(e){if([...e].length!==1)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function sr(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}var cr=new Set([`alnum`,`alpha`,`ascii`,`blank`,`cntrl`,`digit`,`graph`,`lower`,`print`,`punct`,`space`,`upper`,`word`,`xdigit`]),N=String.raw;function P(e,t){if(e==null)throw Error(t??`Value expected`);return e}var lr=N`\[\^?`,ur=`c.? | C(?:-.?)?|${N`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${N`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${N`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${N`o\{[^\}]*\}?`}|${N`\d{1,3}`}`,dr=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,fr=new RegExp(N`
12
+ \\ (?:
13
+ ${ur}
14
+ | [gk]<[^>]*>?
15
+ | [gk]'[^']*'?
16
+ | .
17
+ )
18
+ | \( (?:
19
+ \? (?:
20
+ [:=!>({]
21
+ | <[=!]
22
+ | <[^>]*>
23
+ | '[^']*'
24
+ | ~\|?
25
+ | #(?:[^)\\]|\\.?)*
26
+ | [^:)]*[:)]
27
+ )?
28
+ | \*[^\)]*\)?
29
+ )?
30
+ | (?:${dr.source})+
31
+ | ${lr}
32
+ | .
33
+ `.replace(/\s+/g,``),`gsu`),pr=new RegExp(N`
34
+ \\ (?:
35
+ ${ur}
36
+ | .
37
+ )
38
+ | \[:(?:\^?\p{Alpha}+|\^):\]
39
+ | ${lr}
40
+ | &&
41
+ | .
42
+ `.replace(/\s+/g,``),`gsu`);function mr(e,t={}){let n={flags:``,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!=`string`)throw Error(`String expected as pattern`);let r=Hr(n.flags),i=[r.extended],a={captureGroup:n.rules.captureGroup,getCurrentModX(){return i.at(-1)},numOpenGroups:0,popModX(){i.pop()},pushModX(e){i.push(e)},replaceCurrentModX(e){i[i.length-1]=e},singleline:n.rules.singleline},o=[],s;for(fr.lastIndex=0;s=fr.exec(e);){let t=hr(a,e,s[0],fr.lastIndex);t.tokens?o.push(...t.tokens):t.token&&o.push(t.token),t.lastIndex!==void 0&&(fr.lastIndex=t.lastIndex)}let c=[],l=0;o.filter(e=>e.type===`GroupOpen`).forEach(e=>{e.kind===`capturing`?e.number=++l:e.raw===`(`&&c.push(e)}),l||c.forEach((e,t)=>{e.kind=`capturing`,e.number=t+1});let u=l||c.length;return{tokens:o.map(e=>e.type===`EscapedNumber`?Wr(e,u):e).flat(),flags:r}}function hr(e,t,n,r){let[i,a]=n;if(n===`[`||n===`[^`){let e=gr(t,n,r);return{tokens:e.tokens,lastIndex:e.lastIndex}}if(i===`\\`){if(`AbBGyYzZ`.includes(a))return{token:br(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw Error(`Invalid group name "${n}"`);return{token:Mr(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw Error(`Invalid group name "${n}"`);return{token:xr(n)}}if(a===`K`)return{token:Er(`keep`,n)};if(a===`N`||a===`R`)return{token:I(`newline`,n,{negate:a===`N`})};if(a===`O`)return{token:I(`any`,n)};if(a===`X`)return{token:I(`text_segment`,n)};let e=vr(n,{inCharClass:!1});return Array.isArray(e)?{tokens:e}:{token:e}}if(i===`(`){if(a===`*`)return{token:Lr(n)};if(n===`(?{`)throw Error(`Unsupported callout "${n}"`);if(n.startsWith(`(?#`)){if(t[r]!==`)`)throw Error(`Unclosed comment group "(?#"`);return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:Ir(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n===`(`&&!e.captureGroup||n===`(?:`)return{token:kr(`group`,n)};if(n===`(?>`)return{token:kr(`atomic`,n)};if(n===`(?=`||n===`(?!`||n===`(?<=`||n===`(?<!`)return{token:kr(n[2]===`<`?`lookbehind`:`lookahead`,n,{negate:n.endsWith(`!`)})};if(n===`(`&&e.captureGroup||n.startsWith(`(?<`)&&n.endsWith(`>`)||n.startsWith(`(?'`)&&n.endsWith(`'`))return{token:kr(`capturing`,n,{...n!==`(`&&{name:n.slice(3,-1)}})};if(n.startsWith(`(?~`)){if(n===`(?~|`)throw Error(`Unsupported absence function kind "${n}"`);return{token:kr(`absence_repeater`,n)}}throw Error(n===`(?(`?`Unsupported conditional "${n}"`:`Invalid or unsupported group option "${n}"`)}if(n===`)`){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw Error(`Unmatched ")"`);return{token:Or(n)}}if(e.getCurrentModX()){if(n===`#`){let e=t.indexOf(`
43
+ `,r);return{lastIndex:e===-1?t.length:e}}if(/^\s$/.test(n)){let e=/\s+/y;return e.lastIndex=r,{lastIndex:e.exec(t)?e.lastIndex:r}}}return n===`.`?{token:I(`dot`,n)}:n===`^`||n===`$`?{token:br(e.singleline?{"^":N`\A`,$:N`\Z`}[n]:n,n)}:n===`|`?{token:yr(n)}:dr.test(n)?{tokens:Gr(n)}:{token:F(M(n),n)}}function gr(e,t,n){let r=[Tr(t[1]===`^`,t)],i=1,a;for(pr.lastIndex=n;a=pr.exec(e);){let e=a[0];if(e[0]===`[`&&e[1]!==`:`)i++,r.push(Tr(e[1]===`^`,e));else if(e===`]`){if(r.at(-1).type===`CharacterClassOpen`)r.push(F(93,e));else if(i--,r.push(Sr(e)),!i)break}else{let t=_r(e);Array.isArray(t)?r.push(...t):r.push(t)}}return{tokens:r,lastIndex:pr.lastIndex||e.length}}function _r(e){if(e[0]===`\\`)return vr(e,{inCharClass:!0});if(e[0]===`[`){let t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!cr.has(t.groups.name))throw Error(`Invalid POSIX class "${e}"`);return I(`posix`,e,{value:t.groups.name,negate:!!t.groups.negate})}return e===`-`?Cr(e):e===`&&`?wr(e):F(M(e),e)}function vr(e,{inCharClass:t}){let n=e[1];if(n===`c`||n===`C`)return Fr(e);if(`dDhHsSwW`.includes(n))return zr(e);if(e.startsWith(N`\o{`))throw Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw Error(`Incomplete or invalid Unicode property "${e}"`);return Br(e)}if(/^\\x[89A-Fa-f]\p{AHex}/u.test(e))try{let t=e.split(/\\x/).slice(1).map(e=>parseInt(e,16)),n=new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(t)),r=new TextEncoder;return[...n].map(e=>{let t=[...r.encode(e)].map(e=>`\\x${e.toString(16)}`).join(``);return F(M(e),t)})}catch{throw Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n===`u`||n===`x`)return F(Ur(e),e);if(Pr.has(n))return F(Pr.get(n),e);if(/\d/.test(n))return Dr(t,e);if(e===`\\`)throw Error(N`Incomplete escape "\"`);if(n===`M`)throw Error(`Unsupported meta "${e}"`);if([...e].length===2)return F(e.codePointAt(1),e);throw Error(`Unexpected escape "${e}"`)}function yr(e){return{type:`Alternator`,raw:e}}function br(e,t){return{type:`Assertion`,kind:e,raw:t}}function xr(e){return{type:`Backreference`,raw:e}}function F(e,t){return{type:`Character`,value:e,raw:t}}function Sr(e){return{type:`CharacterClassClose`,raw:e}}function Cr(e){return{type:`CharacterClassHyphen`,raw:e}}function wr(e){return{type:`CharacterClassIntersector`,raw:e}}function Tr(e,t){return{type:`CharacterClassOpen`,negate:e,raw:t}}function I(e,t,n={}){return{type:`CharacterSet`,kind:e,...n,raw:t}}function Er(e,t,n={}){return e===`keep`?{type:`Directive`,kind:e,raw:t}:{type:`Directive`,kind:e,flags:P(n.flags),raw:t}}function Dr(e,t){return{type:`EscapedNumber`,inCharClass:e,raw:t}}function Or(e){return{type:`GroupClose`,raw:e}}function kr(e,t,n={}){return{type:`GroupOpen`,kind:e,...n,raw:t}}function Ar(e,t,n,r){return{type:`NamedCallout`,kind:e,tag:t,arguments:n,raw:r}}function jr(e,t,n,r){return{type:`Quantifier`,kind:e,min:t,max:n,raw:r}}function Mr(e){return{type:`Subroutine`,raw:e}}var Nr=new Set([`COUNT`,`CMP`,`ERROR`,`FAIL`,`MAX`,`MISMATCH`,`SKIP`,`TOTAL_COUNT`]),Pr=new Map([[`a`,7],[`b`,8],[`e`,27],[`f`,12],[`n`,10],[`r`,13],[`t`,9],[`v`,11]]);function Fr(e){let t=e[1]===`c`?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw Error(`Unsupported control character "${e}"`);return F(M(t.toUpperCase())-64,e)}function Ir(e,t){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;r??=``;let i=(t.getCurrentModX()||n.includes(`x`))&&!r.includes(`x`),a=Vr(n),o=Vr(r),s={};if(a&&(s.enable=a),o&&(s.disable=o),e.endsWith(`)`))return t.replaceCurrentModX(i),Er(`flags`,e,{flags:s});if(e.endsWith(`:`))return t.pushModX(i),t.numOpenGroups++,kr(`group`,e,{...(a||o)&&{flags:s}});throw Error(`Unexpected flag modifier "${e}"`)}function Lr(e){let t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw Error(`Incomplete or invalid named callout "${e}"`);let{name:n,tag:r,args:i}=t.groups;if(!n)throw Error(`Invalid named callout "${e}"`);if(r===``)throw Error(`Named callout tag with empty value not allowed "${e}"`);let a=i?i.split(`,`).filter(e=>e!==``).map(e=>/^[+-]?\d+$/.test(e)?+e:e):[],[o,s,c]=a,l=Nr.has(n)?n.toLowerCase():`custom`;switch(l){case`fail`:case`mismatch`:case`skip`:if(a.length>0)throw Error(`Named callout arguments not allowed "${a}"`);break;case`error`:if(a.length>1)throw Error(`Named callout allows only one argument "${a}"`);if(typeof o==`string`)throw Error(`Named callout argument must be a number "${o}"`);break;case`max`:if(!a.length||a.length>2)throw Error(`Named callout must have one or two arguments "${a}"`);if(typeof o==`string`&&!/^[A-Za-z_]\w*$/.test(o))throw Error(`Named callout argument one must be a tag or number "${o}"`);if(a.length===2&&(typeof s==`number`||!/^[<>X]$/.test(s)))throw Error(`Named callout optional argument two must be '<', '>', or 'X' "${s}"`);break;case`count`:case`total_count`:if(a.length>1)throw Error(`Named callout allows only one argument "${a}"`);if(a.length===1&&(typeof o==`number`||!/^[<>X]$/.test(o)))throw Error(`Named callout optional argument must be '<', '>', or 'X' "${o}"`);break;case`cmp`:if(a.length!==3)throw Error(`Named callout must have three arguments "${a}"`);if(typeof o==`string`&&!/^[A-Za-z_]\w*$/.test(o))throw Error(`Named callout argument one must be a tag or number "${o}"`);if(typeof s==`number`||!/^(?:[<>!=]=|[<>])$/.test(s))throw Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${s}"`);if(typeof c==`string`&&!/^[A-Za-z_]\w*$/.test(c))throw Error(`Named callout argument three must be a tag or number "${c}"`);break;case`custom`:throw Error(`Undefined callout name "${n}"`);default:throw Error(`Unexpected named callout kind "${l}"`)}return Ar(l,r??null,i?.split(`,`)??null,e)}function Rr(e){let t=null,n,r;if(e[0]===`{`){let{minStr:i,maxStr:a}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,o=1e5;if(+i>o||a&&+a>o)throw Error(`Quantifier value unsupported in Oniguruma`);if(n=+i,r=a===void 0?+i:a===``?1/0:+a,n>r&&(t=`possessive`,[n,r]=[r,n]),e.endsWith(`?`)){if(t===`possessive`)throw Error(`Unsupported possessive interval quantifier chain with "?"`);t=`lazy`}else t||=`greedy`}else n=+(e[0]===`+`),r=e[0]===`?`?1:1/0,t=e[1]===`+`?`possessive`:e[1]===`?`?`lazy`:`greedy`;return jr(t,n,r,e)}function zr(e){let t=e[1].toLowerCase();return I({d:`digit`,h:`hex`,s:`space`,w:`word`}[t],e,{negate:e[1]!==t})}function Br(e){let{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return I(`property`,e,{value:r,negate:t===`P`&&!n||t===`p`&&!!n})}function Vr(e){let t={};return e.includes(`i`)&&(t.ignoreCase=!0),e.includes(`m`)&&(t.dotAll=!0),e.includes(`x`)&&(t.extended=!0),Object.keys(t).length?t:null}function Hr(e){let t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<e.length;n++){let r=e[n];if(!`imxDPSWy`.includes(r))throw Error(`Invalid flag "${r}"`);if(r===`y`){if(!/^y{[gw]}/.test(e.slice(n)))throw Error(`Invalid or unspecified flag "y" mode`);t.textSegmentMode=e[n+2]===`g`?`grapheme`:`word`,n+=3;continue}t[{i:`ignoreCase`,m:`dotAll`,x:`extended`,D:`digitIsAscii`,P:`posixIsAscii`,S:`spaceIsAscii`,W:`wordIsAscii`}[r]]=!0}return t}function Ur(e){if(/^(?:\\u(?!\p{AHex}{4})|\\x(?!\p{AHex}{1,2}|\{\p{AHex}{1,8}\}))/u.test(e))throw Error(`Incomplete or invalid escape "${e}"`);let t=e[2]===`{`?/^\\x\{\s*(?<hex>\p{AHex}+)/u.exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function Wr(e,t){let{raw:n,inCharClass:r}=e,i=n.slice(1);if(!r&&(i!==`0`&&i.length===1||i[0]!==`0`&&+i<=t))return[xr(n)];let a=[],o=i.match(/^[0-7]+|\d/g);for(let e=0;e<o.length;e++){let t=o[e],r;if(e===0&&t!==`8`&&t!==`9`){if(r=parseInt(t,8),r>127)throw Error(N`Octal encoded byte above 177 unsupported "${n}"`)}else r=M(t);a.push(F(r,(e===0?`\\`:``)+t))}return a}function Gr(e){let t=[],n=new RegExp(dr,`gy`),r;for(;r=n.exec(e);){let e=r[0];if(e[0]===`{`){let r=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(e);if(r){let{min:i,max:a}=r.groups;if(+i>+a&&e.endsWith(`?`)){n.lastIndex--,t.push(Rr(e.slice(0,-1)));continue}}}t.push(Rr(e))}return t}function Kr(e,t){if(!Array.isArray(e.body))throw Error(`Expected node with body array`);if(e.body.length!==1)return!1;let n=e.body[0];return!t||Object.keys(t).every(e=>t[e]===n[e])}function qr(e){return Jr.has(e.type)}var Jr=new Set([`AbsenceFunction`,`Backreference`,`CapturingGroup`,`Character`,`CharacterClass`,`CharacterSet`,`Group`,`Quantifier`,`Subroutine`]);function Yr(e,t={}){let n={flags:``,normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=mr(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),i=(e,t)=>{let n=r.tokens[a.nextIndex];switch(a.parent=e,a.nextIndex++,n.type){case`Alternator`:return L();case`Assertion`:return Xr(n);case`Backreference`:return Zr(n,a);case`Character`:return ci(n.value,{useLastValid:!!t.isCheckingRangeEnd});case`CharacterClassHyphen`:return Qr(n,a,t);case`CharacterClassOpen`:return $r(n,a,t);case`CharacterSet`:return ei(n,a);case`Directive`:return fi(n.kind,{flags:n.flags});case`GroupOpen`:return ti(n,a,t);case`NamedCallout`:return mi(n.kind,n.tag,n.arguments);case`Quantifier`:return ni(n,a);case`Subroutine`:return ri(n,a);default:throw Error(`Unexpected token type "${n.type}"`)}},a={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:r.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:i},o=_i(pi(r.flags)),s=o.body[0];for(;a.nextIndex<r.tokens.length;){let e=i(s,{});e.type===`Alternative`?(o.body.push(e),s=e):s.body.push(e)}let{capturingGroups:c,hasNumberedRef:l,namedGroupsByName:u,subroutines:d}=a;if(l&&u.size&&!n.rules.captureGroup)throw Error(`Numbered backref/subroutine not allowed when using named capture`);for(let{ref:e}of d)if(typeof e==`number`){if(e>c.length)throw Error(`Subroutine uses a group number that's not defined`);e&&(c[e-1].isSubroutined=!0)}else if(u.has(e)){if(u.get(e).length>1)throw Error(N`Subroutine uses a duplicate group name "\g<${e}>"`);u.get(e)[0].isSubroutined=!0}else throw Error(N`Subroutine uses a group name that's not defined "\g<${e}>"`);return o}function Xr({kind:e}){return ai(P({"^":`line_start`,$:`line_end`,"\\A":`string_start`,"\\b":`word_boundary`,"\\B":`word_boundary`,"\\G":`search_start`,"\\y":`text_segment_boundary`,"\\Y":`text_segment_boundary`,"\\z":`string_end`,"\\Z":`string_end_newline`}[e],`Unexpected assertion kind "${e}"`),{negate:e===N`\B`||e===N`\Y`})}function Zr({raw:e},t){let n=/^\\k[<']/.test(e),r=n?e.slice(3,-1):e.slice(1),i=(n,r=!1)=>{let i=t.capturingGroups.length,a=!1;if(n>i){if(t.skipBackrefValidation)a=!0;else throw Error(`Not enough capturing groups defined to the left "${e}"`)}return t.hasNumberedRef=!0,oi(r?i+1-n:n,{orphan:a})};if(n){let n=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(n)return i(+n.groups.num,!!n.groups.sign);if(/[-+]/.test(r))throw Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(r))throw Error(`Group name not defined to the left "${e}"`);return oi(r)}return i(+r)}function Qr(e,t,n){let{tokens:r,walk:i}=t,a=t.parent,o=a.body.at(-1),s=r[t.nextIndex];if(!n.isCheckingRangeEnd&&o&&o.type!==`CharacterClass`&&o.type!==`CharacterClassRange`&&s&&s.type!==`CharacterClassOpen`&&s.type!==`CharacterClassClose`&&s.type!==`CharacterClassIntersector`){let e=i(a,{...n,isCheckingRangeEnd:!0});if(o.type===`Character`&&e.type===`Character`)return a.body.pop(),ui(o,e);throw Error(`Invalid character class range`)}return ci(M(`-`))}function $r({negate:e},t,n){let{tokens:r,walk:i}=t,a=[li()],o=r[t.nextIndex],s=Oi(o);for(;s.type!==`CharacterClassClose`;){if(s.type===`CharacterClassIntersector`)a.push(li()),t.nextIndex++;else{let e=a.at(-1);e.body.push(i(e,n))}s=Oi(r[t.nextIndex],o)}let c=li({negate:e});return a.length===1?c.body=a[0].body:(c.kind=`intersection`,c.body=a.map(e=>e.body.length===1?e.body[0]:e)),t.nextIndex++,c}function ei({kind:e,negate:t,value:n},r){let{normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:o}=r;if(e===`property`){let r=Di(n);if(cr.has(r)&&!o?.has(r))e=`posix`,n=r;else return yi(n,{negate:t,normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:o})}return e===`posix`?hi(n,{negate:t}):di(e,{negate:t})}function ti(e,t,n){let{tokens:r,capturingGroups:i,namedGroupsByName:a,skipLookbehindValidation:o,walk:s}=t,c=bi(e),l=c.type===`AbsenceFunction`,u=wi(c),d=u&&c.negate;if(c.type===`CapturingGroup`&&(i.push(c),c.name&&sr(a,c.name,[]).push(c)),l&&n.isInAbsenceFunction)throw Error(`Nested absence function not supported by Oniguruma`);let f=ki(r[t.nextIndex]);for(;f.type!==`GroupClose`;){if(f.type===`Alternator`)c.body.push(L()),t.nextIndex++;else{let e=c.body.at(-1),t=s(e,{...n,isInAbsenceFunction:n.isInAbsenceFunction||l,isInLookbehind:n.isInLookbehind||u,isInNegLookbehind:n.isInNegLookbehind||d});if(e.body.push(t),(u||n.isInLookbehind)&&!o){let e=`Lookbehind includes a pattern not allowed by Oniguruma`;if(d||n.isInNegLookbehind){if(Ci(t)||t.type===`CapturingGroup`)throw Error(e)}else if(Ci(t)||wi(t)&&t.negate)throw Error(e)}}f=ki(r[t.nextIndex])}return t.nextIndex++,c}function ni({kind:e,min:t,max:n},r){let i=r.parent,a=i.body.at(-1);if(!a||!qr(a))throw Error(`Quantifier requires a repeatable token`);let o=gi(e,t,n,a);return i.body.pop(),o}function ri({raw:e},t){let{capturingGroups:n,subroutines:r}=t,i=e.slice(3,-1),a=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);if(a){let e=+a.groups.num,r=n.length;if(t.hasNumberedRef=!0,i={"":e,"+":r+e,"-":r+1-e}[a.groups.sign],i<1)throw Error(`Invalid subroutine number`)}else i===`0`&&(i=0);let o=vi(i);return r.push(o),o}function ii(e,t){if(e!==`repeater`)throw Error(`Unexpected absence function kind "${e}"`);return{type:`AbsenceFunction`,kind:e,body:xi(t?.body)}}function L(e){return{type:`Alternative`,body:Si(e?.body)}}function ai(e,t){let n={type:`Assertion`,kind:e};return(e===`word_boundary`||e===`text_segment_boundary`)&&(n.negate=!!t?.negate),n}function oi(e,t){let n=!!t?.orphan;return{type:`Backreference`,ref:e,...n&&{orphan:n}}}function si(e,t){let n={name:void 0,isSubroutined:!1,...t};if(n.name!==void 0&&!Ti(n.name))throw Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:`CapturingGroup`,number:e,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:xi(t?.body)}}function ci(e,t){let n={useLastValid:!1,...t};if(e>1114111){let t=e.toString(16);if(n.useLastValid)e=1114111;else throw Error(e>1310719?`Invalid code point out of range "\\x{${t}}"`:`Invalid code point out of range in JS "\\x{${t}}"`)}return{type:`Character`,value:e}}function li(e){let t={kind:`union`,negate:!1,...e};return{type:`CharacterClass`,kind:t.kind,negate:t.negate,body:Si(e?.body)}}function ui(e,t){if(t.value<e.value)throw Error(`Character class range out of order`);return{type:`CharacterClassRange`,min:e,max:t}}function di(e,t){let n=!!t?.negate,r={type:`CharacterSet`,kind:e};return(e===`digit`||e===`hex`||e===`newline`||e===`space`||e===`word`)&&(r.negate=n),(e===`text_segment`||e===`newline`&&!n)&&(r.variableLength=!0),r}function fi(e,t={}){if(e===`keep`)return{type:`Directive`,kind:e};if(e===`flags`)return{type:`Directive`,kind:e,flags:P(t.flags)};throw Error(`Unexpected directive kind "${e}"`)}function pi(e){return{type:`Flags`,...e}}function R(e){let t=e?.atomic,n=e?.flags;if(t&&n)throw Error(`Atomic group cannot have flags`);return{type:`Group`,...t&&{atomic:t},...n&&{flags:n},body:xi(e?.body)}}function z(e){let t={behind:!1,negate:!1,...e};return{type:`LookaroundAssertion`,kind:t.behind?`lookbehind`:`lookahead`,negate:t.negate,body:xi(e?.body)}}function mi(e,t,n){return{type:`NamedCallout`,kind:e,tag:t,arguments:n}}function hi(e,t){let n=!!t?.negate;if(!cr.has(e))throw Error(`Invalid POSIX class "${e}"`);return{type:`CharacterSet`,kind:`posix`,value:e,negate:n}}function gi(e,t,n,r){if(t>n)throw Error(`Invalid reversed quantifier range`);return{type:`Quantifier`,kind:e,min:t,max:n,body:r}}function _i(e,t){return{type:`Regex`,body:xi(t?.body),flags:e}}function vi(e){return{type:`Subroutine`,ref:e}}function yi(e,t){let n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t},r=n.unicodePropertyMap?.get(Di(e));if(!r){if(n.normalizeUnknownPropertyNames)r=Ei(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw Error(N`Invalid Unicode property "\p{${e}}"`)}return{type:`CharacterSet`,kind:`property`,value:r??e,negate:n.negate}}function bi({flags:e,kind:t,name:n,negate:r,number:i}){switch(t){case`absence_repeater`:return ii(`repeater`);case`atomic`:return R({atomic:!0});case`capturing`:return si(i,{name:n});case`group`:return R({flags:e});case`lookahead`:case`lookbehind`:return z({behind:t===`lookbehind`,negate:r});default:throw Error(`Unexpected group kind "${t}"`)}}function xi(e){if(e===void 0)e=[L()];else if(!Array.isArray(e)||!e.length||!e.every(e=>e.type===`Alternative`))throw Error(`Invalid body; expected array of one or more Alternative nodes`);return e}function Si(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(e=>!!e.type))throw Error(`Invalid body; expected array of nodes`);return e}function Ci(e){return e.type===`LookaroundAssertion`&&e.kind===`lookahead`}function wi(e){return e.type===`LookaroundAssertion`&&e.kind===`lookbehind`}function Ti(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function Ei(e){return e.trim().replace(/[- _]+/g,`_`).replace(/[A-Z][a-z]+(?=[A-Z])/g,`$&_`).replace(/[A-Za-z]+/g,e=>e[0].toUpperCase()+e.slice(1).toLowerCase())}function Di(e){return e.replace(/[- _]+/g,``).toLowerCase()}function Oi(e,t){let n=t;return P(e,`Unclosed character class${n?.type===`Character`&&n.value===93&&n.raw===`]`?` (started with "]")`:``}`)}function ki(e){return P(e,`Unclosed group`)}function Ai(e,t,n=null){function r(e,t){for(let n=0;n<e.length;n++){let r=i(e[n],t,n,e);n=Math.max(-1,n+r)}}function i(a,o=null,s=null,c=null){let l=0,u=!1,d={node:a,parent:o,key:s,container:c,root:e,remove(){ji(c).splice(Math.max(0,Mi(s)+l),1),l--,u=!0},removeAllNextSiblings(){return ji(c).splice(Mi(s)+1)},removeAllPrevSiblings(){let e=Mi(s)+l;return l-=e,ji(c).splice(0,Math.max(0,e))},replaceWith(e,t={}){let n=!!t.traverse;c?c[Math.max(0,Mi(s)+l)]=e:P(o,`Can't replace root node`)[s]=e,n&&i(e,o,s,c),u=!0},replaceWithMultiple(e,t={}){let n=!!t.traverse;if(ji(c).splice(Math.max(0,Mi(s)+l),1,...e),l+=e.length-1,n){let t=0;for(let n=0;n<e.length;n++)t+=i(e[n],o,Mi(s)+n+t,c)}u=!0},skip(){u=!0}},{type:f}=a,p=t[`*`],m=t[f],h=typeof p==`function`?p:p?.enter,g=typeof m==`function`?m:m?.enter;if(h?.(d,n),g?.(d,n),!u)switch(f){case`AbsenceFunction`:case`Alternative`:case`CapturingGroup`:case`CharacterClass`:case`Group`:case`LookaroundAssertion`:r(a.body,a);break;case`Assertion`:case`Backreference`:case`Character`:case`CharacterSet`:case`Directive`:case`Flags`:case`NamedCallout`:case`Subroutine`:break;case`CharacterClassRange`:i(a.min,a,`min`),i(a.max,a,`max`);break;case`Quantifier`:i(a.body,a,`body`);break;case`Regex`:r(a.body,a),i(a.flags,a,`flags`);break;default:throw Error(`Unexpected node type "${f}"`)}return m?.exit?.(d,n),p?.exit?.(d,n),l}return i(e),e}function ji(e){if(!Array.isArray(e))throw Error(`Container expected`);return e}function Mi(e){if(typeof e!=`number`)throw Error(`Numeric key expected`);return e}var Ni=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function Pi(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function Fi(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}var B=Object.freeze({DEFAULT:`DEFAULT`,CHAR_CLASS:`CHAR_CLASS`});function Ii(e,t,n,r){let i=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,`gsu`),a=[!1],o=0,s=``;for(let t of e.matchAll(i)){let{0:e,groups:{$skip:i}}=t;if(!i&&(!r||r===B.DEFAULT==!o)){n instanceof Function?s+=n(t,{context:o?B.CHAR_CLASS:B.DEFAULT,negated:a[a.length-1]}):s+=n;continue}e[0]===`[`?(o++,a.push(e[1]===`^`)):e===`]`&&o&&(o--,a.pop()),s+=e}return s}function Li(e,t,n,r){Ii(e,t,n,r)}function Ri(e,t,n=0,r){if(!new RegExp(t,`su`).test(e))return null;let i=RegExp(`${t}|(?<$skip>\\\\?.)`,`gsu`);i.lastIndex=n;let a=0,o;for(;o=i.exec(e);){let{0:e,groups:{$skip:t}}=o;if(!t&&(!r||r===B.DEFAULT==!a))return o;e===`[`?a++:e===`]`&&a&&a--,i.lastIndex==o.index&&i.lastIndex++}return null}function zi(e,t,n){return!!Ri(e,t,0,n)}function Bi(e,t){let n=/\\?./gsu;n.lastIndex=t;let r=e.length,i=0,a=1,o;for(;o=n.exec(e);){let[e]=o;if(e===`[`)i++;else if(i)e===`]`&&i--;else if(e===`(`)a++;else if(e===`)`&&(a--,!a)){r=o.index;break}}return e.slice(t,r)}var Vi=new RegExp(String.raw`(?<noncapturingStart>${Ni})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,`gsu`);function Hi(e,t){let n=t?.hiddenCaptures??[],r=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:r,hiddenCaptures:n};let i=[0],a=[],o=0,s=0,c=NaN,l;do{l=!1;let t=0,u=0,d=!1,f;for(Vi.lastIndex=Number.isNaN(c)?0:c+7;f=Vi.exec(e);){let{0:p,index:m,groups:{capturingStart:h,noncapturingStart:g}}=f;if(p===`[`)t++;else if(t)p===`]`&&t--;else if(p===`(?>`&&!d)c=m,d=!0;else if(d&&g)u++;else if(h)d?u++:(o++,i.push(o+s));else if(p===`)`&&d){if(!u){s++;let t=o+s;if(e=`${e.slice(0,c)}(?:(?=(${e.slice(c+3,m)}))<$$${t}>)${e.slice(m+1)}`,l=!0,a.push(t),Pi(n,t),r.size){let e=new Map;r.forEach((n,r)=>{e.set(r>=t?r+1:r,n.map(e=>e>=t?e+1:e))}),r=e}break}u--}}}while(l);return n.push(...a),e=Ii(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:e,groups:{backrefNum:t,wrappedBackrefNum:n}})=>{if(t){let n=+t;if(n>i.length-1)throw Error(`Backref "${e}" greater than number of captures`);return`\\${i[n]}`}return`\\${n}`},B.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}var Ui=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Wi=new RegExp(String.raw`
44
+ \\(?: \d+
45
+ | c[A-Za-z]
46
+ | [gk]<[^>]+>
47
+ | [pPu]\{[^\}]+\}
48
+ | u[A-Fa-f\d]{4}
49
+ | x[A-Fa-f\d]{2}
50
+ )
51
+ | \((?: \? (?: [:=!>]
52
+ | <(?:[=!]|[^>]+>)
53
+ | [A-Za-z\-]+:
54
+ | \(DEFINE\)
55
+ ))?
56
+ | (?<qBase>${Ui})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
57
+ | \\?.
58
+ `.replace(/\s+/g,``),`gsu`);function Gi(e){if(!RegExp(`${Ui}\\+`).test(e))return{pattern:e};let t=[],n=null,r=null,i=``,a=0,o;for(Wi.lastIndex=0;o=Wi.exec(e);){let{0:s,index:c,groups:{qBase:l,qMod:u,invalidQ:d}}=o;if(s===`[`)a||(r=c),a++;else if(s===`]`)a?a--:r=null;else if(!a){if(u===`+`&&i&&!i.startsWith(`(`)){if(d)throw Error(`Invalid quantifier "${s}"`);let t=-1;if(/^\{\d+\}$/.test(l))e=Fi(e,c+l.length,u,``);else{if(i===`)`||i===`]`){let t=i===`)`?n:r;if(t===null)throw Error(`Invalid unmatched "${i}"`);e=`${e.slice(0,t)}(?>${e.slice(t,c)}${l})${e.slice(c+s.length)}`}else e=`${e.slice(0,c-i.length)}(?>${i}${l})${e.slice(c+s.length)}`;t+=4}Wi.lastIndex+=t}else s[0]===`(`?t.push(c):s===`)`&&(n=t.length?t.pop():null)}i=s}return{pattern:e}}var V=String.raw,Ki=V`\(\?R=(?<rDepth>[^\)]+)\)|${V`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`}`,qi=V`\(\?<(?![=!])(?<captureName>[^>]+)>`,Ji=V`${qi}|(?<unnamed>\()(?!\?)`,H=new RegExp(V`${qi}|${Ki}|\(\?|\\?.`,`gsu`),Yi=`Cannot use multiple overlapping recursions`;function Xi(e,t){let{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:`plugin`,...t},i=t?.captureTransfers??new Map;if(!new RegExp(Ki,`su`).test(e))return{pattern:e,captureTransfers:i,hiddenCaptures:n};if(r===`plugin`&&zi(e,V`\(\?\(DEFINE\)`,B.DEFAULT))throw Error(`DEFINE groups cannot be used with recursion`);let a=[],o=zi(e,V`\\[1-9]`,B.DEFAULT),s=new Map,c=[],l=!1,u=0,d=0,f;for(H.lastIndex=0;f=H.exec(e);){let{0:t,groups:{captureName:p,rDepth:m,gRNameOrNum:h,gRDepth:g}}=f;if(t===`[`)u++;else if(u)t===`]`&&u--;else{if(m){if(Zi(m),l)throw Error(Yi);if(o)throw Error(`${r===`external`?`Backrefs`:`Numbered backrefs`} cannot be used with global recursion`);let t=e.slice(0,f.index),s=e.slice(H.lastIndex);if(zi(s,Ki,B.DEFAULT))throw Error(Yi);let c=m-1;e=Qi(t,s,c,!1,n,a,d),i=ta(i,t,c,a.length,0,d);break}if(h){Zi(g);let u=!1;for(let e of c)if(e.name===h||e.num===+h){if(u=!0,e.hasRecursedWithin)throw Error(Yi);break}if(!u)throw Error(V`Recursive \g cannot be used outside the referenced group "${r===`external`?h:V`\g<${h}&R=${g}>`}"`);let p=s.get(h),m=Bi(e,p);if(o&&zi(m,V`${qi}|\((?!\?)`,B.DEFAULT))throw Error(`${r===`external`?`Backrefs`:`Numbered backrefs`} cannot be used with recursion of capturing groups`);let _=e.slice(p,f.index),ee=m.slice(_.length+t.length),te=a.length,ne=g-1,re=Qi(_,ee,ne,!0,n,a,d);i=ta(i,_,ne,a.length-te,te,d),e=`${e.slice(0,p)}${re}${e.slice(p+m.length)}`,H.lastIndex+=re.length-t.length-_.length-ee.length,c.forEach(e=>e.hasRecursedWithin=!0),l=!0}else if(p)d++,s.set(String(d),H.lastIndex),s.set(p,H.lastIndex),c.push({num:d,name:p});else if(t[0]===`(`){let e=t===`(`;e&&(d++,s.set(String(d),H.lastIndex)),c.push(e?{num:d}:{})}else t===`)`&&c.pop()}}return n.push(...a),{pattern:e,captureTransfers:i,hiddenCaptures:n}}function Zi(e){let t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e)||(e=+e,e<2||e>100))throw Error(t)}function Qi(e,t,n,r,i,a,o){let s=new Set;r&&Li(e+t,qi,({groups:{captureName:e}})=>{s.add(e)},B.DEFAULT);let c=[n,r?s:null,i,a,o];return`${e}${$i(`(?:${e}`,`forward`,...c)}(?:)${$i(`${t})`,`backward`,...c)}${t}`}function $i(e,t,n,r,i,a,o){let s=e=>t===`forward`?e+2:n-e+2-1,c=``;for(let t=0;t<n;t++){let n=s(t);c+=Ii(e,V`${Ji}|\\k<(?<backref>[^>]+)>`,({0:e,groups:{captureName:t,unnamed:s,backref:c}})=>{if(c&&r&&!r.has(c))return e;let l=`_$${n}`;if(s||t){let n=o+a.length+1;return a.push(n),ea(i,n),s?e:`(?<${t}${l}>`}return V`\k<${c}${l}>`},B.DEFAULT)}return c}function ea(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function ta(e,t,n,r,i,a){if(e.size&&r){let o=0;Li(t,Ji,()=>o++,B.DEFAULT);let s=a-o+i,c=new Map;return e.forEach((e,t)=>{let i=(r-o*n)/n,a=o*n,l=t>s+o?t+r:t,u=[];for(let t of e)if(t<=s)u.push(t);else if(t>s+o+i)u.push(t+r);else if(t<=s+o)for(let e=0;e<=n;e++)u.push(t+o*e);else for(let e=0;e<=n;e++)u.push(t+a+i*e);c.set(l,u)}),c}return e}var U=String.fromCodePoint,W=String.raw,G={},na=globalThis.RegExp;G.flagGroups=(()=>{try{new na(`(?i:)`)}catch{return!1}return!0})(),G.unicodeSets=(()=>{try{new na(`[[]]`,`v`)}catch{return!1}return!0})(),G.bugFlagVLiteralHyphenIsRange=G.unicodeSets?(()=>{try{new na(W`[\d\-a]`,`v`)}catch{return!0}return!1})():!1,G.bugNestedClassIgnoresNegation=G.unicodeSets&&new na(`[[^a]]`,`v`).test(`a`);function ra(e,{enable:t,disable:n}){return{dotAll:!n?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!n?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function ia(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function aa(e,t){return sa[e]>=sa[t]}function oa(e,t){if(e==null)throw Error(t??`Value expected`);return e}var sa={ES2025:2025,ES2024:2024,ES2018:2018},ca={auto:`auto`,ES2025:`ES2025`,ES2024:`ES2024`,ES2018:`ES2018`};function la(e={}){if({}.toString.call(e)!==`[object Object]`)throw Error(`Unexpected options`);if(e.target!==void 0&&!ca[e.target])throw Error(`Unexpected target "${e.target}"`);let t={accuracy:`default`,avoidSubclass:!1,flags:``,global:!1,hasIndices:!1,lazyCompileLength:1/0,target:`auto`,verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target===`auto`&&(t.target=G.flagGroups?`ES2025`:G.unicodeSets?`ES2024`:`ES2018`),t}var ua=`[ -\r ]`,da=new Set([U(304),U(305)]),K=W`[\p{L}\p{M}\p{N}\p{Pc}]`;function fa(e){if(da.has(e))return[e];let t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),i=ga.get(n),a=ma.get(n),o=ha.get(n);return[...r].length===1&&t.add(r),o&&t.add(o),i&&t.add(i),t.add(n),a&&t.add(a),[...t]}var pa=new Map(`C Other
59
+ Cc Control cntrl
60
+ Cf Format
61
+ Cn Unassigned
62
+ Co Private_Use
63
+ Cs Surrogate
64
+ L Letter
65
+ LC Cased_Letter
66
+ Ll Lowercase_Letter
67
+ Lm Modifier_Letter
68
+ Lo Other_Letter
69
+ Lt Titlecase_Letter
70
+ Lu Uppercase_Letter
71
+ M Mark Combining_Mark
72
+ Mc Spacing_Mark
73
+ Me Enclosing_Mark
74
+ Mn Nonspacing_Mark
75
+ N Number
76
+ Nd Decimal_Number digit
77
+ Nl Letter_Number
78
+ No Other_Number
79
+ P Punctuation punct
80
+ Pc Connector_Punctuation
81
+ Pd Dash_Punctuation
82
+ Pe Close_Punctuation
83
+ Pf Final_Punctuation
84
+ Pi Initial_Punctuation
85
+ Po Other_Punctuation
86
+ Ps Open_Punctuation
87
+ S Symbol
88
+ Sc Currency_Symbol
89
+ Sk Modifier_Symbol
90
+ Sm Math_Symbol
91
+ So Other_Symbol
92
+ Z Separator
93
+ Zl Line_Separator
94
+ Zp Paragraph_Separator
95
+ Zs Space_Separator
96
+ ASCII
97
+ ASCII_Hex_Digit AHex
98
+ Alphabetic Alpha
99
+ Any
100
+ Assigned
101
+ Bidi_Control Bidi_C
102
+ Bidi_Mirrored Bidi_M
103
+ Case_Ignorable CI
104
+ Cased
105
+ Changes_When_Casefolded CWCF
106
+ Changes_When_Casemapped CWCM
107
+ Changes_When_Lowercased CWL
108
+ Changes_When_NFKC_Casefolded CWKCF
109
+ Changes_When_Titlecased CWT
110
+ Changes_When_Uppercased CWU
111
+ Dash
112
+ Default_Ignorable_Code_Point DI
113
+ Deprecated Dep
114
+ Diacritic Dia
115
+ Emoji
116
+ Emoji_Component EComp
117
+ Emoji_Modifier EMod
118
+ Emoji_Modifier_Base EBase
119
+ Emoji_Presentation EPres
120
+ Extended_Pictographic ExtPict
121
+ Extender Ext
122
+ Grapheme_Base Gr_Base
123
+ Grapheme_Extend Gr_Ext
124
+ Hex_Digit Hex
125
+ IDS_Binary_Operator IDSB
126
+ IDS_Trinary_Operator IDST
127
+ ID_Continue IDC
128
+ ID_Start IDS
129
+ Ideographic Ideo
130
+ Join_Control Join_C
131
+ Logical_Order_Exception LOE
132
+ Lowercase Lower
133
+ Math
134
+ Noncharacter_Code_Point NChar
135
+ Pattern_Syntax Pat_Syn
136
+ Pattern_White_Space Pat_WS
137
+ Quotation_Mark QMark
138
+ Radical
139
+ Regional_Indicator RI
140
+ Sentence_Terminal STerm
141
+ Soft_Dotted SD
142
+ Terminal_Punctuation Term
143
+ Unified_Ideograph UIdeo
144
+ Uppercase Upper
145
+ Variation_Selector VS
146
+ White_Space space
147
+ XID_Continue XIDC
148
+ XID_Start XIDS`.split(/\s/).map(e=>[Di(e),e])),ma=new Map([[`s`,U(383)],[U(383),`s`]]),ha=new Map([[U(223),U(7838)],[U(107),U(8490)],[U(229),U(8491)],[U(969),U(8486)]]),ga=new Map([q(453),q(456),q(459),q(498),...ya(8072,8079),...ya(8088,8095),...ya(8104,8111),q(8124),q(8140),q(8188)]),_a=new Map([[`alnum`,W`[\p{Alpha}\p{Nd}]`],[`alpha`,W`\p{Alpha}`],[`ascii`,W`\p{ASCII}`],[`blank`,W`[\p{Zs}\t]`],[`cntrl`,W`\p{Cc}`],[`digit`,W`\p{Nd}`],[`graph`,W`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],[`lower`,W`\p{Lower}`],[`print`,W`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],[`punct`,W`[\p{P}\p{S}]`],[`space`,W`\p{space}`],[`upper`,W`\p{Upper}`],[`word`,W`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],[`xdigit`,W`\p{AHex}`]]);function va(e,t){let n=[];for(let r=e;r<=t;r++)n.push(r);return n}function q(e){let t=U(e);return[t.toLowerCase(),t]}function ya(e,t){return va(e,t).map(e=>q(e))}var ba=new Set([`Lower`,`Lowercase`,`Upper`,`Uppercase`,`Ll`,`Lowercase_Letter`,`Lt`,`Titlecase_Letter`,`Lu`,`Uppercase_Letter`]);function xa(e,t){let n={accuracy:`default`,asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:`ES2025`,...t};Ta(e);let r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:aa(n.bestEffortTarget,`ES2024`),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};Ai(e,Sa,r);let i={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},a={currentFlags:i,prevFlags:null,globalFlags:i,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};return Ai(e,Ca,a),Ai(e,wa,{groupsByName:a.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:a.reffedNodesByReferencer}),e._originMap=a.groupOriginByCopy,e._strategy=r.strategy,e}var Sa={AbsenceFunction({node:e,parent:t,replaceWith:n}){let{body:r,kind:i}=e;if(i===`repeater`){let e=R();e.body[0].body.push(z({negate:!0,body:r}),yi(`Any`));let i=R();i.body[0].body.push(gi(`greedy`,0,1/0,e)),n(X(i,t),{traverse:!0})}else throw Error(`Unsupported absence function "(?~|"`)},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){let i=e.body.filter(e=>e.kind===`flags`);for(let e=n+1;e<t.body.length;e++){let n=t.body[e];ia(r,n,[]).push(...i)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){let n=Ma(t.get(e));if(n){let t=R({flags:n});t.body[0].body=e.body,e.body=[X(t,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:i,remove:a,replaceWith:o},s){let{kind:c,negate:l}=e,{asciiWordBoundaries:u,avoidSubclass:d,supportedGNodes:f,wordIsAscii:p}=s;if(c===`text_segment_boundary`)throw Error(`Unsupported text segment boundary "\\${l?`Y`:`y`}"`);if(c===`line_end`)o(X(z({body:[L({body:[ai(`string_end`)]}),L({body:[ci(10)]})]}),t));else if(c===`line_start`)o(X(J(W`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(c===`search_start`){if(f.has(e))i.flags.sticky=!0,a();else{let e=r[n-1];if(e&&Ra(e))o(X(z({negate:!0}),t));else if(d)throw Error(W`Uses "\G" in a way that requires a subclass`);else o(Y(ai(`string_start`),t)),s.strategy=`clip_search`}}else if(c!==`string_end`&&c!==`string_start`){if(c===`string_end_newline`)o(X(J(W`(?=\n?\z)`),t));else if(c===`word_boundary`){if(!p&&!u){let e=`(?:(?<=${K})(?!${K})|(?<!${K})(?=${K}))`,n=`(?:(?<=${K})(?=${K})|(?<!${K})(?!${K}))`;o(X(J(l?n:e),t))}}else throw Error(`Unexpected assertion kind "${c}"`)}},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n==`string`&&!Ba(n)&&(n=ja(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!Ba(r)&&(r=ja(r,t),e.name=r),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){t.kind===`intersection`&&n(X(li({body:[e]}),t),{traverse:!0})},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:i,digitIsAscii:a,spaceIsAscii:o,wordIsAscii:s}){let{kind:c,negate:l,value:u}=e;if(a&&(c===`digit`||u===`digit`)){n(Y(di(`digit`,{negate:l}),t));return}if(o&&(c===`space`||u===`space`)){n(X(Va(J(ua),l),t));return}if(s&&(c===`word`||u===`word`)){n(Y(di(`word`,{negate:l}),t));return}if(c===`any`)n(Y(yi(`Any`),t));else if(c===`digit`)n(Y(yi(`Nd`,{negate:l}),t));else if(c!==`dot`){if(c===`text_segment`){if(r===`strict`)throw Error(W`Use of "\X" requires non-strict accuracy`);let e=`\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?`,a=W`\p{RI}{2}|${e}(?:\u200D${e})*`;n(X(J(W`(?>\r\n|${i?W`\p{RGI_Emoji}`:a}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(c===`hex`)n(Y(yi(`AHex`,{negate:l}),t));else if(c===`newline`)n(X(J(l?`[^
149
+ ]`:`(?>\r
150
+ ?|[
151
+ \v\f…\u2028\u2029])`),t));else if(c===`posix`){if(!i&&(u===`graph`||u===`print`)){if(r===`strict`)throw Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let e={graph:`!-~`,print:` -~`}[u];l&&(e=`\0-${U(e.codePointAt(0)-1)}${U(e.codePointAt(2)+1)}-\u{10FFFF}`),n(X(J(`[${e}]`),t))}else n(X(Va(J(_a.get(u)),l),t))}else if(c===`property`)pa.has(Di(u))||(e.key=`sc`);else if(c===`space`)n(Y(yi(`space`,{negate:l}),t));else if(c===`word`)n(X(Va(J(K),l),t));else throw Error(`Unexpected character set kind "${c}"`)}},Directive({node:e,parent:t,root:n,remove:r,replaceWith:i,removeAllPrevSiblings:a,removeAllNextSiblings:o}){let{kind:s,flags:c}=e;if(s===`flags`){if(!c.enable&&!c.disable)r();else{let e=R({flags:c});e.body[0].body=o(),i(X(e,t),{traverse:!0})}}else if(s===`keep`){let e=n.body[0],r=n.body.length===1&&Kr(e,{type:`Group`})&&e.body[0].body.length===1?e.body[0]:n;if(t.parent!==r||r.body.length>1)throw Error(W`Uses "\K" in a way that's unsupported`);let o=z({behind:!0});o.body[0].body=a(),i(X(o,t))}else throw Error(`Unexpected directive kind "${s}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw Error(`Unsupported flag "P"`);if(e.textSegmentMode===`word`)throw Error(`Unsupported flag "y{w}"`);[`digitIsAscii`,`extended`,`posixIsAscii`,`spaceIsAscii`,`wordIsAscii`,`textSegmentMode`].forEach(t=>delete e[t]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;let{enable:t,disable:n}=e.flags;t?.extended&&delete t.extended,n?.extended&&delete n.extended,t?.dotAll&&n?.dotAll&&delete t.dotAll,t?.ignoreCase&&n?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){let{kind:n}=e;n===`lookbehind`&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){let{kind:r}=e;if(r===`fail`)n(X(z({negate:!0}),t));else throw Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type===`Quantifier`){let t=R();t.body[0].body.push(e.body),e.body=X(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let n=[],r=!1,i=!1;for(let t of e.body)if(t.body.length===1&&t.body[0].kind===`search_start`)t.body.pop();else{let e=Fa(t.body);e?(r=!0,Array.isArray(e)?n.push(...e):n.push(e)):i=!0}r&&!i&&n.forEach(e=>t.add(e))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t===`strict`&&n&&r)throw Error(W`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n==`string`&&!Ba(n)&&(n=ja(n,t),e.ref=n)}},Ca={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){let{orphan:r,ref:i}=e;r||n.set(e,[...t.get(i).map(({node:e})=>e)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:i,groupsByName:a,multiplexCapturesToLeftByRef:o,openRefs:s,reffedNodesByReferencer:c}){let l=i.get(e);if(l&&s.has(e.number)){let r=Y(ka(e.number),t);c.set(r,s.get(e.number)),n(r);return}s.set(e.number,e),o.set(e.number,[]),e.name&&ia(o,e.name,[]);let u=o.get(e.name??e.number);for(let t=0;t<u.length;t++){let n=u[t];if(l===n.node||l&&l===n.origin||e===n.origin){u.splice(t,1);break}}if(o.get(e.number).push({node:e,origin:l}),e.name&&o.get(e.name).push({node:e,origin:l}),e.name){let t=ia(a,e.name,new Map),n=!1;if(l)n=!0;else for(let e of t.values())if(!e.hasDuplicateNameToRemove){n=!0;break}a.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:n})}},exit({node:e},{openRefs:t}){t.get(e.number)===e&&t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=ra(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){let{isRecursive:i,ref:a}=e;if(i){let n=t;for(;(n=n.parent)&&(n.type!==`CapturingGroup`||n.name!==a&&n.number!==a););r.reffedNodesByReferencer.set(e,n);return}let o=r.subroutineRefMap.get(a),s=a===0,c=s?ka(0):Oa(o,r.groupOriginByCopy,null),l=c;if(!s){let e=Ma(Aa(o,e=>e.type===`Group`&&!!e.flags)),t=e?ra(r.globalFlags,e):r.globalFlags;Ea(t,r.currentFlags)||(l=R({flags:Na(t)}),l.body[0].body.push(c))}n(X(l,t),{traverse:!s})}},wa={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}let i=r.reffedNodesByReferencer.get(e).filter(t=>Da(t,e));i.length?i.length>1?n(X(R({atomic:!0,body:i.reverse().map(e=>L({body:[oi(e.number)]}))}),t)):e.ref=i[0].number:n(X(z({negate:!0}),t))},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){let n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let t=0;t<n;t++){let t=si();e.body.at(-1).body.push(t)}}},Subroutine({node:e},t){e.isRecursive&&e.ref!==0&&(e.ref=t.reffedNodesByReferencer.get(e).number)}};function Ta(e){Ai(e,{"*"({node:e,parent:t}){e.parent=t}})}function Ea(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function Da(e,t){let n=t;do{if(n.type===`Regex`)return!1;if(n.type===`Alternative`)continue;if(n===e)return!1;let t=Pa(n.parent);for(let r of t){if(r===n)break;if(r===e||Ia(r,e))return!0}}while(n=n.parent);throw Error(`Unexpected path`)}function Oa(e,t,n,r){let i=Array.isArray(e)?[]:{};for(let[a,o]of Object.entries(e))a===`parent`?i.parent=Array.isArray(n)?r:n:o&&typeof o==`object`?i[a]=Oa(o,t,i,n):(a===`type`&&o===`CapturingGroup`&&t.set(i,t.get(e)??e),i[a]=o);return i}function ka(e){let t=vi(e);return t.isRecursive=!0,t}function Aa(e,t){let n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function ja(e,t){if(t.has(e))return t.get(e);let n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/gu,`_`)}`;return t.set(e,n),n}function Ma(e){let t=[`dotAll`,`ignoreCase`],n={enable:{},disable:{}};return e.forEach(({flags:e})=>{t.forEach(t=>{e.enable?.[t]&&(delete n.disable[t],n.enable[t]=!0),e.disable?.[t]&&(n.disable[t]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function Na({dotAll:e,ignoreCase:t}){let n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),(!e||!t)&&(n.disable={},!e&&(n.disable.dotAll=!0),!t&&(n.disable.ignoreCase=!0)),n}function Pa(e){if(!e)throw Error(`Node expected`);let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function Fa(e){let t=e.find(e=>e.kind===`search_start`||za(e,{negate:!1})||!La(e));if(!t)return null;if(t.kind===`search_start`)return t;if(t.type===`LookaroundAssertion`)return t.body[0].body[0];if(t.type===`CapturingGroup`||t.type===`Group`){let e=[];for(let n of t.body){let t=Fa(n.body);if(!t)return null;Array.isArray(t)?e.push(...t):e.push(t)}return e}return null}function Ia(e,t){let n=Pa(e)??[];for(let e of n)if(e===t||Ia(e,t))return!0;return!1}function La({type:e}){return e===`Assertion`||e===`Directive`||e===`LookaroundAssertion`}function Ra(e){let t=[`Character`,`CharacterClass`,`CharacterSet`];return t.includes(e.type)||e.type===`Quantifier`&&e.min&&t.includes(e.body.type)}function za(e,t){let n={negate:null,...t};return e.type===`LookaroundAssertion`&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&Kr(e.body[0],{type:`Assertion`,kind:`search_start`})}function Ba(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function J(e,t){let n=Yr(e,{...t,unicodePropertyMap:pa}).body;return n.length>1||n[0].body.length>1?R({body:n}):n[0].body[0]}function Va(e,t){return e.negate=t,e}function Y(e,t){return e.parent=t,e}function X(e,t){return Ta(e),e.parent=t,e}function Ha(e,t){let n=la(t),r=aa(n.target,`ES2024`),i=aa(n.target,`ES2025`),a=n.rules.recursionLimit;if(!Number.isInteger(a)||a<2||a>20)throw Error(`Invalid recursionLimit; use 2-20`);let o=null,s=null;if(!i){let t=[e.flags.ignoreCase];Ai(e,Ua,{getCurrentModI:()=>t.at(-1),popModI(){t.pop()},pushModI(e){t.push(e)},setHasCasedChar(){t.at(-1)?o=!0:s=!0}})}let c={dotAll:e.flags.dotAll,ignoreCase:!(!e.flags.ignoreCase&&!o||s)},l=e,u={accuracy:n.accuracy,appliedGlobalFlags:c,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:l,originMap:e._originMap,recursionLimit:a,useAppliedIgnoreCase:!!(!i&&o&&s),useFlagMods:i,useFlagV:r,verbose:n.verbose};function d(e){return u.lastNode=l,l=e,oa(Wa[e.type],`Unexpected node type "${e.type}"`)(e,u,d)}let f={pattern:e.body.map(d).join(`|`),flags:d(e.flags),options:{...e.options}};return r||(delete f.options.force.v,f.options.disable.v=!0,f.options.unicodeSetsPlugin=null),f._captureTransfers=new Map,f._hiddenCaptures=[],u.captureMap.forEach((e,t)=>{e.hidden&&f._hiddenCaptures.push(t),e.transferTo&&ia(f._captureTransfers,e.transferTo,[]).push(t)}),f}var Ua={"*":{enter({node:e},t){if(no(e)){let n=t.getCurrentModI();t.pushModI(e.flags?ra({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){no(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){Xa(U(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),Za(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind===`property`&&ba.has(e.value)&&t.setHasCasedChar()}},Wa={Alternative({body:e},t,n){return e.map(n).join(``)},Assertion({kind:e,negate:t}){if(e===`string_end`)return`$`;if(e===`string_start`)return`^`;if(e===`word_boundary`)return t?W`\B`:W`\b`;throw Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!=`number`)throw Error(`Unexpected named backref in transformed AST`);if(!t.useFlagMods&&t.accuracy===`strict`&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw Error(`Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy`);return`\\`+e},CapturingGroup(e,t,n){let{body:r,name:i,number:a}=e,o={ignoreCase:t.currentFlags.ignoreCase},s=t.originMap.get(e);return s&&(o.hidden=!0,a>s.number&&(o.transferTo=s.number)),t.captureMap.set(a,o),`(${i?`?<${i}>`:``}${r.map(n).join(`|`)})`},Character({value:e},t){let n=U(e),r=Qa(e,{escDigit:t.lastNode.type===`Backreference`,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&Xa(n)){let e=fa(n);return t.inCharClass?e.join(``):e.length>1?`[${e.join(``)}]`:e[0]}return n},CharacterClass(e,t,n){let{kind:r,negate:i,parent:a}=e,{body:o}=e;if(r===`intersection`&&!t.useFlagV)throw Error(`Use of character class intersection requires min target ES2024`);G.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&o.some(io)&&(o=[ci(45),...o.filter(e=>!io(e))]);let s=()=>`[${i?`^`:``}${o.map(n).join(r===`intersection`?`&&`:``)}]`;if(!t.inCharClass){if((!t.useFlagV||G.bugNestedClassIgnoresNegation)&&!i){let t=o.filter(e=>e.type===`CharacterClass`&&e.kind===`union`&&e.negate);if(t.length){let r=R(),i=r.body[0];return r.parent=a,i.parent=r,o=o.filter(e=>!t.includes(e)),e.body=o,o.length?(e.parent=i,i.body.push(e)):r.body.pop(),t.forEach(e=>{let t=L({body:[e]});e.parent=t,t.parent=r,r.body.push(t)}),n(r)}}t.inCharClass=!0;let r=s();return t.inCharClass=!1,r}let c=o[0];if(r===`union`&&!i&&c&&((!t.useFlagV||!t.verbose)&&a.kind===`union`&&!(G.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&a.kind===`intersection`&&o.length===1&&c.type!==`CharacterClassRange`))return o.map(n).join(``);if(!t.useFlagV&&a.type===`CharacterClass`)throw Error(`Uses nested character class in a way that requires min target ES2024`);return s()},CharacterClassRange(e,t){let n=e.min.value,r=e.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},a=Qa(n,i),o=Qa(r,i),s=new Set;return t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&$a(Za(e)).forEach(e=>{s.add(Array.isArray(e)?`${Qa(e[0],i)}-${Qa(e[1],i)}`:Qa(e,i))}),`${a}-${o}${[...s].join(``)}`},CharacterSet({kind:e,negate:t,value:n,key:r},i){if(e===`dot`)return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?`.`:`[^]`:W`[^\n]`;if(e===`digit`)return t?W`\D`:W`\d`;if(e===`property`){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&ba.has(n))throw Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?W`\P`:W`\p`}{${r?`${r}=`:``}${n}}`}if(e===`word`)return t?W`\W`:W`\w`;throw Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?`i`:``)+(e.dotAll?`s`:``)+(e.sticky?`y`:``)},Group({atomic:e,body:t,flags:n,parent:r},i,a){let o=i.currentFlags;n&&(i.currentFlags=ra(o,n));let s=t.map(a).join(`|`),c=!i.verbose&&t.length===1&&r.type!==`Quantifier`&&!e&&(!i.useFlagMods||!n)?s:`(?${eo(e,n,i.useFlagMods)}${s})`;return i.currentFlags=o,c},LookaroundAssertion({body:e,kind:t,negate:n},r,i){return`(?${`${t===`lookahead`?``:`<`}${n?`!`:`=`}`}${e.map(i).join(`|`)})`},Quantifier(e,t,n){return n(e.body)+to(e)},Subroutine({isRecursive:e,ref:t},n){if(!e)throw Error(`Unexpected non-recursive subroutine in transformed AST`);let r=n.recursionLimit;return t===0?`(?R=${r})`:W`\g<${t}&R=${r}>`}},Ga=new Set([`$`,`(`,`)`,`*`,`+`,`.`,`?`,`[`,`\\`,`]`,`^`,`{`,`|`,`}`]),Ka=new Set([`-`,`\\`,`]`,`^`,`[`]),qa=new Set("()-/[\\]^{|}!#$%&*+,.:;<=>?@`~".split(``)),Ja=new Map([[9,W`\t`],[10,W`\n`],[11,W`\v`],[12,W`\f`],[13,W`\r`],[8232,W`\u2028`],[8233,W`\u2029`],[65279,W`\uFEFF`]]),Ya=/^\p{Cased}$/u;function Xa(e){return Ya.test(e)}function Za(e,t){let n=!!t?.firstOnly,r=e.min.value,i=e.max.value,a=[];if(r<65&&(i===65535||i>=131071)||r===65536&&i>=131071)return a;for(let e=r;e<=i;e++){let t=U(e);if(!Xa(t))continue;let o=fa(t).filter(e=>{let t=e.codePointAt(0);return t<r||t>i});if(o.length&&(a.push(...o),n))break}return a}function Qa(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(Ja.has(e))return Ja.get(e);if(e<32||e>126&&e<160||e>262143||t&&ro(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,`0`)}`;let i=n?r?qa:Ka:Ga,a=U(e);return(i.has(a)?`\\`:``)+a}function $a(e){let t=e.map(e=>e.codePointAt(0)).sort((e,t)=>e-t),n=[],r=null;for(let e=0;e<t.length;e++)t[e+1]===t[e]+1?r??=t[e]:r===null?n.push(t[e]):(n.push([r,t[e]]),r=null);return n}function eo(e,t,n){if(e)return`>`;let r=``;if(t&&n){let{enable:e,disable:n}=t;r=(e?.ignoreCase?`i`:``)+(e?.dotAll?`s`:``)+(n?`-`:``)+(n?.ignoreCase?`i`:``)+(n?.dotAll?`s`:``)}return`${r}:`}function to({kind:e,max:t,min:n}){let r;return r=!n&&t===1?`?`:!n&&t===1/0?`*`:n===1&&t===1/0?`+`:n===t?`{${n}}`:`{${n},${t===1/0?``:t}}`,r+{greedy:``,lazy:`?`,possessive:`+`}[e]}function no({type:e}){return e===`CapturingGroup`||e===`Group`||e===`LookaroundAssertion`}function ro(e){return e>47&&e<58}function io({type:e,value:t}){return e===`Character`&&t===45}var ao=class e extends RegExp{#e=new Map;#t=null;#n;#r=null;#i=null;rawOptions={};get source(){return this.#n||`(?:)`}constructor(t,n,r){let i=!!r?.lazyCompile;if(t instanceof RegExp){if(r)throw Error(`Cannot provide options when copying a regexp`);let i=t;super(i,n),this.#n=i.source,i instanceof e&&(this.#e=i.#e,this.#r=i.#r,this.#i=i.#i,this.rawOptions=i.rawOptions)}else{let e={hiddenCaptures:[],strategy:null,transfers:[],...r};super(i?``:t,n),this.#n=t,this.#e=so(e.hiddenCaptures,e.transfers),this.#i=e.strategy,this.rawOptions=r??{}}i||(this.#t=this)}exec(t){if(!this.#t){let{lazyCompile:t,...n}=this.rawOptions;this.#t=new e(this.#n,this.flags,n)}let n=this.global||this.sticky,r=this.lastIndex;if(this.#i===`clip_search`&&n&&r){this.lastIndex=0;let e=this.#a(t.slice(r));return e&&(oo(e,r,t,this.hasIndices),this.lastIndex+=r),e}return this.#a(t)}#a(e){this.#t.lastIndex=this.lastIndex;let t=super.exec.call(this.#t,e);if(this.lastIndex=this.#t.lastIndex,!t||!this.#e.size)return t;let n=[...t];t.length=1;let r;this.hasIndices&&(r=[...t.indices],t.indices.length=1);let i=[0];for(let e=1;e<n.length;e++){let{hidden:a,transferTo:o}=this.#e.get(e)??{};if(a?i.push(null):(i.push(t.length),t.push(n[e]),this.hasIndices&&t.indices.push(r[e])),o&&n[e]!==void 0){let a=i[o];if(!a)throw Error(`Invalid capture transfer to "${a}"`);if(t[a]=n[e],this.hasIndices&&(t.indices[a]=r[e]),t.groups){this.#r||=co(this.source);let i=this.#r.get(o);i&&(t.groups[i]=n[e],this.hasIndices&&(t.indices.groups[i]=r[e]))}}}return t}};function oo(e,t,n,r){if(e.index+=t,e.input=n,r){let n=e.indices;for(let e=0;e<n.length;e++){let r=n[e];r&&(n[e]=[r[0]+t,r[1]+t])}let r=n.groups;r&&Object.keys(r).forEach(e=>{let n=r[e];n&&(r[e]=[n[0]+t,n[1]+t])})}}function so(e,t){let n=new Map;for(let t of e)n.set(t,{hidden:!0});for(let[e,r]of t)for(let t of r)ia(n,t,{}).transferTo=e;return n}function co(e){let t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map,r=0,i=0,a;for(;a=t.exec(e);){let{0:e,groups:{capture:t,name:o}}=a;e===`[`?r++:r?e===`]`&&r--:t&&(i++,o&&n.set(i,o))}return n}function lo(e,t){let n=uo(e,t);return n.options?new ao(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function uo(e,t){let n=la(t),r=xa(Yr(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:pa}),{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),i=Ha(r,n),a=Xi(i.pattern,{captureTransfers:i._captureTransfers,hiddenCaptures:i._hiddenCaptures,mode:`external`}),o=Hi(Gi(a.pattern).pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),s={pattern:o.pattern,flags:`${n.hasIndices?`d`:``}${n.global?`g`:``}${i.flags}${i.options.disable.v?`u`:`v`}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw Error(`Lazy compilation requires subclass`)}else{let e=o.hiddenCaptures.sort((e,t)=>e-t),t=Array.from(o.captureTransfers),i=r._strategy,a=s.pattern.length>=n.lazyCompileLength;(e.length||t.length||i||a)&&(s.options={...e.length&&{hiddenCaptures:e},...t.length&&{transfers:t},...i&&{strategy:i},...a&&{lazyCompile:a}})}return s}function fo(e,t){return lo(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function po(e={}){let t={target:`auto`,cache:new Map,...e};return t.regexConstructor||=e=>fo(e,{target:t.target}),{createScanner(e){return new ir(e,t)},createString:or}}var Z={typescript:()=>l(()=>import(`./typescript-BTGs5etX.js`).then(e=>e.n),__vite__mapDeps([0,1]),import.meta.url),javascript:()=>l(()=>import(`./javascript-DcMHgNcu.js`).then(e=>e.n),__vite__mapDeps([2,1]),import.meta.url),jsx:()=>l(()=>import(`./jsx-BUUYi3qs.js`).then(e=>e.n),__vite__mapDeps([3,1]),import.meta.url),tsx:()=>l(()=>import(`./tsx-DvWhG4dC.js`).then(e=>e.n),__vite__mapDeps([4,1]),import.meta.url),vue:()=>l(()=>import(`./vue-BbYmdtmv.js`),__vite__mapDeps([5,6,1,2,7,0,8]),import.meta.url),"vue-html":()=>l(()=>import(`./vue-html-BXjKVtKk.js`),__vite__mapDeps([9,2,1]),import.meta.url),"glimmer-js":()=>l(()=>import(`./glimmer-js-BheR6Tf0.js`),__vite__mapDeps([10,6,1,2,7,0]),import.meta.url),"glimmer-ts":()=>l(()=>import(`./glimmer-ts-B3Q3-uij.js`),__vite__mapDeps([11,6,1,2,7,0]),import.meta.url),handlebars:()=>l(()=>import(`./handlebars-qjPKy-PP.js`),__vite__mapDeps([12,6,1,2,7,13]),import.meta.url),json:()=>l(()=>import(`./json-qhed-kSA.js`),[],import.meta.url),jsonc:()=>l(()=>import(`./jsonc-CYpm1nAK.js`),[],import.meta.url),yaml:()=>l(()=>import(`./yaml-rwi0_p6S.js`),[],import.meta.url),toml:()=>l(()=>import(`./toml-CcmNWLt0.js`),[],import.meta.url),markdown:()=>l(()=>import(`./markdown-BYOwaDjH.js`),[],import.meta.url),mdx:()=>l(()=>import(`./mdx-DQZ5AkYe.js`),[],import.meta.url),css:()=>l(()=>import(`./css-DlBQoFxe.js`).then(e=>e.n),__vite__mapDeps([6,1]),import.meta.url),scss:()=>l(()=>import(`./scss-C-_0yqZd.js`),__vite__mapDeps([14,6,1]),import.meta.url),less:()=>l(()=>import(`./less-DVTAwKKz.js`),[],import.meta.url),html:()=>l(()=>import(`./html-BC8aFsRK.js`),__vite__mapDeps([7,6,1,2]),import.meta.url),xml:()=>l(()=>import(`./xml-BsprbK0m.js`),__vite__mapDeps([15,16,1]),import.meta.url),python:()=>l(()=>import(`./python-gzcpVVnB.js`),[],import.meta.url),go:()=>l(()=>import(`./go-rLFTqkRN.js`),[],import.meta.url),rust:()=>l(()=>import(`./rust-Cfkwpbl8.js`),[],import.meta.url),java:()=>l(()=>import(`./java-D7h0NA_A.js`).then(e=>e.n),__vite__mapDeps([16,1]),import.meta.url),kotlin:()=>l(()=>import(`./kotlin-DhhofPvG.js`),[],import.meta.url),c:()=>l(()=>import(`./c-BNQJhXlP.js`).then(e=>e.n),__vite__mapDeps([17,1]),import.meta.url),cpp:()=>l(()=>import(`./cpp-7GgD5o7L.js`),__vite__mapDeps([18,17,1]),import.meta.url),csharp:()=>l(()=>import(`./csharp-oqKa8noW.js`),[],import.meta.url),ruby:()=>l(()=>import(`./ruby-CaMjWH7T.js`),__vite__mapDeps([19,17,1,18,6,2,7,20,0,3,4,13,21,15,16,22,23]),import.meta.url),php:()=>l(()=>import(`./php-BahmaYs0.js`),__vite__mapDeps([24,6,1,2,7,8,15,16,22]),import.meta.url),swift:()=>l(()=>import(`./swift-CyEgAFGc.js`),[],import.meta.url),shellscript:()=>l(()=>import(`./shellscript-CLZ0U2zV.js`),[],import.meta.url),sql:()=>l(()=>import(`./sql-BsFa4tDR.js`),[],import.meta.url),docker:()=>l(()=>import(`./docker-IyjqRm3v.js`),[],import.meta.url),make:()=>l(()=>import(`./make-Dixweg8N.js`),[],import.meta.url),graphql:()=>l(()=>import(`./graphql-ki1Ij_uk.js`),__vite__mapDeps([20,2,1,0,3,4]),import.meta.url),diff:()=>l(()=>import(`./diff-woXpYk--.js`),[],import.meta.url),ini:()=>l(()=>import(`./ini-B5eOa1yu.js`),[],import.meta.url),perl:()=>l(()=>import(`./perl-C8GHouAq.js`),__vite__mapDeps([25,6,1,2,7,15,16,22]),import.meta.url),lua:()=>l(()=>import(`./lua-DCW0Dwo5.js`),__vite__mapDeps([21,17,1]),import.meta.url),r:()=>l(()=>import(`./r-C5FwQflr.js`),[],import.meta.url),scala:()=>l(()=>import(`./scala-BiFt_7mu.js`),[],import.meta.url),elixir:()=>l(()=>import(`./elixir-D3n0XgqJ.js`),__vite__mapDeps([26,7,6,1,2]),import.meta.url),haskell:()=>l(()=>import(`./haskell-D8IpX4py.js`),[],import.meta.url),clojure:()=>l(()=>import(`./clojure-DqKBuwfJ.js`),[],import.meta.url),groovy:()=>l(()=>import(`./groovy-CacY0gHj.js`),[],import.meta.url),"objective-c":()=>l(()=>import(`./objective-c-D1A_Heim.js`),[],import.meta.url),"objective-cpp":()=>l(()=>import(`./objective-cpp-BsSzOQcm.js`),[],import.meta.url),proto:()=>l(()=>import(`./proto-DB4EqR-F.js`),[],import.meta.url),terraform:()=>l(()=>import(`./terraform-DswuEJGm.js`),[],import.meta.url),nginx:()=>l(()=>import(`./nginx-C4fSytnP.js`),__vite__mapDeps([27,21,17,1]),import.meta.url)},mo={ts:Z.typescript,cts:Z.typescript,mts:Z.typescript,js:Z.javascript,cjs:Z.javascript,mjs:Z.javascript,gjs:Z[`glimmer-js`],gts:Z[`glimmer-ts`],hbs:Z.handlebars,yml:Z.yaml,md:Z.markdown,py:Z.python,rs:Z.rust,kt:Z.kotlin,kts:Z.kotlin,"c++":Z.cpp,"c#":Z.csharp,cs:Z.csharp,rb:Z.ruby,bash:Z.shellscript,sh:Z.shellscript,shell:Z.shellscript,zsh:Z.shellscript,dockerfile:Z.docker,makefile:Z.make,gql:Z.graphql,properties:Z.ini,hs:Z.haskell,clj:Z.clojure,objc:Z[`objective-c`],protobuf:Z.proto,tf:Z.terraform,tfvars:Z.terraform},ho={...Z,...mo},go={};function _o(){throw Error(`Oniguruma engine is not available in this build.`)}var vo=er({langs:ho,themes:go,engine:()=>po()});async function yo(e){if(he())throw Error(`resolveLanguage("${e}") cannot be called from a worker context. Languages must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);let t=ue.get(e);if(t!=null)return t;try{let t=de.get(e);if(t==null&&Object.prototype.hasOwnProperty.call(ho,e)&&(t=ho[e]),t==null)throw Error(`resolveLanguage: "${e}" not found in bundled or custom languages`);let n=t().then(({default:t})=>{let n={name:e,data:t};return le.has(e)||le.set(e,n),n});return ue.set(e,n),await n}finally{ue.delete(e)}}function bo(e){return le.get(e)??yo(e)}function xo(e=h){let t=[];return typeof e==`string`?t.push(e):(t.push(e.dark),t.push(e.light)),t}var So=new Set;function Co(e){for(let t of xo(e))if(!So.has(t))return!1;return!0}var wo=class extends Error{constructor(e){super(`Theme "${e}" is already registered`),this.name=`DuplicateThemeError`}},To=class extends Error{constructor(e){super(`No loader registered for theme "${e}"`),this.name=`UnregisteredThemeError`}},Eo=class extends Error{constructor(e){super(`Theme "${e}" has not been resolved`),this.name=`UnresolvedThemeError`}};function Do(){let e=new Map,t=new Map,n=new Map,r=0;function i(t,n){if(e.has(t))throw new wo(t);e.set(t,n)}function a(t,n){return!e.has(t)&&(e.set(t,n),!0)}function o(t){return e.has(t)}function s(i){let a=t.get(i);if(a!==void 0)return Promise.resolve(a);let o=n.get(i);if(o!==void 0)return o;let s=e.get(i);if(s===void 0)return Promise.reject(new To(i));let c=r,l=s().then(e=>{let a=d(e);return c===r&&t.set(i,a),n.get(i)===l&&n.delete(i),a}).catch(e=>{throw n.get(i)===l&&n.delete(i),e});return n.set(i,l),l}function c(e){return Promise.all(e.map(e=>s(e)))}function l(e,n){t.set(e,n)}function u(e){for(let[t,n]of e)l(t,n)}function f(e){return t.get(e)}function p(e){let n=[];for(let r of e){let e=t.get(r);if(e===void 0)throw new Eo(r);n.push(e)}return n}function m(e){return t.has(e)}function h(e){for(let n of e)if(!t.has(n))return!1;return!0}function g(e){let n=t.get(e);return n===void 0?s(e):n}function _(){r++,t.clear(),n.clear()}return{clearResolvedThemes:_,getResolvedOrResolveTheme:g,getResolvedTheme:f,getResolvedThemes:p,hasRegisteredTheme:o,hasResolvedTheme:m,hasResolvedThemes:h,registerTheme:i,registerThemeIfAbsent:a,resolveTheme:s,resolveThemes:c,seedResolvedTheme:l,seedResolvedThemes:u}}var Q=Do();function Oo(e,t){e=Array.isArray(e)?e:[e];for(let n of e){let e;if(typeof n==`string`){if(e=Q.getResolvedTheme(n),e==null)throw Error(`loadResolvedThemes: ${n} is not resolved, you must resolve it before calling loadResolvedThemes`)}else e=n,n=n.name,Q.getResolvedTheme(n)??Q.seedResolvedTheme(n,e);So.has(n)||(So.add(n),t.loadThemeSync(e))}}function ko(e){if(he())throw Error(`Theme "${e}" cannot be resolved from a worker context. Themes must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);if(Q.hasRegisteredTheme(e))return;let t=ce.getTheme(e);if(t!=null){Q.registerThemeIfAbsent(t.name,t.load);return}throw Error(`No valid theme loader registered for "${e}"`)}function Ao(e,t){if(t.name!==e)throw Error(`resolvedTheme: themeName: ${e} does not match theme.name: ${t.name}`)}async function jo(e){ko(e);let t=await Q.resolveTheme(e);return Ao(e,t),t}function Mo(e){return Q.getResolvedTheme(e)??jo(e)}var $;async function No({themes:e,langs:t,preferredHighlighter:n=`shiki-js`}){$??=vo({themes:[],langs:[`text`],engine:n===`shiki-wasm`?_o(l(()=>import(`./shiki-wasm-noop-Gxv9UHE7.js`),[],import.meta.url)):po()});let r=Fo($)?await $:$;$=r;let i=[];for(let e of Array.from(new Set(t))){if(e===`text`||e===`ansi`)continue;let t=bo(e);`then`in t?i.push(t):me(t,r)}let a=[];for(let t of e){let e=Mo(t);`then`in e?a.push(e):Oo(e,$)}return(i.length>0||a.length>0)&&await Promise.all([Promise.all(i).then(e=>{me(e,r)}),Promise.all(a).then(e=>{Oo(e,r)})]),r}function Po(e){if(!($==null||`then`in $)&&(e==null||Co(e.theme)&&pe(e.lang)))return $}function Fo(e=$){return e!=null&&`then`in e}for(let e of ie.getThemes())Q.registerThemeIfAbsent(e.name,e.load);function Io(e,t,n){return Math.min(n,Math.max(t,e))}var Lo=[`width`,`height`,`viewBox`],Ro=[`cx`,`cy`,`r`,`stroke-width`],zo=[`cx`,`cy`,`r`,`stroke-width`,`stroke-dasharray`,`stroke-dashoffset`],Bo=c({__name:`DisplayDonut`,props:{value:{},size:{default:36},thickness:{default:4},color:{}},setup(e){let s=e,c=i(()=>(s.size-s.thickness)/2),l=i(()=>2*Math.PI*c.value),u=i(()=>l.value*(1-Io(s.value,0,1)));return(i,s)=>(t(),a(`svg`,{width:e.size,height:e.size,viewBox:`0 0 ${e.size} ${e.size}`,class:`-rotate-90`},[o(`circle`,{cx:e.size/2,cy:e.size/2,r:c.value,fill:`none`,"stroke-width":e.thickness,class:`op-mute stroke-current`},null,8,Ro),o(`circle`,{cx:e.size/2,cy:e.size/2,r:c.value,fill:`none`,"stroke-width":e.thickness,"stroke-dasharray":l.value,"stroke-dashoffset":u.value,"stroke-linecap":`round`,class:n([`transition-all stroke-current`,{"color-active":!e.color}]),style:r(e.color?{color:e.color}:void 0)},null,14,zo)],8,Lo))}}),Vo={ui:`i-ph-compass-tool-duotone`,api:`i-ph:plugs-connected-duotone`,core:`i-ph-code-duotone`,data:`i-ph:database-duotone`,cli:`i-ph-terminal-duotone`,security:`i-ph:shield-check-duotone`,tests:`i-ph:flask-duotone`,docs:`i-ph:book-open-duotone`,examples:`i-ph:play-circle-duotone`,deps:`i-ph:package-duotone`,build:`i-ph:hammer-duotone`,scripts:`i-ph:wrench-duotone`,config:`i-ph:sliders-horizontal-duotone`,i18n:`i-ph:translate-duotone`,assets:`i-ph:image-duotone`,other:`i-ph:dots-three-circle-duotone`},Ho={ui:`color-pink-800 dark:color-pink-300`,api:`color-blue-800 dark:color-blue-300`,core:`color-violet-800 dark:color-violet-300`,data:`color-amber-800 dark:color-amber-300`,cli:`color-lime-800 dark:color-lime-300`,security:`color-red-800 dark:color-red-300`,tests:`color-green-800 dark:color-green-300`,docs:`color-sky-800 dark:color-sky-300`,examples:`color-cyan-800 dark:color-cyan-300`,deps:`color-orange-800 dark:color-orange-300`,build:`color-yellow-800 dark:color-yellow-300`,scripts:`color-emerald-800 dark:color-emerald-300`,config:`color-teal-800 dark:color-teal-300`,i18n:`color-indigo-800 dark:color-indigo-300`,assets:`color-fuchsia-800 dark:color-fuchsia-300`,other:`color-neutral-800 dark:color-neutral-300`},Uo=[`title`],Wo=c({__name:`GroupCategoryIcon`,props:{category:{}},setup(e){return(r,i)=>(t(),a(`span`,{class:n([[s(Vo)[e.category],s(Ho)[e.category]],`shrink-0`]),title:r.$t(`category.${e.category}`)},null,10,Uo))}}),Go=[{match:/\.vue$/,name:`vue`,icon:`i-catppuccin:vue icon-catppuccin`},{match:/\.tsx$/,name:`tsx`,icon:`i-catppuccin:typescript-react icon-catppuccin`},{match:/\.jsx$/,name:`jsx`,icon:`i-catppuccin:javascript-react icon-catppuccin`},{match:/\.d\.[cm]?ts$/,name:`dts`,icon:`i-catppuccin:typescript-def icon-catppuccin`},{match:/\.[cm]?ts$/,name:`ts`,icon:`i-catppuccin:typescript icon-catppuccin`},{match:/\.[cm]?js$/,name:`js`,icon:`i-catppuccin:javascript icon-catppuccin`},{match:/\.json5?$/,name:`json`,icon:`i-catppuccin:json icon-catppuccin`},{match:/\.ya?ml$/,name:`yaml`,icon:`i-catppuccin:yaml icon-catppuccin`},{match:/\.toml$/,name:`toml`,icon:`i-catppuccin:toml icon-catppuccin`},{match:/\.md$/,name:`markdown`,icon:`i-catppuccin:markdown icon-catppuccin`},{match:/\.html?$/,name:`html`,icon:`i-catppuccin:html icon-catppuccin`},{match:/\.(?:css|postcss)$/,name:`css`,icon:`i-catppuccin:css icon-catppuccin`},{match:/\.s[ac]ss$/,name:`sass`,icon:`i-catppuccin:sass icon-catppuccin`},{match:/\.svg$/,name:`svg`,icon:`i-catppuccin:svg icon-catppuccin`},{match:/\.(?:png|jpe?g|gif|webp|avif|ico)$/,name:`image`,icon:`i-catppuccin:image icon-catppuccin`},{match:/\.(?:woff2?|ttf|otf|eot)$/,name:`font`,icon:`i-catppuccin:font icon-catppuccin`},{match:/\.wasm$/,name:`wasm`,icon:`i-catppuccin:webassembly icon-catppuccin`},{match:/package\.json$/,name:`npm`,icon:`i-catppuccin:npm icon-catppuccin`},{match:/\.(?:test|spec)\.[cm]?[jt]sx?$/,name:`test`,icon:`i-catppuccin:typescript-test icon-catppuccin`}],Ko=`i-catppuccin:file`;function qo(e){return e.replace(/[?#].*$/,``)}function Jo(e,t=Go){let n=qo(e);for(let e of t)if(e.match.test(n))return{name:e.name,icon:e.icon,description:e.description};return{name:`file`,icon:Ko}}function Yo(e,t){return Jo(e,t).icon}var Xo=`i-catppuccin:folder`,Zo=`i-catppuccin:folder-open`,Qo={src:`i-catppuccin:folder-src`,dist:`i-catppuccin:folder-dist`,node_modules:`i-catppuccin:folder-node`,test:`i-catppuccin:folder-tests`,tests:`i-catppuccin:folder-tests`,public:`i-catppuccin:folder-public`,components:`i-catppuccin:folder-components`,utils:`i-catppuccin:folder-utils`,config:`i-catppuccin:folder-config`,assets:`i-catppuccin:folder-images`,scripts:`i-catppuccin:folder-scripts`,styles:`i-catppuccin:folder-styles`,lib:`i-catppuccin:folder-lib`};function $o(e,t=!1,n=Qo){return t?Zo:(e?n[e.toLowerCase()]:void 0)??Xo}var es=[`title`],ts=c({__name:`DisplayFileIcon`,props:{path:{},rules:{},directory:{type:Boolean},open:{type:Boolean},folderRules:{}},setup(e){let r=e,o=i(()=>{if(r.directory){let e=r.path.replace(/\/+$/,``).split(`/`).pop()||`folder`;return{name:e,icon:$o(e,r.open,r.folderRules)}}return Jo(r.path,r.rules)});return(e,r)=>(t(),a(`span`,{class:n([`icon-catppuccin`,o.value.icon]),title:o.value.name,"aria-hidden":`true`},null,10,es))}});export{Bo as a,Co as c,pe as d,Ho as i,xo as l,Yo as n,Po as o,Wo as r,No as s,ts as t,un as u};
@@ -0,0 +1 @@
1
+ import{$ as e,Bt as t,Cr as n,Dr as r,G as i,Jt as a,K as o,Q as s,U as c,W as l,Wn as u,Z as d,l as f,qt as p,tt as m,yn as h}from"./dist-B3ulq7dg.js";import{n as g,r as _}from"./useDocumentTitle-D1Q-0ufQ.js";import{c as v}from"./index-DAczNoU5.js";import{t as y}from"./ActionIconButton-B2taMg1G.js";var b={},x={class:`flex items-center justify-center gap-2 px-6 py-6 text-xs op-fade`};function S(e,n){return t(),o(`footer`,x,[...n[0]||=[d(`<span>made by <a href="https://github.com/antfu" target="_blank" rel="noopener" class="color-base hover:underline">@antfu</a></span><span>·</span><span>supported by <a href="https://vercel.com" target="_blank" rel="noopener" class="color-base hover:underline">▲ Vercel</a> and <a href="https://github.com/sponsors/antfu" target="_blank" rel="noopener" class="color-base hover:underline">sponsors</a></span><span>·</span><span>MIT</span><span>·</span><a href="https://github.com/antfu/pulls.review" target="_blank" rel="noopener" class="transition hover:color-base hover:op100">GitHub</a>`,7)]])}var C=v(b,[[`render`,S]]),w=m({__name:`AppHeader`,props:{document:{}},setup(r){let i=r,l=u(0);return f(()=>i.document??document,`scroll`,e=>{l.value=e.target instanceof Element?e.target.scrollTop:window.scrollY},{capture:!0}),(r,i)=>{let u=a(`RouterLink`);return t(),o(`header`,{class:n([`sticky top-0 z-nav h-14 flex items-center gap-3 border-b bg-base bg-glass px-4 transition-all`,l.value>10?`border-base`:`border-transparent`])},[e(u,{to:`/`,class:`shrink-0 text-lg font-mono`},{default:h(()=>[...i[0]||=[c(`span`,{class:`color-accent-magenta`},`+`,-1),s(`pulls`,-1),c(`span`,{class:`color-accent-orange`},`.`,-1),c(`span`,{class:`color-accent-teal`},`review`,-1)]]),_:1}),i[1]||=c(`div`,{class:`flex-1`},null,-1),e(_,null,{default:h(()=>[e(y,{href:`https://github.com/antfu/pulls.review`,target:`_blank`,rel:`noopener`,icon:`i-carbon-logo-github`,label:r.$t(`common.githubRepository`),tooltip:`GitHub`},null,8,[`label`])]),_:1})],2)}}}),T={class:`whitespace-nowrap font-medium`},E={key:0,class:`op-fade`},D=m({__name:`DiffPill`,props:{to:{},parent:{},label:{},state:{},title:{}},setup(e){return(n,u)=>{let d=a(`RouterLink`);return t(),l(d,{to:e.to,title:e.title,class:`max-w-full flex items-center gap-2 border border-base rounded-full px-3 py-1.5 text-sm transition hover:border-accent-teal-400/50 hover:bg-hover`},{default:h(()=>[e.state?(t(),l(g,{key:0,state:e.state,class:`text-sm`},null,8,[`state`])):i(``,!0),c(`span`,T,[s(r(e.parent),1),e.label?(t(),o(`span`,E,r(e.parent?` `:``)+r(e.label),1)):i(``,!0)]),p(n.$slots,`default`)]),_:3},8,[`to`,`title`])}}}),O={},k={class:`text-[clamp(2.25rem,4.6vw,4rem)] font-medium leading-[1.05] tracking-tight font-mono`};function A(e,n){return t(),o(`h1`,k,[...n[0]||=[d(`<span class="block"><span class="color-accent-orange" aria-hidden="true">@@</span> pull</span><span class="block">reviews<span class="color-accent-magenta" aria-hidden="true">:</span></span><span class="block"><span class="color-accent-teal" aria-hidden="true">+</span> made<span class="color-accent-orange" aria-hidden="true">{}</span></span><span class="block"><span class="color-accent-magenta" aria-hidden="true">&gt;&gt;&gt;</span>clear<span class="i-ph-check-bold inline-block translate-y-2 text-[0.8em] color-accent-teal" aria-hidden="true"></span></span>`,4)]])}var j=v(O,[[`render`,A]]);export{C as i,D as n,w as r,j as t};
@@ -0,0 +1 @@
1
+ import{$ as e,Bt as t,Cr as n,Dr as r,G as i,H as a,Jt as o,K as s,Kt as c,M as l,Q as u,U as d,W as f,er as p,tt as m,un as h,yn as g}from"./dist-B3ulq7dg.js";import{j as _,t as v}from"./ModelPicker-DJOF4_oE.js";import{a as y,c as b,i as x,l as S,n as C,o as w,r as T,s as E,t as D,u as O}from"./SelectViewport-CLu2vHZ1.js";import{n as k}from"./local-agents-Bhc2OYII.js";var A={key:0,class:`flex items-center gap-2 text-sm color-faint`},j={key:1,class:`text-sm color-faint`},M={class:`flex items-center gap-2`},N={key:1,class:`text-xs op-mute`},P={class:`text-xs op-mute`},F=m({__name:`LocalAgentSettings`,props:{llmSettings:{},models:{},modelsLoading:{type:Boolean},modelsError:{}},emits:[`update:llmSettings`],setup(m,{emit:F}){let I=m,L=F,R={claude:`i-simple-icons-claudecode`,opencode:`i-simple-icons-opencode`,pi:`i-ph:terminal-window-duotone`,codex:`i-simple-icons-openai`},z=h(`host`),B=k(),V=a(()=>B?.value),H=a(()=>V.value?.find(e=>e.name===I.llmSettings.agent));function U(e){L(`update:llmSettings`,{...I.llmSettings,agent:e,agentModel:``})}let W=a({get:()=>I.llmSettings.agentModel,set:e=>L(`update:llmSettings`,{...I.llmSettings,agentModel:e})});return(a,h)=>{let k=o(`i18n-t`);return t(),s(l,null,[e(_,{label:a.$t(`settings.llm.agent`)},{description:g(()=>[e(k,{keypath:`settings.llm.agentHint`,scope:`global`},{claude:g(()=>[...h[5]||=[d(`a`,{href:`https://docs.anthropic.com/en/docs/claude-code`,target:`_blank`,rel:`noopener`,class:`hover:underline`},`Claude Code`,-1)]]),opencode:g(()=>[...h[6]||=[d(`a`,{href:`https://opencode.ai`,target:`_blank`,rel:`noopener`,class:`hover:underline`},`OpenCode`,-1)]]),codex:g(()=>[...h[7]||=[d(`a`,{href:`https://developers.openai.com/codex/cli`,target:`_blank`,rel:`noopener`,class:`hover:underline`},`Codex`,-1)]]),pi:g(()=>[...h[8]||=[d(`a`,{href:`https://github.com/earendil-works/pi`,target:`_blank`,rel:`noopener`,class:`hover:underline`},`Pi`,-1)]]),_:1})]),default:g(()=>[V.value?V.value.length?(t(),s(`div`,{key:2,ref_key:`host`,ref:z,class:`relative`},[e(p(O),{"model-value":m.llmSettings.agent,"onUpdate:modelValue":h[0]||=e=>U(e)},{default:g(()=>[e(p(T),{class:`h-9 min-w-56 inline-flex items-center justify-between gap-2 border border-base rounded bg-raised px-2.5 text-sm outline-none transition focus-visible:ring-2 focus-visible:ring-primary-500/40`},{default:g(()=>[d(`span`,M,[H.value?(t(),s(`span`,{key:0,class:n(R[H.value.name]),"aria-hidden":`true`},null,2)):i(``,!0),e(p(C),{placeholder:a.$t(`settings.llm.agentPick`)},null,8,[`placeholder`]),H.value?(t(),s(`span`,N,r(H.value.version),1)):i(``,!0)]),e(p(b),{class:`op-fade`},{default:g(()=>[...h[3]||=[d(`span`,{class:`i-ph:caret-down`,"aria-hidden":`true`},null,-1)]]),_:1})]),_:1}),e(p(x),{to:z.value??void 0},{default:g(()=>[e(p(S),{position:`popper`,"side-offset":6,class:`z-dropdown min-w-[--reka-select-trigger-width] overflow-hidden border border-base rounded-lg bg-glass:75 shadow-lg`},{default:g(()=>[e(p(D),{class:`p-1`},{default:g(()=>[(t(!0),s(l,null,c(V.value,i=>(t(),f(p(E),{key:i.name,value:i.name,class:`relative flex cursor-pointer select-none items-center gap-2 rounded-md py-1.5 pl-7 pr-2 text-sm color-base outline-none transition data-[highlighted]:bg-hover`},{default:g(()=>[e(p(w),{class:`absolute left-1.5 inline-flex items-center color-active`},{default:g(()=>[...h[4]||=[d(`span`,{class:`i-ph:check-bold`,"aria-hidden":`true`},null,-1)]]),_:1}),d(`span`,{class:n(R[i.name]),"aria-hidden":`true`},null,2),e(p(y),null,{default:g(()=>[u(r(i.label),1)]),_:2},1024),d(`span`,P,r(i.version),1)]),_:2},1032,[`value`]))),128))]),_:1})]),_:1})]),_:1},8,[`to`])]),_:1},8,[`model-value`])],512)):(t(),s(`p`,j,r(a.$t(`settings.llm.agentNone`)),1)):(t(),s(`p`,A,[h[2]||=d(`span`,{class:`i-ph:circle-notch animate-spin`,"aria-hidden":`true`},null,-1),u(` `+r(a.$t(`settings.llm.agentDetecting`)),1)]))]),_:1},8,[`label`]),m.llmSettings.agent?(t(),f(_,{key:0,label:a.$t(`settings.llm.model`)},{default:g(()=>[e(v,{modelValue:W.value,"onUpdate:modelValue":h[1]||=e=>W.value=e,models:m.models,loading:m.modelsLoading,error:m.modelsError},null,8,[`modelValue`,`models`,`loading`,`error`])]),_:1},8,[`label`])):i(``,!0)],64)}}});export{F as default};