@jetcrab/pi-desk 1.1.18-dev → 1.1.20-dev

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 (105) hide show
  1. package/docs/plugins.md +1 -1
  2. package/next.config.ts +1 -0
  3. package/package.json +3 -2
  4. package/src/client/l2_biz/workbench/file-workspace/l2-file-workspace-runtime.ts +1 -1
  5. package/src/client/l2_biz/workbench/hooks/l2-workbench-chat-reload.ts +42 -0
  6. package/src/client/l2_biz/workbench/l2-work-session-sidebar.tsx +19 -1
  7. package/src/client/l2_biz/workbench/l2-workbench-chat.ts +45 -0
  8. package/src/client/l2_biz/workbench/l2-workbench.tsx +4 -0
  9. package/src/client/l3_modules/conversation/l3-conversation-markdown.tsx +10 -1
  10. package/src/client/l3_modules/project-files/l3-markdown-preview.tsx +10 -1
  11. package/src/client/l3_modules/project-files/l3-project-document-view.tsx +2 -0
  12. package/src/client/l3_modules/project-files/l3-project-file-browser.tsx +171 -229
  13. package/src/client/l3_modules/project-files/l3-project-file-runtime.ts +133 -70
  14. package/src/client/l3_modules/project-files/l3-project-reader.ts +4 -3
  15. package/src/client/l3_modules/project-files/views/l3-project-search-controls.tsx +201 -0
  16. package/src/client/l3_modules/project-files/views/l3-project-search-results.tsx +333 -0
  17. package/src/client/l4_foundation/ui/code/l4-code-preview.tsx +47 -3
  18. package/src/client/l4_foundation/ui/markdown/l4-markdown-remark.ts +89 -0
  19. package/src/client/l4_foundation/ui/markdown/l4-markdown.module.css +58 -0
  20. package/src/client/l4_foundation/ui/markdown/l4-markdown.tsx +108 -0
  21. package/src/common/l2_biz/work-session/l2-work-session-file-contract.ts +4 -3
  22. package/src/common/l2_biz/workbench/l2-workbench-locale-messages.ts +6 -0
  23. package/src/common/l3_modules/project-files/l3-project-files-contract.ts +2 -3
  24. package/src/common/l3_modules/project-files/l3-project-files-locale-messages.ts +56 -10
  25. package/src/common/l4_foundation/file/l4-project-file-contract.ts +51 -1
  26. package/src/common/l4_foundation/locale/l4-host-error-messages.ts +11 -0
  27. package/src/common/l4_foundation/locale/l4-locale-messages.ts +16 -0
  28. package/src/instrumentation.ts +0 -2
  29. package/src/server/l1_entry/api/l1-project-read-routes.ts +6 -4
  30. package/src/server/l1_entry/api/l1-project-route.ts +9 -8
  31. package/src/server/l1_entry/api/l1-work-session-file-error.ts +23 -0
  32. package/src/server/l2_biz/plugin-management/l2-plugin-management.ts +0 -3
  33. package/src/server/l2_biz/work-session/l2-work-session-chat-runtime.ts +30 -58
  34. package/src/server/l2_biz/work-session/l2-work-session-manage.ts +0 -4
  35. package/src/server/l4_foundation/file/l4-project-file-index.ts +276 -0
  36. package/src/server/l4_foundation/file/l4-project-search.ts +399 -0
  37. package/src/server/l4_foundation/file/l4-ripgrep-search.ts +192 -0
  38. package/src/server/l4_foundation/file/l4-work-session-project-file.ts +8 -332
  39. package/src/server/l4_foundation/pi/l4-pi-package-maintenance.ts +0 -6
  40. package/src/server/l4_foundation/pi/l4-pi-plugin-capability-probe.ts +1 -3
  41. package/src/server/l4_foundation/pi/l4-pi-plugin-probe.ts +1 -3
  42. package/src/server/l4_foundation/pi/l4-pi-runner-process.ts +2 -2
  43. package/src/server/l4_foundation/process/l4-process-tree.js +23 -4
  44. package/temp/build/pi-desk/release/.next/BUILD_ID +1 -1
  45. package/temp/build/pi-desk/release/.next/build-manifest.json +3 -3
  46. package/temp/build/pi-desk/release/.next/prerender-manifest.json +3 -3
  47. package/temp/build/pi-desk/release/.next/react-loadable-manifest.json +1 -1
  48. package/temp/build/pi-desk/release/.next/required-server-files.js +3 -2
  49. package/temp/build/pi-desk/release/.next/required-server-files.json +3 -2
  50. package/temp/build/pi-desk/release/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  51. package/temp/build/pi-desk/release/.next/server/app/_global-error.html +1 -1
  52. package/temp/build/pi-desk/release/.next/server/app/_global-error.rsc +1 -1
  53. package/temp/build/pi-desk/release/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  54. package/temp/build/pi-desk/release/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  55. package/temp/build/pi-desk/release/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  56. package/temp/build/pi-desk/release/.next/server/app/_not-found/page.js +1 -1
  57. package/temp/build/pi-desk/release/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  58. package/temp/build/pi-desk/release/.next/server/app/api/health/route.js +1 -1
  59. package/temp/build/pi-desk/release/.next/server/app/api/project-files/get/route.js +2 -1
  60. package/temp/build/pi-desk/release/.next/server/app/api/project-files/list/route.js +2 -1
  61. package/temp/build/pi-desk/release/.next/server/app/api/project-files/reveal/route.js +1 -1
  62. package/temp/build/pi-desk/release/.next/server/app/api/project-files/search/route.js +2 -1
  63. package/temp/build/pi-desk/release/.next/server/app/api/project-git/get/route.js +2 -1
  64. package/temp/build/pi-desk/release/.next/server/app/api/project-git-branches/list/route.js +2 -1
  65. package/temp/build/pi-desk/release/.next/server/app/api/project-git-changes/list/route.js +2 -1
  66. package/temp/build/pi-desk/release/.next/server/app/api/project-git-diff/get/route.js +2 -1
  67. package/temp/build/pi-desk/release/.next/server/app/api/project-git-heads/get/route.js +2 -1
  68. package/temp/build/pi-desk/release/.next/server/app/api/project-git-log/list/route.js +2 -1
  69. package/temp/build/pi-desk/release/.next/server/app/login/page.js +1 -1
  70. package/temp/build/pi-desk/release/.next/server/app/login/page_client-reference-manifest.js +1 -1
  71. package/temp/build/pi-desk/release/.next/server/app/page.js +77 -77
  72. package/temp/build/pi-desk/release/.next/server/app/page_client-reference-manifest.js +1 -1
  73. package/temp/build/pi-desk/release/.next/server/chunks/{33658.js → 10881.js} +8 -8
  74. package/temp/build/pi-desk/release/.next/server/chunks/23054.js +1 -1
  75. package/temp/build/pi-desk/release/.next/server/chunks/25406.js +3 -3
  76. package/temp/build/pi-desk/release/.next/server/chunks/35985.js +5 -5
  77. package/temp/build/pi-desk/release/.next/server/chunks/50520.js +2 -4
  78. package/temp/build/pi-desk/release/.next/server/chunks/6917.js +1 -1
  79. package/temp/build/pi-desk/release/.next/server/chunks/70780.js +1 -0
  80. package/temp/build/pi-desk/release/.next/server/chunks/74528.js +1 -1
  81. package/temp/build/pi-desk/release/.next/server/chunks/92386.js +1 -1
  82. package/temp/build/pi-desk/release/.next/server/instrumentation.js +1 -1
  83. package/temp/build/pi-desk/release/.next/server/middleware-build-manifest.js +1 -1
  84. package/temp/build/pi-desk/release/.next/server/middleware-react-loadable-manifest.js +1 -1
  85. package/temp/build/pi-desk/release/.next/server/pages/500.html +1 -1
  86. package/temp/build/pi-desk/release/.next/server/server-reference-manifest.json +1 -1
  87. package/temp/build/pi-desk/release/.next/static/chunks/27611-0890482fe76bd9d6.js +238 -0
  88. package/temp/build/pi-desk/release/.next/static/chunks/{31087-ba426d09d6f68bfd.js → 31087-d8e5765d541d5c26.js} +1 -1
  89. package/temp/build/pi-desk/release/.next/static/chunks/{49516-cc4dcd84d64ab4fe.js → 51474-8dc714cb76b2e60a.js} +2 -2
  90. package/temp/build/pi-desk/release/.next/static/chunks/77592-5bef6acb8e7c4b96.js +13 -0
  91. package/temp/build/pi-desk/release/.next/static/chunks/app/layout-a50c456648537afb.js +3 -0
  92. package/temp/build/pi-desk/release/.next/static/chunks/app/{page-a984139e99586041.js → page-0789c43551b29dd2.js} +4 -4
  93. package/temp/build/pi-desk/release/.next/static/chunks/{webpack-40a782fc8a3535b9.js → webpack-d7248206b7fc7ba8.js} +1 -1
  94. package/temp/build/pi-desk/release/.next/static/css/250a6b93cc2222d1.css +1 -0
  95. package/temp/build/pi-desk/release/.next/static/css/6dbae2922f88ca31.css +1 -0
  96. package/temp/build/pi-desk/release/.next/static/css/a4cf28fd76c70165.css +1 -0
  97. package/temp/build/pi-desk/release/.next/trace-build +1 -1
  98. package/temp/build/pi-desk/release/.next/server/chunks/8584.js +0 -2
  99. package/temp/build/pi-desk/release/.next/static/chunks/39654-b5fedd762ea0312e.js +0 -238
  100. package/temp/build/pi-desk/release/.next/static/chunks/75130-d2ca74894aff8085.js +0 -13
  101. package/temp/build/pi-desk/release/.next/static/chunks/app/layout-c0e1c5cef8620cf8.js +0 -3
  102. package/temp/build/pi-desk/release/.next/static/css/6427d02b6edf406f.css +0 -1
  103. package/temp/build/pi-desk/release/.next/static/css/79e06f05df9edff0.css +0 -1
  104. /package/temp/build/pi-desk/release/.next/static/{n2LrXQgq8UkbH_AzhR3fw → RLKcK-RQF5FvEeDmS9uih}/_buildManifest.js +0 -0
  105. /package/temp/build/pi-desk/release/.next/static/{n2LrXQgq8UkbH_AzhR3fw → RLKcK-RQF5FvEeDmS9uih}/_ssgManifest.js +0 -0
@@ -1,238 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39654],{1052:(e,t,n)=>{"use strict";n.d(t,{BM:()=>s,CW:()=>r,Ee:()=>d,HP:()=>u,JQ:()=>o,Ny:()=>f,On:()=>h,cx:()=>a,es:()=>p,lV:()=>i,ok:()=>l,ol:()=>c});let r=m(/[A-Za-z]/),i=m(/[\dA-Za-z]/),a=m(/[#-'*+\--9=?A-Z^-~]/);function o(e){return null!==e&&(e<32||127===e)}let s=m(/\d/),l=m(/[\dA-Fa-f]/),c=m(/[!-/:-@[-`{-~]/);function u(e){return null!==e&&e<-2}function d(e){return null!==e&&(e<0||32===e)}function h(e){return -2===e||-1===e||32===e}let p=m(/\p{P}|\p{S}/u),f=m(/\s/);function m(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}},1227:(e,t,n)=>{"use strict";n.d(t,{r:()=>a,s:()=>o});var r=n(80417),i=n(69266);let a=i.createContext(void 0);function o(e){let t=i.useContext(a);if(void 0===t&&!e)throw Error((0,r.A)(47));return t}},1424:(e,t,n)=>{"use strict";n.d(t,{f:()=>o});var r=n(69266),i=n(88359),a=n(48356);function o(e){let t=r.useCallback(t=>void 0===e?a.tE:e.subscribeStore(t),[e]),n=r.useCallback(()=>void 0===e?void 0:e.store,[e]);return(0,i.useSyncExternalStore)(t,n,()=>e?.serverStore)}},1791:(e,t,n)=>{"use strict";n.d(t,{s:()=>o,v:()=>a});var r=n(80417),i=n(69266);let a=i.createContext(void 0);function o(){let e=i.useContext(a);if(void 0===e)throw Error((0,r.A)(71));return e}},3158:e=>{"use strict";var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g;function c(e){return e?e.replace(l,""):""}e.exports=function(e,l){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];l=l||{};var u=1,d=1;function h(e){var t=e.match(n);t&&(u+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function p(){var e={line:u,column:d};return function(t){return t.position=new f(e),g(r),t}}function f(e){this.start=e,this.end={line:u,column:d},this.source=l.source}function m(t){var n=Error(l.source+":"+u+":"+d+": "+t);if(n.reason=t,n.filename=l.source,n.line=u,n.column=d,n.source=e,l.silent);else throw n}function g(t){var n=t.exec(e);if(n){var r=n[0];return h(r),e=e.slice(r.length),n}}function b(e){var t;for(e=e||[];t=E();)!1!==t&&e.push(t);return e}function E(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return d+=2,h(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}f.prototype.content=e,g(r);var y,T=[];for(b(T);y=function(){var e=p(),n=g(i);if(n){if(E(),!g(a))return m("property missing ':'");var r=g(o),l=e({type:"declaration",property:c(n[0].replace(t,"")),value:r?c(r[0].replace(t,"")):""});return g(s),l}}();)!1!==y&&(T.push(y),b(T));return T}},4947:(e,t,n)=>{"use strict";n.d(t,{w:()=>a});var r=n(69266),i=n(69611);let a=r.forwardRef(function(e,t){let{className:n,render:r,orientation:a="horizontal",style:o,...s}=e;return(0,i.o)("div",e,{state:{orientation:a},ref:t,props:[{role:"separator","aria-orientation":a},s]})})},6387:(e,t,n)=>{"use strict";n.d(t,{i:()=>P});var r=n(69266),i=n(34517),a=n(66538),o=n(63829),s=n(66758),l=n(75645),c=n(48356),u=n(53949),d=n(52333),h=n(19223),p=n(36158),f=n(51210),m=n(27989),g=n(79833),b=n(92622),E=n(73146),y=n(73881),T=n(35215),v=n(53402),k=n(27944),S=n(82712),A=n(52686),C=n(44596),_=n(24082),x=n(15494),w=n(14738);let N={...x.ol,disabled:e=>"menubar"===e.parent.type&&e.parent.context.disabled||e.disabled,modal:e=>(void 0===e.parent.type||"context-menu"===e.parent.type)&&(e.modal??!0),openMethod:e=>e.openMethod,allowMouseEnter:e=>e.allowMouseEnter,highlightItemOnHover:e=>e.highlightItemOnHover,parent:e=>e.parent,rootId:e=>"menu"===e.parent.type?e.parent.store.select("rootId"):void 0!==e.parent.type?e.parent.context.rootId:e.rootId,activeIndex:e=>e.activeIndex,isActive:(e,t)=>e.activeIndex===t,hoverEnabled:e=>e.hoverEnabled,instantType:e=>e.instantType,lastOpenChangeReason:e=>e.openChangeReason,floatingTreeRoot:e=>"menu"===e.parent.type?e.parent.store.select("floatingTreeRoot"):e.floatingTreeRoot,floatingNodeId:e=>e.floatingNodeId,floatingParentNodeId:e=>e.floatingParentNodeId,itemProps:e=>e.itemProps,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin,keyboardEventRelay:e=>e.keyboardEventRelay?e.keyboardEventRelay:"menu"===e.parent.type?e.parent.store.select("keyboardEventRelay"):void 0};class I extends C.H{constructor(e){super({...{...(0,x.rJ)(),disabled:!1,modal:!0,openMethod:null,allowMouseEnter:!1,highlightItemOnHover:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new _.k,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:c.t0,keyboardEventRelay:void 0,closeDelay:0,adaptiveOrigin:void 0},...e},{positionerRef:r.createRef(),popupRef:r.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:r.createRef(),beforeContentFocusGuardRef:r.createRef(),onOpenChangeComplete:void 0,triggerElements:new w.Z},N),this.unsubscribeParentListener=this.observe("parent",e=>{if(this.unsubscribeParentListener?.(),"menu"===e.type){let t=e.store.select("rootId"),n=e.store.select("floatingTreeRoot"),r=e.store.select("keyboardEventRelay");this.unsubscribeParentListener=e.store.subscribe(()=>{let i=e.store.select("rootId"),a=e.store.select("floatingTreeRoot"),o=e.store.select("keyboardEventRelay");(t!==i||n!==a||r!==o)&&(t=i,n=a,r=o,this.notifyAll())}),this.context.allowMouseUpTriggerRef=e.store.context.allowMouseUpTriggerRef;return}void 0!==e.type&&(this.context.allowMouseUpTriggerRef=e.context.allowMouseUpTriggerRef),this.unsubscribeParentListener=null})}setOpen(e,t){this.state.floatingRootContext.context.events.emit("setOpen",{open:e,eventDetails:t})}unsubscribeParentListener=null}var R=n(63962),O=n(21782),D=n(7962);let P=(0,u.G1)(function(e){var t;let n,{children:u,open:C,onOpenChange:_,onOpenChangeComplete:x,defaultOpen:w=!1,disabled:N=!1,modal:P,loopFocus:L=!0,orientation:M="vertical",actionsRef:F,closeParentOnEsc:B=!1,handle:H,triggerId:U,defaultTriggerId:j=null,highlightItemOnHover:G=!0}=e,z=(0,S.v)(!0),$=(0,g.Y)(!0),W=(0,b.t)(!0),q=(0,O.B)(),V=r.useMemo(()=>q&&$?{type:"menu",store:$.store}:W?{type:"menubar",context:W}:z&&!$?{type:"context-menu",context:z}:{type:void 0},[z,$,W,q]),Y=(t={open:w,openProp:C,activeTriggerId:j,triggerIdProp:U,parent:V},(0,l.j)(()=>new I(t)).current);Y.useControlledProp("openProp",C),Y.useControlledProp("triggerIdProp",U),Y.useContextCallback("onOpenChangeComplete",x);let K=(0,o.B)(),X=(0,o.B)(),Q=Y.useState("floatingTreeRoot"),Z=(0,d.fI)(Q),J=(0,d.R1)(),ee=Y.useState("open"),et=Y.useState("activeTriggerElement"),en=Y.useState("positionerElement"),er=Y.useState("hoverEnabled"),ei=Y.useState("disabled"),ea=Y.useState("lastOpenChangeReason"),eo=Y.useState("parent"),es=Y.useState("activeIndex"),el=Y.useState("payload"),ec=Y.useState("floatingParentNodeId"),eu=r.useRef(null),ed=r.useRef("context-menu"!==eo.type),eh=(0,i.Z)(),ep=r.useRef(!0),ef=(0,i.Z)(),em=null!=ec,{openMethod:eg,triggerProps:eb}=(0,T.G)(ee);Y.useSyncedValues({disabled:N,highlightItemOnHover:G,modal:void 0===eo.type?P:void 0,openMethod:eg,rootId:K}),(0,R.tr)(Y);let{forceUnmount:eE}=(0,R.l$)(ee,Y,()=>{Y.set("allowMouseEnter",!1)});(0,s.g)(()=>{z&&!$?Y.update({parent:{type:"context-menu",context:z},floatingNodeId:Z,floatingParentNodeId:J}):$&&Y.update({floatingNodeId:Z,floatingParentNodeId:J})},[z,$,Z,J,Y]),r.useEffect(()=>{if(ee||(eu.current=null),"context-menu"===eo.type){if(!ee){eh.clear(),ed.current=!1;return}eh.start(500,()=>{ed.current=!0})}},[eh,ee,eo.type]),(0,s.g)(()=>{ee||er||Y.set("hoverEnabled",!0)},[ee,er,Y]);let ey=(0,a.K)((e,t)=>{let n=t.reason;if(!e&&!Y.select("open")||ee===e&&t.trigger===et&&ea===n)return;let r=(0,R.T1)(t);if(e||null!=t.trigger||(t.trigger=et??void 0),_?.(e,t),t.isCanceled)return;Y.state.floatingRootContext.dispatchOpenChange(e,t);let i=t.event;if(!1===e&&i?.type==="click"&&"touch"===i.pointerType&&!ep.current)return;e&&n===k.F4?(ep.current=!1,ef.start(300,()=>{ep.current=!0})):(ep.current=!0,ef.clear());let a=(n===k.Ui||n===k.Bo)&&0===i.detail,o=!e&&(n===k.jv||null==n),s={open:e,openChangeReason:n};eu.current=t.event,(0,R.i)(s,e,t.trigger,r()),Y.update(s),"menubar"===eo.type&&(n===k.F4||n===k.Xn||n===k.N7||n===k.Dq||n===k.p)?Y.set("instantType","group"):a||o?Y.set("instantType",a?"click":"dismiss"):Y.set("instantType",void 0)}),eT=(0,h.D)({popupStore:Y,floatingId:X,nested:null!=J,onOpenChange:ey}),ev=eT.context.events;(0,s.g)(()=>{let e=({open:e,eventDetails:t})=>ey(e,t);return ev.on("setOpen",e),()=>{ev?.off("setOpen",e)}},[ev,ey]);let ek=r.useCallback(()=>{Y.setOpen(!1,(0,v.d)(k.zJ))},[Y]);r.useImperativeHandle(F,()=>({unmount:eE,close:ek}),[eE,ek]),"context-menu"===eo.type&&(n=eo.context),r.useImperativeHandle(n?.positionerRef,()=>en,[en]),r.useImperativeHandle(n?.actionsRef,()=>({setOpen:ey}),[ey]);let eS=(0,p.s)(eT,{enabled:!ei,bubbles:{escapeKey:B&&"menu"===eo.type},outsidePress:()=>"context-menu"!==eo.type||eu.current?.type==="contextmenu"||ed.current,externalTree:em?Q:void 0}),eA=(0,y.j)(),eC=r.useCallback(e=>{Y.select("activeIndex")!==e&&Y.set("activeIndex",e)},[Y]),e_=(0,f.C)(eT,{enabled:!ei,listRef:Y.context.itemDomElements,activeIndex:es,nested:void 0!==eo.type,loopFocus:L,orientation:M,parentOrientation:"menubar"===eo.type?eo.context.orientation:void 0,rtl:"rtl"===eA,disabledIndices:c.Ml,onNavigate:eC,openOnArrowKeyDown:"context-menu"!==eo.type,externalTree:em?Q:void 0,focusItemOnHover:G}),ex=r.useCallback(e=>{Y.context.typingRef.current=e},[Y]),ew=(0,m.l)(eT,{enabled:!ei,listRef:Y.context.itemLabels,elementsRef:Y.context.itemDomElements,activeIndex:es,resetMs:E.HQ,onMatch:e=>{ee&&e!==es&&Y.set("activeIndex",e)},onTyping:ex}),eN=r.useMemo(()=>{let e=(0,A.v6)(ew.reference,e_.reference,eS.reference,{onMouseMove(){Y.set("allowMouseEnter",!0)}},eb);return e["aria-haspopup"]="menu",e["aria-expanded"]=ee,e},[Y,ew.reference,e_.reference,eS.reference,eb,ee]),eI=r.useMemo(()=>{let e=(0,A.v6)(e_.trigger,eS.trigger,eb);return e["aria-haspopup"]="menu",e["aria-expanded"]=!1,e},[e_.trigger,eS.trigger,eb]),eR=r.useMemo(()=>(0,A.v6)(R.Ls,{id:X,role:"menu","aria-labelledby":et?.id,onMouseMove(){Y.set("allowMouseEnter",!0),"menu"===eo.type&&Y.set("hoverEnabled",!1)},onClick(){Y.select("hoverEnabled")&&Y.set("hoverEnabled",!1)},onKeyDown(e){let t=Y.select("keyboardEventRelay");t&&!e.isPropagationStopped()&&t(e)}},ew.floating,e_.floating,eS.floating),[et,X,eo.type,Y,ew.floating,e_.floating,eS.floating]),eO=e_.item??c.t0;(0,R.i6)(Y,{floatingRootContext:eT,activeTriggerProps:eN,inactiveTriggerProps:eI,popupProps:eR,itemProps:eO});let eD=r.useMemo(()=>({store:Y,parent:V}),[Y,V]),eP=(0,D.jsxs)(g.J.Provider,{value:eD,children:[H&&(0,D.jsx)(R.Ae,{handle:H,store:Y}),"function"==typeof u?u({payload:el}):u]});return void 0===eo.type||"context-menu"===eo.type?(0,D.jsx)(d.P6,{externalTree:Q,children:eP}):eP})},6723:(e,t,n)=>{"use strict";n.d(t,{$:()=>a,l:()=>o});var r=n(80417),i=n(69266);let a=i.createContext(void 0);function o(){let e=i.useContext(a);if(!e)throw Error((0,r.A)(73));return e}},8163:(e,t,n)=>{"use strict";n.d(t,{c:()=>c,q:()=>l});var r,i=n(94323);let a=((r={}).panelOpen="data-panel-open",r),o={[i.k.open]:""},s={[i.k.closed]:""},l={open:e=>e?{[a.panelOpen]:""}:null},c={open:e=>e?o:s}},8515:(e,t,n)=>{"use strict";n.d(t,{GI:()=>o,h$:()=>s,hq:()=>a,uf:()=>i});var r=n(12418);function i(e,t,n){let i=null==n||(0,r.Go)(n)?"function"==typeof e?e():e:0;return"number"==typeof i?i:i?.[t]}function a(e){return"function"==typeof e?e():e}function o(e,t){return t||"click"===e||"mousedown"===e}function s(e){return e?.includes("mouse")&&"mousedown"!==e}},10508:(e,t,n)=>{"use strict";n.d(t,{jH:()=>r.C});var r=n(62513)},10672:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},12696:(e,t,n)=>{"use strict";n.d(t,{R:()=>r});class r{constructor(e,t){this.attribute=t,this.property=e}}r.prototype.attribute="",r.prototype.booleanish=!1,r.prototype.boolean=!1,r.prototype.commaOrSpaceSeparated=!1,r.prototype.commaSeparated=!1,r.prototype.defined=!1,r.prototype.mustUseProperty=!1,r.prototype.number=!1,r.prototype.overloadedBoolean=!1,r.prototype.property="",r.prototype.spaceSeparated=!1,r.prototype.space=void 0},12835:(e,t,n)=>{"use strict";function r(e,t,n,r){let i,a=e.length,o=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);o<r.length;)(i=r.slice(o,o+1e4)).unshift(t,0),e.splice(...i),o+=1e4,t+=1e4}function i(e,t){return e.length>0?(r(e,e.length,0,t),e):t}n.d(t,{V:()=>i,m:()=>r})},13332:(e,t,n)=>{"use strict";function r(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,o=0;if("string"!=typeof t)throw TypeError("Expected substring");for(;-1!==r;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}n.d(t,{D:()=>r})},13766:(e,t,n)=>{"use strict";function r(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function i(e){return e.join(" ").trim()}n.d(t,{A:()=>i,q:()=>r})},14064:(e,t,n)=>{"use strict";n.d(t,{j:()=>_});var r,i=n(69266),a=n(66758),o=n(97897),s=n(69611),l=n(99357),c=n(80354),u=n(88944),d=n(82956),h=n(17399),p=n(66538),f=n(95472),m=n(10813),g=n(53402),b=n(27944),E=n(43745),y=n(29815),T=n(94323);let v={height:void 0,width:void 0};function k(e){return{height:e.scrollHeight,width:e.scrollWidth}}function S(e){return e.split(",").map(e=>e.trim()).some(e=>""!==e&&Number.parseFloat(e)>0)}function A(e,t,n){let r=e.style.getPropertyValue(t),i=e.style.getPropertyPriority(t);return e.style.setProperty(t,n),()=>{""===r?e.style.removeProperty(t):e.style.setProperty(t,r,i)}}let C=((r={}).collapsiblePanelHeight="--collapsible-panel-height",r.collapsiblePanelWidth="--collapsible-panel-width",r),_=i.forwardRef(function(e,t){let{className:n,hiddenUntilFound:r,keepMounted:_,render:x,id:w,style:N,...I}=e,{defaultPanelId:R,mounted:O,onOpenChange:D,open:P,setMounted:L,setPanelIdState:M,setOpen:F,state:B,transitionStatus:H}=(0,l.f)(),U=w||void 0,j=U??R;(0,a.g)(()=>(M(e=>U??(null===e?void 0:e)),()=>{M(e=>e===U?null:e)}),[U,M]);let{height:G,props:z,ref:$,shouldPreventOpenAnimation:W,shouldRender:q,transitionStatus:V,width:Y}=function(e){let{externalRef:t,hiddenUntilFound:n,id:r,keepMounted:o,mounted:s,onOpenChange:l,open:c,setMounted:C,setOpen:_,transitionStatus:x}=e,w=i.useRef(null),N=i.useRef(null),[I,R]=i.useState(v),O=i.useRef(v),D=i.useRef(!1),P=i.useRef(c),L=i.useRef(!1),[M,F]=i.useState(!1),B=i.useRef(null),H=(0,d.a)(t,w),U=(0,f.u)(c),j=(0,y.V)(w),G=!c&&!s,z=M?"idle":x,$=c&&(P.current||L.current),W=!c&&s&&"css-animation"===N.current&&void 0===I.height&&void 0===I.width?O.current:I,q=n&&G&&"css-animation"!==N.current,V=(0,p.K)((e,t=!0)=>{t&&(O.current=e),R(e)}),Y=(0,p.K)(()=>{B.current?.(),B.current=null}),K=(0,p.K)(e=>{Y(),B.current=()=>{B.current=null,e()}}),X=(0,p.K)(()=>{c&&s&&"css-animation"===N.current&&(L.current=!0)});(0,a.g)(()=>{M&&"starting"!==x&&F(!1)},[M,x]),i.useEffect(()=>()=>{X(),Y()},[X,Y]),(0,a.g)(()=>{var e,t;let n,r,i,a=w.current;if(!a)return;!c&&B.current&&Y();let o=(e=a,t=$,r=((n=(0,m.zk)(e).getComputedStyle(e)).animationName.split(",").map(e=>e.trim()).some(e=>""!==e&&"none"!==e)||t)&&S(n.animationDuration),i=S(n.transitionDuration),r&&i||i?"css-transition":r?"css-animation":"none");if(N.current=o,c&&"idle"===x&&P.current&&"css-animation"===o){O.current=k(a);return}if(c&&"starting"===x){let e=D.current;if(D.current=!1,"none"===o){V(k(a)),F(!0);return}if("css-transition"===o){let t=function(e){let t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};function n(){Object.entries(t).forEach(([t,n])=>{""===n?e.style.removeProperty(t):e.style.setProperty(t,n)})}Object.keys(t).forEach(t=>{e.style.setProperty(t,"initial","important")});let r=h.KP.request(n);return()=>{h.KP.cancel(r),n()}}(a);return V(k(a)),e&&(K(A(a,"transition-duration","0s")),F(!0)),t}V(k(a));let t=A(a,"animation-name","none");if(!e)return void t();let n=A(a,"animation-duration","0s");return t(),K(n),void F(!0)}if(!c&&s&&("idle"===x||"starting"===x)){if(P.current=!1,L.current=!1,"none"===o){V(v,!1),C(!1);return}V(k(a));return}if("ending"!==x)return;if("none"===o)return void C(!1);let l=k(a);l.height>0||l.width>0?(V(l),"css-animation"===o&&A(a,"animation-name","none")()):C(!1)},[s,c,Y,V,C,K,$,x]),(0,E.v)({enabled:c&&s&&"idle"===z,open:!0,ref:w,onComplete(){c&&V(v,!1)}}),i.useEffect(()=>{if(c||!s||"ending"!==z||!w.current)return;let e=new AbortController,t=-1;function n(){U.current||(C(!1),V(v,!1))}return t=h.KP.request(()=>{j(n,e.signal)}),()=>{h.KP.cancel(t),e.abort()}},[U,s,c,z,j,V,C]),(0,a.g)(()=>{let e=w.current;e&&n&&G&&e.setAttribute("hidden","until-found")},[G,n]),i.useEffect(function(){let e=w.current;if(e)return(0,u.q)(e,"beforematch",function(e){let t=(0,g.d)(b.dv,e);l(!0,t),t.isCanceled||(D.current=!0,_(!0))})},[l,_]);let Q=o||n||s||c;return{height:W.height,props:{...q?{[T.k.startingStyle]:""}:void 0,hidden:G,id:r},ref:H,shouldPreventOpenAnimation:$,shouldRender:Q,transitionStatus:z,width:W.width}}({externalRef:t,hiddenUntilFound:r??!1,id:j,keepMounted:_??!1,mounted:O,onOpenChange:D,open:P,setMounted:L,setOpen:F,transitionStatus:H}),K={...B,transitionStatus:V},X=(0,o.m)(N,K),Q=(0,s.o)("div",{...e,style:void 0},{state:K,ref:$,props:[z,{style:{[C.collapsiblePanelHeight]:void 0===G?"auto":`${G}px`,[C.collapsiblePanelWidth]:void 0===Y?"auto":`${Y}px`}},I,X?{style:X}:void 0,W?{style:{animationName:"none"}}:void 0],stateAttributesMapping:c.d});return q?Q:null})},14228:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]])},15494:(e,t,n)=>{"use strict";n.d(t,{rJ:()=>o,OB:()=>s,ol:()=>h});var r=n(48356),i=n(97626),a=n(14738);function o(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new i.K({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new a.Z,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0}),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:r.t0,inactiveTriggerProps:r.t0,popupProps:r.t0}}function s(e,t,n=!1){return new i.K({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}let l=e=>e.triggerIdProp??e.activeTriggerId,c=e=>e.openProp??e.open,u=e=>(e.popupElement?.id??e.floatingId)||void 0;function d(e,t){return void 0!==t&&c(e)&&l(e)===t}let h={open:c,mounted:e=>e.mounted,transitionStatus:e=>e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:l,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:u,isTriggerActive:(e,t)=>void 0!==t&&l(e)===t,isOpenedByTrigger:(e,t)=>d(e,t),isMountedByTrigger:(e,t)=>void 0!==t&&l(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>d(e,t)||void 0!==t&&c(e)&&null==l(e)&&1===e.triggerCount?u(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement}},15824:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("list-ordered",[["path",{d:"M11 5h10",key:"1cz7ny"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 19h10",key:"11t30w"}],["path",{d:"M4 4h1v5",key:"10yrso"}],["path",{d:"M4 9h2",key:"r1h2o0"}],["path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",key:"xtkcd5"}]])},16591:(e,t,n)=>{"use strict";n.d(t,{B:()=>a,g:()=>o});var r=n(80417),i=n(69266);let a=i.createContext(void 0);function o(e){let t=i.useContext(a);if(void 0===t&&!e)throw Error((0,r.A)(72));return t}},17499:(e,t,n)=>{"use strict";n.d(t,{i:()=>d});var r=n(10813),i=n(34517),a=n(6561),o=n(46681);let s=.1*.1;function l(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function c(e,t,n,r,i,a,o,s,c,u){let d=!1;return l(e,t,n,r,i,a)&&(d=!d),l(e,t,i,a,o,s)&&(d=!d),l(e,t,o,s,c,u)&&(d=!d),l(e,t,c,u,n,r)&&(d=!d),d}function u(e,t,n,r,i,a){let o=Math.min(n,i),s=Math.max(n,i),l=Math.min(r,a),c=Math.max(r,a);return e>=o&&e<=s&&t>=l&&t<=c}function d(e={}){let{blockPointerEvents:t=!1}=e,n=new i.E,l=({x:e,y:t,placement:i,elements:l,onClose:d,nodeId:h,tree:p})=>{let f=i?.split("-")[0],m=!1,g=null,b=null,E="u">typeof performance?performance.now():0;return function(i){n.clear();let y=l.domReference,T=l.floating;if(!y||!T||null==f||null==e||null==t)return;let{clientX:v,clientY:k}=i,S=(0,a.EW)(i),A="mouseleave"===i.type,C=(0,a.gR)(T,S),_=(0,a.gR)(y,S);if(C&&(m=!0,!A))return;if(_&&(m=!1,!A)){m=!0;return}if(A&&(0,r.vq)(i.relatedTarget)&&(0,a.gR)(T,i.relatedTarget))return;function x(){return!!(p&&(0,o.CM)(p.nodesRef.current,h).length>0)}function w(){x()||(n.clear(),d())}if(x())return;let N=y.getBoundingClientRect(),I=T.getBoundingClientRect(),R=e>I.right-I.width/2,O=t>I.bottom-I.height/2,D=I.width>N.width,P=I.height>N.height,L=(D?N:I).left,M=(D?N:I).right,F=(P?N:I).top,B=(P?N:I).bottom;if("top"===f&&t>=N.bottom-1||"bottom"===f&&t<=N.top+1||"left"===f&&e>=N.right-1||"right"===f&&e<=N.left+1)return void w();let H=!1;switch(f){case"top":H=u(v,k,L,N.top+1,M,I.bottom-1);break;case"bottom":H=u(v,k,L,I.top+1,M,N.bottom-1);break;case"left":H=u(v,k,I.right-1,B,N.left+1,F);break;case"right":H=u(v,k,N.right-1,B,I.left+1,F)}if(H)return;if(m&&(!(v>=N.x)||!(v<=N.x+N.width)||!(k>=N.y)||!(k<=N.y+N.height))||!A&&function(e,t){let n=performance.now(),r=n-E;if(null===g||null===b||0===r)return g=e,b=t,E=n,!1;let i=e-g,a=t-b;return g=e,b=t,E=n,i*i+a*a<r*r*s}(v,k))return void w();let U=!1;switch(f){case"top":{let n=D?.25:2,r=t+.5+1,i=R||D?I.bottom-.5:I.top,a=R?D?I.bottom-.5:I.top:I.bottom-.5;U=c(v,k,D||R?e+n:e-n,r,D?e-n:R?e+n:e-n,r,I.left,i,I.right,a);break}case"bottom":{let n=D?.25:2,r=t-.5,i=R||D?I.top+.5:I.bottom,a=R?D?I.top+.5:I.bottom:I.top+.5;U=c(v,k,D||R?e+n:e-n,r,D?e-n:R?e+n:e-n,r,I.left,i,I.right,a);break}case"left":{let n=P?.25:2,r=e+.5+1,i=O||P?I.right-.5:I.left,a=O?P?I.right-.5:I.left:I.right-.5;U=c(v,k,i,I.top,a,I.bottom,r,P||O?t+n:t-n,r,P?t-n:O?t+n:t-n);break}case"right":{let n=P?.25:2,r=e-.5,i=O||P?I.left+.5:I.right,a=O?P?I.left+.5:I.right:I.left+.5;U=c(v,k,r,P||O?t+n:t-n,r,P?t-n:O?t+n:t-n,i,I.top,a,I.bottom)}}U?m||n.start(40,w):w()}};return l.__options={...e,blockPointerEvents:t},l}},17523:(e,t,n)=>{"use strict";n.d(t,{K:()=>i,n:()=>a});var r=n(69266);let i=r.createContext(void 0);function a(){return r.useContext(i)}},17567:(e,t,n)=>{"use strict";n.d(t,{A:()=>o,n:()=>a});var r=n(80417),i=n(69266);let a=i.createContext(void 0);function o(){let e=i.useContext(a);if(void 0===e)throw Error((0,r.A)(45));return e}},17596:(e,t,n)=>{"use strict";n.d(t,{i:()=>l});var r=n(69266),i=n(25327),a=n(1227),o=n(17567),s=n(7962);let l=r.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return(0,a.s)().useState("mounted")||n?(0,s.jsx)(o.n.Provider,{value:n,children:(0,s.jsx)(i.XF,{ref:t,...r})}):null})},18427:(e,t,n)=>{"use strict";n.d(t,{M:()=>o,z:()=>a});var r=n(80417),i=n(69266);let a=i.createContext(void 0);function o(){let e=i.useContext(a);if(!e)throw Error((0,r.A)(66));return e}},19932:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},20660:(e,t,n)=>{"use strict";n.d(t,{a:()=>y});var r=n(69266),i=n(88944),a=n(94532),o=n(66758),s=n(33914),l=n(66538),c=n(34517),u=n(10813),d=n(53402),h=n(27944),p=n(52333),f=n(6561),m=n(46681),g=n(79362),b=n(22634),E=n(8515);function y(e,t={}){let{enabled:n=!0,closeDelay:T=0,nodeId:v}=t,k="rootStore"in e?e.rootStore:e,S=k.useState("open"),A=k.useState("floatingElement"),C=k.useState("domReferenceElement"),{dataRef:_}=k.context,x=(0,p.cq)(),w=(0,p.R1)(),N=(0,g.uu)(k),I=(0,c.Z)(),R=(0,l.K)(()=>(0,E.GI)(_.current.openEvent?.type,N.interactedInside)),O=(0,l.K)(()=>(0,E.h$)(_.current.openEvent?.type)),D=(0,l.K)(()=>{(0,g.GH)(N)});(0,o.g)(()=>{S||(N.pointerType=void 0,N.restTimeoutPending=!1,N.interactedInside=!1,D())},[S,N,D]),r.useEffect(()=>D,[D]),(0,o.g)(()=>{if(n&&S&&N.handleCloseOptions?.blockPointerEvents&&O()&&(0,u.vq)(C)&&A){let e=(0,s.R)(A),t=x?.nodesRef.current.find(e=>e.id===w)?.context?.elements.floating;t&&(t.style.pointerEvents="");let n=N.pointerEventsScopeElement!==A?N.pointerEventsScopeElement:null,r=t!==A?t:null,i=N.handleCloseOptions?.getScope?.()??n??r??C.closest("[data-rootownerid]")??e.body;return(0,g.D8)(N,{scopeElement:i,referenceElement:C,floatingElement:A}),()=>{D()}}},[n,S,C,A,N,O,x,w,D]),r.useEffect(()=>{if(n)return(0,a.g)(A&&(0,i.q)(A,"mouseenter",function(){N.openChangeTimeout.clear(),I.clear(),x?.events.off("floating.closed",t),D()}),A&&(0,i.q)(A,"mouseleave",function(n){if(e()&&x)return void x.events.on("floating.closed",t);if((0,b.Hi)(n.relatedTarget,k.context.triggerElements))return;let r=_.current.floatingContext?.nodeId??v,i=n.relatedTarget;if(!(x&&r&&(0,u.vq)(i)&&(0,m.CM)(x.nodesRef.current,r,!1).some(e=>(0,f.gR)(e.context?.elements.floating,i)))){let e,t;if(N.handler)return void N.handler(n);D(),O()&&!R()&&(e=(0,E.uf)(T,"close",N.pointerType),t=()=>{k.setOpen(!1,(0,d.d)(h.N7,n)),x?.events.emit("floating.closed",n)},e?N.openChangeTimeout.start(e,t):(N.openChangeTimeout.clear(),t()))}}),A&&(0,i.q)(A,"pointerdown",function(e){let t=(0,f.EW)(e);if(!(0,b.H5)(t)){N.interactedInside=!1;return}N.interactedInside=t?.closest("[aria-haspopup]")!=null},!0),()=>{x?.events.off("floating.closed",t)});function e(){return!!(x&&w&&(0,m.CM)(x.nodesRef.current,w).length>0)}function t(n){!x||!w||e()||I.start(0,()=>{x.events.off("floating.closed",t),k.setOpen(!1,(0,d.d)(h.N7,n)),x.events.emit("floating.closed",n)})}},[n,A,k,_,T,v,O,R,D,N,x,w,I])}},21702:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(69266),i=n(18652),a=n(25327),o=n(77221),s=n(81385),l=n(33099),c=n(7962);let u=r.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,u=(0,o.P)(),d=u.useState("mounted"),h=u.useState("modal"),p=u.useState("open");return d||n?(0,c.jsx)(s.m.Provider,{value:n,children:(0,c.jsxs)(a.XF,{ref:t,...r,children:[d&&!0===h&&(0,c.jsx)(l.W,{ref:u.context.internalBackdropRef,inert:(0,i.Y)(!p)}),e.children]})}):null})},21782:(e,t,n)=>{"use strict";n.d(t,{B:()=>a,E:()=>i});var r=n(69266);let i=r.createContext(void 0);function a(){return r.useContext(i)}},24567:(e,t,n)=>{"use strict";n.d(t,{i:()=>i,u:()=>r});let r=500,i=16},24863:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("folder-tree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]])},24925:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("minimize-2",[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]])},24987:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});let r={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},25488:(e,t,n)=>{"use strict";n.d(t,{E:()=>o});var r=n(12696),i=n(58789);let a=Object.keys(i);class o extends r.R{constructor(e,t,n,r){let o=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",r),"number"==typeof n)for(;++o<a.length;){const e=a[o];!function(e,t,n){n&&(e[t]=n)}(this,a[o],(n&i[e])===i[e])}}}o.prototype.defined=!0},27315:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},28436:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]])},28991:(e,t,n)=>{"use strict";n.d(t,{Q:()=>function e(t){return(0,r.sb)(t)&&t.hasAttribute("data-rootownerid")?t.getAttribute("data-rootownerid"):(0,r.eu)(t)?void 0:e((0,r.$4)(t))}});var r=n(10813)},29198:(e,t,n)=>{"use strict";function r(e){return e.toLowerCase()}n.d(t,{S:()=>r})},30442:(e,t,n)=>{"use strict";n.d(t,{uB:()=>ns});var r,i,a,o,s,l,c,u,d=/[\\\/_+.#"@\[\(\{&]/,h=/[\\\/_+.#"@\[\(\{&]/g,p=/[\s-]/,f=/[\s-]/g;function m(e){return e.toLowerCase().replace(f," ")}var g=n(69266),b=n.t(g,2),E=Object.defineProperty,y=(e,t)=>E(e,"name",{value:t,configurable:!0}),T=!!("u">typeof window&&window.document&&window.document.createElement);function v(e,t,{checkForDefaultPrevented:n=!0}={}){return y(function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)},"handleEvent")}function k(e){if(!T)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function S(e){return"IFRAME"===e.tagName}y(v,"composeEventHandlers"),y(function(e){if(!T)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),y(k,"getOwnerDocument"),y(function e(t,n=!1){let{activeElement:r}=k(t);if(!r?.nodeName)return null;if(S(r)&&r.contentDocument)return e(r.contentDocument.body,n);if(n){let e=r.getAttribute("aria-activedescendant");if(e){let t=k(r).getElementById(e);if(t)return t}}return r},"getActiveElement"),y(S,"isFrame");var A=Object.defineProperty,C=(e,t)=>A(e,"name",{value:t,configurable:!0});function _(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function x(...e){return t=>{let n=!1,r=e.map(e=>{let r=_(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():_(e[t],null)}}}}function w(...e){return g.useCallback(x(...e),e)}C(_,"setRef"),C(x,"composeRefs"),C(w,"useComposedRefs");var N=n(7962),I=Object.defineProperty,R=(e,t)=>I(e,"name",{value:t,configurable:!0});function O(e,t=[]){let n=[];function r(t,r){let i=g.createContext(r);i.displayName=t+"Context";let a=n.length;n=[...n,r];let o=R(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,l=g.useMemo(()=>o,Object.values(o));return(0,N.jsx)(s.Provider,{value:l,children:r})},"Provider");function s(n,o,l={}){let{optional:c=!1}=l,u=o?.[e]?.[a]||i,d=g.useContext(u);if(d)return d;if(void 0!==r)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return o.displayName=t+"Provider",R(s,"useContext"),[o,s]}R(r,"createContext");let i=R(()=>{let t=n.map(e=>g.createContext(e));return R(function(n){let r=n?.[e]||t;return g.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},"useScope")},"createScope");return i.scopeName=e,[r,D(i,...t)]}function D(...e){let t=e[0];if(1===e.length)return t;let n=R(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return R(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}R(function(e,t){let n=g.createContext(t);n.displayName=e+"Context";let r=R(e=>{let{children:t,...r}=e,i=g.useMemo(()=>r,Object.values(r));return(0,N.jsx)(n.Provider,{value:i,children:t})},"Provider");function i(r,a={}){let{optional:o=!1}=a,s=g.useContext(n);if(s)return s;if(void 0!==t)return t;if(!o)throw Error(`\`${r}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",R(i,"useContext"),[r,i]},"createContext"),R(O,"createContextScope"),R(D,"composeContextScopes");var P=n(94131),L=Object.defineProperty,M=b[" useId ".trim().toString()]||(()=>void 0),F=0;function B(e){let[t,n]=g.useState(M());return(0,P.N)(()=>{e||n(e=>e??String(F++))},[e]),e||(t?`radix-${t}`:"")}L(B,"name",{value:"useId",configurable:!0});var H=n(47125),U=n(44911),j=Object.defineProperty,G=(e,t)=>j(e,"name",{value:t,configurable:!0});function z(e){let t=g.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];X(r)&&"function"==typeof ee&&(r=ee(r._payload)),g.Children.forEach(r,e=>{if(Y(e)){o=!0;let t="child"in e.props?e.props.child:e.props.children;X(t)&&"function"==typeof ee&&(t=ee(t._payload)),a=W(e,t),s.push(a?.props?.children)}else s.push(e)}),a?a=g.cloneElement(a,void 0,s):!o&&1===g.Children.count(r)&&g.isValidElement(r)&&(a=r);let l=a?V(a):void 0,c=w(n,l);if(!a){if(r||0===r)throw Error(o?J(e):Z(e));return r}let u=q(i,a.props??{});return a.type!==g.Fragment&&(u.ref=n?c:l),g.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}G(z,"createSlot");var $=Symbol.for("radix.slottable");G(function(e){let t=G(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=$,t},"createSlottable");var W=G((e,t)=>{if("child"in e.props){let t=e.props.child;return g.isValidElement(t)?g.cloneElement(t,void 0,e.props.children(t.props.children)):null}return g.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function q(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...a}:"className"===r&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}function V(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function Y(e){return g.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===$}G(q,"mergeProps"),G(V,"getElementRef"),G(Y,"isSlottable");var K=Symbol.for("react.lazy");function X(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===K&&"_payload"in e&&Q(e._payload)}function Q(e){return"object"==typeof e&&null!==e&&"then"in e}G(X,"isLazyComponent"),G(Q,"isPromiseLike");var Z=G(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),J=G(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),ee=b[" use ".trim().toString()],et=Object.defineProperty,en=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=z(`Primitive.${t}`),r=g.forwardRef((e,r)=>{let{asChild:i,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,N.jsx)(i?n:t,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function er(e,t){e&&U.flushSync(()=>e.dispatchEvent(t))}function ei(e){let t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...e)=>t.current?.(...e),[])}et(er,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0}),(0,Object.defineProperty)(ei,"name",{value:"useCallbackRef",configurable:!0});var ea=Object.defineProperty,eo=(e,t)=>ea(e,"name",{value:t,configurable:!0}),es="dismissableLayer.update",el=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),ec=g.forwardRef(eo(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:i=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...u}=e,d=g.useContext(el),[h,p]=g.useState(null),f=h?.ownerDocument??globalThis?.document,[,m]=g.useState({}),b=w(t,p),E=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),T=y?E.indexOf(y):-1,k=h?E.indexOf(h):-1,S=d.layersWithOutsidePointerEventsDisabled.size>0,A=k>=T,C=g.useRef(!1),_=eh(e=>{o?.(e),l?.(e),e.defaultPrevented||c?.()},{ownerDocument:f,deferPointerDownOutside:i,isDeferredPointerDownOutsideRef:C,dismissableSurfaces:d.dismissableSurfaces,shouldHandlePointerDownOutside:g.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...d.branches].some(t=>t.contains(e));return A&&!t},[d.branches,A])}),x=ep(e=>{if(i&&C.current)return;let t=e.target;![...d.branches].some(e=>e.contains(t))&&(s?.(e),l?.(e),e.defaultPrevented||c?.())},f),I=!!h&&k===E.length-1,R=ei(e=>{"Escape"===e.key&&(a?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return g.useEffect(()=>{if(I)return f.addEventListener("keydown",R,{capture:!0}),()=>f.removeEventListener("keydown",R,{capture:!0})},[f,I,R]),g.useEffect(()=>{if(h)return n&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(r=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(h)),d.layers.add(h),ef(),()=>{n&&(d.layersWithOutsidePointerEventsDisabled.delete(h),0===d.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=r))}},[h,f,n,d]),g.useEffect(()=>()=>{h&&(d.layers.delete(h),d.layersWithOutsidePointerEventsDisabled.delete(h),ef())},[h,d]),g.useEffect(()=>{let e=eo(()=>m({}),"handleUpdate");return document.addEventListener(es,e),()=>document.removeEventListener(es,e)},[]),(0,N.jsx)(en.div,{...u,ref:b,style:{pointerEvents:S?A?"auto":"none":void 0,...e.style},onFocusCapture:v(e.onFocusCapture,x.onFocusCapture),onBlurCapture:v(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:v(e.onPointerDownCapture,_.onPointerDownCapture)})},"DismissableLayer"));function eu(){let e=g.useContext(el),[t,n]=g.useState(null);return g.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}eo(eu,"useDismissableLayerSurface");var ed=eo(()=>!0,"IS_TRUE");function eh(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=ed}=t,s=ei(e),l=g.useRef(!1),c=g.useRef(!1),u=g.useRef(new Map),d=g.useRef(()=>{});return g.useEffect(()=>{function e(){c.current=!1,i.current=!1,u.current.clear()}function t(){return Array.from(u.current.values()).some(Boolean)}function h(e){if(!c.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{c.current&&d.current()},0)}function p(e){c.current&&u.current.set(e.type,!1)}eo(e,"resetOutsideInteraction"),eo(t,"isOutsideInteractionIntercepted"),eo(h,"handleInteractionCapture"),eo(p,"handleInteractionBubble");let f=eo(a=>{if(a.target&&!l.current){let h=function(){n.removeEventListener("click",d.current);let r=t();e(),r||em("dismissableLayer.pointerDownOutside",s,p,{discrete:!0})};if(eo(h,"handleAndDispatchPointerDownOutsideEvent"),!o(a.target)){n.removeEventListener("click",d.current),e(),l.current=!1;return}let p={originalEvent:a};c.current=!0,i.current=r&&0===a.button,u.current.clear(),r&&0===a.button?(n.removeEventListener("click",d.current),d.current=h,n.addEventListener("click",d.current,{once:!0})):h()}else n.removeEventListener("click",d.current),e();l.current=!1},"handlePointerDown"),m=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of m)n.addEventListener(e,h,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener("pointerdown",f)},0);return()=>{for(let e of(window.clearTimeout(g),n.removeEventListener("pointerdown",f),n.removeEventListener("click",d.current),m))n.removeEventListener(e,h,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:eo(()=>l.current=!0,"onPointerDownCapture")}}function ep(e,t=globalThis?.document){let n=ei(e),r=g.useRef(!1);return g.useEffect(()=>{let e=eo(e=>{e.target&&!r.current&&em("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:eo(()=>r.current=!0,"onFocusCapture"),onBlurCapture:eo(()=>r.current=!1,"onBlurCapture")}}function ef(){let e=new CustomEvent(es);document.dispatchEvent(e)}function em(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?er(i,a):i.dispatchEvent(a)}eo(eh,"usePointerDownOutside"),eo(ep,"useFocusOutside"),eo(ef,"dispatchUpdate"),eo(em,"handleAndDispatchCustomEvent");var eg=Object.defineProperty,eb=(e,t)=>eg(e,"name",{value:t,configurable:!0}),eE="focusScope.autoFocusOnMount",ey="focusScope.autoFocusOnUnmount",eT={bubbles:!1,cancelable:!0},ev=g.forwardRef(eb(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,l]=g.useState(null),c=ei(i),u=ei(a),d=g.useRef(null),h=w(t,l),p=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:ew(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;null!==t&&(s.contains(t)||ew(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&ew(s)};eb(e,"handleFocusIn"),eb(t,"handleFocusOut"),eb(n,"handleMutations"),document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,s,p.paused]),g.useEffect(()=>{if(s){eN.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(eE,eT);s.addEventListener(eE,c),s.dispatchEvent(t),t.defaultPrevented||(ek(eO(eA(s)),{select:!0}),document.activeElement===e&&ew(s))}return()=>{s.removeEventListener(eE,c),setTimeout(()=>{let t=new CustomEvent(ey,eT);s.addEventListener(ey,u),s.dispatchEvent(t),t.defaultPrevented||ew(e??document.body,{select:!0}),s.removeEventListener(ey,u),eN.remove(p)},0)}}},[s,c,u,p]);let f=g.useCallback(e=>{if(!n&&!r||p.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=eS(t);r&&a?e.shiftKey||i!==a?e.shiftKey&&i===r&&(e.preventDefault(),n&&ew(a,{select:!0})):(e.preventDefault(),n&&ew(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,N.jsx)(en.div,{tabIndex:-1,...o,ref:h,onKeyDown:f})},"FocusScope"));function ek(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(ew(r,{select:t}),document.activeElement!==n)return}function eS(e){let t=eA(e);return[eC(t,e),eC(t.reverse(),e)]}function eA(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:eb(e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}function eC(e,t){let n="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):e_(r,{upTo:t})))return r}function e_(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function ex(e){return e instanceof HTMLInputElement&&"select"in e}function ew(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ex(e)&&t&&e.select()}}eb(ek,"focusFirst"),eb(eS,"getTabbableEdges"),eb(eA,"getTabbableCandidates"),eb(eC,"findVisible"),eb(e_,"isHidden"),eb(ex,"isSelectableInput"),eb(ew,"focus");var eN=eI();function eI(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),(e=eR(e,t)).unshift(t)},remove(t){e=eR(e,t),e[0]?.resume()}}}function eR(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}function eO(e){return e.filter(e=>"A"!==e.tagName)}eb(eI,"createFocusScopesStack"),eb(eR,"arrayRemove"),eb(eO,"removeLinks");var eD=Object.defineProperty,eP=g.forwardRef(eD(function(e,t){let{container:n,...r}=e,[i,a]=g.useState(!1);(0,P.N)(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?U.createPortal((0,N.jsx)(en.div,{...r,ref:t}),o):null},"name",{value:"Portal",configurable:!0})),eL=Object.defineProperty,eM=(e,t)=>eL(e,"name",{value:t,configurable:!0});function eF(e,t){return g.useReducer((e,n)=>t[e][n]??e,e)}eM(eF,"useStateMachine");var eB=eM(e=>{let{present:t,children:n}=e,r=eH(t),i="function"==typeof n?n({present:r.isPresent}):g.Children.only(n),a=ej(r.ref,ez(i));return"function"==typeof n||r.isPresent?g.cloneElement(i,{ref:a}):null},"Presence");function eH(e){let[t,n]=g.useState(),r=g.useRef(null),i=g.useRef(e),a=g.useRef("none"),o=g.useRef(void 0),[s,l]=eF(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{"mounted"===s?(a.current=o.current??eG(r.current),o.current=void 0):a.current="none"},[s]),(0,P.N)(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=eG(t);e?(o.current=s,l("MOUNT")):"none"===s||t?.display==="none"?l("UNMOUNT"):n&&r!==s?l("ANIMATION_OUT"):l("UNMOUNT"),i.current=e}},[e,l]),(0,P.N)(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=eM(a=>{let o=eG(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(l("ANIMATION_END"),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},"handleAnimationEnd"),s=eM(e=>{e.target===t&&(a.current=eG(r.current))},"handleAnimationStart");return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",o),t.addEventListener("animationend",o),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",o),t.removeEventListener("animationend",o)}}l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:g.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=eG(t)}else r.current=null;n(e)},[])}}function eU(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function ej(...e){let t=g.useRef(e);return t.current=e,g.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=eU(t,e);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];"function"==typeof t?t():eU(n[e],null)}}},[])}function eG(e){return e?.animationName||"none"}function ez(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}eM(eH,"usePresence"),eM(eU,"setRef"),eM(ej,"useStableComposedRefs"),eM(eG,"getAnimationName"),eM(ez,"getElementRef");var e$=Object.defineProperty,eW=(e,t)=>e$(e,"name",{value:t,configurable:!0}),eq=0,eV=null;function eY(){g.useEffect(()=>{eV||(eV={start:eK(),end:eK()});let{start:e,end:t}=eV;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),eq++,()=>{1===eq&&(eV?.start.remove(),eV?.end.remove(),eV=null),eq=Math.max(0,eq-1)}},[])}function eK(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}eW(function(e){return eY(),e.children},"FocusGuards"),eW(eY,"useFocusGuards"),eW(eK,"createFocusGuard");var eX=function(){return(eX=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function eQ(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var eZ=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),eJ="width-before-scroll-bar";function e0(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var e1="u">typeof window?g.useLayoutEffect:g.useEffect,e2=new WeakMap,e5=(void 0===a&&(a={}),(void 0===o&&(o=function(e){return e}),s=[],l=!1,c={read:function(){if(l)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return s.length?s[s.length-1]:null},useMedium:function(e){var t=o(e,l);return s.push(t),function(){s=s.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(l=!0;s.length;){var t=s;s=[],t.forEach(e)}s={push:function(t){return e(t)},filter:function(){return s}}},assignMedium:function(e){l=!0;var t=[];if(s.length){var n=s;s=[],n.forEach(e),t=s}var r=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(r)};i(),s={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),s}}}}).options=eX({async:!0,ssr:!1},a),c),e6=function(){},e9=g.forwardRef(function(e,t){var n,r,i,a,o=g.useRef(null),s=g.useState({onScrollCapture:e6,onWheelCapture:e6,onTouchMoveCapture:e6}),l=s[0],c=s[1],u=e.forwardProps,d=e.children,h=e.className,p=e.removeScrollBar,f=e.enabled,m=e.shards,b=e.sideCar,E=e.noRelative,y=e.noIsolation,T=e.inert,v=e.allowPinchZoom,k=e.as,S=e.gapMode,A=eQ(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=(n=[o,t],r=function(e){return n.forEach(function(t){return e0(t,e)})},(i=(0,g.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,a=i.facade,e1(function(){var e=e2.get(a);if(e){var t=new Set(e),r=new Set(n),i=a.current;t.forEach(function(e){r.has(e)||e0(e,null)}),r.forEach(function(e){t.has(e)||e0(e,i)})}e2.set(a,n)},[n]),a),_=eX(eX({},A),l);return g.createElement(g.Fragment,null,f&&g.createElement(b,{sideCar:e5,removeScrollBar:p,shards:m,noRelative:E,noIsolation:y,inert:T,setCallbacks:c,allowPinchZoom:!!v,lockRef:o,gapMode:S}),u?g.cloneElement(g.Children.only(d),eX(eX({},_),{ref:C})):g.createElement(void 0===k?"div":k,eX({},_,{className:h,ref:C}),d))});e9.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},e9.classNames={fullWidth:eJ,zeroRight:eZ};var e3=function(e){var t=e.sideCar,n=eQ(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return g.createElement(r,eX({},n))};e3.isSideCarExport=!0;var e4=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=i||n.nc;return t&&e.setAttribute("nonce",t),e}())){var a,o;(a=t).styleSheet?a.styleSheet.cssText=r:a.appendChild(document.createTextNode(r)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},e7=function(){var e=e4();return function(t,n){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},e8=function(){var e=e7();return function(t){return e(t.styles,t.dynamic),null}},te={left:0,top:0,right:0,gap:0},tt=function(e){return parseInt(e||"",10)||0},tn=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[tt(n),tt(r),tt(i)]},tr=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return te;var t=tn(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ti=e8(),ta="data-scroll-locked",to=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(ta,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(o,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(eZ," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(eJ," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(eZ," .").concat(eZ," {\n right: 0 ").concat(r,";\n }\n \n .").concat(eJ," .").concat(eJ," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(ta,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},ts=function(){var e=parseInt(document.body.getAttribute(ta)||"0",10);return isFinite(e)?e:0},tl=function(){g.useEffect(function(){return document.body.setAttribute(ta,(ts()+1).toString()),function(){var e=ts()-1;e<=0?document.body.removeAttribute(ta):document.body.setAttribute(ta,e.toString())}},[])},tc=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;tl();var a=g.useMemo(function(){return tr(i)},[i]);return g.createElement(ti,{styles:to(a,!t,i,n?"":"!important")})},tu=!1;if("u">typeof window)try{var td=Object.defineProperty({},"passive",{get:function(){return tu=!0,!0}});window.addEventListener("test",td,td),window.removeEventListener("test",td,td)}catch(e){tu=!1}var th=!!tu&&{passive:!1},tp=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},tf=function(e,t){var n=t.ownerDocument,r=t;do{if("u">typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),tm(e,r)){var i=tg(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},tm=function(e,t){return"v"===e?tp(t,"overflowY"):tp(t,"overflowX")},tg=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},tb=function(e,t,n,r,i){var a,o=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),s=o*r,l=n.target,c=t.contains(l),u=!1,d=s>0,h=0,p=0;do{if(!l)break;var f=tg(e,l),m=f[0],g=f[1]-f[2]-o*m;(m||g)&&tm(e,l)&&(h+=g,p+=m);var b=l.parentNode;l=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return d&&(i&&1>Math.abs(h)||!i&&s>h)?u=!0:!d&&(i&&1>Math.abs(p)||!i&&-s>p)&&(u=!0),u},tE=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ty=function(e){return[e.deltaX,e.deltaY]},tT=function(e){return e&&"current"in e?e.current:e},tv=0,tk=[];let tS=(u=function(e){var t=g.useRef([]),n=g.useRef([0,0]),r=g.useRef(),i=g.useState(tv++)[0],a=g.useState(e8)[0],o=g.useRef(e);g.useEffect(function(){o.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(tT),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=g.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!o.current.allowPinchZoom;var i,a=tE(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-a[0],c="deltaY"in e?e.deltaY:s[1]-a[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var h=window.getSelection(),p=h&&h.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var f=tf(d,u);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=tf(d,u)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=i),!i)return!0;var m=r.current||i;return tb(m,t,e,"h"===m?l:c,!0)},[]),l=g.useCallback(function(e){if(tk.length&&tk[tk.length-1]===a){var n="deltaY"in e?ty(e):tE(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(o.current.shards||[]).map(tT).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!o.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=g.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=g.useCallback(function(e){n.current=tE(e),r.current=void 0},[]),d=g.useCallback(function(t){c(t.type,ty(t),t.target,s(t,e.lockRef.current))},[]),h=g.useCallback(function(t){c(t.type,tE(t),t.target,s(t,e.lockRef.current))},[]);g.useEffect(function(){return tk.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,th),document.addEventListener("touchmove",l,th),document.addEventListener("touchstart",u,th),function(){tk=tk.filter(function(e){return e!==a}),document.removeEventListener("wheel",l,th),document.removeEventListener("touchmove",l,th),document.removeEventListener("touchstart",u,th)}},[]);var p=e.removeScrollBar,f=e.inert;return g.createElement(g.Fragment,null,f?g.createElement(a,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,p?g.createElement(tc,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},e5.useMedium(u),e3);var tA=g.forwardRef(function(e,t){return g.createElement(e9,eX({},e,{ref:t,sideCar:tS}))});tA.classNames=e9.classNames;var tC=new WeakMap,t_=new WeakMap,tx={},tw=0,tN=function(e){return e&&(e.host||tN(e.parentNode))},tI=function(e,t,n,r){var i=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=tN(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});tx[n]||(tx[n]=new WeakMap);var a=tx[n],o=[],s=new Set,l=new Set(i),c=function(e){!e||s.has(e)||(s.add(e),c(e.parentNode))};i.forEach(c);var u=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=null!==t&&"false"!==t,l=(tC.get(e)||0)+1,c=(a.get(e)||0)+1;tC.set(e,l),a.set(e,c),o.push(e),1===l&&i&&t_.set(e,!0),1===c&&e.setAttribute(n,"true"),i||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),s.clear(),tw++,function(){o.forEach(function(e){var t=tC.get(e)-1,i=a.get(e)-1;tC.set(e,t),a.set(e,i),t||(t_.has(e)||e.removeAttribute(r),t_.delete(e)),i||e.removeAttribute(n)}),--tw||(tC=new WeakMap,tC=new WeakMap,t_=new WeakMap,tx={})}},tR=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),tI(r,i,n,"aria-hidden")):function(){return null}},tO=Object.defineProperty,tD=(e,t)=>tO(e,"name",{value:t,configurable:!0}),tP="Dialog",[tL,tM]=O(tP),[tF,tB]=tL(tP),tH=tD(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=g.useRef(null),l=g.useRef(null),[c,u]=(0,H.i)({prop:r,defaultProp:i??!1,onChange:a,caller:tP}),[d,h]=g.useState(0),[p,f]=g.useState(0);return(0,N.jsx)(tF,{scope:t,triggerRef:s,contentRef:l,contentId:B(),titleId:B(),descriptionId:B(),titlePresent:d>0,descriptionPresent:p>0,setTitleCount:h,setDescriptionCount:f,open:c,onOpenChange:u,onOpenToggle:g.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})},"Dialog"),tU="DialogPortal",[tj,tG]=tL(tU,{forceMount:void 0}),tz=tD(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=tB(tU,t);return(0,N.jsx)(tj,{scope:t,forceMount:n,children:g.Children.map(r,e=>(0,N.jsx)(eB,{present:n||a.open,children:(0,N.jsx)(eP,{asChild:!0,container:i,children:e})}))})},"DialogPortal"),t$="DialogOverlay",tW=g.forwardRef(tD(function(e,t){let n=tG(t$,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=tB(t$,e.__scopeDialog);return a.modal?(0,N.jsx)(eB,{present:r||a.open,children:(0,N.jsx)(tV,{...i,ref:t})}):null},"DialogOverlay")),tq=z("DialogOverlay.RemoveScroll"),tV=g.forwardRef(tD(function(e,t){let{__scopeDialog:n,...r}=e,i=tB(t$,n),a=w(t,eu());return(0,N.jsx)(tA,{as:tq,allowPinchZoom:!0,shards:[i.contentRef],children:(0,N.jsx)(en.div,{"data-state":tJ(i.open),...r,ref:a,style:{pointerEvents:"auto",...r.style}})})},"DialogOverlayImpl")),tY="DialogContent",tK=g.forwardRef(tD(function(e,t){let n=tG(tY,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=tB(tY,e.__scopeDialog);return(0,N.jsx)(eB,{present:r||a.open,children:a.modal?(0,N.jsx)(tX,{...i,ref:t}):(0,N.jsx)(tQ,{...i,ref:t})})},"DialogContent")),tX=g.forwardRef(tD(function(e,t){let n=tB(tY,e.__scopeDialog),r=g.useRef(null),i=w(t,n.contentRef,r);return g.useEffect(()=>{let e=r.current;if(e)return tR(e)},[]),(0,N.jsx)(tZ,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:v(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:v(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:v(e.onFocusOutside,e=>e.preventDefault())})},"DialogContentModal")),tQ=g.forwardRef(tD(function(e,t){let n=tB(tY,e.__scopeDialog),r=g.useRef(!1),i=g.useRef(!1);return(0,N.jsx)(tZ,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})},"DialogContentNonModal")),tZ=g.forwardRef(tD(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=tB(tY,n);return eY(),(0,N.jsx)(N.Fragment,{children:(0,N.jsx)(ev,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,N.jsx)(ec,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionPresent?s.descriptionId:void 0,"aria-labelledby":s.titlePresent?s.titleId:void 0,"data-state":tJ(s.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})},"DialogContentImpl"));function tJ(e){return e?"open":"closed"}tD(tJ,"getState");var t0='[cmdk-group=""]',t1='[cmdk-group-items=""]',t2='[cmdk-item=""]',t5=`${t2}:not([aria-disabled="true"])`,t6="cmdk-item-select",t9="data-value",t3=(e,t,n)=>{var r;return r=e,function e(t,n,r,i,a,o,s){if(o===n.length)return a===t.length?1:.99;var l=`${a},${o}`;if(void 0!==s[l])return s[l];for(var c,u,m,g,b=i.charAt(o),E=r.indexOf(b,a),y=0;E>=0;)(c=e(t,n,r,i,E+1,o+1,s))>y&&(E===a?c*=1:d.test(t.charAt(E-1))?(c*=.8,(m=t.slice(a,E-1).match(h))&&a>0&&(c*=Math.pow(.999,m.length))):p.test(t.charAt(E-1))?(c*=.9,(g=t.slice(a,E-1).match(f))&&a>0&&(c*=Math.pow(.999,g.length))):(c*=.17,a>0&&(c*=Math.pow(.999,E-a))),t.charAt(E)!==n.charAt(o)&&(c*=.9999)),(c<.1&&r.charAt(E-1)===i.charAt(o+1)||i.charAt(o+1)===i.charAt(o)&&r.charAt(E-1)!==i.charAt(o))&&.1*(u=e(t,n,r,i,E+1,o+2,s))>c&&(c=.1*u),c>y&&(y=c),E=r.indexOf(b,E+1);return s[l]=y,y}(r=n&&n.length>0?`${r+" "+n.join(" ")}`:r,t,m(r),m(t),0,0,{})},t4=g.createContext(void 0),t7=g.createContext(void 0),t8=g.createContext(void 0),ne=g.forwardRef((e,t)=>{let n=nu(()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=nu(()=>new Set),i=nu(()=>new Map),a=nu(()=>new Map),o=nu(()=>new Set),s=nl(e),{label:l,children:c,value:u,onValueChange:d,filter:h,shouldFilter:p,loop:f,disablePointerSelection:m=!1,vimBindings:b=!0,...E}=e,y=B(),T=B(),v=B(),k=g.useRef(null),S=np();nc(()=>{if(void 0!==u){let e=u.trim();n.current.value=e,A.emit()}},[u]),nc(()=>{S(6,I)},[]);let A=g.useMemo(()=>({subscribe:e=>(o.current.add(e),()=>o.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var i,a,o,l;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)N(),x(),S(1,w);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(v);e?e.focus():null==(i=document.getElementById(y))||i.focus()}if(S(7,()=>{var e;n.current.selectedItemId=null==(e=R())?void 0:e.id,A.emit()}),r||S(5,I),(null==(a=s.current)?void 0:a.value)!==void 0){null==(l=(o=s.current).onValueChange)||l.call(o,null!=t?t:"");return}}A.emit()}},emit:()=>{o.current.forEach(e=>e())}}),[]),C=g.useMemo(()=>({value:(e,t,r)=>{var i;t!==(null==(i=a.current.get(e))?void 0:i.value)&&(a.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,_(t,r)),S(2,()=>{x(),A.emit()}))},item:(e,t)=>(r.current.add(e),t&&(i.current.has(t)?i.current.get(t).add(e):i.current.set(t,new Set([e]))),S(3,()=>{N(),x(),n.current.value||w(),A.emit()}),()=>{a.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=R();S(4,()=>{N(),(null==t?void 0:t.getAttribute("id"))===e&&w(),A.emit()})}),group:e=>(i.current.has(e)||i.current.set(e,new Set),()=>{a.current.delete(e),i.current.delete(e)}),filter:()=>s.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:y,inputId:v,labelId:T,listInnerRef:k}),[]);function _(e,t){var r,i;let a=null!=(i=null==(r=s.current)?void 0:r.filter)?i:t3;return e?a(e,n.current.search,t):0}function x(){if(!n.current.search||!1===s.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(n=>{let r=i.current.get(n),a=0;r.forEach(t=>{a=Math.max(e.get(t),a)}),t.push([n,a])});let r=k.current;O().sort((t,n)=>{var r,i;let a=t.getAttribute("id"),o=n.getAttribute("id");return(null!=(r=e.get(o))?r:0)-(null!=(i=e.get(a))?i:0)}).forEach(e=>{let t=e.closest(t1);t?t.appendChild(e.parentElement===t?e:e.closest(`${t1} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${t1} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let n=null==(t=k.current)?void 0:t.querySelector(`${t0}[${t9}="${encodeURIComponent(e[0])}"]`);null==n||n.parentElement.appendChild(n)})}function w(){let e=O().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(t9);A.setState("value",t||void 0)}function N(){var e,t,o,l;if(!n.current.search||!1===s.current.shouldFilter){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let c=0;for(let i of r.current){let r=_(null!=(t=null==(e=a.current.get(i))?void 0:e.value)?t:"",null!=(l=null==(o=a.current.get(i))?void 0:o.keywords)?l:[]);n.current.filtered.items.set(i,r),r>0&&c++}for(let[e,t]of i.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=c}function I(){var e,t,n;let r=R();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(t0))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function R(){var e;return null==(e=k.current)?void 0:e.querySelector(`${t2}[aria-selected="true"]`)}function O(){var e;return Array.from((null==(e=k.current)?void 0:e.querySelectorAll(t5))||[])}function D(e){let t=O()[e];t&&A.setState("value",t.getAttribute(t9))}function P(e){var t;let n=R(),r=O(),i=r.findIndex(e=>e===n),a=r[i+e];null!=(t=s.current)&&t.loop&&(a=i+e<0?r[r.length-1]:i+e===r.length?r[0]:r[i+e]),a&&A.setState("value",a.getAttribute(t9))}function L(e){let t=R(),n=null==t?void 0:t.closest(t0),r;for(;n&&!r;)r=null==(n=e>0?function(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}(n,t0):function(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}(n,t0))?void 0:n.querySelector(t5);r?A.setState("value",r.getAttribute(t9)):P(e)}let M=()=>D(O().length-1),F=e=>{e.preventDefault(),e.metaKey?M():e.altKey?L(1):P(1)},H=e=>{e.preventDefault(),e.metaKey?D(0):e.altKey?L(-1):P(-1)};return g.createElement(en.div,{ref:t,tabIndex:-1,...E,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=E.onKeyDown)||t.call(E,e);let n=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||n))switch(e.key){case"n":case"j":b&&e.ctrlKey&&F(e);break;case"ArrowDown":F(e);break;case"p":case"k":b&&e.ctrlKey&&H(e);break;case"ArrowUp":H(e);break;case"Home":e.preventDefault(),D(0);break;case"End":e.preventDefault(),M();break;case"Enter":{e.preventDefault();let t=R();if(t){let e=new Event(t6);t.dispatchEvent(e)}}}}},g.createElement("label",{"cmdk-label":"",htmlFor:C.inputId,id:C.labelId,style:nm},l),nf(e,e=>g.createElement(t7.Provider,{value:A},g.createElement(t4.Provider,{value:C},e))))}),nt=g.forwardRef((e,t)=>{var n,r;let i=B(),a=g.useRef(null),o=g.useContext(t8),s=g.useContext(t4),l=nl(e),c=null!=(r=null==(n=l.current)?void 0:n.forceMount)?r:null==o?void 0:o.forceMount;nc(()=>{if(!c)return s.item(i,null==o?void 0:o.id)},[c]);let u=nh(i,a,[e.value,e.children,a],e.keywords),d=g.useContext(t7),h=nd(e=>e.value&&e.value===u.current),p=nd(e=>!!c||!1===s.filter()||!e.search||e.filtered.items.get(i)>0);function f(){var e,t;m(),null==(t=(e=l.current).onSelect)||t.call(e,u.current)}function m(){d.setState("value",u.current,!0)}if(g.useEffect(()=>{let t=a.current;if(!(!t||e.disabled))return t.addEventListener(t6,f),()=>t.removeEventListener(t6,f)},[p,e.onSelect,e.disabled]),!p)return null;let{disabled:b,value:E,onSelect:y,forceMount:T,keywords:v,...k}=e;return g.createElement(en.div,{ref:x(a,t),...k,id:i,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!h,"data-disabled":!!b,"data-selected":!!h,onPointerMove:b||s.getDisablePointerSelection()?void 0:m,onClick:b?void 0:f},e.children)}),nn=g.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:i,...a}=e,o=B(),s=g.useRef(null),l=g.useRef(null),c=B(),u=g.useContext(t4),d=nd(e=>!!i||!1===u.filter()||!e.search||e.filtered.groups.has(o));nc(()=>u.group(o),[]),nh(o,s,[e.value,e.heading,l]);let h=g.useMemo(()=>({id:o,forceMount:i}),[i]);return g.createElement(en.div,{ref:x(s,t),...a,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&g.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),nf(e,e=>g.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},g.createElement(t8.Provider,{value:h},e))))}),nr=g.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,i=g.useRef(null),a=nd(e=>!e.search);return n||a?g.createElement(en.div,{ref:x(i,t),...r,"cmdk-separator":"",role:"separator"}):null}),ni=g.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,i=null!=e.value,a=g.useContext(t7),o=nd(e=>e.search),s=nd(e=>e.selectedItemId),l=g.useContext(t4);return g.useEffect(()=>{null!=e.value&&a.setState("search",e.value)},[e.value]),g.createElement(en.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":s,id:l.inputId,type:"text",value:i?e.value:o,onChange:e=>{i||a.setState("search",e.target.value),null==n||n(e.target.value)}})}),na=g.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...i}=e,a=g.useRef(null),o=g.useRef(null),s=nd(e=>e.selectedItemId),l=g.useContext(t4);return g.useEffect(()=>{if(o.current&&a.current){let e=o.current,t=a.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.offsetHeight;t.style.setProperty("--cmdk-list-height",n.toFixed(1)+"px")})});return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}},[]),g.createElement(en.div,{ref:x(a,t),...i,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":r,id:l.listId},nf(e,e=>g.createElement("div",{ref:x(o,l.listInnerRef),"cmdk-list-sizer":""},e)))}),no=g.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:i,contentClassName:a,container:o,...s}=e;return g.createElement(tH,{open:n,onOpenChange:r},g.createElement(tz,{container:o},g.createElement(tW,{"cmdk-overlay":"",className:i}),g.createElement(tK,{"aria-label":e.label,"cmdk-dialog":"",className:a},g.createElement(ne,{ref:t,...s}))))}),ns=Object.assign(ne,{List:na,Item:nt,Input:ni,Group:nn,Separator:nr,Dialog:no,Empty:g.forwardRef((e,t)=>nd(e=>0===e.filtered.count)?g.createElement(en.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:g.forwardRef((e,t)=>{let{progress:n,children:r,label:i="Loading...",...a}=e;return g.createElement(en.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},nf(e,e=>g.createElement("div",{"aria-hidden":!0},e)))})});function nl(e){let t=g.useRef(e);return nc(()=>{t.current=e}),t}var nc="u"<typeof window?g.useEffect:g.useLayoutEffect;function nu(e){let t=g.useRef();return void 0===t.current&&(t.current=e()),t}function nd(e){let t=g.useContext(t7),n=()=>e(t.snapshot());return g.useSyncExternalStore(t.subscribe,n,n)}function nh(e,t,n,r=[]){let i=g.useRef(),a=g.useContext(t4);return nc(()=>{var o;let s=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():i.current}})(),l=r.map(e=>e.trim());a.value(e,s,l),null==(o=t.current)||o.setAttribute(t9,s),i.current=s}),i}var np=()=>{let[e,t]=g.useState(),n=nu(()=>new Map);return nc(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}};function nf({asChild:e,children:t},n){let r;return e&&g.isValidElement(t)?g.cloneElement("function"==typeof(r=t.type)?r(t.props):"render"in r?r.render(t.props):t,{ref:t.ref},n(t.props.children)):n(t)}var nm={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},30542:(e,t,n)=>{"use strict";n.d(t,{z:()=>d,O:()=>h});var r=n(69266),i=n(82956),a=n(79621),o=n(52686),s=n(29666),l=n(27944),c=n(82712),u=n(84146);let d={type:"regular-item"};function h(e){let{closeOnClick:t,disabled:n,highlighted:d,id:h,store:p,typingRef:f=p.context.typingRef,nativeButton:m,itemMetadata:g,nodeId:b}=e,E=r.useRef(null),{getButtonProps:y,buttonRef:T}=(0,a.s)({disabled:n,focusableWhenDisabled:!0,native:m,composite:!0}),v=function(e){let{closeOnClick:t,highlighted:n,id:i,nodeId:a,store:o,typingRef:d,itemRef:h,itemMetadata:p}=e,{events:f}=o.useState("floatingTreeRoot"),m=o.useState("open"),g=(0,c.v)(!0),b=void 0!==g;return r.useMemo(()=>({id:i,role:"menuitem",tabIndex:m&&n?0:-1,onKeyDown(e){" "===e.key&&d?.current&&e.preventDefault()},onMouseMove(e){a&&f.emit("itemhover",{nodeId:a,target:e.currentTarget})},onClick(e){t&&f.emit("close",{domEvent:e,reason:l.Bo})},onMouseUp(e){if(g){let t=g.initialCursorPointRef.current;if(g.initialCursorPointRef.current=null,b&&t&&1>=Math.abs(e.clientX-t.x)&&1>=Math.abs(e.clientY-t.y)||b&&!s.Md&&2===e.button)return}h.current&&o.context.allowMouseUpTriggerRef.current&&(!b||2===e.button)&&"regular-item"===p.type&&(0,u.B)(h.current,e,{detail:1})}}),[t,n,i,f,a,m,o,d,h,g,b,p])}({closeOnClick:t,highlighted:d,id:h,nodeId:b,store:p,typingRef:f,itemRef:E,itemMetadata:g}),k=r.useCallback(e=>(0,o.v6)(v,{onMouseEnter(){"submenu-trigger"===g.type&&g.setActive()}},e,y),[v,y,g]),S=(0,i.a)(E,T);return r.useMemo(()=>({getItemProps:k,itemRef:S}),[k,S])}},31123:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]])},31761:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("git-branch",[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]])},32919:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},o=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!a)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;else if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,d=arguments[0],h=1,p=arguments.length,f=!1;for("boolean"==typeof d&&(f=d,d=arguments[1]||{},h=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});h<p;++h)if(t=arguments[h],null!=t)for(n in t)r=l(d,n),d!==(i=l(t,n))&&(f&&i&&(o(i)||(c=a(i)))?(c?(c=!1,u=r&&a(r)?r:[]):u=r&&o(r)?r:{},s(d,{name:n,newValue:e(f,u,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}},35083:(e,t,n)=>{"use strict";n.d(t,{f:()=>a,k:()=>o});var r=n(80417),i=n(69266);let a=i.createContext(void 0);function o(){let e=i.useContext(a);if(!e)throw Error((0,r.A)(46));return e}},35995:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},36670:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},36700:(e,t,n)=>{"use strict";n.d(t,{R:()=>u});var r=n(69266),i=n(8163),a=n(97591),o=n(69611),s=n(79621),l=n(99357);let c={...i.q,...a.G},u=r.forwardRef(function(e,t){let{panelId:n,open:r,handleTrigger:i,state:a,disabled:u}=(0,l.f)(),{className:d,disabled:h=u,render:p,nativeButton:f=!0,style:m,...g}=e,{getButtonProps:b,buttonRef:E}=(0,s.s)({disabled:h,focusableWhenDisabled:!0,native:f});return(0,o.o)("button",e,{state:a,ref:[t,E],props:[{"aria-controls":r?n:void 0,"aria-expanded":r,onClick:i},g,b],stateAttributesMapping:c})})},37947:(e,t,n)=>{"use strict";function r(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}n.d(t,{W:()=>r})},37995:(e,t,n)=>{"use strict";function r(e,t,n){if(!e)return 0;let r=getComputedStyle(e),i=`${t}${"x"===n?"Inline":"Block"}`,a=parseFloat(r[`${i}Start`]);return"x"===n&&"margin"===t?2*a:a+parseFloat(r[`${i}End`])}n.d(t,{A:()=>r})},38105:(e,t,n)=>{"use strict";function r(e){let t=[],n=String(e||""),r=n.indexOf(","),i=0,a=!1;for(;!a;){-1===r&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(",",i)}return t}function i(e,t){let n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}n.d(t,{A:()=>i,q:()=>r})},39608:(e,t,n)=>{"use strict";n.d(t,{D:()=>u});var r=n(69266),i=n(30542),a=n(79833),o=n(69611),s=n(9542),l=n(54545),c=n(91305);let u=r.forwardRef(function(e,t){let{render:n,className:r,id:u,label:d,nativeButton:h=!1,disabled:p=!1,closeOnClick:f=!0,style:m,...g}=e,b=(0,l.q)({guess:!0,label:d}),E=(0,c.O)(!0),y=(0,s.e)(u),{store:T}=(0,a.Y)(),v=T.useState("disabled"),k=p||v,S=T.useState("isActive",b.index),A=T.useState("itemProps"),{getItemProps:C,itemRef:_}=(0,i.O)({closeOnClick:f,disabled:k,highlighted:S,id:y,store:T,nativeButton:h,nodeId:E?.context.nodeId,itemMetadata:i.z});return(0,o.o)("div",e,{state:{disabled:k,highlighted:S},props:[A,g,C],ref:[_,t,b.ref]})})},40156:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});let r={}.hasOwnProperty;function i(e,t){let n=t||{};function i(t,...n){let a=i.invalid,o=i.handlers;if(t&&r.call(t,e)){let n=String(t[e]);a=r.call(o,n)?o[n]:i.unknown}if(a)return a.call(this,t,...n)}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i}},40252:(e,t,n)=>{"use strict";n.d(t,{W:()=>v});var r=n(80417),i=n(69266),a=n(1227),o=n(79621),s=n(85933),l=n(69611),c=n(73146),u=n(65905),d=n(17499),h=n(69738),p=n(9542),f=n(69609),m=n(27944),g=n(1424),b=n(63962),E=n(54005),y=n(35215),T=n(7962);let v=i.forwardRef(function(e,t){let{render:n,className:v,style:k,disabled:S=!1,nativeButton:A=!0,handle:C,payload:_,openOnHover:x=!1,delay:w=300,closeDelay:N=0,id:I,...R}=e,O=(0,a.s)(!0),D=(0,g.f)(C)??O;if(!D)throw Error((0,r.A)(74));let P=(0,p.e)(I),L=D.useState("isTriggerActive",P),M=D.useState("floatingRootContext"),F=D.useState("isOpenedByTrigger",P),B=D.useState("triggerPopupId",P),H=i.useRef(null),{registerTrigger:U,isMountedByThisTrigger:j}=(0,b.L_)(P,H,D,{payload:_,disabled:S,openOnHover:x,closeDelay:N}),G=D.useState("openChangeReason"),z=D.useState("stickIfOpen"),$=D.useState("openMethod"),W=D.useState("focusManagerModal"),q=(0,u.j)(M,{enabled:!S&&x&&("touch"!==$||G!==m.Ui),mouseOnly:!0,move:!1,handleClose:(0,d.i)(),restMs:w,delay:{close:N},triggerElementRef:H,isActiveTrigger:L,isClosing:()=>"ending"===D.select("transitionStatus")}),V=(0,h.k)(M,{stickIfOpen:z}),Y=(0,y.L)(()=>D.select("open"),e=>{D.set("openMethod",e)}),K=D.useState("triggerProps",j),{getButtonProps:X,buttonRef:Q}=(0,o.s)({disabled:S,native:A}),{preFocusGuardRef:Z,handlePreFocusGuardFocus:J,handleFocusTargetFocus:ee}=(0,E.a)(D,H),et=(0,l.o)("button",e,{state:{disabled:S,open:F},ref:[Q,t,U,H],props:[V.reference,q,K,Y,{[c.Kd]:"",id:P,"aria-haspopup":"dialog","aria-expanded":F,"aria-controls":B},R,X],stateAttributesMapping:{open:e=>e&&G===m.Ui?s.jL.open(e):s.qV.open(e)}}),en=(0,T.jsx)(i.Fragment,{children:et},P);return j&&!W?(0,T.jsxs)(i.Fragment,{children:[(0,T.jsx)(f.U,{ref:Z,onFocus:J}),en,(0,T.jsx)(f.U,{ref:D.context.triggerFocusTargetRef,onFocus:ee})]}):en})},40287:(e,t,n)=>{"use strict";n.d(t,{i:()=>T});var r=n(69266),i=n(10813),a=n(20660),o=n(31025),s=n(1227),l=n(35083),c=n(85933),u=n(43745),d=n(69611),h=n(27944),p=n(1712),f=n(9279),m=n(82909),g=n(66538);let b=r.createContext(void 0);var E=n(63962),y=n(7962);let T=r.forwardRef(function(e,t){let{render:n,className:T,style:v,initialFocus:k,finalFocus:S,...A}=e,C=(0,s.s)(),_=(0,l.k)(),x=null!=(0,f.S)(!0),{context:w,hasClosePart:N}=function(){let[e,t]=r.useState(0),n=(0,g.K)(()=>(t(e=>e+1),()=>{t(e=>Math.max(0,e-1))}));return{context:r.useMemo(()=>({register:n}),[n]),hasClosePart:e>0}}(),I=C.useState("open"),R=C.useState("openMethod"),O=C.useState("instantType"),D=C.useState("transitionStatus"),P=C.useState("popupProps"),L=C.useState("titleElementId"),M=C.useState("descriptionElementId"),F=C.useState("modal"),B=C.useState("mounted"),H=C.useState("openChangeReason"),U=C.useState("activeTriggerElement"),j=C.useState("floatingRootContext"),G=j.useState("floatingId"),z=C.useState("disabled"),$=C.useState("openOnHover"),W=C.useState("closeDelay");(0,u.v)({open:I,ref:C.context.popupRef,onComplete(){I&&C.context.onOpenChangeComplete?.(!0)}}),(0,a.a)(j,{enabled:$&&!z,closeDelay:W});let q=void 0===k?(0,E.UM)(C.context.popupRef):k,V=!1!==F&&N;C.useSyncedValue("focusManagerModal",V);let Y=C.useStateSetter("popupElement"),K={open:I,side:_.side,align:_.align,instant:O,transitionStatus:D},X=(0,d.o)("div",e,{state:K,ref:[t,C.context.popupRef,Y],props:[P,{id:G,role:"dialog",...E.Ls,"aria-labelledby":L,"aria-describedby":M,onKeyDown(e){x&&p.jF.has(e.key)&&e.stopPropagation()}},(0,m.d)(D),A],stateAttributesMapping:c.LM});return(0,y.jsx)(o.s,{context:j,openInteractionType:R,modal:V,disabled:!B||H===h.N7,initialFocus:q,returnFocus:S,restoreFocus:"popup",previousFocusableElement:(0,i.sb)(U)?U:void 0,nextFocusableElement:C.context.triggerFocusTargetRef,beforeContentFocusGuardRef:C.context.beforeContentFocusGuardRef,children:(0,y.jsx)(b.Provider,{value:w,children:X})})})},40709:(e,t,n)=>{"use strict";n.d(t,{B:()=>v});var r=n(69266),i=n(66538),a=n(66758),o=n(68509),s=n(34517),l=n(45098);let c=r.createContext(void 0);var u=n(69611),d=n(73881),h=n(37995),p=n(24567),f=n(94296),m=n(40516),g=n(76687),b=n(66867),E=n(7962);let y=["--scroll-area-overflow-x-start","--scroll-area-overflow-x-end","--scroll-area-overflow-y-start","--scroll-area-overflow-y-end"],T=!1,v=r.forwardRef(function(e,t){let{render:n,className:f,style:v,...A}=e,{viewportRef:C,scrollbarYRef:_,scrollbarXRef:x,thumbYRef:w,thumbXRef:N,cornerRef:I,cornerSize:R,setCornerSize:O,setThumbSize:D,rootId:P,setHiddenState:L,hiddenState:M,setHasMeasuredScrollbar:F,handleScroll:B,touchModality:H,setHovering:U,setOverflowEdges:j,overflowEdgeThreshold:G,viewportState:z}=(0,l.p)(),$=(0,d.j)(),W=r.useRef(!0),q=r.useRef([NaN,NaN,NaN,NaN]),V=(0,s.Z)(),Y=(0,s.Z)(),K=(0,i.K)(()=>{var e;let t,n,r=C.current,i=_.current,a=x.current,o=w.current,s=N.current,l=I.current;if(!r)return;let c=r.scrollHeight,u=r.scrollWidth,d=r.clientHeight,f=r.clientWidth,m=r.scrollTop,g=r.scrollLeft,E=q.current,T=Number.isNaN(E[0]);if(E[0]=d,E[1]=c,E[2]=f,E[3]=u,T&&F(!0),0===c||0===u)return;let v=(t=(e=r).clientHeight>=e.scrollHeight,{y:t,x:n=e.clientWidth>=e.scrollWidth,corner:t||n}),A=v.y,P=v.x,M=f/u,B=d/c,H=Math.max(0,u-f),U=Math.max(0,c-d),z=0,W=0;P||(z=(0,b.Qw)("rtl"===$?-g:g,H),W=H-z);let V=A?0:(0,b.Qw)(m,U),Y=A?0:U-V,K=P?0:f,X=A?0:d,Q=0,Z=0;P||A||(Q=i?.offsetWidth||0,Z=a?.offsetHeight||0);let J=0===R.width&&0===R.height,ee=J?Q:0,et=J?Z:0,en=(0,h.A)(a,"padding","x"),er=(0,h.A)(i,"padding","y"),ei=(0,h.A)(s,"margin","x"),ea=(0,h.A)(o,"margin","y"),eo=K-en-ei,es=X-er-ea,el=a?Math.min(a.offsetWidth-ee,eo):eo,ec=i?Math.min(i.offsetHeight-et,es):es,eu=Math.max(p.i,el*M),ed=Math.max(p.i,ec*B);if(D(e=>k(e,{width:eu,height:ed})),i&&o){let e=i.offsetHeight-ed-er-ea,t=S(o,"--scroll-area-thumb-height",m,U,c,ed,e);o.style.transform=`translate3d(0,${t}px,0)`}if(a&&s){let e=a.offsetWidth-eu-en-ei,t=S(s,"--scroll-area-thumb-width","rtl"===$?-g:g,H,u,eu,e);s.style.transform=`translate3d(${"rtl"===$?-t:t}px,0,0)`}let eh=[z,W,V,Y];y.forEach((e,t)=>{r.style.setProperty(e,`${eh[t]}px`)}),l&&O(e=>k(e,{width:Q,height:Z})),L(e=>k(e,v));let ep={xStart:!P&&z>G.xStart,xEnd:!P&&W>G.xEnd,yStart:!A&&V>G.yStart,yEnd:!A&&Y>G.yEnd};j(e=>k(e,ep))});function X(){W.current=!1}(0,a.g)(()=>{T||o.Fp||("u">typeof CSS&&"registerProperty"in CSS&&y.forEach(e=>{try{CSS.registerProperty({name:e,syntax:"<length>",inherits:!1,initialValue:"0px"})}catch{}}),T=!0)},[]),(0,a.g)(()=>{queueMicrotask(K)},[K,M,$,G.xStart,G.xEnd,G.yStart,G.yEnd]),(0,a.g)(()=>{C.current?.matches(":hover")&&U(!0)},[C,U]),(0,a.g)(()=>{let e=C.current;if("u"<typeof ResizeObserver||!e)return;let t=!1,n=new ResizeObserver(()=>{if(!t){t=!0;let n=q.current;if(n[0]===e.clientHeight&&n[1]===e.scrollHeight&&n[2]===e.clientWidth&&n[3]===e.scrollWidth)return}K()});return n.observe(e),Y.start(0,()=>{let t=e.getAnimations({subtree:!0});0!==t.length&&Promise.allSettled(t.map(e=>e.finished)).then(K).catch(()=>{})}),()=>{n.disconnect(),Y.clear()}},[K,C,Y]);let Q={role:"presentation",...P&&{"data-id":`${P}-viewport`},tabIndex:M.x&&M.y?-1:0,className:m.E.className,style:{overflow:"scroll"},onScroll(){C.current&&(K(),(H||!W.current)&&B({x:C.current.scrollLeft,y:C.current.scrollTop}),V.start(100,()=>{W.current=!0}))},onWheel:X,onPointerMove:X,onPointerEnter:X,onKeyDown:X},Z=(0,u.o)("div",e,{ref:[t,C],state:z,props:[Q,A],stateAttributesMapping:g.r}),J=r.useMemo(()=>({computeThumbPosition:K}),[K]);return(0,E.jsx)(c.Provider,{value:J,children:Z})});function k(e,t){for(let n in t)if(e[n]!==t[n])return t;return e}function S(e,t,n,r,i,a,o){let s=(0,f.q)(n,0,r),l=n-s,c=Math.max(p.i,a*i/(i+Math.abs(l)));return e.style.setProperty(t,l?`${c}px`:""),(r?s/r*o:0)+(l>0?a-c:0)}},41148:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},42360:(e,t,n)=>{"use strict";n.d(t,{S:()=>o});var r=n(69266),i=n(69611),a=n(77949);let o=r.forwardRef(function(e,t){let{render:n,className:r,style:o,id:s,children:l,...c}=e,{id:u,children:d,type:h,setId:p}=(0,a.k)(s,l,"title"),f=(0,i.o)("h2",e,{ref:t,state:{type:h},props:{...c,id:u,children:d}});return(0,a.N)(f,u,p)})},44382:(e,t,n)=>{"use strict";n.d(t,{YR:()=>i});var r=n(72034);function i(e,t,n,i){let a,o,s;"function"==typeof t&&"function"!=typeof n?(o=void 0,s=t,a=n):(o=t,s=n,a=i),(0,r.VG)(e,o,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return s(e,r,n)},a)}},45098:(e,t,n)=>{"use strict";n.d(t,{a:()=>a,p:()=>o});var r=n(80417),i=n(69266);let a=i.createContext(void 0);function o(){let e=i.useContext(a);if(void 0===e)throw Error((0,r.A)(53));return e}},45968:(e,t,n)=>{"use strict";n.d(t,{U:()=>g});var r=n(69266),i=n(88944),a=n(94532),o=n(10813),s=n(33914),l=n(81137),c=n(34517),u=n(6561),d=n(69609),h=n(6723),p=n(69611),f=n(22634),m=n(7962);let g=r.forwardRef(function(e,t){let{render:n,className:g,style:b,children:E,...y}=e,T=(0,h.l)(),v=(0,c.Z)(),k=r.useRef(!1),S=r.useRef(!1),A=r.useRef(!1),C=T.useState("isEmpty"),_=T.useState("toasts"),x=T.useState("focused"),w=T.useState("expanded"),N=T.useState("prevFocusElement"),I=_[0]?.height,R=_.some(e=>"ending"===e.transitionStatus),O=_.filter(e=>"high"===e.priority);function D(){T.state.toasts.some(e=>"ending"===e.transitionStatus)||A.current||!S.current||(T.state.isWindowFocused&&T.resumeTimers(),T.set("hovering",!1),S.current=!1)}function P(){T.pauseTimers(),T.set("hovering",!0),S.current=!1}function L(e){"touch"===e.pointerType&&(A.current=!1,D())}function M(){if(k.current){k.current=!1;return}!x&&(0,f.em)((0,u.RS)((0,s.R)(T.state.viewport)))&&(T.set("focused",!0),T.pauseTimers())}r.useEffect(()=>{let e=T.state.viewport;if(!e||C)return;let t=(0,o.zk)(e),n=(0,s.R)(e);return(0,a.g)((0,i.q)(t,"keydown",function(t){"F6"===t.key&&(0,u.EW)(t)!==e&&(t.preventDefault(),T.set("prevFocusElement",(0,u.RS)(n)),e?.focus({preventScroll:!0}),T.pauseTimers(),T.set("focused",!0))}),(0,i.q)(t,"blur",function(e){(0,u.EW)(e)===t&&(T.set("isWindowFocused",!1),T.pauseTimers())},!0),(0,i.q)(t,"focus",function(n){if(n.relatedTarget)return;let r=(0,u.EW)(n),i=(0,u.RS)((0,s.R)(e));r!==t&&(0,u.gR)(e,r)&&(0,f.em)(i)||T.resumeTimers(),v.start(0,()=>T.set("isWindowFocused",!0))},!0),(0,i.q)(n,"pointerdown",T.handleDocumentPointerDown,!0))},[T,v,C]),r.useEffect(D,[R,T]);let F={tabIndex:-1,role:"region","aria-live":"polite","aria-atomic":!1,"aria-relevant":"additions text","aria-label":"Notifications",onMouseEnter:P,onMouseMove:P,onMouseLeave:function(){S.current=!0,D()},onFocus:M,onBlur:function(e){!(!x||(0,u.gR)(T.state.viewport,e.relatedTarget))&&(T.set("focused",!1),T.state.isWindowFocused&&T.resumeTimers())},onKeyDown:function(e){"Tab"===e.key&&e.shiftKey&&(0,u.EW)(e.nativeEvent)===T.state.viewport&&(e.preventDefault(),T.restoreFocusToPrevElement())},onClick:M,onPointerDown:function(e){"touch"===e.pointerType&&(A.current=!0)},onPointerUp:L,onPointerCancel:L,style:{"--toast-frontmost-height":I?`${I}px`:void 0}},B=!C&&N&&(0,m.jsx)(d.U,{onFocus:function(e){k.current=!0;let t=e.relatedTarget===T.state.viewport?_.find(e=>"ending"!==e.transitionStatus&&!e.limited):void 0;t?t.ref?.current?.focus():T.restoreFocusToPrevElement()}}),H=(0,p.o)("div",e,{ref:[t,T.setViewport],state:{expanded:w},props:[F,y,{children:(0,m.jsxs)(r.Fragment,{children:[B,E,B]})}]});return(0,m.jsxs)(r.Fragment,{children:[B,H,!x&&O.length>0&&(0,m.jsx)("div",{style:l.Q,children:O.map(e=>(0,m.jsxs)("div",{role:"alert","aria-atomic":!0,children:[(0,m.jsx)("div",{children:e.title}),(0,m.jsx)("div",{children:e.description})]},e.id))})]})})},46783:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]])},47125:(e,t,n)=>{"use strict";n.d(t,{i:()=>p});var r=n(69266),i=n.t(r,2),a=n(94131),o=Object.defineProperty,s=i[" useEffectEvent ".trim().toString()],l=i[" useInsertionEffect ".trim().toString()];function c(e){if("function"==typeof s)return s(e);let t=r.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof l?l(()=>{t.current=e}):(0,a.N)(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}o(c,"name",{value:"useEffectEvent",configurable:!0});var u=Object.defineProperty,d=(e,t)=>u(e,"name",{value:t,configurable:!0}),h=i[" useInsertionEffect ".trim().toString()]||a.N;function p({prop:e,defaultProp:t,onChange:n=d(()=>{},"onChange"),caller:i}){let[a,o,s]=f({defaultProp:t,onChange:n}),l=void 0!==e,c=l?e:a;return[c,r.useCallback(t=>{if(l){let n=m(t)?t(e):t;n!==e&&s.current?.(n)}else o(t)},[l,e,o,s])]}function f({defaultProp:e,onChange:t}){let[n,i]=r.useState(e),a=r.useRef(n),o=r.useRef(t);return h(()=>{o.current=t},[t]),r.useEffect(()=>{a.current!==n&&(o.current?.(n),a.current=n)},[n,a]),[n,i,o]}function m(e){return"function"==typeof e}d(p,"useControllableState"),d(f,"useUncontrolledState"),d(m,"isFunction");var g=Symbol("RADIX:SYNC_STATE");d(function(e,t,n,i){let{prop:a,defaultProp:o,onChange:s,caller:l}=t,u=void 0!==a,d=c(s),h=[{...n,state:o}];i&&h.push(i);let[p,f]=r.useReducer((t,n)=>{if(n.type===g)return{...t,state:n.state};let r=e(t,n);return u&&!Object.is(r.state,t.state)&&d(r.state),r},...h),m=p.state,b=r.useRef(m);r.useEffect(()=>{b.current!==m&&(b.current=m,u||d(m))},[m,b,u]);let E=r.useMemo(()=>void 0!==a?{...p,state:a}:p,[p,a]);return r.useEffect(()=>{u&&!Object.is(a,p.state)&&f({type:g,state:a})},[a,p.state,u]),[E,f]},"useControllableStateReducer")},47716:(e,t,n)=>{"use strict";n.d(t,{K:()=>l});var r=n(69266),i=n(16591),a=n(59879),o=n(81490),s=n(7962);let l=r.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return(0,i.g)().useState("mounted")||n?(0,s.jsx)(a.$.Provider,{value:n,children:(0,s.jsx)(o.F,{ref:t,...r})}):null})},47800:(e,t,n)=>{"use strict";n.d(t,{a:()=>o});var r=n(69266),i=n(69611),a=n(77949);let o=r.forwardRef(function(e,t){let{render:n,className:r,style:o,id:s,children:l,...c}=e,{id:u,children:d,type:h,setId:p}=(0,a.k)(s,l,"description"),f=(0,i.o)("p",e,{ref:t,state:{type:h},props:{...c,id:u,children:d}});return(0,a.N)(f,u,p)})},48155:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]])},49264:(e,t,n)=>{"use strict";n.d(t,{r:()=>s});var r=n(69266),i=n(77221),a=n(69611),o=n(9542);let s=r.forwardRef(function(e,t){let{render:n,className:r,style:s,id:l,...c}=e,u=(0,i.P)(),d=(0,o.e)(l);return u.useSyncedValueWithCleanup("descriptionElementId",d),(0,a.o)("p",e,{ref:t,props:[{id:d},c]})})},49362:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},49667:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("panel-left-open",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]])},49762:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("file-code-corner",[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]])},50479:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]])},50960:(e,t,n)=>{"use strict";n.d(t,{y:()=>T});var r=n(69266),i=n(52333),a=n(36158),o=n(1227),s=n(44911),l=n(44596),c=n(34517),u=n(27944),d=n(15494),h=n(14738),p=n(63962),f=n(73146);let m={...d.ol,disabled:e=>e.disabled,instantType:e=>e.instantType,openMethod:e=>e.openMethod,openChangeReason:e=>e.openChangeReason,modal:e=>e.modal,focusManagerModal:e=>e.focusManagerModal,stickIfOpen:e=>e.stickIfOpen,titleElementId:e=>e.titleElementId,descriptionElementId:e=>e.descriptionElementId,openOnHover:e=>e.openOnHover,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin};class g extends l.H{constructor(e,t,n){const i=new h.Z;super(function(e,t,n,r=!1){let i={...(0,d.rJ)(),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,openOnHover:!1,closeDelay:0,adaptiveOrigin:void 0,...e};return i.open&&e?.mounted===void 0&&(i.mounted=!0),i.floatingRootContext=(0,d.OB)(t,n,r),i}(e,i,t,n),function(e){return{popupRef:r.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:r.createRef(),beforeContentFocusGuardRef:r.createRef(),stickIfOpenTimeout:new c.E,triggerElements:e}}(i),m),this.setOpen=(e,t)=>{let n,r=t.reason===u.N7,i=t.reason===u.Ui&&0===t.event.detail,a=!e&&(t.reason===u.jv||null==t.reason),o=(0,p.T1)(t),l=this.select("activeTriggerId");if(e||t.reason!==u.SR||null!=t.trigger||null==l||(t.trigger=this.context.triggerElements.getById(l)??this.select("activeTriggerElement")??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let c=()=>{let n={open:e,openChangeReason:t.reason};(0,p.i)(n,e,t.trigger,o()),this.update(n)};r?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(f.X3,()=>{this.set("stickIfOpen",!1)}),s.flushSync(c)):c(),i?n="click":a?n="dismiss":t.reason===u.Xn&&(n="focus"),this.set("instantType",n)}}}var b=n(53402),E=n(7962);function y({props:e}){var t;let n,{children:i,open:a,defaultOpen:s=!1,onOpenChange:l,onOpenChangeComplete:c,modal:d=!1,handle:h,triggerId:f,defaultTriggerId:m=null}=e,T=(t={modal:d,open:s,openProp:a,activeTriggerId:m,triggerIdProp:f},n=(0,p.xp)((e,n)=>new g(t,e,n)),r.useEffect(()=>n.context.stickIfOpenTimeout.disposeEffect(),[n]),n);T.useControlledProp("openProp",a),T.useControlledProp("triggerIdProp",f);let k=T.useState("open"),S=T.useState("mounted"),A=T.useState("payload");T.useContextCallback("onOpenChange",l),T.useContextCallback("onOpenChangeComplete",c),(0,p.xs)(T,k),(0,p.tr)(T);let{forceUnmount:C}=(0,p.l$)(k,T,()=>{T.update({stickIfOpen:!0,openChangeReason:null})});T.useSyncedValues({modal:d}),r.useEffect(()=>{k||T.context.stickIfOpenTimeout.clear()},[T,k]),r.useImperativeHandle(e.actionsRef,()=>({unmount:C,close:()=>T.setOpen(!1,(0,b.d)(u.zJ))}),[C,T]);let _=k||S;return(0,E.jsxs)(o.r.Provider,{value:T,children:[h&&(0,E.jsx)(p.Ae,{handle:h,store:T}),_&&(0,E.jsx)(v,{store:T,modal:d}),"function"==typeof i?i({payload:A}):i]})}function T(e){return(0,o.s)(!0)?(0,E.jsx)(y,{props:e}):(0,E.jsx)(i.P6,{children:(0,E.jsx)(y,{props:e})})}function v({store:e,modal:t}){let n=e.useState("floatingRootContext"),r=(0,a.s)(n,{outsidePressEvent:{mouse:"trap-focus"===t?"sloppy":"intentional",touch:"sloppy"}}),i=r.reference,o=r.floating;return(0,p.i6)(e,{activeTriggerProps:i,inactiveTriggerProps:i,popupProps:o}),null}},51173:(e,t,n)=>{"use strict";n.d(t,{I:()=>o});var r=n(69266),i=n(45098),a=n(69611);let o=r.forwardRef(function(e,t){let{render:n,className:r,style:o,...s}=e,{cornerRef:l,cornerSize:c,hiddenState:u}=(0,i.p)(),d=(0,a.o)("div",e,{ref:[t,l],props:[{style:{position:"absolute",bottom:0,insetInlineEnd:0,width:c.width,height:c.height}},s]});return u.corner?null:d})},54005:(e,t,n)=>{"use strict";n.d(t,{a:()=>c});var r=n(69266),i=n(44911),a=n(44453),o=n(6561),s=n(53402),l=n(27944);function c(e,t){let n=r.useRef(null);return{preFocusGuardRef:n,handlePreFocusGuardFocus:function(t){i.flushSync(()=>{e.setOpen(!1,(0,s.d)(l.Xn,t.nativeEvent,t.currentTarget))});let r=(0,a.bp)(n.current);r?.focus()},handleFocusTargetFocus:function(n){let r=e.select("positionerElement");if(r&&(0,a.Qp)(n,r))e.context.beforeContentFocusGuardRef.current?.focus();else{i.flushSync(()=>{e.setOpen(!1,(0,s.d)(l.Xn,n.nativeEvent,n.currentTarget))});let c=(0,a.Yu)(e.context.triggerFocusTargetRef.current||t.current);for(;null!==c&&(0,o.gR)(r,c);){let e=c;if((c=(0,a.vF)(c))===e)break}c?.focus()}}}}},54667:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});let r=/[ \t\n\f\r]/g;function i(e){return"object"==typeof e?"text"===e.type&&a(e.value):a(e)}function a(e){return""===e.replace(r,"")}},55079:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("panel-left-close",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]])},55493:(e,t,n)=>{"use strict";let r,i;n.d(t,{OG:()=>ef,YJ:()=>ep,Zk:()=>eg,fk:()=>eE,wv:()=>ey});var a=n(7962),o=n(69266);function s({groupSize:e,panelElement:t,styleProp:n}){let r,[i,a]=function(e){switch(typeof e){case"number":return[e,"px"];case"string":{let t=parseFloat(e);return e.endsWith("%")?[t,"%"]:e.endsWith("px")?[t,"px"]:e.endsWith("rem")?[t,"rem"]:e.endsWith("em")?[t,"em"]:e.endsWith("vh")?[t,"vh"]:e.endsWith("vw")?[t,"vw"]:[t,"%"]}}}(n);switch(a){case"%":r=i/100*e;break;case"px":r=i;break;case"rem":r=i*parseFloat(getComputedStyle(t.ownerDocument.documentElement).fontSize);break;case"em":r=i*parseFloat(getComputedStyle(t).fontSize);break;case"vh":r=i/100*window.innerHeight;break;case"vw":r=i/100*window.innerWidth}return r}function l(e){return parseFloat(e.toFixed(3))}function c({group:e}){let{orientation:t,panels:n}=e;return n.reduce((e,n)=>e+="horizontal"===t?n.element.offsetWidth:n.element.offsetHeight,0)}function u(e){let{panels:t}=e,n=c({group:e});return 0===n?t.map(e=>({groupResizeBehavior:e.panelConstraints.groupResizeBehavior,collapsedSize:0,collapsible:!0===e.panelConstraints.collapsible,defaultSize:void 0,disabled:e.panelConstraints.disabled,minSize:0,maxSize:100,panelId:e.id})):t.map(e=>{let t,{element:r,panelConstraints:i}=e,a=0;void 0!==i.collapsedSize&&(a=l(s({groupSize:n,panelElement:r,styleProp:i.collapsedSize})/n*100)),void 0!==i.defaultSize&&(t=l(s({groupSize:n,panelElement:r,styleProp:i.defaultSize})/n*100));let o=0;void 0!==i.minSize&&(o=l(s({groupSize:n,panelElement:r,styleProp:i.minSize})/n*100));let c=100;return void 0!==i.maxSize&&(c=l(s({groupSize:n,panelElement:r,styleProp:i.maxSize})/n*100)),{groupResizeBehavior:i.groupResizeBehavior,collapsedSize:a,collapsible:!0===i.collapsible,defaultSize:t,disabled:i.disabled,minSize:o,maxSize:c,panelId:e.id}})}function d(e,t="Assertion error"){if(!e)throw Error(t)}function h(e,t){return Array.from(t).sort("horizontal"===e?p:f)}function p(e,t){let n=e.element.offsetLeft-t.element.offsetLeft;return 0!==n?n:e.element.offsetWidth-t.element.offsetWidth}function f(e,t){let n=e.element.offsetTop-t.element.offsetTop;return 0!==n?n:e.element.offsetHeight-t.element.offsetHeight}function m(e){return null!==e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function g(e,t){return{x:e.x>=t.left&&e.x<=t.right?0:Math.min(Math.abs(e.x-t.left),Math.abs(e.x-t.right)),y:e.y>=t.top&&e.y<=t.bottom?0:Math.min(Math.abs(e.y-t.top),Math.abs(e.y-t.bottom))}}function b(e){let{element:t,orientation:n,panels:i,separators:a}=e,o=h(n,Array.from(t.children).filter(m).map(e=>({element:e}))).map(({element:e})=>e),s=[],l=!1,u=!1,p=-1,f=-1,b=0,E,y=[];{let e=-1;for(let t of o)t.hasAttribute("data-panel")&&(e++,t.hasAttribute("data-disabled")||(b++,-1===p&&(p=e),f=e))}if(b>1){let t=-1;for(let h of o)if(h.hasAttribute("data-panel")){t++;let a=i.find(e=>e.element===h);if(a){if(E){let i,o=E.element.getBoundingClientRect(),m=h.getBoundingClientRect();if(u){let e="horizontal"===n?new DOMRect(o.right,o.top,0,o.height):new DOMRect(o.left,o.bottom,o.width,0),t="horizontal"===n?new DOMRect(m.left,m.top,0,m.height):new DOMRect(m.left,m.top,m.width,0);switch(y.length){case 0:i=[e,t];break;case 1:{let r=y[0],a=function({orientation:e,rects:t,targetRect:n}){let r={x:n.x+n.width/2,y:n.y+n.height/2},i,a=Number.MAX_VALUE;for(let n of t){let{x:t,y:o}=g(r,n),s="horizontal"===e?t:o;s<a&&(a=s,i=n)}return d(i,"No rect found"),i}({orientation:n,rects:[o,m],targetRect:r.element.getBoundingClientRect()});i=[r,a===o?t:e];break}default:i=y}}else i=y.length?y:["horizontal"===n?new DOMRect(o.right,m.top,m.left-o.right,m.height):new DOMRect(m.left,o.bottom,m.width,m.top-o.bottom)];for(let n of i){let i="width"in n?n:n.element.getBoundingClientRect(),o=(void 0===r&&(r="function"==typeof matchMedia&&!!matchMedia("(pointer:coarse)").matches),r)?e.resizeTargetMinimumSize.coarse:e.resizeTargetMinimumSize.fine;if(i.width<o){let e=o-i.width;i=new DOMRect(i.x-e/2,i.y,i.width+e,i.height)}if(i.height<o){let e=o-i.height;i=new DOMRect(i.x,i.y-e/2,i.width,i.height+e)}let u=t<=p||t>f;l||u||s.push({group:e,groupSize:c({group:e}),panels:[E,a],separator:"width"in n?void 0:n,rect:i}),l=!1}}u=!1,E=a,y=[]}}else if(h.hasAttribute("data-separator")){null!==h.ariaDisabled&&(l=!0);let e=a.find(e=>e.element===h);e?y.push(e):(E=void 0,y=[])}else u=!0}return s}class E{#e;addListener(e,t){let n=this.#e[e];return void 0===n?this.#e[e]=[t]:n.includes(t)||n.push(t),()=>{this.removeListener(e,t)}}emit(e,t){let n=this.#e[e];if(void 0!==n)if(1===n.length)n[0].call(null,t);else{let e=!1,r=null,i=Array.from(n);for(let n=0;n<i.length;n++){let a=i[n];try{a.call(null,t)}catch(t){null===r&&(e=!0,r=t)}}if(e)throw r}}removeAllListeners(){this.#e={}}removeListener(e,t){let n=this.#e[e];if(void 0!==n){let e=n.indexOf(t);e>=0&&n.splice(e,1)}}constructor(){this.#e={}}}let y={cursorFlags:0,state:"inactive"},T=new E;function v(e){let t=y;y=e,T.emit("change",{prev:t,next:e})}let k=e=>e,S=()=>{};function A(){return void 0===i&&(i=!1,"u">typeof window&&(window.navigator.userAgent.includes("Chrome")||window.navigator.userAgent.includes("Firefox"))&&(i=!0)),i}let C=new WeakMap;function _(e){if(null===e.defaultView||void 0===e.defaultView)return;let{prevStyle:t,styleSheet:n}=C.get(e)??{};void 0===n&&(n=new e.defaultView.CSSStyleSheet,e.adoptedStyleSheets&&(Object.isExtensible(e.adoptedStyleSheets)?e.adoptedStyleSheets.push(n):e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]));let r=y;switch(r.state){case"active":case"hover":{let e=function({cursorFlags:e,groups:t,state:n}){let r=0,i=0;switch(n){case"active":case"hover":t.forEach(e=>{if(!e.mutableState.disableCursor)switch(e.orientation){case"horizontal":r++;break;case"vertical":i++}})}if(0!==r||0!==i){if("active"===n&&e&&A()){let t=(4&e)!=0,n=(8&e)!=0;if((1&e)!=0)return t?"se-resize":n?"ne-resize":"e-resize";if((2&e)!=0)return t?"sw-resize":n?"nw-resize":"w-resize";if(t)return"s-resize";if(n)return"n-resize"}return A()?r>0&&i>0?"move":r>0?"ew-resize":"ns-resize":r>0&&i>0?"grab":r>0?"col-resize":"row-resize"}}({cursorFlags:r.cursorFlags,groups:r.hitRegions.map(e=>e.group),state:r.state}),i=`*, *:hover {cursor: ${e} !important; }`;if(t===i)return;t=i,e?0===n.cssRules.length?n.insertRule(i):n.replaceSync(i):1===n.cssRules.length&&n.deleteRule(0);break}case"inactive":t=void 0,1===n.cssRules.length&&n.deleteRule(0)}C.set(e,{prevStyle:t,styleSheet:n})}let x=new Map,w=new E;function N(e,t){for(let[t]of x)if(t.id===e)return t}function I(e,t){for(let[t,n]of x)if(t.id===e)return n;if(t)throw Error(`Could not find data for Group with id ${e}`)}function R(e,t){return w.addListener("groupChange",n=>{n.group.id===e&&t(n)})}function O(e,t,n){let r=x.get(e);(x=new Map(x)).set(e,t),w.emit("groupChange",{group:e,isUserInteraction:n?.isUserInteraction===!0,prev:r,next:t})}function D(e){let t=y,n=!1;return"active"===t.state&&(v({cursorFlags:0,state:"inactive"}),t.hitRegions.length>0&&(_(e),n=!0,t.hitRegions.forEach(e=>{let t=I(e.group.id,!0);O(e.group,t,{isUserInteraction:!0})}))),n}function P(e){e.defaultPrevented||D(e.currentTarget)}let L=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function M(e){let t=e.length;for(;t--;){let n=e[t];if(d(n,"Missing node"),function(e){let t,n=getComputedStyle(e);return!!("fixed"===n.position||"auto"!==n.zIndex&&("static"!==n.position||"flex"===(t=getComputedStyle(H(e)??e).display)||"inline-flex"===t)||1>+n.opacity||"transform"in n&&"none"!==n.transform||"webkitTransform"in n&&"none"!==n.webkitTransform||"mixBlendMode"in n&&"normal"!==n.mixBlendMode||"filter"in n&&"none"!==n.filter||"webkitFilter"in n&&"none"!==n.webkitFilter||"isolation"in n&&"isolate"===n.isolation||L.test(n.willChange)||"touch"===n.webkitOverflowScrolling)}(n))return n}return null}function F(e){return e&&Number(getComputedStyle(e).zIndex)||0}function B(e){let t=[];for(;e;)t.push(e),e=H(e);return t}function H(e){let{parentNode:t}=e;return null!==t&&"object"==typeof t&&"nodeType"in t&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE?t.host:t}function U(e,t){let n=[];return t.forEach((t,r)=>{if(r.disabled)return;let i=b(r),a=function(e,t,n){let r,i={x:1/0,y:1/0};for(let a of t){let t=g(n,a.rect);switch(e){case"horizontal":t.x<=i.x&&(r=a,i=t);break;case"vertical":t.y<=i.y&&(r=a,i=t)}}return r?{distance:i,hitRegion:r}:void 0}(r.orientation,i,{x:e.clientX,y:e.clientY});a&&a.distance.x<=0&&a.distance.y<=0&&function({groupElement:e,hitRegion:t,pointerEventTarget:n}){if(!m(n)||n.contains(e)||e.contains(n))return!0;if(function(e,t){let n;if(e===t)throw Error("Cannot compare node with itself");let r={a:B(e),b:B(t)};for(;r.a.at(-1)===r.b.at(-1);)n=r.a.pop(),r.b.pop();d(n,"Stacking order can only be calculated for elements with a common ancestor");let i={a:F(M(r.a)),b:F(M(r.b))};if(i.a===i.b){let e=n.childNodes,t={a:r.a.at(-1),b:r.b.at(-1)},i=e.length;for(;i--;){let n=e[i];if(n===t.a)return 1;if(n===t.b)return -1}}return Math.sign(i.a-i.b)}(n,e)>0){let i=n;for(;i;){var r;if(i.contains(e))break;if(r=i.getBoundingClientRect(),r.x<t.x+t.width&&r.x+r.width>t.x&&r.y<t.y+t.height&&r.y+r.height>t.y)return!1;i=i.parentElement}}return!0}({groupElement:r.element,hitRegion:a.hitRegion.rect,pointerEventTarget:e.target})&&n.push(a.hitRegion)}),n}function j(e,t,n=0){return Math.abs(l(e)-l(t))<=n}function G(e,t){return j(e,t)?0:e>t?1:-1}function z({overrideDisabledPanels:e,panelConstraints:t,prevSize:n,size:r}){let{collapsedSize:i=0,collapsible:a,disabled:o,maxSize:s=100,minSize:c=0}=t;return o&&!e?n:(0>G(r,c)&&(r=a&&0>G(r,(i+c)/2)?i:c),l(r=Math.min(s,r)))}function $({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:i,trigger:a}){if(j(e,0))return t;let o="imperative-api"===a,s=Object.values(t),l=Object.values(i),c=[...s],[u,h]=r;d(null!=u,"Invalid first pivot index"),d(null!=h,"Invalid second pivot index");let p=0;if("keyboard"===a){{let t=e<0?h:u,r=n[t];d(r,`Panel constraints not found for index ${t}`);let{collapsedSize:i=0,collapsible:a,minSize:o=0}=r;if(a){let n=s[t];if(d(null!=n,`Previous layout not found for panel index ${t}`),j(n,i)){let t=o-n;G(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{let t=e<0?u:h,r=n[t];d(r,`No panel constraints found for index ${t}`);let{collapsedSize:i=0,collapsible:a,minSize:o=0}=r;if(a){let n=s[t];if(d(null!=n,`Previous layout not found for panel index ${t}`),j(n,o)){let t=n-i;G(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}}else{let t=e<0?h:u,r=n[t];d(r,`Panel constraints not found for index ${t}`);let i=s[t],{collapsible:a,collapsedSize:o,minSize:l}=r;if(a&&0>G(i,l))if(e>0){let t=l-o;0>G(i+e,l)&&(e=0>=G(e,t/2)?0:t)}else{let t=l-o;0>G(i-e,l)&&(e=G(100+e,100-t/2)>0?0:-t)}}{let t=e<0?1:-1,r=e<0?h:u,i=0;for(;;){let e=s[r];if(d(null!=e,`Previous layout not found for panel index ${r}`),i+=z({overrideDisabledPanels:o,panelConstraints:n[r],prevSize:e,size:100})-e,(r+=t)<0||r>=n.length)break}let a=Math.min(Math.abs(e),Math.abs(i));e=e<0?0-a:a}{let t=e<0?u:h;for(;t>=0&&t<n.length;){let r=Math.abs(e)-Math.abs(p),i=s[t];d(null!=i,`Previous layout not found for panel index ${t}`);let a=i-r,l=z({overrideDisabledPanels:o,panelConstraints:n[t],prevSize:i,size:a});if(!j(i,l)&&(p+=i-l,c[t]=l,p.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?t--:t++}}if(function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}(l,c))return i;{let t=e<0?h:u,r=s[t];d(null!=r,`Previous layout not found for panel index ${t}`);let i=r+p,a=z({overrideDisabledPanels:o,panelConstraints:n[t],prevSize:r,size:i});if(c[t]=a,!j(a,i)){let t=i-a,r=e<0?h:u;for(;r>=0&&r<n.length;){let i=c[r];d(null!=i,`Previous layout not found for panel index ${r}`);let a=i+t,s=z({overrideDisabledPanels:o,panelConstraints:n[r],prevSize:i,size:a});if(j(i,s)||(t-=s-i,c[r]=s),j(t,0))break;e>0?r--:r++}}}if(!j(Object.values(c).reduce((e,t)=>t+e,0),100,.1))return i;let f=Object.keys(i);return c.reduce((e,t,n)=>(e[f[n]]=t,e),{})}function W(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(void 0===t[n]||0!==G(e[n],t[n]))return!1;return!0}function q({layout:e,panelConstraints:t}){let n=Object.values(e),r=[...n],i=r.reduce((e,t)=>e+t,0);if(r.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${r.map(e=>`${e}%`).join(", ")}`);if(!j(i,100)&&r.length>0)for(let e=0;e<t.length;e++){let t=r[e];d(null!=t,`No layout data found for index ${e}`);let n=100/i*t;r[e]=n}let a=0;for(let e=0;e<t.length;e++){let i=n[e];d(null!=i,`No layout data found for index ${e}`);let o=r[e];d(null!=o,`No layout data found for index ${e}`);let s=z({overrideDisabledPanels:!0,panelConstraints:t[e],prevSize:i,size:o});o!=s&&(a+=o-s,r[e]=s)}if(!j(a,0))for(let e=0;e<t.length;e++){let n=r[e];d(null!=n,`No layout data found for index ${e}`);let i=n+a,o=z({overrideDisabledPanels:!0,panelConstraints:t[e],prevSize:n,size:i});if(n!==o&&(a-=o-n,r[e]=o,j(a,0)))break}let o=Object.keys(e);return r.reduce((e,t,n)=>(e[o[n]]=t,e),{})}function V({groupId:e,panelId:t}){let n=()=>{for(let[t,{defaultLayoutDeferred:n,derivedPanelConstraints:r,layout:i,groupSize:a,separatorToPanels:o}]of x)if(t.id===e)return{defaultLayoutDeferred:n,derivedPanelConstraints:r,group:t,groupSize:a,layout:i,separatorToPanels:o};throw Error(`Group ${e} not found`)},r=()=>{let e=n().derivedPanelConstraints.find(e=>e.panelId===t);if(void 0!==e)return e;throw Error(`Panel constraints not found for Panel ${t}`)},i=()=>{let e=n().group.panels.find(e=>e.id===t);if(void 0!==e)return e;throw Error(`Layout not found for Panel ${t}`)},a=()=>{let e=n().layout[t];if(void 0!==e)return e;throw Error(`Layout not found for Panel ${t}`)},o=e=>{if(e===a())return;let{defaultLayoutDeferred:r,derivedPanelConstraints:i,group:o,groupSize:s,layout:c,separatorToPanels:u}=n(),d=q({layout:(({nextSize:e,panels:n,prevLayout:r,derivedPanelConstraints:i})=>{let o=a(),s=n.findIndex(e=>e.id===t),c=0===s,u=s===n.length-1;if(u&&e<o&&(c||n.slice(0,s).every((e,t)=>{let n=i[t];return n?.collapsible&&j(n.collapsedSize,r[n.panelId])}))){let e=n.slice(0,s).reduce((e,t)=>e+r[t.id],0);return{...r,[t]:l(100-e)}}return $({delta:u?o-e:e-o,initialLayout:r,panelConstraints:i,pivotIndices:u?[s-1,s]:[s,s+1],prevLayout:r,trigger:"imperative-api"})})({nextSize:e,panels:o.panels,prevLayout:c,derivedPanelConstraints:i}),panelConstraints:i});W(c,d)||O(o,{defaultLayoutDeferred:r,derivedPanelConstraints:i,groupSize:s,layout:d,separatorToPanels:u})};return{collapse:()=>{let{collapsible:e,collapsedSize:t}=r(),{mutableValues:n}=i(),s=a();e&&s!==t&&(n.expandToSize=s,o(t))},expand:()=>{let{collapsible:e,collapsedSize:t,minSize:n}=r(),{mutableValues:s}=i(),l=a();if(e&&l===t){let e=s.expandToSize??n;0===e&&(e=1),o(e)}},getSize:()=>{let{group:e}=n(),t=a(),{element:r}=i();return{asPercentage:t,inPixels:"horizontal"===e.orientation?r.offsetWidth:r.offsetHeight}},isCollapsed:()=>{let{collapsible:e,collapsedSize:t}=r(),n=a();return e&&j(t,n)},resize:e=>{let{group:t}=n(),{element:r}=i(),a=c({group:t});o(l(s({groupSize:a,panelElement:r,styleProp:e})/a*100))}}}function Y(e){e.defaultPrevented||U(e,x).forEach(t=>{if(t.separator&&!t.separator.disableDoubleClick){let n=t.panels.find(e=>void 0!==e.panelConstraints.defaultSize);if(n){let r=n.panelConstraints.defaultSize,i=V({groupId:t.group.id,panelId:n.id});i&&void 0!==r&&(i.resize(r),e.preventDefault())}}})}function K(e){for(let[t]of x)if(t.separators.some(t=>t.element===e))return t;throw Error("Could not find parent Group for separator element")}function X({groupId:e}){let t=()=>{for(let[t,n]of x)if(t.id===e)return{group:t,...n};throw Error(`Could not find Group with id "${e}"`)};return{getLayout(){let{defaultLayoutDeferred:e,layout:n}=t();return e?{}:n},setLayout(e){let{defaultLayoutDeferred:n,derivedPanelConstraints:r,group:i,groupSize:a,layout:o,separatorToPanels:s}=t(),l=q({layout:e,panelConstraints:r});return n?o:(W(o,l)||O(i,{defaultLayoutDeferred:n,derivedPanelConstraints:r,groupSize:a,layout:l,separatorToPanels:s}),l)}}}function Q(e,t){let n=K(e),r=I(n.id,!0),i=n.separators.find(t=>t.element===e);d(i,"Matching separator not found");let a=r.separatorToPanels.get(i);d(a,"Matching panels not found");let o=a.map(e=>n.panels.indexOf(e)),s=X({groupId:n.id}).getLayout(),l=q({layout:$({delta:t,initialLayout:s,panelConstraints:r.derivedPanelConstraints,pivotIndices:o,prevLayout:s,trigger:"keyboard"}),panelConstraints:r.derivedPanelConstraints});W(s,l)||O(n,{defaultLayoutDeferred:r.defaultLayoutDeferred,derivedPanelConstraints:r.derivedPanelConstraints,groupSize:r.groupSize,layout:l,separatorToPanels:r.separatorToPanels},{isUserInteraction:!0})}function Z(e){if(e.defaultPrevented)return;let t=e.currentTarget,n=K(t);if(!n.disabled)switch(e.key){case"ArrowDown":e.preventDefault(),"vertical"===n.orientation&&Q(t,5);break;case"ArrowLeft":e.preventDefault(),"horizontal"===n.orientation&&Q(t,-5);break;case"ArrowRight":e.preventDefault(),"horizontal"===n.orientation&&Q(t,5);break;case"ArrowUp":e.preventDefault(),"vertical"===n.orientation&&Q(t,-5);break;case"End":e.preventDefault(),Q(t,100);break;case"Enter":{e.preventDefault();let n=K(t),{derivedPanelConstraints:r,layout:i,separatorToPanels:a}=I(n.id,!0),o=n.separators.find(e=>e.element===t);d(o,"Matching separator not found");let s=a.get(o);d(s,"Matching panels not found");let l=s[0],c=r.find(e=>e.panelId===l.id);if(d(c,"Panel metadata not found"),c.collapsible){let e=i[l.id];Q(t,(c.collapsedSize===e?n.mutableState.expandedPanelSizes[l.id]??c.minSize:c.collapsedSize)-e)}break}case"F6":{e.preventDefault();let n=K(t).separators.map(e=>e.element),r=Array.from(n).findIndex(t=>t===e.currentTarget);d(null!==r,"Index not found");let i=e.shiftKey?r>0?r-1:n.length-1:r+1<n.length?r+1:0;n[i].focus({preventScroll:!0});break}case"Home":e.preventDefault(),Q(t,-100)}}function J(e){if(e.defaultPrevented||"mouse"===e.pointerType&&e.button>0)return;let t=x,n=U(e,t),r=new Map,i=!1;n.forEach(e=>{e.separator&&(i||(i=!0,e.separator.element.focus({focusVisible:!1,preventScroll:!0})));let n=t.get(e.group);n&&r.set(e.group,n.layout)}),v({cursorFlags:0,hitRegions:n,initialLayoutMap:r,pointerDownAtPoint:{x:e.clientX,y:e.clientY},state:"active"}),n.length&&e.preventDefault()}function ee({document:e,event:t,hitRegions:n,initialLayoutMap:r,mountedGroups:i,pointerDownAtPoint:a,prevCursorFlags:o}){var s;let l,c,u=0;n.forEach(e=>{let{group:n,groupSize:o}=e,{orientation:s,panels:l}=n,{disableCursor:c}=n.mutableState,d=0;d=a?"horizontal"===s?(t.clientX-a.x)/o*100:(t.clientY-a.y)/o*100:"horizontal"===s?t.clientX<0?-100:100:t.clientY<0?-100:100;let h=r.get(n),p=i.get(n);if(!h||!p)return;let{defaultLayoutDeferred:f,derivedPanelConstraints:m,groupSize:g,layout:b,separatorToPanels:E}=p;if(m&&b&&E){let t=$({delta:d,initialLayout:h,panelConstraints:m,pivotIndices:e.panels.map(e=>l.indexOf(e)),prevLayout:b,trigger:"mouse-or-touch"});if(W(t,b)){if(0!==d&&!c)switch(s){case"horizontal":u|=d<0?1:2;break;case"vertical":u|=d<0?4:8}}else O(e.group,{defaultLayoutDeferred:f,derivedPanelConstraints:m,groupSize:g,layout:t,separatorToPanels:E})}});let d=0;0===t.movementX?d|=3&o:d|=3&u,0===t.movementY?d|=12&o:d|=12&u,s=d,l=y,(c={...y}).cursorFlags=s,y=c,T.emit("change",{prev:l,next:c}),_(e)}function et(e){let t=x,n=y;"active"===n.state&&ee({document:e.currentTarget,event:e,hitRegions:n.hitRegions,initialLayoutMap:n.initialLayoutMap,mountedGroups:t,prevCursorFlags:n.cursorFlags})}function en(e){if(e.defaultPrevented)return;let t=y,n=x;if("active"===t.state){if(0===e.buttons){v({cursorFlags:0,state:"inactive"}),t.hitRegions.forEach(e=>{let t=I(e.group.id,!0);O(e.group,t,{isUserInteraction:!0})});return}for(let n of t.hitRegions)if(n.separator){let{element:t}=n.separator;t.hasPointerCapture?.(e.pointerId)||t.setPointerCapture?.(e.pointerId)}ee({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:n,pointerDownAtPoint:t.pointerDownAtPoint,prevCursorFlags:t.cursorFlags})}else{let r=U(e,n);0===r.length?"inactive"!==t.state&&v({cursorFlags:0,state:"inactive"}):v({cursorFlags:0,hitRegions:r,state:"hover"}),_(e.currentTarget)}}function er(e){e.relatedTarget instanceof HTMLIFrameElement&&"hover"===y.state&&v({cursorFlags:0,state:"inactive"})}function ei(e){e.defaultPrevented||("mouse"!==e.pointerType||!(e.button>0))&&D(e.currentTarget)&&e.preventDefault()}function ea(e){let t=0,n=0,r={};for(let i of e)if(void 0!==i.defaultSize){t++;let e=l(i.defaultSize);n+=e,r[i.panelId]=e}else r[i.panelId]=void 0;let i=e.length-t;if(0!==i){let t=l((100-n)/i);for(let n of e)void 0===n.defaultSize&&(r[n.panelId]=t)}return r}let eo=new Map;function es(e){let t=(0,o.useId)();return`${e??t}`}let el="u">typeof window?o.useLayoutEffect:o.useEffect;function ec(e){let t=(0,o.useRef)(e);return el(()=>{t.current=e},[e]),(0,o.useCallback)((...e)=>t.current?.(...e),[t])}function eu(...e){return ec(t=>{e.forEach(e=>{if(e)switch(typeof e){case"function":e(t);break;case"object":e.current=t}})})}function ed(e){let t=(0,o.useRef)({...e});return el(()=>{for(let n in e)t.current[n]=e[n]},[e]),t.current}let eh=(0,o.createContext)(null);function ep({children:e,className:t,defaultLayout:n,disableCursor:r,disabled:i,elementRef:s,groupRef:p,id:f,onLayoutChange:m,onLayoutChanged:g,orientation:E="horizontal",resizeTargetMinimumSize:T={coarse:20,fine:10},style:v,...S}){let A,C=(0,o.useRef)({onLayoutChange:{},onLayoutChanged:{}}),_=ec(e=>{W(C.current.onLayoutChange,e)||(C.current.onLayoutChange=e,m?.(e))}),w=ec((e,t)=>{W(C.current.onLayoutChanged,e)||(C.current.onLayoutChanged=e,g?.(e,{isUserInteraction:t}))}),D=es(f),L=(0,o.useRef)(null),[M,F]=function(){let[e,t]=(0,o.useState)({});return[e,(0,o.useCallback)(()=>t({}),[])]}(),B=(0,o.useRef)({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:T,separators:[]}),H=eu(L,s);A=(0,o.useRef)({getLayout:()=>({}),setLayout:k}),(0,o.useImperativeHandle)(p,()=>A.current,[]),el(()=>{Object.assign(A.current,X({groupId:D}))});let U=ec((e,t)=>{let r=y,i=N(e),a=I(e);if(a){let e=!1;return"active"===r.state&&(e=r.hitRegions.some(e=>e.group===i)),{flexGrow:a.layout[t]??1,pointerEvents:e?"none":void 0}}if(n?.[t])return{flexGrow:n?.[t]}}),G=ed({defaultLayout:n,disableCursor:r}),z=(0,o.useMemo)(()=>({get disableCursor(){return!!G.disableCursor},getPanelStyles:U,id:D,orientation:E,registerPanel:e=>{let t=B.current;return t.panels=h(E,[...t.panels,e]),F(),()=>{t.panels=t.panels.filter(t=>t!==e),F()}},registerSeparator:e=>{let t=B.current;return t.separators=h(E,[...t.separators,e]),F(),()=>{t.separators=t.separators.filter(t=>t!==e),F()}},updatePanelProps:(e,{disabled:t})=>{let n=B.current.panels.find(t=>t.id===e);n&&(n.panelConstraints.disabled=t);let r=N(D),i=I(D);r&&i&&O(r,{...i,derivedPanelConstraints:u(r)})},updateSeparatorProps:(e,{disabled:t,disableDoubleClick:n})=>{let r=B.current.separators.find(t=>t.id===e);r&&(r.disabled=t,r.disableDoubleClick=n)}}),[U,D,F,E,G]),$=(0,o.useRef)(null);return el(()=>{let e,t,n,r,a,o,s,h,p,f,m,g,T,v=L.current;if(null===v)return;let k=B.current;if(void 0!==G.defaultLayout&&Object.keys(G.defaultLayout).length===k.panels.length)for(let t of(e={},k.panels)){let n=G.defaultLayout[t.id];void 0!==n&&(e[t.id]=n)}let S={disabled:!!i,element:v,id:D,mutableState:{defaultLayout:e,disableCursor:!!G.disableCursor,expandedPanelSizes:B.current.lastExpandedPanelSizes,layouts:B.current.layouts},orientation:E,panels:k.panels,resizeTargetMinimumSize:k.resizeTargetMinimumSize,separators:k.separators};$.current=S;let A=(t=!0,d(S.element.ownerDocument.defaultView,"Cannot register an unmounted Group"),n=S.element.ownerDocument.defaultView.ResizeObserver,r=new Set,a=new Set,(o=new n(e=>{for(let n of e){let{borderBoxSize:e,target:r}=n;if(r===S.element){if(t){let e=c({group:S});if(0===e)return;let t=I(S.id);if(!t)return;let n=u(S),r=t.defaultLayoutDeferred?ea(n):t.layout,i=q({layout:function({group:e,nextGroupSize:t,prevGroupSize:n,prevLayout:r}){if(n<=0||t<=0||n===t)return r;let i=0,a=0,o=!1,s=new Map,c=[];for(let u of e.panels){let e=r[u.id]??0;if("preserve-pixel-size"===u.panelConstraints.groupResizeBehavior){o=!0;let r=l(e/100*n/t*100);s.set(u.id,r),i+=r}else c.push(u.id),a+=e}if(!o||0===c.length)return r;let u=100-i,d={...r};if(s.forEach((e,t)=>{d[t]=e}),a>0)for(let e of c){let t=r[e]??0;d[e]=l(t/a*u)}else{let e=l(u/c.length);for(let t of c)d[t]=e}return d}({group:S,nextGroupSize:e,prevGroupSize:t.groupSize,prevLayout:r}),panelConstraints:n});if(!t.defaultLayoutDeferred&&W(t.layout,i)&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}(t.derivedPanelConstraints,n)&&t.groupSize===e)return;O(S,{defaultLayoutDeferred:!1,derivedPanelConstraints:n,groupSize:e,layout:i,separatorToPanels:t.separatorToPanels})}}else!function(e,t,n){if(!n[0])return;let r=e.panels.find(e=>e.element===t);if(!r||!r.onResize)return;let i=c({group:e}),a="horizontal"===e.orientation?r.element.offsetWidth:r.element.offsetHeight,o=r.mutableValues.prevSize,s={asPercentage:l(a/i*100),inPixels:a};r.mutableValues.prevSize=s,r.onResize(s,r.id,o)}(S,r,e)}})).observe(S.element),S.panels.forEach(e=>{d(!r.has(e.id),`Panel ids must be unique; id "${e.id}" was used more than once`),r.add(e.id),e.onResize&&o.observe(e.element)}),s=c({group:S}),h=u(S),p=S.panels.map(({id:e})=>e).join(","),(f=S.mutableState.defaultLayout)&&(function(e,t){let n=e.map(e=>e.id),r=Object.keys(t);if(n.length!==r.length)return!1;for(let e of n)if(!r.includes(e))return!1;return!0}(S.panels,f)||(f=void 0)),m=q({layout:S.mutableState.layouts[p]??f??ea(h),panelConstraints:h}),g=S.element.ownerDocument,eo.set(g,(eo.get(g)??0)+1),T=new Map,b(S).forEach(e=>{e.separator&&T.set(e.separator,e.panels)}),O(S,{defaultLayoutDeferred:0===s,derivedPanelConstraints:h,groupSize:s,layout:m,separatorToPanels:T}),S.separators.forEach(e=>{d(!a.has(e.id),`Separator ids must be unique; id "${e.id}" was used more than once`),a.add(e.id),e.element.addEventListener("keydown",Z)}),1===eo.get(g)&&(g.addEventListener("contextmenu",P,!0),g.addEventListener("dblclick",Y,!0),g.addEventListener("pointerdown",J,!0),g.addEventListener("pointerleave",et),g.addEventListener("pointermove",en),g.addEventListener("pointerout",er),g.addEventListener("pointerup",ei,!0)),function(){t=!1,eo.set(g,Math.max(0,(eo.get(g)??0)-1)),(x=new Map(x)).delete(S),S.separators.forEach(e=>{e.element.removeEventListener("keydown",Z)}),eo.get(g)||(g.removeEventListener("contextmenu",P,!0),g.removeEventListener("dblclick",Y,!0),g.removeEventListener("pointerdown",J,!0),g.removeEventListener("pointerleave",et),g.removeEventListener("pointermove",en),g.removeEventListener("pointerout",er),g.removeEventListener("pointerup",ei,!0)),o.disconnect()}),{defaultLayoutDeferred:C,derivedPanelConstraints:N,layout:M}=I(S.id,!0);!C&&N.length>0&&(_(M),w(M,!1));let F=R(D,e=>{let{defaultLayoutDeferred:t,derivedPanelConstraints:n,layout:r}=e.next;if(t||0===n.length)return;let i=S.panels.map(({id:e})=>e).join(",");S.mutableState.layouts[i]=r,n.forEach(t=>{if(t.collapsible){let{layout:n}=e.prev??{};if(n){let e=j(t.collapsedSize,r[t.panelId]),i=j(t.collapsedSize,n[t.panelId]);e&&!i&&(S.mutableState.expandedPanelSizes[t.panelId]=n[t.panelId])}}});let a="active"!==y.state;_(r),a&&w(r,e.isUserInteraction)});return()=>{$.current=null,A(),F()}},[i,D,w,_,E,M,G]),(0,o.useEffect)(()=>{let e=$.current;e&&(e.mutableState.defaultLayout=n,e.mutableState.disableCursor=!!r)}),(0,a.jsx)(eh.Provider,{value:z,children:(0,a.jsx)("div",{...S,className:t,"data-group":!0,"data-testid":D,id:D,ref:H,style:{height:"100%",width:"100%",overflow:"hidden",...v,display:"flex",flexDirection:"horizontal"===E?"row":"column",flexWrap:"nowrap",touchAction:"horizontal"===E?"pan-y":"pan-x"},children:e})})}function ef(){return(0,o.useRef)(null)}function em(){let e=(0,o.useContext)(eh);return d(e,"Group Context not found; did you render a Panel or Separator outside of a Group?"),e}function eg({children:e,className:t,collapsedSize:n="0%",collapsible:r=!1,defaultSize:i,disabled:s,elementRef:l,groupResizeBehavior:c="preserve-relative-size",id:u,maxSize:d="100%",minSize:h="0%",onResize:p,panelRef:f,style:m,...g}){let b,E=!!u,y=es(u),T=ed({disabled:s}),v=(0,o.useRef)(null),k=eu(v,l),{getPanelStyles:A,id:C,orientation:_,registerPanel:x,updatePanelProps:w}=em(),N=null!==p,I=ec((e,t,n)=>{p?.(e,u,n)});el(()=>{let e=v.current;if(null!==e)return x({element:e,id:y,idIsStable:E,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:N?I:void 0,panelConstraints:{groupResizeBehavior:c,collapsedSize:n,collapsible:r,defaultSize:i,disabled:T.disabled,maxSize:d,minSize:h}})},[c,n,r,i,N,y,E,d,h,I,x,T]),(0,o.useEffect)(()=>{w(y,{disabled:s})},[s,y,w]),function(e,t){let{id:n}=em(),r=(0,o.useRef)({collapse:S,expand:S,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:S});(0,o.useImperativeHandle)(t,()=>r.current,[]),el(()=>{Object.assign(r.current,V({groupId:n,panelId:e}))})}(y,f);let O=()=>{let e=A(C,y);if(e)return JSON.stringify(e)},D=(0,o.useSyncExternalStore)(e=>R(C,e),O,O);return b=D?JSON.parse(D):void 0!==i?{flexGrow:void 0,flexShrink:void 0,flexBasis:i}:{flexGrow:1},(0,a.jsx)("div",{...g,"data-disabled":s||void 0,"data-panel":!0,"data-testid":y,id:y,ref:k,style:{...eb,display:"flex",flexBasis:0,flexShrink:1,overflow:"visible",...b},children:(0,a.jsx)("div",{className:t,style:{maxHeight:"100%",maxWidth:"100%",flexGrow:1,overflow:"auto",...m,touchAction:"horizontal"===_?"pan-y":"pan-x"},children:e})})}ep.displayName="Group",eg.displayName="Panel";let eb={minHeight:0,maxHeight:"100%",height:"auto",minWidth:0,maxWidth:"100%",width:"auto",border:"none",borderWidth:0,padding:0,margin:0};function eE(){return(0,o.useRef)(null)}function ey({children:e,className:t,disabled:n,disableDoubleClick:r,elementRef:i,id:s,style:l,...c}){let u,d,h=es(s),p=ed({disabled:n,disableDoubleClick:r}),[f,m]=(0,o.useState)({}),[g,b]=(0,o.useState)("inactive"),[E,y]=(0,o.useState)(!1),v=(0,o.useRef)(null),k=eu(v,i),{disableCursor:S,id:A,orientation:C,registerSeparator:_,updateSeparatorProps:x}=em();return el(()=>{let e=v.current;if(null!==e){var t;let n={disabled:p.disabled,disableDoubleClick:p.disableDoubleClick,element:e,id:h},r=_(n),i=(t=e=>{b("inactive"!==e.next.state&&e.next.hitRegions.some(e=>e.separator===n)?e.next.state:"inactive")},T.addListener("change",t)),a=R(A,e=>{let{derivedPanelConstraints:t,layout:r,separatorToPanels:i}=e.next,a=i.get(n);if(a){let e=a[0],n=a.indexOf(e);m(function({layout:e,panelConstraints:t,panelId:n,panelIndex:r}){let i,a,o=e[n],s=t.find(e=>e.panelId===n);if(s){let l=s.maxSize,c=s.collapsible?s.collapsedSize:s.minSize,u=[r,r+1];a=q({layout:$({delta:c-o,initialLayout:e,panelConstraints:t,pivotIndices:u,prevLayout:e}),panelConstraints:t})[n],i=q({layout:$({delta:l-o,initialLayout:e,panelConstraints:t,pivotIndices:u,prevLayout:e}),panelConstraints:t})[n]}return{valueControls:n,valueMax:i,valueMin:a,valueNow:o}}({layout:r,panelConstraints:t,panelId:e.id,panelIndex:n}))}});return()=>{i(),a(),r()}}},[A,h,_,p]),(0,o.useEffect)(()=>{x(h,{disabled:n,disableDoubleClick:r})},[n,r,h,x]),n&&!S&&(u="not-allowed"),d=n?"disabled":"active"===g?"active":E?"focus":g,(0,a.jsx)("div",{...c,"aria-controls":f.valueControls,"aria-disabled":n||void 0,"aria-orientation":"horizontal"===C?"vertical":"horizontal","aria-valuemax":f.valueMax,"aria-valuemin":f.valueMin,"aria-valuenow":f.valueNow,children:e,className:t,"data-separator":d,"data-testid":h,id:h,onBlur:()=>y(!1),onFocus:()=>y(!0),ref:k,role:"separator",style:{flexBasis:"auto",cursor:u,...l,flexGrow:0,flexShrink:0,touchAction:"none"},tabIndex:n?void 0:0})}ey.displayName="Separator"},55628:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("text-wrap",[["path",{d:"m16 16-3 3 3 3",key:"117b85"}],["path",{d:"M3 12h14.5a1 1 0 0 1 0 7H13",key:"18xa6z"}],["path",{d:"M3 19h6",key:"1ygdsz"}],["path",{d:"M3 5h18",key:"1u36vt"}]])},55947:(e,t,n)=>{"use strict";n.d(t,{qy:()=>b,JW:()=>E});class r{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function i(e,t){let n={},i={};for(let t of e)Object.assign(n,t.property),Object.assign(i,t.normal);return new r(n,i,t)}r.prototype.normal={},r.prototype.property={},r.prototype.space=void 0;var a=n(29198),o=n(25488);function s(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let s=new o.E(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[(0,a.S)(r)]=r,n[(0,a.S)(s.attribute)]=r}return new r(t,n,e.space)}var l=n(58789);let c=s({properties:{ariaActiveDescendant:null,ariaAtomic:l.booleanish,ariaAutoComplete:null,ariaBusy:l.booleanish,ariaChecked:l.booleanish,ariaColCount:l.number,ariaColIndex:l.number,ariaColSpan:l.number,ariaControls:l.spaceSeparated,ariaCurrent:null,ariaDescribedBy:l.spaceSeparated,ariaDetails:null,ariaDisabled:l.booleanish,ariaDropEffect:l.spaceSeparated,ariaErrorMessage:null,ariaExpanded:l.booleanish,ariaFlowTo:l.spaceSeparated,ariaGrabbed:l.booleanish,ariaHasPopup:null,ariaHidden:l.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:l.spaceSeparated,ariaLevel:l.number,ariaLive:null,ariaModal:l.booleanish,ariaMultiLine:l.booleanish,ariaMultiSelectable:l.booleanish,ariaOrientation:null,ariaOwns:l.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:l.number,ariaPressed:l.booleanish,ariaReadOnly:l.booleanish,ariaRelevant:null,ariaRequired:l.booleanish,ariaRoleDescription:l.spaceSeparated,ariaRowCount:l.number,ariaRowIndex:l.number,ariaRowSpan:l.number,ariaSelected:l.booleanish,ariaSetSize:l.number,ariaSort:null,ariaValueMax:l.number,ariaValueMin:l.number,ariaValueNow:l.number,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function u(e,t){return t in e?e[t]:t}function d(e,t){return u(e,t.toLowerCase())}let h=s({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:l.commaSeparated,acceptCharset:l.spaceSeparated,accessKey:l.spaceSeparated,action:null,allow:null,allowFullScreen:l.boolean,allowPaymentRequest:l.boolean,allowUserMedia:l.boolean,alpha:l.boolean,alt:null,as:null,async:l.boolean,autoCapitalize:null,autoComplete:l.spaceSeparated,autoFocus:l.boolean,autoPlay:l.boolean,blocking:l.spaceSeparated,capture:null,charSet:null,checked:l.boolean,cite:null,className:l.spaceSeparated,closedBy:null,colorSpace:null,cols:l.number,colSpan:l.number,command:null,commandFor:null,content:null,contentEditable:l.booleanish,controls:l.boolean,controlsList:l.spaceSeparated,coords:l.number|l.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:l.boolean,defer:l.boolean,dir:null,dirName:null,disabled:l.boolean,download:l.overloadedBoolean,draggable:l.booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:l.boolean,formTarget:null,headers:l.spaceSeparated,height:l.number,hidden:l.overloadedBoolean,high:l.number,href:null,hrefLang:null,htmlFor:l.spaceSeparated,httpEquiv:l.spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:l.boolean,inputMode:null,integrity:null,is:null,isMap:l.boolean,itemId:null,itemProp:l.spaceSeparated,itemRef:l.spaceSeparated,itemScope:l.boolean,itemType:l.spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:l.boolean,low:l.number,manifest:null,max:null,maxLength:l.number,media:null,method:null,min:null,minLength:l.number,multiple:l.boolean,muted:l.boolean,name:null,nonce:null,noModule:l.boolean,noValidate:l.boolean,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:l.boolean,optimum:l.number,pattern:null,ping:l.spaceSeparated,placeholder:null,playsInline:l.boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:l.boolean,referrerPolicy:null,rel:l.spaceSeparated,required:l.boolean,reversed:l.boolean,rows:l.number,rowSpan:l.number,sandbox:l.spaceSeparated,scope:null,scoped:l.boolean,seamless:l.boolean,selected:l.boolean,shadowRootClonable:l.boolean,shadowRootCustomElementRegistry:l.boolean,shadowRootDelegatesFocus:l.boolean,shadowRootMode:null,shadowRootSerializable:l.boolean,shape:null,size:l.number,sizes:null,slot:null,span:l.number,spellCheck:l.booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:l.number,step:null,style:null,tabIndex:l.number,target:null,title:null,translate:null,type:null,typeMustMatch:l.boolean,useMap:null,value:l.booleanish,width:l.number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:l.spaceSeparated,axis:null,background:null,bgColor:null,border:l.number,borderColor:null,bottomMargin:l.number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:l.boolean,declare:l.boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:l.number,leftMargin:l.number,link:null,longDesc:null,lowSrc:null,marginHeight:l.number,marginWidth:l.number,noResize:l.boolean,noHref:l.boolean,noShade:l.boolean,noWrap:l.boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:l.number,rules:null,scheme:null,scrolling:l.booleanish,standby:null,summary:null,text:null,topMargin:l.number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:l.number,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:l.boolean,disablePictureInPicture:l.boolean,disableRemotePlayback:l.boolean,exportParts:l.commaSeparated,part:l.spaceSeparated,prefix:null,property:null,results:l.number,security:null,unselectable:null},space:"html",transform:d}),p=s({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:l.commaOrSpaceSeparated,accentHeight:l.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:l.number,amplitude:l.number,arabicForm:null,ascent:l.number,attributeName:null,attributeType:null,azimuth:l.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:l.number,by:null,calcMode:null,capHeight:l.number,className:l.spaceSeparated,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:l.number,diffuseConstant:l.number,direction:null,display:null,dur:null,divisor:l.number,dominantBaseline:null,download:l.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:l.number,enableBackground:null,end:null,event:null,exponent:l.number,externalResourcesRequired:null,fill:null,fillOpacity:l.number,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:l.commaSeparated,g2:l.commaSeparated,glyphName:l.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:l.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:l.number,horizOriginX:l.number,horizOriginY:l.number,id:null,ideographic:l.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:l.number,k:l.number,k1:l.number,k2:l.number,k3:l.number,k4:l.number,kernelMatrix:l.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:l.number,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:l.number,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:l.number,overlineThickness:l.number,paintOrder:null,panose1:null,path:null,pathLength:l.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:l.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:l.number,pointsAtY:l.number,pointsAtZ:l.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:l.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:l.commaOrSpaceSeparated,rev:l.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:l.commaOrSpaceSeparated,requiredFeatures:l.commaOrSpaceSeparated,requiredFonts:l.commaOrSpaceSeparated,requiredFormats:l.commaOrSpaceSeparated,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:l.number,specularExponent:l.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:l.number,strikethroughThickness:l.number,string:null,stroke:null,strokeDashArray:l.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:l.number,strokeOpacity:l.number,strokeWidth:null,style:null,surfaceScale:l.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:l.commaOrSpaceSeparated,tabIndex:l.number,tableValues:null,target:null,targetX:l.number,targetY:l.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:l.commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:l.number,underlineThickness:l.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:l.number,values:null,vAlphabetic:l.number,vMathematical:l.number,vectorEffect:null,vHanging:l.number,vIdeographic:l.number,version:null,vertAdvY:l.number,vertOriginX:l.number,vertOriginY:l.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:l.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:u}),f=s({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),m=s({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:d}),g=s({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),b=i([c,h,f,m,g],"html"),E=i([c,p,f,m,g],"svg")},56227:(e,t,n)=>{"use strict";n.d(t,{h:()=>d,s:()=>h});var r=n(55947),i=n(38105);let a=/[#.]/g;var o=n(64752),s=n(29198),l=n(13766);function c(e,t,n){let r=n?function(e){let t=new Map;for(let n of e)t.set(n.toLowerCase(),n);return t}(n):void 0;return function(n,s,...c){let d;if(null==n)d={type:"root",children:[]},c.unshift(s);else{let h=(d=function(e,t){let n,r,i=e||"",o={},s=0;for(;s<i.length;){a.lastIndex=s;let e=a.exec(i),t=i.slice(s,e?e.index:i.length);t&&(n?"#"===n?o.id=t:Array.isArray(o.className)?o.className.push(t):o.className=[t]:r=t,s+=t.length),e&&(n=e[0],s++)}return{type:"element",tagName:r||t||"div",properties:o,children:[]}}(n,t)).tagName.toLowerCase(),p=r?r.get(h):void 0;if(d.tagName=p||h,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;for(let t of Object.keys(e)){let n=e[t];if(n&&"object"==typeof n){if(!Array.isArray(n))return!0;for(let e of n)if("number"!=typeof e&&"string"!=typeof e)return!0}}return!!("children"in e&&Array.isArray(e.children))}(s))c.unshift(s);else for(let[t,n]of Object.entries(s))!function(e,t,n,r){let a,s=(0,o.I)(e,n);if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;a=r}else a="boolean"==typeof r?r:"string"==typeof r?s.spaceSeparated?(0,l.q)(r):s.commaSeparated?(0,i.q)(r):s.commaOrSpaceSeparated?(0,l.q)((0,i.q)(r).join(" ")):u(s,s.property,r):Array.isArray(r)?[...r]:"style"===s.property?function(e){let t=[];for(let[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}(r):String(r);if(Array.isArray(a)){let e=[];for(let t of a)e.push(u(s,s.property,t));a=e}"className"===s.property&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[s.property]=a}}(e,d.properties,t,n)}for(let e of c)!function e(t,n){if(null==n);else if("number"==typeof n||"string"==typeof n)t.push({type:"text",value:String(n)});else if(Array.isArray(n))for(let r of n)e(t,r);else if("object"==typeof n&&"type"in n)"root"===n.type?e(t,n.children):t.push(n);else throw Error("Expected node, nodes, or string, got `"+n+"`")}(d.children,e);return"element"===d.type&&"template"===d.tagName&&(d.content={type:"root",children:d.children},d.children=[]),d}}function u(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||(0,s.S)(n)===(0,s.S)(t)))return!0}return n}let d=c(r.qy,"div"),h=c(r.JW,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"])},57185:(e,t,n)=>{"use strict";n.d(t,{V:()=>a,y:()=>o});var r=n(80417),i=n(69266);let a=i.createContext(void 0);function o(){let e=i.useContext(a);if(void 0===e)throw Error((0,r.A)(32));return e}},57284:(e,t,n)=>{"use strict";n.d(t,{H:()=>c});var r=n(69266),i=n(77221),a=n(69611),o=n(79621),s=n(53402),l=n(27944);let c=r.forwardRef(function(e,t){let{render:n,className:r,style:c,disabled:u=!1,nativeButton:d=!0,...h}=e,p=(0,i.P)(),f=p.useState("open"),{getButtonProps:m,buttonRef:g}=(0,o.s)({disabled:u,native:d});return(0,a.o)("button",e,{state:{disabled:u},ref:[t,g],props:[{onClick:function(e){f&&p.setOpen(!1,(0,s.d)(l.SR,e.nativeEvent))}},h,m]})})},57445:(e,t,n)=>{"use strict";let r,i,a,o;n.d(t,{h:()=>e_});let s="emphasisSequence",l="strongSequence";var c,u=n(94703);function d(e){return!!(e&&e>=55296&&e<=56319)}function h(e){return!!(e&&e>=56320&&e<=57343)}function p(e,t,n){if(t._bufferIndex<2)return e;let r=n({start:{...t,_bufferIndex:t._bufferIndex-2},end:t}).codePointAt(0);return r&&r>=65536?r:e}var f=class{cachedValue=void 0;constructor(e,t,n){this.previousCode=e,this.nowPoint=t,this.sliceSerialize=n}value(){return void 0===this.cachedValue&&(this.cachedValue=function(e,t,n){let r=e>=65536?2:1;if(t._bufferIndex<1+r)return null;let i=t._bufferIndex-r-2,a=n({start:{...t,_bufferIndex:i>=0?i:0},end:{...t,_bufferIndex:t._bufferIndex-r}}),o=a.charCodeAt(a.length-1);if(Number.isNaN(o))return null;if(a.length<2||o<56320||57343<o)return o;let s=a.codePointAt(0);return s&&s>=65536?s:o}(this.previousCode,this.nowPoint,this.sliceSerialize)),this.cachedValue}};function m(e,t,n){let r=n({start:t,end:{...t,_bufferIndex:t._bufferIndex+2}}).codePointAt(0);return r&&r>=65536?r:e}let g=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],b=[12288,12288,65281,65376,65504,65510],E=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],y=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],T=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141],v=(e,t)=>{let n=0,r=Math.floor(e.length/2)-1;for(;n<=r;){let i=Math.floor((n+r)/2),a=2*i;if(t<e[a])r=i-1;else{if(!(t>e[a+1]))return!0;n=i+1}}return!1},[k,S]=function(e){let t=e[0],n=e[1];for(let r=0;r<e.length;r+=2){let i=e[r],a=e[r+1];if(19968>=i&&19968<=a)return[i,a];a-i>n-t&&(t=i,n=a)}return[t,n]}(T),A=_(/\p{P}|\p{S}/u),C=_(/\s/);function _(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCodePoint(t))}}function x(e){return!!(1&e)}function w(e){return(e&r.cjkPunctuation)==2}function N(e){return!!(e&r.cjk)}function I(e){return!!(e&r.cjkOrIvs)}function R(e){return e===r.nonEmojiGeneralUseVS}function O(e){return!!(e&r.spaceOrPunctuation)}var D=n(1052);function P(e){if(null===e||(0,D.Ee)(e)||C(e))return 1;let t=0;if(e>=4352){if(null!==e&&e>=65024&&e<=65038)return r.nonEmojiGeneralUseVS;switch(function(e){if(!e||e<4352)return!1;switch(function(e){if(!Number.isSafeInteger(e))throw TypeError(`Expected a code point, got \`${typeof e}\`.`);return function(e){return!(e<161)&&!(e>1114109)&&v(g,e)?"ambiguous":!(e<12288)&&!(e>65510)&&v(b,e)?"fullwidth":!(e<8361)&&!(e>65518)&&v(E,e)?"halfwidth":!(e<32)&&!(e>10630)&&v(y,e)?"narrow":e>=k&&e<=S||!(e<4352)&&!(e>262141)&&v(T,e)?"wide":"neutral"}(e)}(e)){case"fullwidth":case"halfwidth":return!0;case"wide":return!/^\p{Emoji_Presentation}/u.test(String.fromCodePoint(e));case"narrow":return!1;case"ambiguous":return 917760<=e&&e<=917999&&null;case"neutral":return/^\p{sc=Hangul}/u.test(String.fromCodePoint(e))}}(e)){case null:return r.ivs;case!0:t|=r.cjk}}return A(e)&&(t|=2),t}function L(e,t,n){if(!R(e))return e;let i=t(),a=P(i);return!i||x(a)?e:65025===n&&i&&!(i<8216)&&(8216===i||8217===i||8220===i||8221===i)?r.cjkPunctuation:a&~r.ivs}(c=r||(r={})).spaceOrPunctuation=3,c.cjk=4096,c.cjkPunctuation=4098,c.ivs=8192,c.cjkOrIvs=12288,c.nonEmojiGeneralUseVS=16384,c.variationSelector=24576,c.ivsToCjkRightShift=1;var M=n(12835),F=n(37947);let B={name:"attention",resolveAll:function(e,t){let n,r,i,a,o,c,d,h,p=-1;for(;++p<e.length;)if("enter"===e[p][0]&&"attentionSequence"===e[p][1].type&&e[p][1]._close){for(n=p;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[p][1]).charCodeAt(0)){if((e[n][1]._close||e[p][1]._open)&&(e[p][1].end.offset-e[p][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[p][1].end.offset-e[p][1].start.offset)%3))continue;c=e[n][1].end.offset-e[n][1].start.offset>1&&e[p][1].end.offset-e[p][1].start.offset>1?2:1;let f={...e[n][1].end},m={...e[p][1].start};H(f,-c),H(m,c),a={type:c>1?l:s,start:f,end:{...e[n][1].end}},o={type:c>1?l:s,start:{...e[p][1].start},end:m},i={type:c>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[p][1].start}},r={type:c>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},e[n][1].end={...a.start},e[p][1].start={...o.end},d=[],e[n][1].end.offset-e[n][1].start.offset&&(d=(0,M.V)(d,[["enter",e[n][1],t],["exit",e[n][1],t]])),d=(0,M.V)(d,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",i,t]]),(0,u.ok)(t.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated"),d=(0,M.V)(d,(0,F.W)(t.parser.constructs.insideSpan.null,e.slice(n+1,p),t)),d=(0,M.V)(d,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[p][1].end.offset-e[p][1].start.offset?(h=2,d=(0,M.V)(d,[["enter",e[p][1],t],["exit",e[p][1],t]])):h=0,(0,M.m)(e,n-1,p-n+3,d),p=n+d.length-h-2;break}}for(p=-1;++p<e.length;)"attentionSequence"===e[p][1].type&&(e[p][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,{now:i,sliceSerialize:a,previous:o}=this,s=h(o)?p(o,i(),a):o,l=P(s),c=new f(s,i(),a),g=L(l,c.value.bind(c),s);return function(o){return(0,u.ok)(42===o||95===o,"expected asterisk or underscore"),n=o,e.enter("attentionSequence"),function o(l){if(l===n)return e.consume(l),o;let c=e.exit("attentionSequence"),h=P(d(l)?m(l,i(),a):l);(0,u.ok)(r,"expected `attentionMarkers` to be populated");let p=w(g),f=p||x(g),b=w(h),E=b||x(h),y=I(g),T=!E||b&&(f||y)||r.includes(l),v=!f||p&&(E||N(h))||r.includes(s);return c._open=!!(42===n?T:T&&(O(g)||!v)),c._close=!!(42===n?v:v&&(O(h)||!T)),t(l)}(o)}}};function H(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}function U(){let e=this.data();(e.micromarkExtensions||(e.micromarkExtensions=[])).push({text:{42:B,95:B},insideSpan:{null:[B]}})}function j(e,t,n,r){return W(e,t,n,r,z(e,t,n),1)}function G(e,t,n,r){return W(e,t,n,r,$(e,t,n),2)}function z(e,t,n){return n.options.emphasis||"*"}function $(e,t,n){return n.options.strong||"*"}function W(e,t,n,r,i,a){let o,s,l=i.repeat(a),c=n.enter(1===a?"emphasis":"strong"),u=n.createTracker(r),d=u.move(l),h=u.move(n.containerPhrasing(e,{after:i,before:d,...u.current()})),p=function(e,t,n,r){var i,a,o;let s=en(r),l=ee(r);if(null!==(i=s)&&56320<=i&&i<=57343||(a=s,o=l,R(P(a))&&(null===o||null===o))){let r=Z(e,t,n,-1);r&&(s=en(r),l=ee(r))}return{current:s,previous:l}}(e,t,n,r.before),f=function(e,t,n,r){var i;let a=et(r);if(!(null!==(i=a)&&55296<=i&&i<=56319))return a;let o=Z(e,t,n,1);return o?et(o):a}(e,t,n,r.after),m=V(p,et(h),i,"open");m.inside&&h&&(h=function(e){let[t=""]=[...e];return J(t.codePointAt(0)??null)+e.slice(t.length)}(h));let g=V({current:en(h),previous:ee(h)},f,i,"close");g.inside&&h&&(s=(o=[...h]).pop(),h=`${o.join("")}${J(s?.codePointAt(0)??null)}`);let b=u.move(l);c();let E=g.outside&&function(e,t){if(!e)return!1;let n=t.indexStack.at(-1);if("number"!=typeof n)return!1;let r=e.children[n+1];return r?.type==="text"&&(et(r.value)??0)>65535}(t,n);return n.attentionEncodeSurroundingInfo={after:g.outside&&!E,before:m.outside},n.cjkFriendlyEncodeAfterSupplementaryText=E,d+h+b}function q(e,t,n,r){if(!n.cjkFriendlyEncodeAfterSupplementaryText)return n.safe(e.value,r);n.cjkFriendlyEncodeAfterSupplementaryText=!1;let[i=""]=[...e.value],a=e.value.slice(i.length);return`${J(i.codePointAt(0)??null)}${n.safe(a,{...r,before:";"})}`}function V(e,t,n,r){let i=Q(e),a=P(t);if(!I(i)&&!I(a))return"open"===r?Y(i,a,n):Y(a,i,n);let o={inside:!0,outside:!0};for(let i of[{inside:!1,outside:!1},{inside:!0,outside:!1},{inside:!1,outside:!0},o]){let a="open"===r?i.outside?er:e:i.inside?er:e,o="open"===r?i.inside?ei:t:i.outside?ei:t;if("open"===r?function(e,t,n){let r=Q(t),{close:i,open:a}=K(r,P(n));return"_"===e?a&&(O(r)||!i):a}(n,a,o):function(e,t,n){let r=P(n),{close:i,open:a}=K(Q(t),r);return"_"===e?i&&(O(r)||!a):i}(n,a,o))return i}return o}function Y(e,t,n){return X(e)?X(t)?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:x(t)?{inside:!0,outside:!0}:{inside:!1,outside:!0}:x(e)?X(t)?{inside:!1,outside:!1}:x(t)?{inside:!0,outside:!0}:{inside:!1,outside:!1}:x(t)?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function K(e,t){let n=w(e),r=n||x(e),i=w(t),a=i||x(t);return{open:!a||i&&(r||I(e)),close:!r||n&&(a||N(t))}}function X(e){return!x(e)&&!w(e)}function Q(e){let t=P(e.current);return null!==e.current&&R(t)?L(t,()=>e.previous,e.current):t}function Z(e,t,n,r){if(!t)return;let i=n.indexStack.at(-1),a=t.children,o="number"==typeof i?i:a.indexOf(e);if(!(o<0))return function e(t){return t&&"object"==typeof t?"value"in t&&"string"==typeof t.value?t.value:"alt"in t&&"string"==typeof t.alt?t.alt:"children"in t&&Array.isArray(t.children)?t.children.map(e).join(""):"":""}(a[o+r])||void 0}j.peek=z,G.peek=$;function J(e){return`&#x${(e??0).toString(16).toUpperCase()};`}function ee(e){let t=[...e];return t.pop(),t.at(-1)?.codePointAt(0)??null}function et(e){return e.codePointAt(0)??null}function en(e){return[...e].at(-1)?.codePointAt(0)??null}let er={current:59,previous:null},ei=38;function ea(){let e=this.data();(e.toMarkdownExtensions||(e.toMarkdownExtensions=[])).push({handlers:{emphasis:j,strong:G,text:q}})}function eo(e){let t,n,i=this.data();(i.micromarkExtensions||(i.micromarkExtensions=[])).push((t=(e||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,i){let{now:a,sliceSerialize:o,previous:s}=this,l=h(s)?p(s,a(),o):s,c=P(l),g=new f(l,a(),o),b=L(c,g.value.bind(g),l),E=this.events,y=0;return function(s){return((0,u.ok)(126===s,"expected `~`"),126===l&&"characterEscape"!==E[E.length-1][1].type)?i(s):(e.enter("strikethroughSequenceTemporary"),function s(c){let u=P(l);if(126===c)return y>1?i(c):(e.consume(c),y++,s);if(y<2&&!t)return i(c);let h=e.exit("strikethroughSequenceTemporary"),p=P(d(c)?m(c,a(),o):c),f=w(b)||x(b),g=w(p)||x(p),E=N(b)||u===r.ivs;return h._open=!g||2===p&&(f||E),h._close=!f||2===u&&(g||N(p)),n(c)}(s))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",a,t]],s=t.parser.constructs.insideSpan.null;s&&(0,M.m)(o,o.length,0,(0,F.W)(s,e.slice(r+1,n),t)),(0,M.m)(o,o.length,0,[["exit",a,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),(0,M.m)(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}},null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}))}let es=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function el(e,t,n,r){let i,a,o=n.enter("strikethrough"),s=n.createTracker(r),l=s.move("~~"),c=s.move(n.containerPhrasing(e,{after:"~",before:l,...s.current()})),u=function(e,t,n,r){var i,a,o;let s=ey(r),l=eb(r);if(null!==(i=s)&&56320<=i&&i<=57343||(a=s,o=l,R(P(a))&&(null===o||null===o))){let r=em(e,t,n,-1);r&&(s=ey(r),l=eb(r))}return{current:s,previous:l}}(e,t,n,r.before),d=function(e,t,n,r){var i;let a=eE(r);if(!(null!==(i=a)&&55296<=i&&i<=56319))return a;let o=em(e,t,n,1);return o?eE(o):a}(e,t,n,r.after),h=eu(u,eE(c),"open");h.inside&&c&&(c=function(e){let[t=""]=[...e];return eg(t.codePointAt(0)??null)+e.slice(t.length)}(c));let p=eu({current:ey(c),previous:eb(c)},d,"close");p.inside&&c&&(a=(i=[...c]).pop(),c=`${i.join("")}${eg(a?.codePointAt(0)??null)}`);let f=s.move("~~");o();let m=p.outside&&function(e,t){if(!e)return!1;let n=t.indexStack.at(-1);if("number"!=typeof n)return!1;let r=e.children[n+1];return r?.type==="text"&&(eE(r.value)??0)>65535}(t,n);return n.attentionEncodeSurroundingInfo={after:p.outside&&!m,before:h.outside},n.cjkFriendlyEncodeAfterSupplementaryText=m,l+c+f}function ec(e,t,n,r){if(!n.cjkFriendlyEncodeAfterSupplementaryText)return n.safe(e.value,r);n.cjkFriendlyEncodeAfterSupplementaryText=!1;let[i=""]=[...e.value],a=e.value.slice(i.length);return`${eg(i.codePointAt(0)??null)}${n.safe(a,{...r,before:";"})}`}function eu(e,t,n){let r=ef(e),i=P(t);if(!I(r)&&!I(i))return"open"===n?ed(r,i):ed(i,r);let a={inside:!0,outside:!0};for(let r of[{inside:!1,outside:!1},{inside:!0,outside:!1},{inside:!1,outside:!0},a]){let i="open"===n?r.outside?eT:e:r.inside?eT:e,a="open"===n?r.inside?ev:t:r.outside?ev:t;if("open"===n?function(e,t){let{open:n}=eh(ef(e),P(t));return n}(i,a):function(e,t){let n=P(t),{close:r}=eh(ef(e),n);return r}(i,a))return r}return a}function ed(e,t){return ep(e)?ep(t)?{inside:!1,outside:!1}:x(t)?{inside:!0,outside:!0}:{inside:!1,outside:!0}:x(e)?ep(t)?{inside:!1,outside:!1}:x(t)?{inside:!0,outside:!0}:{inside:!1,outside:!1}:x(t)?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function eh(e,t){let n=w(e),r=n||x(e),i=w(t),a=i||x(t);return{open:!a||i&&(r||I(e)),close:!r||n&&(a||N(t))}}function ep(e){return!x(e)&&!w(e)}function ef(e){let t=P(e.current);return null!==e.current&&R(t)?L(t,()=>e.previous,e.current):t}function em(e,t,n,r){if(!t)return;let i=n.indexStack.at(-1),a=t.children,o="number"==typeof i?i:a.indexOf(e);if(!(o<0))return function e(t){return t&&"object"==typeof t?"value"in t&&"string"==typeof t.value?t.value:"alt"in t&&"string"==typeof t.alt?t.alt:"children"in t&&Array.isArray(t.children)?t.children.map(e).join(""):"":""}(a[o+r])||void 0}el.peek=function(){return"~"};function eg(e){return`&#x${(e??0).toString(16).toUpperCase()};`}function eb(e){let t=[...e];return t.pop(),t.at(-1)?.codePointAt(0)??null}function eE(e){return e.codePointAt(0)??null}function ey(e){return[...e].at(-1)?.codePointAt(0)??null}let eT={current:59,previous:null},ev=38;function ek(){let e=this.data();(e.toMarkdownExtensions||(e.toMarkdownExtensions=[])).push({unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:es}],handlers:{delete:el,text:ec}})}var eS=n(44382),eA=new Set(["。",".",",","、","?","!",":",";","(",")","【","】","「","」","『","』","〈","〉","《","》"]),eC=/^(https?:\/\/|mailto:|www\.)/i,e_=(o=[...i=[function(){U.call(this),ea.call(this)}],...a=[()=>e=>{(0,eS.YR)(e,"link",(e,t,n)=>{if(!n||"number"!=typeof t||!(e=>{if(1!==e.children.length)return!1;let t=e.children[0];return"text"===t.type&&t.value===e.url})(e)||!eC.test(e.url))return;let r=(e=>{let t=0;for(let n of e){if(eA.has(n))return t;t+=n.length}return null})(e.url);if(null===r||0===r)return;let i=e.url.slice(0,r),a=e.url.slice(r),o={...e,url:i,children:[{type:"text",value:i}]};return n.children.splice(t,1,o,{type:"text",value:a}),t+1})},function(e){eo.call(this,e),ek.call(this)}]],{name:"cjk",type:"cjk",remarkPluginsBefore:i,remarkPluginsAfter:a,remarkPlugins:o})},57731:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},58420:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(93227)),i=n(90636);function a(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}a.default=a,e.exports=a},58771:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});let r=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"]},58789:(e,t,n)=>{"use strict";n.r(t),n.d(t,{boolean:()=>i,booleanish:()=>a,commaOrSpaceSeparated:()=>u,commaSeparated:()=>c,number:()=>s,overloadedBoolean:()=>o,spaceSeparated:()=>l});let r=0,i=d(),a=d(),o=d(),s=d(),l=d(),c=d(),u=d();function d(){return 2**++r}},59879:(e,t,n)=>{"use strict";n.d(t,{$:()=>a,a:()=>o});var r=n(80417),i=n(69266);let a=i.createContext(void 0);function o(){let e=i.useContext(a);if(void 0===e)throw Error((0,r.A)(70));return e}},60454:(e,t,n)=>{"use strict";n.d(t,{y:()=>k});var r=n(69266),i=n(18652),a=n(66758),o=n(34517),s=n(52333),l=n(91305),c=n(79833),u=n(95522),d=n(63717),h=n(33099),p=n(57185),f=n(73146),m=n(82712),g=n(53402),b=n(27944),E=n(29815),y=n(60601),T=n(96909),v=n(7962);let k=r.forwardRef(function(e,t){let{anchor:n,positionMethod:k="absolute",className:S,render:A,side:C,align:_,sideOffset:x=0,alignOffset:w=0,collisionBoundary:N="clipping-ancestors",collisionPadding:I=5,arrowPadding:R=5,sticky:O=!1,disableAnchorTracking:D=!1,collisionAvoidance:P=f.uD,style:L,...M}=e,{store:F}=(0,c.Y)(),B=(0,p.y)(),H=(0,m.v)(!0),U=F.useState("parent"),j=F.useState("floatingRootContext"),G=F.useState("floatingTreeRoot"),z=F.useState("mounted"),$=F.useState("open"),W=F.useState("modal"),q=F.useState("openMethod"),V=F.useState("activeTriggerElement"),Y=F.useState("transitionStatus"),K=F.useState("positionerElement"),X=F.useState("instantType"),Q=F.useState("adaptiveOrigin"),Z=F.useState("lastOpenChangeReason"),J=F.useState("floatingNodeId"),ee=F.useState("floatingParentNodeId"),et=j.useState("domReferenceElement"),en=r.useRef(null),er=(0,E.V)(K),ei=n,ea=x,eo=w,es=_,el=P;"context-menu"===U.type&&(ei=n??U.context?.anchor,es=es??"start",C||"center"===es||(eo=e.alignOffset??2,ea=e.sideOffset??-5));let ec=C,eu=es;"menu"===U.type?(ec=ec??"inline-end",eu=eu??"start",el=e.collisionAvoidance??f.Pe):"menubar"===U.type&&(ec=ec??("vertical"===U.context.orientation?"inline-end":"bottom"),eu=eu??"start");let ed="context-menu"===U.type,eh=(0,u.s)({anchor:ei,floatingRootContext:j,positionMethod:H?"fixed":k,mounted:z,side:ec,sideOffset:ea,align:eu,alignOffset:eo,arrowPadding:ed?0:R,collisionBoundary:N,collisionPadding:I,sticky:O,nodeId:J,keepMounted:B,disableAnchorTracking:D,collisionAvoidance:el,shift:ed?{crossAxis:!("side"in el&&"flip"===el.side),rootBoundary:"layoutViewport"}:void 0,externalTree:G,adaptiveOrigin:Q});r.useEffect(()=>{function e(e){e.open&&(e.parentNodeId===J&&F.set("hoverEnabled",!1),e.nodeId!==J&&e.parentNodeId===F.select("floatingParentNodeId")&&F.setOpen(!1,(0,g.d)(b.p)))}return G.events.on("menuopenchange",e),()=>{G.events.off("menuopenchange",e)}},[F,G.events,J]),r.useEffect(()=>{if(null!=F.select("floatingParentNodeId"))return G.events.on("menuopenchange",e),()=>{G.events.off("menuopenchange",e)};function e(e){if(e.open||e.nodeId!==F.select("floatingParentNodeId"))return;let t=e.reason??b.p;F.setOpen(!1,(0,g.d)(t))}},[G.events,F]);let ep=(0,o.Z)();r.useEffect(()=>{$||ep.clear()},[$,ep]),r.useEffect(()=>{function e(e){if($&&e.nodeId===F.select("floatingParentNodeId"))if(e.target&&V&&V!==e.target){let e=F.select("closeDelay");e>0?ep.isStarted()||ep.start(e,()=>{F.setOpen(!1,(0,g.d)(b.p))}):F.setOpen(!1,(0,g.d)(b.p))}else ep.clear()}return G.events.on("itemhover",e),()=>{G.events.off("itemhover",e)}},[G.events,$,V,F,ep]),r.useEffect(()=>{let e={open:$,nodeId:J,parentNodeId:ee,reason:F.select("lastOpenChangeReason")};G.events.emit("menuopenchange",e)},[G.events,$,F,J,ee]),(0,a.g)(()=>{let e=en.current;if(et&&(en.current=et),e&&et&&et!==e){F.set("instantType",void 0);let e=new AbortController;return er(()=>{F.set("instantType","trigger-change")},e.signal),()=>{e.abort()}}},[et,er,F]);let ef={open:$,side:eh.side,align:eh.align,anchorHidden:eh.anchorHidden,nested:"menu"===U.type,instant:X},em="menubar"===U.type&&U.context.modal,eg=W&&Z!==b.N7;(0,T.G)($&&(em||eg),"touch"===q,K,V);let eb=(0,y.i)(e,ef,{styles:eh.positionerStyles,transitionStatus:Y,props:M,refs:[t,F.useStateSetter("positionerElement")],hidden:!z,inert:!$}),eE=z&&"menu"!==U.type&&("menubar"!==U.type&&W&&Z!==b.N7||"menubar"===U.type&&U.context.modal),ey=null;return"menubar"===U.type?ey=U.context.contentElement:void 0===U.type&&(ey=V),(0,v.jsxs)(l.r.Provider,{value:eh,children:[eE&&(0,v.jsx)(h.W,{ref:"context-menu"===U.type||"nested-context-menu"===U.type?U.context.internalBackdropRef:null,inert:(0,i.Y)(!$),cutout:ey}),(0,v.jsx)(s.$c,{id:J,children:(0,v.jsx)(d.u,{elementsRef:F.context.itemDomElements,labelsRef:F.context.itemLabels,children:eb})})]})})},60530:(e,t,n)=>{"use strict";n.d(t,{X:()=>s});var r=n(69266),i=n(77221),a=n(69611),o=n(85933);let s=r.forwardRef(function(e,t){let{render:n,className:r,style:s,forceRender:l=!1,...c}=e,u=(0,i.P)(),d=u.useState("open"),h=u.useState("nested"),p=u.useState("mounted"),f=u.useState("transitionStatus");return(0,a.o)("div",e,{state:{open:d,transitionStatus:f},ref:[u.context.backdropRef,t],stateAttributesMapping:o.LM,props:[{role:"presentation",hidden:!p,style:{userSelect:"none",WebkitUserSelect:"none"}},c],enabled:l||!h})})},62275:(e,t,n)=>{"use strict";function r(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}n.d(t,{D:()=>r})},62513:(e,t,n)=>{"use strict";n.d(t,{A:()=>cq,C:()=>cY,c:()=>sx,f:()=>sZ,l:()=>cX});var r={};n.r(r),n.d(r,{attentionMarkers:()=>aA,contentInitial:()=>aE,disable:()=>aC,document:()=>ab,flow:()=>aT,flowInitial:()=>ay,insideSpan:()=>aS,string:()=>av,text:()=>ak});var i=n(69266),a=n(44382),o=n(72034);let s="indicator",l="text-only",c="remove";function u(e,t){if("string"!=typeof e)return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))try{return new URL(e,"http://example.com")}catch{}return null}}let d=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),h=new Set(["javascript:","data:","file:","vbscript:"]);function p(e,t,n,r=!1,i=!1,a=[]){if(!e)return null;if("string"==typeof e&&e.startsWith("#")&&!i)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if("string"==typeof e&&e.startsWith("data:"))return i&&r&&e.startsWith("data:image/")?e:null;if("string"==typeof e&&e.startsWith("blob:")){try{let t=new URL(e);if("blob:"===t.protocol&&e.length>5){let t=e.substring(5);if(t&&t.length>0&&"invalid"!==t)return e}}catch{}return null}let o=u(e,n);if(!o||h.has(o.protocol)||!(d.has(o.protocol)||a.includes(o.protocol)||a.includes("*")))return null;if("mailto:"===o.protocol||!o.protocol.match(/^https?:$/))return o.href;let s="string"==typeof e&&(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"));return o&&t.some(e=>{let t=u(e,n);return!!t&&t.origin===o.origin&&o.href.startsWith(t.href)})?s?o.pathname+o.search+o.hash:o.href:t.includes("*")?"https:"!==o.protocol&&"http:"!==o.protocol?null:s?o.pathname+o.search+o.hash:o.href:null}let f=Symbol("node-seen"),m="object"==typeof self?self:globalThis,g=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw TypeError("unable to deserialize "+e)}return new m[e](t)},b=e=>{var t;let n,r;return(t=new Map,n=(e,n)=>(t.set(n,e),e),r=i=>{if(t.has(i))return t.get(i);let[a,o]=e[i];switch(a){case 0:case -1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n("function"==typeof m[e]?g(e,t):Error(t),i)}case 8:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(g(a,o),i)})(0)},{toString:E}={},{keys:y}=Object,T=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=E.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:e instanceof Error?[7,e.name||"Error"]:[2,n]},v=([e,t])=>0===e&&("function"===t||"symbol"===t),k=(e,{json:t,lossy:n}={})=>{var r,i,a;let o,s,l=[];return(r=!(t||n),i=!!t,a=new Map,o=(e,t)=>{let n=l.push(e)-1;return a.set(t,n),n},s=e=>{if(a.has(e))return a.get(e);let[t,n]=T(e);switch(t){case 0:{let i=e;switch(n){case"bigint":t=8,i=e.toString();break;case"function":case"symbol":if(r)throw TypeError("unable to serialize "+n);i=null;break;case"undefined":return o([-1],e)}return o([t,i],e)}case 1:{if(n){let t=e;return"DataView"===n?t=new Uint8Array(e.buffer):"ArrayBuffer"===n&&(t=new Uint8Array(e)),o([n,[...t]],e)}let r=[],i=o([t,r],e);for(let t of e)r.push(s(t));return i}case 2:{if(n)switch(n){case"BigInt":return o([n,e.toString()],e);case"Boolean":case"Number":case"String":return o([n,e.valueOf()],e)}if(i&&"toJSON"in e)return s(e.toJSON());let a=[],l=o([t,a],e);for(let t of y(e))(r||!v(T(e[t])))&&a.push([s(t),s(e[t])]);return l}case 3:return o([t,isNaN(e.getTime())?"":e.toISOString()],e);case 4:{let{source:n,flags:r}=e;return o([t,{source:n,flags:r}],e)}case 5:{let n=[],i=o([t,n],e);for(let[t,i]of e)(r||!(v(T(t))||v(T(i))))&&n.push([s(t),s(i)]);return i}case 6:{let n=[],i=o([t,n],e);for(let t of e)(r||!v(T(t)))&&n.push(s(t));return i}}let{message:l}=e;return o([t,{name:n,message:l}],e)})(e),l},S="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?b(k(e,t)):structuredClone(e):(e,t)=>b(k(e,t));var A=n(94703),C=n(56227),_=n(55947),x=n(64752);function w(e,t){let n=e.indexOf("\r",t),r=e.indexOf("\n",t);return -1===r?n:-1===n||n+1===r?r:n<r?n:r}var N=n(24987);let I={}.hasOwnProperty,R=Object.prototype;function O(e,t){let n;switch(t.nodeName){case"#comment":return n={type:"comment",value:t.data},P(e,t,n),n;case"#document":case"#document-fragment":{let r="mode"in t&&("quirks"===t.mode||"limited-quirks"===t.mode);if(n={type:"root",children:D(e,t.childNodes),data:{quirksMode:r}},e.file&&e.location){let t,r,i=String(e.file),a=(t=String(i),r=[],{toOffset:function(e){if(e&&"number"==typeof e.line&&"number"==typeof e.column&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){for(;r.length<e.line;){let e=r[r.length-1],n=w(t,e),i=-1===n?t.length+1:n+1;if(e===i)break;r.push(i)}let n=(e.line>1?r[e.line-2]:0)+e.column-1;if(n<r[e.line-1])return n}},toPoint:function(e){if("number"==typeof e&&e>-1&&e<=t.length){let n=0;for(;;){let i=r[n];if(void 0===i){let e=w(t,r[n-1]);i=-1===e?t.length+1:e+1,r[n]=i}if(i>e)return{line:n+1,column:e-(n>0?r[n-1]:0)+1,offset:e};n++}}}}),o=a.toPoint(0),s=a.toPoint(i.length);(0,A.ok)(o,"expected `start`"),(0,A.ok)(s,"expected `end`"),n.position={start:o,end:s}}return n}case"#documentType":return P(e,t,n={type:"doctype"}),n;case"#text":return n={type:"text",value:t.value},P(e,t,n),n;default:return function(e,t){let n=e.schema;e.schema=t.namespaceURI===N.t.svg?_.JW:_.qy;let r=-1,i={};for(;++r<t.attrs.length;){let e=t.attrs[r],n=(e.prefix?e.prefix+":":"")+e.name;I.call(R,n)||(i[n]=e.value)}let a=("svg"===e.schema.space?C.s:C.h)(t.tagName,i,D(e,t.childNodes));if(P(e,t,a),"template"===a.tagName){let n=t.sourceCodeLocation,r=n&&n.startTag&&L(n.startTag),i=n&&n.endTag&&L(n.endTag),o=O(e,t.content);r&&i&&e.file&&(o.position={start:r.end,end:i.start}),a.content=o}return e.schema=n,a}(e,t)}}function D(e,t){let n=-1,r=[];for(;++n<t.length;){let i=O(e,t[n]);r.push(i)}return r}function P(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){let r=function(e,t,n){let r=L(n);if("element"===t.type){let i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){let r,i={};if(n.attrs)for(r in n.attrs)I.call(n.attrs,r)&&(i[(0,x.I)(e.schema,r).property]=L(n.attrs[r]));(0,A.ok)(n.startTag,"a start tag should exist");let a=L(n.startTag),o=n.endTag?L(n.endTag):void 0,s={opening:a};o&&(s.closing=o),s.properties=i,t.data={position:s}}}return r}(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function L(e){let t=M({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=M({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function M(e){return e.line&&e.column?e:void 0}var F=n(38105),B=n(13766),H=n(40156);let U={}.hasOwnProperty,j=(0,H.A)("type",{handlers:{root:function(e,t){let n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=G(e.children,n,t),z(e,n),n},element:function(e,t){var n,r;let i,a,o=t;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===t.space&&(o=_.JW);let s=[];if(e.properties){for(i in e.properties)if("children"!==i&&U.call(e.properties,i)){let t=function(e,t,n){let r=(0,x.I)(e,t);if(!1===n||null==n||"number"==typeof n&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?(0,F.A)(n):(0,B.A)(n));let i={name:r.attribute,value:!0===n?"":String(n)};if(r.space&&"html"!==r.space&&"svg"!==r.space){let e=i.name.indexOf(":");e<0?i.prefix="":(i.name=i.name.slice(e+1),i.prefix=r.attribute.slice(0,e)),i.namespace=N.t[r.space]}return i}(o,i,e.properties[i]);t&&s.push(t)}}let l=o.space;(0,A.ok)(l);let c={nodeName:e.tagName,tagName:e.tagName,attrs:s,namespaceURI:N.t[l],childNodes:[],parentNode:null};return c.childNodes=G(e.children,c,o),z(e,c),"template"===e.tagName&&e.content&&(n=e.content,r=o,(a={nodeName:"#document-fragment",childNodes:[]}).childNodes=G(n.children,a,r),z(n,a),c.content=a),c},text:function(e){let t={nodeName:"#text",value:e.value,parentNode:null};return z(e,t),t},comment:function(e){let t={nodeName:"#comment",data:e.value,parentNode:null};return z(e,t),t},doctype:function(e){let t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return z(e,t),t}}});function G(e,t,n){let r=-1,i=[];if(e)for(;++r<e.length;){let a=j(e[r],n);a.parentNode=t,i.push(a)}return i}function z(e,t){let n=e.position;n&&n.start&&n.end&&((0,A.ok)("number"==typeof n.start.offset),(0,A.ok)("number"==typeof n.end.offset),t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}var $=n(58771);let W=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]);(lU=l1||(l1={}))[lU.EOF=-1]="EOF",lU[lU.NULL=0]="NULL",lU[lU.TABULATION=9]="TABULATION",lU[lU.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",lU[lU.LINE_FEED=10]="LINE_FEED",lU[lU.FORM_FEED=12]="FORM_FEED",lU[lU.SPACE=32]="SPACE",lU[lU.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",lU[lU.QUOTATION_MARK=34]="QUOTATION_MARK",lU[lU.AMPERSAND=38]="AMPERSAND",lU[lU.APOSTROPHE=39]="APOSTROPHE",lU[lU.HYPHEN_MINUS=45]="HYPHEN_MINUS",lU[lU.SOLIDUS=47]="SOLIDUS",lU[lU.DIGIT_0=48]="DIGIT_0",lU[lU.DIGIT_9=57]="DIGIT_9",lU[lU.SEMICOLON=59]="SEMICOLON",lU[lU.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",lU[lU.EQUALS_SIGN=61]="EQUALS_SIGN",lU[lU.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",lU[lU.QUESTION_MARK=63]="QUESTION_MARK",lU[lU.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",lU[lU.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",lU[lU.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",lU[lU.GRAVE_ACCENT=96]="GRAVE_ACCENT",lU[lU.LATIN_SMALL_A=97]="LATIN_SMALL_A",lU[lU.LATIN_SMALL_Z=122]="LATIN_SMALL_Z";let q="[CDATA[",V="doctype",Y="script";function K(e){return e>=55296&&e<=57343}function X(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function Q(e){return e>=64976&&e<=65007||W.has(e)}(lj=l2||(l2={})).controlCharacterInInputStream="control-character-in-input-stream",lj.noncharacterInInputStream="noncharacter-in-input-stream",lj.surrogateInInputStream="surrogate-in-input-stream",lj.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",lj.endTagWithAttributes="end-tag-with-attributes",lj.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",lj.unexpectedSolidusInTag="unexpected-solidus-in-tag",lj.unexpectedNullCharacter="unexpected-null-character",lj.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",lj.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",lj.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",lj.missingEndTagName="missing-end-tag-name",lj.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",lj.unknownNamedCharacterReference="unknown-named-character-reference",lj.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",lj.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",lj.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",lj.eofBeforeTagName="eof-before-tag-name",lj.eofInTag="eof-in-tag",lj.missingAttributeValue="missing-attribute-value",lj.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",lj.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",lj.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",lj.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",lj.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",lj.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",lj.missingDoctypePublicIdentifier="missing-doctype-public-identifier",lj.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",lj.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",lj.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",lj.cdataInHtmlContent="cdata-in-html-content",lj.incorrectlyOpenedComment="incorrectly-opened-comment",lj.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",lj.eofInDoctype="eof-in-doctype",lj.nestedComment="nested-comment",lj.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",lj.eofInComment="eof-in-comment",lj.incorrectlyClosedComment="incorrectly-closed-comment",lj.eofInCdata="eof-in-cdata",lj.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",lj.nullCharacterReference="null-character-reference",lj.surrogateCharacterReference="surrogate-character-reference",lj.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",lj.controlCharacterReference="control-character-reference",lj.noncharacterCharacterReference="noncharacter-character-reference",lj.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",lj.missingDoctypeName="missing-doctype-name",lj.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",lj.duplicateAttribute="duplicate-attribute",lj.nonConformingDoctype="non-conforming-doctype",lj.missingDoctype="missing-doctype",lj.misplacedDoctype="misplaced-doctype",lj.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",lj.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",lj.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",lj.openElementsLeftAfterEof="open-elements-left-after-eof",lj.abandonedHeadElementChild="abandoned-head-element-child",lj.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",lj.nestedNoscriptInHead="nested-noscript-in-head",lj.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text";class Z{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){let{line:n,col:r,offset:i}=this,a=r+t,o=i+t;return{code:e,startLine:n,endLine:n,startCol:a,endCol:a,startOffset:o,endOffset:o}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){let t=this.html.charCodeAt(this.pos+1);if(t>=56320&&t<=57343)return this.pos++,this._addGap(),(e-55296)*1024+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,l1.EOF;return this._err(l2.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t<e.length;t++)if((32|this.html.charCodeAt(this.pos+t))!==e.charCodeAt(t))return!1;return!0}peek(e){let t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,l1.EOF;let n=this.html.charCodeAt(t);return n===l1.CARRIAGE_RETURN?l1.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,l1.EOF;let e=this.html.charCodeAt(this.pos);return e===l1.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,l1.LINE_FEED):e===l1.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,K(e)&&(e=this._processSurrogate(e)),null===this.handler.onParseError||e>31&&e<127||e===l1.LINE_FEED||e===l1.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){X(e)?this._err(l2.controlCharacterInInputStream):Q(e)&&this._err(l2.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}function J(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}(lG=l5||(l5={}))[lG.CHARACTER=0]="CHARACTER",lG[lG.NULL_CHARACTER=1]="NULL_CHARACTER",lG[lG.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",lG[lG.START_TAG=3]="START_TAG",lG[lG.END_TAG=4]="END_TAG",lG[lG.COMMENT=5]="COMMENT",lG[lG.DOCTYPE=6]="DOCTYPE",lG[lG.EOF=7]="EOF",lG[lG.HIBERNATION=8]="HIBERNATION";let ee=new Uint16Array('ᵁ<\xd5ıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig耻\xc6䃆P耻&䀦cute耻\xc1䃁reve;䄂Āiyx}rc耻\xc2䃂;䐐r;쀀\uD835\uDD04rave耻\xc0䃀pha;䎑acr;䄀d;橓Āgp\x9d\xa1on;䄄f;쀀\uD835\uDD38plyFunction;恡ing耻\xc5䃅Ācs\xbe\xc3r;쀀\uD835\uDC9Cign;扔ilde耻\xc3䃃ml耻\xc4䃄Ѐaceforsu\xe5\xfb\xfeėĜĢħĪĀcr\xea\xf2kslash;或Ŷ\xf6\xf8;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀\uD835\uDD05pf;쀀\uD835\uDD39eve;䋘c\xf2ēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻\xa9䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻\xc7䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷\xf2ſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀\uD835\uDC9EpĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀\uD835\uDD07Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀\uD835\uDD3Bƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegra\xecȹoɴ͹\0\0ͻ\xbb͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔e\xe5ˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀\uD835\uDC9Frok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻\xd0䃐cute耻\xc9䃉ƀaiyӒӗӜron;䄚rc耻\xca䃊;䐭ot;䄖r;쀀\uD835\uDD08rave耻\xc8䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀\uD835\uDD3Csilon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻\xcb䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀\uD835\uDD09lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀\uD835\uDD3DAll;戀riertrf;愱c\xf2׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀\uD835\uDD0A;拙pf;쀀\uD835\uDD3Eeater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀\uD835\uDCA2;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅ\xf2کrok;䄦mpńېۘownHum\xf0įqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻\xcd䃍Āiyܓܘrc耻\xce䃎;䐘ot;䄰r;愑rave耻\xcc䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lie\xf3ϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀\uD835\uDD40a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻\xcf䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀\uD835\uDD0Dpf;쀀\uD835\uDD41ǣ߇\0ߌr;쀀\uD835\uDCA5rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀\uD835\uDD0Epf;쀀\uD835\uDD42cr;쀀\uD835\uDCA6րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ight\xe1Μs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀\uD835\uDD0FĀ;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊight\xe1οight\xe1ϊf;쀀\uD835\uDD43erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂ\xf2ࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀\uD835\uDD10nusPlus;戓pf;쀀\uD835\uDD44c\xf2੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘\xeb૙eryThi\xee૙tedĀGL૸ଆreaterGreate\xf2ٳessLes\xf3ੈLine;䀊r;쀀\uD835\uDD11ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀\uD835\uDCA9ilde耻\xd1䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻\xd3䃓Āiy෎ීrc耻\xd4䃔;䐞blac;䅐r;쀀\uD835\uDD12rave耻\xd2䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀\uD835\uDD46enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀\uD835\uDCAAash耻\xd8䃘iŬื฼de耻\xd5䃕es;樷ml耻\xd6䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀\uD835\uDD13i;䎦;䎠usMinus;䂱Āipຢອncareplan\xe5ڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀\uD835\uDCAB;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀\uD835\uDD14pf;愚cr;쀀\uD835\uDCAC؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻\xae䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r\xbbཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀\uD835\uDD16ortȀDLRUᄪᄴᄾᅉownArrow\xbbОeftArrow\xbb࢚ightArrow\xbb࿝pArrow;憑gma;䎣allCircle;战pf;쀀\uD835\uDD4Aɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀\uD835\uDCAEar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Th\xe1ྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et\xbbሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻\xde䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀\uD835\uDD17Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀\uD835\uDD4BipleDot;惛Āctዖዛr;쀀\uD835\uDCAFrok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻\xda䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻\xdb䃛;䐣blac;䅰r;쀀\uD835\uDD18rave耻\xd9䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀\uD835\uDD4CЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥own\xe1ϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀\uD835\uDCB0ilde;䅨ml耻\xdc䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀\uD835\uDD19pf;쀀\uD835\uDD4Dcr;쀀\uD835\uDCB1dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀\uD835\uDD1Apf;쀀\uD835\uDD4Ecr;쀀\uD835\uDCB2Ȁfiosᓋᓐᓒᓘr;쀀\uD835\uDD1B;䎞pf;쀀\uD835\uDD4Fcr;쀀\uD835\uDCB3ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻\xdd䃝Āiyᔉᔍrc;䅶;䐫r;쀀\uD835\uDD1Cpf;쀀\uD835\uDD50cr;쀀\uD835\uDCB4ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidt\xe8૙a;䎖r;愨pf;愤cr;쀀\uD835\uDCB5௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻\xe1䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻\xe2䃢te肻\xb4̆;䐰lig耻\xe6䃦Ā;r\xb2ᖺ;쀀\uD835\uDD1Erave耻\xe0䃠ĀepᗊᗖĀfpᗏᗔsym;愵\xe8ᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e\xbbᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢\xbb\xb9arr;捼Āgpᙣᙧon;䄅f;쀀\uD835\uDD52΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒ\xf1ᚃing耻\xe5䃥ƀctyᚡᚦᚨr;쀀\uD835\uDCB6;䀪mpĀ;e዁ᚯ\xf1ʈilde耻\xe3䃣ml耻\xe4䃤Āciᛂᛈonin\xf4ɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e\xbbᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰s\xe9ᜌno\xf5ēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀\uD835\uDD1Fg΀costuvwឍឝឳេ៕៛៞ƀaiuបពរ\xf0ݠrc;旯p\xbb፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄e\xe5ᑄ\xe5ᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀\uD835\uDD53Ā;tᏋᡣom\xbbᏌtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻\xa6䂦Ȁceioᥑᥖᥚᥠr;쀀\uD835\uDCB7mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t\xbb᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁\xeeړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻\xe7䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻\xb8ƭptyv;榲t脀\xa2;eᨭᨮ䂢r\xe4Ʋr;쀀\uD835\uDD20ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark\xbbᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟\xbbཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it\xbb᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;q\xc7\xc6ɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁\xeeᅠeĀmx᫱᫶ent\xbb᫩e\xf3ɍǧ᫾\0ᬇĀ;dኻᬂot;橭n\xf4Ɇƀfryᬐᬔᬗ;쀀\uD835\uDD54o\xe4ɔ脀\xa9;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀\uD835\uDCB8Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒre\xe3᭳u\xe3᭵ee;拎edge;拏en耻\xa4䂤earrowĀlrᯮ᯳eft\xbbᮀight\xbbᮽe\xe4ᯝĀciᰁᰇonin\xf4Ƿnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍r\xf2΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸\xf2ᄳhĀ;vᱚᱛ怐\xbbऊūᱡᱧarow;椏a\xe3̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻\xb0䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀\uD835\uDD21arĀlrᲳᲵ\xbbࣜ\xbbသʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀\xf7;o᳧ᳰntimes;拇n\xf8᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀\uD835\uDD55ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedg\xe5\xfanƀadhᄮᵝᵧownarrow\xf3ᲃarpoonĀlrᵲᵶef\xf4Ჴigh\xf4ᲶŢᵿᶅkaro\xf7གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀\uD835\uDCB9;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃r\xf2Щa\xf2ྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴo\xf4ᲉĀcsḎḔute耻\xe9䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻\xea䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀\uD835\uDD22ƀ;rsṐṑṗ檚ave耻\xe8䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et\xbbẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀\uD835\uDD56ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on\xbbớ;䏵ȀcsuvỪỳἋἣĀioữḱrc\xbbḮɩỹ\0\0ỻ\xedՈantĀglἂἆtr\xbbṝess\xbbṺƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯o\xf4͒ĀahὉὋ;䎷耻\xf0䃰Āmrὓὗl耻\xeb䃫o;悬ƀcipὡὤὧl;䀡s\xf4ծĀeoὬὴctatio\xeeՙnential\xe5չৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotse\xf1Ṅy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀\uD835\uDD23lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀\uD835\uDD57ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻\xbd䂽;慓耻\xbc䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻\xbe䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀\uD835\uDCBBࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lan\xf4٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀\uD835\uDD24Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox\xbbℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀\uD835\uDD58Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎pro\xf8₞r;楸qĀlqؿ↖les\xf3₈i\xed٫Āen↣↭rtneqq;쀀≩︀\xc5↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽r\xf2ΠȀilmr⇐⇔⇗⇛rs\xf0ᒄf\xbb․il\xf4کĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it\xbb∊lip;怦con;抹r;쀀\uD835\uDD25sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀\uD835\uDD59bar;怕ƀclt≯≴≸r;쀀\uD835\uDCBDas\xe8⇴rok;䄧Ābp⊂⊇ull;恃hen\xbbᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻\xed䃭ƀ;iyݱ⊰⊵rc耻\xee䃮;䐸Ācx⊼⊿y;䐵cl耻\xa1䂡ĀfrΟ⋉;쀀\uD835\uDD26rave耻\xec䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓in\xe5ގar\xf4ܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝do\xf4⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙er\xf3ᕣ\xe3⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀\uD835\uDD5Aa;䎹uest耻\xbf䂿Āci⎊⎏r;쀀\uD835\uDCBEnʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻\xef䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀\uD835\uDD27ath;䈷pf;쀀\uD835\uDD5Bǣ⏬\0⏱r;쀀\uD835\uDCBFrcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀\uD835\uDD28reen;䄸cy;䑅cy;䑜pf;쀀\uD835\uDD5Ccr;쀀\uD835\uDCC0஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼r\xf2৆\xf2Εail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴ra\xeeࡌbda;䎻gƀ;dlࢎⓁⓃ;榑\xe5ࢎ;檅uo耻\xab䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝\xeb≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼\xecࢰ\xe2┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□a\xe9⓶arpoonĀdu▯▴own\xbbњp\xbb०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoon\xf3྘quigarro\xf7⇰hreetimes;拋ƀ;qs▋ও◺lan\xf4বʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋ppro\xf8Ⓠot;拖qĀgq♃♅\xf4উgt\xf2⒌\xf4ছi\xedলƀilr♕࣡♚sht;楼;쀀\uD835\uDD29Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖r\xf2◁orne\xf2ᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che\xbb⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox\xbb⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽r\xebࣁgƀlmr⛿✍✔eftĀar০✇ight\xe1৲apsto;柼ight\xe1৽parrowĀlr✥✩ef\xf4⓭ight;憬ƀafl✶✹✽r;榅;쀀\uD835\uDD5Dus;樭imes;樴š❋❏st;戗\xe1ፎƀ;ef❗❘᠀旊nge\xbb❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇r\xf2ࢨorne\xf2ᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀\uD835\uDCC1mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹re\xe5◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀\xc5⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻\xaf䂯Āet⡗⡙;時Ā;e⡞⡟朠se\xbb⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻ow\xeeҌef\xf4ए\xf0Ꮡker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle\xbbᘦr;쀀\uD835\uDD2Ao;愧ƀcdn⢯⢴⣉ro耻\xb5䂵Ȁ;acdᑤ⢽⣀⣄s\xf4ᚧir;櫰ot肻\xb7Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛\xf2−\xf0ઁĀdp⣩⣮els;抧f;쀀\uD835\uDD5EĀct⣸⣽r;쀀\uD835\uDCC2pos\xbbᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la\xbb˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉ro\xf8඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xa0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸ui\xf6ୣĀei⩊⩎ar;椨\xed஘istĀ;s஠டr;쀀\uD835\uDD2BȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lan\xf4௢i\xed௪Ā;rஶ⪁\xbbஷƀAap⪊⪍⪑r\xf2⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹r\xf2⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro\xf7⫁ightarro\xf7⪐ƀ;qs఻⪺⫪lan\xf4ౕĀ;sౕ⫴\xbbశi\xedౝĀ;rవ⫾iĀ;eచథi\xe4ඐĀpt⬌⬑f;쀀\uD835\uDD5F膀\xac;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lle\xec୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳u\xe5ಥĀ;cಘ⭸Ā;eಒ⭽\xf1ಘȀAait⮈⮋⮝⮧r\xf2⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow\xbb⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉u\xe5൅;쀀\uD835\uDCC3ortɭ⬅\0\0⯖ar\xe1⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭\xe5೸\xe5ഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗ\xf1സȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇ\xecௗlde耻\xf1䃱\xe7ృiangleĀlrⱒⱜeftĀ;eచⱚ\xf1దightĀ;eೋⱥ\xf1೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻\xf3䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻\xf4䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀\uD835\uDD2Cͯ⵹\0\0⵼\0ⶂn;䋛ave耻\xf2䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨr\xf2᪀Āir⶝ⶠr;榾oss;榻n\xe5๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀\uD835\uDD60ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨r\xf2᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f\xbbⷿ耻\xaa䂪耻\xba䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧\xf2⸁ash耻\xf8䃸l;折iŬⸯ⸴de耻\xf5䃵esĀ;aǛ⸺s;樶ml耻\xf6䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀\xb6;l⹭⹮䂶le\xecЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀\uD835\uDD2Dƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕ma\xf4੶ne;明ƀ;tv⺿⻀⻈䏀chfork\xbb´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎\xf6⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻\xb1ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀\uD835\uDD61nd耻\xa3䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷u\xe5໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾ppro\xf8⽃urlye\xf1໙\xf1໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨i\xedໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺\xf0⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴\xef໻rel;抰Āci⿀⿅r;쀀\uD835\uDCC5;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀\uD835\uDD2Epf;쀀\uD835\uDD62rime;恗cr;쀀\uD835\uDCC6ƀaeo⿸〉〓tĀei⿾々rnion\xf3ڰnt;樖stĀ;e【】䀿\xf1Ἑ\xf4༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがr\xf2Ⴓ\xf2ϝail;検ar\xf2ᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕i\xe3ᅮmptyv;榳gȀ;del࿑らるろ;榒;榥\xe5࿑uo耻\xbb䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞\xeb≝\xf0✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶al\xf3༞ƀabrョリヮr\xf2៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗\xec࿲\xe2ヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜn\xe5Ⴛar\xf4ྩt;断ƀilrㅩဣㅮsht;楽;쀀\uD835\uDD2FĀaoㅷㆆrĀduㅽㅿ\xbbѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭa\xe9トarpoonĀduㆻㆿow\xeeㅾp\xbb႒eftĀah㇊㇐rrow\xf3࿪arpoon\xf3Ցightarrows;應quigarro\xf7ニhreetimes;拌g;䋚ingdotse\xf1ἲƀahm㈍㈐㈓r\xf2࿪a\xf2Ց;怏oustĀ;a㈞㈟掱che\xbb㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾r\xebဃƀafl㉇㉊㉎r;榆;쀀\uD835\uDD63us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒ar\xf2㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀\uD835\uDCC7Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠re\xe5ㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛qu\xef➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡u\xe5ᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓i\xedሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒\xeb∨Ā;oਸ਼਴t耻\xa7䂧i;䀻war;椩mĀin㍩\xf0nu\xf3\xf1t;朶rĀ;o㍶⁕쀀\uD835\uDD30Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜i\xe4ᑤara\xec⹯耻\xad䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲ar\xf2ᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetm\xe9㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀\uD835\uDD64aĀdr㑍ЂesĀ;u㑔㑕晠it\xbb㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍\xf1ᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝\xf1ᆮƀ;afᅻ㒦ְrť㒫ֱ\xbbᅼar\xf2ᅈȀcemt㒹㒾㓂㓅r;쀀\uD835\uDCC8tm\xee\xf1i\xec㐕ar\xe6ᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psilo\xeeỠh\xe9⺯s\xbb⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦ppro\xf8㋺urlye\xf1ᇾ\xf1ᇳƀaes㖂㖈㌛ppro\xf8㌚q\xf1㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻\xb9䂹耻\xb2䂲耻\xb3䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨\xeb∮Ā;oਫ਩war;椪lig耻\xdf䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄r\xeb๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀\uD835\uDD31Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮ppro\xf8዁im\xbbኬs\xf0ኞĀas㚺㚮\xf0዁rn耻\xfe䃾Ǭ̟㛆⋧es膀\xd7;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀\xe1⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀\uD835\uDD65rk;櫚\xe1㍢rime;怴ƀaip㜏㜒㝤d\xe5ቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own\xbbᶻeftĀ;e⠀㜾\xf1म;扜ightĀ;e㊪㝋\xf1ၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀\uD835\uDCC9;䑆cy;䑛rok;䅧Āio㞋㞎x\xf4᝷headĀlr㞗㞠eftarro\xf7ࡏightarrow\xbbཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶r\xf2ϭar;楣Ācr㟜㟢ute耻\xfa䃺\xf2ᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻\xfb䃻;䑃ƀabh㠃㠆㠋r\xf2Ꭽlac;䅱a\xf2ᏃĀir㠓㠘sht;楾;쀀\uD835\uDD32rave耻\xf9䃹š㠧㠱rĀlr㠬㠮\xbbॗ\xbbႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r\xbb㡆op;挏ri;旸Āal㡖㡚cr;䅫肻\xa8͉Āgp㡢㡦on;䅳f;쀀\uD835\uDD66̀adhlsuᅋ㡸㡽፲㢑㢠own\xe1ᎳarpoonĀlr㢈㢌ef\xf4㠭igh\xf4㠯iƀ;hl㢙㢚㢜䏅\xbbᏺon\xbb㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r\xbb㢽op;挎ng;䅯ri;旹cr;쀀\uD835\uDCCAƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨\xbb᠓Āam㣯㣲r\xf2㢨l耻\xfc䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠r\xf2ϷarĀ;v㤦㤧櫨;櫩as\xe8ϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖app\xe1␕othin\xe7ẖƀhir㓫⻈㥙op\xf4⾵Ā;hᎷ㥢\xefㆍĀiu㥩㥭gm\xe1㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟et\xe1㚜iangleĀlr㦪㦯eft\xbbथight\xbbၑy;䐲ash\xbbံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨa\xf2ᑩr;쀀\uD835\uDD33tr\xe9㦮suĀbp㧯㧱\xbbജ\xbb൙pf;쀀\uD835\uDD67ro\xf0໻tr\xe9㦴Ācu㨆㨋r;쀀\uD835\uDCCBĀbp㨐㨘nĀEe㦀㨖\xbb㥾nĀEe㦒㨞\xbb㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀\uD835\uDD34pf;쀀\uD835\uDD68Ā;eᑹ㩦at\xe8ᑹcr;쀀\uD835\uDCCCૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tr\xe9៑r;쀀\uD835\uDD35ĀAa㪔㪗r\xf2σr\xf2৶;䎾ĀAa㪡㪤r\xf2θr\xf2৫a\xf0✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀\uD835\uDD69im\xe5ឲĀAa㫇㫊r\xf2ώr\xf2ਁĀcq㫒ីr;쀀\uD835\uDCCDĀpt៖㫜r\xe9។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻\xfd䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻\xa5䂥r;쀀\uD835\uDD36cy;䑗pf;쀀\uD835\uDD6Acr;쀀\uD835\uDCCEĀcm㬦㬩y;䑎l耻\xff䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡tr\xe6ᕟa;䎶r;쀀\uD835\uDD37cy;䐶grarr;懝pf;쀀\uD835\uDD6Bcr;쀀\uD835\uDCCFĀjn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),et=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function en(e){return e>=l6.ZERO&&e<=l6.NINE}(lz=l6||(l6={}))[lz.NUM=35]="NUM",lz[lz.SEMI=59]="SEMI",lz[lz.EQUALS=61]="EQUALS",lz[lz.ZERO=48]="ZERO",lz[lz.NINE=57]="NINE",lz[lz.LOWER_A=97]="LOWER_A",lz[lz.LOWER_F=102]="LOWER_F",lz[lz.LOWER_X=120]="LOWER_X",lz[lz.LOWER_Z=122]="LOWER_Z",lz[lz.UPPER_A=65]="UPPER_A",lz[lz.UPPER_F=70]="UPPER_F",lz[lz.UPPER_Z=90]="UPPER_Z",(l$=l9||(l9={}))[l$.VALUE_LENGTH=49152]="VALUE_LENGTH",l$[l$.BRANCH_LENGTH=16256]="BRANCH_LENGTH",l$[l$.JUMP_TABLE=127]="JUMP_TABLE",(lW=l3||(l3={}))[lW.EntityStart=0]="EntityStart",lW[lW.NumericStart=1]="NumericStart",lW[lW.NumericDecimal=2]="NumericDecimal",lW[lW.NumericHex=3]="NumericHex",lW[lW.NamedEntity=4]="NamedEntity",(lq=l4||(l4={}))[lq.Legacy=0]="Legacy",lq[lq.Strict=1]="Strict",lq[lq.Attribute=2]="Attribute";class er{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=l3.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=l4.Strict}startEntity(e){this.decodeMode=e,this.state=l3.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case l3.EntityStart:if(e.charCodeAt(t)===l6.NUM)return this.state=l3.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=l3.NamedEntity,this.stateNamedEntity(e,t);case l3.NumericStart:return this.stateNumericStart(e,t);case l3.NumericDecimal:return this.stateNumericDecimal(e,t);case l3.NumericHex:return this.stateNumericHex(e,t);case l3.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===l6.LOWER_X?(this.state=l3.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=l3.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){let i=n-t;this.result=this.result*Math.pow(r,i)+Number.parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){let n=t;for(;t<e.length;){var r;let i=e.charCodeAt(t);if(!en(i)&&(!((r=i)>=l6.UPPER_A)||!(r<=l6.UPPER_F))&&(!(r>=l6.LOWER_A)||!(r<=l6.LOWER_F)))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(i,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){let n=t;for(;t<e.length;){let r=e.charCodeAt(t);if(!en(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n,r,i;if(this.consumed<=t)return null==(n=this.errors)||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===l6.SEMI)this.consumed+=1;else if(this.decodeMode===l4.Strict)return 0;return this.emitCodePoint((r=this.result)>=55296&&r<=57343||r>1114111?65533:null!=(i=et.get(r))?i:r,this.consumed),this.errors&&(e!==l6.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],i=(r&l9.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let a=e.charCodeAt(t);if(this.treeIndex=function(e,t,n,r){let i=(t&l9.BRANCH_LENGTH)>>7,a=t&l9.JUMP_TABLE;if(0===i)return 0!==a&&r===a?n:-1;if(a){let t=r-a;return t<0||t>=i?-1:e[n+t]-1}let o=n,s=o+i-1;for(;o<=s;){let t=o+s>>>1,n=e[t];if(n<r)o=t+1;else{if(!(n>r))return e[t+i];s=t-1}}return -1}(n,r,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return 0===this.result||this.decodeMode===l4.Attribute&&(0===i||function(e){var t;return e===l6.EQUALS||(t=e)>=l6.UPPER_A&&t<=l6.UPPER_Z||t>=l6.LOWER_A&&t<=l6.LOWER_Z||en(t)}(a))?0:this.emitNotTerminatedNamedEntity();if(0!=(i=((r=n[this.treeIndex])&l9.VALUE_LENGTH)>>14)){if(a===l6.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==l4.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&l9.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null==(e=this.errors)||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~l9.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case l3.NamedEntity:return 0!==this.result&&(this.decodeMode!==l4.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case l3.NumericDecimal:return this.emitNumericEntity(0,2);case l3.NumericHex:return this.emitNumericEntity(0,3);case l3.NumericStart:return null==(e=this.errors)||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case l3.EntityStart:return 0}}}(lV=l7||(l7={})).HTML="http://www.w3.org/1999/xhtml",lV.MATHML="http://www.w3.org/1998/Math/MathML",lV.SVG="http://www.w3.org/2000/svg",lV.XLINK="http://www.w3.org/1999/xlink",lV.XML="http://www.w3.org/XML/1998/namespace",lV.XMLNS="http://www.w3.org/2000/xmlns/",(lY=l8||(l8={})).TYPE="type",lY.ACTION="action",lY.ENCODING="encoding",lY.PROMPT="prompt",lY.NAME="name",lY.COLOR="color",lY.FACE="face",lY.SIZE="size",(lK=ce||(ce={})).NO_QUIRKS="no-quirks",lK.QUIRKS="quirks",lK.LIMITED_QUIRKS="limited-quirks",(lX=ct||(ct={})).A="a",lX.ADDRESS="address",lX.ANNOTATION_XML="annotation-xml",lX.APPLET="applet",lX.AREA="area",lX.ARTICLE="article",lX.ASIDE="aside",lX.B="b",lX.BASE="base",lX.BASEFONT="basefont",lX.BGSOUND="bgsound",lX.BIG="big",lX.BLOCKQUOTE="blockquote",lX.BODY="body",lX.BR="br",lX.BUTTON="button",lX.CAPTION="caption",lX.CENTER="center",lX.CODE="code",lX.COL="col",lX.COLGROUP="colgroup",lX.DD="dd",lX.DESC="desc",lX.DETAILS="details",lX.DIALOG="dialog",lX.DIR="dir",lX.DIV="div",lX.DL="dl",lX.DT="dt",lX.EM="em",lX.EMBED="embed",lX.FIELDSET="fieldset",lX.FIGCAPTION="figcaption",lX.FIGURE="figure",lX.FONT="font",lX.FOOTER="footer",lX.FOREIGN_OBJECT="foreignObject",lX.FORM="form",lX.FRAME="frame",lX.FRAMESET="frameset",lX.H1="h1",lX.H2="h2",lX.H3="h3",lX.H4="h4",lX.H5="h5",lX.H6="h6",lX.HEAD="head",lX.HEADER="header",lX.HGROUP="hgroup",lX.HR="hr",lX.HTML="html",lX.I="i",lX.IMG="img",lX.IMAGE="image",lX.INPUT="input",lX.IFRAME="iframe",lX.KEYGEN="keygen",lX.LABEL="label",lX.LI="li",lX.LINK="link",lX.LISTING="listing",lX.MAIN="main",lX.MALIGNMARK="malignmark",lX.MARQUEE="marquee",lX.MATH="math",lX.MENU="menu",lX.META="meta",lX.MGLYPH="mglyph",lX.MI="mi",lX.MO="mo",lX.MN="mn",lX.MS="ms",lX.MTEXT="mtext",lX.NAV="nav",lX.NOBR="nobr",lX.NOFRAMES="noframes",lX.NOEMBED="noembed",lX.NOSCRIPT="noscript",lX.OBJECT="object",lX.OL="ol",lX.OPTGROUP="optgroup",lX.OPTION="option",lX.P="p",lX.PARAM="param",lX.PLAINTEXT="plaintext",lX.PRE="pre",lX.RB="rb",lX.RP="rp",lX.RT="rt",lX.RTC="rtc",lX.RUBY="ruby",lX.S="s",lX.SCRIPT="script",lX.SEARCH="search",lX.SECTION="section",lX.SELECT="select",lX.SOURCE="source",lX.SMALL="small",lX.SPAN="span",lX.STRIKE="strike",lX.STRONG="strong",lX.STYLE="style",lX.SUB="sub",lX.SUMMARY="summary",lX.SUP="sup",lX.TABLE="table",lX.TBODY="tbody",lX.TEMPLATE="template",lX.TEXTAREA="textarea",lX.TFOOT="tfoot",lX.TD="td",lX.TH="th",lX.THEAD="thead",lX.TITLE="title",lX.TR="tr",lX.TRACK="track",lX.TT="tt",lX.U="u",lX.UL="ul",lX.SVG="svg",lX.VAR="var",lX.WBR="wbr",lX.XMP="xmp",(lQ=cn||(cn={}))[lQ.UNKNOWN=0]="UNKNOWN",lQ[lQ.A=1]="A",lQ[lQ.ADDRESS=2]="ADDRESS",lQ[lQ.ANNOTATION_XML=3]="ANNOTATION_XML",lQ[lQ.APPLET=4]="APPLET",lQ[lQ.AREA=5]="AREA",lQ[lQ.ARTICLE=6]="ARTICLE",lQ[lQ.ASIDE=7]="ASIDE",lQ[lQ.B=8]="B",lQ[lQ.BASE=9]="BASE",lQ[lQ.BASEFONT=10]="BASEFONT",lQ[lQ.BGSOUND=11]="BGSOUND",lQ[lQ.BIG=12]="BIG",lQ[lQ.BLOCKQUOTE=13]="BLOCKQUOTE",lQ[lQ.BODY=14]="BODY",lQ[lQ.BR=15]="BR",lQ[lQ.BUTTON=16]="BUTTON",lQ[lQ.CAPTION=17]="CAPTION",lQ[lQ.CENTER=18]="CENTER",lQ[lQ.CODE=19]="CODE",lQ[lQ.COL=20]="COL",lQ[lQ.COLGROUP=21]="COLGROUP",lQ[lQ.DD=22]="DD",lQ[lQ.DESC=23]="DESC",lQ[lQ.DETAILS=24]="DETAILS",lQ[lQ.DIALOG=25]="DIALOG",lQ[lQ.DIR=26]="DIR",lQ[lQ.DIV=27]="DIV",lQ[lQ.DL=28]="DL",lQ[lQ.DT=29]="DT",lQ[lQ.EM=30]="EM",lQ[lQ.EMBED=31]="EMBED",lQ[lQ.FIELDSET=32]="FIELDSET",lQ[lQ.FIGCAPTION=33]="FIGCAPTION",lQ[lQ.FIGURE=34]="FIGURE",lQ[lQ.FONT=35]="FONT",lQ[lQ.FOOTER=36]="FOOTER",lQ[lQ.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",lQ[lQ.FORM=38]="FORM",lQ[lQ.FRAME=39]="FRAME",lQ[lQ.FRAMESET=40]="FRAMESET",lQ[lQ.H1=41]="H1",lQ[lQ.H2=42]="H2",lQ[lQ.H3=43]="H3",lQ[lQ.H4=44]="H4",lQ[lQ.H5=45]="H5",lQ[lQ.H6=46]="H6",lQ[lQ.HEAD=47]="HEAD",lQ[lQ.HEADER=48]="HEADER",lQ[lQ.HGROUP=49]="HGROUP",lQ[lQ.HR=50]="HR",lQ[lQ.HTML=51]="HTML",lQ[lQ.I=52]="I",lQ[lQ.IMG=53]="IMG",lQ[lQ.IMAGE=54]="IMAGE",lQ[lQ.INPUT=55]="INPUT",lQ[lQ.IFRAME=56]="IFRAME",lQ[lQ.KEYGEN=57]="KEYGEN",lQ[lQ.LABEL=58]="LABEL",lQ[lQ.LI=59]="LI",lQ[lQ.LINK=60]="LINK",lQ[lQ.LISTING=61]="LISTING",lQ[lQ.MAIN=62]="MAIN",lQ[lQ.MALIGNMARK=63]="MALIGNMARK",lQ[lQ.MARQUEE=64]="MARQUEE",lQ[lQ.MATH=65]="MATH",lQ[lQ.MENU=66]="MENU",lQ[lQ.META=67]="META",lQ[lQ.MGLYPH=68]="MGLYPH",lQ[lQ.MI=69]="MI",lQ[lQ.MO=70]="MO",lQ[lQ.MN=71]="MN",lQ[lQ.MS=72]="MS",lQ[lQ.MTEXT=73]="MTEXT",lQ[lQ.NAV=74]="NAV",lQ[lQ.NOBR=75]="NOBR",lQ[lQ.NOFRAMES=76]="NOFRAMES",lQ[lQ.NOEMBED=77]="NOEMBED",lQ[lQ.NOSCRIPT=78]="NOSCRIPT",lQ[lQ.OBJECT=79]="OBJECT",lQ[lQ.OL=80]="OL",lQ[lQ.OPTGROUP=81]="OPTGROUP",lQ[lQ.OPTION=82]="OPTION",lQ[lQ.P=83]="P",lQ[lQ.PARAM=84]="PARAM",lQ[lQ.PLAINTEXT=85]="PLAINTEXT",lQ[lQ.PRE=86]="PRE",lQ[lQ.RB=87]="RB",lQ[lQ.RP=88]="RP",lQ[lQ.RT=89]="RT",lQ[lQ.RTC=90]="RTC",lQ[lQ.RUBY=91]="RUBY",lQ[lQ.S=92]="S",lQ[lQ.SCRIPT=93]="SCRIPT",lQ[lQ.SEARCH=94]="SEARCH",lQ[lQ.SECTION=95]="SECTION",lQ[lQ.SELECT=96]="SELECT",lQ[lQ.SOURCE=97]="SOURCE",lQ[lQ.SMALL=98]="SMALL",lQ[lQ.SPAN=99]="SPAN",lQ[lQ.STRIKE=100]="STRIKE",lQ[lQ.STRONG=101]="STRONG",lQ[lQ.STYLE=102]="STYLE",lQ[lQ.SUB=103]="SUB",lQ[lQ.SUMMARY=104]="SUMMARY",lQ[lQ.SUP=105]="SUP",lQ[lQ.TABLE=106]="TABLE",lQ[lQ.TBODY=107]="TBODY",lQ[lQ.TEMPLATE=108]="TEMPLATE",lQ[lQ.TEXTAREA=109]="TEXTAREA",lQ[lQ.TFOOT=110]="TFOOT",lQ[lQ.TD=111]="TD",lQ[lQ.TH=112]="TH",lQ[lQ.THEAD=113]="THEAD",lQ[lQ.TITLE=114]="TITLE",lQ[lQ.TR=115]="TR",lQ[lQ.TRACK=116]="TRACK",lQ[lQ.TT=117]="TT",lQ[lQ.U=118]="U",lQ[lQ.UL=119]="UL",lQ[lQ.SVG=120]="SVG",lQ[lQ.VAR=121]="VAR",lQ[lQ.WBR=122]="WBR",lQ[lQ.XMP=123]="XMP";let ei=new Map([[ct.A,cn.A],[ct.ADDRESS,cn.ADDRESS],[ct.ANNOTATION_XML,cn.ANNOTATION_XML],[ct.APPLET,cn.APPLET],[ct.AREA,cn.AREA],[ct.ARTICLE,cn.ARTICLE],[ct.ASIDE,cn.ASIDE],[ct.B,cn.B],[ct.BASE,cn.BASE],[ct.BASEFONT,cn.BASEFONT],[ct.BGSOUND,cn.BGSOUND],[ct.BIG,cn.BIG],[ct.BLOCKQUOTE,cn.BLOCKQUOTE],[ct.BODY,cn.BODY],[ct.BR,cn.BR],[ct.BUTTON,cn.BUTTON],[ct.CAPTION,cn.CAPTION],[ct.CENTER,cn.CENTER],[ct.CODE,cn.CODE],[ct.COL,cn.COL],[ct.COLGROUP,cn.COLGROUP],[ct.DD,cn.DD],[ct.DESC,cn.DESC],[ct.DETAILS,cn.DETAILS],[ct.DIALOG,cn.DIALOG],[ct.DIR,cn.DIR],[ct.DIV,cn.DIV],[ct.DL,cn.DL],[ct.DT,cn.DT],[ct.EM,cn.EM],[ct.EMBED,cn.EMBED],[ct.FIELDSET,cn.FIELDSET],[ct.FIGCAPTION,cn.FIGCAPTION],[ct.FIGURE,cn.FIGURE],[ct.FONT,cn.FONT],[ct.FOOTER,cn.FOOTER],[ct.FOREIGN_OBJECT,cn.FOREIGN_OBJECT],[ct.FORM,cn.FORM],[ct.FRAME,cn.FRAME],[ct.FRAMESET,cn.FRAMESET],[ct.H1,cn.H1],[ct.H2,cn.H2],[ct.H3,cn.H3],[ct.H4,cn.H4],[ct.H5,cn.H5],[ct.H6,cn.H6],[ct.HEAD,cn.HEAD],[ct.HEADER,cn.HEADER],[ct.HGROUP,cn.HGROUP],[ct.HR,cn.HR],[ct.HTML,cn.HTML],[ct.I,cn.I],[ct.IMG,cn.IMG],[ct.IMAGE,cn.IMAGE],[ct.INPUT,cn.INPUT],[ct.IFRAME,cn.IFRAME],[ct.KEYGEN,cn.KEYGEN],[ct.LABEL,cn.LABEL],[ct.LI,cn.LI],[ct.LINK,cn.LINK],[ct.LISTING,cn.LISTING],[ct.MAIN,cn.MAIN],[ct.MALIGNMARK,cn.MALIGNMARK],[ct.MARQUEE,cn.MARQUEE],[ct.MATH,cn.MATH],[ct.MENU,cn.MENU],[ct.META,cn.META],[ct.MGLYPH,cn.MGLYPH],[ct.MI,cn.MI],[ct.MO,cn.MO],[ct.MN,cn.MN],[ct.MS,cn.MS],[ct.MTEXT,cn.MTEXT],[ct.NAV,cn.NAV],[ct.NOBR,cn.NOBR],[ct.NOFRAMES,cn.NOFRAMES],[ct.NOEMBED,cn.NOEMBED],[ct.NOSCRIPT,cn.NOSCRIPT],[ct.OBJECT,cn.OBJECT],[ct.OL,cn.OL],[ct.OPTGROUP,cn.OPTGROUP],[ct.OPTION,cn.OPTION],[ct.P,cn.P],[ct.PARAM,cn.PARAM],[ct.PLAINTEXT,cn.PLAINTEXT],[ct.PRE,cn.PRE],[ct.RB,cn.RB],[ct.RP,cn.RP],[ct.RT,cn.RT],[ct.RTC,cn.RTC],[ct.RUBY,cn.RUBY],[ct.S,cn.S],[ct.SCRIPT,cn.SCRIPT],[ct.SEARCH,cn.SEARCH],[ct.SECTION,cn.SECTION],[ct.SELECT,cn.SELECT],[ct.SOURCE,cn.SOURCE],[ct.SMALL,cn.SMALL],[ct.SPAN,cn.SPAN],[ct.STRIKE,cn.STRIKE],[ct.STRONG,cn.STRONG],[ct.STYLE,cn.STYLE],[ct.SUB,cn.SUB],[ct.SUMMARY,cn.SUMMARY],[ct.SUP,cn.SUP],[ct.TABLE,cn.TABLE],[ct.TBODY,cn.TBODY],[ct.TEMPLATE,cn.TEMPLATE],[ct.TEXTAREA,cn.TEXTAREA],[ct.TFOOT,cn.TFOOT],[ct.TD,cn.TD],[ct.TH,cn.TH],[ct.THEAD,cn.THEAD],[ct.TITLE,cn.TITLE],[ct.TR,cn.TR],[ct.TRACK,cn.TRACK],[ct.TT,cn.TT],[ct.U,cn.U],[ct.UL,cn.UL],[ct.SVG,cn.SVG],[ct.VAR,cn.VAR],[ct.WBR,cn.WBR],[ct.XMP,cn.XMP]]);function ea(e){var t;return null!=(t=ei.get(e))?t:cn.UNKNOWN}let eo=cn,es={[l7.HTML]:new Set([eo.ADDRESS,eo.APPLET,eo.AREA,eo.ARTICLE,eo.ASIDE,eo.BASE,eo.BASEFONT,eo.BGSOUND,eo.BLOCKQUOTE,eo.BODY,eo.BR,eo.BUTTON,eo.CAPTION,eo.CENTER,eo.COL,eo.COLGROUP,eo.DD,eo.DETAILS,eo.DIR,eo.DIV,eo.DL,eo.DT,eo.EMBED,eo.FIELDSET,eo.FIGCAPTION,eo.FIGURE,eo.FOOTER,eo.FORM,eo.FRAME,eo.FRAMESET,eo.H1,eo.H2,eo.H3,eo.H4,eo.H5,eo.H6,eo.HEAD,eo.HEADER,eo.HGROUP,eo.HR,eo.HTML,eo.IFRAME,eo.IMG,eo.INPUT,eo.LI,eo.LINK,eo.LISTING,eo.MAIN,eo.MARQUEE,eo.MENU,eo.META,eo.NAV,eo.NOEMBED,eo.NOFRAMES,eo.NOSCRIPT,eo.OBJECT,eo.OL,eo.P,eo.PARAM,eo.PLAINTEXT,eo.PRE,eo.SCRIPT,eo.SECTION,eo.SELECT,eo.SOURCE,eo.STYLE,eo.SUMMARY,eo.TABLE,eo.TBODY,eo.TD,eo.TEMPLATE,eo.TEXTAREA,eo.TFOOT,eo.TH,eo.THEAD,eo.TITLE,eo.TR,eo.TRACK,eo.UL,eo.WBR,eo.XMP]),[l7.MATHML]:new Set([eo.MI,eo.MO,eo.MN,eo.MS,eo.MTEXT,eo.ANNOTATION_XML]),[l7.SVG]:new Set([eo.TITLE,eo.FOREIGN_OBJECT,eo.DESC]),[l7.XLINK]:new Set,[l7.XML]:new Set,[l7.XMLNS]:new Set},el=new Set([eo.H1,eo.H2,eo.H3,eo.H4,eo.H5,eo.H6]);ct.STYLE,ct.SCRIPT,ct.XMP,ct.IFRAME,ct.NOEMBED,ct.NOFRAMES,ct.PLAINTEXT,(lZ=cr||(cr={}))[lZ.DATA=0]="DATA",lZ[lZ.RCDATA=1]="RCDATA",lZ[lZ.RAWTEXT=2]="RAWTEXT",lZ[lZ.SCRIPT_DATA=3]="SCRIPT_DATA",lZ[lZ.PLAINTEXT=4]="PLAINTEXT",lZ[lZ.TAG_OPEN=5]="TAG_OPEN",lZ[lZ.END_TAG_OPEN=6]="END_TAG_OPEN",lZ[lZ.TAG_NAME=7]="TAG_NAME",lZ[lZ.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",lZ[lZ.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",lZ[lZ.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",lZ[lZ.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",lZ[lZ.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",lZ[lZ.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",lZ[lZ.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",lZ[lZ.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",lZ[lZ.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",lZ[lZ.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",lZ[lZ.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",lZ[lZ.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",lZ[lZ.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",lZ[lZ.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",lZ[lZ.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",lZ[lZ.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",lZ[lZ.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",lZ[lZ.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",lZ[lZ.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",lZ[lZ.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",lZ[lZ.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",lZ[lZ.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",lZ[lZ.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",lZ[lZ.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",lZ[lZ.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",lZ[lZ.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",lZ[lZ.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",lZ[lZ.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",lZ[lZ.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",lZ[lZ.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",lZ[lZ.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",lZ[lZ.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",lZ[lZ.BOGUS_COMMENT=40]="BOGUS_COMMENT",lZ[lZ.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",lZ[lZ.COMMENT_START=42]="COMMENT_START",lZ[lZ.COMMENT_START_DASH=43]="COMMENT_START_DASH",lZ[lZ.COMMENT=44]="COMMENT",lZ[lZ.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",lZ[lZ.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",lZ[lZ.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",lZ[lZ.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",lZ[lZ.COMMENT_END_DASH=49]="COMMENT_END_DASH",lZ[lZ.COMMENT_END=50]="COMMENT_END",lZ[lZ.COMMENT_END_BANG=51]="COMMENT_END_BANG",lZ[lZ.DOCTYPE=52]="DOCTYPE",lZ[lZ.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",lZ[lZ.DOCTYPE_NAME=54]="DOCTYPE_NAME",lZ[lZ.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",lZ[lZ.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",lZ[lZ.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",lZ[lZ.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",lZ[lZ.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",lZ[lZ.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",lZ[lZ.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",lZ[lZ.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",lZ[lZ.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",lZ[lZ.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",lZ[lZ.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",lZ[lZ.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",lZ[lZ.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",lZ[lZ.CDATA_SECTION=68]="CDATA_SECTION",lZ[lZ.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",lZ[lZ.CDATA_SECTION_END=70]="CDATA_SECTION_END",lZ[lZ.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",lZ[lZ.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND";let ec={DATA:cr.DATA,RCDATA:cr.RCDATA,RAWTEXT:cr.RAWTEXT,SCRIPT_DATA:cr.SCRIPT_DATA,PLAINTEXT:cr.PLAINTEXT,CDATA_SECTION:cr.CDATA_SECTION};function eu(e){return e>=l1.LATIN_CAPITAL_A&&e<=l1.LATIN_CAPITAL_Z}function ed(e){return e>=l1.LATIN_SMALL_A&&e<=l1.LATIN_SMALL_Z||eu(e)}function eh(e){return ed(e)||e>=l1.DIGIT_0&&e<=l1.DIGIT_9}function ep(e){return e===l1.SPACE||e===l1.LINE_FEED||e===l1.TABULATION||e===l1.FORM_FEED}function ef(e){return ep(e)||e===l1.SOLIDUS||e===l1.GREATER_THAN_SIGN}class em{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=cr.DATA,this.returnState=cr.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Z(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new er(ee,(e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(l2.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(l2.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{let t=function(e){if(e===l1.NULL)return l2.nullCharacterReference;if(e>1114111)return l2.characterReferenceOutsideUnicodeRange;if(K(e))return l2.surrogateCharacterReference;if(Q(e))return l2.noncharacterCharacterReference;if(X(e)||e===l1.CARRIAGE_RETURN)return l2.controlCharacterReference;return null}(e);t&&this._err(t,1)}}:void 0)}_err(e,t=0){var n,r;null==(r=(n=this.handler).onParseError)||r.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return!!this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!0)}_createStartTagToken(){this.currentToken={type:l5.START_TAG,tagName:"",tagID:cn.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:l5.END_TAG,tagName:"",tagID:cn.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:l5.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:l5.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;let n=this.currentToken;null===J(n,this.currentAttr.name)?(n.attrs.push(this.currentAttr),n.location&&this.currentLocation&&((null!=(e=(t=n.location).attrs)?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue())):this._err(l2.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){let e=this.currentToken;this.prepareToken(e),e.tagID=ea(e.tagName),e.type===l5.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(l2.endTagWithAttributes),e.selfClosing&&this._err(l2.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case l5.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case l5.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case l5.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){let e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:l5.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken)if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=t;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(e,t)}_emitCodePoint(e){let t=ep(e)?l5.WHITESPACE_CHARACTER:e===l1.NULL?l5.NULL_CHARACTER:l5.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(l5.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=cr.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?l4.Attribute:l4.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===cr.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===cr.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===cr.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case cr.DATA:this._stateData(e);break;case cr.RCDATA:this._stateRcdata(e);break;case cr.RAWTEXT:this._stateRawtext(e);break;case cr.SCRIPT_DATA:this._stateScriptData(e);break;case cr.PLAINTEXT:this._statePlaintext(e);break;case cr.TAG_OPEN:this._stateTagOpen(e);break;case cr.END_TAG_OPEN:this._stateEndTagOpen(e);break;case cr.TAG_NAME:this._stateTagName(e);break;case cr.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case cr.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case cr.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case cr.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case cr.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case cr.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case cr.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case cr.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case cr.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case cr.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case cr.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case cr.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case cr.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case cr.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case cr.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case cr.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case cr.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case cr.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case cr.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case cr.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case cr.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case cr.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case cr.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case cr.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case cr.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case cr.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case cr.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case cr.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case cr.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case cr.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case cr.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case cr.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case cr.BOGUS_COMMENT:this._stateBogusComment(e);break;case cr.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case cr.COMMENT_START:this._stateCommentStart(e);break;case cr.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case cr.COMMENT:this._stateComment(e);break;case cr.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case cr.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case cr.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case cr.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case cr.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case cr.COMMENT_END:this._stateCommentEnd(e);break;case cr.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case cr.DOCTYPE:this._stateDoctype(e);break;case cr.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case cr.DOCTYPE_NAME:this._stateDoctypeName(e);break;case cr.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case cr.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case cr.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case cr.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case cr.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case cr.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case cr.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case cr.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case cr.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case cr.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case cr.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case cr.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case cr.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case cr.CDATA_SECTION:this._stateCdataSection(e);break;case cr.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case cr.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case cr.CHARACTER_REFERENCE:this._stateCharacterReference();break;case cr.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw Error("Unknown state")}}_stateData(e){switch(e){case l1.LESS_THAN_SIGN:this.state=cr.TAG_OPEN;break;case l1.AMPERSAND:this._startCharacterReference();break;case l1.NULL:this._err(l2.unexpectedNullCharacter),this._emitCodePoint(e);break;case l1.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case l1.AMPERSAND:this._startCharacterReference();break;case l1.LESS_THAN_SIGN:this.state=cr.RCDATA_LESS_THAN_SIGN;break;case l1.NULL:this._err(l2.unexpectedNullCharacter),this._emitChars("�");break;case l1.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case l1.LESS_THAN_SIGN:this.state=cr.RAWTEXT_LESS_THAN_SIGN;break;case l1.NULL:this._err(l2.unexpectedNullCharacter),this._emitChars("�");break;case l1.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case l1.LESS_THAN_SIGN:this.state=cr.SCRIPT_DATA_LESS_THAN_SIGN;break;case l1.NULL:this._err(l2.unexpectedNullCharacter),this._emitChars("�");break;case l1.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case l1.NULL:this._err(l2.unexpectedNullCharacter),this._emitChars("�");break;case l1.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(ed(e))this._createStartTagToken(),this.state=cr.TAG_NAME,this._stateTagName(e);else switch(e){case l1.EXCLAMATION_MARK:this.state=cr.MARKUP_DECLARATION_OPEN;break;case l1.SOLIDUS:this.state=cr.END_TAG_OPEN;break;case l1.QUESTION_MARK:this._err(l2.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=cr.BOGUS_COMMENT,this._stateBogusComment(e);break;case l1.EOF:this._err(l2.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(l2.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=cr.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(ed(e))this._createEndTagToken(),this.state=cr.TAG_NAME,this._stateTagName(e);else switch(e){case l1.GREATER_THAN_SIGN:this._err(l2.missingEndTagName),this.state=cr.DATA;break;case l1.EOF:this._err(l2.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(l2.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=cr.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){let t=this.currentToken;switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:this.state=cr.BEFORE_ATTRIBUTE_NAME;break;case l1.SOLIDUS:this.state=cr.SELF_CLOSING_START_TAG;break;case l1.GREATER_THAN_SIGN:this.state=cr.DATA,this.emitCurrentTagToken();break;case l1.NULL:this._err(l2.unexpectedNullCharacter),t.tagName+="�";break;case l1.EOF:this._err(l2.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(eu(e)?e+32:e)}}_stateRcdataLessThanSign(e){e===l1.SOLIDUS?this.state=cr.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=cr.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){ed(e)?(this.state=cr.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=cr.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();switch(this._createEndTagToken(),this.currentToken.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=cr.BEFORE_ATTRIBUTE_NAME,!1;case l1.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=cr.SELF_CLOSING_START_TAG,!1;case l1.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=cr.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=cr.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===l1.SOLIDUS?this.state=cr.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=cr.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){ed(e)?(this.state=cr.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=cr.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=cr.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case l1.SOLIDUS:this.state=cr.SCRIPT_DATA_END_TAG_OPEN;break;case l1.EXCLAMATION_MARK:this.state=cr.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=cr.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){ed(e)?(this.state=cr.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=cr.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=cr.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===l1.HYPHEN_MINUS?(this.state=cr.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=cr.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===l1.HYPHEN_MINUS?(this.state=cr.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=cr.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case l1.HYPHEN_MINUS:this.state=cr.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case l1.LESS_THAN_SIGN:this.state=cr.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case l1.NULL:this._err(l2.unexpectedNullCharacter),this._emitChars("�");break;case l1.EOF:this._err(l2.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case l1.HYPHEN_MINUS:this.state=cr.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case l1.LESS_THAN_SIGN:this.state=cr.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case l1.NULL:this._err(l2.unexpectedNullCharacter),this.state=cr.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case l1.EOF:this._err(l2.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=cr.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case l1.HYPHEN_MINUS:this._emitChars("-");break;case l1.LESS_THAN_SIGN:this.state=cr.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case l1.GREATER_THAN_SIGN:this.state=cr.SCRIPT_DATA,this._emitChars(">");break;case l1.NULL:this._err(l2.unexpectedNullCharacter),this.state=cr.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case l1.EOF:this._err(l2.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=cr.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===l1.SOLIDUS?this.state=cr.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:ed(e)?(this._emitChars("<"),this.state=cr.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=cr.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){ed(e)?(this.state=cr.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=cr.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=cr.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(Y,!1)&&ef(this.preprocessor.peek(Y.length))){this._emitCodePoint(e);for(let e=0;e<Y.length;e++)this._emitCodePoint(this._consume());this.state=cr.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=cr.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case l1.HYPHEN_MINUS:this.state=cr.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case l1.LESS_THAN_SIGN:this.state=cr.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case l1.NULL:this._err(l2.unexpectedNullCharacter),this._emitChars("�");break;case l1.EOF:this._err(l2.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case l1.HYPHEN_MINUS:this.state=cr.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case l1.LESS_THAN_SIGN:this.state=cr.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case l1.NULL:this._err(l2.unexpectedNullCharacter),this.state=cr.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case l1.EOF:this._err(l2.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=cr.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case l1.HYPHEN_MINUS:this._emitChars("-");break;case l1.LESS_THAN_SIGN:this.state=cr.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case l1.GREATER_THAN_SIGN:this.state=cr.SCRIPT_DATA,this._emitChars(">");break;case l1.NULL:this._err(l2.unexpectedNullCharacter),this.state=cr.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case l1.EOF:this._err(l2.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=cr.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===l1.SOLIDUS?(this.state=cr.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=cr.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(Y,!1)&&ef(this.preprocessor.peek(Y.length))){this._emitCodePoint(e);for(let e=0;e<Y.length;e++)this._emitCodePoint(this._consume());this.state=cr.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=cr.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:break;case l1.SOLIDUS:case l1.GREATER_THAN_SIGN:case l1.EOF:this.state=cr.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case l1.EQUALS_SIGN:this._err(l2.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=cr.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=cr.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:case l1.SOLIDUS:case l1.GREATER_THAN_SIGN:case l1.EOF:this._leaveAttrName(),this.state=cr.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case l1.EQUALS_SIGN:this._leaveAttrName(),this.state=cr.BEFORE_ATTRIBUTE_VALUE;break;case l1.QUOTATION_MARK:case l1.APOSTROPHE:case l1.LESS_THAN_SIGN:this._err(l2.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case l1.NULL:this._err(l2.unexpectedNullCharacter),this.currentAttr.name+="�";break;default:this.currentAttr.name+=String.fromCodePoint(eu(e)?e+32:e)}}_stateAfterAttributeName(e){switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:break;case l1.SOLIDUS:this.state=cr.SELF_CLOSING_START_TAG;break;case l1.EQUALS_SIGN:this.state=cr.BEFORE_ATTRIBUTE_VALUE;break;case l1.GREATER_THAN_SIGN:this.state=cr.DATA,this.emitCurrentTagToken();break;case l1.EOF:this._err(l2.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=cr.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:break;case l1.QUOTATION_MARK:this.state=cr.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case l1.APOSTROPHE:this.state=cr.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case l1.GREATER_THAN_SIGN:this._err(l2.missingAttributeValue),this.state=cr.DATA,this.emitCurrentTagToken();break;default:this.state=cr.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case l1.QUOTATION_MARK:this.state=cr.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case l1.AMPERSAND:this._startCharacterReference();break;case l1.NULL:this._err(l2.unexpectedNullCharacter),this.currentAttr.value+="�";break;case l1.EOF:this._err(l2.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case l1.APOSTROPHE:this.state=cr.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case l1.AMPERSAND:this._startCharacterReference();break;case l1.NULL:this._err(l2.unexpectedNullCharacter),this.currentAttr.value+="�";break;case l1.EOF:this._err(l2.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:this._leaveAttrValue(),this.state=cr.BEFORE_ATTRIBUTE_NAME;break;case l1.AMPERSAND:this._startCharacterReference();break;case l1.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=cr.DATA,this.emitCurrentTagToken();break;case l1.NULL:this._err(l2.unexpectedNullCharacter),this.currentAttr.value+="�";break;case l1.QUOTATION_MARK:case l1.APOSTROPHE:case l1.LESS_THAN_SIGN:case l1.EQUALS_SIGN:case l1.GRAVE_ACCENT:this._err(l2.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case l1.EOF:this._err(l2.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:this._leaveAttrValue(),this.state=cr.BEFORE_ATTRIBUTE_NAME;break;case l1.SOLIDUS:this._leaveAttrValue(),this.state=cr.SELF_CLOSING_START_TAG;break;case l1.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=cr.DATA,this.emitCurrentTagToken();break;case l1.EOF:this._err(l2.eofInTag),this._emitEOFToken();break;default:this._err(l2.missingWhitespaceBetweenAttributes),this.state=cr.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case l1.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=cr.DATA,this.emitCurrentTagToken();break;case l1.EOF:this._err(l2.eofInTag),this._emitEOFToken();break;default:this._err(l2.unexpectedSolidusInTag),this.state=cr.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){let t=this.currentToken;switch(e){case l1.GREATER_THAN_SIGN:this.state=cr.DATA,this.emitCurrentComment(t);break;case l1.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case l1.NULL:this._err(l2.unexpectedNullCharacter),t.data+="�";break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch("--",!0)?(this._createCommentToken(3),this.state=cr.COMMENT_START):this._consumeSequenceIfMatch(V,!1)?(this.currentLocation=this.getCurrentLocation(V.length+1),this.state=cr.DOCTYPE):this._consumeSequenceIfMatch(q,!0)?this.inForeignNode?this.state=cr.CDATA_SECTION:(this._err(l2.cdataInHtmlContent),this._createCommentToken(q.length+1),this.currentToken.data="[CDATA[",this.state=cr.BOGUS_COMMENT):this._ensureHibernation()||(this._err(l2.incorrectlyOpenedComment),this._createCommentToken(2),this.state=cr.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case l1.HYPHEN_MINUS:this.state=cr.COMMENT_START_DASH;break;case l1.GREATER_THAN_SIGN:{this._err(l2.abruptClosingOfEmptyComment),this.state=cr.DATA;let e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=cr.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){let t=this.currentToken;switch(e){case l1.HYPHEN_MINUS:this.state=cr.COMMENT_END;break;case l1.GREATER_THAN_SIGN:this._err(l2.abruptClosingOfEmptyComment),this.state=cr.DATA,this.emitCurrentComment(t);break;case l1.EOF:this._err(l2.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=cr.COMMENT,this._stateComment(e)}}_stateComment(e){let t=this.currentToken;switch(e){case l1.HYPHEN_MINUS:this.state=cr.COMMENT_END_DASH;break;case l1.LESS_THAN_SIGN:t.data+="<",this.state=cr.COMMENT_LESS_THAN_SIGN;break;case l1.NULL:this._err(l2.unexpectedNullCharacter),t.data+="�";break;case l1.EOF:this._err(l2.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){let t=this.currentToken;switch(e){case l1.EXCLAMATION_MARK:t.data+="!",this.state=cr.COMMENT_LESS_THAN_SIGN_BANG;break;case l1.LESS_THAN_SIGN:t.data+="<";break;default:this.state=cr.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===l1.HYPHEN_MINUS?this.state=cr.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=cr.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===l1.HYPHEN_MINUS?this.state=cr.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=cr.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==l1.GREATER_THAN_SIGN&&e!==l1.EOF&&this._err(l2.nestedComment),this.state=cr.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){let t=this.currentToken;switch(e){case l1.HYPHEN_MINUS:this.state=cr.COMMENT_END;break;case l1.EOF:this._err(l2.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=cr.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){let t=this.currentToken;switch(e){case l1.GREATER_THAN_SIGN:this.state=cr.DATA,this.emitCurrentComment(t);break;case l1.EXCLAMATION_MARK:this.state=cr.COMMENT_END_BANG;break;case l1.HYPHEN_MINUS:t.data+="-";break;case l1.EOF:this._err(l2.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=cr.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){let t=this.currentToken;switch(e){case l1.HYPHEN_MINUS:t.data+="--!",this.state=cr.COMMENT_END_DASH;break;case l1.GREATER_THAN_SIGN:this._err(l2.incorrectlyClosedComment),this.state=cr.DATA,this.emitCurrentComment(t);break;case l1.EOF:this._err(l2.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=cr.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:this.state=cr.BEFORE_DOCTYPE_NAME;break;case l1.GREATER_THAN_SIGN:this.state=cr.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case l1.EOF:{this._err(l2.eofInDoctype),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(l2.missingWhitespaceBeforeDoctypeName),this.state=cr.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(eu(e))this._createDoctypeToken(String.fromCharCode(e+32)),this.state=cr.DOCTYPE_NAME;else switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:break;case l1.NULL:this._err(l2.unexpectedNullCharacter),this._createDoctypeToken("�"),this.state=cr.DOCTYPE_NAME;break;case l1.GREATER_THAN_SIGN:{this._err(l2.missingDoctypeName),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=cr.DATA;break}case l1.EOF:{this._err(l2.eofInDoctype),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=cr.DOCTYPE_NAME}}_stateDoctypeName(e){let t=this.currentToken;switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:this.state=cr.AFTER_DOCTYPE_NAME;break;case l1.GREATER_THAN_SIGN:this.state=cr.DATA,this.emitCurrentDoctype(t);break;case l1.NULL:this._err(l2.unexpectedNullCharacter),t.name+="�";break;case l1.EOF:this._err(l2.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(eu(e)?e+32:e)}}_stateAfterDoctypeName(e){let t=this.currentToken;switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:break;case l1.GREATER_THAN_SIGN:this.state=cr.DATA,this.emitCurrentDoctype(t);break;case l1.EOF:this._err(l2.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch("public",!1)?this.state=cr.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch("system",!1)?this.state=cr.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(l2.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=cr.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){let t=this.currentToken;switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:this.state=cr.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case l1.QUOTATION_MARK:this._err(l2.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=cr.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case l1.APOSTROPHE:this._err(l2.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=cr.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case l1.GREATER_THAN_SIGN:this._err(l2.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=cr.DATA,this.emitCurrentDoctype(t);break;case l1.EOF:this._err(l2.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(l2.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=cr.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:break;case l1.QUOTATION_MARK:t.publicId="",this.state=cr.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case l1.APOSTROPHE:t.publicId="",this.state=cr.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case l1.GREATER_THAN_SIGN:this._err(l2.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=cr.DATA,this.emitCurrentDoctype(t);break;case l1.EOF:this._err(l2.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(l2.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=cr.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case l1.QUOTATION_MARK:this.state=cr.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case l1.NULL:this._err(l2.unexpectedNullCharacter),t.publicId+="�";break;case l1.GREATER_THAN_SIGN:this._err(l2.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=cr.DATA;break;case l1.EOF:this._err(l2.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case l1.APOSTROPHE:this.state=cr.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case l1.NULL:this._err(l2.unexpectedNullCharacter),t.publicId+="�";break;case l1.GREATER_THAN_SIGN:this._err(l2.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=cr.DATA;break;case l1.EOF:this._err(l2.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:this.state=cr.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case l1.GREATER_THAN_SIGN:this.state=cr.DATA,this.emitCurrentDoctype(t);break;case l1.QUOTATION_MARK:this._err(l2.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=cr.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case l1.APOSTROPHE:this._err(l2.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=cr.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case l1.EOF:this._err(l2.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(l2.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=cr.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){let t=this.currentToken;switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:break;case l1.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=cr.DATA;break;case l1.QUOTATION_MARK:t.systemId="",this.state=cr.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case l1.APOSTROPHE:t.systemId="",this.state=cr.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case l1.EOF:this._err(l2.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(l2.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=cr.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){let t=this.currentToken;switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:this.state=cr.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case l1.QUOTATION_MARK:this._err(l2.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=cr.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case l1.APOSTROPHE:this._err(l2.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=cr.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case l1.GREATER_THAN_SIGN:this._err(l2.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=cr.DATA,this.emitCurrentDoctype(t);break;case l1.EOF:this._err(l2.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(l2.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=cr.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:break;case l1.QUOTATION_MARK:t.systemId="",this.state=cr.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case l1.APOSTROPHE:t.systemId="",this.state=cr.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case l1.GREATER_THAN_SIGN:this._err(l2.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=cr.DATA,this.emitCurrentDoctype(t);break;case l1.EOF:this._err(l2.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(l2.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=cr.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case l1.QUOTATION_MARK:this.state=cr.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case l1.NULL:this._err(l2.unexpectedNullCharacter),t.systemId+="�";break;case l1.GREATER_THAN_SIGN:this._err(l2.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=cr.DATA;break;case l1.EOF:this._err(l2.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case l1.APOSTROPHE:this.state=cr.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case l1.NULL:this._err(l2.unexpectedNullCharacter),t.systemId+="�";break;case l1.GREATER_THAN_SIGN:this._err(l2.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=cr.DATA;break;case l1.EOF:this._err(l2.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:break;case l1.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=cr.DATA;break;case l1.EOF:this._err(l2.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(l2.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=cr.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){let t=this.currentToken;switch(e){case l1.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=cr.DATA;break;case l1.NULL:this._err(l2.unexpectedNullCharacter);break;case l1.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case l1.RIGHT_SQUARE_BRACKET:this.state=cr.CDATA_SECTION_BRACKET;break;case l1.EOF:this._err(l2.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===l1.RIGHT_SQUARE_BRACKET?this.state=cr.CDATA_SECTION_END:(this._emitChars("]"),this.state=cr.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case l1.GREATER_THAN_SIGN:this.state=cr.DATA;break;case l1.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=cr.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0)if(this.preprocessor.lastChunkWritten)e=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}0===e?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(l1.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&eh(this.preprocessor.peek(1))?cr.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){eh(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===l1.SEMICOLON&&this._err(l2.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}let eg=new Set([cn.DD,cn.DT,cn.LI,cn.OPTGROUP,cn.OPTION,cn.P,cn.RB,cn.RP,cn.RT,cn.RTC]),eb=new Set([...eg,cn.CAPTION,cn.COLGROUP,cn.TBODY,cn.TD,cn.TFOOT,cn.TH,cn.THEAD,cn.TR]),eE=new Set([cn.APPLET,cn.CAPTION,cn.HTML,cn.MARQUEE,cn.OBJECT,cn.TABLE,cn.TD,cn.TEMPLATE,cn.TH]),ey=new Set([...eE,cn.OL,cn.UL]),eT=new Set([...eE,cn.BUTTON]),ev=new Set([cn.ANNOTATION_XML,cn.MI,cn.MN,cn.MO,cn.MS,cn.MTEXT]),ek=new Set([cn.DESC,cn.FOREIGN_OBJECT,cn.TITLE]),eS=new Set([cn.TR,cn.TEMPLATE,cn.HTML]),eA=new Set([cn.TBODY,cn.TFOOT,cn.THEAD,cn.TEMPLATE,cn.HTML]),eC=new Set([cn.TABLE,cn.TEMPLATE,cn.HTML]),e_=new Set([cn.TD,cn.TH]);class ex{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=cn.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===cn.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===l7.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){let e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){let n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){let r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.current&&void 0!==this.currentTagId&&this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==l7.HTML);this.shortenToLength(Math.max(t,0))}shortenToLength(e){for(;this.stackTop>=e;){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){let t=this._indexOf(e);this.shortenToLength(Math.max(t,0))}popUntilPopped(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(Math.max(n,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(el,l7.HTML)}popUntilTableCellPopped(){this.popUntilPopped(e_,l7.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return -1}clearBackTo(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(eC,l7.HTML)}clearBackToTableBodyContext(){this.clearBackTo(eA,l7.HTML)}clearBackToTableRowContext(){this.clearBackTo(eS,l7.HTML)}remove(e){let t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===cn.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===cn.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){let r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case l7.HTML:if(r===e)return!0;if(t.has(r))return!1;break;case l7.SVG:if(ek.has(r))return!1;break;case l7.MATHML:if(ev.has(r))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,eE)}hasInListItemScope(e){return this.hasInDynamicScope(e,ey)}hasInButtonScope(e){return this.hasInDynamicScope(e,eT)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case l7.HTML:if(el.has(t))return!0;if(eE.has(t))return!1;break;case l7.SVG:if(ek.has(t))return!1;break;case l7.MATHML:if(ev.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===l7.HTML)switch(this.tagIDs[t]){case e:return!0;case cn.TABLE:case cn.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===l7.HTML)switch(this.tagIDs[e]){case cn.TBODY:case cn.THEAD:case cn.TFOOT:return!0;case cn.TABLE:case cn.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===l7.HTML)switch(this.tagIDs[t]){case e:return!0;case cn.OPTION:case cn.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;void 0!==this.currentTagId&&eg.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;void 0!==this.currentTagId&&eb.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;void 0!==this.currentTagId&&this.currentTagId!==e&&eb.has(this.currentTagId);)this.pop()}}(lJ=ci||(ci={}))[lJ.Marker=0]="Marker",lJ[lJ.Element=1]="Element";let ew={type:ci.Marker};class eN{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){let n=[],r=t.length,i=this.treeAdapter.getTagName(e),a=this.treeAdapter.getNamespaceURI(e);for(let e=0;e<this.entries.length;e++){let t=this.entries[e];if(t.type===ci.Marker)break;let{element:o}=t;if(this.treeAdapter.getTagName(o)===i&&this.treeAdapter.getNamespaceURI(o)===a){let t=this.treeAdapter.getAttrList(o);t.length===r&&n.push({idx:e,attrs:t})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<3)return;let t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<3)return;let r=new Map(t.map(e=>[e.name,e.value])),i=0;for(let e=0;e<n.length;e++){let t=n[e];t.attrs.every(e=>r.get(e.name)===e.value)&&(i+=1)>=3&&this.entries.splice(t.idx,1)}}insertMarker(){this.entries.unshift(ew)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:ci.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:ci.Element,element:e,token:t})}removeEntry(e){let t=this.entries.indexOf(e);-1!==t&&this.entries.splice(t,1)}clearToLastMarker(){let e=this.entries.indexOf(ew);-1===e?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){let t=this.entries.find(t=>t.type===ci.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===ci.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===ci.Element&&t.element===e)}}let eI={createDocument:()=>({nodeName:"#document",mode:ce.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),createTextNode:e=>({nodeName:"#text",value:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){let r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,n,r){let i=e.childNodes.find(e=>"#documentType"===e.nodeName);i?(i.name=t,i.publicId=n,i.systemId=r):eI.appendChild(e,{nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null})},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let n=e.childNodes[e.childNodes.length-1];if(eI.isTextNode(n)){n.value+=t;return}}eI.appendChild(e,eI.createTextNode(t))},insertTextBefore(e,t,n){let r=e.childNodes[e.childNodes.indexOf(n)-1];r&&eI.isTextNode(r)?r.value+=t:eI.insertBefore(e,eI.createTextNode(t),n)},adoptAttributes(e,t){let n=new Set(e.attrs.map(e=>e.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild:e=>e.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},eR="html",eO=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],eD=[...eO,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],eP=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),eL=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],eM=[...eL,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function eF(e,t){return t.some(t=>e.startsWith(t))}let eB=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),eH=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:l7.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:l7.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:l7.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:l7.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:l7.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:l7.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:l7.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:l7.XML}],["xml:space",{prefix:"xml",name:"space",namespace:l7.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:l7.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:l7.XMLNS}]]),eU=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),ej=new Set([cn.B,cn.BIG,cn.BLOCKQUOTE,cn.BODY,cn.BR,cn.CENTER,cn.CODE,cn.DD,cn.DIV,cn.DL,cn.DT,cn.EM,cn.EMBED,cn.H1,cn.H2,cn.H3,cn.H4,cn.H5,cn.H6,cn.HEAD,cn.HR,cn.I,cn.IMG,cn.LI,cn.LISTING,cn.MENU,cn.META,cn.NOBR,cn.OL,cn.P,cn.PRE,cn.RUBY,cn.S,cn.SMALL,cn.SPAN,cn.STRONG,cn.STRIKE,cn.SUB,cn.SUP,cn.TABLE,cn.TT,cn.U,cn.UL,cn.VAR]);function eG(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}}function ez(e){for(let t=0;t<e.attrs.length;t++){let n=eB.get(e.attrs[t].name);null!=n&&(e.attrs[t].name=n)}}function e$(e){for(let t=0;t<e.attrs.length;t++){let n=eH.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}(l0=ca||(ca={}))[l0.INITIAL=0]="INITIAL",l0[l0.BEFORE_HTML=1]="BEFORE_HTML",l0[l0.BEFORE_HEAD=2]="BEFORE_HEAD",l0[l0.IN_HEAD=3]="IN_HEAD",l0[l0.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",l0[l0.AFTER_HEAD=5]="AFTER_HEAD",l0[l0.IN_BODY=6]="IN_BODY",l0[l0.TEXT=7]="TEXT",l0[l0.IN_TABLE=8]="IN_TABLE",l0[l0.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",l0[l0.IN_CAPTION=10]="IN_CAPTION",l0[l0.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",l0[l0.IN_TABLE_BODY=12]="IN_TABLE_BODY",l0[l0.IN_ROW=13]="IN_ROW",l0[l0.IN_CELL=14]="IN_CELL",l0[l0.IN_SELECT=15]="IN_SELECT",l0[l0.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",l0[l0.IN_TEMPLATE=17]="IN_TEMPLATE",l0[l0.AFTER_BODY=18]="AFTER_BODY",l0[l0.IN_FRAMESET=19]="IN_FRAMESET",l0[l0.AFTER_FRAMESET=20]="AFTER_FRAMESET",l0[l0.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",l0[l0.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET";let eW={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},eq=new Set([cn.TABLE,cn.TBODY,cn.TFOOT,cn.THEAD,cn.TR]),eV={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:eI,onParseError:null};class eY{constructor(e,t,n=null,r=null){this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=ca.INITIAL,this.originalInsertionMode=ca.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...eV,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=t?t:this.treeAdapter.createDocument(),this.tokenizer=new em(this.options,this),this.activeFormattingElements=new eN(this.treeAdapter),this.fragmentContextID=n?ea(this.treeAdapter.getTagName(n)):cn.UNKNOWN,this._setContextModes(null!=n?n:this.document,this.fragmentContextID),this.openElements=new ex(this.document,this.treeAdapter,this)}static parse(e,t){let n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){let n={...eV,...t};null!=e||(e=n.treeAdapter.createElement(ct.TEMPLATE,l7.HTML,[]));let r=n.treeAdapter.createElement("documentmock",l7.HTML,[]),i=new this(n,r,e);return i.fragmentContextID===cn.TEMPLATE&&i.tmplInsertionModeStack.unshift(ca.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){let e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){var r;if(!this.onParseError)return;let i=null!=(r=e.location)?r:eW,a={code:t,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:n?i.startLine:i.endLine,endCol:n?i.startCol:i.endCol,endOffset:n?i.startOffset:i.endOffset};this.onParseError(a)}onItemPush(e,t,n){var r,i;null==(i=(r=this.treeAdapter).onItemPush)||i.call(r,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null==(r=(n=this.treeAdapter).onItemPop)||r.call(n,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):{current:e,currentTagId:t}=this.openElements,this._setContextModes(e,t)}}_setContextModes(e,t){let n=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===l7.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&void 0!==e&&void 0!==t&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,l7.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=ca.TEXT}switchToPlaintextParsing(){this.insertionMode=ca.TEXT,this.originalInsertionMode=ca.IN_BODY,this.tokenizer.state=ec.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===ct.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===l7.HTML)switch(this.fragmentContextID){case cn.TITLE:case cn.TEXTAREA:this.tokenizer.state=ec.RCDATA;break;case cn.STYLE:case cn.XMP:case cn.IFRAME:case cn.NOEMBED:case cn.NOFRAMES:case cn.NOSCRIPT:this.tokenizer.state=ec.RAWTEXT;break;case cn.SCRIPT:this.tokenizer.state=ec.SCRIPT_DATA;break;case cn.PLAINTEXT:this.tokenizer.state=ec.PLAINTEXT}}_setDocumentType(e){let t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){let t=this.treeAdapter.getChildNodes(this.document).find(e=>this.treeAdapter.isDocumentTypeNode(e));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){let n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(null!=t?t:this.document,e)}}_appendElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){let n=this.treeAdapter.createElement(e,l7.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,l7.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(ct.HTML,l7.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,cn.HTML)}_appendCommentNode(e,t){let n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?({parent:t,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;let r=this.treeAdapter.getChildNodes(t),i=n?r.lastIndexOf(n):r.length,a=r[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){let{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){let n=t.location,r=this.treeAdapter.getTagName(e),i=t.type===l5.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}shouldProcessStartTagTokenInForeignContent(e){let t,n;return!!this.currentNotInHTML&&(0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):{current:t,currentTagId:n}=this.openElements,(e.tagID!==cn.SVG||this.treeAdapter.getTagName(t)!==ct.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==l7.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===cn.MGLYPH||e.tagID===cn.MALIGNMARK)&&void 0!==n&&!this._isIntegrationPoint(n,t,l7.HTML)))}_processToken(e){switch(e.type){case l5.CHARACTER:this.onCharacter(e);break;case l5.NULL_CHARACTER:this.onNullCharacter(e);break;case l5.COMMENT:this.onComment(e);break;case l5.DOCTYPE:this.onDoctype(e);break;case l5.START_TAG:this._processStartTag(e);break;case l5.END_TAG:this.onEndTag(e);break;case l5.EOF:this.onEof(e);break;case l5.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){let r=this.treeAdapter.getNamespaceURI(t),i=this.treeAdapter.getAttrList(t);return(!n||n===l7.HTML)&&function(e,t,n){if(t===l7.MATHML&&e===cn.ANNOTATION_XML){for(let e=0;e<n.length;e++)if(n[e].name===l8.ENCODING){let t=n[e].value.toLowerCase();return"text/html"===t||"application/xhtml+xml"===t}}return t===l7.SVG&&(e===cn.FOREIGN_OBJECT||e===cn.DESC||e===cn.TITLE)}(e,r,i)||(!n||n===l7.MATHML)&&r===l7.MATHML&&(e===cn.MI||e===cn.MO||e===cn.MN||e===cn.MS||e===cn.MTEXT)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.entries.length;if(e){let t=this.activeFormattingElements.entries.findIndex(e=>e.type===ci.Marker||this.openElements.contains(e.element)),n=-1===t?e-1:t-1;for(let e=n;e>=0;e--){let t=this.activeFormattingElements.entries[e];this._insertElement(t.token,this.treeAdapter.getNamespaceURI(t.element)),t.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=ca.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(cn.P),this.openElements.popUntilTagNamePopped(cn.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case cn.TR:this.insertionMode=ca.IN_ROW;return;case cn.TBODY:case cn.THEAD:case cn.TFOOT:this.insertionMode=ca.IN_TABLE_BODY;return;case cn.CAPTION:this.insertionMode=ca.IN_CAPTION;return;case cn.COLGROUP:this.insertionMode=ca.IN_COLUMN_GROUP;return;case cn.TABLE:this.insertionMode=ca.IN_TABLE;return;case cn.BODY:this.insertionMode=ca.IN_BODY;return;case cn.FRAMESET:this.insertionMode=ca.IN_FRAMESET;return;case cn.SELECT:return void this._resetInsertionModeForSelect(e);case cn.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case cn.HTML:this.insertionMode=this.headElement?ca.AFTER_HEAD:ca.BEFORE_HEAD;return;case cn.TD:case cn.TH:if(e>0){this.insertionMode=ca.IN_CELL;return}break;case cn.HEAD:if(e>0){this.insertionMode=ca.IN_HEAD;return}}this.insertionMode=ca.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let e=this.openElements.tagIDs[t];if(e===cn.TEMPLATE)break;if(e===cn.TABLE){this.insertionMode=ca.IN_SELECT_IN_TABLE;return}}this.insertionMode=ca.IN_SELECT}_isElementCausesFosterParenting(e){return eq.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&void 0!==this.openElements.currentTagId&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){let t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case cn.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===l7.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case cn.TABLE:{let n=this.treeAdapter.getParentNode(t);if(n)return{parent:n,beforeElement:t};return{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){return es[this.treeAdapter.getNamespaceURI(e)].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){var t,n;return void(t=this,n=e,t._insertCharacters(n),t.framesetOk=!1)}switch(this.insertionMode){case ca.INITIAL:eZ(this,e);break;case ca.BEFORE_HTML:eJ(this,e);break;case ca.BEFORE_HEAD:e0(this,e);break;case ca.IN_HEAD:e5(this,e);break;case ca.IN_HEAD_NO_SCRIPT:e6(this,e);break;case ca.AFTER_HEAD:e9(this,e);break;case ca.IN_BODY:case ca.IN_CAPTION:case ca.IN_CELL:case ca.IN_TEMPLATE:e7(this,e);break;case ca.TEXT:case ca.IN_SELECT:case ca.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case ca.IN_TABLE:case ca.IN_TABLE_BODY:case ca.IN_ROW:ts(this,e);break;case ca.IN_TABLE_TEXT:th(this,e);break;case ca.IN_COLUMN_GROUP:tg(this,e);break;case ca.AFTER_BODY:tC(this,e);break;case ca.AFTER_AFTER_BODY:t_(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){var t,n;return void(t=this,(n=e).chars="�",t._insertCharacters(n))}switch(this.insertionMode){case ca.INITIAL:eZ(this,e);break;case ca.BEFORE_HTML:eJ(this,e);break;case ca.BEFORE_HEAD:e0(this,e);break;case ca.IN_HEAD:e5(this,e);break;case ca.IN_HEAD_NO_SCRIPT:e6(this,e);break;case ca.AFTER_HEAD:e9(this,e);break;case ca.TEXT:this._insertCharacters(e);break;case ca.IN_TABLE:case ca.IN_TABLE_BODY:case ca.IN_ROW:ts(this,e);break;case ca.IN_COLUMN_GROUP:tg(this,e);break;case ca.AFTER_BODY:tC(this,e);break;case ca.AFTER_AFTER_BODY:t_(this,e)}}onComment(e){var t,n,r,i;if(this.skipNextNewLine=!1,this.currentNotInHTML)return void eX(this,e);switch(this.insertionMode){case ca.INITIAL:case ca.BEFORE_HTML:case ca.BEFORE_HEAD:case ca.IN_HEAD:case ca.IN_HEAD_NO_SCRIPT:case ca.AFTER_HEAD:case ca.IN_BODY:case ca.IN_TABLE:case ca.IN_CAPTION:case ca.IN_COLUMN_GROUP:case ca.IN_TABLE_BODY:case ca.IN_ROW:case ca.IN_CELL:case ca.IN_SELECT:case ca.IN_SELECT_IN_TABLE:case ca.IN_TEMPLATE:case ca.IN_FRAMESET:case ca.AFTER_FRAMESET:eX(this,e);break;case ca.IN_TABLE_TEXT:tp(this,e);break;case ca.AFTER_BODY:t=this,n=e,t._appendCommentNode(n,t.openElements.items[0]);break;case ca.AFTER_AFTER_BODY:case ca.AFTER_AFTER_FRAMESET:r=this,i=e,r._appendCommentNode(i,r.document)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case ca.INITIAL:!function(e,t){e._setDocumentType(t);let n=t.forceQuirks?ce.QUIRKS:function(e){if(e.name!==eR)return ce.QUIRKS;let{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return ce.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),eP.has(n))return ce.QUIRKS;let e=null===t?eD:eO;if(eF(n,e))return ce.QUIRKS;if(eF(n,e=null===t?eL:eM))return ce.LIMITED_QUIRKS}return ce.NO_QUIRKS}(t);(t.name!==eR||null!==t.publicId||null!==t.systemId&&"about:legacy-compat"!==t.systemId)&&e._err(t,l2.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=ca.BEFORE_HTML}(this,e);break;case ca.BEFORE_HEAD:case ca.IN_HEAD:case ca.IN_HEAD_NO_SCRIPT:case ca.AFTER_HEAD:this._err(e,l2.misplacedDoctype);break;case ca.IN_TABLE_TEXT:tp(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,l2.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){let n;if((n=t.tagID)===cn.FONT&&t.attrs.some(({name:e})=>e===l8.COLOR||e===l8.SIZE||e===l8.FACE)||ej.has(n))tx(e),e._startTagOutsideForeignContent(t);else{let n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);if(r===l7.MATHML)eG(t);else if(r===l7.SVG){let e;null!=(e=eU.get(t.tagName))&&(t.tagName=e,t.tagID=ea(t.tagName)),ez(t)}e$(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case ca.INITIAL:eZ(this,e);break;case ca.BEFORE_HTML:t=this,(n=e).tagID===cn.HTML?(t._insertElement(n,l7.HTML),t.insertionMode=ca.BEFORE_HEAD):eJ(t,n);break;case ca.BEFORE_HEAD:var t,n,r,i,a,o,s,l,c,u,d,h,p=this,f=e;switch(f.tagID){case cn.HTML:tr(p,f);break;case cn.HEAD:p._insertElement(f,l7.HTML),p.headElement=p.openElements.current,p.insertionMode=ca.IN_HEAD;break;default:e0(p,f)}break;case ca.IN_HEAD:e1(this,e);break;case ca.IN_HEAD_NO_SCRIPT:var m=this,g=e;switch(g.tagID){case cn.HTML:tr(m,g);break;case cn.BASEFONT:case cn.BGSOUND:case cn.HEAD:case cn.LINK:case cn.META:case cn.NOFRAMES:case cn.STYLE:e1(m,g);break;case cn.NOSCRIPT:m._err(g,l2.nestedNoscriptInHead);break;default:e6(m,g)}break;case ca.AFTER_HEAD:var b=this,E=e;switch(E.tagID){case cn.HTML:tr(b,E);break;case cn.BODY:b._insertElement(E,l7.HTML),b.framesetOk=!1,b.insertionMode=ca.IN_BODY;break;case cn.FRAMESET:b._insertElement(E,l7.HTML),b.insertionMode=ca.IN_FRAMESET;break;case cn.BASE:case cn.BASEFONT:case cn.BGSOUND:case cn.LINK:case cn.META:case cn.NOFRAMES:case cn.SCRIPT:case cn.STYLE:case cn.TEMPLATE:case cn.TITLE:b._err(E,l2.abandonedHeadElementChild),b.openElements.push(b.headElement,cn.HEAD),e1(b,E),b.openElements.remove(b.headElement);break;case cn.HEAD:b._err(E,l2.misplacedStartTagForHeadElement);break;default:e9(b,E)}break;case ca.IN_BODY:tr(this,e);break;case ca.IN_TABLE:tl(this,e);break;case ca.IN_TABLE_TEXT:tp(this,e);break;case ca.IN_CAPTION:let y;r=this,y=(i=e).tagID,tf.has(y)?r.openElements.hasInTableScope(cn.CAPTION)&&(r.openElements.generateImpliedEndTags(),r.openElements.popUntilTagNamePopped(cn.CAPTION),r.activeFormattingElements.clearToLastMarker(),r.insertionMode=ca.IN_TABLE,tl(r,i)):tr(r,i);break;case ca.IN_COLUMN_GROUP:tm(this,e);break;case ca.IN_TABLE_BODY:tb(this,e);break;case ca.IN_ROW:ty(this,e);break;case ca.IN_CELL:let T;a=this,T=(o=e).tagID,tf.has(T)?(a.openElements.hasInTableScope(cn.TD)||a.openElements.hasInTableScope(cn.TH))&&(a._closeTableCell(),ty(a,o)):tr(a,o);break;case ca.IN_SELECT:tv(this,e);break;case ca.IN_SELECT_IN_TABLE:let v;s=this,(v=(l=e).tagID)===cn.CAPTION||v===cn.TABLE||v===cn.TBODY||v===cn.TFOOT||v===cn.THEAD||v===cn.TR||v===cn.TD||v===cn.TH?(s.openElements.popUntilTagNamePopped(cn.SELECT),s._resetInsertionMode(),s._processStartTag(l)):tv(s,l);break;case ca.IN_TEMPLATE:var k=this,S=e;switch(S.tagID){case cn.BASE:case cn.BASEFONT:case cn.BGSOUND:case cn.LINK:case cn.META:case cn.NOFRAMES:case cn.SCRIPT:case cn.STYLE:case cn.TEMPLATE:case cn.TITLE:e1(k,S);break;case cn.CAPTION:case cn.COLGROUP:case cn.TBODY:case cn.TFOOT:case cn.THEAD:k.tmplInsertionModeStack[0]=ca.IN_TABLE,k.insertionMode=ca.IN_TABLE,tl(k,S);break;case cn.COL:k.tmplInsertionModeStack[0]=ca.IN_COLUMN_GROUP,k.insertionMode=ca.IN_COLUMN_GROUP,tm(k,S);break;case cn.TR:k.tmplInsertionModeStack[0]=ca.IN_TABLE_BODY,k.insertionMode=ca.IN_TABLE_BODY,tb(k,S);break;case cn.TD:case cn.TH:k.tmplInsertionModeStack[0]=ca.IN_ROW,k.insertionMode=ca.IN_ROW,ty(k,S);break;default:k.tmplInsertionModeStack[0]=ca.IN_BODY,k.insertionMode=ca.IN_BODY,tr(k,S)}break;case ca.AFTER_BODY:c=this,(u=e).tagID===cn.HTML?tr(c,u):tC(c,u);break;case ca.IN_FRAMESET:var A=this,C=e;switch(C.tagID){case cn.HTML:tr(A,C);break;case cn.FRAMESET:A._insertElement(C,l7.HTML);break;case cn.FRAME:A._appendElement(C,l7.HTML),C.ackSelfClosing=!0;break;case cn.NOFRAMES:e1(A,C)}break;case ca.AFTER_FRAMESET:var _=this,x=e;switch(x.tagID){case cn.HTML:tr(_,x);break;case cn.NOFRAMES:e1(_,x)}break;case ca.AFTER_AFTER_BODY:d=this,(h=e).tagID===cn.HTML?tr(d,h):t_(d,h);break;case ca.AFTER_AFTER_FRAMESET:var w=this,N=e;switch(N.tagID){case cn.HTML:tr(w,N);break;case cn.NOFRAMES:e1(w,N)}}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===cn.P||t.tagID===cn.BR){tx(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){let r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===l7.HTML){e._endTagOutsideForeignContent(t);break}let i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case ca.INITIAL:eZ(this,e);break;case ca.BEFORE_HTML:let t;r=this,((t=(i=e).tagID)===cn.HTML||t===cn.HEAD||t===cn.BODY||t===cn.BR)&&eJ(r,i);break;case ca.BEFORE_HEAD:let n;a=this,(n=(o=e).tagID)===cn.HEAD||n===cn.BODY||n===cn.HTML||n===cn.BR?e0(a,o):a._err(o,l2.endTagWithoutMatchingOpenElement);break;case ca.IN_HEAD:var r,i,a,o,s,l,c,u,d,h,p,f,m=this,g=e;switch(g.tagID){case cn.HEAD:m.openElements.pop(),m.insertionMode=ca.AFTER_HEAD;break;case cn.BODY:case cn.BR:case cn.HTML:e5(m,g);break;case cn.TEMPLATE:e2(m,g);break;default:m._err(g,l2.endTagWithoutMatchingOpenElement)}break;case ca.IN_HEAD_NO_SCRIPT:var b=this,E=e;switch(E.tagID){case cn.NOSCRIPT:b.openElements.pop(),b.insertionMode=ca.IN_HEAD;break;case cn.BR:e6(b,E);break;default:b._err(E,l2.endTagWithoutMatchingOpenElement)}break;case ca.AFTER_HEAD:var y=this,T=e;switch(T.tagID){case cn.BODY:case cn.HTML:case cn.BR:e9(y,T);break;case cn.TEMPLATE:e2(y,T);break;default:y._err(T,l2.endTagWithoutMatchingOpenElement)}break;case ca.IN_BODY:ta(this,e);break;case ca.TEXT:s=this,e.tagID===cn.SCRIPT&&(null==(l=s.scriptHandler)||l.call(s,s.openElements.current)),s.openElements.pop(),s.insertionMode=s.originalInsertionMode;break;case ca.IN_TABLE:tc(this,e);break;case ca.IN_TABLE_TEXT:tp(this,e);break;case ca.IN_CAPTION:var v=this,k=e;let S=k.tagID;switch(S){case cn.CAPTION:case cn.TABLE:v.openElements.hasInTableScope(cn.CAPTION)&&(v.openElements.generateImpliedEndTags(),v.openElements.popUntilTagNamePopped(cn.CAPTION),v.activeFormattingElements.clearToLastMarker(),v.insertionMode=ca.IN_TABLE,S===cn.TABLE&&tc(v,k));break;case cn.BODY:case cn.COL:case cn.COLGROUP:case cn.HTML:case cn.TBODY:case cn.TD:case cn.TFOOT:case cn.TH:case cn.THEAD:case cn.TR:break;default:ta(v,k)}break;case ca.IN_COLUMN_GROUP:var A=this,C=e;switch(C.tagID){case cn.COLGROUP:A.openElements.currentTagId===cn.COLGROUP&&(A.openElements.pop(),A.insertionMode=ca.IN_TABLE);break;case cn.TEMPLATE:e2(A,C);break;case cn.COL:break;default:tg(A,C)}break;case ca.IN_TABLE_BODY:tE(this,e);break;case ca.IN_ROW:tT(this,e);break;case ca.IN_CELL:var _=this,x=e;let w=x.tagID;switch(w){case cn.TD:case cn.TH:_.openElements.hasInTableScope(w)&&(_.openElements.generateImpliedEndTags(),_.openElements.popUntilTagNamePopped(w),_.activeFormattingElements.clearToLastMarker(),_.insertionMode=ca.IN_ROW);break;case cn.TABLE:case cn.TBODY:case cn.TFOOT:case cn.THEAD:case cn.TR:_.openElements.hasInTableScope(w)&&(_._closeTableCell(),tT(_,x));break;case cn.BODY:case cn.CAPTION:case cn.COL:case cn.COLGROUP:case cn.HTML:break;default:ta(_,x)}break;case ca.IN_SELECT:tk(this,e);break;case ca.IN_SELECT_IN_TABLE:let N;c=this,(N=(u=e).tagID)===cn.CAPTION||N===cn.TABLE||N===cn.TBODY||N===cn.TFOOT||N===cn.THEAD||N===cn.TR||N===cn.TD||N===cn.TH?c.openElements.hasInTableScope(N)&&(c.openElements.popUntilTagNamePopped(cn.SELECT),c._resetInsertionMode(),c.onEndTag(u)):tk(c,u);break;case ca.IN_TEMPLATE:d=this,(h=e).tagID===cn.TEMPLATE&&e2(d,h);break;case ca.AFTER_BODY:tA(this,e);break;case ca.IN_FRAMESET:p=this,e.tagID===cn.FRAMESET&&!p.openElements.isRootHtmlElementCurrent()&&(p.openElements.pop(),p.fragmentContext||p.openElements.currentTagId===cn.FRAMESET||(p.insertionMode=ca.AFTER_FRAMESET));break;case ca.AFTER_FRAMESET:f=this,e.tagID===cn.HTML&&(f.insertionMode=ca.AFTER_AFTER_FRAMESET);break;case ca.AFTER_AFTER_BODY:t_(this,e)}}onEof(e){switch(this.insertionMode){case ca.INITIAL:eZ(this,e);break;case ca.BEFORE_HTML:eJ(this,e);break;case ca.BEFORE_HEAD:e0(this,e);break;case ca.IN_HEAD:e5(this,e);break;case ca.IN_HEAD_NO_SCRIPT:e6(this,e);break;case ca.AFTER_HEAD:e9(this,e);break;case ca.IN_BODY:case ca.IN_TABLE:case ca.IN_CAPTION:case ca.IN_COLUMN_GROUP:case ca.IN_TABLE_BODY:case ca.IN_ROW:case ca.IN_CELL:case ca.IN_SELECT:case ca.IN_SELECT_IN_TABLE:to(this,e);break;case ca.TEXT:var t,n;t=this,n=e,t._err(n,l2.eofInElementThatCanContainOnlyText),t.openElements.pop(),t.insertionMode=t.originalInsertionMode,t.onEof(n);break;case ca.IN_TABLE_TEXT:tp(this,e);break;case ca.IN_TEMPLATE:tS(this,e);break;case ca.AFTER_BODY:case ca.IN_FRAMESET:case ca.AFTER_FRAMESET:case ca.AFTER_AFTER_BODY:case ca.AFTER_AFTER_FRAMESET:eQ(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===l1.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)return void this._insertCharacters(e);switch(this.insertionMode){case ca.IN_HEAD:case ca.IN_HEAD_NO_SCRIPT:case ca.AFTER_HEAD:case ca.TEXT:case ca.IN_COLUMN_GROUP:case ca.IN_SELECT:case ca.IN_SELECT_IN_TABLE:case ca.IN_FRAMESET:case ca.AFTER_FRAMESET:this._insertCharacters(e);break;case ca.IN_BODY:case ca.IN_CAPTION:case ca.IN_CELL:case ca.IN_TEMPLATE:case ca.AFTER_BODY:case ca.AFTER_AFTER_BODY:case ca.AFTER_AFTER_FRAMESET:e4(this,e);break;case ca.IN_TABLE:case ca.IN_TABLE_BODY:case ca.IN_ROW:ts(this,e);break;case ca.IN_TABLE_TEXT:td(this,e)}}}function eK(e,t){for(let n=0;n<8;n++){let n=function(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):ti(e,t),n}(e,t);if(!n)break;let r=function(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){let i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;let i=function(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==n;a++,o=i){i=e.openElements.getCommonAncestor(o);let n=e.activeFormattingElements.getElementEntry(o),s=n&&a>=3;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(o)):(o=function(e,t){let n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}(e,r,n.element),a=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(i),a&&function(e,t,n){let r=ea(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{let i=e.treeAdapter.getNamespaceURI(t);r===cn.TEMPLATE&&i===l7.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}(e,a,i),function(e,t,n){let r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}(e,r,n)}}function eX(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function eQ(e,t){if(e.stopped=!0,t.location){let n=2*!e.fragmentContext;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){let n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function eZ(e,t){e._err(t,l2.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,ce.QUIRKS),e.insertionMode=ca.BEFORE_HTML,e._processToken(t)}function eJ(e,t){e._insertFakeRootElement(),e.insertionMode=ca.BEFORE_HEAD,e._processToken(t)}function e0(e,t){e._insertFakeElement(ct.HEAD,cn.HEAD),e.headElement=e.openElements.current,e.insertionMode=ca.IN_HEAD,e._processToken(t)}function e1(e,t){switch(t.tagID){case cn.HTML:tr(e,t);break;case cn.BASE:case cn.BASEFONT:case cn.BGSOUND:case cn.LINK:case cn.META:e._appendElement(t,l7.HTML),t.ackSelfClosing=!0;break;case cn.TITLE:e._switchToTextParsing(t,ec.RCDATA);break;case cn.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,ec.RAWTEXT):(e._insertElement(t,l7.HTML),e.insertionMode=ca.IN_HEAD_NO_SCRIPT);break;case cn.NOFRAMES:case cn.STYLE:e._switchToTextParsing(t,ec.RAWTEXT);break;case cn.SCRIPT:e._switchToTextParsing(t,ec.SCRIPT_DATA);break;case cn.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=ca.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(ca.IN_TEMPLATE);break;case cn.HEAD:e._err(t,l2.misplacedStartTagForHeadElement);break;default:e5(e,t)}}function e2(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==cn.TEMPLATE&&e._err(t,l2.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(cn.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,l2.endTagWithoutMatchingOpenElement)}function e5(e,t){e.openElements.pop(),e.insertionMode=ca.AFTER_HEAD,e._processToken(t)}function e6(e,t){let n=t.type===l5.EOF?l2.openElementsLeftAfterEof:l2.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=ca.IN_HEAD,e._processToken(t)}function e9(e,t){e._insertFakeElement(ct.BODY,cn.BODY),e.insertionMode=ca.IN_BODY,e3(e,t)}function e3(e,t){switch(t.type){case l5.CHARACTER:e7(e,t);break;case l5.WHITESPACE_CHARACTER:e4(e,t);break;case l5.COMMENT:eX(e,t);break;case l5.START_TAG:tr(e,t);break;case l5.END_TAG:ta(e,t);break;case l5.EOF:to(e,t)}}function e4(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function e7(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function e8(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,l7.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function te(e){let t=J(e,l8.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function tt(e,t){e._switchToTextParsing(t,ec.RAWTEXT)}function tn(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,l7.HTML)}function tr(e,t){switch(t.tagID){case cn.I:case cn.S:case cn.B:case cn.U:case cn.EM:case cn.TT:case cn.BIG:case cn.CODE:case cn.FONT:case cn.SMALL:case cn.STRIKE:case cn.STRONG:e._reconstructActiveFormattingElements(),e._insertElement(t,l7.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case cn.A:let n;(n=e.activeFormattingElements.getElementEntryInScopeWithTagName(ct.A))&&(eK(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,l7.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case cn.H1:case cn.H2:case cn.H3:case cn.H4:case cn.H5:case cn.H6:e.openElements.hasInButtonScope(cn.P)&&e._closePElement(),void 0!==e.openElements.currentTagId&&el.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,l7.HTML);break;case cn.P:case cn.DL:case cn.OL:case cn.UL:case cn.DIV:case cn.DIR:case cn.NAV:case cn.MAIN:case cn.MENU:case cn.ASIDE:case cn.CENTER:case cn.FIGURE:case cn.FOOTER:case cn.HEADER:case cn.HGROUP:case cn.DIALOG:case cn.DETAILS:case cn.ADDRESS:case cn.ARTICLE:case cn.SEARCH:case cn.SECTION:case cn.SUMMARY:case cn.FIELDSET:case cn.BLOCKQUOTE:case cn.FIGCAPTION:e.openElements.hasInButtonScope(cn.P)&&e._closePElement(),e._insertElement(t,l7.HTML);break;case cn.LI:case cn.DD:case cn.DT:e.framesetOk=!1;let r=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){let n=e.openElements.tagIDs[t];if(r===cn.LI&&n===cn.LI||(r===cn.DD||r===cn.DT)&&(n===cn.DD||n===cn.DT)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n);break}if(n!==cn.ADDRESS&&n!==cn.DIV&&n!==cn.P&&e._isSpecialElement(e.openElements.items[t],n))break}e.openElements.hasInButtonScope(cn.P)&&e._closePElement(),e._insertElement(t,l7.HTML);break;case cn.BR:case cn.IMG:case cn.WBR:case cn.AREA:case cn.EMBED:case cn.KEYGEN:e8(e,t);break;case cn.HR:e.openElements.hasInButtonScope(cn.P)&&e._closePElement(),e._appendElement(t,l7.HTML),e.framesetOk=!1,t.ackSelfClosing=!0;break;case cn.RB:case cn.RTC:e.openElements.hasInScope(cn.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,l7.HTML);break;case cn.RT:case cn.RP:e.openElements.hasInScope(cn.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(cn.RTC),e._insertElement(t,l7.HTML);break;case cn.PRE:case cn.LISTING:e.openElements.hasInButtonScope(cn.P)&&e._closePElement(),e._insertElement(t,l7.HTML),e.skipNextNewLine=!0,e.framesetOk=!1;break;case cn.XMP:e.openElements.hasInButtonScope(cn.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,ec.RAWTEXT);break;case cn.SVG:e._reconstructActiveFormattingElements(),ez(t),e$(t),t.selfClosing?e._appendElement(t,l7.SVG):e._insertElement(t,l7.SVG),t.ackSelfClosing=!0;break;case cn.HTML:0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs);break;case cn.BASE:case cn.LINK:case cn.META:case cn.STYLE:case cn.TITLE:case cn.SCRIPT:case cn.BGSOUND:case cn.BASEFONT:case cn.TEMPLATE:e1(e,t);break;case cn.BODY:let i;(i=e.openElements.tryPeekProperlyNestedBodyElement())&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(i,t.attrs));break;case cn.FORM:let a;a=e.openElements.tmplCount>0,(!e.formElement||a)&&(e.openElements.hasInButtonScope(cn.P)&&e._closePElement(),e._insertElement(t,l7.HTML),a||(e.formElement=e.openElements.current));break;case cn.NOBR:e._reconstructActiveFormattingElements(),e.openElements.hasInScope(cn.NOBR)&&(eK(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,l7.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case cn.MATH:e._reconstructActiveFormattingElements(),eG(t),e$(t),t.selfClosing?e._appendElement(t,l7.MATHML):e._insertElement(t,l7.MATHML),t.ackSelfClosing=!0;break;case cn.TABLE:e.treeAdapter.getDocumentMode(e.document)!==ce.QUIRKS&&e.openElements.hasInButtonScope(cn.P)&&e._closePElement(),e._insertElement(t,l7.HTML),e.framesetOk=!1,e.insertionMode=ca.IN_TABLE;break;case cn.INPUT:e._reconstructActiveFormattingElements(),e._appendElement(t,l7.HTML),te(t)||(e.framesetOk=!1),t.ackSelfClosing=!0;break;case cn.PARAM:case cn.TRACK:case cn.SOURCE:e._appendElement(t,l7.HTML),t.ackSelfClosing=!0;break;case cn.IMAGE:t.tagName=ct.IMG,t.tagID=cn.IMG,e8(e,t);break;case cn.BUTTON:e.openElements.hasInScope(cn.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(cn.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,l7.HTML),e.framesetOk=!1;break;case cn.APPLET:case cn.OBJECT:case cn.MARQUEE:e._reconstructActiveFormattingElements(),e._insertElement(t,l7.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1;break;case cn.IFRAME:e.framesetOk=!1,e._switchToTextParsing(t,ec.RAWTEXT);break;case cn.SELECT:e._reconstructActiveFormattingElements(),e._insertElement(t,l7.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===ca.IN_TABLE||e.insertionMode===ca.IN_CAPTION||e.insertionMode===ca.IN_TABLE_BODY||e.insertionMode===ca.IN_ROW||e.insertionMode===ca.IN_CELL?ca.IN_SELECT_IN_TABLE:ca.IN_SELECT;break;case cn.OPTION:case cn.OPTGROUP:e.openElements.currentTagId===cn.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,l7.HTML);break;case cn.NOEMBED:case cn.NOFRAMES:tt(e,t);break;case cn.FRAMESET:let o;o=e.openElements.tryPeekProperlyNestedBodyElement(),e.framesetOk&&o&&(e.treeAdapter.detachNode(o),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,l7.HTML),e.insertionMode=ca.IN_FRAMESET);break;case cn.TEXTAREA:e._insertElement(t,l7.HTML),e.skipNextNewLine=!0,e.tokenizer.state=ec.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=ca.TEXT;break;case cn.NOSCRIPT:e.options.scriptingEnabled?tt(e,t):tn(e,t);break;case cn.PLAINTEXT:e.openElements.hasInButtonScope(cn.P)&&e._closePElement(),e._insertElement(t,l7.HTML),e.tokenizer.state=ec.PLAINTEXT;break;case cn.COL:case cn.TH:case cn.TD:case cn.TR:case cn.HEAD:case cn.FRAME:case cn.TBODY:case cn.TFOOT:case cn.THEAD:case cn.CAPTION:case cn.COLGROUP:break;default:tn(e,t)}}function ti(e,t){let n=t.tagName,r=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){let i=e.openElements.items[t],a=e.openElements.tagIDs[t];if(r===a&&(r!==cn.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(i,a))break}}function ta(e,t){switch(t.tagID){case cn.A:case cn.B:case cn.I:case cn.S:case cn.U:case cn.EM:case cn.TT:case cn.BIG:case cn.CODE:case cn.FONT:case cn.NOBR:case cn.SMALL:case cn.STRIKE:case cn.STRONG:eK(e,t);break;case cn.P:e.openElements.hasInButtonScope(cn.P)||e._insertFakeElement(ct.P,cn.P),e._closePElement();break;case cn.DL:case cn.UL:case cn.OL:case cn.DIR:case cn.DIV:case cn.NAV:case cn.PRE:case cn.MAIN:case cn.MENU:case cn.ASIDE:case cn.BUTTON:case cn.CENTER:case cn.FIGURE:case cn.FOOTER:case cn.HEADER:case cn.HGROUP:case cn.DIALOG:case cn.ADDRESS:case cn.ARTICLE:case cn.DETAILS:case cn.SEARCH:case cn.SECTION:case cn.SUMMARY:case cn.LISTING:case cn.FIELDSET:case cn.BLOCKQUOTE:case cn.FIGCAPTION:let n;n=t.tagID,e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n));break;case cn.LI:e.openElements.hasInListItemScope(cn.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(cn.LI),e.openElements.popUntilTagNamePopped(cn.LI));break;case cn.DD:case cn.DT:let r;r=t.tagID,e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r));break;case cn.H1:case cn.H2:case cn.H3:case cn.H4:case cn.H5:case cn.H6:e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped());break;case cn.BR:e._reconstructActiveFormattingElements(),e._insertFakeElement(ct.BR,cn.BR),e.openElements.pop(),e.framesetOk=!1;break;case cn.BODY:if(e.openElements.hasInScope(cn.BODY)&&(e.insertionMode=ca.AFTER_BODY,e.options.sourceCodeLocationInfo)){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}break;case cn.HTML:e.openElements.hasInScope(cn.BODY)&&(e.insertionMode=ca.AFTER_BODY,tA(e,t));break;case cn.FORM:!function(e){let t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(cn.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(cn.FORM):n&&e.openElements.remove(n))}(e);break;case cn.APPLET:case cn.OBJECT:case cn.MARQUEE:let i;i=t.tagID,e.openElements.hasInScope(i)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(i),e.activeFormattingElements.clearToLastMarker());break;case cn.TEMPLATE:e2(e,t);break;default:ti(e,t)}}function to(e,t){e.tmplInsertionModeStack.length>0?tS(e,t):eQ(e,t)}function ts(e,t){if(void 0!==e.openElements.currentTagId&&eq.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=ca.IN_TABLE_TEXT,t.type){case l5.CHARACTER:th(e,t);break;case l5.WHITESPACE_CHARACTER:td(e,t)}else tu(e,t)}function tl(e,t){switch(t.tagID){case cn.TD:case cn.TH:case cn.TR:e.openElements.clearBackToTableContext(),e._insertFakeElement(ct.TBODY,cn.TBODY),e.insertionMode=ca.IN_TABLE_BODY,tb(e,t);break;case cn.STYLE:case cn.SCRIPT:case cn.TEMPLATE:e1(e,t);break;case cn.COL:e.openElements.clearBackToTableContext(),e._insertFakeElement(ct.COLGROUP,cn.COLGROUP),e.insertionMode=ca.IN_COLUMN_GROUP,tm(e,t);break;case cn.FORM:e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,l7.HTML),e.formElement=e.openElements.current,e.openElements.pop());break;case cn.TABLE:e.openElements.hasInTableScope(cn.TABLE)&&(e.openElements.popUntilTagNamePopped(cn.TABLE),e._resetInsertionMode(),e._processStartTag(t));break;case cn.TBODY:case cn.TFOOT:case cn.THEAD:e.openElements.clearBackToTableContext(),e._insertElement(t,l7.HTML),e.insertionMode=ca.IN_TABLE_BODY;break;case cn.INPUT:te(t)?e._appendElement(t,l7.HTML):tu(e,t),t.ackSelfClosing=!0;break;case cn.CAPTION:e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,l7.HTML),e.insertionMode=ca.IN_CAPTION;break;case cn.COLGROUP:e.openElements.clearBackToTableContext(),e._insertElement(t,l7.HTML),e.insertionMode=ca.IN_COLUMN_GROUP;break;default:tu(e,t)}}function tc(e,t){switch(t.tagID){case cn.TABLE:e.openElements.hasInTableScope(cn.TABLE)&&(e.openElements.popUntilTagNamePopped(cn.TABLE),e._resetInsertionMode());break;case cn.TEMPLATE:e2(e,t);break;case cn.BODY:case cn.CAPTION:case cn.COL:case cn.COLGROUP:case cn.HTML:case cn.TBODY:case cn.TD:case cn.TFOOT:case cn.TH:case cn.THEAD:case cn.TR:break;default:tu(e,t)}}function tu(e,t){let n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e3(e,t),e.fosterParentingEnabled=n}function td(e,t){e.pendingCharacterTokens.push(t)}function th(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function tp(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)tu(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}let tf=new Set([cn.CAPTION,cn.COL,cn.COLGROUP,cn.TBODY,cn.TD,cn.TFOOT,cn.TH,cn.THEAD,cn.TR]);function tm(e,t){switch(t.tagID){case cn.HTML:tr(e,t);break;case cn.COL:e._appendElement(t,l7.HTML),t.ackSelfClosing=!0;break;case cn.TEMPLATE:e1(e,t);break;default:tg(e,t)}}function tg(e,t){e.openElements.currentTagId===cn.COLGROUP&&(e.openElements.pop(),e.insertionMode=ca.IN_TABLE,e._processToken(t))}function tb(e,t){switch(t.tagID){case cn.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,l7.HTML),e.insertionMode=ca.IN_ROW;break;case cn.TH:case cn.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(ct.TR,cn.TR),e.insertionMode=ca.IN_ROW,ty(e,t);break;case cn.CAPTION:case cn.COL:case cn.COLGROUP:case cn.TBODY:case cn.TFOOT:case cn.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ca.IN_TABLE,tl(e,t));break;default:tl(e,t)}}function tE(e,t){let n=t.tagID;switch(t.tagID){case cn.TBODY:case cn.TFOOT:case cn.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ca.IN_TABLE);break;case cn.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ca.IN_TABLE,tc(e,t));break;case cn.BODY:case cn.CAPTION:case cn.COL:case cn.COLGROUP:case cn.HTML:case cn.TD:case cn.TH:case cn.TR:break;default:tc(e,t)}}function ty(e,t){switch(t.tagID){case cn.TH:case cn.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,l7.HTML),e.insertionMode=ca.IN_CELL,e.activeFormattingElements.insertMarker();break;case cn.CAPTION:case cn.COL:case cn.COLGROUP:case cn.TBODY:case cn.TFOOT:case cn.THEAD:case cn.TR:e.openElements.hasInTableScope(cn.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ca.IN_TABLE_BODY,tb(e,t));break;default:tl(e,t)}}function tT(e,t){switch(t.tagID){case cn.TR:e.openElements.hasInTableScope(cn.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ca.IN_TABLE_BODY);break;case cn.TABLE:e.openElements.hasInTableScope(cn.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ca.IN_TABLE_BODY,tE(e,t));break;case cn.TBODY:case cn.TFOOT:case cn.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(cn.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ca.IN_TABLE_BODY,tE(e,t));break;case cn.BODY:case cn.CAPTION:case cn.COL:case cn.COLGROUP:case cn.HTML:case cn.TD:case cn.TH:break;default:tc(e,t)}}function tv(e,t){switch(t.tagID){case cn.HTML:tr(e,t);break;case cn.OPTION:e.openElements.currentTagId===cn.OPTION&&e.openElements.pop(),e._insertElement(t,l7.HTML);break;case cn.OPTGROUP:e.openElements.currentTagId===cn.OPTION&&e.openElements.pop(),e.openElements.currentTagId===cn.OPTGROUP&&e.openElements.pop(),e._insertElement(t,l7.HTML);break;case cn.HR:e.openElements.currentTagId===cn.OPTION&&e.openElements.pop(),e.openElements.currentTagId===cn.OPTGROUP&&e.openElements.pop(),e._appendElement(t,l7.HTML),t.ackSelfClosing=!0;break;case cn.INPUT:case cn.KEYGEN:case cn.TEXTAREA:case cn.SELECT:e.openElements.hasInSelectScope(cn.SELECT)&&(e.openElements.popUntilTagNamePopped(cn.SELECT),e._resetInsertionMode(),t.tagID!==cn.SELECT&&e._processStartTag(t));break;case cn.SCRIPT:case cn.TEMPLATE:e1(e,t)}}function tk(e,t){switch(t.tagID){case cn.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===cn.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===cn.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===cn.OPTGROUP&&e.openElements.pop();break;case cn.OPTION:e.openElements.currentTagId===cn.OPTION&&e.openElements.pop();break;case cn.SELECT:e.openElements.hasInSelectScope(cn.SELECT)&&(e.openElements.popUntilTagNamePopped(cn.SELECT),e._resetInsertionMode());break;case cn.TEMPLATE:e2(e,t)}}function tS(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(cn.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):eQ(e,t)}function tA(e,t){var n;if(t.tagID===cn.HTML){if(e.fragmentContext||(e.insertionMode=ca.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===cn.HTML){e._setEndLocation(e.openElements.items[0],t);let r=e.openElements.items[1];!r||(null==(n=e.treeAdapter.getNodeSourceCodeLocation(r))?void 0:n.endTag)||e._setEndLocation(r,t)}}else tC(e,t)}function tC(e,t){e.insertionMode=ca.IN_BODY,e3(e,t)}function t_(e,t){e.insertionMode=ca.IN_BODY,e3(e,t)}function tx(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==l7.HTML&&void 0!==e.openElements.currentTagId&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}String.prototype.codePointAt,ct.AREA,ct.BASE,ct.BASEFONT,ct.BGSOUND,ct.BR,ct.COL,ct.EMBED,ct.FRAME,ct.HR,ct.IMG,ct.INPUT,ct.KEYGEN,ct.LINK,ct.META,ct.PARAM,ct.SOURCE,ct.TRACK,ct.WBR;let tw=tI("end"),tN=tI("start");function tI(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function tR(e){let t=tN(e),n=tw(e);if(t&&n)return{start:t,end:n}}let tO=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,tD=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),tP={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function tL(e,t){var n,r;let i,o,s=!!((i="root"===(r=e).type?r.children[0]:r)&&("doctype"===i.type||"element"===i.type&&"html"===i.tagName.toLowerCase())),l=(0,H.A)("type",{handlers:{root:tF,element:tB,text:tH,comment:tj,doctype:tU,raw:tG},unknown:tz}),c={parser:s?new eY(tP):eY.getFragmentParser(void 0,tP),handle(e){l(e,c)},stitches:!1,options:t||{}};l(e,c),t$(c,tN());let u=(n=s?c.parser.document:c.parser.getFragment(),O({file:(o={file:c.options.file}).file||void 0,location:!1,schema:"svg"===o.space?_.JW:_.qy,verbose:o.verbose||!1},n));return(c.stitches&&(0,a.YR)(u,"comment",function(e,t,n){if(e.value.stitch&&n&&void 0!==t)return n.children[t]=e.value.stitch,t}),"root"===u.type&&1===u.children.length&&u.children[0].type===e.type)?u.children[0]:u}function tM(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function tF(e,t){tM(e.children,t)}function tB(e,t){(function(e,t){let n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===ec.PLAINTEXT)return;t$(t,tN(e));let r=t.parser.openElements.current,i="namespaceURI"in r?r.namespaceURI:N.t.html;i===N.t.html&&"svg"===n&&(i=N.t.svg);let a=j({...e,children:[]},"svg"===({space:i===N.t.svg?"svg":"html"}).space?_.JW:_.qy),o={type:l5.START_TAG,tagName:n,tagID:ea(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:tq(e)};t.parser.currentToken=o,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n})(e,t),tM(e.children,t),function(e,t){let n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&$.b.includes(n)||t.parser.tokenizer.state===ec.PLAINTEXT)return;t$(t,tw(e));let r={type:l5.END_TAG,tagName:n,tagID:ea(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:tq(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===ec.RCDATA||t.parser.tokenizer.state===ec.RAWTEXT||t.parser.tokenizer.state===ec.SCRIPT_DATA)&&(t.parser.tokenizer.state=ec.DATA)}(e,t)}function tH(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);let n={type:l5.CHARACTER,chars:e.value,location:tq(e)};t$(t,tN(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function tU(e,t){let n={type:l5.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:tq(e)};t$(t,tN(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function tj(e,t){let n=e.value,r={type:l5.COMMENT,data:n,location:tq(e)};t$(t,tN(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function tG(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,tW(t,tN(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(tO,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;let e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function tz(e,t){if(t.options.passThrough&&t.options.passThrough.includes(e.type)){var n;let r;t.stitches=!0,r="children"in(n=e)?S({...n,children:[]}):S(n),"children"in e&&"children"in r&&(r.children=tL({type:"root",children:e.children},t.options).children),tj({type:"comment",value:{stitch:r}},t)}else{let t="";throw tD.has(e.type)&&(t=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),Error("Cannot compile `"+e.type+"` node"+t)}}function t$(e,t){tW(e,t);let n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=ec.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function tW(e,t){if(t&&void 0!==t.offset){let n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function tq(e){let t=tN(e)||{line:void 0,column:void 0,offset:void 0},n=tw(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function tV(e){return function(t,n){return tL(t,{...e,file:n})}}let tY=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],tK={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...tY,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...tY],h2:[["className","sr-only"]],img:[...tY,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...tY,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...tY],table:[...tY],ul:[...tY,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},tX={}.hasOwnProperty;function tQ(e,t){if(t&&"object"==typeof t)switch("string"==typeof t.type?t.type:""){case"comment":var n,r,i=e,a=t;if(i.schema.allowComments){let e="string"==typeof a.value?a.value:"",t=e.indexOf("--\x3e"),n={type:"comment",value:t<0?e:e.slice(0,t)};return t1(n,a),n}return;case"doctype":var o=e,s=t;if(o.schema.allowDoctypes){let e={type:"doctype"};return t1(e,s),e}return;case"element":return function(e,t){let n="string"==typeof t.tagName?t.tagName:"";e.stack.push(n);let r=tZ(e,t.children),i=function(e,t){let n,r=e.stack[e.stack.length-1],i=e.schema.attributes,a=e.schema.required,o=i&&tX.call(i,r)?i[r]:void 0,s=i&&tX.call(i,"*")?i["*"]:void 0,l=t&&"object"==typeof t?t:{},c={};for(n in l)if(tX.call(l,n)){let t=l[n],r=tJ(e,t2(o,n),n,t);null==r&&(r=tJ(e,t2(s,n),n,t)),null!=r&&(c[n]=r)}if(a&&tX.call(a,r)){let e=a[r];for(n in e)tX.call(e,n)&&!tX.call(c,n)&&(c[n]=e[n])}return c}(e,t.properties);e.stack.pop();let a=!1;if(n&&"*"!==n&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&tX.call(e.schema.ancestors,n))){let t=e.schema.ancestors[n],r=-1;for(a=!1;++r<t.length;)e.stack.includes(t[r])&&(a=!0)}if(!a)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;let o={type:"element",tagName:n,properties:i,children:r};return t1(o,t),o}(e,t);case"root":let l;return t1(l={type:"root",children:tZ(e,(n=t).children)},n),l;case"text":let c;return t1(c={type:"text",value:"string"==typeof(r=t).value?r.value:""},r),c}}function tZ(e,t){let n=[];if(Array.isArray(t)){let r=-1;for(;++r<t.length;){let i=tQ(e,t[r]);i&&(Array.isArray(i)?n.push(...i):n.push(i))}}return n}function tJ(e,t,n,r){return t?Array.isArray(r)?function(e,t,n,r){let i=-1,a=[];for(;++i<r.length;){let o=t0(e,t,n,r[i]);("number"==typeof o||"string"==typeof o)&&a.push(o)}return a}(e,t,n,r):t0(e,t,n,r):void 0}function t0(e,t,n,r){if(("boolean"==typeof r||"number"==typeof r||"string"==typeof r)&&function(e,t,n){let r=e.schema.protocols&&tX.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||0===r.length)return!0;let i=String(n),a=i.indexOf(":"),o=i.indexOf("?"),s=i.indexOf("#"),l=i.indexOf("/");if(a<0||l>-1&&a>l||o>-1&&a>o||s>-1&&a>s)return!0;let c=-1;for(;++c<r.length;){let e=r[c];if(a===e.length&&i.slice(0,e.length)===e)return!0}return!1}(e,n,r)){if("object"==typeof t&&t.length>1){let e=!1,n=0;for(;++n<t.length;){let i=t[n];if(i&&"object"==typeof i&&"flags"in i){if(i.test(String(r))){e=!0;break}}else if(i===r){e=!0;break}}if(!e)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function t1(e,t){let n=tR(t);t.data&&(e.data=S(t.data)),n&&(e.position=n)}function t2(e,t){let n,r=-1;if(e)for(;++r<e.length;){let i=e[r],a="string"==typeof i?i:i[0];if(a===t)return i;"data*"===a&&(n=i)}if(t.length>4&&"data"===t.slice(0,4).toLowerCase())return n}function t5(e){return function(t){let n,r;return n={type:"root",children:[]},(r=tQ({schema:e?{...tK,...e}:tK,stack:[]},t))&&(Array.isArray(r)?1===r.length?n=r[0]:n.children=r:n=r),n}}var t6=n(62275),t9=n(1052),t3=n(64587);let t4="phrasing",t7=["autolink","link","image","label"];function t8(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ne(e){this.config.enter.autolinkProtocol.call(this,e)}function nt(e){this.config.exit.autolinkProtocol.call(this,e)}function nn(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];(0,A.ok)("link"===t.type),t.url="http://"+this.sliceSerialize(e)}function nr(e){this.config.exit.autolinkEmail.call(this,e)}function ni(e){this.exit(e)}function na(e){!function(e,t,n){let r=(0,t3.C)((n||{}).ignore||[]),i=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){var i;let e=n[r];t.push(["string"==typeof(i=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(i),"g"):i,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),a=-1;for(;++a<i.length;)(0,o.VG)(e,"text",s);function s(e,t){let n,o=-1;for(;++o<t.length;){let e=t[o],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=i[a][0],o=i[a][1],s=0,l=n.children.indexOf(e),c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},a=o(...d,i);if("string"==typeof a&&(a=a.length>0?{type:"text",value:a}:void 0),!1===a?r.lastIndex=n+1:(s!==n&&u.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}return c?(s<e.value.length&&u.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...u)):u=[e],l+u.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,no],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,ns]],{ignore:["link","linkReference"]})}function no(e,t,n,r,i){let a,o="";if(!nl(i))return!1;if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),(a=n.split(".")).length<2||a[a.length-1]&&(/_/.test(a[a.length-1])||!/[a-zA-Z\d]/.test(a[a.length-1]))||a[a.length-2]&&(/_/.test(a[a.length-2])||!/[a-zA-Z\d]/.test(a[a.length-2])))return!1;let s=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),i=(0,t6.D)(e,"("),a=(0,t6.D)(e,")");for(;-1!==r&&i>a;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),a++;return[e,n]}(n+r);if(!s[0])return!1;let l={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[l,{type:"text",value:s[1]}]:l}function ns(e,t,n,r){return!(!nl(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function nl(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||(0,t9.Ny)(n)||(0,t9.es)(n))&&(!t||47!==n)}function nc(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function nu(){this.buffer()}function nd(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function nh(){this.buffer()}function np(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function nf(e){let t=this.resume(),n=this.stack[this.stack.length-1];(0,A.ok)("footnoteReference"===n.type),n.identifier=nc(this.sliceSerialize(e)).toLowerCase(),n.label=t}function nm(e){this.exit(e)}function ng(e){let t=this.resume(),n=this.stack[this.stack.length-1];(0,A.ok)("footnoteDefinition"===n.type),n.identifier=nc(this.sliceSerialize(e)).toLowerCase(),n.label=t}function nb(e){this.exit(e)}function nE(e,t,n,r){let i=n.createTracker(r),a=i.move("[^"),o=n.enter("footnoteReference"),s=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),s(),o(),a+=i.move("]")}function ny(e,t,n){return 0===t?e:nT(e,t,n)}function nT(e,t,n){return(n?"":" ")+e}nE.peek=function(){return"["};let nv=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function nk(e){this.enter({type:"delete",children:[]},e)}function nS(e){this.exit(e)}function nA(e,t,n,r){let i=n.createTracker(r),a=n.enter("strikethrough"),o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function nC(e){return e.length}function n_(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:114*(82===t||114===t)}nA.peek=function(){return"~"};n(13332);function nx(e){return null===e||(0,t9.Ee)(e)||(0,t9.Ny)(e)?1:(0,t9.es)(e)?2:void 0}let nw={};function nN(e,t){let n=t||nw;return nI(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function nI(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return nR(e.children,t,n)}return Array.isArray(e)?nR(e,t,n):""}function nR(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=nI(e[i],t,n);return r.join("")}function nO(e,t,n){let r=e.value||"",i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){let e,t=n.unsafe[a],i=n.compilePattern(t);if(t.atBreak)for(;e=i.exec(r);){let t=e.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(e.index+1)}}return i+r+i}nO.peek=function(){return"`"};(0,t3.C)(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);let nD=function(e,t,n,r){let i=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),a=n.bulletCurrent||function(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(a=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+a);let o=a.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(o=4*Math.ceil(o/4));let s=n.createTracker(r);s.move(a+" ".repeat(o-a.length)),s.shift(o);let l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),function(e,t,n){return t?(n?"":" ".repeat(o))+e:(n?a:a+" ".repeat(o-a.length))+e});return l(),c};function nP(e){let t=e._align;(0,A.ok)(t,"expected `_align` on table"),this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function nL(e){this.exit(e),this.data.inTable=void 0}function nM(e){this.enter({type:"tableRow",children:[]},e)}function nF(e){this.exit(e)}function nB(e){this.enter({type:"tableCell",children:[]},e)}function nH(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,nU));let n=this.stack[this.stack.length-1];(0,A.ok)("inlineCode"===n.type),n.value=t,this.exit(e)}function nU(e,t){return"|"===t?t:e}function nj(e){let t=this.stack[this.stack.length-2];(0,A.ok)("listItem"===t.type),t.checked="taskListCheckValueChecked"===e.type}function nG(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];(0,A.ok)("paragraph"===e.type);let n=e.children[0];if(n&&"text"===n.type){let r,i=t.children,a=-1;for(;++a<i.length;){let e=i[a];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function nz(e,t,n,r){let i=e.children[0],a="boolean"==typeof e.checked&&i&&"paragraph"===i.type,o="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);a&&s.move(o);let l=nD(e,t,n,{...r,...s.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+o})),l}var n$=n(12835);let nW={}.hasOwnProperty;function nq(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let r,i=(nW.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];if(a)for(r in a){nW.call(i,r)||(i[r]=[]);let e=a[r];!function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);(0,n$.m)(e,0,0,r)}(i[r],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}let nV={tokenize:function(e,t,n){let r=0;return function t(a){return(87===a||119===a)&&r<3?(r++,e.consume(a),t):46===a&&3===r?(e.consume(a),i):n(a)};function i(e){return null===e?n(e):t(e)}},partial:!0},nY={tokenize:function(e,t,n){let r,i,a;return o;function o(t){return 46===t||95===t?e.check(nX,l,s)(t):null===t||(0,t9.Ee)(t)||(0,t9.Ny)(t)||45!==t&&(0,t9.es)(t)?l(t):(a=!0,e.consume(t),o)}function s(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),o}function l(e){return i||r||!a?n(e):t(e)}},partial:!0},nK={tokenize:function(e,t){let n=0,r=0;return i;function i(o){return 40===o?(n++,e.consume(o),i):41===o&&r<n?a(o):33===o||34===o||38===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||60===o||63===o||93===o||95===o||126===o?e.check(nX,t,a)(o):null===o||(0,t9.Ee)(o)||(0,t9.Ny)(o)?t(o):(e.consume(o),i)}function a(t){return 41===t&&r++,e.consume(t),i}},partial:!0},nX={tokenize:function(e,t,n){return r;function r(o){return 33===o||34===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||63===o||95===o||126===o?(e.consume(o),r):38===o?(e.consume(o),a):93===o?(e.consume(o),i):60===o||null===o||(0,t9.Ee)(o)||(0,t9.Ny)(o)?t(o):n(o)}function i(e){return null===e||40===e||91===e||(0,t9.Ee)(e)||(0,t9.Ny)(e)?t(e):r(e)}function a(t){return(0,t9.CW)(t)?function t(i){return 59===i?(e.consume(i),r):(0,t9.CW)(i)?(e.consume(i),t):n(i)}(t):n(t)}},partial:!0},nQ={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return(0,t9.lV)(e)?n(e):t(e)}},partial:!0},nZ={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!n5.call(r,r.previous)||n4(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(nV,e.attempt(nY,e.attempt(nK,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:n5},nJ={name:"protocolAutolink",tokenize:function(e,t,n){let r=this,i="",a=!1;return function(t){return(72===t||104===t)&&n6.call(r,r.previous)&&!n4(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),o):n(t)};function o(t){if((0,t9.CW)(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),o;if(58===t){let n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),a)?l:(a=!0,s):n(t)}function l(t){return null===t||(0,t9.JQ)(t)||(0,t9.Ee)(t)||(0,t9.Ny)(t)||(0,t9.es)(t)?n(t):e.attempt(nY,e.attempt(nK,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:n6},n0={name:"emailAutolink",tokenize:function(e,t,n){let r,i,a=this;return function(t){return!n3(t)||!n9.call(a,a.previous)||n4(a.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return n3(r)?(e.consume(r),t):64===r?(e.consume(r),o):n(r)}(t))};function o(t){return 46===t?e.check(nQ,l,s)(t):45===t||95===t||(0,t9.lV)(t)?(i=!0,e.consume(t),o):l(t)}function s(t){return e.consume(t),r=!0,o}function l(o){return i&&r&&(0,t9.CW)(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(o)):n(o)}},previous:n9},n1={},n2=48;for(;n2<123;)n1[n2]=n0,58==++n2?n2=65:91===n2&&(n2=97);function n5(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||(0,t9.Ee)(e)}function n6(e){return!(0,t9.CW)(e)}function n9(e){return!(47===e||n3(e))}function n3(e){return 43===e||45===e||46===e||95===e||(0,t9.lV)(e)}function n4(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}n1[43]=n0,n1[45]=n0,n1[46]=n0,n1[95]=n0,n1[72]=[n0,nJ],n1[104]=[n0,nJ],n1[87]=[n0,nZ],n1[119]=[n0,nZ];var n7=n(66623);let n8={partial:!0,tokenize:function(e,t,n){return function(t){return(0,t9.On)(t)?(0,n7.N)(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||(0,t9.HP)(e)?t(e):n(e)}}},re={tokenize:function(e,t,n){let r=this;return(0,n7.N)(e,function(e){let i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function rt(e,t,n){let r,i=this,a=i.events.length,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;a--;){let e=i.events[a][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(a){if(!r||!r._balanced)return n(a);let s=nc(i.sliceSerialize({start:r.end,end:i.now()}));return 94===s.codePointAt(0)&&o.includes(s.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a)):n(a)}}function rn(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function rr(e,t,n){let r,i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),o=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(o>999||93===s&&!r||null===s||91===s||(0,t9.Ee)(s))return n(s);if(93===s){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return a.includes(nc(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return(0,t9.Ee)(s)||(r=!0),o++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),o++,l):l(t)}}function ri(e,t,n){let r,i,a=this,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]),s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!i||null===t||91===t||(0,t9.Ee)(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=nc(a.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return(0,t9.Ee)(t)||(i=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(r)||o.push(r),(0,n7.N)(e,h,"gfmFootnoteDefinitionWhitespace")):n(t)}function h(e){return t(e)}}function ra(e,t,n){return e.check(n8,t,e.attempt(re,t,n))}function ro(e){e.exit("gfmFootnoteDefinition")}var rs=n(37947);class rl{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}}function rc(e,t,n){let r,i=this,a=0,o=0;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,a="tableHead"===r||"tableRow"===r?E:s;return a===E&&i.parser.lazy[i.now().line]?n(e):a(e)};function s(t){var n;return e.enter("tableHead"),e.enter("tableRow"),124===(n=t)||(r=!0,o+=1),l(n)}function l(t){return null===t?n(t):(0,t9.HP)(t)?o>1?(o=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):(0,t9.On)(t)?(0,n7.N)(e,l,"whitespace")(t):(o+=1,r&&(r=!1,a+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,l):(e.enter("data"),c(t))}function c(t){return null===t||124===t||(0,t9.Ee)(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,(0,t9.On)(t))?(0,n7.N)(e,h,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):h(t)}function h(t){return 45===t||58===t?f(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):n(t)}function p(t){return(0,t9.On)(t)?(0,n7.N)(e,f,"whitespace")(t):f(t)}function f(t){return 58===t?(o+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(o+=1,m(t)):null===t||(0,t9.HP)(t)?b(t):n(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(n))}(t)):n(t)}function g(t){return(0,t9.On)(t)?(0,n7.N)(e,b,"whitespace")(t):b(t)}function b(i){if(124===i)return h(i);if(null===i||(0,t9.HP)(i))return r&&a===o?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i);return n(i)}function E(t){return e.enter("tableRow"),y(t)}function y(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),y):null===n||(0,t9.HP)(n)?(e.exit("tableRow"),t(n)):(0,t9.On)(n)?(0,n7.N)(e,y,"whitespace")(n):(e.enter("data"),T(n))}function T(t){return null===t||124===t||(0,t9.Ee)(t)?(e.exit("data"),y(t)):(e.consume(t),92===t?v:T)}function v(t){return 92===t||124===t?(e.consume(t),T):T(t)}}function ru(e,t){let n,r,i,a=-1,o=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0,h=new rl;for(;++a<e.length;){let p=e[a],f=p[1];"enter"===p[0]?"tableHead"===f.type?(u=!1,0!==d&&(rh(h,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},f.start),end:Object.assign({},f.end)},h.add(a,0,[["enter",n,t]])):"tableRow"===f.type||"tableDelimiterRow"===f.type?(o=!0,i=void 0,l=[0,0,0,0],c=[0,a+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},f.start),end:Object.assign({},f.end)},h.add(a,0,[["enter",r,t]])),s="tableDelimiterRow"===f.type?2:r?3:1):s&&("data"===f.type||"tableDelimiterMarker"===f.type||"tableDelimiterFiller"===f.type)?(o=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],i=rd(h,t,l,s,void 0,i),l=[0,0,0,0]),c[2]=a)):"tableCellDivider"===f.type&&(o?o=!1:(0!==l[1]&&(c[0]=c[1],i=rd(h,t,l,s,void 0,i)),c=[(l=c)[1],a,0,0])):"tableHead"===f.type?(u=!0,d=a):"tableRow"===f.type||"tableDelimiterRow"===f.type?(d=a,0!==l[1]?(c[0]=c[1],i=rd(h,t,l,s,a,i)):0!==c[1]&&(i=rd(h,t,c,s,a,i)),s=0):s&&("data"===f.type||"tableDelimiterMarker"===f.type||"tableDelimiterFiller"===f.type)&&(c[3]=a)}for(0!==d&&rh(h,t,d,n,r),h.consume(t.events),a=-1;++a<t.events.length;){let e=t.events[a];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}(t.events,a))}return e}function rd(e,t,n,r,i,a){0!==n[0]&&(a.end=Object.assign({},rp(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));let o=rp(t.events,n[1]);if(a={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},o),end:Object.assign({},o)},e.add(n[1],0,[["enter",a,t]]),0!==n[2]){let i=rp(t.events,n[2]),a=rp(t.events,n[3]),o={type:"tableContent",start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[["enter",o,t]]),2!==r){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",o,t]])}return void 0!==i&&(a.end=Object.assign({},rp(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function rh(e,t,n,r,i){let a=[],o=rp(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function rp(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let rf={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return(0,t9.Ee)(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),a):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),a):n(t)}function a(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(t)}function o(r){return(0,t9.HP)(r)?t(r):(0,t9.On)(r)?e.check({tokenize:rm},t,n)(r):n(r)}}};function rm(e,t,n){return(0,n7.N)(e,function(e){return null===e?n(e):t(e)},"whitespace")}let rg={};var rb=Object.defineProperty,rE=Object.defineProperties,ry=Object.getOwnPropertyDescriptors,rT=Object.getOwnPropertySymbols,rv=Object.prototype.hasOwnProperty,rk=Object.prototype.propertyIsEnumerable,rS=(e,t,n)=>t in e?rb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rA=(e,t)=>{for(var n in t||(t={}))rv.call(t,n)&&rS(e,n,t[n]);if(rT)for(var n of rT(t))rk.call(t,n)&&rS(e,n,t[n]);return e},rC=(e,t)=>{let n=!1,r=!1;for(let i=0;i<t;i+=1){if("\\"===e[i]&&i+1<e.length&&"`"===e[i+1]){i+=1;continue}if("```"===e.substring(i,i+3)){r=!r,i+=2;continue}r||"`"!==e[i]||(n=!n)}return n||r},r_=(e,t)=>{let n="```"===e.substring(t,t+3),r=t>0&&"```"===e.substring(t-1,t+2),i=t>1&&"```"===e.substring(t-2,t+1);return n||r||i},rx=(e,t)=>{let n=!1,r=!1,i=-1;for(let a=0;a<e.length;a+=1){if("\\"===e[a]&&a+1<e.length&&"`"===e[a+1]){a+=1;continue}if("```"===e.substring(a,a+3)){r=!r,a+=2;continue}if(!r&&"`"===e[a])if(n){if(i<t&&t<a)return!0;n=!1,i=-1}else n=!0,i=a}return!1},rw=/^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm,rN=/(\*\*)([^*]*\*?)$/,rI=/(__)([^_]*?)$/,rR=/(\*\*\*)([^*]*?)$/,rO=/(\*)([^*]*?)$/,rD=/(_)([^_]*?)$/,rP=/(`)([^`]*?)$/,rL=/(~~)([^~]*?)$/,rM=/^[\s_~*`]*$/,rF=/^[\s]*[-*+][\s]+$/,rB=/[\p{L}\p{N}_]/u,rH=/^```[^`\n]*```?$/,rU=/^\*{4,}$/,rj=/(__)([^_]+)_$/,rG=/(~~)([^~]+)~$/,rz=/~~/g,r$=e=>{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||95===t||rB.test(e)},rW=(e,t)=>{let n=1;for(let r=t+1;r<e.length;r+=1)if("["===e[r])n+=1;else if("]"===e[r]&&0==(n-=1))return r;return -1},rq=(e,t)=>{let n=!1,r=!1;for(let i=0;i<e.length&&i<t;i+=1){if("\\"===e[i]&&"$"===e[i+1]){i+=1;continue}"$"===e[i]&&("$"===e[i+1]?(r=!r,i+=1,n=!1):r||(n=!n))}return n||r},rV=(e,t)=>{for(let n=t;n<e.length;n+=1){if(")"===e[n])return!0;if(e[n]===`
2
- `)break}return!1},rY=(e,t)=>{for(let n=t-1;n>=0&&")"!==e[n];n-=1){if("("===e[n])return n>0&&"]"===e[n-1]&&rV(e,t);if(e[n]===`
3
- `)break}return!1},rK=(e,t,n)=>{let r=0;for(let n=t-1;n>=0;n-=1)if(e[n]===`
4
- `){r=n+1;break}let i=e.length;for(let n=t;n<e.length;n+=1)if(e[n]===`
5
- `){i=n;break}let a=e.substring(r,i),o=0,s=!1;for(let e of a)if(e===n)o+=1;else if(" "!==e&&" "!==e){s=!0;break}return o>=3&&!s},rX=(e,t,n,r)=>!!("\\"===n||e.includes("$")&&rq(e,t))||("*"!==n&&"*"===r?(t<e.length-2?e[t+2]:"")!=="*":!!("*"===n||n&&r&&r$(n)&&r$(r)||(!n||" "===n||" "===n||n===`
6
- `)&&(!r||" "===r||" "===r||r===`
7
- `))),rQ=e=>{let t=0,n=!1,r=e.length;for(let i=0;i<r;i+=1){if("`"===e[i]&&i+2<r&&"`"===e[i+1]&&"`"===e[i+2]){n=!n,i+=2;continue}if(n||"*"!==e[i])continue;let a=i>0?e[i-1]:"",o=i<r-1?e[i+1]:"";rX(e,i,a,o)||(t+=1)}return t},rZ=(e,t,n,r)=>!!("\\"===n||e.includes("$")&&rq(e,t)||rY(e,t)||((e,t)=>{for(let n=t-1;n>=0&&">"!==e[n];n-=1){if("<"===e[n]){let t=n+1<e.length?e[n+1]:"";return t>="a"&&t<="z"||t>="A"&&t<="Z"||"/"===t}if(e[n]===`
8
- `)break}return!1})(e,t)||"_"===n||"_"===r||n&&r&&r$(n)&&r$(r)),rJ=e=>{let t=0,n=!1;for(let r=0;r<e.length;r+=1){if("`"===e[r]&&r+2<e.length&&"`"===e[r+1]&&"`"===e[r+2]){n=!n,r+=2;continue}n||"*"===e[r]&&r+1<e.length&&"*"===e[r+1]&&(t+=1,r+=1)}return t},r0=e=>{let t=0,n=!1;for(let r=0;r<e.length;r+=1){if("`"===e[r]&&r+2<e.length&&"`"===e[r+1]&&"`"===e[r+2]){n=!n,r+=2;continue}n||"_"===e[r]&&r+1<e.length&&"_"===e[r+1]&&(t+=1,r+=1)}return t},r1=e=>{let t=!1;for(let n=0;n<e.length;n+=1){if("`"===e[n]&&n+2<e.length&&"`"===e[n+1]&&"`"===e[n+2]){t=!t,n+=2;continue}if(!t&&"_"===e[n]&&"_"!==e[n-1]&&"_"!==e[n+1]&&"\\"!==e[n-1]&&!rq(e,n)&&!rY(e,n)){let t=n>0?e[n-1]:"",r=n<e.length-1?e[n+1]:"";if(t&&r&&r$(t)&&r$(r))continue;return n}}return -1},r2=/<[a-zA-Z/][^>]*$/,r5=(e,t)=>t>=2&&"```"===e.substring(t-2,t+1)||t>=1&&"```"===e.substring(t-1,t+2)||t<=e.length-3&&"```"===e.substring(t,t+3),r6=(e,t,n)=>{let r=t>0&&"!"===e[t-1],i=r?t-1:t;if(!e.substring(t+1).includes("]")||-1===rW(e,t)){let a=e.substring(0,i);if(r)return a;if("text-only"===n){let n=((e,t)=>{for(let n=0;n<t;n++)if("["===e[n]&&!rC(e,n)){if(n>0&&"!"===e[n-1])continue;let t=rW(e,n);if(-1===t)return n;if(t+1<e.length&&"("===e[t+1]){let r=e.indexOf(")",t+2);-1!==r&&(n=r)}}return t})(e,t);return e.substring(0,n)+e.substring(n+1)}return`${e}](streamdown:incomplete-link)`}return null},r9=(e,t="protocol")=>{let n=e.lastIndexOf("](");if(-1!==n&&!rC(e,n)){let r=((e,t,n)=>{if(e.substring(t+2).includes(")"))return null;let r=((e,t)=>{let n=1;for(let r=t-1;r>=0;r-=1)if("]"===e[r])n+=1;else if("["===e[r]&&0==(n-=1))return r;return -1})(e,t);if(-1===r||rC(e,r))return null;let i=r>0&&"!"===e[r-1],a=e.substring(0,i?r-1:r);if(i)return a;let o=e.substring(r+1,t);return"text-only"===n?`${a}${o}`:`${a}[${o}](streamdown:incomplete-link)`})(e,n,t);if(null!==r)return r}for(let n=e.length-1;n>=0;n-=1)if("["===e[n]&&!rC(e,n)){let r=r6(e,n,t);if(null!==r)return r}return e},r3=/^-{1,2}$/,r4=/^[\s]*-{1,2}[\s]+$/,r7=/^={1,2}$/,r8=/^[\s]*={1,2}[\s]+$/,ie=RegExp("(?<=[\\p{L}\\p{N}_])~(?!~)(?=[\\p{L}\\p{N}_])","gu"),it=[{handler:{name:"singleTilde",handle:e=>e&&"string"==typeof e&&e.includes("~")?e.replace(ie,(t,n)=>rC(e,n)?t:"\\~"):e,priority:0},optionKey:"singleTilde"},{handler:{name:"comparisonOperators",handle:e=>e&&"string"==typeof e&&e.includes(">")?e.replace(rw,(t,n,r,i)=>rC(e,i)?t:`${n}\\>${r}`):e,priority:5},optionKey:"comparisonOperators"},{handler:{name:"htmlTags",handle:e=>{let t=e.match(r2);return!t||void 0===t.index||rC(e,t.index)?e:e.substring(0,t.index).trimEnd()},priority:10},optionKey:"htmlTags"},{handler:{name:"setextHeadings",handle:e=>{if(!e||"string"!=typeof e)return e;let t=e.lastIndexOf(`
9
- `);if(-1===t)return e;let n=e.substring(t+1),r=e.substring(0,t),i=n.trim();if(r3.test(i)&&!n.match(r4)){let t=r.split(`
10
- `).at(-1);if(t&&t.trim().length>0)return`${e}\u200B`}if(r7.test(i)&&!n.match(r8)){let t=r.split(`
11
- `).at(-1);if(t&&t.trim().length>0)return`${e}\u200B`}return e},priority:15},optionKey:"setextHeadings"},{handler:{name:"links",handle:r9,priority:20},optionKey:"links",earlyReturn:e=>e.endsWith("](streamdown:incomplete-link)")},{handler:{name:"boldItalic",handle:e=>{let t,n;if(rU.test(e))return e;let r=e.match(rR);if(!r)return e;let i=r[2],a=e.lastIndexOf(r[1]);return!i||rM.test(i)||rC(e,a)||rx(e,a)||rK(e,a,"*")?e:(e=>{let t=0,n=0,r=!1;for(let i=0;i<e.length;i+=1){if("`"===e[i]&&i+2<e.length&&"`"===e[i+1]&&"`"===e[i+2]){n>=3&&(t+=Math.floor(n/3)),n=0,r=!r,i+=2;continue}r||("*"===e[i]?n+=1:(n>=3&&(t+=Math.floor(n/3)),n=0))}return n>=3&&(t+=Math.floor(n/3)),t})(e)%2==1?(t=rJ(e),n=rQ(e),t%2==0&&n%2==0)?e:`${e}***`:e},priority:30},optionKey:"boldItalic"},{handler:{name:"bold",handle:e=>{let t=e.match(rN);if(!t)return e;let n=t[2],r=e.lastIndexOf(t[1]);return rC(e,r)||rx(e,r)||((e,t,n)=>{if(!t||rM.test(t))return!0;let r=e.substring(0,n).lastIndexOf(`
12
- `),i=e.substring(-1===r?0:r+1,n);return!!(rF.test(i)&&t.includes(`
13
- `))||rK(e,n,"*")})(e,n,r)?e:rJ(e)%2==1?n.endsWith("*")?`${e}*`:`${e}**`:e},priority:35},optionKey:"bold"},{handler:{name:"italicDoubleUnderscore",handle:e=>{let t=e.match(rI);if(!t){let t=e.match(rj);if(t){let n=e.lastIndexOf(t[1]);if(!(rC(e,n)||rx(e,n))&&r0(e)%2==1)return`${e}_`}return e}let n=t[2],r=e.lastIndexOf(t[1]);return rC(e,r)||rx(e,r)||((e,t,n)=>{if(!t||rM.test(t))return!0;let r=e.substring(0,n).lastIndexOf(`
14
- `),i=e.substring(-1===r?0:r+1,n);return!!(rF.test(i)&&t.includes(`
15
- `))||rK(e,n,"_")})(e,n,r)?e:r0(e)%2==1?`${e}__`:e},priority:40},optionKey:"italic"},{handler:{name:"italicSingleAsterisk",handle:e=>{if(!e.match(rO))return e;let t=(e=>{let t=!1;for(let n=0;n<e.length;n+=1){if("`"===e[n]&&n+2<e.length&&"`"===e[n+1]&&"`"===e[n+2]){t=!t,n+=2;continue}if(!t&&"*"===e[n]&&"*"!==e[n-1]&&"*"!==e[n+1]&&"\\"!==e[n-1]&&!rq(e,n)){let t=n>0?e[n-1]:"",r=n<e.length-1?e[n+1]:"";if((!t||" "===t||" "===t||t===`
16
- `)&&(!r||" "===r||" "===r||r===`
17
- `)||t&&r&&r$(t)&&r$(r))continue;return n}}return -1})(e);if(-1===t||rC(e,t)||rx(e,t))return e;let n=e.substring(t+1);return!n||rM.test(n)?e:rQ(e)%2==1?`${e}*`:e},priority:41},optionKey:"italic"},{handler:{name:"italicSingleUnderscore",handle:e=>{if(!e.match(rD))return e;let t=r1(e);if(-1===t)return e;let n=e.substring(t+1);if(!n||rM.test(n)||rC(e,t)||rx(e,t))return e;if((e=>{let t=0,n=!1,r=e.length;for(let i=0;i<r;i+=1){if("`"===e[i]&&i+2<r&&"`"===e[i+1]&&"`"===e[i+2]){n=!n,i+=2;continue}if(n||"_"!==e[i])continue;let a=i>0?e[i-1]:"",o=i<r-1?e[i+1]:"";rZ(e,i,a,o)||(t+=1)}return t})(e)%2==1){let t=(e=>{if(!e.endsWith("**"))return null;let t=e.slice(0,-2);if(rJ(t)%2!=1)return null;let n=t.indexOf("**"),r=r1(t);return -1!==n&&-1!==r&&n<r?`${t}_**`:null})(e);return null!==t?t:(e=>{let t=e.length;for(;t>0&&e[t-1]===`
18
- `;)t-=1;if(t<e.length){let n=e.slice(0,t),r=e.slice(t);return`${n}_${r}`}return`${e}_`})(e)}return e},priority:42},optionKey:"italic"},{handler:{name:"inlineCode",handle:e=>{let t=!e.match(rH)||e.includes(`
19
- `)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e;if(null!==t)return t;let n=e.match(rP);if(n&&(e.match(/```/g)||[]).length%2!=1){let t=n[2];if(!t||rM.test(t))return e;if((e=>{let t=0;for(let n=0;n<e.length;n+=1){if("\\"===e[n]&&n+1<e.length&&"`"===e[n+1]){n+=1;continue}"`"!==e[n]||r_(e,n)||(t+=1)}return t})(e)%2==1)return`${e}\``}return e},priority:50},optionKey:"inlineCode"},{handler:{name:"strikethrough",handle:e=>{var t,n;let r=e.match(rL);if(r){let n=r[2];if(!n||rM.test(n))return e;let i=e.lastIndexOf(r[1]);if(rC(e,i)||rx(e,i))return e;if((null==(t=e.match(rz))?void 0:t.length)%2==1)return`${e}~~`}else{let t=e.match(rG);if(t){let r=e.lastIndexOf(t[0].slice(0,2));if(rC(e,r)||rx(e,r))return e;if((null==(n=e.match(rz))?void 0:n.length)%2==1)return`${e}~`}}return e},priority:60},optionKey:"strikethrough"},{handler:{name:"katex",handle:e=>(e=>{let t=0,n=!1;for(let r=0;r<e.length-1;r+=1)"`"!==e[r]||r5(e,r)||(n=!n),n||"$"!==e[r]||"$"!==e[r+1]||(t+=1,r+=1);return t})(e)%2==0?e:(e=>{if(e.endsWith("$")&&!e.endsWith("$$"))return`${e}$`;let t=e.indexOf("$$");return -1===t||-1===e.indexOf(`
20
- `,t)||e.endsWith(`
21
- `)?`${e}$$`:`${e}
22
- $$`})(e),priority:70},optionKey:"katex"},{handler:{name:"inlineKatex",handle:e=>(e=>{let t=0,n=!1;for(let r=0;r<e.length;r+=1){if("\\"===e[r]){r+=1;continue}if("`"===e[r]&&!r5(e,r)){n=!n;continue}n||"$"!==e[r]||(r+1<e.length&&"$"===e[r+1]?r+=1:t+=1)}return t})(e)%2==1?`${e}$`:e,priority:75},optionKey:"inlineKatex"}],ir=n(77694),ii=n(37810),ia=n(7962),io=n(44911);let is=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,il=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ic={};function iu(e,t){return((t||ic).jsx?il:is).test(e)}var id=n(54667);let ih={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var ip=n(58420);function im(e){return e&&"object"==typeof e?"position"in e||"type"in e?ib(e.position):"start"in e||"end"in e?ib(e):"line"in e||"column"in e?ig(e):"":""}function ig(e){return iE(e&&e.line)+":"+iE(e&&e.column)}function ib(e){return ig(e&&e.start)+"-"+ig(e&&e.end)}function iE(e){return e&&"number"==typeof e?e:1}class iy extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},a=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=o?o.line:void 0,this.name=im(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}iy.prototype.file="",iy.prototype.name="",iy.prototype.reason="",iy.prototype.message="",iy.prototype.stack="",iy.prototype.column=void 0,iy.prototype.line=void 0,iy.prototype.ancestors=void 0,iy.prototype.cause=void 0,iy.prototype.fatal=void 0,iy.prototype.place=void 0,iy.prototype.ruleId=void 0,iy.prototype.source=void 0;let iT={}.hasOwnProperty,iv=new Map,ik=/[A-Z]/g,iS=new Set(["table","tbody","thead","tfoot","tr"]),iA=new Set(["td","th"]),iC="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function i_(e,t,n){var r,i,a,o,s,l,c,u,d;let h,p,f,m,g,b,E,y,T,v,k;return"element"===t.type?(r=e,i=t,a=n,p=h=r.schema,"svg"===i.tagName.toLowerCase()&&"html"===h.space&&(r.schema=_.JW),r.ancestors.push(i),f=iI(r,i.tagName,!1),m=function(e,t){let n,r,i={};for(r in t.properties)if("children"!==r&&iT.call(t.properties,r)){let a=function(e,t,n){let r=(0,x.I)(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?(0,F.A)(n):(0,B.A)(n)),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return ip(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new iy("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=iC+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)iT.call(e,t)&&(n[function(e){let t=e.replace(ik,iO);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?ih[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(a){let[r,o]=a;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof o&&iA.has(t.tagName)?n=o:i[r]=o}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(r,i),g=iN(r,i),iS.has(i.tagName)&&(g=g.filter(function(e){return"string"!=typeof e||!(0,id.m)(e)})),ix(r,m,f,i),iw(m,g),r.ancestors.pop(),r.schema=h,r.create(i,f,m,a)):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return(0,A.ok)("ExpressionStatement"===n.type),e.evaluater.evaluateExpression(n.expression)}iR(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?(o=e,s=t,l=n,E=b=o.schema,"svg"===s.name&&"html"===b.space&&(o.schema=_.JW),o.ancestors.push(s),y=null===s.name?o.Fragment:iI(o,s.name,!0),T=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];(0,A.ok)("ExpressionStatement"===t.type);let i=t.expression;(0,A.ok)("ObjectExpression"===i.type);let a=i.properties[0];(0,A.ok)("SpreadElement"===a.type),Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else iR(e,t.position);else{let i,a=r.name;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];(0,A.ok)("ExpressionStatement"===t.type),i=e.evaluater.evaluateExpression(t.expression)}else iR(e,t.position);else i=null===r.value||r.value;n[a]=i}return n}(o,s),v=iN(o,s),ix(o,T,y,s),iw(T,v),o.ancestors.pop(),o.schema=b,o.create(s,y,T,l)):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);iR(e,t.position)}(e,t):"root"===t.type?(c=e,u=t,d=n,iw(k={},iN(c,u)),c.create(u,c.Fragment,k,d)):"text"===t.type?t.value:void 0}function ix(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function iw(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function iN(e,t){let n=[],r=-1,i=e.passKeys?new Map:iv;for(;++r<t.children.length;){let a,o=t.children[r];if(e.passKeys){let e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){let t=i.get(e)||0;a=e+"-"+t,i.set(e,t+1)}}let s=i_(e,o,a);void 0!==s&&n.push(s)}return n}function iI(e,t,n){let r;if(n)if(t.includes(".")){let e,n=t.split("."),i=-1;for(;++i<n.length;){let t=iu(n[i])?{type:"Identifier",name:n[i]}:{type:"Literal",value:n[i]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(i&&"Literal"===t.type),optional:!1}:t}(0,A.ok)(e,"always a result"),r=e}else r=iu(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return iT.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);iR(e)}function iR(e,t){let n=new iy("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=iC+"#cannot-handle-mdx-estrees-without-createevaluater",n}function iO(e){return"-"+e.toLowerCase()}let iD={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};class iP{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?1/0:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&iL(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),iL(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),iL(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);iL(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);iL(this.left,t.reverse())}}}function iL(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function iM(e){let t,n,r,i,a,o,s,l={},c=-1,u=new iP(e);for(;++c<u.length;){for(;c in l;)c=l[c];if(t=u.get(c),c&&"chunkFlow"===t[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&((r=0)<(o=t[1]._tokenizer.events).length&&"lineEndingBlank"===o[r][1].type&&(r+=2),r<o.length&&"content"===o[r][1].type))for(;++r<o.length&&"content"!==o[r][1].type;)"chunkText"===o[r][1].type&&(o[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(l,function(e,t){let n,r,i=e.get(t)[1],a=e.get(t)[2],o=t-1,s=[],l=i._tokenizer;!l&&(l=a.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));let c=l.events,u=[],d={},h=-1,p=i,f=0,m=0,g=[0];for(;p;){for(;e.get(++o)[1]!==p;);s.push(o),!p._tokenizer&&(n=a.sliceStream(p),p.next||n.push(null),r&&l.defineSkip(p.start),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(n),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),r=p,p=p.next}for(p=i;++h<c.length;)"exit"===c[h][0]&&"enter"===c[h-1][0]&&c[h][1].type===c[h-1][1].type&&c[h][1].start.line!==c[h][1].end.line&&(m=h+1,g.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(l.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),h=g.length;h--;){let t=c.slice(g[h],g[h+1]),n=s.pop();u.push([n,n+t.length-1]),e.splice(n,2,t)}for(u.reverse(),h=-1;++h<u.length;)d[f+u[h][0]]=f+u[h][1],f+=u[h][1]-u[h][0]-1;return d}(u,c)),c=l[c],s=!0);else if(t[1]._container){for(r=c,n=void 0;r--;)if("lineEnding"===(i=u.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(u.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;n&&(t[1].end={...u.get(n)[1].start},(a=u.slice(n,c)).unshift(t),u.splice(n,c-n+1,a))}}return(0,n$.m)(e,0,1/0,u.slice(0)),!s}let iF={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,n7.N)(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return(0,t9.HP)(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},iB={tokenize:function(e){let t,n,r,i=this,a=[],o=0;return s;function s(t){if(o<a.length){let n=a[o];return i.containerState=n[1],e.attempt(n[0].continuation,l,c)(t)}return c(t)}function l(e){if(o++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&b();let r=i.events.length,a=r;for(;a--;)if("exit"===i.events[a][0]&&"chunkFlow"===i.events[a][1].type){n=i.events[a][1].end;break}g(o);let s=r;for(;s<i.events.length;)i.events[s][1].end={...n},s++;return(0,n$.m)(i.events,a+1,0,i.events.slice(r)),i.events.length=s,c(e)}return s(e)}function c(n){if(o===a.length){if(!t)return h(n);if(t.currentConstruct&&t.currentConstruct.concrete)return f(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(iH,u,d)(n)}function u(e){return t&&b(),g(o),h(e)}function d(e){return i.parser.lazy[i.now().line]=o!==a.length,r=i.now().offset,f(e)}function h(t){return i.containerState={},e.attempt(iH,p,f)(t)}function p(e){return o++,a.push([i.currentConstruct,i.containerState]),h(e)}function f(r){if(null===r){t&&b(),g(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){m(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return(0,t9.HP)(n)?(e.consume(n),m(e.exit("chunkFlow")),o=0,i.interrupt=void 0,s):(e.consume(n),t)}(r)}function m(e,a){let s=i.sliceStream(e);if(a&&s.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(s),i.parser.lazy[e.start.line]){let e,n,a=t.events.length;for(;a--;)if(t.events[a][1].start.offset<r&&(!t.events[a][1].end||t.events[a][1].end.offset>r))return;let s=i.events.length,l=s;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){if(e){n=i.events[l][1].end;break}e=!0}for(g(o),a=s;a<i.events.length;)i.events[a][1].end={...n},a++;(0,n$.m)(i.events,l+1,0,i.events.slice(s)),i.events.length=a}}function g(t){let n=a.length;for(;n-- >t;){let t=a[n];i.containerState=t[1],t[0].exit.call(i,e)}a.length=t}function b(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},iH={tokenize:function(e,t,n){return(0,n7.N)(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},iU={resolve:function(e){return iM(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):(0,t9.HP)(t)?e.check(ij,a,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function a(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},ij={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,n7.N)(e,i,"linePrefix")};function i(i){if(null===i||(0,t9.HP)(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},iG={tokenize:function(e){let t=this,n=e.attempt(n8,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,(0,n7.N)(e,e.attempt(this.parser.constructs.flow,r,e.attempt(iU,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},iz={resolveAll:iV()},i$=iq("string"),iW=iq("text");function iq(e){return{resolveAll:iV("text"===e?iY:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return l(e)?i(e):o(e)}function o(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),s)}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function iV(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function iY(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r,i=e[n-1][1],a=t.sliceStream(i),o=a.length,s=-1,l=0;for(;o--;){let e=a[o];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)r=!0,l++;else if(-1===e);else{o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){let a={type:n===e.length||r||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:i.start._bufferIndex+s,_index:i.start._index+o,line:i.end.line,column:i.end.column-l,offset:i.end.offset-l},end:{...i.end}};i.end={...a.start},i.start.offset===i.end.offset?Object.assign(i,a):(e.splice(n,0,["enter",a,t],["exit",a,t]),n+=2)}n++}return e}let iK={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(a){var o;return e.enter("thematicBreak"),r=o=a,function a(o){return o===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),(0,t9.On)(n)?(0,n7.N)(e,a,"whitespace")(n):a(n))}(o)):i>=3&&(null===o||(0,t9.HP)(o))?(e.exit("thematicBreak"),t(o)):n(o)}(o)}}},iX={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(n8,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,(0,n7.N)(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!(0,t9.On)(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(iZ,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,(0,n7.N)(e,e.attempt(iX,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:(0,t9.BM)(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(iK,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return(0,t9.BM)(i)&&++o<10?(e.consume(i),t):(!r.interrupt||o<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),s(i)):n(i)}(t)}return n(t)};function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(n8,r.interrupt?n:l,e.attempt(iQ,u,c))}function l(e){return r.containerState.initialBlankLine=!0,a++,u(e)}function c(t){return(0,t9.On)(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),u):n(t)}function u(n){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},iQ={partial:!0,tokenize:function(e,t,n){let r=this;return(0,n7.N)(e,function(e){let i=r.events[r.events.length-1];return!(0,t9.On)(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},iZ={partial:!0,tokenize:function(e,t,n){let r=this;return(0,n7.N)(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},iJ={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return(0,t9.On)(t)?(0,n7.N)(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(iJ,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return(0,t9.On)(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function i0(e,t,n,r,i,a,o,s,l){let c=l||1/0,u=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),d):null===t||32===t||41===t||(0,t9.JQ)(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),f(t))};function d(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(n))}function h(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||(0,t9.HP)(t)?n(t):(e.consume(t),92===t?p:h)}function p(t){return 60===t||62===t||92===t?(e.consume(t),h):h(t)}function f(i){return!u&&(null===i||41===i||(0,t9.Ee)(i))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(i)):u<c&&40===i?(e.consume(i),u++,f):41===i?(e.consume(i),u--,f):null===i||32===i||40===i||(0,t9.JQ)(i)?n(i):(e.consume(i),92===i?m:f)}function m(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function i1(e,t,n,r,i,a){let o,s=this,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),c};function c(d){return l>999||null===d||91===d||93===d&&!o||94===d&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(d):93===d?(e.exit(a),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):(0,t9.HP)(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||(0,t9.HP)(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),o||(o=!(0,t9.On)(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function i2(e,t,n,r,i,a){let o;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=40===t?41:t,s):n(t)};function s(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),s(o)):null===t?n(t):(0,t9.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,n7.N)(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===o||null===t||(0,t9.HP)(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===o||92===t?(e.consume(t),c):c(t)}}function i5(e,t){let n;return function r(i){return(0,t9.HP)(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):(0,t9.On)(i)?(0,n7.N)(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}let i6={partial:!0,tokenize:function(e,t,n){return function(t){return(0,t9.Ee)(t)?i5(e,r)(t):n(t)};function r(t){return i2(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return(0,t9.On)(t)?(0,n7.N)(e,a,"whitespace")(t):a(t)}function a(e){return null===e||(0,t9.HP)(e)?t(e):n(e)}}},i9={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),(0,n7.N)(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?a(n):(0,t9.HP)(n)?e.attempt(i3,t,a)(n):(e.enter("codeFlowValue"),function n(r){return null===r||(0,t9.HP)(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function a(n){return e.exit("codeIndented"),t(n)}}},i3={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):(0,t9.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):(0,n7.N)(e,a,"linePrefix",5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):(0,t9.HP)(e)?i(e):n(e)}}},i4={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){n=a;break}"paragraph"===e[a][1].type&&(r=a)}else"content"===e[a][1].type&&e.splice(a,1),i||"definition"!==e[a][1].type||(i=a);let o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",o,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=o,e.push(["exit",o,t]),e},tokenize:function(e,t,n){let r,i=this;return function(t){var o;let s,l=i.events.length;for(;l--;)if("lineEnding"!==i.events[l][1].type&&"linePrefix"!==i.events[l][1].type&&"content"!==i.events[l][1].type){s="paragraph"===i.events[l][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||s)?(e.enter("setextHeadingLine"),r=t,o=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),(0,t9.On)(n)?(0,n7.N)(e,a,"lineSuffix")(n):a(n))}(o)):n(t)};function a(r){return null===r||(0,t9.HP)(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},i7=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],i8=["pre","script","style","textarea"],ae={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(n8,t,n)}}},at={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return(0,t9.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},an={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},ar={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,i=this,a={partial:!0,tokenize:function(e,t,n){let a=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),(0,t9.On)(t)?(0,n7.N)(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(a++,e.consume(i),t):a>=s?(e.exit("codeFencedFenceSequence"),(0,t9.On)(i)?(0,n7.N)(e,c,"whitespace")(i):c(i)):n(i)}(t)):n(t)}function c(r){return null===r||(0,t9.HP)(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},o=0,s=0;return function(t){var a;let c;return a=t,o=(c=i.events[i.events.length-1])&&"linePrefix"===c[1].type?c[2].sliceSerialize(c[1],!0).length:0,r=a,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(s++,e.consume(i),t):s<3?n(i):(e.exit("codeFencedFenceSequence"),(0,t9.On)(i)?(0,n7.N)(e,l,"whitespace")(i):l(i))}(a)};function l(a){return null===a||(0,t9.HP)(a)?(e.exit("codeFencedFence"),i.interrupt?t(a):e.check(an,u,f)(a)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||(0,t9.HP)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(i)):(0,t9.On)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),(0,n7.N)(e,c,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(a))}function c(t){return null===t||(0,t9.HP)(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||(0,t9.HP)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function u(t){return e.attempt(a,f,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h}function h(t){return o>0&&(0,t9.On)(t)?(0,n7.N)(e,p,"linePrefix",o+1)(t):p(t)}function p(t){return null===t||(0,t9.HP)(t)?e.check(an,u,f)(t):(e.enter("codeFlowValue"),function t(n){return null===n||(0,t9.HP)(n)?(e.exit("codeFlowValue"),p(n)):(e.consume(n),t)}(t))}function f(n){return e.exit("codeFenced"),t(n)}}},ai=document.createElement("i");function aa(e){let t="&"+e+";";ai.innerHTML=t;let n=ai.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let ao={name:"characterReference",tokenize:function(e,t,n){let r,i,a=this,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),r=31,i=t9.lV,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=t9.ok,c):(e.enter("characterReferenceValue"),r=7,i=t9.BM,c(t))}function c(s){if(59===s&&o){let r=e.exit("characterReferenceValue");return i!==t9.lV||aa(a.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&o++<r?(e.consume(s),c):n(s)}}},as={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return(0,t9.ol)(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},al={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),(0,n7.N)(e,t,"linePrefix")}}},ac={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&(0,n$.m)(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,a,o=e.length,s=0;for(;o--;)if(n=e[o][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[o][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[o][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=o,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(i=o);let l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},u={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[i-2][1].start}};return a=[["enter",l,t],["enter",c,t]],a=(0,n$.V)(a,e.slice(r+1,r+s+3)),a=(0,n$.V)(a,[["enter",u,t]]),a=(0,n$.V)(a,(0,rs.W)(t.parser.constructs.insideSpan.null,e.slice(r+s+4,i-3),t)),a=(0,n$.V)(a,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),a=(0,n$.V)(a,e.slice(i+1)),a=(0,n$.V)(a,[["exit",l,t]]),(0,n$.m)(e,r,e.length,a),e},tokenize:function(e,t,n){let r,i,a=this,o=a.events.length;for(;o--;)if(("labelImage"===a.events[o][1].type||"labelLink"===a.events[o][1].type)&&!a.events[o][1]._balanced){r=a.events[o][1];break}return function(t){return r?r._inactive?u(t):(i=a.parser.defined.includes(nc(a.sliceSerialize({start:r.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):n(t)};function s(t){return 40===t?e.attempt(au,c,i?c:u)(t):91===t?e.attempt(ad,c,i?l:u)(t):i?c(t):u(t)}function l(t){return e.attempt(ah,c,u)(t)}function c(e){return t(e)}function u(e){return r._balanced=!0,n(e)}}},au={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return(0,t9.Ee)(t)?i5(e,i)(t):i(t)}function i(t){return 41===t?c(t):i0(e,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function a(t){return(0,t9.Ee)(t)?i5(e,s)(t):c(t)}function o(e){return n(e)}function s(t){return 34===t||39===t||40===t?i2(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return(0,t9.Ee)(t)?i5(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},ad={tokenize:function(e,t,n){let r=this;return function(t){return i1.call(r,e,i,a,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(nc(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function a(e){return n(e)}}},ah={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},ap={name:"labelStartImage",resolveAll:ac.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),a):n(t)}function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},af={name:"attention",resolveAll:function(e,t){let n,r,i,a,o,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close){for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;let d={...e[n][1].end},h={...e[u][1].start};am(d,-s),am(h,s),a={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},o={type:s>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:h},i={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:s>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},e[n][1].end={...a.start},e[u][1].start={...o.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=(0,n$.V)(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=(0,n$.V)(l,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",i,t]]),l=(0,n$.V)(l,(0,rs.W)(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=(0,n$.V)(l,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=(0,n$.V)(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,(0,n$.m)(e,n-1,u-n+3,l),u=n+l.length-c-2;break}}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,i=this.previous,a=nx(i);return function(o){return n=o,e.enter("attentionSequence"),function o(s){if(s===n)return e.consume(s),o;let l=e.exit("attentionSequence"),c=nx(s),u=!c||2===c&&a||r.includes(s),d=!a||2===a&&c||r.includes(i);return l._open=!!(42===n?u:u&&(a||!d)),l._close=!!(42===n?d:d&&(c||!u)),t(s)}(o)}}};function am(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let ag={name:"labelStartLink",resolveAll:ac.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},ab={42:iX,43:iX,45:iX,48:iX,49:iX,50:iX,51:iX,52:iX,53:iX,54:iX,55:iX,56:iX,57:iX,62:iJ},aE={91:{name:"definition",tokenize:function(e,t,n){let r,i=this;return function(t){var r;return e.enter("definition"),r=t,i1.call(i,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function a(t){return(r=nc(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):n(t)}function o(t){return(0,t9.Ee)(t)?i5(e,s)(t):s(t)}function s(t){return i0(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(i6,c,c)(t)}function c(t){return(0,t9.On)(t)?(0,n7.N)(e,u,"whitespace")(t):u(t)}function u(a){return null===a||(0,t9.HP)(a)?(e.exit("definition"),i.parser.defined.push(r),t(a)):n(a)}}}},ay={[-2]:i9,[-1]:i9,32:i9},aT={35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,a=3;return"whitespace"===e[3][1].type&&(a+=2),i-2>a&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(a===i-1||i-4>a&&"whitespace"===e[i-2][1].type)&&(i-=a+1===i?2:4),i>a&&(n={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},r={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},(0,n$.m)(e,a,i-a+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){var a;return e.enter("atxHeading"),a=i,e.enter("atxHeadingSequence"),function i(a){return 35===a&&r++<6?(e.consume(a),i):null===a||(0,t9.Ee)(a)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||(0,t9.HP)(r)?(e.exit("atxHeading"),t(r)):(0,t9.On)(r)?(0,n7.N)(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||(0,t9.Ee)(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(a)):n(a)}(a)}}},42:iK,45:[i4,iK],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,i,a,o,s,l=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),c};function c(o){return 33===o?(e.consume(o),u):47===o?(e.consume(o),i=!0,p):63===o?(e.consume(o),r=3,l.interrupt?t:O):(0,t9.CW)(o)?(e.consume(o),a=String.fromCharCode(o),f):n(o)}function u(i){return 45===i?(e.consume(i),r=2,d):91===i?(e.consume(i),r=5,o=0,h):(0,t9.CW)(i)?(e.consume(i),r=4,l.interrupt?t:O):n(i)}function d(r){return 45===r?(e.consume(r),l.interrupt?t:O):n(r)}function h(r){let i="CDATA[";return r===i.charCodeAt(o++)?(e.consume(r),o===i.length)?l.interrupt?t:A:h:n(r)}function p(t){return(0,t9.CW)(t)?(e.consume(t),a=String.fromCharCode(t),f):n(t)}function f(o){if(null===o||47===o||62===o||(0,t9.Ee)(o)){let s=47===o,c=a.toLowerCase();return!s&&!i&&i8.includes(c)?(r=1,l.interrupt?t(o):A(o)):i7.includes(a.toLowerCase())?(r=6,s)?(e.consume(o),m):l.interrupt?t(o):A(o):(r=7,l.interrupt&&!l.parser.lazy[l.now().line]?n(o):i?function t(n){return(0,t9.On)(n)?(e.consume(n),t):k(n)}(o):g(o))}return 45===o||(0,t9.lV)(o)?(e.consume(o),a+=String.fromCharCode(o),f):n(o)}function m(r){return 62===r?(e.consume(r),l.interrupt?t:A):n(r)}function g(t){return 47===t?(e.consume(t),k):58===t||95===t||(0,t9.CW)(t)?(e.consume(t),b):(0,t9.On)(t)?(e.consume(t),g):k(t)}function b(t){return 45===t||46===t||58===t||95===t||(0,t9.lV)(t)?(e.consume(t),b):E(t)}function E(t){return 61===t?(e.consume(t),y):(0,t9.On)(t)?(e.consume(t),E):g(t)}function y(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,T):(0,t9.On)(t)?(e.consume(t),y):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||(0,t9.Ee)(n)?E(n):(e.consume(n),t)}(t)}function T(t){return t===s?(e.consume(t),s=null,v):null===t||(0,t9.HP)(t)?n(t):(e.consume(t),T)}function v(e){return 47===e||62===e||(0,t9.On)(e)?g(e):n(e)}function k(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||(0,t9.HP)(t)?A(t):(0,t9.On)(t)?(e.consume(t),S):n(t)}function A(t){return 45===t&&2===r?(e.consume(t),w):60===t&&1===r?(e.consume(t),N):62===t&&4===r?(e.consume(t),D):63===t&&3===r?(e.consume(t),O):93===t&&5===r?(e.consume(t),R):(0,t9.HP)(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(ae,P,C)(t)):null===t||(0,t9.HP)(t)?(e.exit("htmlFlowData"),C(t)):(e.consume(t),A)}function C(t){return e.check(at,_,P)(t)}function _(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),x}function x(t){return null===t||(0,t9.HP)(t)?C(t):(e.enter("htmlFlowData"),A(t))}function w(t){return 45===t?(e.consume(t),O):A(t)}function N(t){return 47===t?(e.consume(t),a="",I):A(t)}function I(t){if(62===t){let n=a.toLowerCase();return i8.includes(n)?(e.consume(t),D):A(t)}return(0,t9.CW)(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),I):A(t)}function R(t){return 93===t?(e.consume(t),O):A(t)}function O(t){return 62===t?(e.consume(t),D):45===t&&2===r?(e.consume(t),O):A(t)}function D(t){return null===t||(0,t9.HP)(t)?(e.exit("htmlFlowData"),P(t)):(e.consume(t),D)}function P(n){return e.exit("htmlFlow"),t(n)}}},61:i4,95:iK,96:ar,126:ar},av={38:ao,92:as},ak={[-5]:al,[-4]:al,[-3]:al,33:ap,38:ao,42:af,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return(0,t9.CW)(t)?(e.consume(t),a):64===t?n(t):s(t)}function a(t){return 43===t||45===t||46===t||(0,t9.lV)(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,o):(43===n||45===n||46===n||(0,t9.lV)(n))&&r++<32?(e.consume(n),t):(r=0,s(n))}(t)):s(t)}function o(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||(0,t9.JQ)(r)?n(r):(e.consume(r),o)}function s(t){return 64===t?(e.consume(t),l):(0,t9.cx)(t)?(e.consume(t),s):n(t)}function l(i){return(0,t9.lV)(i)?function i(a){return 46===a?(e.consume(a),r=0,l):62===a?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(a),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(a){if((45===a||(0,t9.lV)(a))&&r++<63){let n=45===a?t:i;return e.consume(a),n}return n(a)}(a)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,a,o=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),T):63===t?(e.consume(t),E):(0,t9.CW)(t)?(e.consume(t),k):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,p):(0,t9.CW)(t)?(e.consume(t),b):n(t)}function c(t){return 45===t?(e.consume(t),h):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):(0,t9.HP)(t)?(a=u,I(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),h):u(t)}function h(e){return 62===e?N(e):45===e?d(e):u(e)}function p(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?f:p):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),m):(0,t9.HP)(t)?(a=f,I(t)):(e.consume(t),f)}function m(t){return 93===t?(e.consume(t),g):f(t)}function g(t){return 62===t?N(t):93===t?(e.consume(t),g):f(t)}function b(t){return null===t||62===t?N(t):(0,t9.HP)(t)?(a=b,I(t)):(e.consume(t),b)}function E(t){return null===t?n(t):63===t?(e.consume(t),y):(0,t9.HP)(t)?(a=E,I(t)):(e.consume(t),E)}function y(e){return 62===e?N(e):E(e)}function T(t){return(0,t9.CW)(t)?(e.consume(t),v):n(t)}function v(t){return 45===t||(0,t9.lV)(t)?(e.consume(t),v):function t(n){return(0,t9.HP)(n)?(a=t,I(n)):(0,t9.On)(n)?(e.consume(n),t):N(n)}(t)}function k(t){return 45===t||(0,t9.lV)(t)?(e.consume(t),k):47===t||62===t||(0,t9.Ee)(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),N):58===t||95===t||(0,t9.CW)(t)?(e.consume(t),A):(0,t9.HP)(t)?(a=S,I(t)):(0,t9.On)(t)?(e.consume(t),S):N(t)}function A(t){return 45===t||46===t||58===t||95===t||(0,t9.lV)(t)?(e.consume(t),A):function t(n){return 61===n?(e.consume(n),C):(0,t9.HP)(n)?(a=t,I(n)):(0,t9.On)(n)?(e.consume(n),t):S(n)}(t)}function C(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,_):(0,t9.HP)(t)?(a=C,I(t)):(0,t9.On)(t)?(e.consume(t),C):(e.consume(t),x)}function _(t){return t===r?(e.consume(t),r=void 0,w):null===t?n(t):(0,t9.HP)(t)?(a=_,I(t)):(e.consume(t),_)}function x(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||(0,t9.Ee)(t)?S(t):(e.consume(t),x)}function w(e){return 47===e||62===e||(0,t9.Ee)(e)?S(e):n(e)}function N(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function I(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),R}function R(t){return(0,t9.On)(t)?(0,n7.N)(e,O,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):O(t)}function O(t){return e.enter("htmlTextData"),a(t)}}}],91:ag,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return(0,t9.HP)(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},as],93:ac,95:af,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),a++,t):(e.exit("codeTextSequence"),o(n))}(t)};function o(l){return null===l?n(l):32===l?(e.enter("space"),e.consume(l),e.exit("space"),o):96===l?(i=e.enter("codeTextSequence"),r=0,function n(o){return 96===o?(e.consume(o),r++,n):r===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(o)):(i.type="codeTextData",s(o))}(l)):(0,t9.HP)(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):(e.enter("codeTextData"),s(l))}function s(t){return null===t||32===t||96===t||(0,t9.HP)(t)?(e.exit("codeTextData"),o(t)):(e.consume(t),s)}}}},aS={null:[af,iz]},aA={null:[42,95]},aC={null:[]},a_=/[\0\t\n\r]/g;function ax(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let aw=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function aN(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return ax(n.slice(t?2:1),t?16:10)}return aa(n)||e}let aI={}.hasOwnProperty;function aR(e){return{line:e.line,column:e.column,offset:e.offset}}function aO(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+im({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+im({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+im({start:t.start,end:t.end})+") is still open")}function aD(e){let t=this;t.parser=function(n){var i,a;let o,s,l,c;return"object"==typeof(i={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(a=i,i=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(b),autolinkProtocol:c,autolinkEmail:c,atxHeading:r(f),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:c,characterReference:c,codeFenced:r(p),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(p,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:c,data:c,codeFlowValue:c,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(g,i),htmlFlowData:c,htmlText:r(g,i),htmlTextData:c,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(b),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(E,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(E),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(f),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:o(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:o(),autolinkEmail:function(e){u.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){u.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:o(),characterEscapeValue:u,characterReferenceMarkerHexadecimal:h,characterReferenceMarkerNumeric:h,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=ax(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=aa(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=aR(e.end)},codeFenced:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:u,codeIndented:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:u,data:u,definition:o(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=nc(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:o(),hardBreakEscape:o(d),hardBreakTrailing:o(d),htmlFlow:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:u,htmlText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:u,image:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(aw,aN),n.identifier=nc(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=aR(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(c.call(this,e),u.call(this,e))},link:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=nc(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:o(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:o(),thematicBreak:o()}};!function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(aI.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},o={stack:[r],tokenStack:[],config:t,enter:a,exit:s,buffer:i,resume:l,data:n},c=[],u=-1;for(;++u<e.length;)("listOrdered"===e[u][1].type||"listUnordered"===e[u][1].type)&&("enter"===e[u][0]?c.push(u):u=function(e,t,n){let r,i,a,o,s=t-1,l=-1,c=!1;for(;++s<=n;){let t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,o=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||o||l||a||(a=s),o=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:o=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let o=s;for(i=void 0;o--;){let t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=o}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}a&&(!i||a<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(s,0,["enter",i,t[2]]),s++,n++,a=void 0,o=!0}}}return e[t][1]._spread=c,n}(e,c.pop(),u));for(u=-1;++u<e.length;){let n=t[e[u][0]];aI.call(n,e[u][1].type)&&n[e[u][1].type].call(Object.assign({sliceSerialize:e[u][2].sliceSerialize},o),e[u][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||aO).call(o,void 0,e[0])}for(r.position={start:aR(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:aR(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u<t.transforms.length;)r=t.transforms[u](r)||r;return r};function r(e,t){return function(n){a.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function a(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:aR(t.start),end:void 0}}function o(e){return function(t){e&&e.call(this,t),s.call(this,t)}}function s(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||aO).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+im({start:e.start,end:e.end})+"): it’s not open");n.position.end=aR(e.end)}function l(){return nN(this.stack.pop())}function c(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:aR(e.start),end:void 0},t.push(n)),this.stack.push(n)}function u(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=aR(e.end)}function d(){this.data.atHardBreak=!0}function h(e){this.data.characterReferenceType=e.type}function p(){return{type:"code",lang:null,meta:null,value:""}}function f(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function g(){return{type:"html",value:""}}function b(){return{type:"link",title:null,url:"",children:[]}}function E(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(a)(function(e){for(;!iM(e););return e}((function(e){let t={constructs:nq([r,...(e||{}).extensions||[]]),content:n(iF),defined:[],document:n(iB),flow:n(iG),lazy:{},string:n(i$),text:n(iW)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],l={attempt:f(function(e,t){m(e,t.from)}),check:f(p),consume:function(e){(0,t9.HP)(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=h(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){let t=s.pop();return t.end=h(),c.events.push(["exit",t,c]),t},interrupt:f(p,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,g()},events:[],now:h,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let a,o=e[r];if("string"==typeof o)a=o;else switch(o){case -5:a="\r";break;case -4:a="\n";break;case -3:a="\r\n";break;case -2:a=t?" ":" ";break;case -1:if(!t&&n)continue;a=" ";break;default:a=String.fromCharCode(o)}n=-2===o,i.push(a)}return i.join("")}(d(e),t)},sliceStream:d,write:function(e){return(o=(0,n$.V)(o,e),function(){let e;for(;r._index<o.length;){let n=o[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),u=u(t)}else u=u(n)}}(),null!==o[o.length-1])?[]:(m(t,0),c.events=(0,rs.W)(a,c.events,c),c.events)}},u=t.tokenize.call(c,l);return t.resolveAll&&a.push(t),c;function d(e){return function(e,t){let n,r=t.start._index,i=t.start._bufferIndex,a=t.end._index,o=t.end._bufferIndex;if(r===a)n=[e[r].slice(i,o)];else{if(n=e.slice(r,a),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}o>0&&n.push(e[a].slice(0,o))}return n}(o,e)}function h(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function p(e,t){t.restore()}function f(e,t){return function(n,i,a){var o;let u,d,p,f;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(o=n,function(e){let t=null!==e&&o[e],n=null!==e&&o.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function m(e){return(u=e,d=0,0===e.length)?a:b(e[d])}function b(e){return function(n){let i,a,o,u,d;return(i=h(),a=c.previous,o=c.currentConstruct,u=c.events.length,d=Array.from(s),f={from:u,restore:function(){r=i,c.previous=a,c.currentConstruct=o,c.events.length=u,s=d,g()}},p=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name))?y(n):e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,E,y)(n)}}function E(t){return e(p,f),i}function y(e){return(f.restore(),++d<u.length)?b(u[d]):a}}}function m(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&(0,n$.m)(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function g(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(a).document().write((s=1,l="",c=!0,function(e,t,n){let r,i,a,u,d,h=[];for(e=l+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),a=0,l="",c&&(65279===e.charCodeAt(0)&&a++,c=void 0);a<e.length;){if(a_.lastIndex=a,u=(r=a_.exec(e))&&void 0!==r.index?r.index:e.length,d=e.charCodeAt(u),!r){l=e.slice(a);break}if(10===d&&a===u&&o)h.push(-3),o=void 0;else switch(o&&(h.push(-5),o=void 0),a<u&&(h.push(e.slice(a,u)),s+=u-a),d){case 0:h.push(65533),s++;break;case 9:for(i=4*Math.ceil(s/4),h.push(-2);s++<i;)h.push(-1);break;case 10:h.push(-4),s=1;break;default:o=!0,s=1}a=u+1}return n&&(o&&h.push(-5),l&&h.push(l),h.push(null)),h})(n,i,!0))))}}function aP(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o="";if(37===a&&(0,t9.lV)(e.charCodeAt(n+1))&&(0,t9.lV)(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function aL(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function aM(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function aF(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),a=i[0];a&&"text"===a.type?a.value="["+a.value:i.unshift({type:"text",value:"["});let o=i[i.length-1];return o&&"text"===o.type?o.value+=r:i.push({type:"text",value:r}),i}function aB(e){let t=e.spread;return null==t?e.children.length>1:t}function aH(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let aU={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a={type:"element",tagName:"pre",properties:{},children:[a=e.applyData(t,a)]},e.patch(t,a),a},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),a=aP(i.toLowerCase()),o=e.footnoteOrder.indexOf(i),s=e.footnoteCounts.get(i);void 0===s?(s=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=o+1,s+=1,e.footnoteCounts.set(i,s);let l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+a,id:r+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,l);let c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return aF(e,t);let i={src:aP(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)},image:function(e,t){let n={src:aP(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return aF(e,t);let i={href:aP(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},link:function(e,t){let n={href:aP(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=aB(n[r])}return t}(n):aB(t),a={},o=[];if("boolean"==typeof t.checked){let e,n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s<r.length;){let e=r[s];(i||0!==s||"element"!==e.type||"p"!==e.tagName)&&o.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?o.push(e):o.push(...e.children)}let l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&o.push({type:"text",value:"\n"});let c={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=tN(t.children[1]),o=tw(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",a=n&&"table"===n.type?n.align:void 0,o=a?a.length:t.children.length,s=-1,l=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let c={type:"element",tagName:i,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(aH(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(aH(t.slice(i),i>0,!1)),a.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:aj,yaml:aj,definition:aj,footnoteDefinition:aj};function aj(){}let aG={}.hasOwnProperty,az={};function a$(e,t){e.position&&(t.position=tR(e))}function aW(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,S(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function aq(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function aV(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function aY(e,t){let n,r,i,o,s=(n=t||az,r=new Map,i=new Map,o={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=o.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=aV(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=aV(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:aW,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...aU,...n.handlers},one:function(e,t){let n=e.type,r=o.handlers[n];if(aG.call(o.handlers,n)&&r)return r(o,e,t);if(o.options.passThrough&&o.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=S(n);return r.children=o.all(e),r}return S(e)}return(o.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(aG.call(n,"hProperties")||aG.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(o,e,t)},options:n,patch:a$,wrap:aq},(0,a.YR)(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),o),l=s.one(e,void 0),c=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||aL,r=e.options.footnoteBackLabel||aM,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[],l=-1;for(;++l<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[l]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),c=aP(o.toLowerCase()),u=0,d=[],h=e.footnoteCounts.get(o);for(;void 0!==h&&++u<=h;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&"element"===p.type&&"p"===p.tagName){let e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else a.push(...d);let f={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(a,!0)};e.patch(i,f),s.push(f)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...S(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(s),u=Array.isArray(l)?{type:"root",children:l}:l||{type:"root",children:[]};return c&&((0,A.ok)("children"in u),u.children.push({type:"text",value:"\n"},c)),u}function aK(e,t){return e&&"run"in e?async function(n,r){let i=aY(n,{file:r,...t});await e.run(i,r)}:function(n,r){return aY(n,{file:r,...e||t})}}function aX(e){if(e)throw e}var aQ=n(32919);function aZ(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let aJ=function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');a5(e);let r=0,i=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let o=-1,s=t.length-1;for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else o<0&&(n=!0,o=a+1),s>-1&&(e.codePointAt(a)===t.codePointAt(s--)?s<0&&(i=a):(s=-1,i=o));return r===i?i=o:i<0&&(i=e.length),e.slice(r,i)},a0=function(e){let t;if(a5(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},a1=function(e){let t;a5(e);let n=e.length,r=-1,i=0,a=-1,o=0;for(;n--;){let s=e.codePointAt(n);if(47===s){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===s?a<0?a=n:1!==o&&(o=1):a>-1&&(o=-1)}return a<0||r<0||0===o||1===o&&a===r-1&&a===i+1?"":e.slice(a,r)},a2=function(...e){var t;let n,r,i,a=-1;for(;++a<e.length;)a5(e[a]),e[a]&&(i=void 0===i?e[a]:i+"/"+e[a]);return void 0===i?".":(a5(t=i),n=47===t.codePointAt(0),0!==(r=function(e,t){let n,r,i="",a=0,o=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else if(47===n)break;else n=47;if(47===n){if(o===l-1||1===s);else if(o!==l-1&&2===s){if(i.length<2||2!==a||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",a=0):a=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),o=l,s=0;continue}}else if(i.length>0){i="",a=0,o=l,s=0;continue}}t&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(o+1,l):i=e.slice(o+1,l),a=l-o-1;o=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(t,!n)).length||n||(r="."),r.length>0&&47===t.codePointAt(t.length-1)&&(r+="/"),n?"/"+r:r)};function a5(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function a6(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let a9=["history","path","basename","stem","extname","dirname"];class a3{constructor(e){let t,n;t=e?a6(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<a9.length;){const e=a9[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)a9.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?aJ(this.path):void 0}set basename(e){a7(e,"basename"),a4(e,"basename"),this.path=a2(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?a0(this.path):void 0}set dirname(e){a8(this.basename,"dirname"),this.path=a2(e||"",this.basename)}get extname(){return"string"==typeof this.path?a1(this.path):void 0}set extname(e){if(a4(e,"extname"),a8(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=a2(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){a6(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!a6(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),a7(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?aJ(this.path,this.extname):void 0}set stem(e){a7(e,"stem"),a4(e,"stem"),this.path=a2(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new iy(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function a4(e,t){if(e&&e.includes("/"))throw Error("`"+t+"` cannot be a path: did not expect `/`")}function a7(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function a8(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let oe=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},ot={}.hasOwnProperty;class on extends oe{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);!function i(a,...o){let s=e[++n],l=-1;if(a)return void r(a);for(;++l<t.length;)(null===o[l]||void 0===o[l])&&(o[l]=t[l]);t=o,s?(function(e,t){let n;return function(...t){let a,o=e.length>t.length;o&&t.push(r);try{a=e.apply(this,t)}catch(e){if(o&&n)throw e;return r(e)}o||(a&&a.then&&"function"==typeof a.then?a.then(i,r):a instanceof Error?r(a):i(a))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(s,i)(...o):r(null,...o)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new on,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data(aQ(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(oo("data",this.frozen),this.namespace[e]=t,this):ot.call(this.namespace,e)&&this.namespace[e]||void 0:e?(oo("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=oc(e),n=this.parser||this.Parser;return oi("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),oi("process",this.parser||this.Parser),oa("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=oc(e),o=n.parse(a);function s(e,n){e||!n?i(e):r?r(n):((0,A.ok)(t,"`done` is defined if `resolve` is not"),t(void 0,n))}n.run(o,a,function(e,t,r){var i,a;if(e||!t||!r)return s(e);let o=n.stringify(t,r);"string"==typeof(i=o)||(a=i)&&"object"==typeof a&&"byteLength"in a&&"byteOffset"in a?r.value=o:r.result=o,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),oi("processSync",this.parser||this.Parser),oa("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,aX(e),t=r}),ol("processSync","process",n),(0,A.ok)(t,"we either bailed on an error or have a tree"),t}run(e,t,n){os(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){(0,A.ok)("function"!=typeof t,"`file` can’t be a `done` anymore, we checked");let o=oc(t);r.run(e,o,function(t,r,o){let s=r||e;t?a(t):i?i(s):((0,A.ok)(n,"`done` is defined if `resolve` is not"),n(void 0,s,o))})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){aX(e),n=t,r=!0}),ol("runSync","run",r),(0,A.ok)(n,"we either bailed on an error or have a tree"),n}stringify(e,t){this.freeze();let n=oc(t),r=this.compiler||this.Compiler;return oa("stringify",r),os(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(oo("use",this.frozen),null==e);else if("function"==typeof e)o(e,t);else if("object"==typeof e)Array.isArray(e)?a(e):i(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(e.plugins),e.settings&&(r.settings=aQ(!0,r.settings,e.settings))}function a(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)o(e,[]);else if("object"==typeof e)if(Array.isArray(e)){let[t,...n]=e;o(t,n)}else i(e);else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function o(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];aZ(o)&&aZ(r)&&(r=aQ(!0,o,r)),n[i]=[e,r,...a]}}}}let or=new on().freeze();function oi(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function oa(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function oo(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function os(e){if(!aZ(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function ol(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function oc(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new a3(e)}function ou(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var od=ou(),oh={exec:()=>null};function op(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(om.caret,"$1"),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var of=(()=>{try{return!!RegExp("(?<=1)(?<!1)")}catch{return!1}})(),om={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}>`)},og=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ob=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,oE=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,oy=op(oE).replace(/bull/g,ob).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),oT=op(oE).replace(/bull/g,ob).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ov=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ok=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,oS=op(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ok).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),oA=op(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ob).getRegex(),oC="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",o_=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ox=op("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",o_).replace("tag",oC).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ow=op(ov).replace("hr",og).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",oC).getRegex(),oN={blockquote:op(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ow).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:oS,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:og,html:ox,lheading:oy,list:oA,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:ow,table:oh,text:/^[^\n]+/},oI=op("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",og).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",oC).getRegex(),oR={...oN,lheading:oT,table:oI,paragraph:op(ov).replace("hr",og).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",oI).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",oC).getRegex()},oO={...oN,html:op("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",o_).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:oh,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:op(ov).replace("hr",og).replace("heading",` *#{1,6} *[^
23
- ]`).replace("lheading",oy).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},oD=/^( {2,}|\\)\n(?!\s*$)/,oP=/[\p{P}\p{S}]/u,oL=/[\s\p{P}\p{S}]/u,oM=/[^\s\p{P}\p{S}]/u,oF=op(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,oL).getRegex(),oB=/(?!~)[\p{P}\p{S}]/u,oH=op(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",of?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),oU=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,oj=op(oU,"u").replace(/punct/g,oP).getRegex(),oG=op(oU,"u").replace(/punct/g,oB).getRegex(),oz="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",o$=op(oz,"gu").replace(/notPunctSpace/g,oM).replace(/punctSpace/g,oL).replace(/punct/g,oP).getRegex(),oW=op(oz,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,oB).getRegex(),oq=op("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,oM).replace(/punctSpace/g,oL).replace(/punct/g,oP).getRegex(),oV=op(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,oP).getRegex(),oY=op("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,oM).replace(/punctSpace/g,oL).replace(/punct/g,oP).getRegex(),oK=op(/\\(punct)/,"gu").replace(/punct/g,oP).getRegex(),oX=op(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),oQ=op(o_).replace("(?:--\x3e|$)","--\x3e").getRegex(),oZ=op("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",oQ).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),oJ=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,o0=op(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",oJ).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),o1=op(/^!?\[(label)\]\[(ref)\]/).replace("label",oJ).replace("ref",ok).getRegex(),o2=op(/^!?\[(ref)\](?:\[\])?/).replace("ref",ok).getRegex(),o5=op("reflink|nolink(?!\\()","g").replace("reflink",o1).replace("nolink",o2).getRegex(),o6=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,o9={_backpedal:oh,anyPunctuation:oK,autolink:oX,blockSkip:oH,br:oD,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:oh,delLDelim:oh,delRDelim:oh,emStrongLDelim:oj,emStrongRDelimAst:o$,emStrongRDelimUnd:oq,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:o0,nolink:o2,punctuation:oF,reflink:o1,reflinkSearch:o5,tag:oZ,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:oh},o3={...o9,link:op(/^!?\[(label)\]\((.*?)\)/).replace("label",oJ).getRegex(),reflink:op(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",oJ).getRegex()},o4={...o9,emStrongRDelimAst:oW,emStrongLDelim:oG,delLDelim:oV,delRDelim:oY,url:op(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",o6).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:op(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",o6).getRegex()},o7={...o4,br:op(oD).replace("{2,}","*").getRegex(),text:op(o4.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},o8={normal:oN,gfm:oR,pedantic:oO},se={normal:o9,gfm:o4,breaks:o7,pedantic:o3},st={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},sn=e=>st[e];function sr(e,t){if(t){if(om.escapeTest.test(e))return e.replace(om.escapeReplace,sn)}else if(om.escapeTestNoEncode.test(e))return e.replace(om.escapeReplaceNoEncode,sn);return e}function si(e){try{e=encodeURI(e).replace(om.percentDecode,"%")}catch{return null}return e}function sa(e,t){let n=e.replace(om.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(om.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(om.slashPipe,"|");return n}function so(e,t,n){let r=e.length;if(0===r)return"";let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a!==t||n)if(a!==t&&n)i++;else break;else i++}return e.slice(0,r-i)}function ss(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,l}var sl=class{options;rules;lexer;constructor(e){this.options=e||od}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:so(e,`
24
- `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let i=r[1];return t.split(`
25
- `).map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
26
- `)}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=so(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:so(t[0],`
27
- `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=so(t[0],`
28
- `).split(`
29
- `),n="",r="",i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(t)break;else a.push(e[o]);e=e.slice(o);let s=a.join(`
30
- `),l=s.replace(this.rules.other.blockquoteSetextReplace,`
31
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
32
- ${s}`:s,r=r?`${r}
33
- ${l}`:l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,i,!0),this.lexer.state.top=c,0===e.length)break;let u=i.at(-1);if(u?.type==="code")break;if(u?.type==="blockquote"){let t=u.raw+`
34
- `+e.join(`
35
- `),a=this.blockquote(t);i[i.length-1]=a,n=n.substring(0,n.length-u.raw.length)+a.raw,r=r.substring(0,r.length-u.text.length)+a.text;break}if(u?.type==="list"){let t=u.raw+`
36
- `+e.join(`
37
- `),a=this.list(t);i[i.length-1]=a,n=n.substring(0,n.length-u.raw.length)+a.raw,r=r.substring(0,r.length-u.raw.length)+a.raw,e=t.substring(i.at(-1).raw.length).split(`
38
- `);continue}}return{type:"blockquote",raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r="",s="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let l=function(e,t=0){let n=t,r="";for(let t of e)if(" "===t){let e=4-n%4;r+=" ".repeat(e),n+=e}else r+=t,n++;return r}(t[2].split(`
39
- `,1)[0],t[1].length),c=e.split(`
40
- `,1)[0],u=!l.trim(),d=0;if(this.options.pedantic?(d=2,s=l.trimStart()):u?d=t[1].length+1:(d=(d=l.search(this.rules.other.nonSpaceChar))>4?1:d,s=l.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(c)&&(r+=c+`
41
- `,e=e.substring(c.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d),h=this.rules.other.blockquoteBeginRegex(d);for(;e;){let p=e.split(`
42
- `,1)[0],f;if(c=p,f=this.options.pedantic?c=c.replace(this.rules.other.listReplaceNesting," "):c.replace(this.rules.other.tabCharGlobal," "),i.test(c)||a.test(c)||o.test(c)||h.test(c)||t.test(c)||n.test(c))break;if(f.search(this.rules.other.nonSpaceChar)>=d||!c.trim())s+=`
43
- `+f.slice(d);else{if(u||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||i.test(l)||a.test(l)||n.test(l))break;s+=`
44
- `+c}u=!c.trim(),r+=p+`
45
- `,e=e.substring(p.length+1),l=f.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0)),i.items.push({type:"list_item",raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(!s)return;for(let e of(s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd(),i.raw=i.raw.trimEnd(),i.items)){if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),e.task){if(e.text=e.text.replace(this.rules.other.listReplaceTask,""),e.tokens[0]?.type==="text"||e.tokens[0]?.type==="paragraph"){e.tokens[0].raw=e.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),e.tokens[0].text=e.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,"");break}}let t=this.rules.other.listTaskCheckbox.exec(e.raw);if(t){let n={type:"checkbox",raw:t[0]+" ",checked:"[ ]"!==t[0]};e.checked=n.checked,i.loose?e.tokens[0]&&["paragraph","text"].includes(e.tokens[0].type)&&"tokens"in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=n.raw+e.tokens[0].raw,e.tokens[0].text=n.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(n)):e.tokens.unshift({type:"paragraph",raw:n.raw,text:n.raw,tokens:[n]}):e.tokens.unshift(n)}}if(!i.loose){let t=e.tokens.filter(e=>"space"===e.type);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}}if(i.loose)for(let e of i.items)for(let t of(e.loose=!0,e.tokens))"text"===t.type&&(t.type="paragraph");return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=sa(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
46
- `):[],a={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push("right"):this.rules.other.tableAlignCenter.test(e)?a.align.push("center"):this.rules.other.tableAlignLeft.test(e)?a.align.push("left"):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(sa(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
47
- `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=so(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e){if(-1===e.indexOf(")"))return -1;let t=0;for(let n=0;n<e.length;n++)if("\\"===e[n])n++;else if("("===e[n])t++;else if(")"===e[n]&&--t<0)return n;return t>0?-2:-1}(t[2]);if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),ss(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return ss(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,l="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);null!==(r=l.exec(t));){if(!(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6]))continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if((o-=a)>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,l=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);null!==(r=s.exec(t));){if(!(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6])||(a=[...i].length)!==n)continue;if(r[3]||r[4]){o+=a;continue}if((o-=a)>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),l=s.slice(n,-n);return{type:"del",raw:s,text:l,tokens:this.lexer.inlineTokens(l)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return n="@"===t[2]?"mailto:"+(e=t[1]):e=t[1],{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])n="mailto:"+(e=t[0]);else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(r!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},sc=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||od,this.options.tokenizer=this.options.tokenizer||new sl,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:om,block:o8.normal,inline:se.normal};this.options.pedantic?(t.block=o8.pedantic,t.inline=se.pedantic):this.options.gfm&&(t.block=o8.gfm,this.options.breaks?t.inline=se.breaks:t.inline=se.gfm),this.tokenizer.rules=t}static get rules(){return{block:o8,inline:se}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(om.carriageReturn,`
48
- `),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(om.tabCharGlobal," ").replace(om.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);1===r.raw.length&&void 0!==n?n.raw+=`
49
- `:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(`
50
- `)?"":`
51
- `)+r.raw,n.text+=`
52
- `+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if((r=this.tokenizer.fences(e))||(r=this.tokenizer.heading(e))||(r=this.tokenizer.hr(e))||(r=this.tokenizer.blockquote(e))||(r=this.tokenizer.list(e))||(r=this.tokenizer.html(e))){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(`
53
- `)?"":`
54
- `)+r.raw,n.text+=`
55
- `+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if((r=this.tokenizer.table(e))||(r=this.tokenizer.lheading(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let a=t.at(-1);n&&a?.type==="paragraph"?(a.raw+=(a.raw.endsWith(`
56
- `)?"":`
57
- `)+r.raw,a.text+=`
58
- `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="text"?(n.raw+=(n.raw.endsWith(`
59
- `)?"":`
60
- `)+r.raw,n.text+=`
61
- `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n;this.tokenizer.lexer=this;let r=e,i=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!==(i=this.tokenizer.rules.inline.reflinkSearch.exec(r));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!==(i=this.tokenizer.rules.inline.anyPunctuation.exec(r));)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!==(i=this.tokenizer.rules.inline.blockSkip.exec(r));)n=i[2]?i[2].length:0,r=r.slice(0,i.index+n)+"["+"a".repeat(i[0].length-n-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let a=!1,o="";for(;e;){let n;if(a||(o=""),a=!1,this.options.extensions?.inline?.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))continue;if((n=this.tokenizer.escape(e))||(n=this.tokenizer.tag(e))||(n=this.tokenizer.link(e))){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length);let r=t.at(-1);"text"===n.type&&r?.type==="text"?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if((n=this.tokenizer.emStrong(e,r,o))||(n=this.tokenizer.codespan(e))||(n=this.tokenizer.br(e))||(n=this.tokenizer.del(e,r,o))||(n=this.tokenizer.autolink(e))||!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(i)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(o=n.raw.slice(-1)),a=!0;let r=t.at(-1);r?.type==="text"?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}},su=class{options;parser;constructor(e){this.options=e||od}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(om.notSpaceStart)?.[0],i=e.replace(om.endingNewline,"")+`
62
- `;return r?'<pre><code class="language-'+sr(r)+'">'+(n?i:sr(i,!0))+`</code></pre>
63
- `:"<pre><code>"+(n?i:sr(i,!0))+`</code></pre>
64
- `}blockquote({tokens:e}){return`<blockquote>
65
- ${this.parser.parse(e)}</blockquote>
66
- `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
67
- `}hr(e){return`<hr>
68
- `}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+`>
69
- `+r+"</"+i+`>
70
- `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
71
- `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
72
- `}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n="";for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
73
- <thead>
74
- `+t+`</thead>
75
- `+r+`</table>
76
- `}tablerow({text:e}){return`<tr>
77
- ${e}</tr>
78
- `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
79
- `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${sr(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=si(e);if(null===i)return r;let a='<a href="'+(e=i)+'"';return t&&(a+=' title="'+sr(t)+'"'),a+=">"+r+"</a>"}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=si(e);if(null===i)return sr(n);e=i;let a=`<img src="${e}" alt="${sr(n)}"`;return t&&(a+=` title="${sr(t)}"`),a+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:sr(e.text)}},sd=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},sh=class e{options;renderer;textRenderer;constructor(e){this.options=e||od,this.options.renderer=this.options.renderer||new su,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new sd}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t="";for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=this.options.extensions.renderers[r.type].call({parser:this},r);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(r.type)){t+=e||"";continue}}switch(r.type){case"space":t+=this.renderer.space(r);break;case"hr":t+=this.renderer.hr(r);break;case"heading":t+=this.renderer.heading(r);break;case"code":t+=this.renderer.code(r);break;case"table":t+=this.renderer.table(r);break;case"blockquote":t+=this.renderer.blockquote(r);break;case"list":t+=this.renderer.list(r);break;case"checkbox":t+=this.renderer.checkbox(r);break;case"html":t+=this.renderer.html(r);break;case"def":t+=this.renderer.def(r);break;case"paragraph":t+=this.renderer.paragraph(r);break;case"text":t+=this.renderer.text(r);break;default:{let e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=e||"";continue}}switch(i.type){case"escape":case"text":n+=t.text(i);break;case"html":n+=t.html(i);break;case"link":n+=t.link(i);break;case"image":n+=t.image(i);break;case"checkbox":n+=t.checkbox(i);break;case"strong":n+=t.strong(i);break;case"em":n+=t.em(i);break;case"codespan":n+=t.codespan(i);break;case"br":n+=t.br(i);break;case"del":n+=t.del(i);break;default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}},sp=class{options;block;constructor(e){this.options=e||od}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?sc.lex:sc.lexInline}provideParser(e=this.block){return e?sh.parse:sh.parseInline}},sf=new class{defaults=ou();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=sh;Renderer=su;TextRenderer=sd;Lexer=sc;Tokenizer=sl;Hooks=sp;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":for(let e of r.header)n=n.concat(this.walkTokens(e.tokens,t));for(let e of r.rows)for(let r of e)n=n.concat(this.walkTokens(r.tokens,t));break;case"list":n=n.concat(this.walkTokens(r.items,t));break;default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new su(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=e.renderer[n],i=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new sl(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=e.tokenizer[n],i=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new sp;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=e.hooks[n],i=t[n];sp.passThroughHooks.has(n)?t[n]=e=>{if(this.defaults.async&&sp.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await r.call(t,e);return i.call(t,n)})();let a=r.call(t,e);return i.call(t,a)}:t[n]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await r.apply(t,e);return!1===n&&(n=await i.apply(t,e)),n})();let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return sc.lex(e,t??this.defaults)}parser(e,t){return sh.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)return a(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return a(Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return a(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await (i.hooks?await i.hooks.provideLexer(e):e?sc.lex:sc.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await (i.hooks?await i.hooks.provideParser(e):e?sh.parse:sh.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?sc.lex:sc.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?sh.parse:sh.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
80
- Please report this to https://github.com/markedjs/marked.`,e){let e="<p>An error occurred:</p><pre>"+sr(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function sm(e,t){return sf.parse(e,t)}sm.options=sm.setOptions=function(e){return sf.setOptions(e),sm.defaults=sf.defaults,od=sm.defaults,sm},sm.getDefaults=ou,sm.defaults=od,sm.use=function(...e){return sf.use(...e),sm.defaults=sf.defaults,od=sm.defaults,sm},sm.walkTokens=function(e,t){return sf.walkTokens(e,t)},sm.parseInline=sf.parseInline,sm.Parser=sh,sm.parser=sh.parse,sm.Renderer=su,sm.TextRenderer=sd,sm.Lexer=sc,sm.lexer=sc.lex,sm.Tokenizer=sl,sm.Hooks=sp,sm.parse=sm,sm.options,sm.setOptions,sm.use,sm.walkTokens,sm.parseInline,sh.parse,sc.lex;var sg=/\s/,sb=/^\s+$/,sE=new Set(["code","pre","svg","math","annotation"]),sy=0;function sT(e){var t,n,r,i,a;let s={animation:null!=(t=null==e?void 0:e.animation)?t:"fadeIn",duration:null!=(n=null==e?void 0:e.duration)?n:150,easing:null!=(r=null==e?void 0:e.easing)?r:"ease",sep:null!=(i=null==e?void 0:e.sep)?i:"word",stagger:null!=(a=null==e?void 0:e.stagger)?a:40},l={prevContentLength:0,lastRenderCharCount:0},c=sy++,u=()=>e=>{let t={count:0,newIndex:0};(0,o.VG)(e,"text",(e,n)=>((e,t,n,r,i)=>{let a=t.at(-1);if(!(a&&"children"in a))return;if(t.some(e=>"object"==typeof e&&null!==e&&"type"in e&&"element"===e.type&&sE.has(e.tagName)))return o._Z;let s=a.children.indexOf(e);if(-1===s)return;let l=e.value;if(!l.trim()){i.count+=l.length;return}let c="char"===n.sep?(e=>{let t=[],n="";for(let r of e)sg.test(r)?n+=r:(n&&(t.push(n),n=""),t.push(r));return n&&t.push(n),t})(l):(e=>{let t=[],n="",r=!1;for(let i of e){let e=sg.test(i);e!==r&&n&&(t.push(n),n=""),n+=i,r=e}return n&&t.push(n),t})(l),u=r.prevContentLength,d=c.map(e=>{var t,r,a;let o,s=i.count;if(i.count+=e.length,sb.test(e))return{type:"text",value:e};let l=u>0&&s<u,c=l?0:i.newIndex++*n.stagger;return t=n.animation,r=n.duration,a=n.easing,o=`--sd-animation:sd-${t};--sd-duration:${l?0:r}ms;--sd-easing:${a}`,c&&(o+=`;--sd-delay:${c}ms`),{type:"element",tagName:"span",properties:{"data-sd-animate":!0,style:o},children:[{type:"text",value:e}]}});return a.children.splice(s,1,...d),s+d.length})(e,n,s,l,t)),l.lastRenderCharCount=t.count,l.prevContentLength=0};return Object.defineProperty(u,"name",{value:`rehypeAnimate$${c}`}),{name:"animate",type:"animate",rehypePlugin:u,setPrevContentLength(e){l.prevContentLength=e},getLastRenderCharCount(){let e=l.lastRenderCharCount;return l.lastRenderCharCount=0,e}}}sT();var sv=(0,i.createContext)(!1),sk=(...e)=>(0,ii.QP)((0,ir.$)(e)),sS=(e,t,n)=>{let r="string"==typeof t&&n.startsWith("text/csv")?"\uFEFF":"",i="string"==typeof t?new Blob([r+t],{type:n}):t,a=URL.createObjectURL(i),o=document.createElement("a");o.href=a,o.download=e,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(a)},sA=(0,i.createContext)(sk),sC=()=>(0,i.useContext)(sA),s_=sk("block","before:content-[counter(line)]","before:inline-block","before:[counter-increment:line]","before:w-6","before:mr-4","before:text-[13px]","before:text-right","before:text-muted-foreground/50","before:font-mono","before:select-none"),sx=(0,i.memo)(({children:e,result:t,language:n,className:r,startLine:a,lineNumbers:o=!0,...s})=>{let l=sC(),c=(0,i.useMemo)(()=>l(s_),[l]),u=(0,i.useMemo)(()=>{let e={};return t.bg&&(e["--sdm-bg"]=t.bg),t.fg&&(e["--sdm-fg"]=t.fg),t.rootStyle&&Object.assign(e,(e=>{let t={};for(let n of e.split(";")){let e=n.indexOf(":");if(e>0){let r=n.slice(0,e).trim(),i=n.slice(e+1).trim();r&&i&&(t[r]=i)}}return t})(t.rootStyle)),e},[t.bg,t.fg,t.rootStyle]);return(0,ia.jsx)("div",{className:l(r,"overflow-x-auto rounded-md border border-border bg-background p-4 text-sm"),"data-language":n,"data-streamdown":"code-block-body",...s,children:(0,ia.jsx)("pre",{className:l(r,"bg-[var(--sdm-bg,inherit]","dark:bg-[var(--shiki-dark-bg,var(--sdm-bg,inherit)]"),style:u,children:(0,ia.jsx)("code",{className:o?l("[counter-increment:line_0] [counter-reset:line]"):void 0,style:o&&a&&a>1?{counterReset:`line ${a-1}`}:void 0,children:t.tokens.map((e,t)=>(0,ia.jsx)("span",{className:o?c:void 0,children:0===e.length||1===e.length&&""===e[0].content?`
81
- `:e.map((e,t)=>{let n={},r=!!e.bgColor;if(e.color&&(n["--sdm-c"]=e.color),e.bgColor&&(n["--sdm-tbg"]=e.bgColor),e.htmlStyle)for(let[t,i]of Object.entries(e.htmlStyle))"color"===t?n["--sdm-c"]=i:"background-color"===t?(n["--sdm-tbg"]=i,r=!0):n[t]=i;return(0,ia.jsx)("span",{className:l("text-[var(--sdm-c,inherit)]","dark:text-[var(--shiki-dark,var(--sdm-c,inherit))]",r&&"bg-[var(--sdm-tbg)]",r&&"dark:bg-[var(--shiki-dark-bg,var(--sdm-tbg))]"),style:n,...e.htmlAttrs,children:e.content},t)})},t))})})})},(e,t)=>e.result===t.result&&e.language===t.language&&e.className===t.className&&e.startLine===t.startLine&&e.lineNumbers===t.lineNumbers),sw=({className:e,language:t,style:n,isIncomplete:r,...i})=>{let a=sC();return(0,ia.jsx)("div",{className:a("my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",e),"data-incomplete":r||void 0,"data-language":t,"data-streamdown":"code-block",style:{contentVisibility:"auto",containIntrinsicSize:"auto 200px",...n},...i})},sN=(0,i.createContext)({code:""}),sI=()=>(0,i.useContext)(sN),sR=({language:e})=>{let t=sC();return(0,ia.jsx)("div",{className:t("flex h-8 items-center text-muted-foreground text-xs"),"data-language":e,"data-streamdown":"code-block-header",children:(0,ia.jsx)("span",{className:t("ml-1 font-mono lowercase"),children:e})})},sO=(0,i.lazy)(()=>n.e(27740).then(n.bind(n,27740)).then(e=>({default:e.HighlightedCodeBlockBody}))),sD=({code:e,language:t,className:n,children:r,isIncomplete:a=!1,startLine:o,lineNumbers:s,...l})=>{let c=sC(),u=(0,i.useMemo)(()=>(e=>{let t=e.length;for(;t>0&&e[t-1]===`
82
- `;)t--;return e.slice(0,t)})(e),[e]),d=(0,i.useMemo)(()=>({bg:"transparent",fg:"inherit",tokens:u.split(`
83
- `).map(e=>[{content:e,color:"inherit",bgColor:"transparent",htmlStyle:{},offset:0}])}),[u]);return(0,ia.jsx)(sN.Provider,{value:{code:e},children:(0,ia.jsxs)(sw,{isIncomplete:a,language:t,children:[(0,ia.jsx)(sR,{language:t}),r?(0,ia.jsx)("div",{className:c("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:(0,ia.jsx)("div",{className:c("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"code-block-actions",children:r})}):null,(0,ia.jsx)(i.Suspense,{fallback:(0,ia.jsx)(sx,{className:n,language:t,lineNumbers:s,result:d,startLine:o,...l}),children:(0,ia.jsx)(sO,{className:n,code:u,language:t,lineNumbers:s,raw:d,startLine:o,...l})})]})})},sP={CheckIcon:e=>(0,ia.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,ia.jsx)("path",{clipRule:"evenodd",d:"M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z",fill:"currentColor",fillRule:"evenodd"})}),CopyIcon:e=>(0,ia.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,ia.jsx)("path",{clipRule:"evenodd",d:"M2.75 0.5C1.7835 0.5 1 1.2835 1 2.25V9.75C1 10.7165 1.7835 11.5 2.75 11.5H3.75H4.5V10H3.75H2.75C2.61193 10 2.5 9.88807 2.5 9.75V2.25C2.5 2.11193 2.61193 2 2.75 2H8.25C8.38807 2 8.5 2.11193 8.5 2.25V3H10V2.25C10 1.2835 9.2165 0.5 8.25 0.5H2.75ZM7.75 4.5C6.7835 4.5 6 5.2835 6 6.25V13.75C6 14.7165 6.7835 15.5 7.75 15.5H13.25C14.2165 15.5 15 14.7165 15 13.75V6.25C15 5.2835 14.2165 4.5 13.25 4.5H7.75ZM7.5 6.25C7.5 6.11193 7.61193 6 7.75 6H13.25C13.3881 6 13.5 6.11193 13.5 6.25V13.75C13.5 13.8881 13.3881 14 13.25 14H7.75C7.61193 14 7.5 13.8881 7.5 13.75V6.25Z",fill:"currentColor",fillRule:"evenodd"})}),DownloadIcon:e=>(0,ia.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,ia.jsx)("path",{clipRule:"evenodd",d:"M8.75 1V1.75V8.68934L10.7197 6.71967L11.25 6.18934L12.3107 7.25L11.7803 7.78033L8.70711 10.8536C8.31658 11.2441 7.68342 11.2441 7.29289 10.8536L4.21967 7.78033L3.68934 7.25L4.75 6.18934L5.28033 6.71967L7.25 8.68934V1.75V1H8.75ZM13.5 9.25V13.5H2.5V9.25V8.5H1V9.25V14C1 14.5523 1.44771 15 2 15H14C14.5523 15 15 14.5523 15 14V9.25V8.5H13.5V9.25Z",fill:"currentColor",fillRule:"evenodd"})}),ExternalLinkIcon:e=>(0,ia.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,ia.jsx)("path",{clipRule:"evenodd",d:"M13.5 10.25V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25L2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H5.75H6.5V1H5.75H2.75C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V10.25V9.5H13.5V10.25ZM9 1H9.75H14.2495C14.6637 1 14.9995 1.33579 14.9995 1.75V6.25V7H13.4995V6.25V3.56066L8.53033 8.52978L8 9.06011L6.93934 7.99945L7.46967 7.46912L12.4388 2.5H9.75H9V1Z",fill:"currentColor",fillRule:"evenodd"})}),Loader2Icon:e=>(0,ia.jsxs)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:[(0,ia.jsx)("path",{d:"M8 0V4",stroke:"currentColor",strokeWidth:"1.5"}),(0,ia.jsx)("path",{d:"M8 16V12",opacity:"0.5",stroke:"currentColor",strokeWidth:"1.5"}),(0,ia.jsx)("path",{d:"M3.29773 1.52783L5.64887 4.7639",opacity:"0.9",stroke:"currentColor",strokeWidth:"1.5"}),(0,ia.jsx)("path",{d:"M12.7023 1.52783L10.3511 4.7639",opacity:"0.1",stroke:"currentColor",strokeWidth:"1.5"}),(0,ia.jsx)("path",{d:"M12.7023 14.472L10.3511 11.236",opacity:"0.4",stroke:"currentColor",strokeWidth:"1.5"}),(0,ia.jsx)("path",{d:"M3.29773 14.472L5.64887 11.236",opacity:"0.6",stroke:"currentColor",strokeWidth:"1.5"}),(0,ia.jsx)("path",{d:"M15.6085 5.52783L11.8043 6.7639",opacity:"0.2",stroke:"currentColor",strokeWidth:"1.5"}),(0,ia.jsx)("path",{d:"M0.391602 10.472L4.19583 9.23598",opacity:"0.7",stroke:"currentColor",strokeWidth:"1.5"}),(0,ia.jsx)("path",{d:"M15.6085 10.4722L11.8043 9.2361",opacity:"0.3",stroke:"currentColor",strokeWidth:"1.5"}),(0,ia.jsx)("path",{d:"M0.391602 5.52783L4.19583 6.7639",opacity:"0.8",stroke:"currentColor",strokeWidth:"1.5"})]}),Maximize2Icon:e=>(0,ia.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,ia.jsx)("path",{clipRule:"evenodd",d:"M1 5.25V6H2.5V5.25V2.5H5.25H6V1H5.25H2C1.44772 1 1 1.44772 1 2V5.25ZM5.25 14.9994H6V13.4994H5.25H2.5V10.7494V9.99939H1V10.7494V13.9994C1 14.5517 1.44772 14.9994 2 14.9994H5.25ZM15 10V10.75V14C15 14.5523 14.5523 15 14 15H10.75H10V13.5H10.75H13.5V10.75V10H15ZM10.75 1H10V2.5H10.75H13.5V5.25V6H15V5.25V2C15 1.44772 14.5523 1 14 1H10.75Z",fill:"currentColor",fillRule:"evenodd"})}),RotateCcwIcon:e=>(0,ia.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,ia.jsx)("path",{clipRule:"evenodd",d:"M13.5 8C13.5 4.96643 11.0257 2.5 7.96452 2.5C5.42843 2.5 3.29365 4.19393 2.63724 6.5H5.25H6V8H5.25H0.75C0.335787 8 0 7.66421 0 7.25V2.75V2H1.5V2.75V5.23347C2.57851 2.74164 5.06835 1 7.96452 1C11.8461 1 15 4.13001 15 8C15 11.87 11.8461 15 7.96452 15C5.62368 15 3.54872 13.8617 2.27046 12.1122L1.828 11.5066L3.03915 10.6217L3.48161 11.2273C4.48831 12.6051 6.12055 13.5 7.96452 13.5C11.0257 13.5 13.5 11.0336 13.5 8Z",fill:"currentColor",fillRule:"evenodd"})}),XIcon:e=>(0,ia.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,ia.jsx)("path",{clipRule:"evenodd",d:"M12.4697 13.5303L13 14.0607L14.0607 13L13.5303 12.4697L9.06065 7.99999L13.5303 3.53032L14.0607 2.99999L13 1.93933L12.4697 2.46966L7.99999 6.93933L3.53032 2.46966L2.99999 1.93933L1.93933 2.99999L2.46966 3.53032L6.93933 7.99999L2.46966 12.4697L1.93933 13L2.99999 14.0607L3.53032 13.5303L7.99999 9.06065L12.4697 13.5303Z",fill:"currentColor",fillRule:"evenodd"})}),ZoomInIcon:e=>(0,ia.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,ia.jsx)("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H5.875V4.75V4.125H7.125V4.75V5.875H8.25H8.875V7.125H8.25H7.125V8.25V8.875H5.875V8.25V7.125H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),ZoomOutIcon:e=>(0,ia.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,ia.jsx)("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H8.25H8.875V7.125H8.25H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})})},sL=(0,i.createContext)(sP),sM=({icons:e,children:t})=>{let n=(0,i.useRef)(e),r=(0,i.useRef)(e?{...sP,...e}:sP);((e,t)=>{if(e===t)return!0;if(!(e&&t))return e===t;let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>e[n]===t[n])})(n.current,e)||(n.current=e,r.current=e?{...sP,...e}:sP);let a=r.current;return(0,ia.jsx)(sL.Provider,{value:a,children:t})},sF=()=>(0,i.useContext)(sL),sB={copyCode:"Copy Code",downloadFile:"Download file",downloadDiagram:"Download diagram",downloadDiagramAsSvg:"Download diagram as SVG",downloadDiagramAsPng:"Download diagram as PNG",downloadDiagramAsMmd:"Download diagram as MMD",viewFullscreen:"View fullscreen",exitFullscreen:"Exit fullscreen",mermaidFormatSvg:"SVG",mermaidFormatPng:"PNG",mermaidFormatMmd:"MMD",copyTable:"Copy table",copyTableAsMarkdown:"Copy table as Markdown",copyTableAsCsv:"Copy table as CSV",copyTableAsTsv:"Copy table as TSV",downloadTable:"Download table",downloadTableAsCsv:"Download table as CSV",downloadTableAsMarkdown:"Download table as Markdown",tableFormatMarkdown:"Markdown",tableFormatCsv:"CSV",tableFormatTsv:"TSV",imageNotAvailable:"Image not available",downloadImage:"Download image",openExternalLink:"Open external link?",externalLinkWarning:"You're about to visit an external website.",close:"Close",copyLink:"Copy link",copied:"Copied",openLink:"Open link"},sH=(0,i.createContext)(sB),sU=()=>(0,i.useContext)(sH),sj=({onCopy:e,onError:t,timeout:n=2e3,children:r,className:a,code:o,...s})=>{let l=sC(),[c,u]=(0,i.useState)(!1),d=(0,i.useRef)(0),{code:h}=sI(),{isAnimating:p}=(0,i.useContext)(cq),f=sU(),m=null!=o?o:h,g=async()=>{var r;if("u"<typeof window||!(null!=(r=null==navigator?void 0:navigator.clipboard)&&r.writeText)){null==t||t(Error("Clipboard API not available"));return}try{c||(await navigator.clipboard.writeText(m),u(!0),null==e||e(),d.current=window.setTimeout(()=>u(!1),n))}catch(e){null==t||t(e)}};(0,i.useEffect)(()=>()=>{window.clearTimeout(d.current)},[]);let b=sF(),E=c?b.CheckIcon:b.CopyIcon;return(0,ia.jsx)("button",{className:l("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",a),"data-streamdown":"code-block-copy-button",disabled:p,onClick:g,title:f.copyCode,type:"button",...s,children:null!=r?r:(0,ia.jsx)(E,{size:14})})},sG={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",文言:"wy"},sz=({onDownload:e,onError:t,language:n,children:r,className:a,code:o,...s})=>{let l=sC(),{code:c}=sI(),{isAnimating:u}=(0,i.useContext)(cq),d=sU(),h=sF(),p=null!=o?o:c,f=`file.${n&&n in sG?sG[n]:"txt"}`;return(0,ia.jsx)("button",{className:l("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",a),"data-streamdown":"code-block-download-button",disabled:u,onClick:()=>{try{sS(f,p,"text/plain"),null==e||e()}catch(e){null==t||t(e)}},title:d.downloadFile,type:"button",...s,children:null!=r?r:(0,ia.jsx)(h.DownloadIcon,{size:14})})},s$=()=>{let{Loader2Icon:e}=sF(),t=sC();return(0,ia.jsxs)("div",{className:t("w-full divide-y divide-border overflow-hidden rounded-xl border border-border"),children:[(0,ia.jsx)("div",{className:t("h-[46px] w-full bg-muted/80")}),(0,ia.jsx)("div",{className:t("flex w-full items-center justify-center p-4"),children:(0,ia.jsx)(e,{className:t("size-4 animate-spin")})})]})},sW=/\.[^/.]+$/,sq=0,sV=()=>{1===(sq+=1)&&(document.body.style.overflow="hidden")},sY=()=>{0===(sq=Math.max(0,sq-1))&&(document.body.style.overflow="")},sK=({url:e,isOpen:t,onClose:n,onConfirm:r})=>{let{CheckIcon:a,CopyIcon:o,ExternalLinkIcon:s,XIcon:l}=sF(),c=sC(),[u,d]=(0,i.useState)(!1),h=sU(),p=(0,i.useCallback)(async()=>{try{await navigator.clipboard.writeText(e),d(!0),setTimeout(()=>d(!1),2e3)}catch(e){}},[e]),f=(0,i.useCallback)(()=>{r(),n()},[r,n]);return(0,i.useEffect)(()=>{if(t){sV();let e=e=>{"Escape"===e.key&&n()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e),sY()}}},[t,n]),t?(0,ia.jsx)("div",{className:c("fixed inset-0 z-50 flex items-center justify-center bg-background/50 backdrop-blur-sm"),"data-streamdown":"link-safety-modal",onClick:n,onKeyDown:e=>{"Escape"===e.key&&n()},role:"button",tabIndex:0,children:(0,ia.jsxs)("div",{className:c("relative mx-4 flex w-full max-w-md flex-col gap-4 rounded-xl border bg-background p-6 shadow-lg"),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),role:"presentation",children:[(0,ia.jsx)("button",{className:c("absolute top-4 right-4 rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:n,title:h.close,type:"button",children:(0,ia.jsx)(l,{size:16})}),(0,ia.jsxs)("div",{className:c("flex flex-col gap-2"),children:[(0,ia.jsxs)("div",{className:c("flex items-center gap-2 font-semibold text-lg"),children:[(0,ia.jsx)(s,{size:20}),(0,ia.jsx)("span",{children:h.openExternalLink})]}),(0,ia.jsx)("p",{className:c("text-muted-foreground text-sm"),children:h.externalLinkWarning})]}),(0,ia.jsx)("div",{className:c("break-all rounded-md bg-muted p-3 font-mono text-sm",e.length>100&&"max-h-32 overflow-y-auto"),children:e}),(0,ia.jsxs)("div",{className:c("flex gap-2"),children:[(0,ia.jsx)("button",{className:c("flex flex-1 items-center justify-center gap-2 rounded-md border bg-background px-4 py-2 font-medium text-sm transition-all hover:bg-muted"),onClick:p,type:"button",children:u?(0,ia.jsxs)(ia.Fragment,{children:[(0,ia.jsx)(a,{size:14}),(0,ia.jsx)("span",{children:h.copied})]}):(0,ia.jsxs)(ia.Fragment,{children:[(0,ia.jsx)(o,{size:14}),(0,ia.jsx)("span",{children:h.copyLink})]})}),(0,ia.jsxs)("button",{className:c("flex flex-1 items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 font-medium text-primary-foreground text-sm transition-all hover:bg-primary/90"),onClick:f,type:"button",children:[(0,ia.jsx)(s,{size:14}),(0,ia.jsx)("span",{children:h.openLink})]})]})]})}):null},sX=(0,i.createContext)(null),sQ=()=>(0,i.useContext)(sX),sZ=()=>{var e;let t=sQ();return null!=(e=null==t?void 0:t.code)?e:null},sJ=()=>{var e;let t=sQ();return null!=(e=null==t?void 0:t.mermaid)?e:null},s0=({chart:e,children:t,className:n,onDownload:r,config:a,onError:o})=>{let s=sC(),[l,c]=(0,i.useState)(!1),u=(0,i.useRef)(null),{isAnimating:d}=(0,i.useContext)(cq),h=sF(),p=sJ(),f=sU(),m=async t=>{try{if("mmd"===t){sS("diagram.mmd",e,"text/plain"),c(!1),null==r||r(t);return}if(!p){null==o||o(Error("Mermaid plugin not available"));return}let i=p.getMermaid(a),s=e.split("").reduce((e,t)=>(e<<5)-e+t.charCodeAt(0)|0,0),l=`mermaid-${Math.abs(s)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:u}=await i.render(l,e);if(!u){null==o||o(Error("SVG not found. Please wait for the diagram to render."));return}if("svg"===t){sS("diagram.svg",u,"image/svg+xml"),c(!1),null==r||r(t);return}if("png"===t){var n;let e=await (n=u,new Promise((e,t)=>{let r="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(n))),i=new Image;i.crossOrigin="anonymous",i.onload=()=>{let n=document.createElement("canvas"),r=5*i.width,a=5*i.height;n.width=r,n.height=a;let o=n.getContext("2d");o?(o.drawImage(i,0,0,r,a),n.toBlob(n=>{n?e(n):t(Error("Failed to create PNG blob"))},"image/png")):t(Error("Failed to create 2D canvas context for PNG export"))},i.onerror=()=>t(Error("Failed to load SVG image")),i.src=r}));sS("diagram.png",e,"image/png"),null==r||r(t),c(!1);return}}catch(e){null==o||o(e)}};return(0,i.useEffect)(()=>{let e=e=>{let t=e.composedPath();u.current&&!t.includes(u.current)&&c(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,ia.jsxs)("div",{className:s("relative"),ref:u,children:[(0,ia.jsx)("button",{className:s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",n),disabled:d,onClick:()=>c(!l),title:f.downloadDiagram,type:"button",children:null!=t?t:(0,ia.jsx)(h.DownloadIcon,{size:14})}),l?(0,ia.jsxs)("div",{className:s("absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[(0,ia.jsx)("button",{className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>m("svg"),title:f.downloadDiagramAsSvg,type:"button",children:f.mermaidFormatSvg}),(0,ia.jsx)("button",{className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>m("png"),title:f.downloadDiagramAsPng,type:"button",children:f.mermaidFormatPng}),(0,ia.jsx)("button",{className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>m("mmd"),title:f.downloadDiagramAsMmd,type:"button",children:f.mermaidFormatMmd})]}):null]})},s1=({chart:e,config:t,onFullscreen:n,onExit:r,className:a,...o})=>{let{Maximize2Icon:s,XIcon:l}=sF(),c=sC(),[u,d]=(0,i.useState)(!1),{isAnimating:h,controls:p}=(0,i.useContext)(cq),f=sU(),m=(()=>{if("boolean"==typeof p)return p;let e=p.mermaid;return!1!==e&&(!0===e||void 0===e||!1!==e.panZoom)})(),g=()=>{d(!u)};return(0,i.useEffect)(()=>{if(u){sV();let e=e=>{"Escape"===e.key&&d(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e),sY()}}},[u]),(0,i.useEffect)(()=>{u?null==n||n():r&&r()},[u,n,r]),(0,ia.jsxs)(ia.Fragment,{children:[(0,ia.jsx)("button",{className:c("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",a),disabled:h,onClick:g,title:f.viewFullscreen,type:"button",...o,children:(0,ia.jsx)(s,{size:14})}),u?(0,io.createPortal)((0,ia.jsxs)("div",{className:c("fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm"),onClick:g,onKeyDown:e=>{"Escape"===e.key&&g()},role:"button",tabIndex:0,children:[(0,ia.jsx)("button",{className:c("absolute top-4 right-4 z-10 rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:g,title:f.exitFullscreen,type:"button",children:(0,ia.jsx)(l,{size:20})}),(0,ia.jsx)("div",{className:c("flex size-full items-center justify-center p-4"),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),role:"presentation",children:(0,ia.jsx)(cX,{chart:e,className:c("size-full [&_svg]:h-auto [&_svg]:w-auto"),config:t,fullscreen:!0,showControls:m})})]}),document.body):null]})},s2=e=>{var t,n;let r=[],i=[];for(let n of e.querySelectorAll("thead th"))r.push((null==(t=n.textContent)?void 0:t.trim())||"");for(let t of e.querySelectorAll("tbody tr")){let e=[];for(let r of t.querySelectorAll("td"))e.push((null==(n=r.textContent)?void 0:n.trim())||"");i.push(e)}return{headers:r,rows:i}},s5=e=>{let{headers:t,rows:n}=e,r=e=>{let t=!1,n=!1;for(let r of e){if('"'===r){t=!0,n=!0;break}(","===r||r===`
84
- `)&&(t=!0)}return t?n?`"${e.replace(/"/g,'""')}"`:`"${e}"`:e},i=Array(t.length>0?n.length+1:n.length),a=0;for(let e of(t.length>0&&(i[a]=t.map(r).join(","),a+=1),n))i[a]=e.map(r).join(","),a+=1;return i.join(`
85
- `)},s6=e=>{let{headers:t,rows:n}=e,r=e=>{let t=!1;for(let n of e)if(" "===n||n===`
86
- `||"\r"===n){t=!0;break}if(!t)return e;let n=[];for(let t of e)" "===t?n.push("\\t"):t===`
87
- `?n.push("\\n"):"\r"===t?n.push("\\r"):n.push(t);return n.join("")},i=Array(t.length>0?n.length+1:n.length),a=0;for(let e of(t.length>0&&(i[a]=t.map(r).join(" "),a+=1),n))i[a]=e.map(r).join(" "),a+=1;return i.join(`
88
- `)},s9=e=>{let t=!1;for(let n of e)if("\\"===n||"|"===n){t=!0;break}if(!t)return e;let n=[];for(let t of e)"\\"===t?n.push("\\\\"):"|"===t?n.push("\\|"):n.push(t);return n.join("")},s3=e=>{let{headers:t,rows:n}=e;if(0===t.length)return"";let r=Array(n.length+2),i=0,a=t.map(e=>s9(e));r[i]=`| ${a.join(" | ")} |`,i+=1;let o=Array(t.length);for(let e=0;e<t.length;e+=1)o[e]="---";for(let e of(r[i]=`| ${o.join(" | ")} |`,i+=1,n))if(e.length<t.length){let n=Array(t.length);for(let r=0;r<t.length;r+=1)n[r]=r<e.length?s9(e[r]):"";r[i]=`| ${n.join(" | ")} |`,i+=1}else{let t=e.map(e=>s9(e));r[i]=`| ${t.join(" | ")} |`,i+=1}return r.join(`
89
- `)},s4=({children:e,className:t,onCopy:n,onError:r,timeout:a=2e3})=>{let o=sC(),[s,l]=(0,i.useState)(!1),[c,u]=(0,i.useState)(!1),d=(0,i.useRef)(null),h=(0,i.useRef)(0),{isAnimating:p}=(0,i.useContext)(cq),f=sU(),m=async e=>{var t,i;if("u"<typeof window||!(null!=(t=null==navigator?void 0:navigator.clipboard)&&t.write)){null==r||r(Error("Clipboard API not available"));return}try{let t=null==(i=d.current)?void 0:i.closest('[data-streamdown="table-wrapper"]'),o=null==t?void 0:t.querySelector("table");if(!o){null==r||r(Error("Table not found"));return}let s=s2(o),c=(({csv:s5,tsv:s6,md:s3})[e]||s3)(s),p=new ClipboardItem({"text/plain":new Blob([c],{type:"text/plain"}),"text/html":new Blob([o.outerHTML],{type:"text/html"})});await navigator.clipboard.write([p]),u(!0),l(!1),null==n||n(e),h.current=window.setTimeout(()=>u(!1),a)}catch(e){null==r||r(e)}};(0,i.useEffect)(()=>{let e=e=>{let t=e.composedPath();d.current&&!t.includes(d.current)&&l(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e),window.clearTimeout(h.current)}},[]);let g=sF(),b=c?g.CheckIcon:g.CopyIcon;return(0,ia.jsxs)("div",{className:o("relative"),ref:d,children:[(0,ia.jsx)("button",{className:o("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:p,onClick:()=>l(!s),title:f.copyTable,type:"button",children:null!=e?e:(0,ia.jsx)(b,{height:14,width:14})}),s?(0,ia.jsxs)("div",{className:o("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[(0,ia.jsx)("button",{className:o("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>m("md"),title:f.copyTableAsMarkdown,type:"button",children:f.tableFormatMarkdown}),(0,ia.jsx)("button",{className:o("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>m("csv"),title:f.copyTableAsCsv,type:"button",children:f.tableFormatCsv}),(0,ia.jsx)("button",{className:o("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>m("tsv"),title:f.copyTableAsTsv,type:"button",children:f.tableFormatTsv})]}):null]})},s7=({children:e,className:t,onDownload:n,onError:r})=>{let a=sC(),[o,s]=(0,i.useState)(!1),l=(0,i.useRef)(null),{isAnimating:c}=(0,i.useContext)(cq),u=sU(),d=sF(),h=e=>{var t;try{let i=null==(t=l.current)?void 0:t.closest('[data-streamdown="table-wrapper"]'),a=null==i?void 0:i.querySelector("table");if(!a){null==r||r(Error("Table not found"));return}let o=s2(a),c="csv"===e?s5(o):s3(o);sS(`table.${"csv"===e?"csv":"md"}`,c,"csv"===e?"text/csv":"text/markdown"),s(!1),null==n||n(e)}catch(e){null==r||r(e)}};return(0,i.useEffect)(()=>{let e=e=>{let t=e.composedPath();l.current&&!t.includes(l.current)&&s(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,ia.jsxs)("div",{className:a("relative"),ref:l,children:[(0,ia.jsx)("button",{className:a("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:c,onClick:()=>s(!o),title:u.downloadTable,type:"button",children:null!=e?e:(0,ia.jsx)(d.DownloadIcon,{size:14})}),o?(0,ia.jsxs)("div",{className:a("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[(0,ia.jsx)("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>h("csv"),title:u.downloadTableAsCsv,type:"button",children:u.tableFormatCsv}),(0,ia.jsx)("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>h("markdown"),title:u.downloadTableAsMarkdown,type:"button",children:u.tableFormatMarkdown})]}):null]})},s8=({children:e,className:t,showCopy:n=!0,showDownload:r=!0})=>{let{Maximize2Icon:a,XIcon:o}=sF(),s=sC(),[l,c]=(0,i.useState)(!1),{isAnimating:u}=(0,i.useContext)(cq),d=sU(),h=()=>{c(!1)};return(0,i.useEffect)(()=>{if(l){sV();let e=e=>{"Escape"===e.key&&c(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e),sY()}}},[l]),(0,ia.jsxs)(ia.Fragment,{children:[(0,ia.jsx)("button",{className:s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:u,onClick:()=>{c(!0)},title:d.viewFullscreen,type:"button",children:(0,ia.jsx)(a,{size:14})}),l?(0,io.createPortal)((0,ia.jsx)("div",{"aria-label":d.viewFullscreen,"aria-modal":"true",className:s("fixed inset-0 z-50 flex flex-col bg-background"),"data-streamdown":"table-fullscreen",onClick:h,onKeyDown:e=>{"Escape"===e.key&&h()},role:"dialog",children:(0,ia.jsxs)("div",{className:s("flex h-full flex-col"),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),role:"presentation",children:[(0,ia.jsxs)("div",{className:s("flex items-center justify-end gap-1 p-4"),children:[n?(0,ia.jsx)(s4,{}):null,r?(0,ia.jsx)(s7,{}):null,(0,ia.jsx)("button",{className:s("rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:h,title:d.exitFullscreen,type:"button",children:(0,ia.jsx)(o,{size:20})})]}),(0,ia.jsx)("div",{className:s("flex-1 overflow-auto p-4 pt-0 [&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10"),children:(0,ia.jsx)("table",{className:s("w-full border-collapse border border-border"),"data-streamdown":"table",children:e})})]})}),document.body):null]})},le=({children:e,className:t,showControls:n,showCopy:r=!0,showDownload:i=!0,showFullscreen:a=!0,...o})=>{let s=sC(),l=n&&r,c=n&&i,u=n&&a,d=l||c||u;return(0,ia.jsxs)("div",{className:s("my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2"),"data-streamdown":"table-wrapper",children:[d?(0,ia.jsxs)("div",{className:s("flex items-center justify-end gap-1"),children:[l?(0,ia.jsx)(s4,{}):null,c?(0,ia.jsx)(s7,{}):null,u?(0,ia.jsx)(s8,{showCopy:l,showDownload:c,children:e}):null]}):null,(0,ia.jsx)("div",{className:s("border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background"),children:(0,ia.jsx)("table",{className:s("w-full divide-y divide-border",t),"data-streamdown":"table",...o,children:e})})]})},lt=/startLine=(\d+)/,ln=/\bnoLineNumbers\b/,lr=(0,i.lazy)(()=>n.e(40589).then(n.bind(n,40589)).then(e=>({default:e.Mermaid}))),li=/language-([^\s]+)/;function la(e,t){if(!(null!=e&&e.position||null!=t&&t.position))return!0;if(!(null!=e&&e.position&&null!=t&&t.position))return!1;let n=e.position.start,r=t.position.start,i=e.position.end,a=t.position.end;return(null==n?void 0:n.line)===(null==r?void 0:r.line)&&(null==n?void 0:n.column)===(null==r?void 0:r.column)&&(null==i?void 0:i.line)===(null==a?void 0:a.line)&&(null==i?void 0:i.column)===(null==a?void 0:a.column)}function lo(e,t){return e.className===t.className&&la(e.node,t.node)}var ls=(e,t)=>"boolean"==typeof e?e:!1!==e[t],ll=(e,t)=>{if("boolean"==typeof e)return e;let n=e.table;return!1!==n&&(!0===n||void 0===n||!1!==n[t])},lc=(e,t)=>{if("boolean"==typeof e)return e;let n=e.code;return!1!==n&&(!0===n||void 0===n||!1!==n[t])},lu=(e,t)=>{if("boolean"==typeof e)return e;let n=e.mermaid;return!1!==n&&(!0===n||void 0===n||!1!==n[t])},ld=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=sC();return(0,ia.jsx)("ol",{className:i("list-inside list-decimal whitespace-normal [li_&]:pl-6",t),"data-streamdown":"ordered-list",...r,children:e})},(e,t)=>lo(e,t));ld.displayName="MarkdownOl";var lh=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=sC();return(0,ia.jsx)("li",{className:i("py-1 [&>p]:inline",t),"data-streamdown":"list-item",...r,children:e})},(e,t)=>e.className===t.className&&la(e.node,t.node));lh.displayName="MarkdownLi";var lp=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=sC();return(0,ia.jsx)("ul",{className:i("list-inside list-disc whitespace-normal [li_&]:pl-6",t),"data-streamdown":"unordered-list",...r,children:e})},(e,t)=>lo(e,t));lp.displayName="MarkdownUl";var lf=(0,i.memo)(({className:e,node:t,...n})=>{let r=sC();return(0,ia.jsx)("hr",{className:r("my-6 border-border",e),"data-streamdown":"horizontal-rule",...n})},(e,t)=>lo(e,t));lf.displayName="MarkdownHr";var lm=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=sC();return(0,ia.jsx)("span",{className:i("font-semibold",t),"data-streamdown":"strong",...r,children:e})},(e,t)=>lo(e,t));lm.displayName="MarkdownStrong";var lg=(0,i.memo)(({children:e,className:t,href:n,node:r,...a})=>{let o=sC(),{linkSafety:s}=(0,i.useContext)(cq),[l,c]=(0,i.useState)(!1),u="streamdown:incomplete-link"===n,d=(0,i.useCallback)(async e=>{if(!(!(null!=s&&s.enabled&&n)||u)){if(e.preventDefault(),s.onLinkCheck&&await s.onLinkCheck(n))return void window.open(n,"_blank","noreferrer");c(!0)}},[s,n,u]),h=(0,i.useCallback)(()=>{n&&window.open(n,"_blank","noreferrer")},[n]),p={url:null!=n?n:"",isOpen:l,onClose:(0,i.useCallback)(()=>{c(!1)},[]),onConfirm:h};return null!=s&&s.enabled&&n?(0,ia.jsxs)(ia.Fragment,{children:[(0,ia.jsx)("button",{className:o("wrap-anywhere appearance-none text-left font-medium text-primary underline",t),"data-incomplete":u,"data-streamdown":"link",onClick:d,type:"button",children:e}),s.renderModal?s.renderModal(p):(0,ia.jsx)(sK,{...p})]}):(0,ia.jsx)("a",{className:o("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":u,"data-streamdown":"link",href:n,rel:"noreferrer",target:"_blank",...a,children:e})},(e,t)=>lo(e,t)&&e.href===t.href);lg.displayName="MarkdownA";var lb=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=sC();return(0,ia.jsx)("h1",{className:i("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...r,children:e})},(e,t)=>lo(e,t));lb.displayName="MarkdownH1";var lE=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=sC();return(0,ia.jsx)("h2",{className:i("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...r,children:e})},(e,t)=>lo(e,t));lE.displayName="MarkdownH2";var ly=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=sC();return(0,ia.jsx)("h3",{className:i("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...r,children:e})},(e,t)=>lo(e,t));ly.displayName="MarkdownH3";var lT=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=sC();return(0,ia.jsx)("h4",{className:i("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...r,children:e})},(e,t)=>lo(e,t));lT.displayName="MarkdownH4";var lv=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=sC();return(0,ia.jsx)("h5",{className:i("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...r,children:e})},(e,t)=>lo(e,t));lv.displayName="MarkdownH5";var lk=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=sC();return(0,ia.jsx)("h6",{className:i("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...r,children:e})},(e,t)=>lo(e,t));lk.displayName="MarkdownH6";var lS=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let{controls:a}=(0,i.useContext)(cq),o=ls(a,"table"),s=ll(a,"copy"),l=ll(a,"download"),c=ll(a,"fullscreen");return(0,ia.jsx)(le,{className:t,showControls:o,showCopy:s,showDownload:l,showFullscreen:c,...r,children:e})},(e,t)=>lo(e,t));lS.displayName="MarkdownTable";var lA=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=sC();return(0,ia.jsx)("thead",{className:i("bg-muted/80",t),"data-streamdown":"table-header",...r,children:e})},(e,t)=>lo(e,t));lA.displayName="MarkdownThead";var lC=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=sC();return(0,ia.jsx)("tbody",{className:i("divide-y divide-border",t),"data-streamdown":"table-body",...r,children:e})},(e,t)=>lo(e,t));lC.displayName="MarkdownTbody";var l_=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=sC();return(0,ia.jsx)("tr",{className:i("border-border",t),"data-streamdown":"table-row",...r,children:e})},(e,t)=>lo(e,t));l_.displayName="MarkdownTr";var lx=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=sC();return(0,ia.jsx)("th",{className:i("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...r,children:e})},(e,t)=>lo(e,t));lx.displayName="MarkdownTh";var lw=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=sC();return(0,ia.jsx)("td",{className:i("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...r,children:e})},(e,t)=>lo(e,t));lw.displayName="MarkdownTd";var lN=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=sC();return(0,ia.jsx)("blockquote",{className:i("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...r,children:e})},(e,t)=>lo(e,t));lN.displayName="MarkdownBlockquote";var lI=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=sC();return(0,ia.jsx)("sup",{className:i("text-sm",t),"data-streamdown":"superscript",...r,children:e})},(e,t)=>lo(e,t));lI.displayName="MarkdownSup";var lR=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=sC();return(0,ia.jsx)("sub",{className:i("text-sm",t),"data-streamdown":"subscript",...r,children:e})},(e,t)=>lo(e,t));lR.displayName="MarkdownSub";var lO=(0,i.memo)(({children:e,className:t,node:n,...r})=>{if("data-footnotes"in r){let n=Array.isArray(e)?e.map(e=>{if(!(0,i.isValidElement)(e))return e;if(e.type===ld){let t=(Array.isArray(e.props.children)?e.props.children:[e.props.children]).filter(e=>!(e=>{var t,n;if(!(0,i.isValidElement)(e))return!1;let r=Array.isArray(e.props.children)?e.props.children:[e.props.children],a=!1,o=!1;for(let e of r)if(e){if("string"==typeof e)""!==e.trim()&&(a=!0);else if((0,i.isValidElement)(e)){if((null==(t=e.props)?void 0:t["data-footnote-backref"])!==void 0)o=!0;else for(let t of Array.isArray(e.props.children)?e.props.children:[e.props.children])if("string"==typeof t&&""!==t.trim()||(0,i.isValidElement)(t)&&(null==(n=t.props)?void 0:n["data-footnote-backref"])===void 0){a=!0;break}}}return o&&!a})(e));return 0===t.length?null:{...e,props:{...e.props,children:t}}}return e}):e;return(Array.isArray(n)?n.some(e=>null!==e):null!==n)?(0,ia.jsx)("section",{className:t,...r,children:n}):null}return(0,ia.jsx)("section",{className:t,...r,children:e})},(e,t)=>lo(e,t));lO.displayName="MarkdownSection";var lD=(0,i.memo)(({node:e,className:t,children:n,...r})=>{var a,o,s;let l,c=sC(),u=!("data-block"in r),{mermaid:d,controls:h,lineNumbers:p}=(0,i.useContext)(cq),f=sJ(),m=(0,i.useContext)(sv),g=null==t?void 0:t.match(li),b=null!=(a=null==g?void 0:g.at(1))?a:"",E=null!=(l=sQ())&&l.renderers&&b&&null!=(s=l.renderers.find(e=>Array.isArray(e.language)?e.language.includes(b):e.language===b))?s:null;if(u)return(0,ia.jsx)("code",{className:c("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...r,children:n});let y=null==(o=null==e?void 0:e.properties)?void 0:o.metastring,T=null==y?void 0:y.match(lt),v=T?Number.parseInt(T[1],10):void 0,k=!(y&&ln.test(y))&&!1!==p,S="";if((0,i.isValidElement)(n)&&n.props&&"object"==typeof n.props&&"children"in n.props&&"string"==typeof n.props.children?S=n.props.children:"string"==typeof n&&(S=n),E){let e=E.component;return(0,ia.jsx)(i.Suspense,{fallback:(0,ia.jsx)(s$,{}),children:(0,ia.jsx)(e,{code:S,isIncomplete:m,language:b,meta:y})})}if("mermaid"===b&&f){let e=ls(h,"mermaid"),n=lu(h,"download"),r=lu(h,"copy"),a=lu(h,"fullscreen"),o=lu(h,"panZoom");return(0,ia.jsx)(i.Suspense,{fallback:(0,ia.jsx)(s$,{}),children:(0,ia.jsxs)("div",{className:c("group relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",t),"data-streamdown":"mermaid-block",children:[(0,ia.jsx)("div",{className:c("flex h-8 items-center text-muted-foreground text-xs"),children:(0,ia.jsx)("span",{className:c("ml-1 font-mono lowercase"),children:"mermaid"})}),e&&(n||r||a)?(0,ia.jsx)("div",{className:c("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:(0,ia.jsxs)("div",{className:c("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"mermaid-block-actions",children:[n?(0,ia.jsx)(s0,{chart:S,config:null==d?void 0:d.config}):null,r?(0,ia.jsx)(sj,{code:S}):null,a?(0,ia.jsx)(s1,{chart:S,config:null==d?void 0:d.config}):null]})}):null,(0,ia.jsx)("div",{className:c("rounded-md border border-border bg-background"),children:(0,ia.jsx)(lr,{chart:S,config:null==d?void 0:d.config,showControls:o})})]})})}let A=ls(h,"code"),C=lc(h,"download"),_=lc(h,"copy");return(0,ia.jsx)(sD,{className:t,code:S,isIncomplete:m,language:b,lineNumbers:k,startLine:void 0!==v&&v>=1?v:void 0,children:A?(0,ia.jsxs)(ia.Fragment,{children:[C?(0,ia.jsx)(sz,{code:S,language:b}):null,_?(0,ia.jsx)(sj,{}):null]}):null})},(e,t)=>e.className===t.className&&la(e.node,t.node));lD.displayName="MarkdownCode";var lP=(0,i.memo)(({node:e,className:t,src:n,alt:r,onLoad:a,onError:o,...s})=>{let{DownloadIcon:l}=sF(),c=sC(),u=(0,i.useRef)(null),[d,h]=(0,i.useState)(!1),[p,f]=(0,i.useState)(!1),m=sU(),g=null!=s.width||null!=s.height,b=(d||g)&&!p,E=p&&!g;(0,i.useEffect)(()=>{let e=u.current;if(null!=e&&e.complete){let t=e.naturalWidth>0;h(t),f(!t)}},[]);let y=(0,i.useCallback)(e=>{h(!0),f(!1),null==a||a(e)},[a]),T=(0,i.useCallback)(e=>{h(!1),f(!0),null==o||o(e)},[o]),v=async()=>{if(n)try{let e=await (await fetch(n)).blob(),t=new URL(n,window.location.origin).pathname.split("/").pop()||"",i=t.split(".").pop(),a=t.includes(".")&&void 0!==i&&i.length<=4,o="";if(a)o=t;else{let n=e.type,i="png";n.includes("jpeg")||n.includes("jpg")?i="jpg":n.includes("png")?i="png":n.includes("svg")?i="svg":n.includes("gif")?i="gif":n.includes("webp")&&(i="webp"),o=`${(r||t||"image").replace(sW,"")}.${i}`}sS(o,e,e.type)}catch(e){window.open(n,"_blank")}};return n?(0,ia.jsxs)("div",{className:c("group relative my-4 inline-block"),"data-streamdown":"image-wrapper",children:[(0,ia.jsx)("img",{alt:r,className:c("max-w-full rounded-lg",E&&"hidden",t),"data-streamdown":"image",onError:T,onLoad:y,ref:u,src:n,...s}),E&&(0,ia.jsx)("span",{className:c("text-muted-foreground text-xs italic"),"data-streamdown":"image-fallback",children:m.imageNotAvailable}),(0,ia.jsx)("div",{className:c("pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block")}),b&&(0,ia.jsx)("button",{className:c("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:v,title:m.downloadImage,type:"button",children:(0,ia.jsx)(l,{size:14})})]}):null},(e,t)=>e.className===t.className&&la(e.node,t.node));lP.displayName="MarkdownImg";var lL=(0,i.memo)(({children:e,node:t,...n})=>{let r=(Array.isArray(e)?e:[e]).filter(e=>null!=e&&""!==e);if(1===r.length&&(0,i.isValidElement)(r[0])){let t=r[0].props.node,n=null==t?void 0:t.tagName;if("img"===n||"code"===n&&"data-block"in r[0].props)return(0,ia.jsx)(ia.Fragment,{children:e})}return(0,ia.jsx)("p",{...n,children:e})},(e,t)=>lo(e,t));lL.displayName="MarkdownParagraph";var lM={ol:ld,li:lh,ul:lp,hr:lf,strong:lm,a:lg,h1:lb,h2:lE,h3:ly,h4:lT,h5:lv,h6:lk,table:lS,thead:lA,tbody:lC,tr:l_,th:lx,td:lw,blockquote:lN,code:lD,img:lP,pre:({children:e})=>(0,i.isValidElement)(e)?(0,i.cloneElement)(e,{"data-block":"true"}):e,sup:lI,sub:lR,p:lL,section:lO},lF=/[\u0590-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/,lB=/\p{L}/u;function lH(e){for(let t of e.replace(/^#{1,6}\s+/gm,"").replace(/(\*{1,3}|_{1,3})/g,"").replace(/`[^`]*`/g,"").replace(/\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/^[\s>*\-+\d.]+/gm,"")){if(lF.test(t))return"rtl";if(lB.test(t))break}return"ltr"}var lU,lj,lG,lz,l$,lW,lq,lV,lY,lK,lX,lQ,lZ,lJ,l0,l1,l2,l5,l6,l9,l3,l4,l7,l8,ce,ct,cn,cr,ci,ca,co,cs,cl,cc,cu=/^[ \t]{0,3}(`{3,}|~{3,})/,cd=/^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-{1,}:?[ \t]*)*\|?$/,ch=e=>{let t=e.split(`
90
- `),n=null,r=0;for(let e of t){let t=cu.exec(e);if(null===n){if(t){let e=t[1];n=e[0],r=e.length}}else if(t){let e=t[1],i=e[0],a=e.length;i===n&&a>=r&&(n=null,r=0)}}return null!==n},cp=()=>e=>{(0,a.YR)(e,"html",(e,t,n)=>{n&&"number"==typeof t&&(n.children[t]={type:"text",value:e.value})})},cf=[],cm={allowDangerousHtml:!0},cg=new WeakMap,cb=new class{constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let n=e.rehypePlugins,r=e.remarkPlugins,i=e.remarkRehypeOptions;if(!(n||r||i)){let t="default";return this.keyCache.set(e,t),t}let a=e=>{if(!e||0===e.length)return"";let t="";for(let n=0;n<e.length;n+=1){let r=e[n];if(n>0&&(t+=","),Array.isArray(r)){let[e,n]=r;if("function"==typeof e){let n=cg.get(e);n||(n=e.name,cg.set(e,n)),t+=n}else t+=String(e);t+=":",t+=JSON.stringify(n)}else if("function"==typeof r){let e=cg.get(r);e||(e=r.name,cg.set(r,e)),t+=e}else t+=String(r)}return t},o=a(n),s=a(r),l=i?JSON.stringify(i):"",c=`${s}::${o}::${l}`;return this.keyCache.set(e,c),c}get(e){let t=this.generateCacheKey(e),n=this.cache.get(t);return n&&(this.cache.delete(t),this.cache.set(t,n)),n}set(e,t){let n=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let e=this.cache.keys().next().value;e&&this.cache.delete(e)}this.cache.set(n,t)}clear(){this.cache.clear()}},cE=e=>{let t=cy(e),n=e.children||"";return ck(t.runSync(t.parse(n),n),e)},cy=e=>{let t=cb.get(e);if(t)return t;let n=cT(e);return cb.set(e,n),n},cT=e=>{let t=e.rehypePlugins||cf,n=e.remarkPlugins||cf,r=t.some(e=>Array.isArray(e)?e[0]===tV:e===tV)?n:[...n,cp],i=e.remarkRehypeOptions?{...cm,...e.remarkRehypeOptions}:cm;return or().use(aD).use(r).use(aK,i).use(t)},cv=e=>e,ck=(e,t)=>{let{allowElement:n,allowedElements:r,disallowedElements:i,skipHtml:o,unwrapDisallowed:s,urlTransform:l}=t;if(n||r||i||o||l){let t=l||cv;(0,a.YR)(e,(e,a,l)=>{var c;let u;return"raw"===e.type&&l&&"number"==typeof a?(c=e.value,o?l.children.splice(a,1):l.children[a]={type:"text",value:c},a):"element"===e.type&&(((e,t)=>{var n;for(let r in iD)if(Object.hasOwn(iD,r)&&Object.hasOwn(e.properties,r)){let i=e.properties[r],a=iD[r];(null===a||a.includes(e.tagName))&&(e.properties[r]=null!=(n=t(String(i||""),r,e))?n:void 0)}})(e,t),u=!1,r?u=!r.includes(e.tagName):i&&(u=i.includes(e.tagName)),!u&&n&&"number"==typeof a&&(u=!n(e,a,l)),u&&l&&"number"==typeof a)?(s&&e.children?l.children.splice(a,1,...e.children):l.children.splice(a,1),a):void 0})}return function(e,t){var n,r,i,a;let o;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let s=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=s,r=t.jsxDEV,o=function(e,t,i,a){let o=Array.isArray(i.children),s=tN(e);return r(t,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:n,lineNumber:s?s.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");i=t.jsx,a=t.jsxs,o=function(e,t,n,r){let o=Array.isArray(n.children)?a:i;return r?o(t,n,r):o(t,n)}}let l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:s,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?_.JW:_.qy,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},c=i_(l,e,void 0);return c&&"string"!=typeof c?c:l.create(e,l.Fragment,{children:c||void 0},void 0)}(e,{Fragment:ia.Fragment,components:t.components,ignoreInvalidStyle:!0,jsx:ia.jsx,jsxs:ia.jsxs,passKeys:!0,passNode:!0})},cS=/\[\^[\w-]{1,200}\](?!:)/,cA=/\[\^[\w-]{1,200}\]:/,cC=/<(\w+)[\s>]/,c_=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),cx=new Map,cw=new Map,cN=(e,t)=>{if(c_.has(t.toLowerCase()))return 0;let n=e.match((e=>{let t=e.toLowerCase(),n=cx.get(t);if(n)return n;let r=RegExp(`<${t}(?=[\\s>/])[^>]*>`,"gi");return cx.set(t,r),r})(t));if(!n)return 0;let r=0;for(let e of n)e.trimEnd().endsWith("/>")||(r+=1);return r},cI=(e,t)=>{let n=e.match((e=>{let t=e.toLowerCase(),n=cw.get(t);if(n)return n;let r=RegExp(`</${t}(?=[\\s>])[^>]*>`,"gi");return cw.set(t,r),r})(t));return n?n.length:0},cR=e=>{let t=0;for(let n=0;n<e.length-1;n+=1)"$"===e[n]&&"$"===e[n+1]&&(t+=1,n+=1);return t},cO=e=>{let t=cS.test(e),n=cA.test(e);if(t||n)return[e];let r=sc.lex(e,{gfm:!0}),i=[],a=[],o=!1;for(let e of r){let t=e.raw,n=i.length;if(a.length>0){i[n-1]+=t;let e=a.at(-1),r=cN(t,e),o=cI(t,e);for(let t=0;t<r;t+=1)a.push(e);for(let t=0;t<o;t+=1)a.length>0&&a.at(-1)===e&&a.pop();continue}if("html"===e.type&&e.block){let e=t.match(cC);if(e){let n=e[1];cN(t,n)>cI(t,n)&&a.push(n)}}if(n>0&&!o){let e=i[n-1];if(cR(e)%2==1){i[n-1]=e+t;continue}}i.push(t),"space"!==e.type&&(o="code"===e.type)}return i},cD=/([\\`*_~[\]|])/g,cP=e=>e.replace(cD,"\\$1"),cL=e=>"text"===e.type?e.value:"children"in e&&Array.isArray(e.children)?e.children.map(cL).join(""):"",cM=e=>t=>{if(!e||0===e.length)return;let n=new Set(e.map(e=>e.toLowerCase()));(0,a.YR)(t,"element",e=>{if(n.has(e.tagName.toLowerCase())){let t=cL(e);e.children=t?[{type:"text",value:t}]:[]}})},cF=/^[ \t]*<[\w!/?-]/,cB=/(^|\n)[ \t]{4,}(?=<[\w!/?-])/g,cH={...tK,protocols:{...tK.protocols,href:[...null!=(cs=null==(co=tK.protocols)?void 0:co.href)?cs:[],"tel"]},attributes:{...tK.attributes,code:[...null!=(cc=null==(cl=tK.attributes)?void 0:cl.code)?cc:[],"metastring"]}},cU={raw:tV,sanitize:[t5,cH],harden:[function({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:n=[],allowDataImages:r=!1,allowedProtocols:i=[],blockedImageClass:u="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:d="text-gray-500",linkBlockPolicy:h=s,imageBlockPolicy:m=s}){let g=t.length&&!t.every(e=>"*"===e),b=n.length&&!n.every(e=>"*"===e);if(!e&&(g||b))throw Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return s=>{var g,b,E,y,T,v,k,S,A;let C,_=(g=e,b=t,E=n,y=r,T=i,v=u,k=d,S=h,A=m,C=(e,t,n)=>{if("element"!==e.type||e[f])return o.IN;if("a"===e.tagName){let r=p(e.properties.href,b,g,!1,!1,T);if(null!==r)return e.properties.href=r,e.properties.target="_blank",e.properties.rel="noopener noreferrer",o.IN;if(e[f]=!0,(0,a.YR)(e,C),n&&"number"==typeof t){let r=S===c?{type:"remove"}:S===l?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[...e.children]}}:{type:"replace",element:{type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(e.properties.href),class:k},children:[...e.children,{type:"text",value:" [blocked]"}]}};if("remove"===r.type)return n.children.splice(t,1),[o._Z,t];n.children[t]=r.element}return o._Z}if("img"===e.tagName){let r=p(e.properties.src,E,g,y,!0,T);if(null===r){if(e[f]=!0,(0,a.YR)(e,C),n&&"number"==typeof t){let r=function(e,t,n){if(t===c)return{type:"remove"};if(t===l){let t=String(e.properties.alt||"");return t?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[{type:"text",value:t}]}}:{type:"remove"}}return{type:"replace",element:{type:"element",tagName:"span",properties:{class:n},children:[{type:"text",value:"[Image blocked: "+String(e.properties.alt||"No description")+"]"}]}}}(e,A,v);if("remove"===r.type)return n.children.splice(t,1),[o._Z,t];n.children[t]=r.element}return o._Z}e.properties.src=r}return o.IN});(function e(t){if("children"in t&&Array.isArray(t.children))for(let n of(t.children=t.children.filter(e=>null!=e),t.children))e(n)})(s),(0,a.YR)(s,_)}},{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]},cj=Object.values(cU),cG=Object.values({gfm:[function(e){let t,n,r,i=e||rg,a=this.data(),o=a.micromarkExtensions||(a.micromarkExtensions=[]),s=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),l=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);o.push(nq([{text:n1},{document:{91:{name:"gfmFootnoteDefinition",tokenize:ri,continuation:{tokenize:ra},exit:ro}},text:{91:{name:"gfmFootnoteCall",tokenize:rr},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:rt,resolveTo:rn}}},(t=(i||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let i=this.previous,a=this.events,o=0;return function(s){return 126===i&&"characterEscape"!==a[a.length-1][1].type?r(s):(e.enter("strikethroughSequenceTemporary"),function a(s){let l=nx(i);if(126===s)return o>1?r(s):(e.consume(s),o++,a);if(o<2&&!t)return r(s);let c=e.exit("strikethroughSequenceTemporary"),u=nx(s);return c._open=!u||2===u&&!!l,c._close=!l||2===l&&!!u,n(s)}(s))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",a,t]],s=t.parser.constructs.insideSpan.null;s&&(0,n$.m)(o,o.length,0,(0,rs.W)(s,e.slice(r+1,n),t)),(0,n$.m)(o,o.length,0,[["exit",a,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),(0,n$.m)(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}},null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}),{flow:{null:{name:"table",tokenize:rc,resolveAll:ru}}},{text:{91:rf}}])),s.push([{transforms:[na],enter:{literalAutolink:t8,literalAutolinkEmail:ne,literalAutolinkHttp:ne,literalAutolinkWww:ne},exit:{literalAutolink:ni,literalAutolinkEmail:nr,literalAutolinkHttp:nt,literalAutolinkWww:nn}},{enter:{gfmFootnoteCallString:nu,gfmFootnoteCall:nd,gfmFootnoteDefinitionLabelString:nh,gfmFootnoteDefinition:np},exit:{gfmFootnoteCallString:nf,gfmFootnoteCall:nm,gfmFootnoteDefinitionLabelString:ng,gfmFootnoteDefinition:nb}},{canContainEols:["delete"],enter:{strikethrough:nk},exit:{strikethrough:nS}},{enter:{table:nP,tableData:nB,tableHeader:nB,tableRow:nM},exit:{codeText:nH,table:nL,tableData:nF,tableHeader:nF,tableRow:nF}},{exit:{taskListCheckValueChecked:nj,taskListCheckValueUnchecked:nj,paragraph:nG}}]),l.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:t4,notInConstruct:t7},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:t4,notInConstruct:t7},{character:":",before:"[ps]",after:"\\/",inConstruct:t4,notInConstruct:t7}]},(r=!1,i&&i.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:function(e,t,n,i){let a=n.createTracker(i),o=a.move("[^"),s=n.enter("footnoteDefinition"),l=n.enter("label");return o+=a.move(n.safe(n.associationId(e),{before:o,after:"]"})),l(),o+=a.move("]:"),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((r?"\n":" ")+n.indentLines(n.containerFlow(e,a.current()),r?nT:ny))),s(),o},footnoteReference:nE},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:nv}],handlers:{delete:nA}},function(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=nO(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return s(function(e,t,n){let r=e.children,i=-1,a=[],o=t.enter("table");for(;++i<r.length;)a[i]=l(r[i],t,n);return o(),a}(e,n,r),e.align)},tableCell:o,tableRow:function(e,t,n,r){let i=s([l(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function o(e,t,n,r){let i=n.enter("tableCell"),o=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function s(e,t){return function(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||nC,a=[],o=[],s=[],l=[],c=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>c&&(c=e[u].length);++a<e[u].length;){var d;let o=null==(d=e[u][a])?"":String(d);if(!1!==n.alignDelimiters){let e=i(o);r[a]=e,(void 0===l[a]||e>l[a])&&(l[a]=e)}t.push(o)}o[u]=t,s[u]=r}let h=-1;if("object"==typeof r&&"length"in r)for(;++h<c;)a[h]=n_(r[h]);else{let e=n_(r);for(;++h<c;)a[h]=e}h=-1;let p=[],f=[];for(;++h<c;){let e=a[h],t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,l[h]-t.length-r.length),o=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&((i=t.length+i+r.length)>l[h]&&(l[h]=i),f[h]=i),p[h]=o}o.splice(1,0,p),s.splice(1,0,f),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u];h=-1;let r=[];for(;++h<c;){let i=e[h]||"",o="",s="";if(!1!==n.alignDelimiters){let e=l[h]-(t[h]||0),n=a[h];114===n?o=" ".repeat(e):99===n?e%2?(o=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):s=o=" ".repeat(e/2):s=" ".repeat(e)}!1===n.delimiterStart||h||r.push("|"),!1!==n.padding&&(!1!==n.alignDelimiters||""!==i)&&(!1!==n.delimiterStart||h)&&r.push(" "),!1!==n.alignDelimiters&&r.push(o),r.push(i),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),(!1!==n.delimiterEnd||h!==c-1)&&r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function l(e,t,n){let r=e.children,i=-1,a=[],s=t.enter("tableRow");for(;++i<r.length;)a[i]=o(r[i],e,t,n);return s(),a}}(i),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:nz}}]})},{}],codeMeta:()=>e=>{(0,a.YR)(e,"code",e=>{var t,n;e.meta&&(e.data=null!=(t=e.data)?t:{},e.data.hProperties={...null!=(n=e.data.hProperties)?n:{},metastring:e.meta})})}}),cz={block:" ▋",circle:" ●"},c$=["github-light","github-dark"],cW={enabled:!0},cq=(0,i.createContext)({shikiTheme:c$,controls:!0,isAnimating:!1,lineNumbers:!0,mode:"streaming",mermaid:void 0,linkSafety:cW}),cV=(0,i.memo)(({content:e,shouldParseIncompleteMarkdown:t,shouldNormalizeHtmlIndentation:n,index:r,isIncomplete:i,dir:a,animatePlugin:o,...s})=>{if(o){let e=o.getLastRenderCharCount();o.setPrevContentLength(e)}let l="string"==typeof e&&n&&"string"==typeof e&&0!==e.length&&cF.test(e)?e.replace(cB,"$1"):e,c=(0,ia.jsx)(cE,{...s,children:l});return(0,ia.jsx)(sv.Provider,{value:i,children:a?(0,ia.jsx)("div",{dir:a,style:{display:"contents"},children:c}):c})},(e,t)=>{if(e.content!==t.content||e.shouldNormalizeHtmlIndentation!==t.shouldNormalizeHtmlIndentation||e.index!==t.index||e.isIncomplete!==t.isIncomplete||e.dir!==t.dir)return!1;if(e.components!==t.components){let n=Object.keys(e.components||{}),r=Object.keys(t.components||{});if(n.length!==r.length||n.some(n=>{var r,i;return(null==(r=e.components)?void 0:r[n])!==(null==(i=t.components)?void 0:i[n])}))return!1}return e.rehypePlugins===t.rehypePlugins&&e.remarkPlugins===t.remarkPlugins});cV.displayName="Block";var cY=(0,i.memo)(({children:e,mode:t="streaming",dir:n,parseIncompleteMarkdown:r=!0,normalizeHtmlIndentation:a=!1,components:o,rehypePlugins:s=cj,remarkPlugins:l=cG,className:c,shikiTheme:u=c$,mermaid:d,controls:h=!0,isAnimating:p=!1,animated:f,BlockComponent:m=cV,parseMarkdownIntoBlocksFn:g=cO,caret:b,plugins:E,remend:y,linkSafety:T=cW,lineNumbers:v=!0,allowedTags:k,literalTagContent:S,translations:A,icons:C,prefix:_,onAnimationStart:x,onAnimationEnd:w,...N})=>{let I=(0,i.useId)(),[R,O]=(0,i.useTransition)(),D=(0,i.useMemo)(()=>_?(...e)=>((e,t)=>{if(!e||!t)return t;let n=`${e}:`;return t.split(/\s+/).filter(Boolean).map(t=>t.startsWith(n)?t:`${e}:${t}`).join(" ")})(_,(0,ii.QP)((0,ir.$)(e))):sk,[_]),P=(0,i.useRef)(null),L=(0,i.useRef)(x),M=(0,i.useRef)(w);L.current=x,M.current=w,(0,i.useEffect)(()=>{var e,n,r;if("static"===t)return;let i=P.current;if(P.current=p,null===i){p&&(null==(e=L.current)||e.call(L));return}p&&!i?null==(n=L.current)||n.call(L):!p&&i&&(null==(r=M.current)||r.call(M))},[p,t]);let F=(0,i.useMemo)(()=>k?Object.keys(k):[],[k]),B=(0,i.useMemo)(()=>{if("string"!=typeof e)return"";let n="streaming"===t&&r?((e,t)=>{var n,r;let i;if(!e||"string"!=typeof e)return e;let a=e.endsWith(" ")&&!e.endsWith(" ")?e.slice(0,-1):e;for(let{handler:e,earlyReturn:o}of[...(i=null!=(r=null==t?void 0:t.linkMode)?r:"protocol",it.filter(({handler:e,optionKey:n})=>"links"===e.name?!1!==(null==t?void 0:t.links)||!1!==(null==t?void 0:t.images):"inlineKatex"===e.name?!0===(null==t?void 0:t.inlineKatex):!1!==(null==t?void 0:t[n])).map(({handler:e,earlyReturn:t})=>"links"===e.name?{handler:rE(rA({},e),ry({handle:e=>r9(e,i)})),earlyReturn:"protocol"===i?t:void 0}:{handler:e,earlyReturn:t})),...(null!=(n=null==t?void 0:t.handlers)?n:[]).map(e=>{var t;return{handler:rE(rA({},e),ry({priority:null!=(t=e.priority)?t:100})),earlyReturn:void 0}})].sort((e,t)=>{var n,r;return(null!=(n=e.handler.priority)?n:0)-(null!=(r=t.handler.priority)?r:0)}))if(a=e.handle(a),null!=o&&o(a))break;return a})(e,y):e;return S&&S.length>0&&(n=((e,t)=>{if(!t.length)return e;let n=e;for(let e of t){let t=RegExp(`(<${e}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${e}\\s*>)`,"gi");n=n.replace(t,(e,t,n,r)=>t+cP(n).replace(/\n\n/g,"&#10;&#10;")+r)}return n})(n,S)),F.length>0&&(n=((e,t)=>{if(!t.length)return e;let n=e;for(let e of t){let t=RegExp(`(<${e}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${e}\\s*>)`,"gi");n=n.replace(t,(e,t,n,r)=>{if(!n.includes(`
91
-
92
- `))return t+n+r;let i=n.replace(/\n\n/g,`
93
- <!---->
94
- `),a=(i.startsWith(`
95
- `)?"":`
96
- `)+i+(i.endsWith(`
97
- `)?"":`
98
- `);return`${t}${a}${r}
99
-
100
- `})}return n})(n,F)),n},[e,t,r,y,F,S]),H=(0,i.useMemo)(()=>g(B),[B,g]),[U,j]=(0,i.useState)(H);(0,i.useEffect)(()=>{"streaming"!==t||q?j(H):O(()=>{j(H)})},[H,t]);let G="streaming"===t?U:H,z=(0,i.useMemo)(()=>"auto"===n?G.map(lH):void 0,[G,n]),$=(0,i.useMemo)(()=>G.map((e,t)=>`${I}-${t}`),[G.length,I]),W=(0,i.useMemo)(()=>!0===f?"true":f?JSON.stringify(f):"",[f]),q=(0,i.useMemo)(()=>W?"true"===W?sT():sT(f):null,[W]),V=(0,i.useMemo)(()=>{var e,n;return{shikiTheme:null!=(n=null==(e=null==E?void 0:E.code)?void 0:e.getThemes())?n:u,controls:h,isAnimating:p,lineNumbers:v,mode:t,mermaid:d,linkSafety:T}},[u,h,p,v,t,d,T,null==E?void 0:E.code]),Y=(0,i.useMemo)(()=>A?JSON.stringify(A):"",[A]),K=(0,i.useMemo)(()=>({...sB,...A}),[Y]),X=(0,i.useMemo)(()=>{let{inlineCode:e,...t}=null!=o?o:{},n={...lM,...t};if(e){let t=n.code;n.code=n=>"data-block"in n?t?(0,i.createElement)(t,n):null:(0,i.createElement)(e,n)}return n},[o]),Q=(0,i.useMemo)(()=>{let e=[];return null!=E&&E.cjk&&(e=[...e,...E.cjk.remarkPluginsBefore]),e=[...e,...l],null!=E&&E.cjk&&(e=[...e,...E.cjk.remarkPluginsAfter]),null!=E&&E.math&&(e=[...e,E.math.remarkPlugin]),e},[l,null==E?void 0:E.math,null==E?void 0:E.cjk]),Z=(0,i.useMemo)(()=>{var e;let t=s;if(k&&Object.keys(k).length>0&&s===cj){let n={...cH,tagNames:[...null!=(e=cH.tagNames)?e:[],...Object.keys(k)],attributes:{...cH.attributes,...k}};t=[cU.raw,[t5,n],cU.harden]}return S&&S.length>0&&(t=[...t,[cM,S]]),null!=E&&E.math&&(t=[...t,E.math.rehypePlugin]),q&&p&&(t=[...t,q.rehypePlugin]),t},[s,null==E?void 0:E.math,q,p,k,S]),J=(0,i.useMemo)(()=>{if(!p||0===G.length)return!1;let e=G.at(-1);return ch(e)||(e=>{for(let t of e.split(`
101
- `)){let e=t.trim();if(e.length>0&&e.includes("|")&&cd.test(e))return!0}return!1})(e)},[p,G]),ee=(0,i.useMemo)(()=>b&&p&&!J?{"--streamdown-caret":`"${cz[b]}"`}:void 0,[b,p,J]);return"static"===t?(0,ia.jsx)(sH.Provider,{value:K,children:(0,ia.jsx)(sX.Provider,{value:null!=E?E:null,children:(0,ia.jsx)(cq.Provider,{value:V,children:(0,ia.jsx)(sM,{icons:C,children:(0,ia.jsx)(sA.Provider,{value:D,children:(0,ia.jsx)("div",{className:D("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",c),dir:"auto"===n?lH(B):n,children:(0,ia.jsx)(cE,{components:X,rehypePlugins:Z,remarkPlugins:Q,...N,children:B})})})})})})}):(0,ia.jsx)(sH.Provider,{value:K,children:(0,ia.jsx)(sX.Provider,{value:null!=E?E:null,children:(0,ia.jsx)(cq.Provider,{value:V,children:(0,ia.jsx)(sM,{icons:C,children:(0,ia.jsx)(sA.Provider,{value:D,children:(0,ia.jsxs)("div",{className:D("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",b&&!J?"[&>*:last-child]:after:inline [&>*:last-child]:after:align-baseline [&>*:last-child]:after:content-[var(--streamdown-caret)]":null,c),style:ee,children:[0===G.length&&b&&p&&(0,ia.jsx)("span",{}),G.map((e,t)=>{var i;let o=t===G.length-1,s=p&&o&&ch(e);return(0,ia.jsx)(m,{animatePlugin:q,components:X,content:e,dir:null!=(i=null==z?void 0:z[t])?i:"auto"!==n?n:void 0,index:t,isIncomplete:s,rehypePlugins:Z,remarkPlugins:Q,shouldNormalizeHtmlIndentation:a,shouldParseIncompleteMarkdown:r,...N},$[t])})]})})})})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.animated===t.animated&&e.mode===t.mode&&e.plugins===t.plugins&&e.className===t.className&&e.linkSafety===t.linkSafety&&e.lineNumbers===t.lineNumbers&&e.normalizeHtmlIndentation===t.normalizeHtmlIndentation&&e.literalTagContent===t.literalTagContent&&JSON.stringify(e.translations)===JSON.stringify(t.translations)&&e.prefix===t.prefix&&e.dir===t.dir);cY.displayName="Streamdown";var cK=({children:e,className:t,minZoom:n=.5,maxZoom:r=3,zoomStep:a=.1,showControls:o=!0,initialZoom:s=1,fullscreen:l=!1})=>{let{RotateCcwIcon:c,ZoomInIcon:u,ZoomOutIcon:d}=sF(),h=sC(),p=(0,i.useRef)(null),f=(0,i.useRef)(null),[m,g]=(0,i.useState)(s),[b,E]=(0,i.useState)({x:0,y:0}),[y,T]=(0,i.useState)(!1),[v,k]=(0,i.useState)({x:0,y:0}),[S,A]=(0,i.useState)({x:0,y:0}),C=(0,i.useCallback)(e=>{g(t=>Math.max(n,Math.min(r,t+e)))},[n,r]),_=(0,i.useCallback)(()=>{C(a)},[C,a]),x=(0,i.useCallback)(()=>{C(-a)},[C,a]),w=(0,i.useCallback)(()=>{g(s),E({x:0,y:0})},[s]),N=(0,i.useCallback)(e=>{e.preventDefault(),C(e.deltaY>0?-a:a)},[C,a]),I=(0,i.useCallback)(e=>{if(0!==e.button||!1===e.isPrimary)return;T(!0),k({x:e.clientX,y:e.clientY}),A(b);let t=e.currentTarget;t instanceof HTMLElement&&t.setPointerCapture(e.pointerId)},[b]),R=(0,i.useCallback)(e=>{if(!y)return;e.preventDefault();let t=e.clientX-v.x,n=e.clientY-v.y;E({x:S.x+t,y:S.y+n})},[y,v,S]),O=(0,i.useCallback)(e=>{T(!1);let t=e.currentTarget;t instanceof HTMLElement&&t.releasePointerCapture(e.pointerId)},[]);return(0,i.useEffect)(()=>{let e=p.current;if(e)return e.addEventListener("wheel",N,{passive:!1}),()=>{e.removeEventListener("wheel",N)}},[N]),(0,i.useEffect)(()=>{let e=f.current;if(e&&y)return document.body.style.userSelect="none",e.addEventListener("pointermove",R,{passive:!1}),e.addEventListener("pointerup",O),e.addEventListener("pointercancel",O),()=>{document.body.style.userSelect="",e.removeEventListener("pointermove",R),e.removeEventListener("pointerup",O),e.removeEventListener("pointercancel",O)}},[y,R,O]),(0,ia.jsxs)("div",{className:h("relative flex flex-col",l?"h-full w-full":"min-h-28 w-full",t),ref:p,style:{cursor:y?"grabbing":"grab"},children:[o?(0,ia.jsxs)("div",{className:h("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/80 p-1 supports-[backdrop-filter]:bg-background/70 supports-[backdrop-filter]:backdrop-blur-sm",l?"bottom-4 left-4":"bottom-2 left-2"),children:[(0,ia.jsx)("button",{className:h("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:m>=r,onClick:_,title:"Zoom in",type:"button",children:(0,ia.jsx)(u,{size:16})}),(0,ia.jsx)("button",{className:h("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:m<=n,onClick:x,title:"Zoom out",type:"button",children:(0,ia.jsx)(d,{size:16})}),(0,ia.jsx)("button",{className:h("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"),onClick:w,title:"Reset zoom and pan",type:"button",children:(0,ia.jsx)(c,{size:16})})]}):null,(0,ia.jsx)("div",{className:h("flex-1 origin-center transition-transform duration-150 ease-out",l?"flex h-full w-full items-center justify-center":"flex w-full items-center justify-center"),onPointerDown:I,ref:f,role:"application",style:{transform:`translate(${b.x}px, ${b.y}px) scale(${m})`,transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:e})]})},cX=({chart:e,className:t,config:n,fullscreen:r=!1,showControls:a=!0})=>{let o=sC(),[s,l]=(0,i.useState)(null),[c,u]=(0,i.useState)(!1),[d,h]=(0,i.useState)(""),[p,f]=(0,i.useState)(""),[m,g]=(0,i.useState)(0),{mermaid:b}=(0,i.useContext)(cq),E=sJ(),y=null==b?void 0:b.errorComponent,{shouldRender:T,containerRef:v}=function(e={}){let{immediate:t=!1,debounceDelay:n=300,rootMargin:r="300px",idleTimeout:a=500}=e,[o,s]=(0,i.useState)(!1),l=(0,i.useRef)(null),c=(0,i.useRef)(null),u=(0,i.useRef)(null),d=(0,i.useMemo)(()=>e=>{let t=Date.now();return window.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})},1)},[]),h=(0,i.useMemo)(()=>"u">typeof window&&window.requestIdleCallback?(e,t)=>window.requestIdleCallback(e,t):d,[d]),p=(0,i.useMemo)(()=>"u">typeof window&&window.cancelIdleCallback?e=>window.cancelIdleCallback(e):e=>{clearTimeout(e)},[]);return(0,i.useEffect)(()=>{if(t)return void s(!0);let e=l.current;if(!e)return;c.current&&(clearTimeout(c.current),c.current=null),u.current&&(p(u.current),u.current=null);let i=()=>{c.current&&(clearTimeout(c.current),c.current=null),u.current&&(p(u.current),u.current=null)},o=(e,t)=>{e.isIntersecting?(i(),c.current=window.setTimeout(()=>{var e,n;let r=t.takeRecords();(0===r.length||null!=(n=null==(e=r.at(-1))?void 0:e.isIntersecting)&&n)&&(u.current=h(e=>{e.timeRemaining()>0||e.didTimeout?(s(!0),t.disconnect()):u.current=h(()=>{s(!0),t.disconnect()},{timeout:a/2})},{timeout:a}))},n)):i()},d=new IntersectionObserver(e=>{for(let t of e)o(t,d)},{rootMargin:r,threshold:0});return d.observe(e),()=>{c.current&&clearTimeout(c.current),u.current&&p(u.current),d.disconnect()}},[t,n,r,a,p,h]),{shouldRender:o,containerRef:l}}({immediate:r});return((0,i.useEffect)(()=>{if(T){if(!E)return void l("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");(async()=>{try{l(null),u(!0);let t=E.getMermaid(n),r=e.split("").reduce((e,t)=>(e<<5)-e+t.charCodeAt(0)|0,0),i=`mermaid-${Math.abs(r)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:a}=await t.render(i,e);h(a),f(a)}catch(e){p||d||l(e instanceof Error?e.message:"Failed to render Mermaid chart")}finally{u(!1)}})()}},[e,n,m,T,E]),T||d||p)?!c||d||p?!s||d||p?(0,ia.jsx)("div",{className:o("size-full",t),"data-streamdown":"mermaid",ref:v,children:(0,ia.jsx)(cK,{className:o(r?"size-full overflow-hidden":"overflow-hidden",t),fullscreen:r,maxZoom:3,minZoom:.5,showControls:a,zoomStep:.1,children:(0,ia.jsx)("div",{"aria-label":"Mermaid chart",className:o("flex justify-center",r?"size-full items-center":null),dangerouslySetInnerHTML:{__html:d||p},role:"img"})})}):y?(0,ia.jsx)("div",{ref:v,children:(0,ia.jsx)(y,{chart:e,error:s,retry:()=>g(e=>e+1)})}):(0,ia.jsxs)("div",{className:o("rounded-md bg-red-50 p-4",t),ref:v,children:[(0,ia.jsxs)("p",{className:o("font-mono text-red-700 text-sm"),children:["Mermaid Error: ",s]}),(0,ia.jsxs)("details",{className:o("mt-2"),children:[(0,ia.jsx)("summary",{className:o("cursor-pointer text-red-600 text-xs"),children:"Show Code"}),(0,ia.jsx)("pre",{className:o("mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs"),children:e})]})]}):(0,ia.jsx)("div",{className:o("my-4 flex justify-center p-4",t),ref:v,children:(0,ia.jsxs)("div",{className:o("flex items-center space-x-2 text-muted-foreground"),children:[(0,ia.jsx)("div",{className:o("h-4 w-4 animate-spin rounded-full border-current border-b-2")}),(0,ia.jsx)("span",{className:o("text-sm"),children:"Loading diagram..."})]})}):(0,ia.jsx)("div",{className:o("my-4 min-h-[200px]",t),ref:v})}},63013:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("panel-bottom-close",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"m15 8-3 3-3-3",key:"1oxy1z"}]])},64587:(e,t,n)=>{"use strict";n.d(t,{C:()=>r});let r=function(e){var t,n;if(null==e)return a;if("function"==typeof e)return i(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=r(e[n]);return i(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,i(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,i(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function i(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function a(){return!0}},64752:(e,t,n)=>{"use strict";n.d(t,{I:()=>c});var r=n(25488),i=n(12696),a=n(29198);let o=/[A-Z]/g,s=/-[a-z]/g,l=/^data[-\w.:]+$/i;function c(e,t){let n=(0,a.S)(t),c=t,h=i.R;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&l.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(s,d);c="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!s.test(e)){let n=e.replace(o,u);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}h=r.E}return new h(c,t)}function u(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},64796:(e,t,n)=>{"use strict";n.d(t,{o:()=>d});var r=n(69266),i=n(16591),a=n(1791),o=n(95522),s=n(59879),l=n(73146),c=n(60601),u=n(7962);let d=r.forwardRef(function(e,t){let{render:n,className:d,anchor:h,positionMethod:p="absolute",side:f="top",align:m="center",sideOffset:g=0,alignOffset:b=0,collisionBoundary:E="clipping-ancestors",collisionPadding:y=5,arrowPadding:T=5,sticky:v=!1,disableAnchorTracking:k=!1,collisionAvoidance:S=l.Pe,style:A,...C}=e,_=(0,i.g)(),x=(0,s.a)(),w=_.useState("open"),N=_.useState("mounted"),I=_.useState("trackCursorAxis"),R=_.useState("disableHoverablePopup"),O=_.useState("floatingRootContext"),D=_.useState("instantType"),P=_.useState("transitionStatus"),L=_.useState("adaptiveOrigin"),M=(0,o.s)({anchor:h,positionMethod:p,floatingRootContext:O,mounted:N,side:f,sideOffset:g,align:m,alignOffset:b,collisionBoundary:E,collisionPadding:y,sticky:v,arrowPadding:T,disableAnchorTracking:k,keepMounted:x,collisionAvoidance:S,adaptiveOrigin:L}),F=r.useMemo(()=>({open:w,side:M.side,align:M.align,anchorHidden:M.anchorHidden,instant:"none"!==I?"tracking-cursor":D}),[w,M.side,M.align,M.anchorHidden,I,D]),B=(0,c.i)(e,F,{styles:M.positionerStyles,transitionStatus:P,props:C,refs:[t,_.useStateSetter("positionerElement")],hidden:!N,inert:!w||"both"===I||R});return(0,u.jsx)(a.v.Provider,{value:M,children:B})})},65770:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("folder-git-2",[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]])},65905:(e,t,n)=>{"use strict";n.d(t,{j:()=>T});var r=n(69266),i=n(44911),a=n(88944),o=n(94532),s=n(33914),l=n(66538),c=n(95472),u=n(10813),d=n(53402),h=n(27944),p=n(52333),f=n(6561),m=n(12418),g=n(79362),b=n(8515),E=n(22634);let y={current:null};function T(e,t={}){let{enabled:n=!0,delay:v=0,handleClose:k=null,mouseOnly:S=!1,restMs:A=0,move:C=!0,triggerElementRef:_=y,externalTree:x,isActiveTrigger:w=!0,getHandleCloseContext:N,isClosing:I,shouldOpen:R,guardStaleOpen:O=!1}=t,D="rootStore"in e?e.rootStore:e,{dataRef:P,events:L}=D.context,M=(0,p.cq)(x),F=(0,g.uu)(D),B=r.useRef(!1),H=(0,c.u)(k),U=(0,c.u)(v),j=(0,c.u)(A),G=(0,c.u)(n),z=(0,c.u)(R),$=(0,c.u)(I),W=(0,l.K)(()=>(0,b.GI)(P.current.openEvent?.type,F.interactedInside)),q=(0,l.K)(()=>z.current?.()!==!1),V=(0,l.K)((e,t,n)=>{let r=D.context.triggerElements;return r.hasElement(t)?!e||!(0,f.gR)(e,t):!!(0,u.vq)(n)&&r.hasMatchingElement(e=>(0,f.gR)(e,n))&&(!e||!(0,f.gR)(e,n))}),Y=(0,l.K)(()=>{F.handler&&((0,s.R)(D.select("domReferenceElement")).removeEventListener("mousemove",F.handler),F.handler=void 0)}),K=(0,l.K)(()=>{(0,g.GH)(F)});return w&&(F.handleCloseOptions=H.current?.__options),r.useEffect(()=>Y,[Y]),r.useEffect(()=>{if(n)return L.on("openchange",e),()=>{L.off("openchange",e)};function e(e){e.open?B.current=!1:(B.current=e.reason===h.N7,Y(),F.openChangeTimeout.clear(),F.restTimeout.clear(),F.blockMouseMove=!0,F.restTimeoutPending=!1)}},[n,L,F,Y]),r.useEffect(()=>{if(!n)return;function e(t,n=!0){let r=(0,b.uf)(U.current,"close",F.pointerType);r?F.openChangeTimeout.start(r,()=>{D.setOpen(!1,(0,d.d)(h.N7,t)),M?.events.emit("floating.closed",t)}):n&&(F.openChangeTimeout.clear(),D.setOpen(!1,(0,d.d)(h.N7,t)),M?.events.emit("floating.closed",t))}let t=_.current??(w?D.select("domReferenceElement"):null);if(!(0,u.vq)(t))return;function r(e){if(F.openChangeTimeout.clear(),F.blockMouseMove=!1,S&&!(0,m.Go)(F.pointerType))return;let t=(0,b.hq)(j.current),n=(0,b.uf)(U.current,"open",F.pointerType),r=(0,f.EW)(e),i=e.currentTarget??null,a=D.select("domReferenceElement"),o=i;if((0,u.vq)(r)&&!D.context.triggerElements.hasElement(r)){for(let e of D.context.triggerElements.elements())if((0,f.gR)(e,r)){o=e;break}}(0,u.vq)(i)&&(0,u.vq)(a)&&!D.context.triggerElements.hasElement(i)&&(0,f.gR)(i,a)&&(o=a);let s=null!=o&&V(a,o,r),l=D.select("open"),c=$.current?.()??"ending"===D.select("transitionStatus"),p=!l&&c&&B.current,g=!s&&(0,u.vq)(o)&&(0,u.vq)(a)&&(0,f.gR)(a,o)&&p,E=t>0&&!n,y=!l||s;if(s&&(l||p)||g){q()&&D.setOpen(!0,(0,d.d)(h.N7,e,o));return}!E&&(n?F.openChangeTimeout.start(n,()=>{y&&q()&&D.setOpen(!0,(0,d.d)(h.N7,e,o))}):y&&q()&&D.setOpen(!0,(0,d.d)(h.N7,e,o)))}function i(t){if(W())return void K();Y();let n=D.select("domReferenceElement"),r=(0,s.R)(n);F.restTimeout.clear(),F.restTimeoutPending=!1;let i=P.current.floatingContext??N?.();if(!(0,E.Hi)(t.relatedTarget,D.context.triggerElements)){if(H.current&&i){D.select("open")||F.openChangeTimeout.clear();let n=_.current;F.handler=H.current({...i,tree:M,x:t.clientX,y:t.clientY,onClose(){K(),Y(),G.current&&!W()&&n===D.select("domReferenceElement")&&e(t,!0)}}),r.addEventListener("mousemove",F.handler),F.handler(t);return}"touch"===F.pointerType&&(0,f.gR)(D.select("floatingElement"),t.relatedTarget)||e(t)}}let l=O?(0,a.q)(t,"mouseout",function(e){(0,f.gR)(t,e.relatedTarget)||(F.openChangeTimeout.clear(),F.restTimeout.clear(),F.restTimeoutPending=!1)}):void 0;return C?(0,o.g)((0,a.q)(t,"mousemove",r,{once:!0}),(0,a.q)(t,"mouseenter",r),(0,a.q)(t,"mouseleave",i),l):(0,o.g)((0,a.q)(t,"mouseenter",r),(0,a.q)(t,"mouseleave",i),l)},[Y,K,P,U,D,n,H,F,w,V,W,S,C,j,_,M,G,N,$,q,O]),r.useMemo(()=>{if(n)return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,r=D.select("domReferenceElement"),a=D.select("open"),o=V(r,n,e.target);if(S&&!(0,m.Go)(F.pointerType))return;if(a&&o&&F.handleCloseOptions?.blockPointerEvents){let e=D.select("floatingElement");if(e){let t=F.handleCloseOptions?.getScope?.()??n.ownerDocument.body;(0,g.D8)(F,{scopeElement:t,referenceElement:n,floatingElement:e})}}let s=(0,b.hq)(j.current);function l(){if(F.restTimeoutPending=!1,W())return;let e=D.select("open");!F.blockMouseMove&&(!e||o)&&q()&&D.setOpen(!0,(0,d.d)(h.N7,t,n))}(!a||o)&&0!==s&&(!o&&F.restTimeoutPending&&e.movementX**2+e.movementY**2<2||(F.restTimeout.clear(),"touch"===F.pointerType?i.flushSync(()=>{l()}):o&&a?l():(F.restTimeoutPending=!0,F.restTimeout.start(s,l))))}};function e(e){F.pointerType=e.pointerType}},[n,F,W,V,S,D,j,q])}},66467:(e,t,n)=>{"use strict";n.d(t,{R:()=>g});var r=n(69266),i=n(88944),a=n(33914),o=n(34517),s=n(12418),l=n(6561),c=n(82712),u=n(79833),d=n(69611),h=n(53402),p=n(85933),f=n(27944),m=n(28991);let g=r.forwardRef(function(e,t){let{render:n,className:g,style:b,...E}=e,{setAnchor:y,actionsRef:T,internalBackdropRef:v,backdropRef:k,positionerRef:S,allowMouseUpTriggerRef:A,initialCursorPointRef:C,rootId:_}=(0,c.v)(!1),{store:x}=(0,u.Y)(!1),w=x.useState("open"),N=x.useState("disabled"),I=r.useRef(null),R=r.useRef(null),O=(0,o.Z)(),D=(0,o.Z)(),P=r.useRef(!1),L=r.useRef(null);function M(e,t,n){let r=n.type.startsWith("touch");C.current={x:e,y:t},y({getBoundingClientRect:()=>DOMRect.fromRect({width:10*!!r,height:10*!!r,x:e,y:t})}),P.current=!1,T.current?.setOpen(!0,(0,h.d)(f.Ui,n)),D.start(500,()=>{P.current=!0})}function F(){O.clear(),R.current=null}return r.useEffect(()=>()=>{L.current?.abort()},[]),r.useEffect(()=>{let e=(0,a.R)(I.current);return(0,i.q)(e,"contextmenu",function(e){if(N)return;let t=(0,l.EW)(e);((0,l.gR)(I.current,t)||(0,l.gR)(v.current,t)||(0,l.gR)(k.current,t))&&e.preventDefault()})},[k,N,v]),(0,d.o)("div",e,{state:{open:w},ref:[I,t],props:[{onContextMenu:function(e){if(N)return;A.current=!0,(0,s.jo)(e),M(e.clientX,e.clientY,e.nativeEvent);let t=(0,a.R)(I.current);L.current?.abort();let n=new AbortController;L.current=n,t.addEventListener("mouseup",e=>{if(A.current=!1,!P.current)return;D.clear(),P.current=!1;let t=(0,l.EW)(e);(0,l.gR)(S.current,t)||_&&t&&(0,m.Q)(t)===_||T.current?.setOpen(!1,(0,h.d)(f.LO,e))},{once:!0,signal:n.signal})},onTouchStart:function(e){if(N||(A.current=!1,1!==e.touches.length))return void F();e.stopPropagation();let t=e.touches[0],n={x:t.clientX,y:t.clientY};R.current=n,O.start(500,()=>{M(n.x,n.y,e.nativeEvent)})},onTouchMove:function(e){if(1!==e.touches.length)return void F();if(O.isStarted()&&R.current){let t=e.touches[0],n=Math.abs(t.clientX-R.current.x),r=Math.abs(t.clientY-R.current.y);(n>10||r>10)&&F()}},onTouchEnd:F,onTouchCancel:F,style:{WebkitTouchCallout:"none"}},E],stateAttributesMapping:p.jL})})},66584:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]])},66623:(e,t,n)=>{"use strict";n.d(t,{N:()=>i});var r=n(1052);function i(e,t,n,i){let a=i?i-1:1/0,o=0;return function(i){return(0,r.On)(i)?(e.enter(n),function i(s){return(0,r.On)(s)&&o++<a?(e.consume(s),i):(e.exit(n),t(s))}(i)):t(i)}}},68868:(e,t,n)=>{"use strict";n.d(t,{k:()=>w});var r=n(80417),i=n(69266),a=n(10813),o=n(53949),s=n(34517),l=n(95472),c=n(16591),u=n(85933),d=n(69611),h=n(1424),p=n(63962),f=n(9542),m=n(17523),g=n(87651),b=n(65905),E=n(17499),y=n(79718),T=n(6561),v=n(12418),k=n(53402),S=n(27944),A=n(79362),C=n(8515);let _="data-base-ui-tooltip-trigger";function x(e){if("composedPath"in e){let t=e.composedPath();for(let e=0;e<t.length;e+=1){let n=t[e];if((0,a.vq)(n))return n}}let t=e.target;return(0,a.vq)(t)?t:null}let w=(0,o.nk)(function(e,t){let{render:n,className:o,style:w,handle:N,payload:I,disabled:R,delay:O,closeOnClick:D=!0,closeDelay:P,id:L,...M}=e,F=(0,c.g)(!0),B=(0,h.f)(N)??F;if(!B)throw Error((0,r.A)(82));let H=(0,f.e)(L),U=B.useState("isTriggerActive",H),j=B.useState("isOpenedByTrigger",H),G=B.useState("floatingRootContext"),z=i.useRef(null),$=O??600,W=P??0,{registerTrigger:q,isMountedByThisTrigger:V}=(0,p.L_)(H,z,B,{payload:I,closeOnClick:D,closeDelay:W}),Y=(0,m.n)(),{delayRef:K,isInstantPhase:X,hasProvider:Q}=(0,g.c)(G,{open:j}),Z=(0,A.uu)(G);B.useSyncedValue("isInstantPhase",X);let J=B.useState("disabled"),ee=R??J,et=(0,l.u)(ee),en=B.useState("trackCursorAxis"),er=B.useState("disableHoverablePopup"),ei=i.useRef(!1),ea=(0,s.Z)(),eo=i.useRef(void 0);function es(){return Q?0===(0,C.uf)(K.current,"open")?0:O??Y??600:$}function el(e){let t=z.current;if(!t||!e)return!1;let n=function(e){let t=e;for(;t;){let e=t.closest(`[${_}]`);if(e)return e;let n=t.getRootNode();t="host"in n&&(0,a.vq)(n.host)?n.host:null}return null}(e);return null!==n&&n!==t&&(0,T.gR)(t,n)}let ec=(0,b.j)(G,{enabled:!ee,mouseOnly:!0,move:!1,handleClose:er||"both"===en?null:(0,E.i)(),restMs:es,delay:()=>null==P&&Q?{close:(0,C.uf)(K.current,"close")}:{close:W},triggerElementRef:z,isActiveTrigger:U,isClosing:()=>"ending"===B.select("transitionStatus"),shouldOpen:()=>!ei.current}),eu=(0,y.i)(G,{enabled:!ee}).reference,ed=B.useState("triggerProps",V),eh=V||"none"!==en;return(0,d.o)("button",e,{state:{open:j},ref:[t,q,z],props:[ec,eu,eh?ed:void 0,{onMouseOver(e){(e=>{let t,n=ei.current,r=x(e),i=(ei.current=t=el(r),t&&(Z.openChangeTimeout.clear(),Z.restTimeout.clear(),Z.restTimeoutPending=!1,ea.clear()),t),a=z.current,o=a&&r&&(0,T.gR)(a,r);if(i&&B.select("open")&&B.select("lastOpenChangeReason")===S.N7)return B.setOpen(!1,(0,k.d)(S.N7,e));if(n&&!i&&o&&!et.current&&!B.select("open")&&a&&(0,v.Go)(eo.current)){let t=()=>{ei.current||et.current||B.select("open")||B.setOpen(!0,(0,k.d)(S.N7,e,a))},n=es();0===n?(ea.clear(),t()):ea.start(n,t)}})(e.nativeEvent)},onFocus(e){el(x(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){ei.current=!1,ea.clear(),eo.current=void 0},onPointerEnter(e){eo.current=e.pointerType},onPointerDown(e){eo.current=e.pointerType,B.set("closeOnClick",D),D&&!B.select("open")&&B.cancelPendingOpen(e.nativeEvent)},onClick(e){D&&!B.select("open")&&B.cancelPendingOpen(e.nativeEvent)},id:H,"data-trigger-disabled":ee?"":void 0,[_]:ee?void 0:""},M],stateAttributesMapping:u.qV})})},69036:(e,t,n)=>{"use strict";n.d(t,{o:()=>h});var r=n(69266),i=n(16591),a=n(1791),o=n(85933),s=n(43745),l=n(69611),c=n(82909),u=n(20660),d=n(63962);let h=r.forwardRef(function(e,t){let{render:n,className:r,style:h,...p}=e,f=(0,i.g)(),{side:m,align:g}=(0,a.s)(),b=f.useState("open"),E=f.useState("instantType"),y=f.useState("transitionStatus"),T=f.useState("popupProps"),v=f.useState("floatingRootContext"),k=f.useState("disabled"),S=f.useState("closeDelay");(0,s.v)({open:b,ref:f.context.popupRef,onComplete(){b&&f.context.onOpenChangeComplete?.(!0)}}),(0,u.a)(v,{enabled:!k,closeDelay:S});let A=f.useStateSetter("popupElement");return(0,l.o)("div",e,{state:{open:b,side:m,align:g,instant:E,transitionStatus:y},ref:[t,f.context.popupRef,A],props:[d.Ls,T,(0,c.d)(y),p],stateAttributesMapping:o.LM})})},71057:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]])},71859:(e,t,n)=>{"use strict";n.d(t,{t:()=>T});var r=n(69266),i=n(7058),a=n(75645),o=n(66758),s=n(6723),l=n(44596);let c=0;var u=n(33914),d=n(34517);function h(e,t){if("string"==typeof e)return{description:e};if("function"==typeof e){let n=e(t);return"string"==typeof n?{description:n}:n}return e}var p=n(6561),f=n(22634);function m(e){let t=new Map,n=0,r=0;return e.forEach((e,i)=>{let a="ending"===e.transitionStatus;t.set(e.id,{value:e,domIndex:i,visibleIndex:a?-1:n,offsetY:r}),r+=e.height||0,a||(n+=1)}),t}function g(e,t){let n=0;return e.map(e=>{if("ending"===e.transitionStatus)return e;let r=n>=t;return n+=1,e.limited===r?e:{...e,limited:r}})}let b={toasts:e=>e.toasts,isEmpty:e=>0===e.toasts.length,toast:(e,t)=>e.toastMetadata.get(t)?.value,toastIndex:(e,t)=>e.toastMetadata.get(t)?.domIndex??-1,toastOffsetY:(e,t)=>e.toastMetadata.get(t)?.offsetY??0,toastVisibleIndex:(e,t)=>e.toastMetadata.get(t)?.visibleIndex??-1,focused:e=>e.focused,expanded:e=>e.hovering||e.focused,expandedOrOutOfFocus:e=>e.hovering||e.focused||!e.isWindowFocused,prevFocusElement:e=>e.prevFocusElement};class E extends l.H{timers=new Map;areTimersPaused=!1;constructor(e){super({...e,toastMetadata:m(e.toasts)},{},b)}setViewport=e=>{this.set("viewport",e)};syncProviderProps(e,t){let n=this.state.limit!==t;if(this.state.timeout===e&&!n)return;let r={timeout:e,limit:t};if(n){let e=g(this.state.toasts,t);r.toasts=e,r.toastMetadata=m(e)}this.update(r)}disposeEffect=()=>()=>{this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear()};removeToast(e,t=!1){let n=b.toastIndex(this.state,e);if(-1===n)return;let r=this.state.toasts[n];t||r?.onRemove?.();let i=[...this.state.toasts];i.splice(n,1),this.setToasts(i)}addToast=e=>{let{timeout:t,limit:n}=this.state,r=e.id||(c+=1,`toast-${Math.random().toString(36).slice(2,6)}-${c}`);if(e.id){let t=b.toast(this.state,e.id);if(t)if("ending"===t.transitionStatus)this.removeToast(e.id,!0);else{let{id:t,transitionStatus:n,...r}=e;return this.updateToastInternal(e.id,r,!0,!0),e.id}}let i={...e,id:r,updateKey:0,transitionStatus:"starting"},a=[i,...this.state.toasts];this.setToasts(g(a,n));let o=i.timeout??t;return"loading"!==i.type&&o>0&&this.scheduleTimer(r,o,()=>this.closeToast(r)),b.expandedOrOutOfFocus(this.state)&&this.pauseTimers(),r};updateToast=(e,t)=>{this.updateToastInternal(e,t,!1,!0)};updateToastInternal=(e,t,n=!1,r=!1)=>{let{timeout:i,toasts:a}=this.state,o=b.toast(this.state,e);if(!o||"ending"===o.transitionStatus)return;let s={...o,...t,...r&&{updateKey:o.updateKey+1}};this.setToasts(a.map(t=>t.id===e?s:t));let l=s.timeout??i,c=o.timeout??i,u=Object.hasOwn(t,"timeout"),d="ending"!==s.transitionStatus&&"loading"!==s.type&&l>0,h=this.timers.has(e),p=c!==l,f="loading"===o.type;!d&&h?this.clearTimer(e):d&&(!h||p||u||f||n)&&(this.clearTimer(e),this.scheduleTimer(e,l,()=>this.closeToast(e)),b.expandedOrOutOfFocus(this.state)&&this.pauseTimers())};closeToast=e=>{let t,n=void 0===e,{limit:r,toasts:i}=this.state;if(n)t=i,this.clearTimers();else{let n=b.toast(this.state,e);if(!n)return;t=[n],this.clearTimer(e)}let a=g(i.map(t=>n||t.id===e?{...t,transitionStatus:"ending",height:0}:t),r);this.setToasts(a,!a.some(e=>"ending"!==e.transitionStatus)),t.forEach(e=>{"ending"!==e.transitionStatus&&e.onClose?.()}),this.handleFocusManagement(e)};promiseToast=(e,t)=>{let n=h(t.loading),r=this.addToast({...n,type:"loading"}),i=e.then(e=>{let n=h(t.success,e);return this.updateToast(r,{...n,type:"success",timeout:n.timeout}),e}).catch(e=>{let n=h(t.error,e);return this.updateToast(r,{...n,type:"error",timeout:n.timeout}),Promise.reject(e)});return({}).hasOwnProperty.call(t,"setPromise")&&t.setPromise(i),i};pauseTimers(){this.areTimersPaused||(this.areTimersPaused=!0,this.timers.forEach(e=>{e.timeout&&(e.timeout.clear(),e.remaining=Math.max(e.remaining-(Date.now()-e.start),0))}))}resumeTimers(){this.areTimersPaused&&(this.areTimersPaused=!1,this.timers.forEach((e,t)=>{e.remaining=e.remaining>0?e.remaining:e.delay,e.timeout??=d.E.create(),e.timeout.start(e.remaining,()=>{this.handleTimerFired(t),e.callback()}),e.start=Date.now()}))}restoreFocusToPrevElement(){this.state.prevFocusElement?.focus({preventScroll:!0})}handleDocumentPointerDown=e=>{if("touch"!==e.pointerType)return;let t=(0,p.EW)(e);(0,p.gR)(this.state.viewport,t)||(this.resumeTimers(),this.update({hovering:!1,focused:!1}))};scheduleTimer(e,t,n){let r=Date.now(),i=b.expandedOrOutOfFocus(this.state)?void 0:d.E.create();i?.start(t,()=>{this.handleTimerFired(e),n()}),this.timers.set(e,{timeout:i,start:r,delay:t,remaining:t,callback:n})}clearTimers(){this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear(),this.areTimersPaused=!1}clearTimer(e){let t=this.timers.get(e);t?.timeout?.clear(),this.timers.delete(e),this.resetPausedStateIfNoTimersRemain()}handleTimerFired(e){this.timers.delete(e),this.resetPausedStateIfNoTimersRemain()}resetPausedStateIfNoTimersRemain(){0===this.timers.size&&(this.areTimersPaused=!1)}setToasts(e,t=0===e.length){let n={toasts:e,toastMetadata:m(e)};t&&(n.hovering=!1,n.focused=!1),this.update(n)}handleFocusManagement(e){let t=(0,p.RS)((0,u.R)(this.state.viewport));if(!this.state.viewport||!(0,p.gR)(this.state.viewport,t)||!(0,f.em)(t))return;if(void 0===e)return void this.restoreFocusToPrevElement();let n=b.toasts(this.state),r=b.toastIndex(this.state,e),i=(e,t)=>{for(let r=e;r>=0&&r<n.length;r+=t)if("ending"!==n[r].transitionStatus)return n[r];return null},a=i(r+1,1)??i(r-1,-1);a?a.ref?.current?.focus():this.restoreFocusToPrevElement()}}var y=n(7962);let T=function(e){let{children:t,timeout:n=5e3,limit:o=3,toastManager:l}=e,c=(0,a.j)(()=>new E({timeout:n,limit:o,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return(0,i.y)(c.disposeEffect),r.useEffect(function(){if(l)return l[" subscribe"](({action:e,options:t})=>{let n=t.id;"promise"===e&&t.promise?c.promiseToast(t.promise,t):"update"===e&&n?c.updateToast(n,t):"close"===e?c.closeToast(n):c.addToast(t)})},[c,l]),(0,y.jsxs)(s.$.Provider,{value:c,children:[(0,y.jsx)(v,{store:c,timeout:n,limit:o}),t]})};function v(e){let{store:t,timeout:n,limit:r}=e;return(0,o.g)(()=>{t.syncProviderProps(n,r)},[t,n,r]),null}},72034:(e,t,n)=>{"use strict";n.d(t,{IN:()=>a,dc:()=>o,_Z:()=>s,VG:()=>l});var r=n(64587);let i=[],a=!0,o=!1,s="skip";function l(e,t,n,l){let c;"function"==typeof t&&"function"!=typeof n?(l=n,n=t):c=t;let u=(0,r.C)(c),d=l?-1:1;(function e(r,c,h){let p=r&&"object"==typeof r?r:{};if("string"==typeof p.type){let e="string"==typeof p.tagName?p.tagName:"string"==typeof p.name?p.name:void 0;Object.defineProperty(f,"name",{value:"node ("+r.type+(e?"<"+e+">":"")+")"})}return f;function f(){var p;let f,m,g,b=i;if((!t||u(r,c,h[h.length-1]||void 0))&&(b=Array.isArray(p=n(r,h))?p:"number"==typeof p?[a,p]:null==p?i:[p])[0]===o)return b;if("children"in r&&r.children&&r.children&&b[0]!==s)for(m=(l?r.children.length:-1)+d,g=h.concat(r);m>-1&&m<r.children.length;){if((f=e(r.children[m],m,g)())[0]===o)return f;m="number"==typeof f[1]?f[1]:m+d}return b}})(e,void 0,[])()}},72512:(e,t,n)=>{"use strict";n.d(t,{L:()=>s});var r=n(69266),i=n(77221),a=n(69611),o=n(9542);let s=r.forwardRef(function(e,t){let{render:n,className:r,style:s,id:l,...c}=e,u=(0,i.P)(),d=(0,o.e)(l);return u.useSyncedValueWithCleanup("titleElementId",d),(0,a.o)("h2",e,{ref:t,props:[{id:d},c]})})},73028:(e,t,n)=>{"use strict";let r,i,a,o,s;n.d(t,{a:()=>r6});let l=[{id:"abap",name:"ABAP",import:()=>n.e(60710).then(n.bind(n,60710))},{id:"actionscript-3",name:"ActionScript",import:()=>n.e(25203).then(n.bind(n,25203))},{id:"ada",name:"Ada",import:()=>n.e(80606).then(n.bind(n,80606))},{id:"angular-html",name:"Angular HTML",import:()=>Promise.all([n.e(95568),n.e(42759),n.e(3735),n.e(29116)]).then(n.bind(n,29116))},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.all([n.e(95568),n.e(18868),n.e(42759),n.e(3735),n.e(28476),n.e(44376)]).then(n.bind(n,31895))},{id:"apache",name:"Apache Conf",import:()=>n.e(71214).then(n.bind(n,71214))},{id:"apex",name:"Apex",import:()=>n.e(89180).then(n.bind(n,89180))},{id:"apl",name:"APL",import:()=>Promise.all([n.e(95568),n.e(42759),n.e(3735),n.e(97672),n.e(64055)]).then(n.bind(n,64055))},{id:"applescript",name:"AppleScript",import:()=>n.e(50695).then(n.bind(n,50695))},{id:"ara",name:"Ara",import:()=>n.e(2044).then(n.bind(n,2044))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>n.e(94981).then(n.bind(n,94981))},{id:"asm",name:"Assembly",import:()=>n.e(39823).then(n.bind(n,39823))},{id:"astro",name:"Astro",import:()=>Promise.all([n.e(95568),n.e(16165),n.e(70219),n.e(42759),n.e(13099)]).then(n.bind(n,13099))},{id:"awk",name:"AWK",import:()=>n.e(37605).then(n.bind(n,37605))},{id:"ballerina",name:"Ballerina",import:()=>n.e(39310).then(n.bind(n,39310))},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>n.e(60615).then(n.bind(n,60615))},{id:"beancount",name:"Beancount",import:()=>n.e(17149).then(n.bind(n,17149))},{id:"berry",name:"Berry",aliases:["be"],import:()=>n.e(19722).then(n.bind(n,19722))},{id:"bibtex",name:"BibTeX",import:()=>n.e(26402).then(n.bind(n,26402))},{id:"bicep",name:"Bicep",import:()=>n.e(14591).then(n.bind(n,14591))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:()=>n.e(17055).then(n.bind(n,17055))},{id:"blade",name:"Blade",import:()=>Promise.all([n.e(95568),n.e(42759),n.e(3735),n.e(97672),n.e(74458),n.e(9844)]).then(n.bind(n,9844))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>n.e(96361).then(n.bind(n,96361))},{id:"c",name:"C",import:()=>n.e(89129).then(n.bind(n,89129))},{id:"c3",name:"C3",import:()=>n.e(37990).then(n.bind(n,37990))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>n.e(86187).then(n.bind(n,86187))},{id:"cairo",name:"Cairo",import:()=>Promise.all([n.e(60794),n.e(29470)]).then(n.bind(n,29470))},{id:"clarity",name:"Clarity",import:()=>n.e(34194).then(n.bind(n,34194))},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>n.e(49918).then(n.bind(n,49918))},{id:"cmake",name:"CMake",import:()=>n.e(33887).then(n.bind(n,33887))},{id:"cobol",name:"COBOL",import:()=>Promise.all([n.e(95568),n.e(42759),n.e(3735),n.e(97672),n.e(42667)]).then(n.bind(n,42667))},{id:"codeowners",name:"CODEOWNERS",import:()=>n.e(88631).then(n.bind(n,88631))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>n.e(24908).then(n.bind(n,24908))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.all([n.e(95568),n.e(23420)]).then(n.bind(n,23420))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>n.e(52298).then(n.bind(n,52298))},{id:"coq",name:"Coq",import:()=>n.e(65953).then(n.bind(n,65953))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.all([n.e(90169),n.e(40841),n.e(74458),n.e(89129),n.e(76568)]).then(n.bind(n,92313))},{id:"crystal",name:"Crystal",import:()=>Promise.all([n.e(95568),n.e(42759),n.e(3735),n.e(74458),n.e(89129),n.e(72893),n.e(25508)]).then(n.bind(n,25508))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>n.e(29153).then(n.bind(n,29153))},{id:"css",name:"CSS",import:()=>n.e(42759).then(n.bind(n,42759))},{id:"csv",name:"CSV",import:()=>n.e(48474).then(n.bind(n,48474))},{id:"cue",name:"CUE",import:()=>n.e(16919).then(n.bind(n,16919))},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>n.e(35841).then(n.bind(n,35841))},{id:"d",name:"D",import:()=>n.e(58278).then(n.bind(n,58278))},{id:"dart",name:"Dart",import:()=>n.e(48103).then(n.bind(n,48103))},{id:"dax",name:"DAX",import:()=>n.e(34105).then(n.bind(n,34105))},{id:"desktop",name:"Desktop",import:()=>n.e(4750).then(n.bind(n,4750))},{id:"diff",name:"Diff",import:()=>n.e(21281).then(n.bind(n,21281))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>n.e(5088).then(n.bind(n,5088))},{id:"dotenv",name:"dotEnv",import:()=>n.e(84730).then(n.bind(n,84730))},{id:"dream-maker",name:"Dream Maker",import:()=>n.e(25364).then(n.bind(n,25364))},{id:"edge",name:"Edge",import:()=>Promise.all([n.e(95568),n.e(16165),n.e(42759),n.e(3735),n.e(44163)]).then(n.bind(n,44163))},{id:"elixir",name:"Elixir",import:()=>Promise.all([n.e(95568),n.e(42759),n.e(3735),n.e(83369)]).then(n.bind(n,83369))},{id:"elm",name:"Elm",import:()=>Promise.all([n.e(89129),n.e(87934)]).then(n.bind(n,87934))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>n.e(77072).then(n.bind(n,69574))},{id:"erb",name:"ERB",import:()=>Promise.all([n.e(95568),n.e(16165),n.e(70219),n.e(82460),n.e(90169),n.e(40841),n.e(42759),n.e(3735),n.e(97672),n.e(74458),n.e(89129),n.e(72893),n.e(25681),n.e(76371),n.e(50691)]).then(n.bind(n,50691))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>Promise.all([n.e(26699),n.e(69321)]).then(n.bind(n,69321))},{id:"fennel",name:"Fennel",import:()=>n.e(4748).then(n.bind(n,4748))},{id:"fish",name:"Fish",import:()=>n.e(71134).then(n.bind(n,71134))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>n.e(42862).then(n.bind(n,42862))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>Promise.all([n.e(99918),n.e(12818)]).then(n.bind(n,12818))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>n.e(99918).then(n.bind(n,99918))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>Promise.all([n.e(26699),n.e(57678)]).then(n.bind(n,57678))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:()=>n.e(83301).then(n.bind(n,83301))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:()=>n.e(88008).then(n.bind(n,88008))},{id:"gdshader",name:"GDShader",import:()=>n.e(22634).then(n.bind(n,253))},{id:"genie",name:"Genie",import:()=>n.e(87598).then(n.bind(n,87598))},{id:"gherkin",name:"Gherkin",import:()=>n.e(85560).then(n.bind(n,85560))},{id:"git-commit",name:"Git Commit Message",import:()=>n.e(39202).then(n.bind(n,39202))},{id:"git-rebase",name:"Git Rebase Message",import:()=>Promise.all([n.e(72893),n.e(34681)]).then(n.bind(n,34681))},{id:"gleam",name:"Gleam",import:()=>n.e(43274).then(n.bind(n,43274))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>Promise.all([n.e(95568),n.e(16165),n.e(42759),n.e(3735),n.e(11439)]).then(n.bind(n,11439))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>Promise.all([n.e(95568),n.e(16165),n.e(42759),n.e(3735),n.e(43537)]).then(n.bind(n,43537))},{id:"glsl",name:"GLSL",import:()=>Promise.all([n.e(89129),n.e(66812)]).then(n.bind(n,66812))},{id:"gn",name:"GN",import:()=>n.e(22183).then(n.bind(n,22183))},{id:"gnuplot",name:"Gnuplot",import:()=>n.e(83839).then(n.bind(n,83839))},{id:"go",name:"Go",import:()=>n.e(56558).then(n.bind(n,34177))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.all([n.e(95568),n.e(16165),n.e(70219),n.e(82460),n.e(25681)]).then(n.bind(n,25681))},{id:"groovy",name:"Groovy",import:()=>n.e(28442).then(n.bind(n,28442))},{id:"hack",name:"Hack",import:()=>Promise.all([n.e(95568),n.e(42759),n.e(3735),n.e(74458),n.e(62279)]).then(n.bind(n,62279))},{id:"haml",name:"Ruby Haml",import:()=>Promise.all([n.e(95568),n.e(42759),n.e(97030)]).then(n.bind(n,97030))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.all([n.e(95568),n.e(42759),n.e(3735),n.e(79192)]).then(n.bind(n,79192))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>n.e(28546).then(n.bind(n,28546))},{id:"haxe",name:"Haxe",import:()=>n.e(3724).then(n.bind(n,3724))},{id:"hcl",name:"HashiCorp HCL",import:()=>n.e(50319).then(n.bind(n,50319))},{id:"hjson",name:"Hjson",import:()=>n.e(8296).then(n.bind(n,8296))},{id:"hlsl",name:"HLSL",import:()=>n.e(24709).then(n.bind(n,24709))},{id:"html",name:"HTML",import:()=>Promise.all([n.e(95568),n.e(42759),n.e(3735)]).then(n.bind(n,3735))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>Promise.all([n.e(95568),n.e(42759),n.e(3735),n.e(46333)]).then(n.bind(n,46333))},{id:"http",name:"HTTP",import:()=>Promise.all([n.e(95568),n.e(16165),n.e(70219),n.e(82460),n.e(97672),n.e(72893),n.e(25681),n.e(88336)]).then(n.bind(n,88336))},{id:"hurl",name:"Hurl",import:()=>Promise.all([n.e(95568),n.e(16165),n.e(70219),n.e(82460),n.e(97672),n.e(25681),n.e(27455)]).then(n.bind(n,27455))},{id:"hxml",name:"HXML",import:()=>n.e(9035).then(n.bind(n,9035))},{id:"hy",name:"Hy",import:()=>n.e(39945).then(n.bind(n,39945))},{id:"imba",name:"Imba",import:()=>n.e(25197).then(n.bind(n,25197))},{id:"ini",name:"INI",aliases:["properties"],import:()=>n.e(46816).then(n.bind(n,46816))},{id:"java",name:"Java",import:()=>n.e(97672).then(n.bind(n,97672))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:()=>n.e(95568).then(n.bind(n,4262))},{id:"jinja",name:"Jinja",import:()=>Promise.all([n.e(95568),n.e(42759),n.e(3735),n.e(87673)]).then(n.bind(n,87673))},{id:"jison",name:"Jison",import:()=>Promise.all([n.e(95568),n.e(38143)]).then(n.bind(n,38143))},{id:"json",name:"JSON",import:()=>n.e(88934).then(n.bind(n,88934))},{id:"json5",name:"JSON5",import:()=>n.e(44401).then(n.bind(n,44401))},{id:"jsonc",name:"JSON with Comments",import:()=>n.e(39575).then(n.bind(n,39575))},{id:"jsonl",name:"JSON Lines",import:()=>n.e(61288).then(n.bind(n,61288))},{id:"jsonnet",name:"Jsonnet",import:()=>n.e(9741).then(n.bind(n,9741))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>n.e(42585).then(n.bind(n,42585))},{id:"jsx",name:"JSX",import:()=>n.e(82460).then(n.bind(n,25781))},{id:"julia",name:"Julia",aliases:["jl"],import:()=>Promise.all([n.e(95568),n.e(90169),n.e(40841),n.e(74458),n.e(89129),n.e(60794),n.e(51344)]).then(n.bind(n,90769))},{id:"just",name:"Just",import:()=>Promise.all([n.e(95568),n.e(16165),n.e(70219),n.e(82460),n.e(90169),n.e(40841),n.e(42759),n.e(3735),n.e(97672),n.e(74458),n.e(89129),n.e(72893),n.e(25681),n.e(60794),n.e(76371),n.e(3639),n.e(69882)]).then(n.bind(n,69882))},{id:"kdl",name:"KDL",import:()=>n.e(62409).then(n.bind(n,62409))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>n.e(40899).then(n.bind(n,40899))},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>n.e(2778).then(n.bind(n,2778))},{id:"latex",name:"LaTeX",import:()=>n.e(3790).then(n.bind(n,3790))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>n.e(20272).then(n.bind(n,20272))},{id:"less",name:"Less",import:()=>n.e(95575).then(n.bind(n,95575))},{id:"liquid",name:"Liquid",import:()=>Promise.all([n.e(95568),n.e(42759),n.e(3735),n.e(93632)]).then(n.bind(n,93632))},{id:"llvm",name:"LLVM IR",import:()=>n.e(61891).then(n.bind(n,61891))},{id:"log",name:"Log file",import:()=>n.e(54436).then(n.bind(n,54436))},{id:"logo",name:"Logo",import:()=>n.e(3769).then(n.bind(n,3769))},{id:"lua",name:"Lua",import:()=>Promise.all([n.e(89129),n.e(16956)]).then(n.bind(n,16956))},{id:"luau",name:"Luau",import:()=>n.e(2827).then(n.bind(n,2827))},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>n.e(73098).then(n.bind(n,73098))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>n.e(26699).then(n.bind(n,26699))},{id:"marko",name:"Marko",import:()=>Promise.all([n.e(16165),n.e(42759),n.e(28476),n.e(95575),n.e(9296)]).then(n.bind(n,9296))},{id:"matlab",name:"MATLAB",import:()=>n.e(79483).then(n.bind(n,79483))},{id:"mdc",name:"MDC",import:()=>Promise.all([n.e(95568),n.e(42759),n.e(3735),n.e(26699),n.e(22632)]).then(n.bind(n,22632))},{id:"mdx",name:"MDX",import:()=>n.e(29763).then(n.bind(n,29763))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>n.e(16311).then(n.bind(n,16311))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>n.e(50232).then(n.bind(n,50232))},{id:"mojo",name:"Mojo",import:()=>n.e(54133).then(n.bind(n,54133))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:()=>n.e(31774).then(n.bind(n,31774))},{id:"move",name:"Move",import:()=>n.e(95915).then(n.bind(n,95915))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>n.e(50412).then(n.bind(n,50412))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>n.e(73703).then(n.bind(n,73703))},{id:"nextflow-groovy",name:"nextflow-groovy",import:()=>n.e(50776).then(n.bind(n,50776))},{id:"nginx",name:"Nginx",import:()=>Promise.all([n.e(89129),n.e(39242)]).then(n.bind(n,39242))},{id:"nim",name:"Nim",import:()=>Promise.all([n.e(95568),n.e(42759),n.e(3735),n.e(97672),n.e(89129),n.e(26699),n.e(29010)]).then(n.bind(n,29010))},{id:"nix",name:"Nix",import:()=>n.e(38591).then(n.bind(n,38591))},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>n.e(36869).then(n.bind(n,36869))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>n.e(66979).then(n.bind(n,66979))},{id:"objective-cpp",name:"Objective-C++",import:()=>n.e(84698).then(n.bind(n,89187))},{id:"ocaml",name:"OCaml",import:()=>n.e(49046).then(n.bind(n,49046))},{id:"odin",name:"Odin",import:()=>n.e(14172).then(n.bind(n,14172))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:()=>n.e(39313).then(n.bind(n,39313))},{id:"pascal",name:"Pascal",import:()=>n.e(35272).then(n.bind(n,35272))},{id:"perl",name:"Perl",import:()=>Promise.all([n.e(95568),n.e(42759),n.e(3735),n.e(97672),n.e(74458),n.e(3639),n.e(10421)]).then(n.bind(n,3639))},{id:"php",name:"PHP",import:()=>Promise.all([n.e(95568),n.e(42759),n.e(3735),n.e(97672),n.e(74458),n.e(32866),n.e(32802)]).then(n.bind(n,32866))},{id:"pkl",name:"Pkl",import:()=>n.e(30127).then(n.bind(n,30127))},{id:"plsql",name:"PL/SQL",import:()=>n.e(77182).then(n.bind(n,77182))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>n.e(22999).then(n.bind(n,22999))},{id:"polar",name:"Polar",import:()=>n.e(17898).then(n.bind(n,17898))},{id:"postcss",name:"PostCSS",import:()=>n.e(30833).then(n.bind(n,30833))},{id:"powerquery",name:"PowerQuery",import:()=>n.e(21889).then(n.bind(n,21889))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>n.e(10935).then(n.bind(n,10935))},{id:"prisma",name:"Prisma",import:()=>n.e(59476).then(n.bind(n,59476))},{id:"prolog",name:"Prolog",import:()=>n.e(63449).then(n.bind(n,63449))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>n.e(74228).then(n.bind(n,74228))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.all([n.e(95568),n.e(42759),n.e(3735),n.e(93702)]).then(n.bind(n,93702))},{id:"puppet",name:"Puppet",import:()=>n.e(24610).then(n.bind(n,24610))},{id:"purescript",name:"PureScript",import:()=>n.e(20051).then(n.bind(n,20051))},{id:"python",name:"Python",aliases:["py"],import:()=>n.e(60794).then(n.bind(n,38413))},{id:"qml",name:"QML",import:()=>Promise.all([n.e(95568),n.e(14384)]).then(n.bind(n,14384))},{id:"qmldir",name:"QML Directory",import:()=>n.e(92091).then(n.bind(n,92091))},{id:"qss",name:"Qt Style Sheets",import:()=>n.e(48225).then(n.bind(n,48225))},{id:"r",name:"R",import:()=>n.e(7048).then(n.bind(n,7048))},{id:"racket",name:"Racket",import:()=>n.e(61110).then(n.bind(n,61110))},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>n.e(52807).then(n.bind(n,52807))},{id:"razor",name:"ASP.NET Razor",import:()=>Promise.all([n.e(95568),n.e(42759),n.e(3735),n.e(29153),n.e(19770)]).then(n.bind(n,19770))},{id:"reg",name:"Windows Registry Script",import:()=>n.e(56568).then(n.bind(n,56568))},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>n.e(21007).then(n.bind(n,21007))},{id:"rel",name:"Rel",import:()=>n.e(71011).then(n.bind(n,71011))},{id:"riscv",name:"RISC-V",import:()=>n.e(77347).then(n.bind(n,77347))},{id:"ron",name:"RON",import:()=>n.e(69223).then(n.bind(n,69223))},{id:"rosmsg",name:"ROS Interface",import:()=>n.e(18951).then(n.bind(n,18951))},{id:"rst",name:"reStructuredText",import:()=>Promise.all([n.e(95568),n.e(16165),n.e(70219),n.e(82460),n.e(90169),n.e(40841),n.e(42759),n.e(3735),n.e(97672),n.e(74458),n.e(89129),n.e(72893),n.e(25681),n.e(60794),n.e(76371),n.e(69009)]).then(n.bind(n,69009))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>Promise.all([n.e(95568),n.e(16165),n.e(70219),n.e(82460),n.e(90169),n.e(40841),n.e(42759),n.e(3735),n.e(97672),n.e(74458),n.e(89129),n.e(72893),n.e(25681),n.e(76371)]).then(n.bind(n,93536))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>n.e(17554).then(n.bind(n,17554))},{id:"sas",name:"SAS",import:()=>Promise.all([n.e(74458),n.e(66829)]).then(n.bind(n,66829))},{id:"sass",name:"Sass",import:()=>n.e(8450).then(n.bind(n,8450))},{id:"scala",name:"Scala",import:()=>n.e(36568).then(n.bind(n,36568))},{id:"scheme",name:"Scheme",import:()=>n.e(71337).then(n.bind(n,71337))},{id:"scss",name:"SCSS",import:()=>Promise.all([n.e(42759),n.e(28476)]).then(n.bind(n,28476))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>n.e(78379).then(n.bind(n,78379))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>n.e(83210).then(n.bind(n,83210))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>n.e(72893).then(n.bind(n,72893))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>Promise.all([n.e(72893),n.e(72598)]).then(n.bind(n,72598))},{id:"smalltalk",name:"Smalltalk",import:()=>n.e(42489).then(n.bind(n,42489))},{id:"solidity",name:"Solidity",import:()=>n.e(88159).then(n.bind(n,88159))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>Promise.all([n.e(95568),n.e(42759),n.e(3735),n.e(60457)]).then(n.bind(n,60457))},{id:"sparql",name:"SPARQL",import:()=>n.e(94631).then(n.bind(n,94631))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>n.e(19657).then(n.bind(n,19657))},{id:"sql",name:"SQL",import:()=>n.e(74458).then(n.bind(n,74458))},{id:"ssh-config",name:"SSH Config",import:()=>n.e(83817).then(n.bind(n,83817))},{id:"stata",name:"Stata",import:()=>Promise.all([n.e(74458),n.e(94697)]).then(n.bind(n,94697))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>n.e(31234).then(n.bind(n,31234))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:()=>Promise.all([n.e(95568),n.e(67151)]).then(n.bind(n,67151))},{id:"svelte",name:"Svelte",import:()=>Promise.all([n.e(95568),n.e(16165),n.e(42759),n.e(12521)]).then(n.bind(n,12521))},{id:"swift",name:"Swift",import:()=>n.e(64359).then(n.bind(n,64359))},{id:"system-verilog",name:"SystemVerilog",import:()=>n.e(40986).then(n.bind(n,40986))},{id:"systemd",name:"Systemd Units",import:()=>n.e(93247).then(n.bind(n,93247))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>n.e(10191).then(n.bind(n,10191))},{id:"tasl",name:"Tasl",import:()=>n.e(74684).then(n.bind(n,74684))},{id:"tcl",name:"Tcl",import:()=>n.e(7907).then(n.bind(n,7907))},{id:"templ",name:"Templ",import:()=>Promise.all([n.e(95568),n.e(42759),n.e(56558),n.e(35260)]).then(n.bind(n,35260))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>n.e(45570).then(n.bind(n,45570))},{id:"tex",name:"TeX",import:()=>n.e(9469).then(n.bind(n,9469))},{id:"toml",name:"TOML",import:()=>n.e(95648).then(n.bind(n,95648))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>Promise.all([n.e(95568),n.e(16165),n.e(42759),n.e(3735),n.e(97672),n.e(74458),n.e(89129),n.e(53367)]).then(n.bind(n,53367))},{id:"tsv",name:"TSV",import:()=>n.e(51561).then(n.bind(n,51561))},{id:"tsx",name:"TSX",import:()=>n.e(70219).then(n.bind(n,63623))},{id:"turtle",name:"Turtle",import:()=>n.e(73554).then(n.bind(n,73554))},{id:"twig",name:"Twig",import:()=>Promise.all([n.e(95568),n.e(16165),n.e(70219),n.e(82460),n.e(90169),n.e(40841),n.e(42759),n.e(3735),n.e(97672),n.e(74458),n.e(89129),n.e(72893),n.e(25681),n.e(60794),n.e(76371),n.e(28476),n.e(32866),n.e(73775)]).then(n.bind(n,73775))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:()=>n.e(16165).then(n.bind(n,59417))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>n.e(20677).then(n.bind(n,20677))},{id:"typst",name:"Typst",aliases:["typ"],import:()=>n.e(896).then(n.bind(n,896))},{id:"v",name:"V",import:()=>n.e(61788).then(n.bind(n,61788))},{id:"vala",name:"Vala",import:()=>n.e(41858).then(n.bind(n,41858))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>n.e(41804).then(n.bind(n,41804))},{id:"verilog",name:"Verilog",import:()=>n.e(55048).then(n.bind(n,55048))},{id:"vhdl",name:"VHDL",import:()=>n.e(39430).then(n.bind(n,39430))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>n.e(19644).then(n.bind(n,19644))},{id:"vue",name:"Vue",import:()=>Promise.all([n.e(95568),n.e(16165),n.e(42759),n.e(3735),n.e(35413)]).then(n.bind(n,35413))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.all([n.e(95568),n.e(53050)]).then(n.bind(n,53050))},{id:"vue-vine",name:"Vue Vine",import:()=>Promise.all([n.e(95568),n.e(63459),n.e(42759),n.e(28476),n.e(95575),n.e(69970)]).then(n.bind(n,21361))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>n.e(54106).then(n.bind(n,54106))},{id:"wasm",name:"WebAssembly",import:()=>n.e(54440).then(n.bind(n,54440))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>n.e(88790).then(n.bind(n,88790))},{id:"wgsl",name:"WGSL",import:()=>n.e(19315).then(n.bind(n,19315))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>n.e(99761).then(n.bind(n,99761))},{id:"wit",name:"WebAssembly Interface Types",import:()=>n.e(95862).then(n.bind(n,95862))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>n.e(4725).then(n.bind(n,64626))},{id:"xml",name:"XML",import:()=>Promise.all([n.e(97672),n.e(55183)]).then(n.bind(n,10421))},{id:"xsl",name:"XSL",import:()=>Promise.all([n.e(97672),n.e(23311)]).then(n.bind(n,23311))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>n.e(21877).then(n.bind(n,21877))},{id:"zenscript",name:"ZenScript",import:()=>n.e(49212).then(n.bind(n,49212))},{id:"zig",name:"Zig",import:()=>n.e(42580).then(n.bind(n,42580))}],c=Object.fromEntries(l.map(e=>[e.id,e.import])),u=Object.fromEntries(l.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),d={...c,...u};class h extends Error{constructor(e){super(e),this.name="ShikiError"}}var p,f,m,g=n(21966);function b(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}var E=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,y=class{static hasCaptures(e){return null!==e&&(E.lastIndex=0,E.test(e))}static replaceCaptures(e,t,n){return e.replace(E,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(a){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function T(e,t){if(null===e&&null===t)return 0;if(!e)return -1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){var i,a;let n=(i=e[r],i<(a=t[r])?-1:+(i>a));if(0!==n)return n}return 0}return n-r}function v(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function k(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var S=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},A=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(function(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i,a=t[e];if(!a.settings)continue;if("string"==typeof a.scope){let e=a.scope;i=(e=(e=e.replace(/^[,]+/,"")).replace(/[,]+$/,"")).split(",")}else i=Array.isArray(a.scope)?a.scope:[""];let o=-1;if("string"==typeof a.settings.fontStyle){o=0;let e=a.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":o|=1;break;case"bold":o|=2;break;case"underline":o|=4;break;case"strikethrough":o|=8}}let s=null;"string"==typeof a.settings.foreground&&v(a.settings.foreground)&&(s=a.settings.foreground);let l=null;"string"==typeof a.settings.background&&v(a.settings.background)&&(l=a.settings.background);for(let t=0,a=i.length;t<a;t++){let a=i[t].trim().split(" "),c=a[a.length-1],u=null;a.length>1&&(u=a.slice(0,a.length-1)).reverse(),n[r++]=new x(c,u,e,o,s,l)}}return n}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort((e,t)=>{var n,r;let i=(n=e.scope,n<(r=t.scope)?-1:+(n>r));return 0!==i||0!==(i=T(e.parentScopes,t.parentScopes))?i:e.index-t.index});let n=0,r="#000000",i="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(i=t.background)}let a=new N(t),o=new _(n,a.getId(r),a.getId(i)),s=new O(new R(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new A(a,o,s)}(e,t)}_cachedMatchRoot=new S(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>(function(e,t){if(0===t.length)return!0;for(let i=0;i<t.length;i++){var n,r;let a=t[i],o=!1;if(">"===a){if(i===t.length-1)return!1;a=t[++i],o=!0}for(;e&&(n=e.scopeName,!((r=a)===n||n.startsWith(r)&&"."===n[r.length]));){if(o)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return n?new _(n.fontStyle,n.foreground,n.background):null}},C=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}},_=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}},x=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},w=((p=w||{})[p.NotSet=-1]="NotSet",p[p.None=0]="None",p[p.Italic=1]="Italic",p[p.Bold=2]="Bold",p[p.Underline=4]="Underline",p[p.Strikethrough=8]="Strikethrough",p),N=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},I=Object.freeze([]),R=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||I,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==r&&(this.background=r)}},O=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;">"===e.parentScopes[n]&&n++,">"===t.parentScopes[r]&&r++,!(n>=e.parentScopes.length)&&!(r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(0!==i)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(""!==t){let e,n,r=t.indexOf(".");if(-1===r?(e=t,n=""):(e=t.substring(0,r),n=t.substring(r+1)),this._children.hasOwnProperty(e))return this._children[e].match(n)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){let s,l,c;if(""===n)return void this._doInsertHere(t,r,i,a,o);let u=n.indexOf(".");-1===u?(s=n,l=""):(s=n.substring(0,u),l=n.substring(u+1)),this._children.hasOwnProperty(s)?c=this._children[s]:(c=new e(this._mainRule.clone(),R.cloneArr(this._rulesWithParentScopes)),this._children[s]=c),c.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(null===t)return void this._mainRule.acceptOverwrite(e,n,r,i);for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(0===T(o.parentScopes,t))return void o.acceptOverwrite(e,n,r,i)}-1===n&&(n=this._mainRule.fontStyle),0===r&&(r=this._mainRule.foreground),0===i&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new R(e,t,n,r,i))}},D=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:e.getForeground(t),background:e.getBackground(t)})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(0xff8000&e)>>>15}static getBackground(e){return(0xff000000&e)>>>24}static set(t,n,r,i,a,o,s){let l=e.getLanguageId(t),c=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),h=e.getForeground(t),p=e.getBackground(t);return 0!==n&&(l=n),8!==r&&(c=r),null!==i&&(u=+!!i),-1!==a&&(d=a),0!==o&&(h=o),0!==s&&(p=s),(l|c<<8|u<<10|d<<11|h<<15|p<<24)>>>0}};function P(e,t){var n;let r,i,a=[],o=(n=e,i=(r=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(n),{next:()=>{if(!i)return null;let e=i[0];return i=r.exec(n),e}}),s=o.next();for(;null!==s;){let e=0;if(2===s.length&&":"===s.charAt(1)){switch(s.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${s} in scope selector`)}s=o.next()}let t=c();if(a.push({matcher:t,priority:e}),","!==s)break;s=o.next()}return a;function l(){if("-"===s){s=o.next();let e=l();return t=>!!e&&!e(t)}if("("===s){s=o.next();let e=function(){let e=[],t=c();for(;t&&(e.push(t),"|"===s||","===s);){do s=o.next();while("|"===s||","===s);t=c()}return t=>e.some(e=>e(t))}();return")"===s&&(s=o.next()),e}if(L(s)){let e=[];do e.push(s),s=o.next();while(L(s));return n=>t(e,n)}return null}function c(){let e=[],t=l();for(;t;)e.push(t),t=l();return t=>e.every(e=>e(t))}}function L(e){return!!e&&!!e.match(/[\w\.:]+/)}var M=((f=M||{})[f.None=0]="None",f[f.NotBeginString=1]="NotBeginString",f[f.NotEndString=2]="NotEndString",f[f.NotBeginPosition=4]="NotBeginPosition",f[f.DebugCall=8]="DebugCall",f);function F(e){"function"==typeof e.dispose&&e.dispose()}var B=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},H=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},U=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},j=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new B(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new U;for(let n of e)!function(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof B?z({baseGrammar:a,selfGrammar:i},r):G(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new B(e))}(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof B){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function G(e,t,n){t.repository&&t.repository[e]&&$([t.repository[e]],t,n)}function z(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&$(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&$(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function $(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?b({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&$(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=X(i);switch(a.kind){case 0:z({...t,selfGrammar:t.baseGrammar},n);break;case 1:z(t,n);break;case 2:G(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let o=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(o){let r={baseGrammar:t.baseGrammar,selfGrammar:o,repository:e};4===a.kind?G(a.ruleName,r,n):z(r,n)}else 4===a.kind?n.add(new H(a.scopeName,a.ruleName)):n.add(new B(a.scopeName))}}}var W=class{kind=0},q=class{kind=1},V=class{constructor(e){this.ruleName=e}kind=2},Y=class{constructor(e){this.scopeName=e}kind=3},K=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function X(e){if("$base"===e)return new W;if("$self"===e)return new q;let t=e.indexOf("#");return -1===t?new Y(e):0===t?new V(e.substring(1)):new K(e.substring(0,t),e.substring(t+1))}var Q=/\\(\d+)/,Z=/\\(\d+)/g;Symbol("RuleId");var J=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=y.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=y.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${function e(t){let n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(~n+1)}(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?y.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?y.replaceCaptures(this._contentName,e,t):this._contentName}},ee=class extends J{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error("Not supported!")}compile(e,t){throw Error("Not supported!")}compileAG(e,t,n,r){throw Error("Not supported!")}},et=class extends J{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new eo(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new es,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},en=class extends J{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new es,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},er=class extends J{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,l,c){super(e,t,n,r),this._begin=new eo(i,this.id),this.beginCaptures=a,this._end=new eo(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){for(let t of(this._cachedCompiledPatterns=new es,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},ei=class extends J{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,l){super(e,t,n,r),this._begin=new eo(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new eo(o,-2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)for(let t of(this._cachedCompiledPatterns=new es,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new es,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}},ea=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new ee(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new et(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(void 0===t.begin){t.repository&&(r=b({},r,t.repository));let i=t.patterns;return void 0===i&&t.include&&(i=[{include:t.include}]),new en(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new ei(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new er(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if("$vscodeTextmateLocation"===e)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if("$vscodeTextmateLocation"===a)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=X(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,l=4===t.kind?t.ruleName:null,c=n.getExternalGrammar(a,r);if(c)if(l){let t=c.repository[l];t&&(s=e.getCompiledRuleId(t,n,c.repository))}else s=e.getCompiledRuleId(c.repository.$self,n,c.repository)}}else s=e.getCompiledRuleId(o,n,r);if(-1!==s){let e=n.getRule(s),t=!1;if((e instanceof en||e instanceof er||e instanceof ei)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},eo=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&"string"==typeof e){const t=e.length;let n=0,r=[],i=!1;for(let a=0;a<t;a++)if("\\"===e.charAt(a)&&a+1<t){const t=e.charAt(a+1);"z"===t?(r.push(e.substring(n,a)),r.push("$(?!\\n)(?<!\\n)"),n=a+2):("A"===t||"G"===t)&&(i=!0),a++}this.hasAnchor=i,0===n?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,"string"==typeof this.source?this.hasBackReferences=Q.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let n=t.map(t=>e.substring(t.start,t.end));return Z.lastIndex=0,this.source.replace(Z,(e,t)=>k(n[parseInt(t,10)]||""))}_buildAnchorCache(){let e,t,n,r;if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let i=[],a=[],o=[],s=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),i[e]=n,a[e]=n,o[e]=n,s[e]=n,"\\"===n&&e+1<t&&("A"===(r=this.source.charAt(e+1))?(i[e+1]="￿",a[e+1]="￿",o[e+1]="A",s[e+1]="A"):"G"===r?(i[e+1]="￿",a[e+1]="G",o[e+1]="￿",s[e+1]="G"):(i[e+1]=r,a[e+1]=r,o[e+1]=r,s[e+1]=r),e++);return{A0_G0:i.join(""),A0_G1:a.join(""),A1_G0:o.join(""),A1_G1:s.join("")}}resolveAnchors(e,t){if(!this.hasAnchor||!this._anchorCache||"string"!=typeof this.source)return this.source;if(e)if(t)return this._anchorCache.A1_G1;else return this._anchorCache.A1_G0;return t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},es=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new el(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){if(!this._hasAnchors)return this.compile(e);if(t)if(n)return this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1;else return this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0;return n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0)}_resolveAnchors(e,t,n){return new el(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},el=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},ec=class{constructor(e,t){this.languageId=e,this.tokenType=t}},eu=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new ec(e,8),this._embeddedLanguagesMatcher=new ed(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return null===t?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new ec(0,0);_getBasicScopeAttributes=new S(e=>new ec(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},ed=class{values;scopesRegExp;constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([e,t])=>k(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};void 0!==g&&g.env.VSCODE_TEXTMATE_DEBUG;var eh=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function ep(e,t,n,r,i,a,o,s){let l=t.content.length,c=!1,u=-1;if(o){let o=function(e,t,n,r,i,a){let o=i.beginRuleCapturedEOL?0:-1,s=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof ei&&s.push({rule:n,stack:t})}for(let p=s.pop();p;p=s.pop()){var l,c,u,d,h;let{ruleScanner:s,findOptions:f}=(l=p.rule,c=e,u=p.stack.endRule,d=n,h=r===o,{ruleScanner:l.compileWhileAG(c,u,d,h),findOptions:0}),m=s.findNextMatchSync(t,r,f);if(m){if(-2!==m.ruleId){i=p.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(a.produce(p.stack,m.captureIndices[0].start),em(e,t,n,p.stack,a,p.rule.whileCaptures,m.captureIndices),a.produce(p.stack,m.captureIndices[0].end),o=m.captureIndices[0].end,m.captureIndices[0].end>r&&(r=m.captureIndices[0].end,n=!1))}else{i=p.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}(e,t,n,r,i,a);i=o.stack,r=o.linePos,n=o.isFirstLine,u=o.anchorPosition}let d=Date.now();for(;!c;){if(0!==s&&Date.now()-d>s)return new eh(i,!0);!function(){let o=function(e,t,n,r,i,a){let o=function(e,t,n,r,i,a){let{ruleScanner:o,findOptions:s}=ef(i.getRule(e),e,i.endRule,n,r===a),l=o.findNextMatchSync(t,r,s);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}(e,t,n,r,i,a),s=e.getInjections();if(0===s.length)return o;let l=function(e,t,n,r,i,a,o){let s,l=Number.MAX_VALUE,c=null,u=0,d=a.contentNameScopesList.getScopeNames();for(let a=0,h=e.length;a<h;a++){let h=e[a];if(!h.matcher(d))continue;let{ruleScanner:p,findOptions:f}=ef(t.getRule(h.ruleId),t,null,r,i===o),m=p.findNextMatchSync(n,i,f);if(!m)continue;let g=m.captureIndices[0].start;if(!(g>=l)&&(l=g,c=m.captureIndices,s=m.ruleId,u=h.priority,l===i))break}return c?{priorityMatch:-1===u,captureIndices:c,matchedRuleId:s}:null}(s,e,t,n,r,i,a);if(!l)return o;if(!o)return l;let c=o.captureIndices[0].start,u=l.captureIndices[0].start;return u<c||l.priorityMatch&&u===c?l:o}(e,t,n,r,i,u);if(!o){a.produce(i,l),c=!0;return}let s=o.captureIndices,d=o.matchedRuleId,h=!!s&&s.length>0&&s[0].end>r;if(-1===d){let o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),em(e,t,n,i,a,o.endCaptures,s),a.produce(i,s[0].end);let d=i;if(i=i.parent,u=d.getAnchorPos(),!h&&d.getEnterPos()===r){i=d,a.produce(i,l),c=!0;return}}else{let o=e.getRule(d);a.produce(i,s[0].start);let p=i,f=o.getName(t.content,s),m=i.contentNameScopesList.pushAttributed(f,e);if(i=i.push(d,r,u,s[0].end===l,null,m,m),o instanceof er){em(e,t,n,i,a,o.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let r=o.getContentName(t.content,s),d=m.pushAttributed(r,e);if(i=i.withContentNameScopesList(d),o.endHasBackReferences&&(i=i.withEndRule(o.getEndWithResolvedBackReferences(t.content,s))),!h&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),c=!0;return}}else if(o instanceof ei){em(e,t,n,i,a,o.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let r=o.getContentName(t.content,s),d=m.pushAttributed(r,e);if(i=i.withContentNameScopesList(d),o.whileHasBackReferences&&(i=i.withEndRule(o.getWhileWithResolvedBackReferences(t.content,s))),!h&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),c=!0;return}}else if(em(e,t,n,i,a,o.captures,s),a.produce(i,s[0].end),i=i.pop(),!h){i=i.safePop(),a.produce(i,l),c=!0;return}}s[0].end>r&&(r=s[0].end,n=!1)}()}return new eh(i,!1)}function ef(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function em(e,t,n,r,i,a,o){if(0===a.length)return;let s=t.content,l=Math.min(a.length,o.length),c=[],u=o[0].end;for(let t=0;t<l;t++){let l=a[t];if(null===l)continue;let d=o[t];if(0===d.length)continue;if(d.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=d.start;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?i.produceFromScopes(c[c.length-1].scopes,d.start):i.produce(r,d.start),l.retokenizeCapturedWithRuleId){let t=l.getName(s,o),a=r.contentNameScopesList.pushAttributed(t,e),c=l.getContentName(s,o),u=a.pushAttributed(c,e),h=r.push(l.retokenizeCapturedWithRuleId,d.start,-1,!1,null,a,u),p=e.createOnigString(s.substring(0,d.end));ep(e,p,n&&0===d.start,d.start,h,i,!1,0),F(p);continue}let h=l.getName(s,o);if(null!==h){let t=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(h,e);c.push(new eg(t,d.end))}}for(;c.length>0;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var eg=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function eb(e,t,n,r,i){let a=P(t,eE),o=ea.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:o,grammar:i,priority:n.priority})}function eE(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(function(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}(t[r],e))return n=r+1,!0;return!1})}var ey=class{constructor(e,t,n,r,i,a,o,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new eu(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=eT(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const e of Object.keys(i))for(const t of P(e,eE))this._tokenTypeMatchers.push({matcher:t.matcher,type:i[e]})}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e=[],t=this._rootScopeName,n=({lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)}).lookup(t);if(n){let r=n.injections;if(r)for(let t in r)eb(e,t,r[t],this,n);let i=this._grammarRepository.injections(t);i&&i.forEach(t=>{let n=this.getExternalGrammar(t);if(n){let t=n.injectionSelector;t&&eb(e,t,n,this,n)}})}return e.sort((e,t)=>e.priority-t.priority),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=eT(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){let r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){let i;if(-1===this._rootId&&(this._rootId=ea.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==ek.NULL)i=!1,t.reset();else{let e;i=!0;let n=this._basicScopeAttributesProvider.getDefaultAttributes(),r=this.themeProvider.getDefaults(),a=D.set(0,n.languageId,n.tokenType,null,r.fontStyle,r.foregroundId,r.backgroundId),o=this.getRule(this._rootId).getName(null,null);e=o?ev.createRootAndLookUpScopeName(o,a,this):ev.createRoot("unknown",a),t=new ek(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let a=this.createOnigString(e),o=a.content.length,s=new eA(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=ep(this,a,i,0,t,s,!0,r);return F(a),{lineLength:o,lineTokens:s,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function eT(e,t){return(e=function e(t){return Array.isArray(t)?function(t){let n=[];for(let r=0,i=t.length;r<i;r++)n[r]=e(t[r]);return n}(t):t instanceof RegExp?t:"object"==typeof t?function(t){let n={};for(let r in t)n[r]=e(t[r]);return n}(t):t}(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var ev=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(let t of n)r=new e(r,i=C.push(i,t.scopeNames),t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new C(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new C(null,t),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(n,i,o);return new e(null,a,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return e.equals(this,t)}static equals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return null!==n&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),D.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(null===t)return this;if(-1===t.indexOf(" "))return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(t.tokenAttributes,i,o);return new e(t,a,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},ek=class e{constructor(e,t,n,r,i,a,o,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return null!==t&&e._equals(this,t)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&ev.equals(e.contentNameScopesList,t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,o,s){return new e(this,t,n,r,i,a,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let r=ev.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,ev.fromExtension(r,n.contentNameScopesList))}},eS=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):P(e,eE).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>P(e,eE).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},eA=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=D.set(n,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=D.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},eC=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,new ey(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},e_=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new eC(A.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(A.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new eS(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new j(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}},ex=ek.NULL,ew=n(58771),eN=n(55947),eI=n(40156);let eR=/["&'<>`]/g,eO=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,eD=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,eP=/[|\\{}()[\]^$+*?.]/g,eL=new WeakMap,eM=/[\dA-Fa-f]/,eF=/\d/,eB=["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"],eH={nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",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:"€"},eU=["cent","copy","divide","gt","lt","not","para","times"],ej={}.hasOwnProperty,eG={};for(r in eH)ej.call(eH,r)&&(eG[eH[r]]=r);let ez=/[^\dA-Za-z]/;function e$(e,t,n){var r,i;let a,o,s=(r=n.omitOptionalSemicolons,a="&#x"+e.toString(16).toUpperCase(),r&&t&&!eM.test(String.fromCharCode(t))?a:a+";");if((n.useNamedReferences||n.useShortestReferences)&&(o=function(e,t,n,r){let i=String.fromCharCode(e);if(ej.call(eG,i)){let e=eG[i],a="&"+e;return n&&eB.includes(e)&&!eU.includes(e)&&(!r||t&&61!==t&&ez.test(String.fromCharCode(t)))?a:a+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!o)&&n.useShortestReferences){let r,a=(i=n.omitOptionalSemicolons,r="&#"+String(e),i&&t&&!eF.test(String.fromCharCode(t))?r:r+";");a.length<s.length&&(s=a)}return o&&(!n.useShortestReferences||o.length<s.length)?o:s}function eW(e,t){let n;var r,i=e,a=Object.assign({format:e$},t);if(i=i.replace(a.subset?(r=a.subset,(n=eL.get(r))||(n=function(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(eP,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(r),eL.set(r,n)),n):eR,o),a.subset||a.escapeOnly)return i;return i.replace(eO,function(e,t,n){return a.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,n.charCodeAt(t+2),a)}).replace(eD,o);function o(e,t,n){return a.format(e.charCodeAt(0),n.charCodeAt(t+1),a)}}let eq=/^>|^->|<!--|-->|--!>|<!-$/g,eV=[">"],eY=["<",">"];var eK=n(62275),eX=n(38105),eQ=n(64752),eZ=n(13766),eJ=n(54667);let e0=e5(1),e1=e5(-1),e2=[];function e5(e){return function(t,n,r){let i=t?t.children:e2,a=(n||0)+e,o=i[a];if(!r)for(;o&&(0,eJ.m)(o);)a+=e,o=i[a];return o}}let e6={}.hasOwnProperty;function e9(e){return function(t,n,r){return e6.call(e,t.tagName)&&e[t.tagName](t,n,r)}}let e3=e9({body:function(e,t,n){let r=e0(n,t);return!r||"comment"!==r.type},caption:e4,colgroup:e4,dd:function(e,t,n){let r=e0(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){let r=e0(n,t);return!!(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:e4,html:function(e,t,n){let r=e0(n,t);return!r||"comment"!==r.type},li:function(e,t,n){let r=e0(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){let r=e0(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){let r=e0(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){let r=e0(n,t);return r?"element"===r.type&&("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"===r.tagName):!n||"element"!==n.type||"a"!==n.tagName&&"audio"!==n.tagName&&"del"!==n.tagName&&"ins"!==n.tagName&&"map"!==n.tagName&&"noscript"!==n.tagName&&"video"!==n.tagName},rp:e7,rt:e7,tbody:function(e,t,n){let r=e0(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:e8,tfoot:function(e,t,n){return!e0(n,t)},th:e8,thead:function(e,t,n){let r=e0(n,t);return!!(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){let r=e0(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});function e4(e,t,n){let r=e0(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&(0,eJ.m)(r.value.charAt(0)))}function e7(e,t,n){let r=e0(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function e8(e,t,n){let r=e0(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}let te=e9({body:function(e){let t=e0(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&(0,eJ.m)(t.value.charAt(0)))&&("element"!==t.type||"meta"!==t.tagName&&"link"!==t.tagName&&"script"!==t.tagName&&"style"!==t.tagName&&"template"!==t.tagName)},colgroup:function(e,t,n){let r=e1(n,t),i=e0(e,-1,!0);return!(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&e3(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"col"===i.tagName)},head:function(e){let t=new Set;for(let n of e.children)if("element"===n.type&&("base"===n.tagName||"title"===n.tagName)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||"element"===n.type},html:function(e){let t=e0(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){let r=e1(n,t),i=e0(e,-1);return!(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&e3(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"tr"===i.tagName)}}),tt={name:[[" \n\f\r &/=>".split("")," \n\f\r \"&'/=>`".split("")],["\0 \n\f\r \"&'/<=>".split(""),"\0 \n\f\r \"&'/<=>`".split("")]],unquoted:[[" \n\f\r &>".split(""),"\0 \n\f\r \"&'<=>`".split("")],["\0 \n\f\r \"&'<=>`".split(""),"\0 \n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]},tn=["<","&"];function tr(e,t,n,r){return n&&"element"===n.type&&("script"===n.tagName||"style"===n.tagName)?e.value:eW(e.value,Object.assign({},r.settings.characterReferences,{subset:tn}))}let ti=(0,eI.A)("type",{invalid:function(e){throw Error("Expected node, not `"+e+"`")},unknown:function(e){throw Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,n,r){return r.settings.bogusComments?"<?"+eW(e.value,Object.assign({},r.settings.characterReferences,{subset:eV}))+">":"\x3c!--"+e.value.replace(eq,function(e){return eW(e,Object.assign({},r.settings.characterReferences,{subset:eY}))})+"--\x3e"},doctype:function(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,n,r){let i,a=r.schema,o="svg"!==a.space&&r.settings.omitOptionalTags,s="svg"===a.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),l=[];"html"===a.space&&"svg"===e.tagName&&(r.schema=eN.JW);let c=function(e,t){let n,r=[],i=-1;if(t){for(n in t)if(null!==t[n]&&void 0!==t[n]){let i=function(e,t,n){let r,i=(0,eQ.I)(e.schema,t),a=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,o=+!e.settings.allowDangerousCharacters,s=e.quote;if(i.overloadedBoolean&&(n===i.attribute||""===n)?n=!0:(i.boolean||i.overloadedBoolean)&&("string"!=typeof n||n===i.attribute||""===n)&&(n=!!n),null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";let l=eW(i.attribute,Object.assign({},e.settings.characterReferences,{subset:tt.name[a][o]}));return!0===n||(n=Array.isArray(n)?(i.commaSeparated?eX.A:eZ.A)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(r=eW(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:tt.unquoted[a][o]}))),r!==n&&(e.settings.quoteSmart&&(0,eK.D)(n,s)>(0,eK.D)(n,e.alternative)&&(s=e.alternative),r=s+eW(n,Object.assign({},e.settings.characterReferences,{subset:("'"===s?tt.single:tt.double)[a][o],attribute:!0}))+s),l+(r?"="+r:r))}(e,n,t[n]);i&&r.push(i)}}for(;++i<r.length;){let t=e.settings.tightAttributes?r[i].charAt(r[i].length-1):void 0;i!==r.length-1&&'"'!==t&&"'"!==t&&(r[i]+=" ")}return r.join("")}(r,e.properties),u=r.all("html"===a.space&&"template"===e.tagName?e.content:e);return r.schema=a,u&&(s=!1),!c&&o&&te(e,t,n)||(l.push("<",e.tagName,c?" "+c:""),s&&("svg"===a.space||r.settings.closeSelfClosing)&&(i=c.charAt(c.length-1),(!r.settings.tightSelfClosing||"/"===i||i&&'"'!==i&&"'"!==i)&&l.push(" "),l.push("/")),l.push(">")),l.push(u),s||o&&e3(e,t,n)||l.push("</"+e.tagName+">"),l.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:tr(e,t,n,r)},root:function(e,t,n,r){return r.all(e)},text:tr}}),ta={},to={},ts=[];function tl(e,t,n){return ti(e,t,n,this)}function tc(e){let t=[],n=e&&e.children||ts,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function tu(e,t){let n="string"==typeof e?{}:{...e.colorReplacements},r="string"==typeof e?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))"string"==typeof i?n[e]=i:e===r&&Object.assign(n,i);return n}function td(e,t){return e&&t?.[e?.toLowerCase()]||e}async function th(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function tp(e){return!e||["plaintext","txt","text","plain"].includes(e)}function tf(e){return"ansi"===e||tp(e)}function tm(e){return"none"===e}function tg(e,t){if(!t)return e;for(let n of(e.properties||={},e.properties.class||=[],"string"==typeof e.properties.class&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]),Array.isArray(t)?t:t.split(/\s+/g)))n&&!e.properties.class.includes(n)&&e.properties.class.push(n);return e}function tb(e,t=!1){if(0===e.length)return[["",0]];let n=e.split(/(\r?\n)/g),r=0,i=[];for(let e=0;e<n.length;e+=2){let a=t?n[e]+(n[e+1]||""):n[e];i.push([a,r]),r+=n[e].length,r+=n[e+1]?.length||0}return i}let tE="light-dark()",ty=["color","background-color"];function tT(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&w.Italic&&(t["font-style"]="italic"),e.fontStyle&w.Bold&&(t["font-weight"]="bold");let n=[];e.fontStyle&w.Underline&&n.push("underline"),e.fontStyle&w.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function tv(e){return"string"==typeof e?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}let tk=new WeakMap;function tS(e,t){tk.set(e,t)}function tA(e){return tk.get(e)}class tC{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,t){return new tC(Object.fromEntries((Array.isArray(t)?t:[t]).map(e=>[e,ex])),e)}constructor(...e){if(2===e.length){const[t,n]=e;this.lang=n,this._stacks=t}else{const[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){var t;let n,r;return t=this._stacks[e],n=[],r=new Set,!function e(t){if(r.has(t))return;r.add(t);let i=t?.nameScopesList?.scopeName;i&&n.push(i),t.parent&&e(t.parent)}(t),n}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}let t_=[function(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){var n;let r,i=function(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new h(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...a.indexToPos(e),offset:e}}{let t=a.lines[e.line];if(void 0===t)throw new h(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${a.lines.length}`);let n=e.character;if(n<0&&(n=t.length+n),n<0||n>t.length)throw new h(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:n,offset:a.posToIndex(e.line,n)}}},a={lines:r=tb(n=t.source,!0).map(([e])=>e),indexToPos:function(e){if(e===n.length)return{line:r.length-1,character:r[r.length-1].length};let t=e,i=0;for(let e of r){if(t<e.length)break;t-=e.length,i++}return{line:i,character:t}},posToIndex:function(e,t){let n=0;for(let t=0;t<e;t++)n+=r[t].length;return n+t}},o=(t.options.decorations||[]).map(e=>({...e,start:i(e.start),end:i(e.end)}));(function(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new h(`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 h(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}})(o),e.set(t.meta,{decorations:o,converter:a,source:t.source})}return e.get(t.meta)}return{name:"shiki:decorations",tokens(e){let n;if(!this.options.decorations?.length)return;let r=t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]);return(n=Array.from(r instanceof Set?r:new Set(r)).sort((e,t)=>e-t)).length?e.map(e=>e.flatMap(e=>{let t=n.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);if(!t.length)return e;let r=0,i=[];for(let n of t)n>r&&i.push({...e,content:e.content.slice(r,n),offset:e.offset+r}),r=n;return r<e.content.length&&i.push({...e,content:e.content.slice(r),offset:e.offset+r}),i})):e},code(e){if(!this.options.decorations?.length)return;let n=t(this),r=Array.from(e.children).filter(e=>"element"===e.type&&"span"===e.tagName);if(r.length!==n.converter.lines.length)throw new h(`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 o=r[e],s="",l=-1,c=-1;if(0===t&&(l=0),0===n&&(c=0),n===1/0&&(c=o.children.length),-1===l||-1===c)for(let e=0;e<o.children.length;e++)s+=function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""}(o.children[e]),-1===l&&s.length===t&&(l=e+1),-1===c&&s.length===n&&(c=e+1);if(-1===l)throw new h(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(-1===c)throw new h(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let u=o.children.slice(l,c);if(i.alwaysWrap||u.length!==o.children.length)if(i.alwaysWrap||1!==u.length||"element"!==u[0].type){let e={type:"element",tagName:"span",properties:{},children:u};a(e,i,"wrapper"),o.children.splice(l,u.length,e)}else a(u[0],i,"token");else a(o,i,"line")}function a(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&&tg(e,t.properties.class),e=i(e,n)||e}let o=[];for(let e of n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset)){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 i=t.line+1;i<n.line;i++)o.unshift(()=>{var t;r[t=i]=a(r[t],e,"line")});i(n.line,0,n.character,e)}}o.forEach(e=>e())}}}()];function tx(e){let t=function(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}}(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...t_]}var tw=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],tN={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function tI(e){let t=e.shift();if("2"===t){let t=e.splice(0,3).map(e=>Number.parseInt(e));if(3!==t.length||t.some(e=>Number.isNaN(e)))return;return{type:"rgb",rgb:t}}if("5"===t){let t=e.shift();if(t)return{type:"table",index:Number(t)}}}var tR={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"};let tO={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 tD(e,t,n={}){var r,i;let a,o,{theme:s=e.getLoadedThemes()[0]}=n,l=e.resolveLangAlias(n.lang||"text");if(tp(l)||tm(s))return tb(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:c,colorMap:u}=e.setTheme(s);if("ansi"===l){let e,r,i,a,o,s,l;return e=tu(c,n),r=tb(t),i=function(e=tR){let t;function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join("")}`}return{value:function(r){switch(r.type){case"named":return e[r.name];case"rgb":return n(r.rgb);case"table":var i;return i=r.index,function(){if(t)return t;t=[];for(let n=0;n<tw.length;n++)t.push(e[tw[n]]);let r=[0,95,135,175,215,255];for(let e=0;e<6;e++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)t.push(n([r[e],r[i],r[a]]));let i=8;for(let e=0;e<24;e++,i+=10)t.push(n([i,i,i]));return t}()[i]}}}}(Object.fromEntries(tw.map(e=>{let t=`terminal.ansi${e[0].toUpperCase()}${e.substring(1)}`;return[e,c.colors?.[t]||tO[e]]}))),a=null,o=null,s=new Set,l={parse(e){let t=[],n=0;do{let r=function(e,t){let n=e.indexOf("\x1b",t);if(-1!==n&&"["===e[n+1]){let t=e.indexOf("m",n);if(-1!==t)return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}(e,n),i=r.sequence?e.substring(n,r.startPosition):e.substring(n);if(i.length>0&&t.push({value:i,foreground:a,background:o,decorations:new Set(s)}),r.sequence){let e=function(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r))if(0===r)t.push({type:"resetAll"});else if(r<=9)tN[r]&&t.push({type:"setDecoration",value:tN[r]});else if(r<=29){let e=tN[r-20];e&&(t.push({type:"resetDecoration",value:e}),"dim"===e&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:tw[r-30]}});else if(38===r){let n=tI(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===r)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:tw[r-40]}});else if(48===r){let n=tI(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===r?t.push({type:"resetBackgroundColor"}):53===r?t.push({type:"setDecoration",value:"overline"}):55===r?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:tw[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:tw[r-100+8]}})}return t}(r.sequence);for(let t of e)"resetAll"===t.type?(a=null,o=null,s.clear()):"resetForegroundColor"===t.type?a=null:"resetBackgroundColor"===t.type?o=null:"resetDecoration"===t.type&&s.delete(t.value);for(let t of e)"setForegroundColor"===t.type?a=t.value:"setBackgroundColor"===t.type?o=t.value:"setDecoration"===t.type&&s.add(t.value)}n=r.position}while(n<e.length);return t}},r.map(t=>l.parse(t[0]).map(n=>{let r,a;n.decorations.has("reverse")?(r=n.background?i.value(n.background):c.bg,a=n.foreground?i.value(n.foreground):c.fg):(r=n.foreground?i.value(n.foreground):c.fg,a=n.background?i.value(n.background):void 0),r=td(r,e),a=td(a,e),n.decorations.has("dim")&&(r=function(e){let t=e.match(/#([0-9a-f]{3,8})/i);if(t){let e=t[1];if(8===e.length){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${e.slice(0,6)}${t}`}if(6===e.length)return`#${e}80`;if(4===e.length){let t=e[0],n=e[1],r=e[2],i=e[3],a=Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,"0");return`#${t}${t}${n}${n}${r}${r}${a}`}else if(3===e.length){let t=e[0],n=e[1],r=e[2];return`#${t}${t}${n}${n}${r}${r}80`}}let n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(r));let o=w.None;return n.decorations.has("bold")&&(o|=w.Bold),n.decorations.has("italic")&&(o|=w.Italic),n.decorations.has("underline")&&(o|=w.Underline),n.decorations.has("strikethrough")&&(o|=w.Strikethrough),{content:n.value,offset:t[1],color:r,bgColor:a,fontStyle:o}}))}let d=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==d.name)throw new h(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${d.name}"`);if(!n.grammarState.themes.includes(c.name))throw new h(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${c.name}"`)}return o=new tC((a=tP(t,r=d,i=c,u,n)).stateStack,r.name,i.name),tS(a.tokens,o),a.tokens}function tP(e,t,n,r,i){let a=tu(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500}=i,l=tb(e),c=i.grammarState?function(e,t){if(!(e instanceof tC))throw new h("Invalid grammar state");return e.getInternalStack(t)}(i.grammarState,n.name)??ex:null!=i.grammarContextCode?tP(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:ex,u=[],d=[];for(let e=0,h=l.length;e<h;e++){let h,p,[f,m]=l[e];if(""===f){u=[],d.push([]);continue}if(o>0&&f.length>=o){u=[],d.push([{content:f,offset:m,color:"",fontStyle:0}]);continue}i.includeExplanation&&(h=t.tokenizeLine(f,c,s).tokens,p=0);let g=t.tokenizeLine2(f,c,s),b=g.tokens.length/2;for(let e=0;e<b;e++){let t=g.tokens[2*e],o=e+1<b?g.tokens[2*e+2]:f.length;if(t===o)continue;let s=g.tokens[2*e+1],l=td(r[D.getForeground(s)],a),c=D.getFontStyle(s),d={content:f.substring(t,o),offset:m+t,color:l,fontStyle:c};if(i.includeExplanation){let e=[];if("scopeName"!==i.includeExplanation)for(let t of n.settings){let n;switch(typeof t.scope){case"string":n=t.scope.split(/,/).map(e=>e.trim());break;case"object":n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(/ /))})}d.explanation=[];let r=0;for(;t+r<o;){let t=h[p],n=f.substring(t.startIndex,t.endIndex);r+=n.length,d.explanation.push({content:n,scopes:"scopeName"===i.includeExplanation?t.scopes.map(e=>({scopeName:e})):function(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:function(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(function(e,t,n){if(!tL(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)tL(e[r],n[i])&&(r-=1),i-=1;return -1===r}(e,t,n)){r.push(a);break}return r}(e,i,t.slice(0,r))}}return n}(e,t.scopes)}),p+=1}}u.push(d)}d.push(u),u=[],c=g.ruleStack}return{tokens:d,stateStack:c}}function tL(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function tM(e,t,n){let r=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),i=r.map(r=>{let i=tD(e,t,{...n,theme:r.theme}),a=tA(i);return{tokens:i,state:a,theme:"string"==typeof r.theme?r.theme:r.theme.name}}),a=function(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let i=e.map(e=>e[r]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let o=i.map(()=>0),s=i.map(e=>e[0]);for(;s.every(e=>e);){let e=Math.min(...s.map(e=>e.content.length));for(let t=0;t<n;t++){let n=s[t];n.content.length===e?(a[t].push(n),o[t]+=1,s[t]=i[t][o[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),s[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}(...i.map(e=>e.tokens)),o=a[0].map((e,t)=>e.map((e,i)=>{let o={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in n&&n.includeExplanation&&(o.explanation=e.explanation),a.forEach((e,n)=>{let{content:a,explanation:s,offset:l,...c}=e[t][i];o.variants[r[n].color]=c}),o})),s=i[0].state?new tC(Object.fromEntries(i.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),i[0].state.lang):void 0;return s&&tS(o,s),o}function tF(e,t,n){let r,i,a,o,s,l;if("themes"in n){let{defaultColor:c="light",cssVariablePrefix:u="--shiki-",colorsRendering:d="css-vars"}=n,p=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===c?-1:+(t.color===c));if(0===p.length)throw new h("`themes` option must not be empty");let f=tM(e,t,n);if(l=tA(f),c&&tE!==c&&!p.find(e=>e.color===c))throw new h(`\`themes\` option must contain the defaultColor key \`${c}\``);let m=p.map(t=>e.getTheme(t.theme)),g=p.map(e=>e.color);a=f.map(e=>e.map(e=>(function(e,t,n,r,i="css-vars"){let a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>tT(e.variants[t])),s=new Set(o.flatMap(e=>Object.keys(e))),l={},c=(e,r)=>{let i="color"===r?"":"background-color"===r?"-bg":`-${r}`;return n+t[e]+("color"===r?"":i)};return o.forEach((e,n)=>{for(let a of s){let s=e[a]||"inherit";if(0===n&&r&&ty.includes(a))if(r===tE&&o.length>1){let e=t.findIndex(e=>"light"===e),r=t.findIndex(e=>"dark"===e);if(-1===e||-1===r)throw new h('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let u=o[e][a]||"inherit",d=o[r][a]||"inherit";l[a]=`light-dark(${u}, ${d})`,"css-vars"===i&&(l[c(n,a)]=s)}else l[a]=s;else"css-vars"===i&&(l[c(n,a)]=s)}}),a.htmlStyle=l,a})(e,g,u,c,d))),l&&tS(a,l);let b=p.map(e=>tu(e.theme,n));i=tB(p,m,b,u,c,"fg",d),r=tB(p,m,b,u,c,"bg",d),o=`shiki-themes ${m.map(e=>e.name).join(" ")}`,s=c?void 0:[i,r].join(";")}else if("theme"in n){let s=tu(n.theme,n);a=tD(e,t,n);let c=e.getTheme(n.theme);r=td(c.bg,s),i=td(c.fg,s),o=c.name,l=tA(a)}else throw new h("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:r,themeName:o,rootStyle:s,grammarState:l}}function tB(e,t,n,r,i,a,o){return e.map((s,l)=>{let c=td(t[l][a],n[l])||"inherit",u=`${r+s.color}${"bg"===a?"-bg":""}:${c}`;if(0===l&&i){if(i===tE&&e.length>1){let r=e.findIndex(e=>"light"===e.color),i=e.findIndex(e=>"dark"===e.color);if(-1===r||-1===i)throw new h('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let o=td(t[r][a],n[r])||"inherit",s=td(t[i][a],n[i])||"inherit";return`light-dark(${o}, ${s});${u}`}return c}return"css-vars"===o?u:null}).filter(e=>!!e).join(";")}function tH(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>tH(e,t,n),codeToTokens:(t,n)=>tF(e,t,n)}){let i=t;for(let e of tx(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:o,bg:s,themeName:l,rootStyle:c,grammarState:u}=tF(e,i,n),{mergeWhitespaces:d=!0,mergeSameStyleTokens:h=!1}=n;!0===d?a=a.map(e=>{let t,n=[],r="";return e.forEach((i,a)=>{let o=!(i.fontStyle&&(i.fontStyle&w.Underline||i.fontStyle&w.Strikethrough));o&&i.content.match(/^\s+$/)&&e[a+1]?(void 0===t&&(t=i.offset),r+=i.content):r?(o?n.push({...i,offset:t,content:r+i.content}):n.push({content:r,offset:t},i),t=void 0,r=""):n.push(i)}),n}):"never"===d&&(a=a.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;let t=e.content.match(/^(\s*)(.*?)(\s*)$/);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}))),h&&(a=a.map(e=>{let t=[];for(let n of e){if(0===t.length){t.push({...n});continue}let e=t[t.length-1],r=tv(e.htmlStyle||tT(e)),i=tv(n.htmlStyle||tT(n)),a=e.fontStyle&&(e.fontStyle&w.Underline||e.fontStyle&w.Strikethrough),o=n.fontStyle&&(n.fontStyle&w.Underline||n.fontStyle&w.Strikethrough);a||o||r!==i?t.push({...n}):e.content+=n.content}return t}));let p={...r,get source(){return i}};for(let e of tx(n))a=e.tokens?.call(p,a)||a;return function(e,t,n,r=tA(e)){let i=tx(t),a=[],o={type:"root",children:[]},{structure:s="classic",tabindex:l="0"}=t,c={class:`shiki ${t.themeName||""}`};for(let[e,n]of(!1!==t.rootStyle&&(null!=t.rootStyle?c.style=t.rootStyle:c.style=`background-color:${t.bg};color:${t.fg}`),!1!==l&&null!=l&&(c.tabindex=l.toString()),Object.entries(t.meta||{})))e.startsWith("_")||(c[e]=n);let u={type:"element",tagName:"pre",properties:c,children:[],data:t.data},d={type:"element",tagName:"code",properties:{},children:a},h=[],p={...n,structure:s,addClassToHast:tg,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 h}};if(e.forEach((e,t)=>{t&&("inline"===s?o.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===s&&a.push({type:"text",value:"\n"}));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}]},l=tv(a.htmlStyle||tT(a));for(let o of(l&&(e.properties.style=l),i))e=o?.span?.call(p,e,t+1,r,n,a)||e;"inline"===s?o.children.push(e):"classic"===s&&n.children.push(e),r+=a.content.length}if("classic"===s){for(let e of i)n=e?.line?.call(p,n,t+1)||n;h.push(n),a.push(n)}else"inline"===s&&h.push(n)}),"classic"===s){for(let e of i)d=e?.code?.call(p,d)||d;for(let e of(u.children.push(d),i))u=e?.pre?.call(p,u)||u;o.children.push(u)}else if("inline"===s){let e=[],t={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let n of o.children)"element"===n.type&&"br"===n.tagName?(e.push(t),t={type:"element",tagName:"span",properties:{class:"line"},children:[]}):("element"===n.type||"text"===n.type)&&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];"element"===t.type&&o.children.push(...t.children)}}let f=o;for(let e of i)f=e?.root?.call(p,f)||f;return r&&tS(f,r),f}(a,{...n,fg:o,bg:s,themeName:l,rootStyle:!1!==n.rootStyle&&(n.rootStyle??c)},p,u)}let tU=function(e,t){let n=t||ta,r=n.quote||'"';if('"'!==r&&"'"!==r)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return({one:tl,all:tc,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||ew.b,characterReferences:n.characterReferences||to,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?eN.JW:eN.qy,quote:r,alternative:'"'===r?"'":'"'}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)},tj="__shiki_resolved";function tG(e){if(e?.[tj])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r="light"===t.type?"#333333":"#bbbbbb"),n||(n="light"===t.type?"#fffffe":"#1e1e1e"),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0,a=new Map;function o(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?o(e):(a.set(e,n),n)}for(let e of(t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith("#"),r=e.settings?.background&&!e.settings.background.startsWith("#");if(!n&&!r)return e;let i={...e,settings:{...e.settings}};if(n){let n=o(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=o(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i}),Object.keys(t.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!t.colors[e]?.startsWith("#")){let n=o(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,tj,{enumerable:!1,writable:!1,value:!0}),t}async function tz(e){return Array.from(new Set((await Promise.all(e.filter(e=>!tf(e)).map(async e=>await th(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function t$(e){return(await Promise.all(e.map(async e=>tm(e)?null:tG(await th(e))))).filter(e=>!!e)}class tW extends Error{constructor(e){super(e),this.name="ShikiError"}}function tq(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new tW(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return e}class tV extends e_{constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=tG(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=A.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=tq(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=Array.from(this._langGraph.entries()),n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>{if(!t)return!1;let r=t.embeddedLanguages||t.embeddedLangs;return r?.some(e=>n.map(([e])=>e).includes(e))}).filter(e=>!n.includes(e));throw new tW(`Missing languages ${n.map(([e])=>`\`${e}\``).join(", ")}, required by ${e.map(([e])=>`\`${e}\``).join(", ")}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}}class tY{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(".");n=[...n,...this._injections.get(r)||[]]}return n}}let tK=0;async function tX(e){e.engine||function(e,t=3){if(!(t>3))if(1)console.trace(`[SHIKI DEPRECATE]: ${e}`);else throw Error(`[SHIKI DEPRECATE]: ${e}`)}("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([t$(e.themes||[]),tz(e.langs||[]),e.engine]);return function(e){let t;tK+=1,!1!==e.warnings&&tK>=10&&tK%10==0&&console.warn(`[Shiki] ${tK} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let n=!1;if(!e.engine)throw new tW("`engine` option is required for synchronous mode");let r=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(tG),a=new tV(new tY(e.engine,r),i,r,e.langAlias);function o(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};c();let t=a.getTheme(e);if(!t)throw new tW(`Theme \`${e}\` not found, you may need to load it first`);return t}function s(...e){c(),a.loadLanguages(e.flat(1))}function l(...e){for(let t of(c(),e.flat(1)))a.loadTheme(t)}function c(){if(n)throw new tW("Shiki instance has been disposed")}function u(){n||(n=!0,a.dispose(),tK-=1)}return{setTheme:function(e){c();let n=o(e);return t!==e&&(a.setTheme(n),t=e),{theme:n,colorMap:a.getColorMap()}},getTheme:o,getLanguage:function(e){c();let t=a.getGrammar("string"==typeof e?e:e.name);if(!t)throw new tW(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return c(),a.getLoadedThemes()},getLoadedLanguages:function(){return c(),a.getLoadedLanguages()},resolveLangAlias:function(t){return tq(t,e.langAlias)},loadLanguage:async function(...e){return s(await tz(e))},loadLanguageSync:s,loadTheme:async function(...e){return c(),l(await t$(e))},loadThemeSync:l,dispose:u,[Symbol.dispose]:u}}({...e,themes:t,langs:n,engine:r})}async function tQ(e){let t=await tX(e);return{getLastGrammarState:(...e)=>(function(...e){if(2===e.length)return tA(e[1]);let[t,n,r={}]=e,{lang:i="text",theme:a=t.getLoadedThemes()[0]}=r;if(tp(i)||tm(a))throw new h("Plain language does not have grammar state");if("ansi"===i)throw new h("ANSI language does not have grammar state");let{theme:o,colorMap:s}=t.setTheme(a),l=t.getLanguage(i);return new tC(tP(n,l,o,s,r).stateStack,l.name,o.name)})(t,...e),codeToTokensBase:(e,n)=>tD(t,e,n),codeToTokensWithThemes:(e,n)=>tM(t,e,n),codeToTokens:(e,n)=>tF(t,e,n),codeToHast:(e,n)=>tH(t,e,n),codeToHtml:(e,n)=>(function(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>tH(e,t,n),codeToTokens:(t,n)=>tF(e,t,n)},i=tU(tH(e,t,n,r));for(let e of tx(n))i=e.postprocess?.call(r,i,n)||i;return i})(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}let tZ=Object.fromEntries([{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>n.e(68106).then(n.bind(n,68106))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>n.e(69809).then(n.bind(n,69809))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>n.e(69438).then(n.bind(n,69438))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:()=>n.e(93112).then(n.bind(n,93112))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:()=>n.e(49159).then(n.bind(n,49159))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xe9",type:"dark",import:()=>n.e(81737).then(n.bind(n,81737))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>n.e(8893).then(n.bind(n,8893))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>n.e(93822).then(n.bind(n,93822))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>n.e(37725).then(n.bind(n,37725))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>n.e(8977).then(n.bind(n,8977))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>n.e(37950).then(n.bind(n,37950))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>n.e(30933).then(n.bind(n,30933))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>n.e(52632).then(n.bind(n,52632))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>n.e(53066).then(n.bind(n,53066))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>n.e(43662).then(n.bind(n,43662))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>n.e(71266).then(n.bind(n,71266))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>n.e(11137).then(n.bind(n,11137))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>n.e(4622).then(n.bind(n,4622))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>n.e(26216).then(n.bind(n,26216))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>n.e(4960).then(n.bind(n,4960))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>n.e(38032).then(n.bind(n,38032))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>n.e(51608).then(n.bind(n,51608))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>n.e(69754).then(n.bind(n,69754))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>n.e(34055).then(n.bind(n,34055))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>n.e(78738).then(n.bind(n,78738))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>n.e(312).then(n.bind(n,312))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>n.e(59297).then(n.bind(n,59297))},{id:"horizon",displayName:"Horizon",type:"dark",import:()=>n.e(8201).then(n.bind(n,8201))},{id:"horizon-bright",displayName:"Horizon Bright",type:"dark",import:()=>n.e(3408).then(n.bind(n,3408))},{id:"houston",displayName:"Houston",type:"dark",import:()=>n.e(70818).then(n.bind(n,70818))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>n.e(92993).then(n.bind(n,92993))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>n.e(25759).then(n.bind(n,25759))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>n.e(30023).then(n.bind(n,30023))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>n.e(14918).then(n.bind(n,14918))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>n.e(2315).then(n.bind(n,2315))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>n.e(59869).then(n.bind(n,59869))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>n.e(86321).then(n.bind(n,86321))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>n.e(25199).then(n.bind(n,25199))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>n.e(23080).then(n.bind(n,23080))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>n.e(36680).then(n.bind(n,36680))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>n.e(62903).then(n.bind(n,62903))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>n.e(77103).then(n.bind(n,77103))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>n.e(45470).then(n.bind(n,45470))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>n.e(50839).then(n.bind(n,50839))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:()=>n.e(1404).then(n.bind(n,1404))},{id:"nord",displayName:"Nord",type:"dark",import:()=>n.e(609).then(n.bind(n,609))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>n.e(96345).then(n.bind(n,96345))},{id:"one-light",displayName:"One Light",type:"light",import:()=>n.e(86451).then(n.bind(n,86451))},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>n.e(63156).then(n.bind(n,63156))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>n.e(89496).then(n.bind(n,89496))},{id:"red",displayName:"Red",type:"dark",import:()=>n.e(78925).then(n.bind(n,78925))},{id:"rose-pine",displayName:"Ros\xe9 Pine",type:"dark",import:()=>n.e(85088).then(n.bind(n,85088))},{id:"rose-pine-dawn",displayName:"Ros\xe9 Pine Dawn",type:"light",import:()=>n.e(86873).then(n.bind(n,86873))},{id:"rose-pine-moon",displayName:"Ros\xe9 Pine Moon",type:"dark",import:()=>n.e(69180).then(n.bind(n,69180))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>n.e(58431).then(n.bind(n,58431))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>n.e(80648).then(n.bind(n,80648))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>n.e(20184).then(n.bind(n,20184))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>n.e(73984).then(n.bind(n,73984))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>n.e(75490).then(n.bind(n,75490))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>n.e(86680).then(n.bind(n,86680))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>n.e(55979).then(n.bind(n,55979))},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>n.e(8217).then(n.bind(n,8217))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>n.e(79759).then(n.bind(n,79759))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>n.e(9284).then(n.bind(n,9284))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>n.e(45934).then(n.bind(n,45934))}].map(e=>[e.id,e.import]));var tJ=n(46270).Buffer;class t0 extends Error{constructor(e){super(e),this.name="ShikiError"}}function t1(){return"u">typeof performance?performance.now():Date.now()}let t2=(e,t)=>e+(t-e%t)%t;async function t5(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}let a="u">typeof TextDecoder?new TextDecoder("utf8"):void 0;function o(e,t){return e?function(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&a)return a.decode(e.subarray(t,i));let o="";for(;t<i;){let n=e[t++];if(!(128&n)){o+=String.fromCharCode(n);continue}let r=63&e[t++];if((224&n)==192){o+=String.fromCharCode((31&n)<<6|r);continue}let i=63&e[t++];if((n=(240&n)==224?(15&n)<<12|r<<6|i:(7&n)<<18|r<<12|i<<6|63&e[t++])<65536)o+=String.fromCharCode(n);else{let e=n-65536;o+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return o}(r.HEAPU8,e,t):""}let s={emscripten_get_now:t1,emscripten_memcpy_big:function(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){let a=r.HEAPU8.length;if((e>>>=0)>0x80000000)return!1;for(let r=1;r<=4;r*=2){let o=a*(1+.2/r);if(o=Math.min(o,e+0x6000000),function(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}(Math.min(0x80000000,t2(Math.max(e,o),65536))))return!0}return!1},fd_write:()=>0};async function l(){let n=await e({env:s,wasi_snapshot_preview1:s});i((t=n.memory).buffer),Object.assign(r,n),r.UTF8ToString=o}return await l(),r}var t6=Object.defineProperty,t9=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?t6(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n};let t3=null;class t4{constructor(e){t9(this,"utf16Length"),t9(this,"utf8Length"),t9(this,"utf16Value"),t9(this,"utf8Value"),t9(this,"utf16OffsetToUtf8"),t9(this,"utf8OffsetToUtf16");const t=e.length,n=t4._utf8ByteLength(e),r=n!==t,i=r?new Uint32Array(t+1):null;r&&(i[t]=n);const a=r?new Uint32Array(n+1):null;r&&(a[n]=t);const o=new Uint8Array(n);let s=0;for(let n=0;n<t;n++){const l=e.charCodeAt(n);let c=l,u=!1;if(l>=55296&&l<=56319&&n+1<t){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(c=(l-55296<<10)+65536|t-56320,u=!0)}r&&(i[n]=s,u&&(i[n+1]=s),c<=127?a[s+0]=n:c<=2047?(a[s+0]=n,a[s+1]=n):c<=65535?(a[s+0]=n,a[s+1]=n,a[s+2]=n):(a[s+0]=n,a[s+1]=n,a[s+2]=n,a[s+3]=n)),c<=127?o[s++]=c:(c<=2047?o[s++]=192|(1984&c)>>>6:(c<=65535?o[s++]=224|(61440&c)>>>12:(o[s++]=240|(1835008&c)>>>18,o[s++]=128|(258048&c)>>>12),o[s++]=128|(4032&c)>>>6),o[s++]=128|(63&c)>>>0),u&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=a}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}let t7=class e{constructor(t){if(t9(this,"id",++e.LAST_ID),t9(this,"_onigBinding"),t9(this,"content"),t9(this,"utf16Length"),t9(this,"utf8Length"),t9(this,"utf16OffsetToUtf8"),t9(this,"utf8OffsetToUtf16"),t9(this,"ptr"),!t3)throw new t0("Must invoke loadWasm first.");this._onigBinding=t3,this.content=t;const n=new t4(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=t3.omalloc(1e4)),e._sharedPtrInUse=!0,t3.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(t3)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};t9(t7,"LAST_ID",0),t9(t7,"_sharedPtr",0),t9(t7,"_sharedPtrInUse",!1);class t8{constructor(e){if(t9(this,"_onigBinding"),t9(this,"_ptr"),!t3)throw new t0("Must invoke loadWasm first.");const t=[],n=[];for(let r=0,i=e.length;r<i;r++){const i=new t4(e[r]);t[r]=i.createString(t3),n[r]=i.utf8Length}const r=t3.omalloc(4*e.length);t3.HEAPU32.set(t,r/4);const i=t3.omalloc(4*e.length);t3.HEAPU32.set(n,i/4);const a=t3.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)t3.ofree(t[n]);t3.ofree(i),t3.ofree(r),0===a&&function(e){throw new t0(e.UTF8ToString(e.getLastOnigError()))}(t3),this._onigBinding=t3,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if("number"==typeof n&&(r=n),"string"==typeof e){e=new t7(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(0===a)return null;let o=i.HEAPU32,s=a/4,l=o[s++],c=o[s++],u=[];for(let t=0;t<c;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);u[t]={start:n,end:r,length:r-n}}return{index:l,captureIndices:u}}}function ne(e){return t=>WebAssembly.instantiate(e,t)}async function nt(e){return e&&await (i||(i=async function(){t3=await t5(async t=>{let n=e;if("function"==typeof(n=await n)&&(n=await n(t)),"function"==typeof n&&(n=await n(t)),"function"==typeof n.instantiator)n=await n.instantiator(t);else if("function"==typeof n.default)n=await n.default(t);else{var r,i,a,o;if(void 0!==n.data&&(n=n.data),r=n,"u">typeof Response&&r instanceof Response){n="function"==typeof WebAssembly.instantiateStreaming?await (a=n,e=>WebAssembly.instantiateStreaming(a,e))(t):await (o=n,async e=>{let t=await o.arrayBuffer();return WebAssembly.instantiate(t,e)})(t)}else(i=n,"u">typeof ArrayBuffer&&(i instanceof ArrayBuffer||ArrayBuffer.isView(i))||void 0!==tJ&&tJ.isBuffer?.(i)||"u">typeof SharedArrayBuffer&&i instanceof SharedArrayBuffer||"u">typeof Uint32Array&&i instanceof Uint32Array||n instanceof WebAssembly.Module)?n=await ne(n)(t):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await ne(n.default)(t))}return"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}())),{createScanner:e=>new t8(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new t7(e)}}let nn=(a=(m={langs:d,themes:tZ,engine:()=>nt(Promise.all([n.e(74352),n.e(27890)]).then(n.bind(n,27890)))}).langs,o=m.themes,s=m.engine,async function(e){function t(t){if("string"==typeof t){if(tf(t=e.langAlias?.[t]||t))return[];let n=a[t];if(!n)throw new h(`Language \`${t}\` is not included in this bundle. You may want to load it from external source.`);return n}return t}function n(e){if(tm(e))return"none";if("string"==typeof e){let t=o[e];if(!t)throw new h(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let r=(e.themes??[]).map(e=>n(e)),i=(e.langs??[]).map(e=>t(e)),l=await tQ({engine:e.engine??s(),...e,themes:r,langs:i});return{...l,loadLanguage:(...e)=>l.loadLanguage(...e.map(t)),loadTheme:(...e)=>l.loadTheme(...e.map(n)),getBundledLanguages:()=>a,getBundledThemes:()=>o}});function nr(e){if(1!=[...e].length)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}let ni=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),na=String.raw;function no(e,t){if(null==e)throw Error(t??"Value expected");return e}let ns=na`\[\^?`,nl=`c.? | C(?:-.?)?|${na`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${na`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${na`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${na`o\{[^\}]*\}?`}|${na`\d{1,3}`}`,nc=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,nu=RegExp(na`
102
- \\ (?:
103
- ${nl}
104
- | [gk]<[^>]*>?
105
- | [gk]'[^']*'?
106
- | .
107
- )
108
- | \( (?:
109
- \? (?:
110
- [:=!>({]
111
- | <[=!]
112
- | <[^>]*>
113
- | '[^']*'
114
- | ~\|?
115
- | #(?:[^)\\]|\\.?)*
116
- | [^:)]*[:)]
117
- )?
118
- | \*[^\)]*\)?
119
- )?
120
- | (?:${nc.source})+
121
- | ${ns}
122
- | .
123
- `.replace(/\s+/g,""),"gsu"),nd=RegExp(na`
124
- \\ (?:
125
- ${nl}
126
- | .
127
- )
128
- | \[:(?:\^?\p{Alpha}+|\^):\]
129
- | ${ns}
130
- | &&
131
- | .
132
- `.replace(/\s+/g,""),"gsu");function nh(e,{inCharClass:t}){let n=e[1];if("c"===n||"C"===n){var r,i=e;let t="c"===i[1]?i[2]:i[3];if(!t||!/[A-Za-z]/.test(t))throw Error(`Unsupported control character "${i}"`);return nm(nr(t.toUpperCase())-64,i)}if("dDhHsSwW".includes(n)){let t;return nb({d:"digit",h:"hex",s:"space",w:"word"}[t=(r=e)[1].toLowerCase()],r,{negate:r[1]!==t})}if(e.startsWith(na`\o{`))throw Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(3===e.length)throw Error(`Incomplete or invalid Unicode property "${e}"`);return function(e){let{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return nb("property",e,{value:r,negate:"P"===t&&!n||"p"===t&&!!n})}(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 nm(nr(e),t)})}catch{throw Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if("u"===n||"x"===n)return nm(function(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}"`);return parseInt("{"===e[2]?/^\\x\{\s*(?<hex>\p{AHex}+)/u.exec(e).groups.hex:e.slice(2),16)}(e),e);if(nv.has(n))return nm(nv.get(n),e);if(/\d/.test(n))return{type:"EscapedNumber",inCharClass:t,raw:e};if("\\"===e)throw Error(na`Incomplete escape "\"`);if("M"===n)throw Error(`Unsupported meta "${e}"`);if(2==[...e].length)return nm(e.codePointAt(1),e);throw Error(`Unexpected escape "${e}"`)}function np(e,t){return{type:"Assertion",kind:e,raw:t}}function nf(e){return{type:"Backreference",raw:e}}function nm(e,t){return{type:"Character",value:e,raw:t}}function ng(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function nb(e,t,n={}){return{type:"CharacterSet",kind:e,...n,raw:t}}function nE(e,t,n={}){return"keep"===e?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:no(n.flags),raw:t}}function ny(e,t,n={}){return{type:"GroupOpen",kind:e,...n,raw:t}}let nT=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),nv=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function nk(e){let t=null,n,r;if("{"===e[0]){let{minStr:i,maxStr:a}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups;if(+i>1e5||a&&+a>1e5)throw Error("Quantifier value unsupported in Oniguruma");if((n=+i)>(r=void 0===a?+i:""===a?1/0:+a)&&(t="possessive",[n,r]=[r,n]),e.endsWith("?")){if("possessive"===t)throw Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else n=+("+"===e[0]),r="?"===e[0]?1:1/0,t="+"===e[1]?"possessive":"?"===e[1]?"lazy":"greedy";return{type:"Quantifier",kind:t,min:n,max:r,raw:e}}function nS(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 nA(e,t){if(!Array.isArray(e.body))throw Error("Expected node with body array");if(1!==e.body.length)return!1;let n=e.body[0];return!t||Object.keys(t).every(e=>t[e]===n[e])}let nC=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function n_(e,t={}){var n;let r={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},i=function(e,t={}){let n={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if("string"!=typeof e)throw Error("String expected as pattern");let r=function(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("y"===r){if(!/^y{[gw]}/.test(e.slice(n)))throw Error('Invalid or unspecified flag "y" mode');t.textSegmentMode="g"===e[n+2]?"grapheme":"word",n+=3;continue}t[({i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"})[r]]=!0}return t}(n.flags),i=[r.extended],a={captureGroup:n.rules.captureGroup,getCurrentModX:()=>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(nu.lastIndex=0;s=nu.exec(e);){let t=function(e,t,n,r){let[i,a]=n;if("["===n||"[^"===n){let e=function(e,t,n){let r=[ng("^"===t[1],t)],i=1,a;for(nd.lastIndex=n;a=nd.exec(e);){let e=a[0];if("["===e[0]&&":"!==e[1])i++,r.push(ng("^"===e[1],e));else if("]"===e){if("CharacterClassOpen"===r.at(-1).type)r.push(nm(93,e));else if(i--,r.push({type:"CharacterClassClose",raw:e}),!i)break}else{let t=function(e){if("\\"===e[0])return nh(e,{inCharClass:!0});if("["===e[0]){let t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!ni.has(t.groups.name))throw Error(`Invalid POSIX class "${e}"`);return nb("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return"-"===e?{type:"CharacterClassHyphen",raw:e}:"&&"===e?{type:"CharacterClassIntersector",raw:e}:nm(nr(e),e)}(e);Array.isArray(t)?r.push(...t):r.push(t)}}return{tokens:r,lastIndex:nd.lastIndex||e.length}}(t,n,r);return{tokens:e.tokens,lastIndex:e.lastIndex}}if("\\"===i){if("AbBGyYzZ".includes(a))return{token:np(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw Error(`Invalid group name "${n}"`);return{token:{type:"Subroutine",raw:n}}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw Error(`Invalid group name "${n}"`);return{token:nf(n)}}if("K"===a)return{token:nE("keep",n)};if("N"===a||"R"===a)return{token:nb("newline",n,{negate:"N"===a})};if("O"===a)return{token:nb("any",n)};if("X"===a)return{token:nb("text_segment",n)};let e=nh(n,{inCharClass:!1});return Array.isArray(e)?{tokens:e}:{token:e}}if("("===i){if("*"===a)return{token:function(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,l]=a,c=nT.has(n)?n.toLowerCase():"custom";switch(c){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("string"==typeof o)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("string"==typeof o&&!/^[A-Za-z_]\w*$/.test(o))throw Error(`Named callout argument one must be a tag or number "${o}"`);if(2===a.length&&("number"==typeof s||!/^[<>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(1===a.length&&("number"==typeof o||!/^[<>X]$/.test(o)))throw Error(`Named callout optional argument must be '<', '>', or 'X' "${o}"`);break;case"cmp":if(3!==a.length)throw Error(`Named callout must have three arguments "${a}"`);if("string"==typeof o&&!/^[A-Za-z_]\w*$/.test(o))throw Error(`Named callout argument one must be a tag or number "${o}"`);if("number"==typeof s||!/^(?:[<>!=]=|[<>])$/.test(s))throw Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${s}"`);if("string"==typeof l&&!/^[A-Za-z_]\w*$/.test(l))throw Error(`Named callout argument three must be a tag or number "${l}"`);break;case"custom":throw Error(`Undefined callout name "${n}"`);default:throw Error(`Unexpected named callout kind "${c}"`)}return{type:"NamedCallout",kind:c,tag:r??null,arguments:i?.split(",")??null,raw:e}}(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:function(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=nS(n),o=nS(r),s={};if(a&&(s.enable=a),o&&(s.disable=o),e.endsWith(")"))return t.replaceCurrentModX(i),nE("flags",e,{flags:s});if(e.endsWith(":"))return t.pushModX(i),t.numOpenGroups++,ny("group",e,{...(a||o)&&{flags:s}});throw Error(`Unexpected flag modifier "${e}"`)}(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,"("===n&&!e.captureGroup||"(?:"===n)return{token:ny("group",n)};if("(?>"===n)return{token:ny("atomic",n)};if("(?="===n||"(?!"===n||"(?<="===n||"(?<!"===n)return{token:ny("<"===n[2]?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if("("===n&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:ny("capturing",n,{..."("!==n&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if("(?~|"===n)throw Error(`Unsupported absence function kind "${n}"`);return{token:ny("absence_repeater",n)}}throw"(?("===n?Error(`Unsupported conditional "${n}"`):Error(`Invalid or unsupported group option "${n}"`)}if(")"===n){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw Error('Unmatched ")"');return{token:{type:"GroupClose",raw:n}}}if(e.getCurrentModX()){if("#"===n){let e=t.indexOf(`
133
- `,r);return{lastIndex:-1===e?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:nb("dot",n)}:"^"===n||"$"===n?{token:np(e.singleline?({"^":na`\A`,$:na`\Z`})[n]:n,n)}:"|"===n?{token:{type:"Alternator",raw:n}}:nc.test(n)?{tokens:function(e){let t,n=[],r=RegExp(nc,"gy");for(;t=r.exec(e);){let e=t[0];if("{"===e[0]){let t=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(e);if(t){let{min:i,max:a}=t.groups;if(+i>+a&&e.endsWith("?")){r.lastIndex--,n.push(nk(e.slice(0,-1)));continue}}}n.push(nk(e))}return n}(n)}:{token:nm(nr(n),n)}}(a,e,s[0],nu.lastIndex);t.tokens?o.push(...t.tokens):t.token&&o.push(t.token),void 0!==t.lastIndex&&(nu.lastIndex=t.lastIndex)}let l=[],c=0;o.filter(e=>"GroupOpen"===e.type).forEach(e=>{"capturing"===e.kind?e.number=++c:"("===e.raw&&l.push(e)}),c||l.forEach((e,t)=>{e.kind="capturing",e.number=t+1});let u=c||l.length;return{tokens:o.map(e=>"EscapedNumber"===e.type?function(e,t){let{raw:n,inCharClass:r}=e,i=n.slice(1);if(!r&&("0"!==i&&1===i.length||"0"!==i[0]&&+i<=t))return[nf(n)];let a=[],o=i.match(/^[0-7]+|\d/g);for(let e=0;e<o.length;e++){let t,r=o[e];if(0===e&&"8"!==r&&"9"!==r){if((t=parseInt(r,8))>127)throw Error(na`Octal encoded byte above 177 unsupported "${n}"`)}else t=nr(r);a.push(nm(t,(0===e?"\\":"")+r))}return a}(e,u):e).flat(),flags:r}}(e,{flags:r.flags,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline}}),a=(e,t)=>{let n=i.tokens[o.nextIndex];switch(o.parent=e,o.nextIndex++,n.type){case"Alternator":return nx();case"Assertion":return function({kind:e}){return nw(no({"^":"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===na`\B`||e===na`\Y`})}(n);case"Backreference":return function({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,nN(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 nN(r)}return i(+r)}(n,o);case"Character":return nR(n.value,{useLastValid:!!t.isCheckingRangeEnd});case"CharacterClassHyphen":return function(e,t){let{tokens:n,walk:r}=e,i=e.parent,a=i.body.at(-1),o=n[e.nextIndex];if(!t.isCheckingRangeEnd&&a&&"CharacterClass"!==a.type&&"CharacterClassRange"!==a.type&&o&&"CharacterClassOpen"!==o.type&&"CharacterClassClose"!==o.type&&"CharacterClassIntersector"!==o.type){let e=r(i,{...t,isCheckingRangeEnd:!0});if("Character"===a.type&&"Character"===e.type)return i.body.pop(),function(e,t){if(t.value<e.value)throw Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}(a,e);throw Error("Invalid character class range")}return nR(nr("-"))}(o,t);case"CharacterClassOpen":return function({negate:e},t,n){let{tokens:r,walk:i}=t,a=[nO()],o=r[t.nextIndex],s=n$(o);for(;"CharacterClassClose"!==s.type;){if("CharacterClassIntersector"===s.type)a.push(nO()),t.nextIndex++;else{let e=a.at(-1);e.body.push(i(e,n))}s=n$(r[t.nextIndex],o)}let l=nO({negate:e});return 1===a.length?l.body=a[0].body:(l.kind="intersection",l.body=a.map(e=>1===e.body.length?e.body[0]:e)),t.nextIndex++,l}(n,o,t);case"CharacterSet":return function({kind:e,negate:t,value:n},r){let{normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:o}=r;if("property"===e){let r=nz(n);if(!ni.has(r)||o?.has(r))return nB(n,{negate:t,normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:o});e="posix",n=r}return"posix"===e?function(e,t){let n=!!t?.negate;if(!ni.has(e))throw Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:n}}(n,{negate:t}):nD(e,{negate:t})}(n,o);case"Directive":return function(e,t={}){if("keep"===e)return{type:"Directive",kind:e};if("flags"===e)return{type:"Directive",kind:e,flags:no(t.flags)};throw Error(`Unexpected directive kind "${e}"`)}(n.kind,{flags:n.flags});case"GroupOpen":return function(e,t,n){var r,i;let{tokens:a,capturingGroups:o,namedGroupsByName:s,skipLookbehindValidation:l,walk:c}=t,u=function({flags:e,kind:t,name:n,negate:r,number:i}){switch(t){case"absence_repeater":var a="repeater";!1;return{type:"AbsenceFunction",kind:a,body:nH(void 0)};case"atomic":return nP({atomic:!0});case"capturing":return nI(i,{name:n});case"group":return nP({flags:e});case"lookahead":case"lookbehind":return nL({behind:"lookbehind"===t,negate:r});default:throw Error(`Unexpected group kind "${t}"`)}}(e),d="AbsenceFunction"===u.type,h=nG(u),p=h&&u.negate;if("CapturingGroup"===u.type&&(o.push(u),u.name&&(r=u.name,i=[],s.has(r)||s.set(r,i),s.get(r)).push(u)),d&&n.isInAbsenceFunction)throw Error("Nested absence function not supported by Oniguruma");let f=nW(a[t.nextIndex]);for(;"GroupClose"!==f.type;){if("Alternator"===f.type)u.body.push(nx()),t.nextIndex++;else{let e=u.body.at(-1),t=c(e,{...n,isInAbsenceFunction:n.isInAbsenceFunction||d,isInLookbehind:n.isInLookbehind||h,isInNegLookbehind:n.isInNegLookbehind||p});if(e.body.push(t),(h||n.isInLookbehind)&&!l){let e="Lookbehind includes a pattern not allowed by Oniguruma";if(p||n.isInNegLookbehind){if(nj(t)||"CapturingGroup"===t.type)throw Error(e)}else if(nj(t)||nG(t)&&t.negate)throw Error(e)}}f=nW(a[t.nextIndex])}return t.nextIndex++,u}(n,o,t);case"NamedCallout":var r,a;return r=n.kind,a=n.tag,{type:"NamedCallout",kind:r,tag:a,arguments:n.arguments};case"Quantifier":return function({kind:e,min:t,max:n},r){let i=r.parent,a=i.body.at(-1);if(!a||!nC.has(a.type))throw Error("Quantifier requires a repeatable token");let o=nM(e,t,n,a);return i.body.pop(),o}(n,o);case"Subroutine":return function({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])<1)throw Error("Invalid subroutine number")}else"0"===i&&(i=0);let o=nF(i);return r.push(o),o}(n,o);default:throw Error(`Unexpected token type "${n.type}"`)}},o={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:r.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:r.skipBackrefValidation,skipLookbehindValidation:r.skipLookbehindValidation,skipPropertyNameValidation:r.skipPropertyNameValidation,subroutines:[],tokens:i.tokens,unicodePropertyMap:r.unicodePropertyMap,walk:a},s=(n={type:"Flags",...i.flags},{type:"Regex",body:nH(void 0),flags:n}),l=s.body[0];for(;o.nextIndex<i.tokens.length;){let e=a(l,{});"Alternative"===e.type?(s.body.push(e),l=e):l.body.push(e)}let{capturingGroups:c,hasNumberedRef:u,namedGroupsByName:d,subroutines:h}=o;if(u&&d.size&&!r.rules.captureGroup)throw Error("Numbered backref/subroutine not allowed when using named capture");for(let{ref:e}of h)if("number"==typeof e){if(e>c.length)throw Error("Subroutine uses a group number that's not defined");e&&(c[e-1].isSubroutined=!0)}else if(d.has(e)){if(d.get(e).length>1)throw Error(na`Subroutine uses a duplicate group name "\g<${e}>"`);d.get(e)[0].isSubroutined=!0}else throw Error(na`Subroutine uses a group name that's not defined "\g<${e}>"`);return s}function nx(e){return{type:"Alternative",body:nU(e?.body)}}function nw(e,t){let n={type:"Assertion",kind:e};return("word_boundary"===e||"text_segment_boundary"===e)&&(n.negate=!!t?.negate),n}function nN(e,t){let n=!!t?.orphan;return{type:"Backreference",ref:e,...n&&{orphan:n}}}function nI(e,t){var n;let r={name:void 0,isSubroutined:!1,...t};if(void 0!==r.name&&(n=r.name,!/^[\p{Alpha}\p{Pc}][^)]*$/u.test(n)))throw Error(`Group name "${r.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...r.name&&{name:r.name},...r.isSubroutined&&{isSubroutined:r.isSubroutined},body:nH(t?.body)}}function nR(e,t){let n={useLastValid:!1,...t};if(e>1114111){let t=e.toString(16);if(n.useLastValid)e=1114111;else throw e>1310719?Error(`Invalid code point out of range "\\x{${t}}"`):Error(`Invalid code point out of range in JS "\\x{${t}}"`)}return{type:"Character",value:e}}function nO(e){let t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:nU(e?.body)}}function nD(e,t){let n=!!t?.negate,r={type:"CharacterSet",kind:e};return("digit"===e||"hex"===e||"newline"===e||"space"===e||"word"===e)&&(r.negate=n),"text_segment"!==e&&("newline"!==e||n)||(r.variableLength=!0),r}function nP(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:nH(e?.body)}}function nL(e){let t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:nH(e?.body)}}function nM(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 nF(e){return{type:"Subroutine",ref:e}}function nB(e,t){let n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t},r=n.unicodePropertyMap?.get(nz(e));if(!r){if(n.normalizeUnknownPropertyNames)r=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());else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw Error(na`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:r??e,negate:n.negate}}function nH(e){if(void 0===e)e=[nx()];else if(!Array.isArray(e)||!e.length||!e.every(e=>"Alternative"===e.type))throw Error("Invalid body; expected array of one or more Alternative nodes");return e}function nU(e){if(void 0===e)e=[];else if(!Array.isArray(e)||!e.every(e=>!!e.type))throw Error("Invalid body; expected array of nodes");return e}function nj(e){return"LookaroundAssertion"===e.type&&"lookahead"===e.kind}function nG(e){return"LookaroundAssertion"===e.type&&"lookbehind"===e.kind}function nz(e){return e.replace(/[- _]+/g,"").toLowerCase()}function n$(e,t){return no(e,`Unclosed character class${t?.type==="Character"&&93===t.value&&"]"===t.raw?' (started with "]")':""}`)}function nW(e){return no(e,"Unclosed group")}function nq(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,l=null){let c=0,u=!1,d={node:a,parent:o,key:s,container:l,root:e,remove(){nV(l).splice(Math.max(0,nY(s)+c),1),c--,u=!0},removeAllNextSiblings:()=>nV(l).splice(nY(s)+1),removeAllPrevSiblings(){let e=nY(s)+c;return c-=e,nV(l).splice(0,Math.max(0,e))},replaceWith(e,t={}){let n=!!t.traverse;l?l[Math.max(0,nY(s)+c)]=e:no(o,"Can't replace root node")[s]=e,n&&i(e,o,s,l),u=!0},replaceWithMultiple(e,t={}){let n=!!t.traverse;if(nV(l).splice(Math.max(0,nY(s)+c),1,...e),c+=e.length-1,n){let t=0;for(let n=0;n<e.length;n++)t+=i(e[n],o,nY(s)+n+t,l)}u=!0},skip(){u=!0}},{type:h}=a,p=t["*"],f=t[h],m="function"==typeof p?p:p?.enter,g="function"==typeof f?f:f?.enter;if(m?.(d,n),g?.(d,n),!u)switch(h){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 "${h}"`)}return f?.exit?.(d,n),p?.exit?.(d,n),c}return i(e),e}function nV(e){if(!Array.isArray(e))throw Error("Container expected");return e}function nY(e){if("number"!=typeof e)throw Error("Numeric key expected");return e}let nK=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`,nX=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function nQ(e,t,n,r){let i=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===nX.DEFAULT==!o)){n instanceof Function?s+=n(t,{context:o?nX.CHAR_CLASS:nX.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 nZ(e,t,n){return!!function(e,t,n=0,r){let i;if(!RegExp(t,"su").test(e))return null;let a=RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");a.lastIndex=n;let o=0;for(;i=a.exec(e);){let{0:e,groups:{$skip:t}}=i;if(!t&&(!r||r===nX.DEFAULT==!o))return i;"["===e?o++:"]"===e&&o&&o--,a.lastIndex==i.index&&a.lastIndex++}return null}(e,t,0,n)}let nJ=RegExp(String.raw`(?<noncapturingStart>${nK})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu"),n0=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,n1=RegExp(String.raw`
134
- \\(?: \d+
135
- | c[A-Za-z]
136
- | [gk]<[^>]+>
137
- | [pPu]\{[^\}]+\}
138
- | u[A-Fa-f\d]{4}
139
- | x[A-Fa-f\d]{2}
140
- )
141
- | \((?: \? (?: [:=!>]
142
- | <(?:[=!]|[^>]+>)
143
- | [A-Za-z\-]+:
144
- | \(DEFINE\)
145
- ))?
146
- | (?<qBase>${n0})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
147
- | \\?.
148
- `.replace(/\s+/g,""),"gsu"),n2=String.raw,n5=n2`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,n6=n2`\(\?R=(?<rDepth>[^\)]+)\)|${n5}`,n9=n2`\(\?<(?![=!])(?<captureName>[^>]+)>`,n3=n2`${n9}|(?<unnamed>\()(?!\?)`,n4=RegExp(n2`${n9}|${n6}|\(\?|\\?.`,"gsu"),n7="Cannot use multiple overlapping recursions";function n8(e){let t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e)||(e*=1)<2||e>100)throw Error(t)}function re(e,t,n,r,i,a,o){let s=new Set;r&&nQ(e+t,n9,({groups:{captureName:e}})=>{s.add(e)},nX.DEFAULT);let l=[n,r?s:null,i,a,o];return`${e}${rt(`(?:${e}`,"forward",...l)}(?:)${rt(`${t})`,"backward",...l)}${t}`}function rt(e,t,n,r,i,a,o){let s=e=>"forward"===t?e+2:n-e+2-1,l="";for(let t=0;t<n;t++){let n=s(t);l+=nQ(e,n2`${n3}|\\k<(?<backref>[^>]+)>`,({0:e,groups:{captureName:t,unnamed:s,backref:l}})=>{if(l&&r&&!r.has(l))return e;let c=`_$${n}`;if(s||t){let n=o+a.length+1;return a.push(n),function(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}(i,n),s?e:`(?<${t}${c}>`}return n2`\k<${l}${c}>`},nX.DEFAULT)}return l}function rn(e,t,n,r,i,a){if(e.size&&r){let o=0;nQ(t,n3,()=>o++,nX.DEFAULT);let s=a-o+i,l=new Map;return e.forEach((e,t)=>{let i=(r-o*n)/n,a=o*n,c=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);l.set(c,u)}),l}return e}var rr=String.fromCodePoint,ri=String.raw,ra={},ro=globalThis.RegExp;function rs(e,{enable:t,disable:n}){return{dotAll:!n?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!n?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function rl(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}ra.flagGroups=(()=>{try{new ro("(?i:)")}catch{return!1}return!0})(),ra.unicodeSets=(()=>{try{new ro("[[]]","v")}catch{return!1}return!0})(),ra.bugFlagVLiteralHyphenIsRange=!!ra.unicodeSets&&(()=>{try{new ro(ri`[\d\-a]`,"v")}catch{return!0}return!1})(),ra.bugNestedClassIgnoresNegation=ra.unicodeSets&&new ro("[[^a]]","v").test("a");var rc={ES2025:2025,ES2024:2024,ES2018:2018},ru={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function rd(e={}){if("[object Object]"!==({}).toString.call(e))throw Error("Unexpected options");if(void 0!==e.target&&!ru[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"auto"===t.target&&(t.target=ra.flagGroups?"ES2025":ra.unicodeSets?"ES2024":"ES2018"),t}var rh=new Set([rr(304),rr(305)]),rp=ri`[\p{L}\p{M}\p{N}\p{Pc}]`;function rf(e){if(rh.has(e))return[e];let t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),i=rE.get(n),a=rg.get(n),o=rb.get(n);return 1==[...r].length&&t.add(r),o&&t.add(o),i&&t.add(i),t.add(n),a&&t.add(a),[...t]}var rm=new Map(`C Other
149
- Cc Control cntrl
150
- Cf Format
151
- Cn Unassigned
152
- Co Private_Use
153
- Cs Surrogate
154
- L Letter
155
- LC Cased_Letter
156
- Ll Lowercase_Letter
157
- Lm Modifier_Letter
158
- Lo Other_Letter
159
- Lt Titlecase_Letter
160
- Lu Uppercase_Letter
161
- M Mark Combining_Mark
162
- Mc Spacing_Mark
163
- Me Enclosing_Mark
164
- Mn Nonspacing_Mark
165
- N Number
166
- Nd Decimal_Number digit
167
- Nl Letter_Number
168
- No Other_Number
169
- P Punctuation punct
170
- Pc Connector_Punctuation
171
- Pd Dash_Punctuation
172
- Pe Close_Punctuation
173
- Pf Final_Punctuation
174
- Pi Initial_Punctuation
175
- Po Other_Punctuation
176
- Ps Open_Punctuation
177
- S Symbol
178
- Sc Currency_Symbol
179
- Sk Modifier_Symbol
180
- Sm Math_Symbol
181
- So Other_Symbol
182
- Z Separator
183
- Zl Line_Separator
184
- Zp Paragraph_Separator
185
- Zs Space_Separator
186
- ASCII
187
- ASCII_Hex_Digit AHex
188
- Alphabetic Alpha
189
- Any
190
- Assigned
191
- Bidi_Control Bidi_C
192
- Bidi_Mirrored Bidi_M
193
- Case_Ignorable CI
194
- Cased
195
- Changes_When_Casefolded CWCF
196
- Changes_When_Casemapped CWCM
197
- Changes_When_Lowercased CWL
198
- Changes_When_NFKC_Casefolded CWKCF
199
- Changes_When_Titlecased CWT
200
- Changes_When_Uppercased CWU
201
- Dash
202
- Default_Ignorable_Code_Point DI
203
- Deprecated Dep
204
- Diacritic Dia
205
- Emoji
206
- Emoji_Component EComp
207
- Emoji_Modifier EMod
208
- Emoji_Modifier_Base EBase
209
- Emoji_Presentation EPres
210
- Extended_Pictographic ExtPict
211
- Extender Ext
212
- Grapheme_Base Gr_Base
213
- Grapheme_Extend Gr_Ext
214
- Hex_Digit Hex
215
- IDS_Binary_Operator IDSB
216
- IDS_Trinary_Operator IDST
217
- ID_Continue IDC
218
- ID_Start IDS
219
- Ideographic Ideo
220
- Join_Control Join_C
221
- Logical_Order_Exception LOE
222
- Lowercase Lower
223
- Math
224
- Noncharacter_Code_Point NChar
225
- Pattern_Syntax Pat_Syn
226
- Pattern_White_Space Pat_WS
227
- Quotation_Mark QMark
228
- Radical
229
- Regional_Indicator RI
230
- Sentence_Terminal STerm
231
- Soft_Dotted SD
232
- Terminal_Punctuation Term
233
- Unified_Ideograph UIdeo
234
- Uppercase Upper
235
- Variation_Selector VS
236
- White_Space space
237
- XID_Continue XIDC
238
- XID_Start XIDS`.split(/\s/).map(e=>[nz(e),e])),rg=new Map([["s",rr(383)],[rr(383),"s"]]),rb=new Map([[rr(223),rr(7838)],[rr(107),rr(8490)],[rr(229),rr(8491)],[rr(969),rr(8486)]]),rE=new Map([rT(453),rT(456),rT(459),rT(498),...rv(8072,8079),...rv(8088,8095),...rv(8104,8111),rT(8124),rT(8140),rT(8188)]),ry=new Map([["alnum",ri`[\p{Alpha}\p{Nd}]`],["alpha",ri`\p{Alpha}`],["ascii",ri`\p{ASCII}`],["blank",ri`[\p{Zs}\t]`],["cntrl",ri`\p{Cc}`],["digit",ri`\p{Nd}`],["graph",ri`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",ri`\p{Lower}`],["print",ri`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",ri`[\p{P}\p{S}]`],["space",ri`\p{space}`],["upper",ri`\p{Upper}`],["word",ri`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",ri`\p{AHex}`]]);function rT(e){let t=rr(e);return[t.toLowerCase(),t]}function rv(e,t){return(function(e,t){let n=[];for(let r=e;r<=t;r++)n.push(r);return n})(e,t).map(e=>rT(e))}var rk=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]),rS={AbsenceFunction({node:e,parent:t,replaceWith:n}){let{body:r,kind:i}=e;if("repeater"===i){let e=nP();e.body[0].body.push(nL({negate:!0,body:r}),nB("Any"));let i=nP();i.body[0].body.push(nM("greedy",0,1/0,e)),n(rL(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=>"flags"===e.kind);for(let e=n+1;e<t.body.length;e++)rl(r,t.body[e],[]).push(...i)},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){let n=rN(t.get(e));if(n){let t=nP({flags:n});t.body[0].body=e.body,e.body=[rL(t,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:i,remove:a,replaceWith:o},s){let{kind:l,negate:c}=e,{asciiWordBoundaries:u,avoidSubclass:d,supportedGNodes:h,wordIsAscii:p}=s;if("text_segment_boundary"===l)throw Error(`Unsupported text segment boundary "\\${c?"Y":"y"}"`);if("line_end"===l)o(rL(nL({body:[nx({body:[nw("string_end")]}),nx({body:[nR(10)]})]}),t));else if("line_start"===l)o(rL(rO(ri`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if("search_start"===l)if(h.has(e))i.flags.sticky=!0,a();else{var f;let e,i=r[n-1];if(i&&((e=["Character","CharacterClass","CharacterSet"]).includes((f=i).type)||"Quantifier"===f.type&&f.min&&e.includes(f.body.type)))o(rL(nL({negate:!0}),t));else if(d)throw Error(ri`Uses "\G" in a way that requires a subclass`);else o(rP(nw("string_start"),t)),s.strategy="clip_search"}else if("string_end"===l||"string_start"===l);else if("string_end_newline"===l)o(rL(rO(ri`(?=\n?\z)`),t));else if("word_boundary"===l){if(!p&&!u){let e=`(?:(?<=${rp})(?!${rp})|(?<!${rp})(?=${rp}))`,n=`(?:(?<=${rp})(?=${rp})|(?<!${rp})(?!${rp}))`;o(rL(rO(c?n:e),t))}}else throw Error(`Unexpected assertion kind "${l}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;"string"!=typeof n||rR(n)||(e.ref=n=rw(n,t))},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!rR(r)&&(e.name=r=rw(r,t)),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){"intersection"===t.kind&&n(rL(nO({body:[e]}),t),{traverse:!0})},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:i,digitIsAscii:a,spaceIsAscii:o,wordIsAscii:s}){let{kind:l,negate:c,value:u}=e;if(a&&("digit"===l||"digit"===u))return void n(rP(nD("digit",{negate:c}),t));if(o&&("space"===l||"space"===u))return void n(rL(rD(rO("[ -\r ]"),c),t));if(s&&("word"===l||"word"===u))return void n(rP(nD("word",{negate:c}),t));if("any"===l)n(rP(nB("Any"),t));else if("digit"===l)n(rP(nB("Nd",{negate:c}),t));else if("dot"===l);else if("text_segment"===l){if("strict"===r)throw Error(ri`Use of "\X" requires non-strict accuracy`);let e="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",a=ri`\p{RI}{2}|${e}(?:\u200D${e})*`;n(rL(rO(ri`(?>\r\n|${i?ri`\p{RGI_Emoji}`:a}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if("hex"===l)n(rP(nB("AHex",{negate:c}),t));else if("newline"===l)n(rL(rO(c?"[^\n]":"(?>\r\n?|[\n\v\f\x85\u2028\u2029])"),t));else if("posix"===l)if(i||"graph"!==u&&"print"!==u)n(rL(rD(rO(ry.get(u)),c),t));else{if("strict"===r)throw Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let e={graph:"!-~",print:" -~"}[u];c&&(e=`\0-${rr(e.codePointAt(0)-1)}${rr(e.codePointAt(2)+1)}-\u{10FFFF}`),n(rL(rO(`[${e}]`),t))}else if("property"===l)rm.has(nz(u))||(e.key="sc");else if("space"===l)n(rP(nB("space",{negate:c}),t));else if("word"===l)n(rL(rD(rO(rp),c),t));else throw Error(`Unexpected character set kind "${l}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:i,removeAllPrevSiblings:a,removeAllNextSiblings:o}){let{kind:s,flags:l}=e;if("flags"===s)if(l.enable||l.disable){let e=nP({flags:l});e.body[0].body=o(),i(rL(e,t),{traverse:!0})}else r();else if("keep"===s){let e=n.body[0],r=1===n.body.length&&nA(e,{type:"Group"})&&1===e.body[0].body.length?e.body[0]:n;if(t.parent!==r||r.body.length>1)throw Error(ri`Uses "\K" in a way that's unsupported`);let o=nL({behind:!0});o.body[0].body=a(),i(rL(o,t))}else throw Error(`Unexpected directive kind "${s}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw Error('Unsupported flag "P"');if("word"===e.textSegmentMode)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;"lookbehind"===n&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){let{kind:r}=e;if("fail"===r)n(rL(nL({negate:!0}),t));else throw Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if("Quantifier"===e.body.type){let t=nP();t.body[0].body.push(e.body),e.body=rL(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let n=[],r=!1,i=!1;for(let t of e.body)if(1===t.body.length&&"search_start"===t.body[0].kind)t.body.pop();else{let e=function e(t){let n=t.find(e=>"search_start"===e.kind||function(e,t){let n={negate:null,...t};return"LookaroundAssertion"===e.type&&(null===n.negate||e.negate===n.negate)&&1===e.body.length&&nA(e.body[0],{type:"Assertion",kind:"search_start"})}(e,{negate:!1})||!function({type:e}){return"Assertion"===e||"Directive"===e||"LookaroundAssertion"===e}(e));if(!n)return null;if("search_start"===n.kind)return n;if("LookaroundAssertion"===n.type)return n.body[0].body[0];if("CapturingGroup"===n.type||"Group"===n.type){let t=[];for(let r of n.body){let n=e(r.body);if(!n)return null;Array.isArray(n)?t.push(...n):t.push(n)}return t}return null}(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("strict"===t&&n&&r)throw Error(ri`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;"string"!=typeof n||rR(n)||(e.ref=n=rw(n,t))}},rA={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:l}){let c=i.get(e);if(c&&s.has(e.number)){let r=rP(rx(e.number),t);l.set(r,s.get(e.number)),n(r);return}s.set(e.number,e),o.set(e.number,[]),e.name&&rl(o,e.name,[]);let u=o.get(e.name??e.number);for(let t=0;t<u.length;t++){let n=u[t];if(c===n.node||c&&c===n.origin||e===n.origin){u.splice(t,1);break}}if(o.get(e.number).push({node:e,origin:c}),e.name&&o.get(e.name).push({node:e,origin:c}),e.name){let t=rl(a,e.name,new Map),n=!1;if(c)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=rs(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)&&("CapturingGroup"!==n.type||n.name!==a&&n.number!==a););r.reffedNodesByReferencer.set(e,n);return}let o=r.subroutineRefMap.get(a),s=0===a,l=s?rx(0):function e(t,n,r,i){let a=Array.isArray(t)?[]:{};for(let[o,s]of Object.entries(t))"parent"===o?a.parent=Array.isArray(r)?i:r:s&&"object"==typeof s?a[o]=e(s,n,a,r):("type"===o&&"CapturingGroup"===s&&n.set(a,n.get(t)??t),a[o]=s);return a}(o,r.groupOriginByCopy,null),c=l;if(!s){var u,d;let e=rN(function(e,t){let n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}(o,e=>"Group"===e.type&&!!e.flags)),t=e?rs(r.globalFlags,e):r.globalFlags;u=t,d=r.currentFlags,(u.dotAll!==d.dotAll||u.ignoreCase!==d.ignoreCase)&&(c=nP({flags:function({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}(t)})).body[0].body.push(l)}n(rL(c,t),{traverse:!s})}},rC={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=>(function(e,t){let n=t;do{if("Regex"===n.type)return!1;if("Alternative"===n.type)continue;if(n===e)return!1;for(let t of rI(n.parent)){if(t===n)break;if(t===e||function e(t,n){for(let r of rI(t)??[])if(r===n||e(r,n))return!0;return!1}(t,e))return!0}}while(n=n.parent);throw Error("Unexpected path")})(t,e));i.length?i.length>1?n(rL(nP({atomic:!0,body:i.reverse().map(e=>nx({body:[nN(e.number)]}))}),t)):e.ref=i[0].number:n(rL(nL({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=nI();e.body.at(-1).body.push(t)}}},Subroutine({node:e},t){e.isRecursive&&0!==e.ref&&(e.ref=t.reffedNodesByReferencer.get(e).number)}};function r_(e){nq(e,{"*"({node:e,parent:t}){e.parent=t}})}function rx(e){let t=nF(e);return t.isRecursive=!0,t}function rw(e,t){if(t.has(e))return t.get(e);let n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,n),n}function rN(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 rI(e){if(!e)throw Error("Node expected");let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function rR(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function rO(e,t){let n=n_(e,{...t,unicodePropertyMap:rm}).body;return n.length>1||n[0].body.length>1?nP({body:n}):n[0].body[0]}function rD(e,t){return e.negate=t,e}function rP(e,t){return e.parent=t,e}function rL(e,t){return r_(e),e.parent=t,e}var rM={"*":{enter({node:e},t){if(rq(e)){let n=t.getCurrentModI();t.pushModI(e.flags?rs({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){rq(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){rz(rr(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),r$(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){"property"===e.kind&&rk.has(e.value)&&t.setHasCasedChar()}},rF={Alternative:({body:e},t,n)=>e.map(n).join(""),Assertion({kind:e,negate:t}){if("string_end"===e)return"$";if("string_start"===e)return"^";if("word_boundary"===e)return t?ri`\B`:ri`\b`;throw Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if("number"!=typeof e)throw Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&"strict"===t.accuracy&&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=rr(e),r=rW(e,{escDigit:"Backreference"===t.lastNode.type,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&rz(n)){let e=rf(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("intersection"===r&&!t.useFlagV)throw Error("Use of character class intersection requires min target ES2024");ra.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&o.some(rV)&&(o=[nR(45),...o.filter(e=>!rV(e))]);let s=()=>`[${i?"^":""}${o.map(n).join("intersection"===r?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||ra.bugNestedClassIgnoresNegation)&&!i){let t=o.filter(e=>"CharacterClass"===e.type&&"union"===e.kind&&e.negate);if(t.length){let r=nP(),i=r.body[0];return r.parent=a,i.parent=r,e.body=o=o.filter(e=>!t.includes(e)),o.length?(e.parent=i,i.body.push(e)):r.body.pop(),t.forEach(e=>{let t=nx({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 l=o[0];if("union"===r&&!i&&l&&((!t.useFlagV||!t.verbose)&&"union"===a.kind&&!(ra.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&"intersection"===a.kind&&1===o.length&&"CharacterClassRange"!==l.type))return o.map(n).join("");if(!t.useFlagV&&"CharacterClass"===a.type)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=rW(n,i),o=rW(r,i),s=new Set;return t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&(function(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]:null===r?n.push(t[e]):(n.push([r,t[e]]),r=null);return n})(r$(e)).forEach(e=>{s.add(Array.isArray(e)?`${rW(e[0],i)}-${rW(e[1],i)}`:rW(e,i))}),`${a}-${o}${[...s].join("")}`},CharacterSet({kind:e,negate:t,value:n,key:r},i){if("dot"===e)return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?".":"[^]":ri`[^\n]`;if("digit"===e)return t?ri`\D`:ri`\d`;if("property"===e){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&rk.has(n))throw Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?ri`\P`:ri`\p`}{${r?`${r}=`:""}${n}}`}if("word"===e)return t?ri`\W`:ri`\w`;throw Error(`Unexpected character set kind "${e}"`)},Flags:(e,t)=>(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=rs(o,n));let s=t.map(a).join("|"),l=i.verbose||1!==t.length||"Quantifier"===r.type||e||i.useFlagMods&&n?`(?${function(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}:`}(e,n,i.useFlagMods)}${s})`:s;return i.currentFlags=o,l},LookaroundAssertion({body:e,kind:t,negate:n},r,i){let a=`${"lookahead"===t?"":"<"}${n?"!":"="}`;return`(?${a}${e.map(i).join("|")})`},Quantifier:(e,t,n)=>n(e.body)+function({kind:e,max:t,min:n}){return(n||1!==t?n||t!==1/0?1===n&&t===1/0?"+":n===t?`{${n}}`:`{${n},${t===1/0?"":t}}`:"*":"?")+({greedy:"",lazy:"?",possessive:"+"})[e]}(e),Subroutine({isRecursive:e,ref:t},n){if(!e)throw Error("Unexpected non-recursive subroutine in transformed AST");let r=n.recursionLimit;return 0===t?`(?R=${r})`:ri`\g<${t}&R=${r}>`}},rB=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),rH=new Set(["-","\\","]","^","["]),rU=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),rj=new Map([[9,ri`\t`],[10,ri`\n`],[11,ri`\v`],[12,ri`\f`],[13,ri`\r`],[8232,ri`\u2028`],[8233,ri`\u2029`],[65279,ri`\uFEFF`]]),rG=/^\p{Cased}$/u;function rz(e){return rG.test(e)}function r$(e,t){let n=!!t?.firstOnly,r=e.min.value,i=e.max.value,a=[];if(r<65&&(65535===i||i>=131071)||65536===r&&i>=131071)return a;for(let e=r;e<=i;e++){let t=rr(e);if(!rz(t))continue;let o=rf(t).filter(e=>{let t=e.codePointAt(0);return t<r||t>i});if(o.length&&(a.push(...o),n))break}return a}function rW(e,{escDigit:t,inCharClass:n,useFlagV:r}){var i;if(rj.has(e))return rj.get(e);if(e<32||e>126&&e<160||e>262143||t&&(i=e)>47&&i<58)return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;let a=rr(e);return((n?r?rU:rH:rB).has(a)?"\\":"")+a}function rq({type:e}){return"CapturingGroup"===e||"Group"===e||"LookaroundAssertion"===e}function rV({type:e,value:t}){return"Character"===e&&45===t}var rY=class e extends RegExp{#t=new Map;#n=null;#r;#i=null;#a=null;rawOptions={};get source(){return this.#r||"(?:)"}constructor(t,n,r){const i=!!r?.lazyCompile;if(t instanceof RegExp){if(r)throw Error("Cannot provide options when copying a regexp");super(t,n),this.#r=t.source,t instanceof e&&(this.#t=t.#t,this.#i=t.#i,this.#a=t.#a,this.rawOptions=t.rawOptions)}else{const e={hiddenCaptures:[],strategy:null,transfers:[],...r};super(i?"":t,n),this.#r=t,this.#t=function(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)rl(n,t,{}).transferTo=e;return n}(e.hiddenCaptures,e.transfers),this.#a=e.strategy,this.rawOptions=r??{}}i||(this.#n=this)}exec(t){if(!this.#n){let{lazyCompile:t,...n}=this.rawOptions;this.#n=new e(this.#r,this.flags,n)}let n=this.global||this.sticky,r=this.lastIndex;if("clip_search"===this.#a&&n&&r){this.lastIndex=0;let e=this.#o(t.slice(r));return e&&(function(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])})}}(e,r,t,this.hasIndices),this.lastIndex+=r),e}return this.#o(t)}#o(e){let t;this.#n.lastIndex=this.lastIndex;let n=super.exec.call(this.#n,e);if(this.lastIndex=this.#n.lastIndex,!n||!this.#t.size)return n;let r=[...n];n.length=1,this.hasIndices&&(t=[...n.indices],n.indices.length=1);let i=[0];for(let e=1;e<r.length;e++){let{hidden:a,transferTo:o}=this.#t.get(e)??{};if(a?i.push(null):(i.push(n.length),n.push(r[e]),this.hasIndices&&n.indices.push(t[e])),o&&void 0!==r[e]){let a=i[o];if(!a)throw Error(`Invalid capture transfer to "${a}"`);if(n[a]=r[e],this.hasIndices&&(n.indices[a]=t[e]),n.groups){this.#i||(this.#i=function(e){let t,n=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,r=new Map,i=0,a=0;for(;t=n.exec(e);){let{0:e,groups:{capture:n,name:o}}=t;"["===e?i++:i?"]"===e&&i--:n&&(a++,o&&r.set(a,o))}return r}(this.source));let i=this.#i.get(o);i&&(n.groups[i]=r[e],this.hasIndices&&(n.indices.groups[i]=t[e]))}}}return n}};class rK{constructor(e,t={}){this.patterns=e,this.options=t;const{forgiving:n=!1,cache:r,regexConstructor:i}=t;if(!i)throw Error("Option `regexConstructor` is not provided");this.regexps=e.map(e=>{if("string"!=typeof e)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}})}regexps;findNextMatchSync(e,t,n){let r="string"==typeof e?e:e.content,i=[];function a(e,t,n=0){return{index:e,captureIndices:t.indices.map(e=>null==e?{start:0xffffffff,end:0xffffffff,length:0}:{start:e[0]+n,end:e[1]+n,length:e[1]-e[0]})}}for(let e=0;e<this.regexps.length;e++){let n=this.regexps[e];if(n)try{n.lastIndex=t;let o=n.exec(r);if(!o)continue;if(o.index===t)return a(e,o,0);i.push([e,o,0])}catch(e){if(this.options.forgiving)continue;throw e}}if(i.length){let e=Math.min(...i.map(e=>e[1].index));for(let[t,n,r]of i)if(n.index===e)return a(t,n,r)}return null}}var rX=function(e={}){let t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=e=>{let n;return(n=function(e,t){var n;let r,i,a,o,s=rd(t),l=(n=n_(e,{flags:s.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:s.rules.captureGroup,singleline:s.rules.singleline},skipBackrefValidation:s.rules.allowOrphanBackrefs,unicodePropertyMap:rm}),r={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...{accuracy:s.accuracy,asciiWordBoundaries:s.rules.asciiWordBoundaries,avoidSubclass:s.avoidSubclass,bestEffortTarget:s.target}},r_(n),i={accuracy:r.accuracy,asciiWordBoundaries:r.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:rc[r.bestEffortTarget]>=rc.ES2024,passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:n.flags.digitIsAscii,spaceIsAscii:n.flags.spaceIsAscii,wordIsAscii:n.flags.wordIsAscii},nq(n,rS,i),o={currentFlags:a={dotAll:n.flags.dotAll,ignoreCase:n.flags.ignoreCase},prevFlags:null,globalFlags:a,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:i.subroutineRefMap},nq(n,rA,o),nq(n,rC,{groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer}),n._originMap=o.groupOriginByCopy,n._strategy=i.strategy,n),c=function(e,t){let n=rd(t),r=rc[n.target]>=rc.ES2024,i=rc[n.target]>=rc.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];nq(e,rM,{getCurrentModI:()=>t.at(-1),popModI(){t.pop()},pushModI(e){t.push(e)},setHasCasedChar(){t.at(-1)?o=!0:s=!0}})}let l={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||o)&&!s)},c=e,u={accuracy:n.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:c,originMap:e._originMap,recursionLimit:a,useAppliedIgnoreCase:!!(!i&&o&&s),useFlagMods:i,useFlagV:r,verbose:n.verbose};function d(e){return u.lastNode=c,c=e,(function(e,t){if(null==e)throw Error(t??"Value expected");return e})(rF[e.type],`Unexpected node type "${e.type}"`)(e,u,d)}let h={pattern:e.body.map(d).join("|"),flags:d(e.flags),options:{...e.options}};return r||(delete h.options.force.v,h.options.disable.v=!0,h.options.unicodeSetsPlugin=null),h._captureTransfers=new Map,h._hiddenCaptures=[],u.captureMap.forEach((e,t)=>{e.hidden&&h._hiddenCaptures.push(t),e.transferTo&&rl(h._captureTransfers,e.transferTo,[]).push(t)}),h}(l,s),u=function(e,t){let n,{hiddenCaptures:r,mode:i}={hiddenCaptures:[],mode:"plugin",...t},a=t?.captureTransfers??new Map;if(!RegExp(n6,"su").test(e))return{pattern:e,captureTransfers:a,hiddenCaptures:r};if("plugin"===i&&nZ(e,n2`\(\?\(DEFINE\)`,nX.DEFAULT))throw Error("DEFINE groups cannot be used with recursion");let o=[],s=nZ(e,n2`\\[1-9]`,nX.DEFAULT),l=new Map,c=[],u=!1,d=0,h=0;for(n4.lastIndex=0;n=n4.exec(e);){let{0:t,groups:{captureName:p,rDepth:f,gRNameOrNum:m,gRDepth:g}}=n;if("["===t)d++;else if(d)"]"===t&&d--;else if(f){if(n8(f),u)throw Error(n7);if(s)throw Error(`${"external"===i?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);let t=e.slice(0,n.index),l=e.slice(n4.lastIndex);if(nZ(l,n6,nX.DEFAULT))throw Error(n7);let c=f-1;e=re(t,l,c,!1,r,o,h),a=rn(a,t,c,o.length,0,h);break}else if(m){n8(g);let d=!1;for(let e of c)if(e.name===m||e.num===+m){if(d=!0,e.hasRecursedWithin)throw Error(n7);break}if(!d)throw Error(n2`Recursive \g cannot be used outside the referenced group "${"external"===i?m:n2`\g<${m}&R=${g}>`}"`);let p=l.get(m),f=function(e,t){let n,r=/\\?./gsu;r.lastIndex=t;let i=e.length,a=0,o=1;for(;n=r.exec(e);){let[e]=n;if("["===e)a++;else if(a)"]"===e&&a--;else if("("===e)o++;else if(")"===e&&!--o){i=n.index;break}}return e.slice(t,i)}(e,p);if(s&&nZ(f,n2`${n9}|\((?!\?)`,nX.DEFAULT))throw Error(`${"external"===i?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);let b=e.slice(p,n.index),E=f.slice(b.length+t.length),y=o.length,T=g-1,v=re(b,E,T,!0,r,o,h);a=rn(a,b,T,o.length-y,y,h);let k=e.slice(0,p),S=e.slice(p+f.length);e=`${k}${v}${S}`,n4.lastIndex+=v.length-t.length-b.length-E.length,c.forEach(e=>e.hasRecursedWithin=!0),u=!0}else if(p)h++,l.set(String(h),n4.lastIndex),l.set(p,n4.lastIndex),c.push({num:h,name:p});else if("("===t[0]){let e="("===t;e&&(h++,l.set(String(h),n4.lastIndex)),c.push(e?{num:h}:{})}else")"===t&&c.pop()}return r.push(...o),{pattern:e,captureTransfers:a,hiddenCaptures:r}}(c.pattern,{captureTransfers:c._captureTransfers,hiddenCaptures:c._hiddenCaptures,mode:"external"}),d=function(e,t){let n,r=t?.hiddenCaptures??[],i=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:i,hiddenCaptures:r};let a="(?:(?=(",o=[0],s=[],l=0,c=0,u=NaN;do{let t;n=!1;let d=0,h=0,p=!1;for(nJ.lastIndex=Number.isNaN(u)?0:u+a.length;t=nJ.exec(e);){let{0:f,index:m,groups:{capturingStart:g,noncapturingStart:b}}=t;if("["===f)d++;else if(d)"]"===f&&d--;else if("(?>"!==f||p){if(p&&b)h++;else if(g)p?h++:(l++,o.push(l+c));else if(")"===f&&p){if(!h){let t=l+ ++c;e=`${e.slice(0,u)}${a}${e.slice(u+3,m)}))<$$${t}>)${e.slice(m+1)}`,n=!0,s.push(t);for(let e=0;e<r.length;e++)r[e]>=t&&r[e]++;if(i.size){let e=new Map;i.forEach((n,r)=>{e.set(r>=t?r+1:r,n.map(e=>e>=t?e+1:e))}),i=e}break}h--}}else u=m,p=!0}}while(n);return r.push(...s),{pattern:e=nQ(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:e,groups:{backrefNum:t,wrappedBackrefNum:n}})=>{if(t){let n=+t;if(n>o.length-1)throw Error(`Backref "${e}" greater than number of captures`);return`\\${o[n]}`}return`\\${n}`},nX.DEFAULT),captureTransfers:i,hiddenCaptures:r}}(function(e){let t;if(!RegExp(`${n0}\\+`).test(e))return{pattern:e};let n=[],r=null,i=null,a="",o=0;for(n1.lastIndex=0;t=n1.exec(e);){let{0:c,index:u,groups:{qBase:d,qMod:h,invalidQ:p}}=t;if("["===c)o||(i=u),o++;else if("]"===c)o?o--:i=null;else if(!o)if("+"===h&&a&&!a.startsWith("(")){if(p)throw Error(`Invalid quantifier "${c}"`);let t=-1;if(/^\{\d+\}$/.test(d)){var s,l;s=e,l=u+d.length,e=s.slice(0,l)+""+s.slice(l+h.length)}else{if(")"===a||"]"===a){let t=")"===a?r:i;if(null===t)throw Error(`Invalid unmatched "${a}"`);e=`${e.slice(0,t)}(?>${e.slice(t,u)}${d})${e.slice(u+c.length)}`}else e=`${e.slice(0,u-a.length)}(?>${a}${d})${e.slice(u+c.length)}`;t+=4}n1.lastIndex+=t}else"("===c[0]?n.push(u):")"===c&&(r=n.length?n.pop():null);a=c}return{pattern:e}}(u.pattern).pattern,{captureTransfers:u.captureTransfers,hiddenCaptures:u.hiddenCaptures}),h={pattern:d.pattern,flags:`${s.hasIndices?"d":""}${s.global?"g":""}${c.flags}${c.options.disable.v?"u":"v"}`};if(s.avoidSubclass){if(s.lazyCompileLength!==1/0)throw Error("Lazy compilation requires subclass")}else{let e=d.hiddenCaptures.sort((e,t)=>e-t),t=Array.from(d.captureTransfers),n=l._strategy,r=h.pattern.length>=s.lazyCompileLength;(e.length||t.length||n||r)&&(h.options={...e.length&&{hiddenCaptures:e},...t.length&&{transfers:t},...n&&{strategy:n},...r&&{lazyCompile:r}})}return h}(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...{target:t.target}})).options?new rY(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)},{createScanner:e=>new rK(e,t),createString:e=>({content:e})}}({forgiving:!0}),rQ=Object.fromEntries(l.flatMap(e=>{var t;return(null!=(t=e.aliases)?t:[]).map(t=>[t,e.id])})),rZ=new Set(Object.keys(d)),rJ=e=>{let t=e.trim().toLowerCase();return rQ[t]||(rZ.has(t),t)},r0=new Map,r1=new Map,r2=new Map,r5=e=>{var t;return"string"==typeof e?e:null!=(t=e.name)?t:"custom"},r6=function(e={}){var t;let n=null!=(t=e.themes)?t:["github-light","github-dark"];return{name:"shiki",type:"code-highlighter",supportsLanguage(e){let t=rJ(e);return rZ.has(t)},getSupportedLanguages:()=>Array.from(rZ),getThemes:()=>n,highlight({code:e,language:t,themes:n},r){let i,a,o=rJ(t),s=[r5(n[0]),r5(n[1])],l=(i=e.slice(0,100),a=e.length>100?e.slice(-100):"",`${o}:${s[0]}:${s[1]}:${e.length}:${i}:${a}`);return r1.has(l)?r1.get(l):(r&&(r2.has(l)||r2.set(l,new Set),r2.get(l).add(r)),((e,t)=>{let n=`${e}-${r5(t[0])}-${r5(t[1])}`;if(r0.has(n))return r0.get(n);let r=nn({themes:t,langs:[e],engine:rX});return r0.set(n,r),r})(rZ.has(o)?o:"text",n).then(t=>{let n=t.getLoadedLanguages().includes(o)?o:"text",r=t.codeToTokens(e,{lang:n,themes:{light:s[0],dark:s[1]}});r1.set(l,r);let i=r2.get(l);if(i){for(let e of i)e(r);r2.delete(l)}}).catch(e=>{console.error("[Streamdown Code] Failed to highlight code:",e),r2.delete(l)}),null)}}}()},73208:(e,t,n)=>{"use strict";n.d(t,{S:()=>o});var r=n(69266),i=n(81490),a=n(7962);let o=r.forwardRef(function(e,t){return(0,a.jsx)(i.F,{ref:t,...e})})},76478:(e,t,n)=>{"use strict";n.d(t,{P:()=>l});var r=n(69266),i=n(1791),a=n(85933),o=n(69611),s=n(16591);let l=r.forwardRef(function(e,t){let{render:n,className:r,style:l,...c}=e,u=(0,s.g)(),{arrowRef:d,side:h,align:p,arrowUncentered:f,arrowStyles:m}=(0,i.s)(),g=u.useState("open"),b=u.useState("instantType");return(0,o.o)("div",e,{state:{open:g,side:h,align:p,uncentered:f,instant:b},ref:[t,d],props:[{style:m,"aria-hidden":!0},c],stateAttributesMapping:a.GW})})},76624:(e,t,n)=>{"use strict";n.d(t,{e:()=>s});var r=n(69266),i=n(1227),a=n(69611),o=n(9542);let s=r.forwardRef(function(e,t){let{render:n,className:r,style:s,...l}=e,c=(0,i.s)(),u=(0,o.e)(l.id);return c.useSyncedValueWithCleanup("titleElementId",u),(0,a.o)("h2",e,{ref:t,props:[{id:u},l]})})},76687:(e,t,n)=>{"use strict";n.d(t,{r:()=>i});let r=e=>t=>t?{[e]:""}:null,i={hasOverflowX:r("data-has-overflow-x"),hasOverflowY:r("data-has-overflow-y"),overflowXStart:r("data-overflow-x-start"),overflowXEnd:r("data-overflow-x-end"),overflowYStart:r("data-overflow-y-start"),overflowYEnd:r("data-overflow-y-end"),cornerHidden:()=>null}},76815:(e,t,n)=>{"use strict";n.d(t,{D:()=>y});var r=n(69266),i=n(66758),a=n(24960),o=n(36158),s=n(6561),l=n(63962);function c({store:e,parentContext:t,isDrawer:n}){let u=e.useState("open"),d=e.useState("disablePointerDismissal"),h=e.useState("modal"),p=e.useState("popupElement"),f=e.useState("floatingRootContext"),[m,g]=r.useState(0),[b,E]=r.useState(0),y=0===m,T=(0,o.s)(f,{outsidePressEvent:()=>e.context.internalBackdropRef.current||e.context.backdropRef.current?"intentional":{mouse:"trap-focus"===h?"sloppy":"intentional",touch:"sloppy"},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||"button"in t&&0!==t.button)return!1;if("touches"in t){if("touchend"===t.type){if(1!==t.changedTouches.length||0!==t.touches.length)return!1}else if(1!==t.touches.length)return!1}let n=(0,s.EW)(t);if(y&&!d){if(h){let t=e.context.internalBackdropRef.current,r=e.context.backdropRef.current;return!t&&!r||t===n||r===n||(0,s.gR)(n,p)&&!n?.hasAttribute("data-base-ui-portal")}return!0}return!1},escapeKey:y});return(0,a.K)(u&&!0===h,p),e.useContextCallback("onNestedDialogOpen",(e,t)=>{g(e),E(t)}),(0,i.g)(()=>(t?.onNestedDialogOpen&&(u?t.onNestedDialogOpen(m+1,b+ +!!n):t.onNestedDialogOpen(0,0)),()=>{t?.onNestedDialogOpen&&u&&t.onNestedDialogOpen(0,0)}),[n,u,m,b,t]),(0,l.i6)(e,{activeTriggerProps:T.reference,inactiveTriggerProps:T.trigger,popupProps:T.floating,nestedOpenDialogCount:m,nestedOpenDrawerCount:b}),null}var u=n(77221),d=n(44596),h=n(15494),p=n(14738);let f={...h.ol,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role};class m extends d.H{constructor(e,t,n){const i=new p.Z;super(function(e,t,n,r=!1){let i={...(0,h.rJ)(),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e};return i.floatingRootContext=(0,h.OB)(t,n,r),i}(e,i,t,n),function(e){return{popupRef:r.createRef(),backdropRef:r.createRef(),internalBackdropRef:r.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}(i),f)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},e||null!=t.trigger||null==this.state.activeTriggerId||(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let n={open:e};(0,l.i)(n,e,t.trigger),this.update(n)}}var g=n(53402),b=n(27944),E=n(7962);function y(e){return function(e,t){let{children:n,open:i,defaultOpen:a=!1,onOpenChange:o,onOpenChangeComplete:s,disablePointerDismissal:d=!1,modal:h=!0,actionsRef:p,handle:f,triggerId:y,defaultTriggerId:T=null}=t,v="alert-dialog"===e,k=(0,u.P)(!0),S={modal:!!v||h,disablePointerDismissal:v||d,nested:null!=k,role:v?"alertdialog":"dialog"},A=(0,l.xp)((e,t)=>new m({open:a,openProp:i,activeTriggerId:T,triggerIdProp:y,...S},e,t),!0);A.useControlledProp("openProp",i),A.useControlledProp("triggerIdProp",y),A.useSyncedValues(S),A.useContextCallback("onOpenChange",o),A.useContextCallback("onOpenChangeComplete",s);let C=A.useState("open"),_=A.useState("mounted"),x=A.useState("payload");(0,l.xs)(A,C),(0,l.tr)(A);let{forceUnmount:w}=(0,l.l$)(C,A);r.useImperativeHandle(p,()=>({unmount:w,close:()=>A.setOpen(!1,(0,g.d)(b.zJ))}),[w,A]);let N=C||_;return(0,E.jsxs)(u.a.Provider,{value:A,children:[f&&(0,E.jsx)(l.Ae,{handle:f,store:A}),N&&(0,E.jsx)(c,{store:A,parentContext:k?.context,isDrawer:"drawer"===e}),"function"==typeof n?n({payload:x}):n]})}("dialog",e)}},77221:(e,t,n)=>{"use strict";n.d(t,{P:()=>o,a:()=>a});var r=n(80417),i=n(69266);let a=i.createContext(void 0);function o(e){let t=i.useContext(a);if(!e&&void 0===t)throw Error((0,r.A)(27));return t}},77949:(e,t,n)=>{"use strict";n.d(t,{N:()=>l,k:()=>s});var r=n(63829),i=n(66758),a=n(18427),o=n(69266);function s(e,t,n){let{toast:i,setTitleId:o,setDescriptionId:s}=(0,a.M)(),l=t??("title"===n?i.title:i.description);return{id:(0,r.B)(e),children:l,type:i.type,setId:"title"===n?o:s}}function l(e,t,n){let r=o.isValidElement(e)&&function e(t){return null!=t&&"boolean"!=typeof t&&""!==t&&(!Array.isArray(t)||t.some(e))}(e.props.children);return(0,i.g)(()=>{if(r)return n(t),()=>{n(e=>e===t?void 0:e)}},[r,t,n]),r?e:null}},79102:(e,t,n)=>{"use strict";n.d(t,{g:()=>l});var r=n(69266),i=n(25327),a=n(79833),o=n(57185),s=n(7962);let l=r.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:l}=(0,a.Y)();return l.useState("mounted")||n?(0,s.jsx)(o.V.Provider,{value:n,children:(0,s.jsx)(i.XF,{ref:t,...r})}):null})},79362:(e,t,n)=>{"use strict";n.d(t,{D8:()=>c,GH:()=>l,uu:()=>u});var r=n(7058),i=n(75645),a=n(34517);class o{constructor(){this.dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()},this.disposeEffect=()=>this.dispose,this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new a.E,this.restTimeout=new a.E,this.handleCloseOptions=void 0}static create(){return new o}}let s=new WeakMap;function l(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&s.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),s.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function c(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=s.get(n);a&&a!==e&&l(a),l(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,s.set(n,e),n.style.pointerEvents="none",r.style.pointerEvents="auto",i.style.pointerEvents="auto"}function u(e){let t=e.context.dataRef.current,n=(0,i.j)(()=>t.hoverInteractionState??o.create()).current;return t.hoverInteractionState||(t.hoverInteractionState=n),(0,r.y)(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}},79718:(e,t,n)=>{"use strict";n.d(t,{i:()=>b});var r=n(69266),i=n(88944),a=n(29666),o=n(68509),s=n(94532),l=n(33914),c=n(34517),u=n(10813),d=n(51378),h=n(6561),p=n(22634),f=n(53402),m=n(27944);let g=a.Md&&o.Fp;function b(e,t={}){let{enabled:n=!0,delay:a}=t,o="rootStore"in e?e.rootStore:e,{events:E,dataRef:y}=o.context,T=r.useRef(!1),v=r.useRef(null),k=r.useRef(!0),S=(0,c.Z)();r.useEffect(()=>{let e=o.select("domReferenceElement");if(!n)return;let t=(0,u.zk)(e);return(0,s.g)((0,i.q)(t,"blur",function(){let e=o.select("domReferenceElement");!o.select("open")&&(0,u.sb)(e)&&e===(0,h.RS)((0,l.R)(e))&&(T.current=!0)}),g&&(0,i.q)(t,"keydown",function(){k.current=!0},!0),g&&(0,i.q)(t,"pointerdown",function(){k.current=!1},!0))},[o,n]),r.useEffect(()=>{if(n)return E.on("openchange",e),()=>{E.off("openchange",e)};function e(e){if(e.reason===m.Ui||e.reason===m.jv){let e=o.select("domReferenceElement");(0,u.vq)(e)&&(v.current=e,T.current=!0)}}},[E,n,o]);let A=r.useMemo(()=>{function e(){T.current=!1,v.current=null}return{onMouseLeave(){e()},onFocus(t){let n=t.currentTarget;if(T.current){if(v.current===n)return;e()}let r=(0,h.EW)(t.nativeEvent);if((0,u.vq)(r)){if(g&&!t.relatedTarget){if(!k.current&&!(0,p.$u)(r))return}else if(!(0,p.em)(r))return}let i=(0,p.Hi)(t.relatedTarget,o.context.triggerElements),{nativeEvent:s,currentTarget:l}=t,c="function"==typeof a?a():a;o.select("open")&&i||0===c||void 0===c?o.setOpen(!0,(0,f.d)(m.F4,s,l)):S.start(c,()=>{T.current||o.setOpen(!0,(0,f.d)(m.F4,s,l))})},onBlur(t){e();let n=t.relatedTarget,r=t.nativeEvent,i=(0,u.vq)(n)&&n.hasAttribute((0,d.F)("focus-guard"))&&"outside"===n.getAttribute("data-type");S.start(0,()=>{let e=o.select("domReferenceElement"),t=(0,h.RS)((0,l.R)(e));if(!n&&t===e||(0,h.gR)(y.current.floatingContext?.refs.floating.current,t)||(0,h.gR)(e,t)||i)return;let a=n??t;(0,p.Hi)(a,o.context.triggerElements)||o.setOpen(!1,(0,f.d)(m.F4,r))})}}},[y,a,o,S]);return r.useMemo(()=>n?{reference:A,trigger:A}:{},[n,A])}},79833:(e,t,n)=>{"use strict";n.d(t,{J:()=>a,Y:()=>o});var r=n(80417),i=n(69266);let a=i.createContext(void 0);function o(e){let t=i.useContext(a);if(void 0===t&&!e)throw Error((0,r.A)(36));return t}},80168:(e,t,n)=>{"use strict";n.d(t,{U:()=>E});var r=n(69266),i=n(18652),a=n(66758),o=n(52333),s=n(1227),l=n(35083),c=n(95522),u=n(17567),d=n(33099),h=n(27944),p=n(73146),f=n(29815),m=n(60601),g=n(96909),b=n(7962);let E=r.forwardRef(function(e,t){let{render:n,className:E,style:y,anchor:T,positionMethod:v,side:k,align:S,sideOffset:A,alignOffset:C,collisionBoundary:_="clipping-ancestors",collisionPadding:x,arrowPadding:w,sticky:N,disableAnchorTracking:I=!1,collisionAvoidance:R=p.Pe,...O}=e,D=(0,s.s)(),P=(0,u.A)(),L=(0,o.fI)(),M=D.useState("floatingRootContext"),F=D.useState("mounted"),B=D.useState("open"),H=D.useState("openChangeReason"),U=D.useState("activeTriggerElement"),j=D.useState("modal"),G=D.useState("openMethod"),z=D.useState("positionerElement"),$=D.useState("instantType"),W=D.useState("transitionStatus"),q=D.useState("adaptiveOrigin"),V=r.useRef(null),Y=(0,f.V)(z),K=(0,c.s)({anchor:T,floatingRootContext:M,positionMethod:v,mounted:F,side:k,sideOffset:A,align:S,alignOffset:C,arrowPadding:w,collisionBoundary:_,collisionPadding:x,sticky:N,disableAnchorTracking:I,keepMounted:P,nodeId:L,collisionAvoidance:R,adaptiveOrigin:q}),X=M.useState("domReferenceElement");(0,a.g)(()=>{let e=V.current;if(X&&(V.current=X),e&&X&&X!==e){D.set("instantType",void 0);let e=new AbortController;return Y(()=>{D.set("instantType","trigger-change")},e.signal),()=>{e.abort()}}},[X,Y,D]);let Q=!0===j&&H!==h.N7;(0,g.G)(B&&Q,"touch"===G,z,U);let Z=D.useStateSetter("positionerElement"),J={open:B,side:K.side,align:K.align,anchorHidden:K.anchorHidden,instant:$},ee=(0,m.i)(e,J,{styles:K.positionerStyles,transitionStatus:W,props:O,refs:[t,Z],hidden:!F,inert:!B});return(0,b.jsxs)(l.f.Provider,{value:K,children:[F&&Q&&(0,b.jsx)(d.W,{inert:(0,i.Y)(!B),cutout:U}),(0,b.jsx)(o.$c,{id:L,children:ee})]})})},80354:(e,t,n)=>{"use strict";n.d(t,{d:()=>a});var r=n(8163),i=n(97591);let a={...r.c,...i.G}},81385:(e,t,n)=>{"use strict";n.d(t,{m:()=>a,p:()=>o});var r=n(80417),i=n(69266);let a=i.createContext(void 0);function o(){let e=i.useContext(a);if(void 0===e)throw Error((0,r.A)(26));return e}},81490:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var r=n(69266),i=n(44911),a=n(25327),o=n(7962);let s=r.forwardRef(function(e,t){let{children:n,container:s,className:l,render:c,style:u,...d}=e,{node:h,subtree:p}=(0,a.CK)({container:s,ref:t,componentProps:e,elementProps:d});return p||h?(0,o.jsxs)(r.Fragment,{children:[p,h&&i.createPortal(n,h)]}):null})},82028:function(e){e.exports=function(){"use strict";function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?t(Object(i),!0).forEach(function(t){var n,a;n=t,a=i[t],(n=r(n))in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function r(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a,o={backdrop:!0,button:!0,navbar:!0,title:!0,toolbar:!0,className:"",container:"body",filter:null,fullscreen:!0,inheritedAttributes:["crossOrigin","decoding","isMap","loading","referrerPolicy","sizes","srcset","useMap"],initialCoverage:.9,initialViewIndex:0,inline:!1,interval:5e3,keyboard:!0,focus:!0,loading:!0,loop:!0,minWidth:200,minHeight:100,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,slideOnTouch:!0,toggleOnDblclick:!0,tooltip:!0,transition:!0,zIndex:2015,zIndexInline:0,zoomRatio:.1,minZoomRatio:.01,maxZoomRatio:100,url:"src",ready:null,show:null,shown:null,hide:null,hidden:null,view:null,viewed:null,move:null,moved:null,rotate:null,rotated:null,scale:null,scaled:null,zoom:null,zoomed:null,play:null,stop:null},s="u">typeof window&&void 0!==window.document,l=s?window:{},c=!!s&&!!l.document.documentElement&&"ontouchstart"in l.document.documentElement,u=!!s&&"PointerEvent"in l,d="viewer",h="move",p="switch",f="zoom",m="".concat(d,"-active"),g="".concat(d,"-close"),b="".concat(d,"-fade"),E="".concat(d,"-fixed"),y="".concat(d,"-fullscreen"),T="".concat(d,"-fullscreen-exit"),v="".concat(d,"-hide"),k="".concat(d,"-hide-md-down"),S="".concat(d,"-hide-sm-down"),A="".concat(d,"-hide-xs-down"),C="".concat(d,"-in"),_="".concat(d,"-invisible"),x="".concat(d,"-loading"),w="".concat(d,"-move"),N="".concat(d,"-open"),I="".concat(d,"-show"),R="".concat(d,"-transition"),O="click",D="dblclick",P="dragstart",L="focusin",M="keydown",F="load",B="error",H=u?"pointerdown":c?"touchstart":"mousedown",U=u?"pointermove":c?"touchmove":"mousemove",j=u?"pointerup pointercancel":c?"touchend touchcancel":"mouseup",G="resize",z="transitionend",$="wheel",W="ready",q="show",V="shown",Y="hide",K="hidden",X="view",Q="viewed",Z="move",J="moved",ee="rotate",et="rotated",en="scale",er="scaled",ei="zoom",ea="zoomed",eo="play",es="stop",el="".concat(d,"Action"),ec=/\s\s*/,eu=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function ed(e){return"string"==typeof e}var eh=Number.isNaN||l.isNaN;function ep(e){return"number"==typeof e&&!eh(e)}function ef(e){return void 0===e}function em(e){return"object"===i(e)&&null!==e}var eg=Object.prototype.hasOwnProperty;function eb(e){if(!em(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&eg.call(n,"isPrototypeOf")}catch(e){return!1}}function eE(e){return"function"==typeof e}function ey(e,t){if(e&&eE(t))if(Array.isArray(e)||ep(e.length)){var n,r=e.length;for(n=0;n<r&&!1!==t.call(e,e[n],n,e);n+=1);}else em(e)&&Object.keys(e).forEach(function(n){t.call(e,e[n],n,e)});return e}var eT=Object.assign||function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return em(e)&&n.length>0&&n.forEach(function(t){em(t)&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e},ev=/^(?:width|height|left|top|marginLeft|marginTop)$/;function ek(e,t){var n=e.style;ey(t,function(e,t){ev.test(t)&&ep(e)&&(e+="px"),n[t]=e})}function eS(e,t){return!!e&&!!t&&(e.classList?e.classList.contains(t):e.className.indexOf(t)>-1)}function eA(e,t){if(e&&t){if(ep(e.length))return void ey(e,function(e){eA(e,t)});if(e.classList)return void e.classList.add(t);var n=e.className.trim();n?0>n.indexOf(t)&&(e.className="".concat(n," ").concat(t)):e.className=t}}function eC(e,t){if(e&&t){if(ep(e.length))return void ey(e,function(e){eC(e,t)});if(e.classList)return void e.classList.remove(t);e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,""))}}function e_(e,t,n){if(t){if(ep(e.length))return void ey(e,function(e){e_(e,t,n)});n?eA(e,t):eC(e,t)}}var ex=/([a-z\d])([A-Z])/g;function ew(e){return e.replace(ex,"$1-$2").toLowerCase()}function eN(e,t){return em(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(ew(t)))}function eI(e,t,n){em(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(ew(t)),n)}var eR=function(){var e=!1;if(s){var t=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(e){t=e}});l.addEventListener("test",n,r),l.removeEventListener("test",n,r)}return e}();function eO(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;t.trim().split(ec).forEach(function(t){if(!eR){var a=e.listeners;a&&a[t]&&a[t][n]&&(i=a[t][n],delete a[t][n],0===Object.keys(a[t]).length&&delete a[t],0===Object.keys(a).length&&delete e.listeners)}e.removeEventListener(t,i,r)})}function eD(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;t.trim().split(ec).forEach(function(t){if(r.once&&!eR){var a=e.listeners,o=void 0===a?{}:a;i=function(){delete o[t][n],e.removeEventListener(t,i,r);for(var a=arguments.length,s=Array(a),l=0;l<a;l++)s[l]=arguments[l];n.apply(e,s)},o[t]||(o[t]={}),o[t][n]&&e.removeEventListener(t,o[t][n],r),o[t][n]=i,e.listeners=o}e.addEventListener(t,i,r)})}function eP(e,t,r,i){var a;return eE(Event)&&eE(CustomEvent)?a=new CustomEvent(t,n({bubbles:!0,cancelable:!0,detail:r},i)):(a=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,r),e.dispatchEvent(a)}function eL(e){var t=e.rotate,n=e.scaleX,r=e.scaleY,i=e.translateX,a=e.translateY,o=[];ep(i)&&0!==i&&o.push("translateX(".concat(i,"px)")),ep(a)&&0!==a&&o.push("translateY(".concat(a,"px)")),ep(t)&&0!==t&&o.push("rotate(".concat(t,"deg)")),ep(n)&&1!==n&&o.push("scaleX(".concat(n,")")),ep(r)&&1!==r&&o.push("scaleY(".concat(r,")"));var s=o.length?o.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}var eM=l.navigator&&/Version\/\d+(\.\d+)+?\s+Safari/i.test(l.navigator.userAgent);function eF(e,t,n){var r=document.createElement("img");if(e.naturalWidth&&!eM)return n(e.naturalWidth,e.naturalHeight),r;var i=document.body||document.documentElement;return r.onload=function(){n(r.width,r.height),eM||i.removeChild(r)},ey(t.inheritedAttributes,function(t){var n=e.getAttribute(t);null!==n&&r.setAttribute(t,n)}),r.src=e.src,eM||(r.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",i.appendChild(r)),r}function eB(e){switch(e){case 2:return A;case 3:return S;case 4:return k;default:return""}}function eH(e,t){var r=e.pageX,i=e.pageY,a={endX:r,endY:i};return t?a:n({timeStamp:Date.now(),startX:r,startY:i},a)}var eU=l.Viewer,ej=(a=-1,function(){return a+=1}),eG=function(){var t,n;function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof r))throw TypeError("Cannot call a class as a function");if(!e||1!==e.nodeType)throw Error("The first argument is required and must be an element.");this.element=e,this.options=eT({},o,eb(t)&&t),this.action=!1,this.fading=!1,this.fulled=!1,this.hiding=!1,this.imageClicked=!1,this.imageData={},this.index=this.options.initialViewIndex,this.isImg=!1,this.isShown=!1,this.length=0,this.moving=!1,this.played=!1,this.playing=!1,this.pointers={},this.ready=!1,this.rotating=!1,this.scaling=!1,this.showing=!1,this.timeout=!1,this.tooltipping=!1,this.viewed=!1,this.viewing=!1,this.wheeling=!1,this.zooming=!1,this.pointerMoved=!1,this.id=ej(),this.init()}return t=[{key:"init",value:function(){var e=this,t=this.element,n=this.options;if(!t[d]){t[d]=this,n.focus&&!n.keyboard&&(n.focus=!1);var r="img"===t.localName,i=[];if(ey(r?[t]:t.querySelectorAll("img"),function(t){eE(n.filter)?n.filter.call(e,t)&&i.push(t):e.getImageURL(t)&&i.push(t)}),this.isImg=r,this.length=i.length,this.images=i,this.initBody(),ef(document.createElement(d).style.transition)&&(n.transition=!1),n.inline){var a=0,o=function(){if((a+=1)===e.length){var t;e.initializing=!1,e.delaying={abort:function(){clearTimeout(t)}},t=setTimeout(function(){e.delaying=!1,e.build()},0)}};this.initializing={abort:function(){ey(i,function(e){e.complete||(eO(e,F,o),eO(e,B,o))})}},ey(i,function(e){if(e.complete)o();else{var t,n;eD(e,F,t=function(){eO(e,B,n),o()},{once:!0}),eD(e,B,n=function(){eO(e,F,t),o()},{once:!0})}})}else eD(t,O,this.onStart=function(t){var r=t.target;"img"===r.localName&&(!eE(n.filter)||n.filter.call(e,r))&&e.view(e.images.indexOf(r))})}}},{key:"build",value:function(){if(!this.ready){var e=this.element,t=this.options,n=e.parentNode,r=document.createElement("div");r.innerHTML='<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>';var i=r.querySelector(".".concat(d,"-container")),a=i.querySelector(".".concat(d,"-title")),o=i.querySelector(".".concat(d,"-toolbar")),s=i.querySelector(".".concat(d,"-navbar")),l=i.querySelector(".".concat(d,"-button")),c=i.querySelector(".".concat(d,"-canvas"));if(this.parent=n,this.viewer=i,this.title=a,this.toolbar=o,this.navbar=s,this.button=l,this.canvas=c,this.footer=i.querySelector(".".concat(d,"-footer")),this.tooltipBox=i.querySelector(".".concat(d,"-tooltip")),this.player=i.querySelector(".".concat(d,"-player")),this.list=i.querySelector(".".concat(d,"-list")),i.id="".concat(d).concat(this.id),a.id="".concat(d,"Title").concat(this.id),eA(a,t.title?eB(Array.isArray(t.title)?t.title[0]:t.title):v),eA(s,t.navbar?eB(t.navbar):v),e_(l,v,!t.button),t.keyboard&&l.setAttribute("tabindex",0),t.backdrop&&(eA(i,"".concat(d,"-backdrop")),t.inline||"static"===t.backdrop||eI(c,el,"hide")),ed(t.className)&&t.className&&t.className.split(ec).forEach(function(e){eA(i,e)}),t.toolbar){var u=document.createElement("ul"),h=eb(t.toolbar),p=eu.slice(0,3),f=eu.slice(7,9),m=eu.slice(9);h||eA(o,eB(t.toolbar)),ey(h?t.toolbar:eu,function(e,n){var r=h&&eb(e),i=h?ew(n):e,a=r&&!ef(e.show)?e.show:e;if(a&&(t.zoomable||-1===p.indexOf(i))&&(t.rotatable||-1===f.indexOf(i))&&(t.scalable||-1===m.indexOf(i))){var o=r&&!ef(e.size)?e.size:e,s=r&&!ef(e.click)?e.click:e,l=document.createElement("li");t.keyboard&&l.setAttribute("tabindex",0),l.setAttribute("role","button"),eA(l,"".concat(d,"-").concat(i)),eE(s)||eI(l,el,i),ep(a)&&eA(l,eB(a)),-1!==["small","large"].indexOf(o)?eA(l,"".concat(d,"-").concat(o)):"play"===i&&eA(l,"".concat(d,"-large")),eE(s)&&eD(l,O,s),u.appendChild(l)}}),o.appendChild(u)}else eA(o,v);if(!t.rotatable){var T=o.querySelectorAll('li[class*="rotate"]');eA(T,_),ey(T,function(e){o.appendChild(e)})}if(t.inline)eA(l,y),ek(i,{zIndex:t.zIndexInline}),"static"===window.getComputedStyle(n).position&&ek(n,{position:"relative"}),n.insertBefore(i,e.nextSibling);else{eA(l,g),eA(i,E),eA(i,b),eA(i,v),ek(i,{zIndex:t.zIndex});var k=t.container;ed(k)&&(k=e.ownerDocument.querySelector(k)),k||(k=this.body),k.appendChild(i)}if(t.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,eE(t.ready)&&eD(e,W,t.ready,{once:!0}),!1===eP(e,W)){this.ready=!1;return}this.ready&&t.inline&&this.view(this.index)}}}],n=[{key:"noConflict",value:function(){return window.Viewer=eU,r}},{key:"setDefaults",value:function(e){eT(o,eb(e)&&e)}}],t&&e(r.prototype,t),n&&e(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}();return eT(eG.prototype,{render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initBody:function(){var e=this.element.ownerDocument,t=e.body||e.documentElement;this.body=t,this.scrollbarWidth=window.innerWidth-e.documentElement.clientWidth,this.initialBodyPaddingRight=t.style.paddingRight,this.initialBodyComputedPaddingRight=window.getComputedStyle(t).paddingRight},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var e,t=this.options,n=this.parent;t.inline&&(e={width:Math.max(n.offsetWidth,t.minWidth),height:Math.max(n.offsetHeight,t.minHeight)},this.parentData=e),(this.fulled||!e)&&(e=this.containerData),this.viewerData=eT({},e)},renderViewer:function(){this.options.inline&&!this.fulled&&ek(this.viewer,this.viewerData)},initList:function(){var e=this,t=this.element,n=this.options,r=this.list,i=[];r.innerHTML="",ey(this.images,function(t,a){var o=t.src,s=t.alt||(ed(o)?decodeURIComponent(o.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""),l=e.getImageURL(t);if(o||l){var c=document.createElement("li"),u=document.createElement("img");ey(n.inheritedAttributes,function(e){var n=t.getAttribute(e);null!==n&&u.setAttribute(e,n)}),n.navbar&&(u.src=o||l),u.alt=s,u.setAttribute("data-original-url",l||o),c.setAttribute("data-index",a),c.setAttribute("data-viewer-action","view"),c.setAttribute("role","button"),n.keyboard&&c.setAttribute("tabindex",0),c.appendChild(u),r.appendChild(c),i.push(c)}}),this.items=i,ey(i,function(t){var r,i,a=t.firstElementChild;eI(a,"filled",!0),n.loading&&eA(t,x),eD(a,F,r=function(r){eO(a,B,i),n.loading&&eC(t,x),e.loadImage(r)},{once:!0}),eD(a,B,i=function(){eO(a,F,r),n.loading&&eC(t,x)},{once:!0})}),n.transition&&eD(t,Q,function(){eA(r,R)},{once:!0})},renderList:function(){var e=this.index,t=this.items[e];if(t){var n=t.nextElementSibling,r=parseInt(window.getComputedStyle(n||t).marginLeft,10),i=t.offsetWidth,a=i+r;ek(this.list,eT({width:a*this.length-r},eL({translateX:(this.viewerData.width-i)/2-a*e})))}},resetList:function(){var e=this.list;e.innerHTML="",eC(e,R),ek(e,eT({width:0},eL({translateX:0})))},initImage:function(e){var t,n=this,r=this.options,i=this.image,a=this.viewerData,o=this.footer.offsetHeight,s=a.width,l=Math.max(a.height-o,o),c=this.imageData||{};this.imageInitializing={abort:function(){t.onload=null}},t=eF(i,r,function(t,i){var a=t/i,o=Math.max(0,Math.min(1,r.initialCoverage)),u=s,d=l;n.imageInitializing=!1,l*a>s?d=s/a:u=l*a;var h=(s-(u=Math.min(u*(o=ep(o)?o:.9),t)))/2,p=(l-(d=Math.min(d*o,i)))/2,f={left:h,top:p,x:h,y:p,width:u,height:d,oldRatio:1,ratio:u/t,aspectRatio:a,naturalWidth:t,naturalHeight:i},m=eT({},f);r.rotatable&&(f.rotate=c.rotate||0,m.rotate=0),r.scalable&&(f.scaleX=c.scaleX||1,f.scaleY=c.scaleY||1,m.scaleX=1,m.scaleY=1),n.imageData=f,n.initialImageData=m,e&&e()})},renderImage:function(e){var t=this,n=this.image,r=this.imageData;if(ek(n,eT({width:r.width,height:r.height,marginLeft:r.x,marginTop:r.y},eL(r))),e)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&eS(n,R)){var i=function(){t.imageRendering=!1,e()};this.imageRendering={abort:function(){eO(n,z,i)}},eD(n,z,i,{once:!0})}else e()},resetImage:function(){var e=this.image;e&&(this.viewing&&this.viewing.abort(),e.parentNode.removeChild(e),this.image=null,this.title.innerHTML="")}},{bind:function(){var e=this.options,t=this.viewer,n=this.canvas,r=this.element.ownerDocument;eD(t,O,this.onClick=this.click.bind(this)),eD(t,P,this.onDragStart=this.dragstart.bind(this)),eD(n,H,this.onPointerDown=this.pointerdown.bind(this)),eD(r,U,this.onPointerMove=this.pointermove.bind(this)),eD(r,j,this.onPointerUp=this.pointerup.bind(this)),eD(r,M,this.onKeyDown=this.keydown.bind(this)),eD(window,G,this.onResize=this.resize.bind(this)),e.zoomable&&e.zoomOnWheel&&eD(t,$,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleOnDblclick&&eD(n,D,this.onDblclick=this.dblclick.bind(this))},unbind:function(){var e=this.options,t=this.viewer,n=this.canvas,r=this.element.ownerDocument;eO(t,O,this.onClick),eO(t,P,this.onDragStart),eO(n,H,this.onPointerDown),eO(r,U,this.onPointerMove),eO(r,j,this.onPointerUp),eO(r,M,this.onKeyDown),eO(window,G,this.onResize),e.zoomable&&e.zoomOnWheel&&eO(t,$,this.onWheel,{passive:!1,capture:!0}),e.toggleOnDblclick&&eO(n,D,this.onDblclick)}},{click:function(e){var t=this.options,n=this.imageData,r=e.target,i=eN(r,el);switch(!i&&"img"===r.localName&&"li"===r.parentElement.localName&&(i=eN(r=r.parentElement,el)),c&&e.isTrusted&&r===this.canvas&&clearTimeout(this.clickCanvasTimeout),i){case"mix":this.played?this.stop():t.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.pointerMoved||this.hide();break;case"view":this.view(eN(r,"index"));break;case"zoom-in":this.zoom(.1,!0);break;case"zoom-out":this.zoom(-.1,!0);break;case"one-to-one":this.toggle();break;case"reset":this.reset();break;case"prev":this.prev(t.loop);break;case"play":this.play(t.fullscreen);break;case"next":this.next(t.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-n.scaleX||-1);break;case"flip-vertical":this.scaleY(-n.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(e){e.preventDefault(),this.viewed&&e.target===this.image&&(c&&e.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.toggle(e.isTrusted?e:e.detail&&e.detail.originalEvent))},load:function(){var e=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var t=this.element,n=this.options,r=this.image,i=this.index,a=this.viewerData;eC(r,_),n.loading&&eC(this.canvas,x),r.style.cssText="height:0;"+"margin-left:".concat(a.width/2,"px;")+"margin-top:".concat(a.height/2,"px;")+"max-width:none!important;position:relative;width:0;",this.initImage(function(){e_(r,w,n.movable),e_(r,R,n.transition),e.renderImage(function(){e.viewed=!0,e.viewing=!1,eE(n.viewed)&&eD(t,Q,n.viewed,{once:!0}),eP(t,Q,{originalImage:e.images[i],index:i,image:r},{cancelable:!1})})})},loadImage:function(e){var t=e.target,n=t.parentNode,r=n.offsetWidth||30,i=n.offsetHeight||50,a=!!eN(t,"filled");eF(t,this.options,function(e,n){var o=e/n,s=r,l=i;i*o>r?a?s=i*o:l=r/o:a?l=r/o:s=i*o,ek(t,eT({width:s,height:l},eL({translateX:(r-s)/2,translateY:(i-l)/2})))})},keydown:function(e){var t=this.options;if(t.keyboard){var n=e.keyCode||e.which||e.charCode;if(13===n&&this.viewer.contains(e.target)&&this.click(e),this.fulled)switch(n){case 27:this.played?this.stop():t.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.played&&this.playing?this.playing.prev():this.prev(t.loop);break;case 38:e.preventDefault(),this.zoom(t.zoomRatio,!0);break;case 39:this.played&&this.playing?this.playing.next():this.next(t.loop);break;case 40:e.preventDefault(),this.zoom(-t.zoomRatio,!0);break;case 48:case 49:e.ctrlKey&&(e.preventDefault(),this.toggle())}}},dragstart:function(e){"img"===e.target.localName&&e.preventDefault()},pointerdown:function(e){var t=this.options,n=this.pointers,r=e.buttons,i=e.button;if(this.pointerMoved=!1,!(!this.viewed||this.showing||this.viewing||this.hiding||("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&(ep(r)&&1!==r||ep(i)&&0!==i||e.ctrlKey))){e.preventDefault(),e.changedTouches?ey(e.changedTouches,function(e){n[e.identifier]=eH(e)}):n[e.pointerId||0]=eH(e);var a=!!t.movable&&h;t.zoomOnTouch&&t.zoomable&&Object.keys(n).length>1?a=f:t.slideOnTouch&&("touch"===e.pointerType||"touchstart"===e.type)&&this.isSwitchable()&&(a=p),t.transition&&(a===h||a===f)&&eC(this.image,R),this.action=a}},pointermove:function(e){var t=this.pointers,n=this.action;this.viewed&&n&&(e.preventDefault(),e.changedTouches?ey(e.changedTouches,function(e){eT(t[e.identifier]||{},eH(e,!0))}):eT(t[e.pointerId||0]||{},eH(e,!0)),this.change(e))},pointerup:function(e){var t,n=this,r=this.options,i=this.action,a=this.pointers;e.changedTouches?ey(e.changedTouches,function(e){t=a[e.identifier],delete a[e.identifier]}):(t=a[e.pointerId||0],delete a[e.pointerId||0]),i&&(e.preventDefault(),r.transition&&(i===h||i===f)&&eA(this.image,R),this.action=!1,c&&i!==f&&t&&Date.now()-t.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),r.toggleOnDblclick&&this.viewed&&e.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout(function(){eP(n.image,D,{originalEvent:e})},50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout(function(){n.imageClicked=!1},500)):(this.imageClicked=!1,r.backdrop&&"static"!==r.backdrop&&e.target===this.canvas&&(this.clickCanvasTimeout=setTimeout(function(){eP(n.canvas,O,{originalEvent:e})},50)))))},resize:function(){var e=this;if(this.isShown&&!this.hiding&&(this.fulled&&(this.close(),this.initBody(),this.open()),this.initContainer(),this.initViewer(),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){e.renderImage()}),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement))return void this.stop();ey(this.player.getElementsByTagName("img"),function(t){eD(t,F,e.loadImage.bind(e),{once:!0}),eP(t,F)})}},wheel:function(e){var t=this;if(this.viewed&&(e.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout(function(){t.wheeling=!1},50);var n=Number(this.options.zoomRatio)||.1,r=1;e.deltaY?r=e.deltaY>0?1:-1:e.wheelDelta?r=-e.wheelDelta/120:e.detail&&(r=e.detail>0?1:-1),this.zoom(-r*n,!0,null,e)}}},{show:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.element,n=this.options;if(n.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(e),this;if(eE(n.show)&&eD(t,q,n.show,{once:!0}),!1===eP(t,q)||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var r=this.viewer;if(eC(r,v),r.setAttribute("role","dialog"),r.setAttribute("aria-labelledby",this.title.id),r.setAttribute("aria-modal",!0),r.removeAttribute("aria-hidden"),n.transition&&!e){var i=this.shown.bind(this);this.transitioning={abort:function(){eO(r,z,i),eC(r,C)}},eA(r,R),r.initialOffsetWidth=r.offsetWidth,eD(r,z,i,{once:!0}),eA(r,C)}else eA(r,C),this.shown();return this},hide:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.element,r=this.options;if(r.inline||this.hiding||!(this.isShown||this.showing)||(eE(r.hide)&&eD(n,Y,r.hide,{once:!0}),!1===eP(n,Y)))return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var i=this.viewer,a=this.image,o=function(){eC(i,C),e.hidden()};if(r.transition&&!t){var s=function(t){t&&t.target===i&&(eO(i,z,s),e.hidden())},l=function(){eS(i,R)?(eD(i,z,s),eC(i,C)):o()};this.transitioning={abort:function(){e.viewed&&eS(a,R)?eO(a,z,l):eS(i,R)&&eO(i,z,s)}},this.viewed&&eS(a,R)?(eD(a,z,l,{once:!0}),this.zoomTo(0,!1,null,null,!0)):l()}else o();return this},view:function(){var e,t,n=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.initialViewIndex;if(r=Number(r)||0,this.hiding||this.played||r<0||r>=this.length||this.viewed&&r===this.index)return this;if(!this.isShown)return this.index=r,this.show();this.viewing&&this.viewing.abort();var i=this.element,a=this.options,o=this.title,s=this.canvas,l=this.items[r],c=l.querySelector("img"),u=eN(c,"originalUrl"),d=c.getAttribute("alt"),h=document.createElement("img");if(ey(a.inheritedAttributes,function(e){var t=c.getAttribute(e);null!==t&&h.setAttribute(e,t)}),h.src=u,h.alt=d,eE(a.view)&&eD(i,X,a.view,{once:!0}),!1===eP(i,X,{originalImage:this.images[r],index:r,image:h})||!this.isShown||this.hiding||this.played)return this;var p=this.items[this.index];p&&(eC(p,m),p.removeAttribute("aria-selected")),eA(l,m),l.setAttribute("aria-selected",!0),a.focus&&l.focus(),this.image=h,this.viewed=!1,this.index=r,this.imageData={},eA(h,_),a.loading&&eA(s,x),s.innerHTML="",s.appendChild(h),this.renderList(),o.innerHTML="";var f=function(){var e,t=n.imageData,r=Array.isArray(a.title)?a.title[1]:a.title;o.innerHTML=ed(e=eE(r)?r.call(n,h,t):"".concat(d," (").concat(t.naturalWidth," \xd7 ").concat(t.naturalHeight,")"))?e.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):e};return eD(i,Q,f,{once:!0}),this.viewing={abort:function(){eO(i,Q,f),h.complete?n.imageRendering?n.imageRendering.abort():n.imageInitializing&&n.imageInitializing.abort():(h.src="",eO(h,F,e),n.timeout&&clearTimeout(n.timeout))}},h.complete?this.load():(eD(h,F,e=function(){eO(h,B,t),n.load()},{once:!0}),eD(h,B,t=function(){eO(h,F,e),n.timeout&&(clearTimeout(n.timeout),n.timeout=!1),eC(h,_),a.loading&&eC(n.canvas,x)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){eC(h,_),n.timeout=!1},1e3)),this},prev:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.index-1;return t<0&&(t=e?this.length-1:0),this.view(t),this},next:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.length-1,n=this.index+1;return n>t&&(n=e?0:t),this.view(n),this},move:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.imageData;return this.moveTo(ef(e)?e:n.x+Number(e),ef(t)?t:n.y+Number(t)),this},moveTo:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this.element,a=this.options,o=this.imageData;if(e=Number(e),n=Number(n),this.viewed&&!this.played&&a.movable){var s=o.x,l=o.y,c=!1;if(ep(e)?c=!0:e=s,ep(n)?c=!0:n=l,c){if(eE(a.move)&&eD(i,Z,a.move,{once:!0}),!1===eP(i,Z,{x:e,y:n,oldX:s,oldY:l,originalEvent:r}))return this;o.x=e,o.y=n,o.left=e,o.top=n,this.moving=!0,this.renderImage(function(){t.moving=!1,eE(a.moved)&&eD(i,J,a.moved,{once:!0}),eP(i,J,{x:e,y:n,oldX:s,oldY:l,originalEvent:r},{cancelable:!1})})}}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e)),this},rotateTo:function(e){var t=this,n=this.element,r=this.options,i=this.imageData;if(ep(e=Number(e))&&this.viewed&&!this.played&&r.rotatable){var a=i.rotate;if(eE(r.rotate)&&eD(n,ee,r.rotate,{once:!0}),!1===eP(n,ee,{degree:e,oldDegree:a}))return this;i.rotate=e,this.rotating=!0,this.renderImage(function(){t.rotating=!1,eE(r.rotated)&&eD(n,et,r.rotated,{once:!0}),eP(n,et,{degree:e,oldDegree:a},{cancelable:!1})})}return this},scaleX:function(e){return this.scale(e,this.imageData.scaleY),this},scaleY:function(e){return this.scale(this.imageData.scaleX,e),this},scale:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=this.element,i=this.options,a=this.imageData;if(e=Number(e),n=Number(n),this.viewed&&!this.played&&i.scalable){var o=a.scaleX,s=a.scaleY,l=!1;if(ep(e)?l=!0:e=o,ep(n)?l=!0:n=s,l){if(eE(i.scale)&&eD(r,en,i.scale,{once:!0}),!1===eP(r,en,{scaleX:e,scaleY:n,oldScaleX:o,oldScaleY:s}))return this;a.scaleX=e,a.scaleY=n,this.scaling=!0,this.renderImage(function(){t.scaling=!1,eE(i.scaled)&&eD(r,er,i.scaled,{once:!0}),eP(r,er,{scaleX:e,scaleY:n,oldScaleX:o,oldScaleY:s},{cancelable:!1})})}}return this},zoom:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=this.imageData;return e=(e=Number(e))<0?1/(1-e):1+e,this.zoomTo(i.width*e/i.naturalWidth,t,n,r),this},zoomTo:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=this.element,s=this.options,l=this.pointers,c=this.imageData,u=c.x,d=c.y,h=c.width,p=c.height,f=c.naturalWidth,m=c.naturalHeight;if(ep(e=Math.max(0,e))&&this.viewed&&!this.played&&(a||s.zoomable)){if(!a){var g=Math.max(.01,s.minZoomRatio),b=Math.min(100,s.maxZoomRatio);e=Math.min(Math.max(e,g),b)}if(i)switch(i.type){case"wheel":s.zoomRatio>=.055&&e>.95&&e<1.05&&(e=1);break;case"pointermove":case"touchmove":case"mousemove":e>.99&&e<1.01&&(e=1)}var E=f*e,y=m*e,T=E-h,v=y-p,k=c.ratio;if(eE(s.zoom)&&eD(o,ei,s.zoom,{once:!0}),!1===eP(o,ei,{ratio:e,oldRatio:k,originalEvent:i}))return this;if(this.zooming=!0,i){var S,A,C,_,x={left:(S=this.viewer.getBoundingClientRect()).left+(window.pageXOffset-document.documentElement.clientLeft),top:S.top+(window.pageYOffset-document.documentElement.clientTop)},w=l&&Object.keys(l).length>0?(A=0,C=0,_=0,ey(l,function(e){var t=e.startX,n=e.startY;A+=t,C+=n,_+=1}),A/=_,C/=_,{pageX:A,pageY:C}):{pageX:i.pageX,pageY:i.pageY};c.x-=T*((w.pageX-x.left-u)/h),c.y-=v*((w.pageY-x.top-d)/p)}else eb(r)&&ep(r.x)&&ep(r.y)?(c.x-=T*((r.x-u)/h),c.y-=v*((r.y-d)/p)):(c.x-=T/2,c.y-=v/2);c.left=c.x,c.top=c.y,c.width=E,c.height=y,c.oldRatio=k,c.ratio=e,this.renderImage(function(){t.zooming=!1,eE(s.zoomed)&&eD(o,ea,s.zoomed,{once:!0}),eP(o,ea,{ratio:e,oldRatio:k,originalEvent:i},{cancelable:!1})}),n&&this.tooltip()}return this},play:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.isShown||this.played)return this;var n=this.element,r=this.options;if(eE(r.play)&&eD(n,eo,r.play,{once:!0}),!1===eP(n,eo))return this;var i=this.player,a=this.loadImage.bind(this),o=[],s=0,l=0;if(this.played=!0,this.onLoadWhenPlay=a,t&&this.requestFullscreen(t),eA(i,I),ey(this.items,function(e,t){var n=e.querySelector("img"),c=document.createElement("img");c.src=eN(n,"originalUrl"),c.alt=n.getAttribute("alt"),c.referrerPolicy=n.referrerPolicy,s+=1,eA(c,b),e_(c,R,r.transition),eS(e,m)&&(eA(c,C),l=t),o.push(c),eD(c,F,a,{once:!0}),i.appendChild(c)}),ep(r.interval)&&r.interval>0){var c=function(){clearTimeout(e.playing.timeout),eC(o[l],C),l-=1,eA(o[l=l>=0?l:s-1],C),e.playing.timeout=setTimeout(c,r.interval)},u=function(){clearTimeout(e.playing.timeout),eC(o[l],C),l+=1,eA(o[l=l<s?l:0],C),e.playing.timeout=setTimeout(u,r.interval)};s>1&&(this.playing={prev:c,next:u,timeout:setTimeout(u,r.interval)})}return this},stop:function(){var e=this;if(!this.played)return this;var t=this.element,n=this.options;if(eE(n.stop)&&eD(t,es,n.stop,{once:!0}),!1===eP(t,es))return this;var r=this.player;return clearTimeout(this.playing.timeout),this.playing=!1,this.played=!1,ey(r.getElementsByTagName("img"),function(t){eO(t,F,e.onLoadWhenPlay)}),eC(r,I),r.innerHTML="",this.exitFullscreen(),this},full:function(){var e=this,t=this.options,n=this.viewer,r=this.image,i=this.list;return!this.isShown||this.played||this.fulled||!t.inline||(this.fulled=!0,this.open(),eA(this.button,T),t.transition&&(eC(i,R),this.viewed&&eC(r,R)),eA(n,E),n.setAttribute("role","dialog"),n.setAttribute("aria-labelledby",this.title.id),n.setAttribute("aria-modal",!0),n.removeAttribute("style"),ek(n,{zIndex:t.zIndex}),t.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=eT({},this.containerData),this.renderList(),this.viewed&&this.initImage(function(){e.renderImage(function(){t.transition&&setTimeout(function(){eA(r,R),eA(i,R)},0)})})),this},exit:function(){var e=this,t=this.options,n=this.viewer,r=this.image,i=this.list;return this.isShown&&!this.played&&this.fulled&&t.inline&&(this.fulled=!1,this.close(),eC(this.button,T),t.transition&&(eC(i,R),this.viewed&&eC(r,R)),t.focus&&this.clearEnforceFocus(),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),eC(n,E),ek(n,{zIndex:t.zIndexInline}),this.viewerData=eT({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){e.renderImage(function(){t.transition&&setTimeout(function(){eA(r,R),eA(i,R)},0)})})),this},tooltip:function(){var e=this,t=this.options,n=this.tooltipBox,r=this.imageData;return this.viewed&&!this.played&&t.tooltip&&(n.textContent="".concat(Math.round(100*r.ratio),"%"),this.tooltipping?clearTimeout(this.tooltipping):t.transition?(this.fading&&eP(n,z),eA(n,I),eA(n,b),eA(n,R),n.removeAttribute("aria-hidden"),n.initialOffsetWidth=n.offsetWidth,eA(n,C)):(eA(n,I),n.removeAttribute("aria-hidden")),this.tooltipping=setTimeout(function(){t.transition?(eD(n,z,function(){eC(n,I),eC(n,b),eC(n,R),n.setAttribute("aria-hidden",!0),e.fading=!1},{once:!0}),eC(n,C),e.fading=!0):(eC(n,I),n.setAttribute("aria-hidden",!0)),e.tooltipping=!1},1e3)),this},toggle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 1===this.imageData.ratio?this.zoomTo(this.imageData.oldRatio,!0,null,e):this.zoomTo(1,!0,null,e),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=eT({},this.initialImageData),this.renderImage()),this},update:function(){var e=this,t=this.element,n=this.options,r=this.isImg;if(r&&!t.parentNode)return this.destroy();var i=[];if(ey(r?[t]:t.querySelectorAll("img"),function(t){eE(n.filter)?n.filter.call(e,t)&&i.push(t):e.getImageURL(t)&&i.push(t)}),!i.length)return this;if(this.images=i,this.length=i.length,this.ready){var a=[];if(ey(this.items,function(e,t){var n=e.querySelector("img"),r=i[t];r&&n?(r.src!==n.src||r.alt!==n.alt)&&a.push(t):a.push(t)}),ek(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var o=a.indexOf(this.index);if(o>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-o,this.length-1),0));else{var s=this.items[this.index];eA(s,m),s.setAttribute("aria-selected",!0)}}}else this.image=null,this.viewed=!1,this.index=0,this.imageData={},this.canvas.innerHTML="",this.title.innerHTML=""}else this.build();return this},destroy:function(){var e=this.element,t=this.options;return e[d]&&(this.destroyed=!0,this.ready?(this.played&&this.stop(),t.inline?(this.fulled&&this.exit(),this.unbind()):this.isShown?(this.viewing&&(this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort()),this.hiding&&this.transitioning.abort(),this.hidden()):this.showing&&(this.transitioning.abort(),this.hidden()),this.ready=!1,this.viewer.parentNode.removeChild(this.viewer)):t.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),t.inline||eO(e,O,this.onStart),e[d]=void 0),this}},{getImageURL:function(e){var t=this.options.url;return ed(t)?e.getAttribute(t):eE(t)?t.call(this,e):""},enforceFocus:function(){var e=this;this.clearEnforceFocus(),eD(document,L,this.onFocusin=function(t){var n=e.viewer,r=t.target;if(!(r===document||r===n||n.contains(r))){for(;r;){if(null!==r.getAttribute("tabindex")||"true"===r.getAttribute("aria-modal"))return;r=r.parentElement}n.focus()}})},clearEnforceFocus:function(){this.onFocusin&&(eO(document,L,this.onFocusin),this.onFocusin=null)},open:function(){var e=this.body;eA(e,N),this.scrollbarWidth>0&&(e.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px"))},close:function(){var e=this.body;eC(e,N),this.scrollbarWidth>0&&(e.style.paddingRight=this.initialBodyPaddingRight)},shown:function(){var e=this.element,t=this.options,n=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,t.focus&&(n.focus(),this.enforceFocus()),eE(t.shown)&&eD(e,V,t.shown,{once:!0}),!1!==eP(e,V)&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var e=this.element,t=this.options,n=this.viewer;t.focus&&this.clearEnforceFocus(),this.close(),this.unbind(),eA(n,v),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),n.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.hiding=!1,this.destroyed||(eE(t.hidden)&&eD(e,K,t.hidden,{once:!0}),eP(e,K,null,{cancelable:!1}))},requestFullscreen:function(e){var t=this.element.ownerDocument;if(this.fulled&&!(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)){var n=t.documentElement;n.requestFullscreen?eb(e)?n.requestFullscreen(e):n.requestFullscreen():n.webkitRequestFullscreen?n.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):n.mozRequestFullScreen?n.mozRequestFullScreen():n.msRequestFullscreen&&n.msRequestFullscreen()}},exitFullscreen:function(){var e=this.element.ownerDocument;this.fulled&&(e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement)&&(e.exitFullscreen?e.exitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.msExitFullscreen&&e.msExitFullscreen())},change:function(e){var t=this.options,r=this.pointers,i=r[Object.keys(r)[0]];if(i){var a,o,s=i.endX-i.startX,l=i.endY-i.startY;switch(this.action){case h:(0!==s||0!==l)&&(this.pointerMoved=!0,this.move(s,l,e));break;case f:this.zoom((a=n({},r),o=[],ey(r,function(e,t){delete a[t],ey(a,function(t){var n=Math.abs(e.startX-t.startX),r=Math.abs(e.startY-t.startY),i=Math.abs(e.endX-t.endX),a=Math.abs(e.endY-t.endY),s=Math.sqrt(n*n+r*r),l=Math.sqrt(i*i+a*a);o.push((l-s)/s)})}),o.sort(function(e,t){return Math.abs(e)<Math.abs(t)}),o[0]),!1,null,e);break;case p:this.action="switched";var c=Math.abs(s);c>1&&c>Math.abs(l)&&(this.pointers={},s>1?this.prev(t.loop):s<-1&&this.next(t.loop))}ey(r,function(e){e.startX=e.endX,e.startY=e.endY})}},isSwitchable:function(){var e=this.imageData,t=this.viewerData;return this.length>1&&e.x>=0&&e.y>=0&&e.width<=t.width&&e.height<=t.height}}),eG}()},82136:(e,t,n)=>{"use strict";n.d(t,{e:()=>l});var r=n(69266),i=n(18427),a=n(6723),o=n(79621),s=n(69611);let l=r.forwardRef(function(e,t){let{render:n,className:l,style:c,disabled:u,nativeButton:d=!0,...h}=e,p=(0,a.l)(),{toast:f,expanded:m}=(0,i.M)(),[g,b]=r.useState(!1),{getButtonProps:E,buttonRef:y}=(0,o.s)({disabled:u,native:d}),T={type:f.type};return(0,s.o)("button",e,{ref:[t,y],state:T,props:[{"aria-hidden":!m&&!g,onClick(){p.closeToast(f.id)},onFocus(){b(!0)},onBlur(){b(!1)}},h,E]})})},82480:(e,t,n)=>{"use strict";n.d(t,{B:()=>s});var r=n(69266),i=n(87651),a=n(17523),o=n(7962);let s=function(e){let{delay:t,closeDelay:n,timeout:s=400}=e,l=r.useMemo(()=>({open:t,close:n}),[t,n]);return(0,o.jsx)(a.K.Provider,{value:t,children:(0,o.jsx)(i.T,{delay:l,timeoutMs:s,children:e.children})})}},82611:(e,t,n)=>{"use strict";n.d(t,{V:()=>T});var r=n(69266),i=n(66538),a=n(34517),o=n(45098),s=n(69611),l=n(24567),c=n(37995),u=n(40516),d=n(9542),h=n(76687),p=n(6561),f=n(56869),m=n(7962);let g={x:0,y:0},b={width:0,height:0},E={xStart:!1,xEnd:!1,yStart:!1,yEnd:!1},y={x:!0,y:!0,corner:!0},T=r.forwardRef(function(e,t){var n;let T,{render:v,className:k,overflowEdgeThreshold:S,style:A,...C}=e,{xStart:_,xEnd:x,yStart:w,yEnd:N}=(T="number"==typeof(n=S)?{xStart:n,xEnd:n,yStart:n,yEnd:n}:n,{xStart:Math.max(0,T?.xStart||0),xEnd:Math.max(0,T?.xEnd||0),yStart:Math.max(0,T?.yStart||0),yEnd:Math.max(0,T?.yEnd||0)}),I=(0,d.e)(),R=(0,a.Z)(),O=(0,a.Z)(),{nonce:D,disableStyleElements:P}=(0,f.n)(),[L,M]=r.useState(!1),[F,B]=r.useState(!1),[H,U]=r.useState(!1),[j,G]=r.useState(!1),[z,$]=r.useState(!1),[W,q]=r.useState(b),[V,Y]=r.useState(b),[K,X]=r.useState(E),[Q,Z]=r.useState(y),J=r.useRef(null),ee=r.useRef(null),et=r.useRef(null),en=r.useRef(null),er=r.useRef(null),ei=r.useRef(null),ea=r.useRef(null),eo=r.useRef(null),es=r.useRef(0),el=r.useRef(0),ec=r.useRef(0),eu=r.useRef(0),ed=r.useRef("vertical"),eh=r.useRef(g),ep=r.useRef(null);function ef(e){let t=e?U:B;t(!0),(e?R:O).start(l.u,()=>{t(!1)})}let em=(0,i.K)(e=>{let t=e.x-eh.current.x,n=e.y-eh.current.y;eh.current=e,0!==n&&ef(!0),0!==t&&ef(!1)}),eg=(0,i.K)(()=>{let e=ee.current;e&&null===ep.current&&(ep.current=e.style.scrollSnapType,e.style.scrollSnapType="none")}),eb=(0,i.K)(e=>{if(0!==e.button)return;if(null!==eo.current){let e="vertical"===ed.current?er.current:ei.current;if(e?.hasPointerCapture(eo.current))return}eo.current=e.pointerId,es.current=e.clientY,el.current=e.clientX,ed.current=e.currentTarget.getAttribute("data-orientation");let t=ee.current;t&&(ec.current=t.scrollTop,eu.current=t.scrollLeft,eg());let n="vertical"===ed.current?er.current:ei.current;n?.setPointerCapture(e.pointerId)}),eE=(0,i.K)(e=>{if(e.pointerId!==eo.current)return;eo.current=null,("vertical"===ed.current?U:B)(!1),null!==ep.current&&(ee.current&&(ee.current.style.scrollSnapType=ep.current),ep.current=null);let t="vertical"===ed.current?er.current:ei.current;t?.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId)}),ey=(0,i.K)(e=>{if(e.pointerId!==eo.current)return;if(e.buttons%2==0)return void eE(e);let t=ee.current;if(!t)return;let n="vertical"===ed.current,r=n?er.current:ei.current,i=n?et.current:en.current;if(!r||!i)return;let a=n?"y":"x",o=(0,c.A)(i,"padding",a),s=(0,c.A)(r,"margin",a),l=n?r.offsetHeight:r.offsetWidth,u=(n?i.offsetHeight:i.offsetWidth)-l-o-s,d=n?e.clientY-es.current:e.clientX-el.current,h=n?t.scrollHeight:t.scrollWidth,p=n?t.clientHeight:t.clientWidth,f=(n?ec.current:eu.current)+(u<=0?0:d/u)*(h-p);n?t.scrollTop=f:t.scrollLeft=f,e.preventDefault(),ef(n)});function eT(e){G("touch"===e.pointerType)}function ev(e){eT(e),"touch"!==e.pointerType&&M((0,p.gR)(J.current,e.target))}let ek=r.useMemo(()=>({scrolling:F||H,hasOverflowX:!Q.x,hasOverflowY:!Q.y,overflowXStart:K.xStart,overflowXEnd:K.xEnd,overflowYStart:K.yStart,overflowYEnd:K.yEnd,cornerHidden:Q.corner}),[F,H,Q.x,Q.y,Q.corner,K]),eS={role:"presentation",onPointerEnter:ev,onPointerMove:ev,onPointerDown:eT,onPointerLeave(){M(!1)},style:{position:"relative","--scroll-area-corner-height":`${W.height}px`,"--scroll-area-corner-width":`${W.width}px`}},eA=(0,s.o)("div",e,{state:ek,ref:[t,J],props:[eS,C],stateAttributesMapping:h.r}),eC=r.useMemo(()=>({handlePointerDown:eb,handlePointerMove:ey,handlePointerUp:eE,handleScroll:em,disableViewportSnap:eg,cornerSize:W,setCornerSize:q,thumbSize:V,setThumbSize:Y,hasMeasuredScrollbar:z,setHasMeasuredScrollbar:$,touchModality:j,cornerRef:ea,scrollingX:F,scrollingY:H,hovering:L,setHovering:M,viewportRef:ee,scrollbarYRef:et,scrollbarXRef:en,thumbYRef:er,thumbXRef:ei,rootId:I,hiddenState:Q,setHiddenState:Z,overflowEdges:K,setOverflowEdges:X,viewportState:ek,overflowEdgeThreshold:{xStart:_,xEnd:x,yStart:w,yEnd:N}}),[eb,ey,eE,em,eg,W,V,z,j,F,H,L,I,Q,K,ek,_,x,w,N]);return(0,m.jsxs)(o.a.Provider,{value:eC,children:[!P&&u.E.getElement(D),eA]})})},82712:(e,t,n)=>{"use strict";n.d(t,{Y:()=>a,v:()=>o});var r=n(80417),i=n(69266);let a=i.createContext(void 0);function o(e=!0){let t=i.useContext(a);if(void 0===t&&!e)throw Error((0,r.A)(25));return t}},85137:(e,t,n)=>{"use strict";n.d(t,{D:()=>c});var r=n(69266),i=n(63829),a=n(82712),o=n(6387),s=n(79833),l=n(7962);function c(e){let[t,n]=r.useState({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,x:0,y:0})}),c=r.useRef(null),u=r.useRef(null),d=r.useRef(null),h=r.useRef(null),p=r.useRef(!0),f=r.useRef(null),m=(0,i.B)(),g=r.useMemo(()=>({anchor:t,setAnchor:n,actionsRef:d,backdropRef:c,internalBackdropRef:u,positionerRef:h,allowMouseUpTriggerRef:p,initialCursorPointRef:f,rootId:m}),[t,m]);return(0,l.jsx)(a.Y.Provider,{value:g,children:(0,l.jsx)(s.J.Provider,{value:void 0,children:(0,l.jsx)(o.i,{...e})})})}},85937:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},86023:(e,t,n)=>{"use strict";n.d(t,{h:()=>f});var r=n(69266),i=n(31025),a=n(77221),o=n(69611),s=n(81385),l=n(43745),c=n(1712),u=n(63962),d=n(97591);let h={...n(85933).GW,...d.G,nestedDialogOpen:e=>e?{"data-nested-dialog-open":""}:null};var p=n(7962);let f=r.forwardRef(function(e,t){let{render:n,className:r,style:d,finalFocus:f,initialFocus:m,...g}=e,b=(0,a.P)(),E=b.useState("descriptionElementId"),y=b.useState("disablePointerDismissal"),T=b.useState("floatingRootContext"),v=b.useState("popupProps"),k=b.useState("modal"),S=b.useState("mounted"),A=b.useState("nested"),C=b.useState("nestedOpenDialogCount"),_=b.useState("open"),x=b.useState("openMethod"),w=b.useState("titleElementId"),N=b.useState("transitionStatus"),I=b.useState("role"),R=T.useState("floatingId");(0,s.p)(),(0,l.v)({open:_,ref:b.context.popupRef,onComplete(){_&&b.context.onOpenChangeComplete?.(!0)}});let O=void 0===m?(0,u.UM)(b.context.popupRef):m,D=b.useStateSetter("popupElement"),P=(0,o.o)("div",e,{state:{open:_,nested:A,transitionStatus:N,nestedDialogOpen:C>0},props:[v,{id:R,"aria-labelledby":w,"aria-describedby":E,role:I,...u.Ls,hidden:!S,onKeyDown(e){c.jF.has(e.key)&&e.stopPropagation()},style:{"--nested-dialogs":C}},g],ref:[t,b.context.popupRef,D],stateAttributesMapping:h});return(0,p.jsx)(i.s,{context:T,openInteractionType:x,disabled:!S,closeOnFocusOut:!y,initialFocus:O,returnFocus:f,modal:!1!==k,restoreFocus:"popup",children:P})})},87425:(e,t,n)=>{"use strict";n.d(t,{l:()=>s});var r=n(69266),i=n(45098),a=n(91740),o=n(69611);let s=r.forwardRef(function(e,t){let{render:n,className:r,style:s,...l}=e,{thumbYRef:c,thumbXRef:u,handlePointerDown:d,handlePointerMove:h,handlePointerUp:p,scrollingX:f,scrollingY:m,hasMeasuredScrollbar:g}=(0,i.p)(),b=(0,a.r)(),E="vertical"===b;return(0,o.o)("div",e,{ref:[t,E?c:u],state:{scrolling:E?m:f,orientation:b},props:[{onPointerDown:d,onPointerMove:h,onPointerUp:p,onPointerCancel:p,style:{visibility:g?void 0:"hidden",...E?{height:"var(--scroll-area-thumb-height)"}:{width:"var(--scroll-area-thumb-width)"}}},l]})})},87651:(e,t,n)=>{"use strict";n.d(t,{T:()=>d,c:()=>h});var r=n(69266),i=n(34517),a=n(66758),o=n(8515),s=n(53402),l=n(27944),c=n(7962);let u=r.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new i.E,currentIdRef:{current:null},currentContextRef:{current:null}});function d(e){let{children:t,delay:n,timeoutMs:s=0}=e,l=r.useRef(n),d=r.useRef(n),h=r.useRef(null),p=r.useRef(null),f=(0,i.Z)();return(0,a.g)(()=>{if(d.current=n,!h.current){l.current=n;return}l.current={open:(0,o.uf)(l.current,"open"),close:(0,o.uf)(n,"close")}},[n,h,l,d]),(0,c.jsx)(u.Provider,{value:r.useMemo(()=>({hasProvider:!0,delayRef:l,initialDelayRef:d,currentIdRef:h,timeoutMs:s,currentContextRef:p,timeout:f}),[s,f]),children:t})}function h(e,t={open:!1}){let{open:n}=t,i="rootStore"in e?e.rootStore:e,c=i.useState("floatingId"),{currentIdRef:d,delayRef:p,timeoutMs:f,initialDelayRef:m,currentContextRef:g,hasProvider:b,timeout:E}=r.useContext(u),[y,T]=r.useState(!1),v=r.useRef(n);return(0,a.g)(()=>{v.current=n},[n]),(0,a.g)(()=>{function e(){g.current?.setIsInstantPhase(!1),d.current=null,g.current=null,p.current=m.current,E.clear()}if(d.current&&!n&&d.current===c){if(T(!1),f)return E.start(f,()=>{i.select("open")||d.current&&d.current!==c||e()}),()=>{(v.current||d.current!==c)&&E.clear()};e()}},[n,c,d,p,f,m,g,E,i]),(0,a.g)(()=>{if(!n)return;let e=g.current,t=d.current;E.clear(),g.current={onOpenChange:i.setOpen,setIsInstantPhase:T},d.current=c,p.current={open:0,close:(0,o.uf)(m.current,"close")},null!==t&&t!==c?(T(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,(0,s.d)(l.dv))):(T(!1),e?.setIsInstantPhase(!1))},[n,c,i,d,p,m,g,E]),(0,a.g)(()=>()=>{d.current===c&&(g.current=null,v.current)&&(d.current=null,p.current=m.current,E.clear())},[g,d,p,c,m,E]),r.useMemo(()=>({hasProvider:b,delayRef:p,isInstantPhase:y}),[b,p,y])}},87946:(e,t,n)=>{"use strict";n.d(t,{N:()=>f});var r=n(69266),i=n(66538),a=n(69611),o=n(74388),s=n(9542),l=n(53402),c=n(27944),u=n(47623),d=n(99357),h=n(80354),p=n(7962);let f=r.forwardRef(function(e,t){let{render:n,className:f,defaultOpen:m=!1,disabled:g=!1,onOpenChange:b,open:E,style:y,...T}=e,v=(0,i.K)(b),k=function(e){let{open:t,defaultOpen:n,onOpenChange:a,disabled:d}=e,[h,p]=(0,o.q)({controlled:t,default:n,name:"Collapsible",state:"open"}),{mounted:f,setMounted:m,transitionStatus:g}=(0,u.$)(h,!0,!0),b=(0,s.e)(),[E,y]=r.useState(),T=null===E?void 0:E??b,v=(0,i.K)(e=>{let t=!h,n=(0,l.d)(c.Ui,e.nativeEvent);a(t,n),n.isCanceled||p(t)});return r.useMemo(()=>({defaultPanelId:b,disabled:d,handleTrigger:v,mounted:f,open:h,panelId:T,setMounted:m,setOpen:p,setPanelIdState:y,transitionStatus:g}),[b,d,v,f,h,T,m,p,y,g])}({open:E,defaultOpen:m,onOpenChange:v,disabled:g}),S=r.useMemo(()=>({open:k.open,disabled:k.disabled,transitionStatus:k.transitionStatus}),[k.open,k.disabled,k.transitionStatus]),A=r.useMemo(()=>({...k,onOpenChange:v,state:S}),[k,v,S]),C=(0,a.o)("div",e,{state:S,ref:t,props:T,stateAttributesMapping:h.d});return(0,p.jsx)(d.k.Provider,{value:A,children:C})})},89261:(e,t,n)=>{"use strict";n.d(t,{m:()=>k});var r=n(69266),i=n(44911),a=n(88944),o=n(33914),s=n(18652),l=n(66758),c=n(66538),u=n(6561),d=n(18427),h=n(97591),p=n(6723),f=n(69611),m=n(43745),g=n(73146),b=n(10813);function E(e,t,n){switch(e){case"up":return-n;case"down":return n;case"left":return-t;case"right":return t;default:return 0}}var y=n(7962);let T={...h.G,swipeDirection:e=>e?{"data-swipe-direction":e}:null},v=`${g.BF},${g.eZ}`,k=r.forwardRef(function(e,t){let n,h,{toast:g,render:k,className:S,swipeDirection:A=["down","right"],style:C,..._}=e,x=g.positionerProps?.anchor!==void 0,w=[];x||(w=Array.isArray(A)?A:[A]);let N=w.length>0,I=(0,p.l)(),[R,O]=r.useState(void 0),[D,P]=r.useState(!1),[L,M]=r.useState(!1),[F,B]=r.useState({x:0,y:0}),[H,U]=r.useState({x:0,y:0,scale:1}),[j,G]=r.useState(),[z,$]=r.useState(),[W,q]=r.useState(null),V=r.useRef(null),Y=r.useRef(void 0),K=r.useRef({x:0,y:0}),X=r.useRef({x:0,y:0,scale:1}),Q=r.useRef(void 0),Z=r.useRef(0),J=r.useRef(!1),ee=r.useRef({x:0,y:0}),et=r.useRef(!1),en=r.useRef({x:0,y:0}),er=r.useRef(null),ei=r.useRef(null),ea=I.useState("toastIndex",g.id),eo=I.useState("toastVisibleIndex",g.id),es=I.useState("toastOffsetY",g.id),el=I.useState("focused"),ec=I.useState("expanded");(0,m.v)({open:"ending"!==g.transitionStatus,ref:V,onComplete(){"ending"===g.transitionStatus&&I.removeToast(g.id)}});let eu=(0,c.K)((e=!1)=>{let t=V.current;if(!t)return;let n=t.style.height;t.style.height="auto";let r=t.offsetHeight;function a(){I.updateToastInternal(g.id,{ref:V,height:r,transitionStatus:void 0})}t.style.height=n,e?i.flushSync(a):a()});function ed(e){en.current=e,B(e)}(0,l.g)(()=>{let e=Y.current;("starting"===g.transitionStatus||e!==g.id)&&(void 0!==e&&(O(void 0),U({x:0,y:0,scale:1}),ed({x:0,y:0})),Y.current=g.id,eu())},[eu,g.id,g.transitionStatus]),(0,l.g)(()=>()=>{ei.current?.abort()},[]);let eh=(0,c.K)(e=>{let t;if(e.pointerId!==er.current)return;er.current=null,ei.current?.abort(),ei.current=null,P(!1),M(!1),q(null);let n=X.current;if("pointercancel"===e.type||J.current){ed({x:n.x,y:n.y}),O(void 0);return}let r=en.current,i=r.x-n.x,a=r.y-n.y;for(let e of w)if(E(e,i,a)>40){t=e;break}t?(O(t),I.closeToast(g.id)):(ed({x:n.x,y:n.y}),O(void 0))});r.useEffect(()=>{let e=V.current;if(N&&e)return(0,a.q)(e,"touchmove",function(t){null!==er.current&&(0,u.gR)(e,(0,u.EW)(t))&&t.preventDefault()},{passive:!1})},[N]);let ep="high"===g.priority,ef={role:ep?"alertdialog":"dialog",tabIndex:0,"aria-modal":!1,"aria-labelledby":j,"aria-describedby":z,"aria-hidden":!!ep&&!el||void 0,onPointerDown:N?function(e){if(0!==e.button)return;"touch"===e.pointerType&&I.pauseTimers();let t=(0,u.EW)(e.nativeEvent);if(t?.closest(`button,a,input,textarea,[role="button"],${v}`))return;J.current=!1,Q.current=void 0,Z.current=0,er.current=e.pointerId,K.current={x:e.clientX,y:e.clientY},ee.current=K.current;let n=e.currentTarget,r=function(e){let t=(0,b.zk)(e).getComputedStyle(e).transform,n=0,r=0,i=1;if(t&&"none"!==t){let e=t.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){let t=e[1].split(", ").map(parseFloat);6===t.length?(n=t[4],r=t[5],i=Math.sqrt(t[0]*t[0]+t[1]*t[1])):16===t.length&&(n=t[12],r=t[13],i=t[0])}}return{x:n,y:r,scale:i}}(n);X.current=r,U(r),ed({x:r.x,y:r.y}),I.set("hovering",!0),P(!0),M(!1),q(null),et.current=!0,ei.current?.abort();let i=new AbortController;ei.current=i;let a=(0,o.R)(n);a.addEventListener("pointerup",eh,{signal:i.signal}),a.addEventListener("pointercancel",eh,{signal:i.signal}),n.setPointerCapture?.(e.pointerId)}:void 0,onPointerMove:N?function(e){let t,n,r,i;if(e.pointerId!==er.current)return;e.preventDefault(),et.current&&(K.current={x:e.clientX,y:e.clientY},et.current=!1);let{clientY:a,clientX:o,movementX:s,movementY:l}=e;(l<0&&a>ee.current.y||l>0&&a<ee.current.y)&&(ee.current={x:ee.current.x,y:a}),(s<0&&o>ee.current.x||s>0&&o<ee.current.x)&&(ee.current={x:o,y:ee.current.y});let c=o-K.current.x,u=a-K.current.y,d=a-ee.current.y,h=o-ee.current.x,p=W;if(!L&&Math.sqrt(c*c+u*u)>=1){M(!0);let e=w.includes("left")||w.includes("right"),t=w.includes("up")||w.includes("down");e&&t&&q(p=Math.abs(c)>Math.abs(u)?"horizontal":"vertical")}if(Q.current){let e=Q.current,t=E(e,h,d);t>40?(J.current=!1,O(e)):w.includes("left")&&w.includes("right")||w.includes("up")&&w.includes("down")||!(Z.current-t>=10)||(J.current=!0)}else"vertical"===p?u>0?t="down":u<0&&(t="up"):"horizontal"===p?c>0?t="right":c<0&&(t="left"):t=Math.abs(c)>=Math.abs(u)?c>0?"right":"left":u>0?"down":"up",t&&w.includes(t)&&(Q.current=t,Z.current=E(t,c,u),O(t));let f=(n=e=>e>0?e**.5:-(Math.abs(e)**.5),r=c>0&&!w.includes("right")||c<0&&!w.includes("left"),i=u>0&&!w.includes("down")||u<0&&!w.includes("up"),{x:r?n(c):c,y:i?n(u):u}),m=X.current.x,g=X.current.y,b=w.includes("left")||w.includes("right"),y=w.includes("up")||w.includes("down");"vertical"!==p&&b&&(m+=f.x),"horizontal"!==p&&y&&(g+=f.y),ed({x:m,y:g})}:void 0,onPointerUp:N?eh:void 0,onPointerCancel:N?eh:void 0,onKeyDown:function(e){"Escape"===e.key&&V.current&&(0,u.gR)(V.current,(0,u.RS)((0,o.R)(V.current)))&&I.closeToast(g.id)},inert:(0,s.Y)(g.limited),style:{...(n=F.x-H.x,h=F.y-H.y,{transition:D?"none":void 0,transform:D?`translateX(${F.x}px) translateY(${F.y}px) scale(${H.scale})`:void 0,"--toast-swipe-movement-x":`${n}px`,"--toast-swipe-movement-y":`${h}px`}),"--toast-index":"ending"===g.transitionStatus?ea:eo,"--toast-offset-y":`${es}px`,"--toast-height":g.height?`${g.height}px`:void 0}},em=r.useMemo(()=>({toast:g,setTitleId:G,setDescriptionId:$,recalculateHeight:eu,visibleIndex:eo,expanded:ec}),[g,G,$,eu,eo,ec]),eg={transitionStatus:g.transitionStatus,expanded:ec,limited:g.limited||!1,type:g.type,swiping:D,swipeDirection:R},eb=(0,f.o)("div",e,{ref:[t,V],state:eg,stateAttributesMapping:T,props:[ef,_]});return(0,y.jsx)(d.z.Provider,{value:em,children:eb})})},90213:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("list-filter",[["path",{d:"M2 5h20",key:"1fs1ex"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}]])},90636:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var c;return(void 0===t&&(t={}),!(c=e)||i.test(c)||n.test(c))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(o,l):e.replace(a,l)).replace(r,s))}},90680:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},91305:(e,t,n)=>{"use strict";n.d(t,{O:()=>o,r:()=>a});var r=n(80417),i=n(69266);let a=i.createContext(void 0);function o(e){let t=i.useContext(a);if(void 0===t&&!e)throw Error((0,r.A)(33));return t}},91740:(e,t,n)=>{"use strict";n.d(t,{G:()=>a,r:()=>o});var r=n(80417),i=n(69266);let a=i.createContext(void 0);function o(){let e=i.useContext(a);if(void 0===e)throw Error((0,r.A)(54));return e}},92622:(e,t,n)=>{"use strict";n.d(t,{t:()=>o});var r=n(80417),i=n(69266);let a=i.createContext(null);function o(e){let t=i.useContext(a);if(null===t&&!e)throw Error((0,r.A)(5));return t}},93061:(e,t,n)=>{"use strict";n.d(t,{V:()=>p});var r=n(69266),i=n(88944),a=n(6561),o=n(45098),s=n(91740),l=n(69611),c=n(37995),u=n(73881),d=n(76687),h=n(7962);let p=r.forwardRef(function(e,t){let{render:n,className:p,orientation:f="vertical",keepMounted:m=!1,style:g,...b}=e,{hovering:E,scrollingX:y,scrollingY:T,hiddenState:v,scrollbarYRef:k,scrollbarXRef:S,viewportRef:A,thumbYRef:C,thumbXRef:_,handlePointerDown:x,handlePointerUp:w,handleScroll:N,disableViewportSnap:I,rootId:R,thumbSize:O,hasMeasuredScrollbar:D,viewportState:P}=(0,o.p)(),L="vertical"===f,M={...P,hovering:E,scrolling:L?T:y,orientation:f},F=(0,u.j)(),B=!D&&!m,H=L?v.y:v.x,U=m||!H;r.useEffect(()=>{if(!U)return;let e=A.current,t=L?k.current:S.current;if(t)return(0,i.q)(t,"wheel",function(t){if(!e||t.ctrlKey)return;let n=!L,r=n?"scrollLeft":"scrollTop",i=n?t.deltaX:t.deltaY;if(0===i)return;let a=n?e.scrollWidth-e.clientWidth:e.scrollHeight-e.clientHeight,o=n&&"rtl"===F?-a:0,s=n&&"rtl"===F?0:a,l=e[r];l<=o&&i<0||l>=s&&i>0||(t.preventDefault(),e[r]=Math.min(s,Math.max(o,l+i)),N({x:e.scrollLeft,y:e.scrollTop}))},{passive:!1})},[F,N,L,S,k,U,A]);let j={...R&&{"data-id":`${R}-scrollbar`},onPointerDown(e){if(0!==e.button)return;let t=(0,a.EW)(e.nativeEvent),n=L?C.current:_.current;if(n&&(0,a.gR)(n,t))return;let r=A.current;if(!r)return;let i=L?k.current:S.current;if(!n||!i)return;let o=L?"y":"x",s=(0,c.A)(n,"margin",o),l=(0,c.A)(i,"padding",o),u=L?n.offsetHeight:n.offsetWidth,d=i.getBoundingClientRect(),h=L?e.clientY-d.top-u/2-l+s/2:e.clientX-d.left-u/2-l+s/2,p=L?r.scrollHeight:r.scrollWidth,f=L?r.clientHeight:r.clientWidth,m=(L?i.offsetHeight:i.offsetWidth)-u-l-s;if(m<=0)return;let g=h/m,b=p-f;I(),L?r.scrollTop=g*b:"rtl"===F?r.scrollLeft=-(1-g)*b:r.scrollLeft=g*b,N({x:r.scrollLeft,y:r.scrollTop}),x(e)},onPointerUp:w,onPointerCancel:w,style:{position:"absolute",touchAction:"none",WebkitUserSelect:"none",userSelect:"none",visibility:B?"hidden":void 0,...L?{top:0,bottom:"var(--scroll-area-corner-height)",insetInlineEnd:0,"--scroll-area-thumb-height":`${O.height}px`}:{insetInlineStart:0,insetInlineEnd:"var(--scroll-area-corner-width)",bottom:0,"--scroll-area-thumb-width":`${O.width}px`}}},G=(0,l.o)("div",e,{ref:[t,L?k:S],state:M,props:[j,b],stateAttributesMapping:d.r});return U?(0,h.jsx)(s.G.Provider,{value:f,children:G}):null})},93227:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,i.default)(e),a="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:i}=e;a?t(r,i,e):i&&((n=n||{})[r]=i)}),n};let i=r(n(3158))},93750:(e,t,n)=>{"use strict";n.d(t,{_:()=>b});var r=n(69266),i=n(20660),a=n(31025),o=n(79833),s=n(91305),l=n(69611),c=n(85933),u=n(43745),d=n(53402),h=n(27944),p=n(9279),f=n(1712),m=n(82909),g=n(7962);let b=r.forwardRef(function(e,t){let{render:n,className:b,style:E,finalFocus:y,...T}=e,{store:v}=(0,o.Y)(),{side:k,align:S}=(0,s.O)(),A=null!=(0,p.S)(!0),C=v.useState("open"),_=v.useState("transitionStatus"),x=v.useState("popupProps"),w=v.useState("mounted"),N=v.useState("instantType"),I=v.useState("activeTriggerElement"),R=v.useState("parent"),O=v.useState("lastOpenChangeReason"),D=v.useState("rootId"),P=v.useState("floatingRootContext"),L=v.useState("floatingTreeRoot"),M=v.useState("closeDelay"),F=v.useState("hoverEnabled"),B=v.useState("disabled"),H=v.useState("openMethod"),U="context-menu"===R.type;(0,u.v)({open:C,ref:v.context.popupRef,onComplete(){C&&v.context.onOpenChangeComplete?.(!0)}}),r.useEffect(()=>{function e(e){v.setOpen(!1,(0,d.d)(e.reason,e.domEvent))}return L.events.on("close",e),()=>{L.events.off("close",e)}},[L.events,v]),(0,i.a)(P,{enabled:F&&!B&&!U&&"menubar"!==R.type,closeDelay:M});let j=v.useStateSetter("popupElement"),G={transitionStatus:_,side:k,align:S,open:C,nested:"menu"===R.type,instant:N},z=(0,l.o)("div",e,{state:G,ref:[t,v.context.popupRef,j],stateAttributesMapping:c.LM,props:[x,{onKeyDown(e){A&&f.jF.has(e.key)&&e.stopPropagation()}},(0,m.d)(_),T,{"data-rootownerid":D}]}),$=void 0===R.type||U;return(I||"menubar"===R.type&&O!==h.Np)&&($=!0),(0,g.jsx)(a.s,{context:P,openInteractionType:H,modal:U,disabled:!w,returnFocus:void 0===y?$:y,initialFocus:"menu"!==R.type,restoreFocus:!0,externalTree:"menubar"!==R.type?L:void 0,previousFocusableElement:I,nextFocusableElement:void 0===R.type?v.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:void 0===R.type?v.context.beforeContentFocusGuardRef:void 0,children:z})})},94131:(e,t,n)=>{"use strict";n.d(t,{N:()=>i});var r=n(69266),i=globalThis?.document?r.useLayoutEffect:()=>{}},94173:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},94323:(e,t,n)=>{"use strict";n.d(t,{k:()=>a});var r,i=n(97591);let a=((r={}).open="data-open",r.closed="data-closed",r[r.startingStyle=i.T.startingStyle]="startingStyle",r[r.endingStyle=i.T.endingStyle]="endingStyle",r)},94703:(e,t,n)=>{"use strict";function r(){}n.d(t,{ok:()=>r})},94970:(e,t,n)=>{"use strict";n.d(t,{s:()=>C});var r=n(69266),i=n(53949),a=n(48356),o=n(66758),s=n(16591),l=n(36158),c=n(88944),u=n(66538),d=n(10813),h=n(6561),p=n(12418);function f(e){return null!=e&&null!=e.clientX}var m=n(53402),g=n(63962),b=n(52686),E=n(44596),y=n(27944),T=n(15494),v=n(14738);let k={...T.ol,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin};class S extends E.H{constructor(e,t,n){const i=new v.Z;super(function(e,t,n,r=!1){let i={...(0,T.rJ)(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e};return i.floatingRootContext=(0,T.OB)(t,n,r),i}(e,i,t,n),function(e){return{popupRef:r.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}(i),k)}setOpen=(e,t)=>{(0,g.DU)(this,e,t,{extraState:{openChangeReason:t.reason}})};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,(0,m.d)(y.Ui,e))}}var A=n(7962);let C=(0,i.G1)(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:i,disableHoverablePopup:a=!1,trackCursorAxis:l="none",actionsRef:c,onOpenChange:u,onOpenChangeComplete:d,handle:h,triggerId:p,defaultTriggerId:f=null,children:b}=e,E=(0,g.xp)((e,t)=>new S({open:n,openProp:i,activeTriggerId:f,triggerIdProp:p},e,t));E.useControlledProp("openProp",i),E.useControlledProp("triggerIdProp",p),E.useContextCallback("onOpenChange",u),E.useContextCallback("onOpenChangeComplete",d);let T=E.useState("open"),v=!t&&T,k=E.useState("activeTriggerId"),C=E.useState("mounted"),x=E.useState("payload");E.useSyncedValues({trackCursorAxis:l,disableHoverablePopup:a,disabled:t}),(0,g.tr)(E,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:w,transitionStatus:N}=(0,g.l$)(v,E),I=E.useState("isInstantPhase"),R=E.useState("instantType"),O=E.useState("lastOpenChangeReason"),D=r.useRef(null);(0,o.g)(()=>{T&&t&&E.setOpen(!1,(0,m.d)(y.r9))},[T,t,E]),(0,o.g)(()=>{"ending"===N&&O===y.dv||"ending"!==N&&I?("delay"!==R&&(D.current=R),E.set("instantType","delay")):null!==D.current&&(E.set("instantType",D.current),D.current=null)},[N,I,O,R,E]),(0,o.g)(()=>{v&&null==k&&E.set("payload",void 0)},[E,k,v]),r.useImperativeHandle(c,()=>({unmount:w,close:()=>E.setOpen(!1,(0,m.d)(y.zJ))}),[w,E]);let P=v||C||!t&&"none"!==l;return(0,A.jsxs)(s.B.Provider,{value:E,children:[h&&(0,A.jsx)(g.Ae,{handle:h,store:E}),P&&(0,A.jsx)(_,{store:E,disabled:t,trackCursorAxis:l}),"function"==typeof b?b({payload:x}):b]})});function _({store:e,disabled:t,trackCursorAxis:n}){let i=e.useState("floatingRootContext"),o=(0,l.s)(i,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),s=function(e,t={}){let{enabled:n=!0,axis:i="both"}=t,a="rootStore"in e?e.rootStore:e,o=a.useState("open"),s=a.useState("floatingElement"),l=a.useState("domReferenceElement"),m=a.context.dataRef,g=r.useRef(!1),b=r.useRef(null),[E,y]=r.useState(),[T,v]=r.useState([]),k=(0,u.K)(e=>{a.set("positionReference",e)}),S=(0,u.K)((e,t,n)=>{if(!g.current&&(!m.current.openEvent||f(m.current.openEvent))){var r,o;let s,c,u;a.set("positionReference",(r=n??l,o={x:e,y:t,axis:i,dataRef:m,pointerType:E},s=null,c=null,u=!1,{contextElement:r||void 0,getBoundingClientRect(){let e=r?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},t="x"===o.axis||"both"===o.axis,n="y"===o.axis||"both"===o.axis,i=["mouseenter","mousemove"].includes(o.dataRef.current.openEvent?.type||"")&&"touch"!==o.pointerType,a=e.width,l=e.height,d=e.x,h=e.y;return null==s&&o.x&&t&&(s=e.x-o.x),null==c&&o.y&&n&&(c=e.y-o.y),d-=s||0,h-=c||0,a=0,l=0,!u||i?(a="y"===o.axis?e.width:0,l="x"===o.axis?e.height:0,d=t&&null!=o.x?o.x:d,h=n&&null!=o.y?o.y:h):u&&!i&&(l="x"===o.axis?e.height:l,a="y"===o.axis?e.width:a),u=!0,{width:a,height:l,x:d,y:h,top:h,right:d+a,bottom:h+l,left:d}}}))}}),A=(0,u.K)(e=>{o?b.current||(S(e.clientX,e.clientY,e.currentTarget),v([])):S(e.clientX,e.clientY,e.currentTarget)}),C=(0,p.Go)(E)?s:o;r.useEffect(()=>{if(!n)return void k(l);if(!C)return;function e(){b.current?.(),b.current=null}let t=(0,d.zk)(s);return!m.current.openEvent||f(m.current.openEvent)?b.current=(0,c.q)(t,"mousemove",function(t){let n=(0,h.EW)(t);(0,h.gR)(s,n)?e():S(t.clientX,t.clientY)}):k(l),e},[C,n,s,m,l,a,S,k,T]),r.useEffect(()=>()=>{a.set("positionReference",null)},[a]),r.useEffect(()=>{n&&!s&&(g.current=!1)},[n,s]),r.useEffect(()=>{!n&&o&&(g.current=!0)},[n,o]);let _=r.useMemo(()=>{function e(e){y(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:A,onMouseEnter:A}},[A]);return r.useMemo(()=>n?{reference:_,trigger:_}:{},[n,_])}(i,{enabled:!t&&"none"!==n,axis:"none"===n?void 0:n}),m=r.useMemo(()=>(0,b.v6)(s.reference,o.reference),[s.reference,o.reference]);return(0,g.i6)(e,{activeTriggerProps:m,inactiveTriggerProps:m,popupProps:o.floating??a.t0}),null}},95526:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("file",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]])},96381:(e,t,n)=>{"use strict";n.d(t,{I:()=>a});var r=n(69266),i=n(6723);function a(){let e=(0,i.l)(),t=e.useState("toasts");return r.useMemo(()=>({toasts:t,add:e.addToast,close:e.closeToast,update:e.updateToast,promise:e.promiseToast}),[t,e])}},99357:(e,t,n)=>{"use strict";n.d(t,{f:()=>o,k:()=>a});var r=n(80417),i=n(69266);let a=i.createContext(void 0);function o(){let e=i.useContext(a);if(void 0===e)throw Error((0,r.A)(15));return e}}}]);